Home | History | Annotate | Download | only in c-ares
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.68 for c-ares 1.7.5.
      4 #
      5 # Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
      6 #
      7 #
      8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     10 # Foundation, Inc.
     11 #
     12 #
     13 # This configure script is free software; the Free Software Foundation
     14 # gives unlimited permission to copy, distribute and modify it.
     15 ## -------------------- ##
     16 ## M4sh Initialization. ##
     17 ## -------------------- ##
     18 
     19 # Be more Bourne compatible
     20 DUALCASE=1; export DUALCASE # for MKS sh
     21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     22   emulate sh
     23   NULLCMD=:
     24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   # is contrary to our usage.  Disable this feature.
     26   alias -g '${1+"$@"}'='"$@"'
     27   setopt NO_GLOB_SUBST
     28 else
     29   case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac
     35 fi
     36 
     37 
     38 as_nl='
     39 '
     40 export as_nl
     41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     45 # Prefer a ksh shell builtin over an external printf program on Solaris,
     46 # but without wasting forks for bash or zsh.
     47 if test -z "$BASH_VERSION$ZSH_VERSION" \
     48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     49   as_echo='print -r --'
     50   as_echo_n='print -rn --'
     51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     52   as_echo='printf %s\n'
     53   as_echo_n='printf %s'
     54 else
     55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     57     as_echo_n='/usr/ucb/echo -n'
     58   else
     59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     60     as_echo_n_body='eval
     61       arg=$1;
     62       case $arg in #(
     63       *"$as_nl"*)
     64 	expr "X$arg" : "X\\(.*\\)$as_nl";
     65 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     66       esac;
     67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     68     '
     69     export as_echo_n_body
     70     as_echo_n='sh -c $as_echo_n_body as_echo'
     71   fi
     72   export as_echo_body
     73   as_echo='sh -c $as_echo_body as_echo'
     74 fi
     75 
     76 
     77   if test -z "$cares_cv_PATH_SEPARATOR"; then
     78     if test -z "$PATH"; then
     79       as_fn_error $? "PATH not set. Cannot continue without PATH being set."
     80     fi
     81         tst_dirs_col=0
     82     tst_save_IFS=$IFS; IFS=':'
     83     for tst_dir in $PATH; do
     84       IFS=$tst_save_IFS
     85       test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
     86     done
     87     IFS=$tst_save_IFS
     88         tst_dirs_sem=0
     89     tst_save_IFS=$IFS; IFS=';'
     90     for tst_dir in $PATH; do
     91       IFS=$tst_save_IFS
     92       test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
     93     done
     94     IFS=$tst_save_IFS
     95     if test $tst_dirs_sem -eq $tst_dirs_col; then
     96                   if test -z "$PATH_SEPARATOR"; then
     97                 as_fn_error $? "PATH_SEPARATOR not set. Cannot continue without it."
     98       fi
     99     else
    100             if test $tst_dirs_sem -gt $tst_dirs_col; then
    101         tst_auto_separator=';'
    102       else
    103         tst_auto_separator=':'
    104       fi
    105       if test -z "$PATH_SEPARATOR"; then
    106                 PATH_SEPARATOR="$tst_auto_separator"
    107       fi
    108     fi
    109     cares_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
    110   fi
    111 
    112 
    113 
    114 
    115 
    116 # IFS
    117 # We need space, tab and new line, in precisely that order.  Quoting is
    118 # there to prevent editors from complaining about space-tab.
    119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    120 # splitting by setting IFS to empty value.)
    121 IFS=" ""	$as_nl"
    122 
    123 # Find who we are.  Look in the path if we contain no directory separator.
    124 as_myself=
    125 case $0 in #((
    126   *[\\/]* ) as_myself=$0 ;;
    127   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    128 for as_dir in $PATH
    129 do
    130   IFS=$as_save_IFS
    131   test -z "$as_dir" && as_dir=.
    132     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    133   done
    134 IFS=$as_save_IFS
    135 
    136      ;;
    137 esac
    138 # We did not find ourselves, most probably we were run as `sh COMMAND'
    139 # in which case we are not to be found in the path.
    140 if test "x$as_myself" = x; then
    141   as_myself=$0
    142 fi
    143 if test ! -f "$as_myself"; then
    144   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    145   exit 1
    146 fi
    147 
    148 # Unset variables that we do not need and which cause bugs (e.g. in
    149 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    150 # suppresses any "Segmentation fault" message there.  '((' could
    151 # trigger a bug in pdksh 5.2.14.
    152 for as_var in BASH_ENV ENV MAIL MAILPATH
    153 do eval test x\${$as_var+set} = xset \
    154   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    155 done
    156 PS1='$ '
    157 PS2='> '
    158 PS4='+ '
    159 
    160 # NLS nuisances.
    161 LC_ALL=C
    162 export LC_ALL
    163 LANGUAGE=C
    164 export LANGUAGE
    165 
    166 # CDPATH.
    167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    168 
    169 if test "x$CONFIG_SHELL" = x; then
    170   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    171   emulate sh
    172   NULLCMD=:
    173   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    174   # is contrary to our usage.  Disable this feature.
    175   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    176   setopt NO_GLOB_SUBST
    177 else
    178   case \`(set -o) 2>/dev/null\` in #(
    179   *posix*) :
    180     set -o posix ;; #(
    181   *) :
    182      ;;
    183 esac
    184 fi
    185 "
    186   as_required="as_fn_return () { (exit \$1); }
    187 as_fn_success () { as_fn_return 0; }
    188 as_fn_failure () { as_fn_return 1; }
    189 as_fn_ret_success () { return 0; }
    190 as_fn_ret_failure () { return 1; }
    191 
    192 exitcode=0
    193 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    194 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    195 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    196 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    197 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    198 
    199 else
    200   exitcode=1; echo positional parameters were not saved.
    201 fi
    202 test x\$exitcode = x0 || exit 1"
    203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    207 test \$(( 1 + 1 )) = 2 || exit 1
    208 
    209   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    210     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    211     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    212     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    213     PATH=/empty FPATH=/empty; export PATH FPATH
    214     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    215       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    216   if (eval "$as_required") 2>/dev/null; then :
    217   as_have_required=yes
    218 else
    219   as_have_required=no
    220 fi
    221   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    222 
    223 else
    224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    225 as_found=false
    226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    227 do
    228   IFS=$as_save_IFS
    229   test -z "$as_dir" && as_dir=.
    230   as_found=:
    231   case $as_dir in #(
    232 	 /*)
    233 	   for as_base in sh bash ksh sh5; do
    234 	     # Try only shells that exist, to save several forks.
    235 	     as_shell=$as_dir/$as_base
    236 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    237 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    238   CONFIG_SHELL=$as_shell as_have_required=yes
    239 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    240   break 2
    241 fi
    242 fi
    243 	   done;;
    244        esac
    245   as_found=false
    246 done
    247 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    248 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    249   CONFIG_SHELL=$SHELL as_have_required=yes
    250 fi; }
    251 IFS=$as_save_IFS
    252 
    253 
    254       if test "x$CONFIG_SHELL" != x; then :
    255   # We cannot yet assume a decent shell, so we have to provide a
    256 	# neutralization value for shells without unset; and this also
    257 	# works around shells that cannot unset nonexistent variables.
    258 	# Preserve -v and -x to the replacement shell.
    259 	BASH_ENV=/dev/null
    260 	ENV=/dev/null
    261 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    262 	export CONFIG_SHELL
    263 	case $- in # ((((
    264 	  *v*x* | *x*v* ) as_opts=-vx ;;
    265 	  *v* ) as_opts=-v ;;
    266 	  *x* ) as_opts=-x ;;
    267 	  * ) as_opts= ;;
    268 	esac
    269 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
    270 fi
    271 
    272     if test x$as_have_required = xno; then :
    273   $as_echo "$0: This script requires a shell more modern than all"
    274   $as_echo "$0: the shells that I found on your system."
    275   if test x${ZSH_VERSION+set} = xset ; then
    276     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    277     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    278   else
    279     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and c-ares mailing
    280 $0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
    281 $0: your system, including any error possibly output before
    282 $0: this message. Then install a modern shell, or manually
    283 $0: run the script under such a shell if you do have one."
    284   fi
    285   exit 1
    286 fi
    287 fi
    288 fi
    289 SHELL=${CONFIG_SHELL-/bin/sh}
    290 export SHELL
    291 # Unset more variables known to interfere with behavior of common tools.
    292 CLICOLOR_FORCE= GREP_OPTIONS=
    293 unset CLICOLOR_FORCE GREP_OPTIONS
    294 
    295 ## --------------------- ##
    296 ## M4sh Shell Functions. ##
    297 ## --------------------- ##
    298 # as_fn_unset VAR
    299 # ---------------
    300 # Portably unset VAR.
    301 as_fn_unset ()
    302 {
    303   { eval $1=; unset $1;}
    304 }
    305 as_unset=as_fn_unset
    306 
    307 # as_fn_set_status STATUS
    308 # -----------------------
    309 # Set $? to STATUS, without forking.
    310 as_fn_set_status ()
    311 {
    312   return $1
    313 } # as_fn_set_status
    314 
    315 # as_fn_exit STATUS
    316 # -----------------
    317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    318 as_fn_exit ()
    319 {
    320   set +e
    321   as_fn_set_status $1
    322   exit $1
    323 } # as_fn_exit
    324 
    325 # as_fn_mkdir_p
    326 # -------------
    327 # Create "$as_dir" as a directory, including parents if necessary.
    328 as_fn_mkdir_p ()
    329 {
    330 
    331   case $as_dir in #(
    332   -*) as_dir=./$as_dir;;
    333   esac
    334   test -d "$as_dir" || eval $as_mkdir_p || {
    335     as_dirs=
    336     while :; do
    337       case $as_dir in #(
    338       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    339       *) as_qdir=$as_dir;;
    340       esac
    341       as_dirs="'$as_qdir' $as_dirs"
    342       as_dir=`$as_dirname -- "$as_dir" ||
    343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    344 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    345 	 X"$as_dir" : 'X\(//\)$' \| \
    346 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    347 $as_echo X"$as_dir" |
    348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    349 	    s//\1/
    350 	    q
    351 	  }
    352 	  /^X\(\/\/\)[^/].*/{
    353 	    s//\1/
    354 	    q
    355 	  }
    356 	  /^X\(\/\/\)$/{
    357 	    s//\1/
    358 	    q
    359 	  }
    360 	  /^X\(\/\).*/{
    361 	    s//\1/
    362 	    q
    363 	  }
    364 	  s/.*/./; q'`
    365       test -d "$as_dir" && break
    366     done
    367     test -z "$as_dirs" || eval "mkdir $as_dirs"
    368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    369 
    370 
    371 } # as_fn_mkdir_p
    372 # as_fn_append VAR VALUE
    373 # ----------------------
    374 # Append the text in VALUE to the end of the definition contained in VAR. Take
    375 # advantage of any shell optimizations that allow amortized linear growth over
    376 # repeated appends, instead of the typical quadratic growth present in naive
    377 # implementations.
    378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    379   eval 'as_fn_append ()
    380   {
    381     eval $1+=\$2
    382   }'
    383 else
    384   as_fn_append ()
    385   {
    386     eval $1=\$$1\$2
    387   }
    388 fi # as_fn_append
    389 
    390 # as_fn_arith ARG...
    391 # ------------------
    392 # Perform arithmetic evaluation on the ARGs, and store the result in the
    393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    394 # must be portable across $(()) and expr.
    395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    396   eval 'as_fn_arith ()
    397   {
    398     as_val=$(( $* ))
    399   }'
    400 else
    401   as_fn_arith ()
    402   {
    403     as_val=`expr "$@" || test $? -eq 1`
    404   }
    405 fi # as_fn_arith
    406 
    407 
    408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    409 # ----------------------------------------
    410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    412 # script with STATUS, using 1 if that was 0.
    413 as_fn_error ()
    414 {
    415   as_status=$1; test $as_status -eq 0 && as_status=1
    416   if test "$4"; then
    417     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    418     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    419   fi
    420   $as_echo "$as_me: error: $2" >&2
    421   as_fn_exit $as_status
    422 } # as_fn_error
    423 
    424 if expr a : '\(a\)' >/dev/null 2>&1 &&
    425    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    426   as_expr=expr
    427 else
    428   as_expr=false
    429 fi
    430 
    431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    432   as_basename=basename
    433 else
    434   as_basename=false
    435 fi
    436 
    437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    438   as_dirname=dirname
    439 else
    440   as_dirname=false
    441 fi
    442 
    443 as_me=`$as_basename -- "$0" ||
    444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    445 	 X"$0" : 'X\(//\)$' \| \
    446 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    447 $as_echo X/"$0" |
    448     sed '/^.*\/\([^/][^/]*\)\/*$/{
    449 	    s//\1/
    450 	    q
    451 	  }
    452 	  /^X\/\(\/\/\)$/{
    453 	    s//\1/
    454 	    q
    455 	  }
    456 	  /^X\/\(\/\).*/{
    457 	    s//\1/
    458 	    q
    459 	  }
    460 	  s/.*/./; q'`
    461 
    462 # Avoid depending upon Character Ranges.
    463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    466 as_cr_digits='0123456789'
    467 as_cr_alnum=$as_cr_Letters$as_cr_digits
    468 
    469 
    470   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    471   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    472   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    473   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    474   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    475   sed -n '
    476     p
    477     /[$]LINENO/=
    478   ' <$as_myself |
    479     sed '
    480       s/[$]LINENO.*/&-/
    481       t lineno
    482       b
    483       :lineno
    484       N
    485       :loop
    486       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    487       t loop
    488       s/-\n.*//
    489     ' >$as_me.lineno &&
    490   chmod +x "$as_me.lineno" ||
    491     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    492 
    493   # Don't try to exec as it changes $[0], causing all sort of problems
    494   # (the dirname of $[0] is not the place where we might find the
    495   # original and so on.  Autoconf is especially sensitive to this).
    496   . "./$as_me.lineno"
    497   # Exit status is that of the last command.
    498   exit
    499 }
    500 
    501 ECHO_C= ECHO_N= ECHO_T=
    502 case `echo -n x` in #(((((
    503 -n*)
    504   case `echo 'xy\c'` in
    505   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    506   xy)  ECHO_C='\c';;
    507   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    508        ECHO_T='	';;
    509   esac;;
    510 *)
    511   ECHO_N='-n';;
    512 esac
    513 
    514 rm -f conf$$ conf$$.exe conf$$.file
    515 if test -d conf$$.dir; then
    516   rm -f conf$$.dir/conf$$.file
    517 else
    518   rm -f conf$$.dir
    519   mkdir conf$$.dir 2>/dev/null
    520 fi
    521 if (echo >conf$$.file) 2>/dev/null; then
    522   if ln -s conf$$.file conf$$ 2>/dev/null; then
    523     as_ln_s='ln -s'
    524     # ... but there are two gotchas:
    525     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    526     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    527     # In both cases, we have to default to `cp -p'.
    528     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    529       as_ln_s='cp -p'
    530   elif ln conf$$.file conf$$ 2>/dev/null; then
    531     as_ln_s=ln
    532   else
    533     as_ln_s='cp -p'
    534   fi
    535 else
    536   as_ln_s='cp -p'
    537 fi
    538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    539 rmdir conf$$.dir 2>/dev/null
    540 
    541 if mkdir -p . 2>/dev/null; then
    542   as_mkdir_p='mkdir -p "$as_dir"'
    543 else
    544   test -d ./-p && rmdir ./-p
    545   as_mkdir_p=false
    546 fi
    547 
    548 if test -x / >/dev/null 2>&1; then
    549   as_test_x='test -x'
    550 else
    551   if ls -dL / >/dev/null 2>&1; then
    552     as_ls_L_option=L
    553   else
    554     as_ls_L_option=
    555   fi
    556   as_test_x='
    557     eval sh -c '\''
    558       if test -d "$1"; then
    559 	test -d "$1/.";
    560       else
    561 	case $1 in #(
    562 	-*)set "./$1";;
    563 	esac;
    564 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    565 	???[sx]*):;;*)false;;esac;fi
    566     '\'' sh
    567   '
    568 fi
    569 as_executable_p=$as_test_x
    570 
    571 # Sed expression to map a string onto a valid CPP name.
    572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    573 
    574 # Sed expression to map a string onto a valid variable name.
    575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    576 
    577 SHELL=${CONFIG_SHELL-/bin/sh}
    578 
    579 
    580 test -n "$DJDIR" || exec 7<&0 </dev/null
    581 exec 6>&1
    582 
    583 # Name of the host.
    584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    585 # so uname gets run too.
    586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    587 
    588 #
    589 # Initializations.
    590 #
    591 ac_default_prefix=/usr/local
    592 ac_clean_files=
    593 ac_config_libobj_dir=.
    594 LIBOBJS=
    595 cross_compiling=no
    596 subdirs=
    597 MFLAGS=
    598 MAKEFLAGS=
    599 
    600 # Identity of this package.
    601 PACKAGE_NAME='c-ares'
    602 PACKAGE_TARNAME='c-ares'
    603 PACKAGE_VERSION='1.7.5'
    604 PACKAGE_STRING='c-ares 1.7.5'
    605 PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
    606 PACKAGE_URL=''
    607 
    608 ac_unique_file="ares_ipv6.h"
    609 # Factoring default headers for most tests.
    610 ac_includes_default="\
    611 #include <stdio.h>
    612 #ifdef HAVE_SYS_TYPES_H
    613 # include <sys/types.h>
    614 #endif
    615 #ifdef HAVE_SYS_STAT_H
    616 # include <sys/stat.h>
    617 #endif
    618 #ifdef STDC_HEADERS
    619 # include <stdlib.h>
    620 # include <stddef.h>
    621 #else
    622 # ifdef HAVE_STDLIB_H
    623 #  include <stdlib.h>
    624 # endif
    625 #endif
    626 #ifdef HAVE_STRING_H
    627 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    628 #  include <memory.h>
    629 # endif
    630 # include <string.h>
    631 #endif
    632 #ifdef HAVE_STRINGS_H
    633 # include <strings.h>
    634 #endif
    635 #ifdef HAVE_INTTYPES_H
    636 # include <inttypes.h>
    637 #endif
    638 #ifdef HAVE_STDINT_H
    639 # include <stdint.h>
    640 #endif
    641 #ifdef HAVE_UNISTD_H
    642 # include <unistd.h>
    643 #endif"
    644 
    645 ac_subst_vars='LTLIBOBJS
    646 LIBOBJS
    647 CARES_CFLAG_EXTRAS
    648 CARES_PRIVATE_LIBS
    649 RANDOM_FILE
    650 CURLDEBUG_FALSE
    651 CURLDEBUG_TRUE
    652 NO_UNDEFINED_FALSE
    653 NO_UNDEFINED_TRUE
    654 OTOOL64
    655 OTOOL
    656 LIPO
    657 NMEDIT
    658 DSYMUTIL
    659 MANIFEST_TOOL
    660 RANLIB
    661 ac_ct_AR
    662 LN_S
    663 NM
    664 ac_ct_DUMPBIN
    665 DUMPBIN
    666 LD
    667 FGREP
    668 LIBTOOL
    669 OBJDUMP
    670 DLLTOOL
    671 AS
    672 CPP
    673 am__fastdepCC_FALSE
    674 am__fastdepCC_TRUE
    675 CCDEPMODE
    676 AMDEPBACKSLASH
    677 AMDEP_FALSE
    678 AMDEP_TRUE
    679 am__quote
    680 am__include
    681 DEPDIR
    682 OBJEXT
    683 EXEEXT
    684 ac_ct_CC
    685 CPPFLAGS
    686 LDFLAGS
    687 CFLAGS
    688 CC
    689 host_os
    690 host_vendor
    691 host_cpu
    692 host
    693 build_os
    694 build_vendor
    695 build_cpu
    696 build
    697 am__untar
    698 am__tar
    699 AMTAR
    700 am__leading_dot
    701 SET_MAKE
    702 AWK
    703 mkdir_p
    704 INSTALL_STRIP_PROGRAM
    705 STRIP
    706 install_sh
    707 MAKEINFO
    708 AUTOHEADER
    709 AUTOMAKE
    710 AUTOCONF
    711 ACLOCAL
    712 VERSION
    713 PACKAGE
    714 CYGPATH_W
    715 INSTALL_DATA
    716 INSTALL_SCRIPT
    717 INSTALL_PROGRAM
    718 AR
    719 EGREP
    720 GREP
    721 SED
    722 MAINT
    723 MAINTAINER_MODE_FALSE
    724 MAINTAINER_MODE_TRUE
    725 target_alias
    726 host_alias
    727 build_alias
    728 LIBS
    729 ECHO_T
    730 ECHO_N
    731 ECHO_C
    732 DEFS
    733 mandir
    734 localedir
    735 libdir
    736 psdir
    737 pdfdir
    738 dvidir
    739 htmldir
    740 infodir
    741 docdir
    742 oldincludedir
    743 includedir
    744 localstatedir
    745 sharedstatedir
    746 sysconfdir
    747 datadir
    748 datarootdir
    749 libexecdir
    750 sbindir
    751 bindir
    752 program_transform_name
    753 prefix
    754 exec_prefix
    755 PACKAGE_URL
    756 PACKAGE_BUGREPORT
    757 PACKAGE_STRING
    758 PACKAGE_VERSION
    759 PACKAGE_TARNAME
    760 PACKAGE_NAME
    761 SHELL
    762 PATH
    763 PATH_SEPARATOR'
    764 ac_subst_files=''
    765 ac_user_opts='
    766 enable_option_checking
    767 enable_maintainer_mode
    768 enable_debug
    769 enable_optimize
    770 enable_warnings
    771 enable_werror
    772 enable_curldebug
    773 enable_symbol_hiding
    774 enable_dependency_tracking
    775 enable_largefile
    776 enable_shared
    777 enable_static
    778 with_pic
    779 enable_fast_install
    780 with_gnu_ld
    781 with_sysroot
    782 enable_libtool_lock
    783 enable_libgcc
    784 with_random
    785 enable_nonblocking
    786 '
    787       ac_precious_vars='build_alias
    788 host_alias
    789 target_alias
    790 CC
    791 CFLAGS
    792 LDFLAGS
    793 LIBS
    794 CPPFLAGS
    795 CPP'
    796 
    797 
    798 # Initialize some variables set by options.
    799 ac_init_help=
    800 ac_init_version=false
    801 ac_unrecognized_opts=
    802 ac_unrecognized_sep=
    803 # The variables have the same names as the options, with
    804 # dashes changed to underlines.
    805 cache_file=/dev/null
    806 exec_prefix=NONE
    807 no_create=
    808 no_recursion=
    809 prefix=NONE
    810 program_prefix=NONE
    811 program_suffix=NONE
    812 program_transform_name=s,x,x,
    813 silent=
    814 site=
    815 srcdir=
    816 verbose=
    817 x_includes=NONE
    818 x_libraries=NONE
    819 
    820 # Installation directory options.
    821 # These are left unexpanded so users can "make install exec_prefix=/foo"
    822 # and all the variables that are supposed to be based on exec_prefix
    823 # by default will actually change.
    824 # Use braces instead of parens because sh, perl, etc. also accept them.
    825 # (The list follows the same order as the GNU Coding Standards.)
    826 bindir='${exec_prefix}/bin'
    827 sbindir='${exec_prefix}/sbin'
    828 libexecdir='${exec_prefix}/libexec'
    829 datarootdir='${prefix}/share'
    830 datadir='${datarootdir}'
    831 sysconfdir='${prefix}/etc'
    832 sharedstatedir='${prefix}/com'
    833 localstatedir='${prefix}/var'
    834 includedir='${prefix}/include'
    835 oldincludedir='/usr/include'
    836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    837 infodir='${datarootdir}/info'
    838 htmldir='${docdir}'
    839 dvidir='${docdir}'
    840 pdfdir='${docdir}'
    841 psdir='${docdir}'
    842 libdir='${exec_prefix}/lib'
    843 localedir='${datarootdir}/locale'
    844 mandir='${datarootdir}/man'
    845 
    846 ac_prev=
    847 ac_dashdash=
    848 for ac_option
    849 do
    850   # If the previous option needs an argument, assign it.
    851   if test -n "$ac_prev"; then
    852     eval $ac_prev=\$ac_option
    853     ac_prev=
    854     continue
    855   fi
    856 
    857   case $ac_option in
    858   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    859   *=)   ac_optarg= ;;
    860   *)    ac_optarg=yes ;;
    861   esac
    862 
    863   # Accept the important Cygnus configure options, so we can diagnose typos.
    864 
    865   case $ac_dashdash$ac_option in
    866   --)
    867     ac_dashdash=yes ;;
    868 
    869   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    870     ac_prev=bindir ;;
    871   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    872     bindir=$ac_optarg ;;
    873 
    874   -build | --build | --buil | --bui | --bu)
    875     ac_prev=build_alias ;;
    876   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    877     build_alias=$ac_optarg ;;
    878 
    879   -cache-file | --cache-file | --cache-fil | --cache-fi \
    880   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    881     ac_prev=cache_file ;;
    882   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    883   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    884     cache_file=$ac_optarg ;;
    885 
    886   --config-cache | -C)
    887     cache_file=config.cache ;;
    888 
    889   -datadir | --datadir | --datadi | --datad)
    890     ac_prev=datadir ;;
    891   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    892     datadir=$ac_optarg ;;
    893 
    894   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    895   | --dataroo | --dataro | --datar)
    896     ac_prev=datarootdir ;;
    897   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    898   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    899     datarootdir=$ac_optarg ;;
    900 
    901   -disable-* | --disable-*)
    902     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    903     # Reject names that are not valid shell variable names.
    904     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    905       as_fn_error $? "invalid feature name: $ac_useropt"
    906     ac_useropt_orig=$ac_useropt
    907     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    908     case $ac_user_opts in
    909       *"
    910 "enable_$ac_useropt"
    911 "*) ;;
    912       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    913 	 ac_unrecognized_sep=', ';;
    914     esac
    915     eval enable_$ac_useropt=no ;;
    916 
    917   -docdir | --docdir | --docdi | --doc | --do)
    918     ac_prev=docdir ;;
    919   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    920     docdir=$ac_optarg ;;
    921 
    922   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    923     ac_prev=dvidir ;;
    924   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    925     dvidir=$ac_optarg ;;
    926 
    927   -enable-* | --enable-*)
    928     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    929     # Reject names that are not valid shell variable names.
    930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    931       as_fn_error $? "invalid feature name: $ac_useropt"
    932     ac_useropt_orig=$ac_useropt
    933     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    934     case $ac_user_opts in
    935       *"
    936 "enable_$ac_useropt"
    937 "*) ;;
    938       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    939 	 ac_unrecognized_sep=', ';;
    940     esac
    941     eval enable_$ac_useropt=\$ac_optarg ;;
    942 
    943   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    944   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    945   | --exec | --exe | --ex)
    946     ac_prev=exec_prefix ;;
    947   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    948   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    949   | --exec=* | --exe=* | --ex=*)
    950     exec_prefix=$ac_optarg ;;
    951 
    952   -gas | --gas | --ga | --g)
    953     # Obsolete; use --with-gas.
    954     with_gas=yes ;;
    955 
    956   -help | --help | --hel | --he | -h)
    957     ac_init_help=long ;;
    958   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    959     ac_init_help=recursive ;;
    960   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    961     ac_init_help=short ;;
    962 
    963   -host | --host | --hos | --ho)
    964     ac_prev=host_alias ;;
    965   -host=* | --host=* | --hos=* | --ho=*)
    966     host_alias=$ac_optarg ;;
    967 
    968   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    969     ac_prev=htmldir ;;
    970   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    971   | --ht=*)
    972     htmldir=$ac_optarg ;;
    973 
    974   -includedir | --includedir | --includedi | --included | --include \
    975   | --includ | --inclu | --incl | --inc)
    976     ac_prev=includedir ;;
    977   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    978   | --includ=* | --inclu=* | --incl=* | --inc=*)
    979     includedir=$ac_optarg ;;
    980 
    981   -infodir | --infodir | --infodi | --infod | --info | --inf)
    982     ac_prev=infodir ;;
    983   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    984     infodir=$ac_optarg ;;
    985 
    986   -libdir | --libdir | --libdi | --libd)
    987     ac_prev=libdir ;;
    988   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    989     libdir=$ac_optarg ;;
    990 
    991   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    992   | --libexe | --libex | --libe)
    993     ac_prev=libexecdir ;;
    994   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    995   | --libexe=* | --libex=* | --libe=*)
    996     libexecdir=$ac_optarg ;;
    997 
    998   -localedir | --localedir | --localedi | --localed | --locale)
    999     ac_prev=localedir ;;
   1000   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1001     localedir=$ac_optarg ;;
   1002 
   1003   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1004   | --localstate | --localstat | --localsta | --localst | --locals)
   1005     ac_prev=localstatedir ;;
   1006   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1007   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1008     localstatedir=$ac_optarg ;;
   1009 
   1010   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1011     ac_prev=mandir ;;
   1012   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1013     mandir=$ac_optarg ;;
   1014 
   1015   -nfp | --nfp | --nf)
   1016     # Obsolete; use --without-fp.
   1017     with_fp=no ;;
   1018 
   1019   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1020   | --no-cr | --no-c | -n)
   1021     no_create=yes ;;
   1022 
   1023   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1024   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1025     no_recursion=yes ;;
   1026 
   1027   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1028   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1029   | --oldin | --oldi | --old | --ol | --o)
   1030     ac_prev=oldincludedir ;;
   1031   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1032   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1033   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1034     oldincludedir=$ac_optarg ;;
   1035 
   1036   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1037     ac_prev=prefix ;;
   1038   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1039     prefix=$ac_optarg ;;
   1040 
   1041   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1042   | --program-pre | --program-pr | --program-p)
   1043     ac_prev=program_prefix ;;
   1044   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1045   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1046     program_prefix=$ac_optarg ;;
   1047 
   1048   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1049   | --program-suf | --program-su | --program-s)
   1050     ac_prev=program_suffix ;;
   1051   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1052   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1053     program_suffix=$ac_optarg ;;
   1054 
   1055   -program-transform-name | --program-transform-name \
   1056   | --program-transform-nam | --program-transform-na \
   1057   | --program-transform-n | --program-transform- \
   1058   | --program-transform | --program-transfor \
   1059   | --program-transfo | --program-transf \
   1060   | --program-trans | --program-tran \
   1061   | --progr-tra | --program-tr | --program-t)
   1062     ac_prev=program_transform_name ;;
   1063   -program-transform-name=* | --program-transform-name=* \
   1064   | --program-transform-nam=* | --program-transform-na=* \
   1065   | --program-transform-n=* | --program-transform-=* \
   1066   | --program-transform=* | --program-transfor=* \
   1067   | --program-transfo=* | --program-transf=* \
   1068   | --program-trans=* | --program-tran=* \
   1069   | --progr-tra=* | --program-tr=* | --program-t=*)
   1070     program_transform_name=$ac_optarg ;;
   1071 
   1072   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1073     ac_prev=pdfdir ;;
   1074   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1075     pdfdir=$ac_optarg ;;
   1076 
   1077   -psdir | --psdir | --psdi | --psd | --ps)
   1078     ac_prev=psdir ;;
   1079   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1080     psdir=$ac_optarg ;;
   1081 
   1082   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1083   | -silent | --silent | --silen | --sile | --sil)
   1084     silent=yes ;;
   1085 
   1086   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1087     ac_prev=sbindir ;;
   1088   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1089   | --sbi=* | --sb=*)
   1090     sbindir=$ac_optarg ;;
   1091 
   1092   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1093   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1094   | --sharedst | --shareds | --shared | --share | --shar \
   1095   | --sha | --sh)
   1096     ac_prev=sharedstatedir ;;
   1097   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1098   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1099   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1100   | --sha=* | --sh=*)
   1101     sharedstatedir=$ac_optarg ;;
   1102 
   1103   -site | --site | --sit)
   1104     ac_prev=site ;;
   1105   -site=* | --site=* | --sit=*)
   1106     site=$ac_optarg ;;
   1107 
   1108   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1109     ac_prev=srcdir ;;
   1110   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1111     srcdir=$ac_optarg ;;
   1112 
   1113   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1114   | --syscon | --sysco | --sysc | --sys | --sy)
   1115     ac_prev=sysconfdir ;;
   1116   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1117   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1118     sysconfdir=$ac_optarg ;;
   1119 
   1120   -target | --target | --targe | --targ | --tar | --ta | --t)
   1121     ac_prev=target_alias ;;
   1122   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1123     target_alias=$ac_optarg ;;
   1124 
   1125   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1126     verbose=yes ;;
   1127 
   1128   -version | --version | --versio | --versi | --vers | -V)
   1129     ac_init_version=: ;;
   1130 
   1131   -with-* | --with-*)
   1132     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1133     # Reject names that are not valid shell variable names.
   1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1135       as_fn_error $? "invalid package name: $ac_useropt"
   1136     ac_useropt_orig=$ac_useropt
   1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1138     case $ac_user_opts in
   1139       *"
   1140 "with_$ac_useropt"
   1141 "*) ;;
   1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1143 	 ac_unrecognized_sep=', ';;
   1144     esac
   1145     eval with_$ac_useropt=\$ac_optarg ;;
   1146 
   1147   -without-* | --without-*)
   1148     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1149     # Reject names that are not valid shell variable names.
   1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1151       as_fn_error $? "invalid package name: $ac_useropt"
   1152     ac_useropt_orig=$ac_useropt
   1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1154     case $ac_user_opts in
   1155       *"
   1156 "with_$ac_useropt"
   1157 "*) ;;
   1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1159 	 ac_unrecognized_sep=', ';;
   1160     esac
   1161     eval with_$ac_useropt=no ;;
   1162 
   1163   --x)
   1164     # Obsolete; use --with-x.
   1165     with_x=yes ;;
   1166 
   1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1168   | --x-incl | --x-inc | --x-in | --x-i)
   1169     ac_prev=x_includes ;;
   1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1172     x_includes=$ac_optarg ;;
   1173 
   1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1176     ac_prev=x_libraries ;;
   1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1179     x_libraries=$ac_optarg ;;
   1180 
   1181   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1182 Try \`$0 --help' for more information"
   1183     ;;
   1184 
   1185   *=*)
   1186     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1187     # Reject names that are not valid shell variable names.
   1188     case $ac_envvar in #(
   1189       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1190       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1191     esac
   1192     eval $ac_envvar=\$ac_optarg
   1193     export $ac_envvar ;;
   1194 
   1195   *)
   1196     # FIXME: should be removed in autoconf 3.0.
   1197     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1199       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1200     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1201     ;;
   1202 
   1203   esac
   1204 done
   1205 
   1206 if test -n "$ac_prev"; then
   1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1208   as_fn_error $? "missing argument to $ac_option"
   1209 fi
   1210 
   1211 if test -n "$ac_unrecognized_opts"; then
   1212   case $enable_option_checking in
   1213     no) ;;
   1214     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1215     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1216   esac
   1217 fi
   1218 
   1219 # Check all directory arguments for consistency.
   1220 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1221 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1222 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1223 		libdir localedir mandir
   1224 do
   1225   eval ac_val=\$$ac_var
   1226   # Remove trailing slashes.
   1227   case $ac_val in
   1228     */ )
   1229       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1230       eval $ac_var=\$ac_val;;
   1231   esac
   1232   # Be sure to have absolute directory names.
   1233   case $ac_val in
   1234     [\\/$]* | ?:[\\/]* )  continue;;
   1235     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1236   esac
   1237   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1238 done
   1239 
   1240 # There might be people who depend on the old broken behavior: `$host'
   1241 # used to hold the argument of --host etc.
   1242 # FIXME: To remove some day.
   1243 build=$build_alias
   1244 host=$host_alias
   1245 target=$target_alias
   1246 
   1247 # FIXME: To remove some day.
   1248 if test "x$host_alias" != x; then
   1249   if test "x$build_alias" = x; then
   1250     cross_compiling=maybe
   1251     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
   1252     If a cross compiler is detected then cross compile mode will be used" >&2
   1253   elif test "x$build_alias" != "x$host_alias"; then
   1254     cross_compiling=yes
   1255   fi
   1256 fi
   1257 
   1258 ac_tool_prefix=
   1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1260 
   1261 test "$silent" = yes && exec 6>/dev/null
   1262 
   1263 
   1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1265 ac_ls_di=`ls -di .` &&
   1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1267   as_fn_error $? "working directory cannot be determined"
   1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1269   as_fn_error $? "pwd does not report name of working directory"
   1270 
   1271 
   1272 # Find the source files, if location was not specified.
   1273 if test -z "$srcdir"; then
   1274   ac_srcdir_defaulted=yes
   1275   # Try the directory containing this script, then the parent directory.
   1276   ac_confdir=`$as_dirname -- "$as_myself" ||
   1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1278 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1279 	 X"$as_myself" : 'X\(//\)$' \| \
   1280 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1281 $as_echo X"$as_myself" |
   1282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1283 	    s//\1/
   1284 	    q
   1285 	  }
   1286 	  /^X\(\/\/\)[^/].*/{
   1287 	    s//\1/
   1288 	    q
   1289 	  }
   1290 	  /^X\(\/\/\)$/{
   1291 	    s//\1/
   1292 	    q
   1293 	  }
   1294 	  /^X\(\/\).*/{
   1295 	    s//\1/
   1296 	    q
   1297 	  }
   1298 	  s/.*/./; q'`
   1299   srcdir=$ac_confdir
   1300   if test ! -r "$srcdir/$ac_unique_file"; then
   1301     srcdir=..
   1302   fi
   1303 else
   1304   ac_srcdir_defaulted=no
   1305 fi
   1306 if test ! -r "$srcdir/$ac_unique_file"; then
   1307   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1308   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1309 fi
   1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1311 ac_abs_confdir=`(
   1312 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1313 	pwd)`
   1314 # When building in place, set srcdir=.
   1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1316   srcdir=.
   1317 fi
   1318 # Remove unnecessary trailing slashes from srcdir.
   1319 # Double slashes in file names in object file debugging info
   1320 # mess up M-x gdb in Emacs.
   1321 case $srcdir in
   1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1323 esac
   1324 for ac_var in $ac_precious_vars; do
   1325   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1326   eval ac_env_${ac_var}_value=\$${ac_var}
   1327   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1328   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1329 done
   1330 
   1331 #
   1332 # Report the --help message.
   1333 #
   1334 if test "$ac_init_help" = "long"; then
   1335   # Omit some internal or obsolete options to make the list less imposing.
   1336   # This message is too long to be a string in the A/UX 3.1 sh.
   1337   cat <<_ACEOF
   1338 \`configure' configures c-ares 1.7.5 to adapt to many kinds of systems.
   1339 
   1340 Usage: $0 [OPTION]... [VAR=VALUE]...
   1341 
   1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1343 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1344 
   1345 Defaults for the options are specified in brackets.
   1346 
   1347 Configuration:
   1348   -h, --help              display this help and exit
   1349       --help=short        display options specific to this package
   1350       --help=recursive    display the short help of all the included packages
   1351   -V, --version           display version information and exit
   1352   -q, --quiet, --silent   do not print \`checking ...' messages
   1353       --cache-file=FILE   cache test results in FILE [disabled]
   1354   -C, --config-cache      alias for \`--cache-file=config.cache'
   1355   -n, --no-create         do not create output files
   1356       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1357 
   1358 Installation directories:
   1359   --prefix=PREFIX         install architecture-independent files in PREFIX
   1360                           [$ac_default_prefix]
   1361   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1362                           [PREFIX]
   1363 
   1364 By default, \`make install' will install all the files in
   1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1367 for instance \`--prefix=\$HOME'.
   1368 
   1369 For better control, use the options below.
   1370 
   1371 Fine tuning of the installation directories:
   1372   --bindir=DIR            user executables [EPREFIX/bin]
   1373   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1374   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1375   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1376   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1377   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1378   --libdir=DIR            object code libraries [EPREFIX/lib]
   1379   --includedir=DIR        C header files [PREFIX/include]
   1380   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1381   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1382   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1383   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1384   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1385   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1386   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
   1387   --htmldir=DIR           html documentation [DOCDIR]
   1388   --dvidir=DIR            dvi documentation [DOCDIR]
   1389   --pdfdir=DIR            pdf documentation [DOCDIR]
   1390   --psdir=DIR             ps documentation [DOCDIR]
   1391 _ACEOF
   1392 
   1393   cat <<\_ACEOF
   1394 
   1395 Program names:
   1396   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1397   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1398   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1399 
   1400 System types:
   1401   --build=BUILD     configure for building on BUILD [guessed]
   1402   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1403 _ACEOF
   1404 fi
   1405 
   1406 if test -n "$ac_init_help"; then
   1407   case $ac_init_help in
   1408      short | recursive ) echo "Configuration of c-ares 1.7.5:";;
   1409    esac
   1410   cat <<\_ACEOF
   1411 
   1412 Optional Features:
   1413   --disable-option-checking  ignore unrecognized --enable/--with options
   1414   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1415   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1416   --enable-maintainer-mode  enable make rules and dependencies not useful
   1417 			  (and sometimes confusing) to the casual installer
   1418   --enable-debug          Enable debug build options
   1419   --disable-debug         Disable debug build options
   1420   --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
   1421   --disable-optimize      Disable compiler optimizations
   1422   --enable-warnings       Enable strict compiler warnings
   1423   --disable-warnings      Disable strict compiler warnings
   1424   --enable-werror         Enable compiler warnings as errors
   1425   --disable-werror        Disable compiler warnings as errors
   1426   --enable-curldebug      Enable curl debug memory tracking
   1427   --disable-curldebug     Disable curl debug memory tracking
   1428   --enable-symbol-hiding  Enable hiding of library internal symbols
   1429   --disable-symbol-hiding Disable hiding of library internal symbols
   1430   --disable-dependency-tracking  speeds up one-time build
   1431   --enable-dependency-tracking   do not reject slow dependency extractors
   1432   --disable-largefile     omit support for large files
   1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1434   --enable-static[=PKGS]  build static libraries [default=yes]
   1435   --enable-fast-install[=PKGS]
   1436                           optimize for fast installation [default=yes]
   1437   --disable-libtool-lock  avoid locking (might break parallel builds)
   1438   --enable-libgcc         use libgcc when linking
   1439   --enable-nonblocking    Enable non-blocking communications
   1440   --disable-nonblocking   Disable non-blocking communications
   1441 
   1442 Optional Packages:
   1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1445   --with-pic              try to use only PIC/non-PIC objects [default=use
   1446                           both]
   1447   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1448   --with-sysroot=DIR Search for dependent libraries within DIR
   1449                         (or the compiler's sysroot if not specified).
   1450   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
   1451 
   1452 Some influential environment variables:
   1453   CC          C compiler command
   1454   CFLAGS      C compiler flags
   1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1456               nonstandard directory <lib dir>
   1457   LIBS        libraries to pass to the linker, e.g. -l<library>
   1458   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1459               you have headers in a nonstandard directory <include dir>
   1460   CPP         C preprocessor
   1461 
   1462 Use these variables to override the choices made by `configure' or to help
   1463 it to find libraries and programs with nonstandard names/locations.
   1464 
   1465 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
   1466 _ACEOF
   1467 ac_status=$?
   1468 fi
   1469 
   1470 if test "$ac_init_help" = "recursive"; then
   1471   # If there are subdirs, report their specific --help.
   1472   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1473     test -d "$ac_dir" ||
   1474       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1475       continue
   1476     ac_builddir=.
   1477 
   1478 case "$ac_dir" in
   1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1480 *)
   1481   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1482   # A ".." for each directory in $ac_dir_suffix.
   1483   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1484   case $ac_top_builddir_sub in
   1485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1487   esac ;;
   1488 esac
   1489 ac_abs_top_builddir=$ac_pwd
   1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1491 # for backward compatibility:
   1492 ac_top_builddir=$ac_top_build_prefix
   1493 
   1494 case $srcdir in
   1495   .)  # We are building in place.
   1496     ac_srcdir=.
   1497     ac_top_srcdir=$ac_top_builddir_sub
   1498     ac_abs_top_srcdir=$ac_pwd ;;
   1499   [\\/]* | ?:[\\/]* )  # Absolute name.
   1500     ac_srcdir=$srcdir$ac_dir_suffix;
   1501     ac_top_srcdir=$srcdir
   1502     ac_abs_top_srcdir=$srcdir ;;
   1503   *) # Relative name.
   1504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1505     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1507 esac
   1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1509 
   1510     cd "$ac_dir" || { ac_status=$?; continue; }
   1511     # Check for guested configure.
   1512     if test -f "$ac_srcdir/configure.gnu"; then
   1513       echo &&
   1514       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1515     elif test -f "$ac_srcdir/configure"; then
   1516       echo &&
   1517       $SHELL "$ac_srcdir/configure" --help=recursive
   1518     else
   1519       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1520     fi || ac_status=$?
   1521     cd "$ac_pwd" || { ac_status=$?; break; }
   1522   done
   1523 fi
   1524 
   1525 test -n "$ac_init_help" && exit $ac_status
   1526 if $ac_init_version; then
   1527   cat <<\_ACEOF
   1528 c-ares configure 1.7.5
   1529 generated by GNU Autoconf 2.68
   1530 
   1531 Copyright (C) 2010 Free Software Foundation, Inc.
   1532 This configure script is free software; the Free Software Foundation
   1533 gives unlimited permission to copy, distribute and modify it.
   1534 _ACEOF
   1535   exit
   1536 fi
   1537 
   1538 ## ------------------------ ##
   1539 ## Autoconf initialization. ##
   1540 ## ------------------------ ##
   1541 
   1542 # ac_fn_c_try_compile LINENO
   1543 # --------------------------
   1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1545 ac_fn_c_try_compile ()
   1546 {
   1547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1548   rm -f conftest.$ac_objext
   1549   if { { ac_try="$ac_compile"
   1550 case "(($ac_try" in
   1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1552   *) ac_try_echo=$ac_try;;
   1553 esac
   1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1555 $as_echo "$ac_try_echo"; } >&5
   1556   (eval "$ac_compile") 2>conftest.err
   1557   ac_status=$?
   1558   if test -s conftest.err; then
   1559     grep -v '^ *+' conftest.err >conftest.er1
   1560     cat conftest.er1 >&5
   1561     mv -f conftest.er1 conftest.err
   1562   fi
   1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1564   test $ac_status = 0; } && {
   1565 	 test -z "$ac_c_werror_flag" ||
   1566 	 test ! -s conftest.err
   1567        } && test -s conftest.$ac_objext; then :
   1568   ac_retval=0
   1569 else
   1570   $as_echo "$as_me: failed program was:" >&5
   1571 sed 's/^/| /' conftest.$ac_ext >&5
   1572 
   1573 	ac_retval=1
   1574 fi
   1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1576   as_fn_set_status $ac_retval
   1577 
   1578 } # ac_fn_c_try_compile
   1579 
   1580 # ac_fn_c_try_cpp LINENO
   1581 # ----------------------
   1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1583 ac_fn_c_try_cpp ()
   1584 {
   1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1586   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1587 case "(($ac_try" in
   1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1589   *) ac_try_echo=$ac_try;;
   1590 esac
   1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1592 $as_echo "$ac_try_echo"; } >&5
   1593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1594   ac_status=$?
   1595   if test -s conftest.err; then
   1596     grep -v '^ *+' conftest.err >conftest.er1
   1597     cat conftest.er1 >&5
   1598     mv -f conftest.er1 conftest.err
   1599   fi
   1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1601   test $ac_status = 0; } > conftest.i && {
   1602 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1603 	 test ! -s conftest.err
   1604        }; then :
   1605   ac_retval=0
   1606 else
   1607   $as_echo "$as_me: failed program was:" >&5
   1608 sed 's/^/| /' conftest.$ac_ext >&5
   1609 
   1610     ac_retval=1
   1611 fi
   1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1613   as_fn_set_status $ac_retval
   1614 
   1615 } # ac_fn_c_try_cpp
   1616 
   1617 # ac_fn_c_try_link LINENO
   1618 # -----------------------
   1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1620 ac_fn_c_try_link ()
   1621 {
   1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1623   rm -f conftest.$ac_objext conftest$ac_exeext
   1624   if { { ac_try="$ac_link"
   1625 case "(($ac_try" in
   1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1627   *) ac_try_echo=$ac_try;;
   1628 esac
   1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1630 $as_echo "$ac_try_echo"; } >&5
   1631   (eval "$ac_link") 2>conftest.err
   1632   ac_status=$?
   1633   if test -s conftest.err; then
   1634     grep -v '^ *+' conftest.err >conftest.er1
   1635     cat conftest.er1 >&5
   1636     mv -f conftest.er1 conftest.err
   1637   fi
   1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1639   test $ac_status = 0; } && {
   1640 	 test -z "$ac_c_werror_flag" ||
   1641 	 test ! -s conftest.err
   1642        } && test -s conftest$ac_exeext && {
   1643 	 test "$cross_compiling" = yes ||
   1644 	 $as_test_x conftest$ac_exeext
   1645        }; then :
   1646   ac_retval=0
   1647 else
   1648   $as_echo "$as_me: failed program was:" >&5
   1649 sed 's/^/| /' conftest.$ac_ext >&5
   1650 
   1651 	ac_retval=1
   1652 fi
   1653   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1654   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1655   # interfere with the next link command; also delete a directory that is
   1656   # left behind by Apple's compiler.  We do this before executing the actions.
   1657   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1659   as_fn_set_status $ac_retval
   1660 
   1661 } # ac_fn_c_try_link
   1662 
   1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1664 # -------------------------------------------------------
   1665 # Tests whether HEADER exists and can be compiled using the include files in
   1666 # INCLUDES, setting the cache variable VAR accordingly.
   1667 ac_fn_c_check_header_compile ()
   1668 {
   1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1671 $as_echo_n "checking for $2... " >&6; }
   1672 if eval \${$3+:} false; then :
   1673   $as_echo_n "(cached) " >&6
   1674 else
   1675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1676 /* end confdefs.h.  */
   1677 $4
   1678 #include <$2>
   1679 _ACEOF
   1680 if ac_fn_c_try_compile "$LINENO"; then :
   1681   eval "$3=yes"
   1682 else
   1683   eval "$3=no"
   1684 fi
   1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1686 fi
   1687 eval ac_res=\$$3
   1688 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1689 $as_echo "$ac_res" >&6; }
   1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1691 
   1692 } # ac_fn_c_check_header_compile
   1693 
   1694 # ac_fn_c_try_run LINENO
   1695 # ----------------------
   1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1697 # that executables *can* be run.
   1698 ac_fn_c_try_run ()
   1699 {
   1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1701   if { { ac_try="$ac_link"
   1702 case "(($ac_try" in
   1703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1704   *) ac_try_echo=$ac_try;;
   1705 esac
   1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1707 $as_echo "$ac_try_echo"; } >&5
   1708   (eval "$ac_link") 2>&5
   1709   ac_status=$?
   1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1711   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1712   { { case "(($ac_try" in
   1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1714   *) ac_try_echo=$ac_try;;
   1715 esac
   1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1717 $as_echo "$ac_try_echo"; } >&5
   1718   (eval "$ac_try") 2>&5
   1719   ac_status=$?
   1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1721   test $ac_status = 0; }; }; then :
   1722   ac_retval=0
   1723 else
   1724   $as_echo "$as_me: program exited with status $ac_status" >&5
   1725        $as_echo "$as_me: failed program was:" >&5
   1726 sed 's/^/| /' conftest.$ac_ext >&5
   1727 
   1728        ac_retval=$ac_status
   1729 fi
   1730   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1732   as_fn_set_status $ac_retval
   1733 
   1734 } # ac_fn_c_try_run
   1735 
   1736 # ac_fn_c_check_func LINENO FUNC VAR
   1737 # ----------------------------------
   1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1739 ac_fn_c_check_func ()
   1740 {
   1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1743 $as_echo_n "checking for $2... " >&6; }
   1744 if eval \${$3+:} false; then :
   1745   $as_echo_n "(cached) " >&6
   1746 else
   1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1748 /* end confdefs.h.  */
   1749 
   1750 #define $2 innocuous_$2
   1751 #ifdef __STDC__
   1752 # include <limits.h>
   1753 #else
   1754 # include <assert.h>
   1755 #endif
   1756 #undef $2
   1757 #ifdef __cplusplus
   1758 extern "C"
   1759 #endif
   1760 char $2 ();
   1761 #if defined __stub_$2 || defined __stub___$2
   1762 choke me
   1763 #endif
   1764 
   1765 int main (void)
   1766 {
   1767 return $2 ();
   1768  ;
   1769  return 0;
   1770 }
   1771 _ACEOF
   1772 if ac_fn_c_try_link "$LINENO"; then :
   1773   eval "$3=yes"
   1774 else
   1775   eval "$3=no"
   1776 fi
   1777 rm -f core conftest.err conftest.$ac_objext \
   1778     conftest$ac_exeext conftest.$ac_ext
   1779 fi
   1780 eval ac_res=\$$3
   1781 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1782 $as_echo "$ac_res" >&6; }
   1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1784 
   1785 } # ac_fn_c_check_func
   1786 
   1787 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1788 # -------------------------------------------------------
   1789 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1790 # the include files in INCLUDES and setting the cache variable VAR
   1791 # accordingly.
   1792 ac_fn_c_check_header_mongrel ()
   1793 {
   1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1795   if eval \${$3+:} false; then :
   1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1797 $as_echo_n "checking for $2... " >&6; }
   1798 if eval \${$3+:} false; then :
   1799   $as_echo_n "(cached) " >&6
   1800 fi
   1801 eval ac_res=\$$3
   1802 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1803 $as_echo "$ac_res" >&6; }
   1804 else
   1805   # Is the header compilable?
   1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1807 $as_echo_n "checking $2 usability... " >&6; }
   1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1809 /* end confdefs.h.  */
   1810 $4
   1811 #include <$2>
   1812 _ACEOF
   1813 if ac_fn_c_try_compile "$LINENO"; then :
   1814   ac_header_compiler=yes
   1815 else
   1816   ac_header_compiler=no
   1817 fi
   1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1820 $as_echo "$ac_header_compiler" >&6; }
   1821 
   1822 # Is the header present?
   1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1824 $as_echo_n "checking $2 presence... " >&6; }
   1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1826 /* end confdefs.h.  */
   1827 #include <$2>
   1828 _ACEOF
   1829 if ac_fn_c_try_cpp "$LINENO"; then :
   1830   ac_header_preproc=yes
   1831 else
   1832   ac_header_preproc=no
   1833 fi
   1834 rm -f conftest.err conftest.i conftest.$ac_ext
   1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1836 $as_echo "$ac_header_preproc" >&6; }
   1837 
   1838 # So?  What about this header?
   1839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1840   yes:no: )
   1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1842 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1845     ;;
   1846   no:yes:* )
   1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1848 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1850 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1852 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1854 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1857 ( $as_echo "## ------------------------------------------------------------------------------- ##
   1858 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
   1859 ## ------------------------------------------------------------------------------- ##"
   1860      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1861     ;;
   1862 esac
   1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1864 $as_echo_n "checking for $2... " >&6; }
   1865 if eval \${$3+:} false; then :
   1866   $as_echo_n "(cached) " >&6
   1867 else
   1868   eval "$3=\$ac_header_compiler"
   1869 fi
   1870 eval ac_res=\$$3
   1871 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1872 $as_echo "$ac_res" >&6; }
   1873 fi
   1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1875 
   1876 } # ac_fn_c_check_header_mongrel
   1877 
   1878 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1879 # -------------------------------------------
   1880 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1881 # variable VAR accordingly.
   1882 ac_fn_c_check_type ()
   1883 {
   1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1886 $as_echo_n "checking for $2... " >&6; }
   1887 if eval \${$3+:} false; then :
   1888   $as_echo_n "(cached) " >&6
   1889 else
   1890   eval "$3=no"
   1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1892 /* end confdefs.h.  */
   1893 $4
   1894 int main (void)
   1895 {
   1896 if (sizeof ($2))
   1897 	 return 0;
   1898  ;
   1899  return 0;
   1900 }
   1901 _ACEOF
   1902 if ac_fn_c_try_compile "$LINENO"; then :
   1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1904 /* end confdefs.h.  */
   1905 $4
   1906 int main (void)
   1907 {
   1908 if (sizeof (($2)))
   1909 	    return 0;
   1910  ;
   1911  return 0;
   1912 }
   1913 _ACEOF
   1914 if ac_fn_c_try_compile "$LINENO"; then :
   1915 
   1916 else
   1917   eval "$3=yes"
   1918 fi
   1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1920 fi
   1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1922 fi
   1923 eval ac_res=\$$3
   1924 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1925 $as_echo "$ac_res" >&6; }
   1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1927 
   1928 } # ac_fn_c_check_type
   1929 
   1930 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1931 # --------------------------------------------
   1932 # Tries to find the compile-time value of EXPR in a program that includes
   1933 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1934 # computed
   1935 ac_fn_c_compute_int ()
   1936 {
   1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1938   if test "$cross_compiling" = yes; then
   1939     # Depending upon the size, compute the lo and hi bounds.
   1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1941 /* end confdefs.h.  */
   1942 $4
   1943 int main (void)
   1944 {
   1945 static int test_array [1 - 2 * !(($2) >= 0)];
   1946 test_array [0] = 0
   1947 
   1948  ;
   1949  return 0;
   1950 }
   1951 _ACEOF
   1952 if ac_fn_c_try_compile "$LINENO"; then :
   1953   ac_lo=0 ac_mid=0
   1954   while :; do
   1955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1956 /* end confdefs.h.  */
   1957 $4
   1958 int main (void)
   1959 {
   1960 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1961 test_array [0] = 0
   1962 
   1963  ;
   1964  return 0;
   1965 }
   1966 _ACEOF
   1967 if ac_fn_c_try_compile "$LINENO"; then :
   1968   ac_hi=$ac_mid; break
   1969 else
   1970   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1971 			if test $ac_lo -le $ac_mid; then
   1972 			  ac_lo= ac_hi=
   1973 			  break
   1974 			fi
   1975 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1976 fi
   1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1978   done
   1979 else
   1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1981 /* end confdefs.h.  */
   1982 $4
   1983 int main (void)
   1984 {
   1985 static int test_array [1 - 2 * !(($2) < 0)];
   1986 test_array [0] = 0
   1987 
   1988  ;
   1989  return 0;
   1990 }
   1991 _ACEOF
   1992 if ac_fn_c_try_compile "$LINENO"; then :
   1993   ac_hi=-1 ac_mid=-1
   1994   while :; do
   1995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1996 /* end confdefs.h.  */
   1997 $4
   1998 int main (void)
   1999 {
   2000 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2001 test_array [0] = 0
   2002 
   2003  ;
   2004  return 0;
   2005 }
   2006 _ACEOF
   2007 if ac_fn_c_try_compile "$LINENO"; then :
   2008   ac_lo=$ac_mid; break
   2009 else
   2010   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2011 			if test $ac_mid -le $ac_hi; then
   2012 			  ac_lo= ac_hi=
   2013 			  break
   2014 			fi
   2015 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2016 fi
   2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2018   done
   2019 else
   2020   ac_lo= ac_hi=
   2021 fi
   2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2023 fi
   2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2025 # Binary search between lo and hi bounds.
   2026 while test "x$ac_lo" != "x$ac_hi"; do
   2027   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2029 /* end confdefs.h.  */
   2030 $4
   2031 int main (void)
   2032 {
   2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2034 test_array [0] = 0
   2035 
   2036  ;
   2037  return 0;
   2038 }
   2039 _ACEOF
   2040 if ac_fn_c_try_compile "$LINENO"; then :
   2041   ac_hi=$ac_mid
   2042 else
   2043   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2044 fi
   2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2046 done
   2047 case $ac_lo in #((
   2048 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2049 '') ac_retval=1 ;;
   2050 esac
   2051   else
   2052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2053 /* end confdefs.h.  */
   2054 $4
   2055 static long int longval () { return $2; }
   2056 static unsigned long int ulongval () { return $2; }
   2057 #include <stdio.h>
   2058 #include <stdlib.h>
   2059 int main (void)
   2060 {
   2061 
   2062   FILE *f = fopen ("conftest.val", "w");
   2063   if (! f)
   2064     return 1;
   2065   if (($2) < 0)
   2066     {
   2067       long int i = longval ();
   2068       if (i != ($2))
   2069 	return 1;
   2070       fprintf (f, "%ld", i);
   2071     }
   2072   else
   2073     {
   2074       unsigned long int i = ulongval ();
   2075       if (i != ($2))
   2076 	return 1;
   2077       fprintf (f, "%lu", i);
   2078     }
   2079   /* Do not output a trailing newline, as this causes \r\n confusion
   2080      on some platforms.  */
   2081   return ferror (f) || fclose (f) != 0;
   2082 
   2083  ;
   2084  return 0;
   2085 }
   2086 _ACEOF
   2087 if ac_fn_c_try_run "$LINENO"; then :
   2088   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2089 else
   2090   ac_retval=1
   2091 fi
   2092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2093   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2094 rm -f conftest.val
   2095 
   2096   fi
   2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2098   as_fn_set_status $ac_retval
   2099 
   2100 } # ac_fn_c_compute_int
   2101 
   2102 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2103 # ----------------------------------------------------
   2104 # Tries to find if the field MEMBER exists in type AGGR, after including
   2105 # INCLUDES, setting cache variable VAR accordingly.
   2106 ac_fn_c_check_member ()
   2107 {
   2108   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2110 $as_echo_n "checking for $2.$3... " >&6; }
   2111 if eval \${$4+:} false; then :
   2112   $as_echo_n "(cached) " >&6
   2113 else
   2114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2115 /* end confdefs.h.  */
   2116 $5
   2117 int main (void)
   2118 {
   2119 static $2 ac_aggr;
   2120 if (ac_aggr.$3)
   2121 return 0;
   2122  ;
   2123  return 0;
   2124 }
   2125 _ACEOF
   2126 if ac_fn_c_try_compile "$LINENO"; then :
   2127   eval "$4=yes"
   2128 else
   2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2130 /* end confdefs.h.  */
   2131 $5
   2132 int main (void)
   2133 {
   2134 static $2 ac_aggr;
   2135 if (sizeof ac_aggr.$3)
   2136 return 0;
   2137  ;
   2138  return 0;
   2139 }
   2140 _ACEOF
   2141 if ac_fn_c_try_compile "$LINENO"; then :
   2142   eval "$4=yes"
   2143 else
   2144   eval "$4=no"
   2145 fi
   2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2147 fi
   2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2149 fi
   2150 eval ac_res=\$$4
   2151 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2152 $as_echo "$ac_res" >&6; }
   2153   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2154 
   2155 } # ac_fn_c_check_member
   2156 cat >config.log <<_ACEOF
   2157 This file contains any messages produced by compilers while
   2158 running configure, to aid debugging if configure makes a mistake.
   2159 
   2160 It was created by c-ares $as_me 1.7.5, which was
   2161 generated by GNU Autoconf 2.68.  Invocation command line was
   2162 
   2163   $ $0 $@
   2164 
   2165 _ACEOF
   2166 exec 5>>config.log
   2167 {
   2168 cat <<_ASUNAME
   2169 ## --------- ##
   2170 ## Platform. ##
   2171 ## --------- ##
   2172 
   2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2178 
   2179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2180 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2181 
   2182 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2183 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2185 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2186 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2187 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2188 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2189 
   2190 _ASUNAME
   2191 
   2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2193 for as_dir in $PATH
   2194 do
   2195   IFS=$as_save_IFS
   2196   test -z "$as_dir" && as_dir=.
   2197     $as_echo "PATH: $as_dir"
   2198   done
   2199 IFS=$as_save_IFS
   2200 
   2201 } >&5
   2202 
   2203 cat >&5 <<_ACEOF
   2204 
   2205 
   2206 ## ----------- ##
   2207 ## Core tests. ##
   2208 ## ----------- ##
   2209 
   2210 _ACEOF
   2211 
   2212 
   2213 # Keep a trace of the command line.
   2214 # Strip out --no-create and --no-recursion so they do not pile up.
   2215 # Strip out --silent because we don't want to record it for future runs.
   2216 # Also quote any args containing shell meta-characters.
   2217 # Make two passes to allow for proper duplicate-argument suppression.
   2218 ac_configure_args=
   2219 ac_configure_args0=
   2220 ac_configure_args1=
   2221 ac_must_keep_next=false
   2222 for ac_pass in 1 2
   2223 do
   2224   for ac_arg
   2225   do
   2226     case $ac_arg in
   2227     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2228     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2229     | -silent | --silent | --silen | --sile | --sil)
   2230       continue ;;
   2231     *\'*)
   2232       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2233     esac
   2234     case $ac_pass in
   2235     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2236     2)
   2237       as_fn_append ac_configure_args1 " '$ac_arg'"
   2238       if test $ac_must_keep_next = true; then
   2239 	ac_must_keep_next=false # Got value, back to normal.
   2240       else
   2241 	case $ac_arg in
   2242 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2243 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2244 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2245 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2246 	    case "$ac_configure_args0 " in
   2247 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2248 	    esac
   2249 	    ;;
   2250 	  -* ) ac_must_keep_next=true ;;
   2251 	esac
   2252       fi
   2253       as_fn_append ac_configure_args " '$ac_arg'"
   2254       ;;
   2255     esac
   2256   done
   2257 done
   2258 { ac_configure_args0=; unset ac_configure_args0;}
   2259 { ac_configure_args1=; unset ac_configure_args1;}
   2260 
   2261 # When interrupted or exit'd, cleanup temporary files, and complete
   2262 # config.log.  We remove comments because anyway the quotes in there
   2263 # would cause problems or look ugly.
   2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2266 trap 'exit_status=$?
   2267   # Save into config.log some information that might help in debugging.
   2268   {
   2269     echo
   2270 
   2271     $as_echo "## ---------------- ##
   2272 ## Cache variables. ##
   2273 ## ---------------- ##"
   2274     echo
   2275     # The following way of writing the cache mishandles newlines in values,
   2276 (
   2277   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2278     eval ac_val=\$$ac_var
   2279     case $ac_val in #(
   2280     *${as_nl}*)
   2281       case $ac_var in #(
   2282       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2283 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2284       esac
   2285       case $ac_var in #(
   2286       _ | IFS | as_nl) ;; #(
   2287       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2288       *) { eval $ac_var=; unset $ac_var;} ;;
   2289       esac ;;
   2290     esac
   2291   done
   2292   (set) 2>&1 |
   2293     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2294     *${as_nl}ac_space=\ *)
   2295       sed -n \
   2296 	"s/'\''/'\''\\\\'\'''\''/g;
   2297 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2298       ;; #(
   2299     *)
   2300       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2301       ;;
   2302     esac |
   2303     sort
   2304 )
   2305     echo
   2306 
   2307     $as_echo "## ----------------- ##
   2308 ## Output variables. ##
   2309 ## ----------------- ##"
   2310     echo
   2311     for ac_var in $ac_subst_vars
   2312     do
   2313       eval ac_val=\$$ac_var
   2314       case $ac_val in
   2315       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2316       esac
   2317       $as_echo "$ac_var='\''$ac_val'\''"
   2318     done | sort
   2319     echo
   2320 
   2321     if test -n "$ac_subst_files"; then
   2322       $as_echo "## ------------------- ##
   2323 ## File substitutions. ##
   2324 ## ------------------- ##"
   2325       echo
   2326       for ac_var in $ac_subst_files
   2327       do
   2328 	eval ac_val=\$$ac_var
   2329 	case $ac_val in
   2330 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2331 	esac
   2332 	$as_echo "$ac_var='\''$ac_val'\''"
   2333       done | sort
   2334       echo
   2335     fi
   2336 
   2337     if test -s confdefs.h; then
   2338       $as_echo "## ----------- ##
   2339 ## confdefs.h. ##
   2340 ## ----------- ##"
   2341       echo
   2342       cat confdefs.h
   2343       echo
   2344     fi
   2345     test "$ac_signal" != 0 &&
   2346       $as_echo "$as_me: caught signal $ac_signal"
   2347     $as_echo "$as_me: exit $exit_status"
   2348   } >&5
   2349   rm -f core *.core core.conftest.* &&
   2350     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2351     exit $exit_status
   2352 ' 0
   2353 for ac_signal in 1 2 13 15; do
   2354   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2355 done
   2356 ac_signal=0
   2357 
   2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2359 rm -f -r conftest* confdefs.h
   2360 
   2361 $as_echo "/* confdefs.h */" > confdefs.h
   2362 
   2363 # Predefined preprocessor variables.
   2364 
   2365 cat >>confdefs.h <<_ACEOF
   2366 #define PACKAGE_NAME "$PACKAGE_NAME"
   2367 _ACEOF
   2368 
   2369 cat >>confdefs.h <<_ACEOF
   2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2371 _ACEOF
   2372 
   2373 cat >>confdefs.h <<_ACEOF
   2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2375 _ACEOF
   2376 
   2377 cat >>confdefs.h <<_ACEOF
   2378 #define PACKAGE_STRING "$PACKAGE_STRING"
   2379 _ACEOF
   2380 
   2381 cat >>confdefs.h <<_ACEOF
   2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2383 _ACEOF
   2384 
   2385 cat >>confdefs.h <<_ACEOF
   2386 #define PACKAGE_URL "$PACKAGE_URL"
   2387 _ACEOF
   2388 
   2389 
   2390 # Let the site file select an alternate cache file if it wants to.
   2391 # Prefer an explicitly selected file to automatically selected ones.
   2392 ac_site_file1=NONE
   2393 ac_site_file2=NONE
   2394 if test -n "$CONFIG_SITE"; then
   2395   # We do not want a PATH search for config.site.
   2396   case $CONFIG_SITE in #((
   2397     -*)  ac_site_file1=./$CONFIG_SITE;;
   2398     */*) ac_site_file1=$CONFIG_SITE;;
   2399     *)   ac_site_file1=./$CONFIG_SITE;;
   2400   esac
   2401 elif test "x$prefix" != xNONE; then
   2402   ac_site_file1=$prefix/share/config.site
   2403   ac_site_file2=$prefix/etc/config.site
   2404 else
   2405   ac_site_file1=$ac_default_prefix/share/config.site
   2406   ac_site_file2=$ac_default_prefix/etc/config.site
   2407 fi
   2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2409 do
   2410   test "x$ac_site_file" = xNONE && continue
   2411   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2412     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2414     sed 's/^/| /' "$ac_site_file" >&5
   2415     . "$ac_site_file" \
   2416       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2418 as_fn_error $? "failed to load site script $ac_site_file
   2419 See \`config.log' for more details" "$LINENO" 5; }
   2420   fi
   2421 done
   2422 
   2423 if test -r "$cache_file"; then
   2424   # Some versions of bash will fail to source /dev/null (special files
   2425   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2426   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2427     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2429     case $cache_file in
   2430       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2431       *)                      . "./$cache_file";;
   2432     esac
   2433   fi
   2434 else
   2435   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2437   >$cache_file
   2438 fi
   2439 
   2440 # Check that the precious variables saved in the cache have kept the same
   2441 # value.
   2442 ac_cache_corrupted=false
   2443 for ac_var in $ac_precious_vars; do
   2444   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2445   eval ac_new_set=\$ac_env_${ac_var}_set
   2446   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2447   eval ac_new_val=\$ac_env_${ac_var}_value
   2448   case $ac_old_set,$ac_new_set in
   2449     set,)
   2450       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2452       ac_cache_corrupted=: ;;
   2453     ,set)
   2454       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2456       ac_cache_corrupted=: ;;
   2457     ,);;
   2458     *)
   2459       if test "x$ac_old_val" != "x$ac_new_val"; then
   2460 	# differences in whitespace do not lead to failure.
   2461 	ac_old_val_w=`echo x $ac_old_val`
   2462 	ac_new_val_w=`echo x $ac_new_val`
   2463 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2464 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2466 	  ac_cache_corrupted=:
   2467 	else
   2468 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2470 	  eval $ac_var=\$ac_old_val
   2471 	fi
   2472 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2473 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2474 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2475 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2476       fi;;
   2477   esac
   2478   # Pass precious variables to config.status.
   2479   if test "$ac_new_set" = set; then
   2480     case $ac_new_val in
   2481     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2482     *) ac_arg=$ac_var=$ac_new_val ;;
   2483     esac
   2484     case " $ac_configure_args " in
   2485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2486       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2487     esac
   2488   fi
   2489 done
   2490 if $ac_cache_corrupted; then
   2491   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2493   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2495   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2496 fi
   2497 ## -------------------- ##
   2498 ## Main body of script. ##
   2499 ## -------------------- ##
   2500 
   2501 ac_ext=c
   2502 ac_cpp='$CPP $CPPFLAGS'
   2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2506 
   2507 
   2508 
   2509 
   2510 
   2511 # using cares-override.m4
   2512 
   2513 
   2514 
   2515 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
   2516 
   2517 :
   2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2519 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2520     # Check whether --enable-maintainer-mode was given.
   2521 if test "${enable_maintainer_mode+set}" = set; then :
   2522   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2523 else
   2524   USE_MAINTAINER_MODE=no
   2525 fi
   2526 
   2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2528 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2529 
   2530 
   2531 if test $USE_MAINTAINER_MODE = yes; then
   2532   MAINTAINER_MODE_TRUE=
   2533   MAINTAINER_MODE_FALSE='#'
   2534 else
   2535   MAINTAINER_MODE_TRUE='#'
   2536   MAINTAINER_MODE_FALSE=
   2537 fi
   2538 
   2539   MAINT=$MAINTAINER_MODE_TRUE
   2540 
   2541 
   2542 
   2543 
   2544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
   2545 $as_echo_n "checking whether to enable debug build options... " >&6; }
   2546   OPT_DEBUG_BUILD="default"
   2547   # Check whether --enable-debug was given.
   2548 if test "${enable_debug+set}" = set; then :
   2549   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
   2550 fi
   2551 
   2552   case "$OPT_DEBUG_BUILD" in
   2553     no)
   2554             want_debug="no"
   2555       ;;
   2556     default)
   2557             want_debug="no"
   2558       ;;
   2559     *)
   2560             want_debug="yes"
   2561       ;;
   2562   esac
   2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
   2564 $as_echo "$want_debug" >&6; }
   2565 
   2566 
   2567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
   2568 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
   2569   OPT_COMPILER_OPTIMIZE="default"
   2570   # Check whether --enable-optimize was given.
   2571 if test "${enable_optimize+set}" = set; then :
   2572   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
   2573 fi
   2574 
   2575   case "$OPT_COMPILER_OPTIMIZE" in
   2576     no)
   2577                               want_optimize="no"
   2578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2579 $as_echo "no" >&6; }
   2580       ;;
   2581     default)
   2582                                                                         if test "$want_debug" = "yes"; then
   2583         want_optimize="assume_no"
   2584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
   2585 $as_echo "not specified (assuming no)" >&6; }
   2586       else
   2587         want_optimize="assume_yes"
   2588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
   2589 $as_echo "not specified (assuming yes)" >&6; }
   2590       fi
   2591       ;;
   2592     *)
   2593                               want_optimize="yes"
   2594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2595 $as_echo "yes" >&6; }
   2596       ;;
   2597   esac
   2598 
   2599 
   2600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
   2601 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
   2602   OPT_COMPILER_WARNINGS="default"
   2603   # Check whether --enable-warnings was given.
   2604 if test "${enable_warnings+set}" = set; then :
   2605   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
   2606 fi
   2607 
   2608   case "$OPT_COMPILER_WARNINGS" in
   2609     no)
   2610             want_warnings="no"
   2611       ;;
   2612     default)
   2613                   want_warnings="$want_debug"
   2614       ;;
   2615     *)
   2616             want_warnings="yes"
   2617       ;;
   2618   esac
   2619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
   2620 $as_echo "$want_warnings" >&6; }
   2621 
   2622 
   2623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
   2624 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
   2625   OPT_COMPILER_WERROR="default"
   2626   # Check whether --enable-werror was given.
   2627 if test "${enable_werror+set}" = set; then :
   2628   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
   2629 fi
   2630 
   2631   case "$OPT_COMPILER_WERROR" in
   2632     no)
   2633             want_werror="no"
   2634       ;;
   2635     default)
   2636             want_werror="no"
   2637       ;;
   2638     *)
   2639             want_werror="yes"
   2640       ;;
   2641   esac
   2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
   2643 $as_echo "$want_werror" >&6; }
   2644 
   2645 
   2646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
   2647 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
   2648   OPT_CURLDEBUG_BUILD="default"
   2649   # Check whether --enable-curldebug was given.
   2650 if test "${enable_curldebug+set}" = set; then :
   2651   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
   2652 fi
   2653 
   2654   case "$OPT_CURLDEBUG_BUILD" in
   2655     no)
   2656             want_curldebug="no"
   2657       ;;
   2658     default)
   2659             want_curldebug="no"
   2660       ;;
   2661     *)
   2662                                                       want_curldebug="yes"
   2663       ;;
   2664   esac
   2665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
   2666 $as_echo "$want_curldebug" >&6; }
   2667 
   2668 
   2669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
   2670 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
   2671   OPT_SYMBOL_HIDING="default"
   2672   # Check whether --enable-symbol-hiding was given.
   2673 if test "${enable_symbol_hiding+set}" = set; then :
   2674   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
   2675 fi
   2676 
   2677   case "$OPT_SYMBOL_HIDING" in
   2678     no)
   2679                               want_symbol_hiding="no"
   2680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2681 $as_echo "no" >&6; }
   2682       ;;
   2683     default)
   2684                   want_symbol_hiding="yes"
   2685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2686 $as_echo "yes" >&6; }
   2687       ;;
   2688     *)
   2689                         want_symbol_hiding="yes"
   2690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2691 $as_echo "yes" >&6; }
   2692       ;;
   2693   esac
   2694 
   2695 
   2696 
   2697 
   2698 
   2699 # Extract the first word of "sed", so it can be a program name with args.
   2700 set dummy sed; ac_word=$2
   2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2702 $as_echo_n "checking for $ac_word... " >&6; }
   2703 if ${ac_cv_path_SED+:} false; then :
   2704   $as_echo_n "(cached) " >&6
   2705 else
   2706   case $SED in
   2707   [\\/]* | ?:[\\/]*)
   2708   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   2709   ;;
   2710   *)
   2711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2712 as_dummy="$PATH:/usr/bin:/usr/local/bin"
   2713 for as_dir in $as_dummy
   2714 do
   2715   IFS=$as_save_IFS
   2716   test -z "$as_dir" && as_dir=.
   2717     for ac_exec_ext in '' $ac_executable_extensions; do
   2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2719     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   2720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2721     break 2
   2722   fi
   2723 done
   2724   done
   2725 IFS=$as_save_IFS
   2726 
   2727   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
   2728   ;;
   2729 esac
   2730 fi
   2731 SED=$ac_cv_path_SED
   2732 if test -n "$SED"; then
   2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
   2734 $as_echo "$SED" >&6; }
   2735 else
   2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2737 $as_echo "no" >&6; }
   2738 fi
   2739 
   2740 
   2741 if test -z "$SED" || test "$SED" = "not_found"; then
   2742   as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
   2743 fi
   2744 
   2745 
   2746 # Extract the first word of "grep", so it can be a program name with args.
   2747 set dummy grep; ac_word=$2
   2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2749 $as_echo_n "checking for $ac_word... " >&6; }
   2750 if ${ac_cv_path_GREP+:} false; then :
   2751   $as_echo_n "(cached) " >&6
   2752 else
   2753   case $GREP in
   2754   [\\/]* | ?:[\\/]*)
   2755   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
   2756   ;;
   2757   *)
   2758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2759 as_dummy="$PATH:/usr/bin:/usr/local/bin"
   2760 for as_dir in $as_dummy
   2761 do
   2762   IFS=$as_save_IFS
   2763   test -z "$as_dir" && as_dir=.
   2764     for ac_exec_ext in '' $ac_executable_extensions; do
   2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2766     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2768     break 2
   2769   fi
   2770 done
   2771   done
   2772 IFS=$as_save_IFS
   2773 
   2774   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
   2775   ;;
   2776 esac
   2777 fi
   2778 GREP=$ac_cv_path_GREP
   2779 if test -n "$GREP"; then
   2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
   2781 $as_echo "$GREP" >&6; }
   2782 else
   2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2784 $as_echo "no" >&6; }
   2785 fi
   2786 
   2787 
   2788 if test -z "$GREP" || test "$GREP" = "not_found"; then
   2789   as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
   2790 fi
   2791 
   2792 
   2793 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
   2794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   2795 $as_echo_n "checking for egrep... " >&6; }
   2796   EGREP="$GREP -E"
   2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
   2798 $as_echo "$EGREP" >&6; }
   2799 else
   2800   # Extract the first word of "egrep", so it can be a program name with args.
   2801 set dummy egrep; ac_word=$2
   2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2803 $as_echo_n "checking for $ac_word... " >&6; }
   2804 if ${ac_cv_path_EGREP+:} false; then :
   2805   $as_echo_n "(cached) " >&6
   2806 else
   2807   case $EGREP in
   2808   [\\/]* | ?:[\\/]*)
   2809   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
   2810   ;;
   2811   *)
   2812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2813 as_dummy="$PATH:/usr/bin:/usr/local/bin"
   2814 for as_dir in $as_dummy
   2815 do
   2816   IFS=$as_save_IFS
   2817   test -z "$as_dir" && as_dir=.
   2818     for ac_exec_ext in '' $ac_executable_extensions; do
   2819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2820     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
   2821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2822     break 2
   2823   fi
   2824 done
   2825   done
   2826 IFS=$as_save_IFS
   2827 
   2828   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
   2829   ;;
   2830 esac
   2831 fi
   2832 EGREP=$ac_cv_path_EGREP
   2833 if test -n "$EGREP"; then
   2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
   2835 $as_echo "$EGREP" >&6; }
   2836 else
   2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2838 $as_echo "no" >&6; }
   2839 fi
   2840 
   2841 
   2842 fi
   2843 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
   2844   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
   2845 fi
   2846 
   2847 
   2848 if test -n "$ac_tool_prefix"; then
   2849   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   2850 set dummy ${ac_tool_prefix}ar; ac_word=$2
   2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2852 $as_echo_n "checking for $ac_word... " >&6; }
   2853 if ${ac_cv_path_AR+:} false; then :
   2854   $as_echo_n "(cached) " >&6
   2855 else
   2856   case $AR in
   2857   [\\/]* | ?:[\\/]*)
   2858   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   2859   ;;
   2860   *)
   2861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2862 as_dummy="$PATH:/usr/bin:/usr/local/bin"
   2863 for as_dir in $as_dummy
   2864 do
   2865   IFS=$as_save_IFS
   2866   test -z "$as_dir" && as_dir=.
   2867     for ac_exec_ext in '' $ac_executable_extensions; do
   2868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2869     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   2870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2871     break 2
   2872   fi
   2873 done
   2874   done
   2875 IFS=$as_save_IFS
   2876 
   2877   ;;
   2878 esac
   2879 fi
   2880 AR=$ac_cv_path_AR
   2881 if test -n "$AR"; then
   2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   2883 $as_echo "$AR" >&6; }
   2884 else
   2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2886 $as_echo "no" >&6; }
   2887 fi
   2888 
   2889 
   2890 fi
   2891 if test -z "$ac_cv_path_AR"; then
   2892   ac_pt_AR=$AR
   2893   # Extract the first word of "ar", so it can be a program name with args.
   2894 set dummy ar; ac_word=$2
   2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2896 $as_echo_n "checking for $ac_word... " >&6; }
   2897 if ${ac_cv_path_ac_pt_AR+:} false; then :
   2898   $as_echo_n "(cached) " >&6
   2899 else
   2900   case $ac_pt_AR in
   2901   [\\/]* | ?:[\\/]*)
   2902   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
   2903   ;;
   2904   *)
   2905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2906 as_dummy="$PATH:/usr/bin:/usr/local/bin"
   2907 for as_dir in $as_dummy
   2908 do
   2909   IFS=$as_save_IFS
   2910   test -z "$as_dir" && as_dir=.
   2911     for ac_exec_ext in '' $ac_executable_extensions; do
   2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2913     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
   2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2915     break 2
   2916   fi
   2917 done
   2918   done
   2919 IFS=$as_save_IFS
   2920 
   2921   ;;
   2922 esac
   2923 fi
   2924 ac_pt_AR=$ac_cv_path_ac_pt_AR
   2925 if test -n "$ac_pt_AR"; then
   2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
   2927 $as_echo "$ac_pt_AR" >&6; }
   2928 else
   2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2930 $as_echo "no" >&6; }
   2931 fi
   2932 
   2933   if test "x$ac_pt_AR" = x; then
   2934     AR="not_found"
   2935   else
   2936     case $cross_compiling:$ac_tool_warned in
   2937 yes:)
   2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2940 ac_tool_warned=yes ;;
   2941 esac
   2942     AR=$ac_pt_AR
   2943   fi
   2944 else
   2945   AR="$ac_cv_path_AR"
   2946 fi
   2947 
   2948 if test -z "$AR" || test "$AR" = "not_found"; then
   2949   as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
   2950 fi
   2951 
   2952 
   2953 if test -f ${srcdir}/ares_build.h; then
   2954   rm -f ${srcdir}/ares_build.h
   2955 fi
   2956 
   2957 am__api_version="1.9"
   2958 ac_aux_dir=
   2959 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2960   if test -f "$ac_dir/install-sh"; then
   2961     ac_aux_dir=$ac_dir
   2962     ac_install_sh="$ac_aux_dir/install-sh -c"
   2963     break
   2964   elif test -f "$ac_dir/install.sh"; then
   2965     ac_aux_dir=$ac_dir
   2966     ac_install_sh="$ac_aux_dir/install.sh -c"
   2967     break
   2968   elif test -f "$ac_dir/shtool"; then
   2969     ac_aux_dir=$ac_dir
   2970     ac_install_sh="$ac_aux_dir/shtool install -c"
   2971     break
   2972   fi
   2973 done
   2974 if test -z "$ac_aux_dir"; then
   2975   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2976 fi
   2977 
   2978 # These three variables are undocumented and unsupported,
   2979 # and are intended to be withdrawn in a future Autoconf release.
   2980 # They can cause serious problems if a builder's source tree is in a directory
   2981 # whose full name contains unusual characters.
   2982 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2983 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2984 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2985 
   2986 
   2987 # Find a good install program.  We prefer a C program (faster),
   2988 # so one script is as good as another.  But avoid the broken or
   2989 # incompatible versions:
   2990 # SysV /etc/install, /usr/sbin/install
   2991 # SunOS /usr/etc/install
   2992 # IRIX /sbin/install
   2993 # AIX /bin/install
   2994 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2998 # OS/2's system install, which has a completely different semantic
   2999 # ./install, which can be erroneously created by make from ./install.sh.
   3000 # Reject install programs that cannot install multiple files.
   3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   3002 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   3003 if test -z "$INSTALL"; then
   3004 if ${ac_cv_path_install+:} false; then :
   3005   $as_echo_n "(cached) " >&6
   3006 else
   3007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3008 for as_dir in $PATH
   3009 do
   3010   IFS=$as_save_IFS
   3011   test -z "$as_dir" && as_dir=.
   3012     # Account for people who put trailing slashes in PATH elements.
   3013 case $as_dir/ in #((
   3014   ./ | .// | /[cC]/* | \
   3015   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3016   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   3017   /usr/ucb/* ) ;;
   3018   *)
   3019     # OSF1 and SCO ODT 3.0 have their own names for install.
   3020     # Don't use installbsd from OSF since it installs stuff as root
   3021     # by default.
   3022     for ac_prog in ginstall scoinst install; do
   3023       for ac_exec_ext in '' $ac_executable_extensions; do
   3024 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   3025 	  if test $ac_prog = install &&
   3026 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3027 	    # AIX install.  It has an incompatible calling convention.
   3028 	    :
   3029 	  elif test $ac_prog = install &&
   3030 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3031 	    # program-specific install script used by HP pwplus--don't use.
   3032 	    :
   3033 	  else
   3034 	    rm -rf conftest.one conftest.two conftest.dir
   3035 	    echo one > conftest.one
   3036 	    echo two > conftest.two
   3037 	    mkdir conftest.dir
   3038 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   3039 	      test -s conftest.one && test -s conftest.two &&
   3040 	      test -s conftest.dir/conftest.one &&
   3041 	      test -s conftest.dir/conftest.two
   3042 	    then
   3043 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   3044 	      break 3
   3045 	    fi
   3046 	  fi
   3047 	fi
   3048       done
   3049     done
   3050     ;;
   3051 esac
   3052 
   3053   done
   3054 IFS=$as_save_IFS
   3055 
   3056 rm -rf conftest.one conftest.two conftest.dir
   3057 
   3058 fi
   3059   if test "${ac_cv_path_install+set}" = set; then
   3060     INSTALL=$ac_cv_path_install
   3061   else
   3062     # As a last resort, use the slow shell script.  Don't cache a
   3063     # value for INSTALL within a source directory, because that will
   3064     # break other packages using the cache if that directory is
   3065     # removed, or if the value is a relative name.
   3066     INSTALL=$ac_install_sh
   3067   fi
   3068 fi
   3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3070 $as_echo "$INSTALL" >&6; }
   3071 
   3072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3073 # It thinks the first close brace ends the variable substitution.
   3074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3075 
   3076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3077 
   3078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3079 
   3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   3081 $as_echo_n "checking whether build environment is sane... " >&6; }
   3082 # Just in case
   3083 sleep 1
   3084 echo timestamp > conftest.file
   3085 # Do `set' in a subshell so we don't clobber the current shell's
   3086 # arguments.  Must try -L first in case configure is actually a
   3087 # symlink; some systems play weird games with the mod time of symlinks
   3088 # (eg FreeBSD returns the mod time of the symlink's containing
   3089 # directory).
   3090 if (
   3091    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   3092    if test "$*" = "X"; then
   3093       # -L didn't work.
   3094       set X `ls -t $srcdir/configure conftest.file`
   3095    fi
   3096    rm -f conftest.file
   3097    if test "$*" != "X $srcdir/configure conftest.file" \
   3098       && test "$*" != "X conftest.file $srcdir/configure"; then
   3099 
   3100       # If neither matched, then we have a broken ls.  This can happen
   3101       # if, for instance, CONFIG_SHELL is bash and it inherits a
   3102       # broken ls alias from the environment.  This has actually
   3103       # happened.  Such a system could not be considered "sane".
   3104       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   3105 alias in your environment" "$LINENO" 5
   3106    fi
   3107 
   3108    test "$2" = conftest.file
   3109    )
   3110 then
   3111    # Ok.
   3112    :
   3113 else
   3114    as_fn_error $? "newly created file is older than distributed files!
   3115 Check your system clock" "$LINENO" 5
   3116 fi
   3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3118 $as_echo "yes" >&6; }
   3119 test "$program_prefix" != NONE &&
   3120   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3121 # Use a double $ so make ignores it.
   3122 test "$program_suffix" != NONE &&
   3123   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3124 # Double any \ or $.
   3125 # By default was `s,x,x', remove it if useless.
   3126 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3127 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   3128 
   3129 # expand $ac_aux_dir to an absolute path
   3130 am_aux_dir=`cd $ac_aux_dir && pwd`
   3131 
   3132 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   3133 # Use eval to expand $SHELL
   3134 if eval "$MISSING --run true"; then
   3135   am_missing_run="$MISSING --run "
   3136 else
   3137   am_missing_run=
   3138   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
   3139 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   3140 fi
   3141 
   3142 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
   3143   # We used to keeping the `.' as first argument, in order to
   3144   # allow $(mkdir_p) to be used without argument.  As in
   3145   #   $(mkdir_p) $(somedir)
   3146   # where $(somedir) is conditionally defined.  However this is wrong
   3147   # for two reasons:
   3148   #  1. if the package is installed by a user who cannot write `.'
   3149   #     make install will fail,
   3150   #  2. the above comment should most certainly read
   3151   #     $(mkdir_p) $(DESTDIR)$(somedir)
   3152   #     so it does not work when $(somedir) is undefined and
   3153   #     $(DESTDIR) is not.
   3154   #  To support the latter case, we have to write
   3155   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
   3156   #  so the `.' trick is pointless.
   3157   mkdir_p='mkdir -p --'
   3158 else
   3159   # On NextStep and OpenStep, the `mkdir' command does not
   3160   # recognize any option.  It will interpret all options as
   3161   # directories to create, and then abort because `.' already
   3162   # exists.
   3163   for d in ./-p ./--version;
   3164   do
   3165     test -d $d && rmdir $d
   3166   done
   3167   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
   3168   if test -f "$ac_aux_dir/mkinstalldirs"; then
   3169     mkdir_p='$(mkinstalldirs)'
   3170   else
   3171     mkdir_p='$(install_sh) -d'
   3172   fi
   3173 fi
   3174 
   3175 for ac_prog in gawk mawk nawk awk
   3176 do
   3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3178 set dummy $ac_prog; ac_word=$2
   3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3180 $as_echo_n "checking for $ac_word... " >&6; }
   3181 if ${ac_cv_prog_AWK+:} false; then :
   3182   $as_echo_n "(cached) " >&6
   3183 else
   3184   if test -n "$AWK"; then
   3185   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   3186 else
   3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3188 for as_dir in $PATH
   3189 do
   3190   IFS=$as_save_IFS
   3191   test -z "$as_dir" && as_dir=.
   3192     for ac_exec_ext in '' $ac_executable_extensions; do
   3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3194     ac_cv_prog_AWK="$ac_prog"
   3195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3196     break 2
   3197   fi
   3198 done
   3199   done
   3200 IFS=$as_save_IFS
   3201 
   3202 fi
   3203 fi
   3204 AWK=$ac_cv_prog_AWK
   3205 if test -n "$AWK"; then
   3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   3207 $as_echo "$AWK" >&6; }
   3208 else
   3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3210 $as_echo "no" >&6; }
   3211 fi
   3212 
   3213 
   3214   test -n "$AWK" && break
   3215 done
   3216 
   3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3218 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3219 set x ${MAKE-make}
   3220 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3221 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3222   $as_echo_n "(cached) " >&6
   3223 else
   3224   cat >conftest.make <<\_ACEOF
   3225 SHELL = /bin/sh
   3226 all:
   3227 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3228 _ACEOF
   3229 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3230 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3231   *@@@%%%=?*=@@@%%%*)
   3232     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3233   *)
   3234     eval ac_cv_prog_make_${ac_make}_set=no;;
   3235 esac
   3236 rm -f conftest.make
   3237 fi
   3238 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3240 $as_echo "yes" >&6; }
   3241   SET_MAKE=
   3242 else
   3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3244 $as_echo "no" >&6; }
   3245   SET_MAKE="MAKE=${MAKE-make}"
   3246 fi
   3247 
   3248 rm -rf .tst 2>/dev/null
   3249 mkdir .tst 2>/dev/null
   3250 if test -d .tst; then
   3251   am__leading_dot=.
   3252 else
   3253   am__leading_dot=_
   3254 fi
   3255 rmdir .tst 2>/dev/null
   3256 
   3257 # test to see if srcdir already configured
   3258 if test "`cd $srcdir && pwd`" != "`pwd`" &&
   3259    test -f $srcdir/config.status; then
   3260   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   3261 fi
   3262 
   3263 # test whether we have cygpath
   3264 if test -z "$CYGPATH_W"; then
   3265   if (cygpath --version) >/dev/null 2>/dev/null; then
   3266     CYGPATH_W='cygpath -w'
   3267   else
   3268     CYGPATH_W=echo
   3269   fi
   3270 fi
   3271 
   3272 
   3273 # Define the identity of the package.
   3274  PACKAGE='c-ares'
   3275  VERSION='1.7.5'
   3276 
   3277 
   3278 cat >>confdefs.h <<_ACEOF
   3279 #define PACKAGE "$PACKAGE"
   3280 _ACEOF
   3281 
   3282 
   3283 cat >>confdefs.h <<_ACEOF
   3284 #define VERSION "$VERSION"
   3285 _ACEOF
   3286 
   3287 # Some tools Automake needs.
   3288 
   3289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   3290 
   3291 
   3292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   3293 
   3294 
   3295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   3296 
   3297 
   3298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   3299 
   3300 
   3301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   3302 
   3303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
   3304 
   3305 # Installed binaries are usually stripped using `strip' when the user
   3306 # run `make install-strip'.  However `strip' might not be the right
   3307 # tool to use in cross-compilation environments, therefore Automake
   3308 # will honor the `STRIP' environment variable to overrule this program.
   3309 if test "$cross_compiling" != no; then
   3310   if test -n "$ac_tool_prefix"; then
   3311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   3312 set dummy ${ac_tool_prefix}strip; ac_word=$2
   3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3314 $as_echo_n "checking for $ac_word... " >&6; }
   3315 if ${ac_cv_prog_STRIP+:} false; then :
   3316   $as_echo_n "(cached) " >&6
   3317 else
   3318   if test -n "$STRIP"; then
   3319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   3320 else
   3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3322 for as_dir in $PATH
   3323 do
   3324   IFS=$as_save_IFS
   3325   test -z "$as_dir" && as_dir=.
   3326     for ac_exec_ext in '' $ac_executable_extensions; do
   3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3330     break 2
   3331   fi
   3332 done
   3333   done
   3334 IFS=$as_save_IFS
   3335 
   3336 fi
   3337 fi
   3338 STRIP=$ac_cv_prog_STRIP
   3339 if test -n "$STRIP"; then
   3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   3341 $as_echo "$STRIP" >&6; }
   3342 else
   3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3344 $as_echo "no" >&6; }
   3345 fi
   3346 
   3347 
   3348 fi
   3349 if test -z "$ac_cv_prog_STRIP"; then
   3350   ac_ct_STRIP=$STRIP
   3351   # Extract the first word of "strip", so it can be a program name with args.
   3352 set dummy strip; ac_word=$2
   3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3354 $as_echo_n "checking for $ac_word... " >&6; }
   3355 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   3356   $as_echo_n "(cached) " >&6
   3357 else
   3358   if test -n "$ac_ct_STRIP"; then
   3359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   3360 else
   3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3362 for as_dir in $PATH
   3363 do
   3364   IFS=$as_save_IFS
   3365   test -z "$as_dir" && as_dir=.
   3366     for ac_exec_ext in '' $ac_executable_extensions; do
   3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3368     ac_cv_prog_ac_ct_STRIP="strip"
   3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3370     break 2
   3371   fi
   3372 done
   3373   done
   3374 IFS=$as_save_IFS
   3375 
   3376 fi
   3377 fi
   3378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   3379 if test -n "$ac_ct_STRIP"; then
   3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   3381 $as_echo "$ac_ct_STRIP" >&6; }
   3382 else
   3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3384 $as_echo "no" >&6; }
   3385 fi
   3386 
   3387   if test "x$ac_ct_STRIP" = x; then
   3388     STRIP=":"
   3389   else
   3390     case $cross_compiling:$ac_tool_warned in
   3391 yes:)
   3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3394 ac_tool_warned=yes ;;
   3395 esac
   3396     STRIP=$ac_ct_STRIP
   3397   fi
   3398 else
   3399   STRIP="$ac_cv_prog_STRIP"
   3400 fi
   3401 
   3402 fi
   3403 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   3404 
   3405 # We need awk for the "check" target.  The system "awk" is bad on
   3406 # some platforms.
   3407 # Always define AMTAR for backward compatibility.
   3408 
   3409 AMTAR=${AMTAR-"${am_missing_run}tar"}
   3410 
   3411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   3412 
   3413 
   3414 
   3415 
   3416 
   3417 
   3418 
   3419 # Make sure we can run config.sub.
   3420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3421   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   3422 
   3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3424 $as_echo_n "checking build system type... " >&6; }
   3425 if ${ac_cv_build+:} false; then :
   3426   $as_echo_n "(cached) " >&6
   3427 else
   3428   ac_build_alias=$build_alias
   3429 test "x$ac_build_alias" = x &&
   3430   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3431 test "x$ac_build_alias" = x &&
   3432   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   3433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3434   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   3435 
   3436 fi
   3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3438 $as_echo "$ac_cv_build" >&6; }
   3439 case $ac_cv_build in
   3440 *-*-*) ;;
   3441 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   3442 esac
   3443 build=$ac_cv_build
   3444 ac_save_IFS=$IFS; IFS='-'
   3445 set x $ac_cv_build
   3446 shift
   3447 build_cpu=$1
   3448 build_vendor=$2
   3449 shift; shift
   3450 # Remember, the first character of IFS is used to create $*,
   3451 # except with old shells:
   3452 build_os=$*
   3453 IFS=$ac_save_IFS
   3454 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3455 
   3456 
   3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   3458 $as_echo_n "checking host system type... " >&6; }
   3459 if ${ac_cv_host+:} false; then :
   3460   $as_echo_n "(cached) " >&6
   3461 else
   3462   if test "x$host_alias" = x; then
   3463   ac_cv_host=$ac_cv_build
   3464 else
   3465   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3466     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   3467 fi
   3468 
   3469 fi
   3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   3471 $as_echo "$ac_cv_host" >&6; }
   3472 case $ac_cv_host in
   3473 *-*-*) ;;
   3474 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   3475 esac
   3476 host=$ac_cv_host
   3477 ac_save_IFS=$IFS; IFS='-'
   3478 set x $ac_cv_host
   3479 shift
   3480 host_cpu=$1
   3481 host_vendor=$2
   3482 shift; shift
   3483 # Remember, the first character of IFS is used to create $*,
   3484 # except with old shells:
   3485 host_os=$*
   3486 IFS=$ac_save_IFS
   3487 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3488 
   3489 
   3490 
   3491 cat >>confdefs.h <<_ACEOF
   3492 #define OS "${host}"
   3493 _ACEOF
   3494 
   3495 
   3496 DEPDIR="${am__leading_dot}deps"
   3497 
   3498 ac_config_commands="$ac_config_commands depfiles"
   3499 
   3500 
   3501 am_make=${MAKE-make}
   3502 cat > confinc << 'END'
   3503 am__doit:
   3504 	@echo done
   3505 .PHONY: am__doit
   3506 END
   3507 # If we don't find an include directive, just comment out the code.
   3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3509 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3510 am__include="#"
   3511 am__quote=
   3512 _am_result=none
   3513 # First try GNU make style include.
   3514 echo "include confinc" > confmf
   3515 # We grep out `Entering directory' and `Leaving directory'
   3516 # messages which can occur if `w' ends up in MAKEFLAGS.
   3517 # In particular we don't look at `^make:' because GNU make might
   3518 # be invoked under some other name (usually "gmake"), in which
   3519 # case it prints its new name instead of `make'.
   3520 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   3521    am__include=include
   3522    am__quote=
   3523    _am_result=GNU
   3524 fi
   3525 # Now try BSD make style include.
   3526 if test "$am__include" = "#"; then
   3527    echo '.include "confinc"' > confmf
   3528    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   3529       am__include=.include
   3530       am__quote="\""
   3531       _am_result=BSD
   3532    fi
   3533 fi
   3534 
   3535 
   3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3537 $as_echo "$_am_result" >&6; }
   3538 rm -f confinc confmf
   3539 
   3540 # Check whether --enable-dependency-tracking was given.
   3541 if test "${enable_dependency_tracking+set}" = set; then :
   3542   enableval=$enable_dependency_tracking;
   3543 fi
   3544 
   3545 if test "x$enable_dependency_tracking" != xno; then
   3546   am_depcomp="$ac_aux_dir/depcomp"
   3547   AMDEPBACKSLASH='\'
   3548 fi
   3549 
   3550 
   3551 if test "x$enable_dependency_tracking" != xno; then
   3552   AMDEP_TRUE=
   3553   AMDEP_FALSE='#'
   3554 else
   3555   AMDEP_TRUE='#'
   3556   AMDEP_FALSE=
   3557 fi
   3558 
   3559 
   3560 
   3561 
   3562   ac_save_CFLAGS="$CFLAGS"
   3563   ac_save_CPPFLAGS="$CPPFLAGS"
   3564   ac_ext=c
   3565 ac_cpp='$CPP $CPPFLAGS'
   3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3569 if test -n "$ac_tool_prefix"; then
   3570   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3573 $as_echo_n "checking for $ac_word... " >&6; }
   3574 if ${ac_cv_prog_CC+:} false; then :
   3575   $as_echo_n "(cached) " >&6
   3576 else
   3577   if test -n "$CC"; then
   3578   ac_cv_prog_CC="$CC" # Let the user override the test.
   3579 else
   3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3581 for as_dir in $PATH
   3582 do
   3583   IFS=$as_save_IFS
   3584   test -z "$as_dir" && as_dir=.
   3585     for ac_exec_ext in '' $ac_executable_extensions; do
   3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3587     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3589     break 2
   3590   fi
   3591 done
   3592   done
   3593 IFS=$as_save_IFS
   3594 
   3595 fi
   3596 fi
   3597 CC=$ac_cv_prog_CC
   3598 if test -n "$CC"; then
   3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3600 $as_echo "$CC" >&6; }
   3601 else
   3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3603 $as_echo "no" >&6; }
   3604 fi
   3605 
   3606 
   3607 fi
   3608 if test -z "$ac_cv_prog_CC"; then
   3609   ac_ct_CC=$CC
   3610   # Extract the first word of "gcc", so it can be a program name with args.
   3611 set dummy gcc; ac_word=$2
   3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3613 $as_echo_n "checking for $ac_word... " >&6; }
   3614 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3615   $as_echo_n "(cached) " >&6
   3616 else
   3617   if test -n "$ac_ct_CC"; then
   3618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3619 else
   3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3621 for as_dir in $PATH
   3622 do
   3623   IFS=$as_save_IFS
   3624   test -z "$as_dir" && as_dir=.
   3625     for ac_exec_ext in '' $ac_executable_extensions; do
   3626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3627     ac_cv_prog_ac_ct_CC="gcc"
   3628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3629     break 2
   3630   fi
   3631 done
   3632   done
   3633 IFS=$as_save_IFS
   3634 
   3635 fi
   3636 fi
   3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3638 if test -n "$ac_ct_CC"; then
   3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3640 $as_echo "$ac_ct_CC" >&6; }
   3641 else
   3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3643 $as_echo "no" >&6; }
   3644 fi
   3645 
   3646   if test "x$ac_ct_CC" = x; then
   3647     CC=""
   3648   else
   3649     case $cross_compiling:$ac_tool_warned in
   3650 yes:)
   3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3653 ac_tool_warned=yes ;;
   3654 esac
   3655     CC=$ac_ct_CC
   3656   fi
   3657 else
   3658   CC="$ac_cv_prog_CC"
   3659 fi
   3660 
   3661 if test -z "$CC"; then
   3662           if test -n "$ac_tool_prefix"; then
   3663     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3664 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3666 $as_echo_n "checking for $ac_word... " >&6; }
   3667 if ${ac_cv_prog_CC+:} false; then :
   3668   $as_echo_n "(cached) " >&6
   3669 else
   3670   if test -n "$CC"; then
   3671   ac_cv_prog_CC="$CC" # Let the user override the test.
   3672 else
   3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3674 for as_dir in $PATH
   3675 do
   3676   IFS=$as_save_IFS
   3677   test -z "$as_dir" && as_dir=.
   3678     for ac_exec_ext in '' $ac_executable_extensions; do
   3679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3680     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3682     break 2
   3683   fi
   3684 done
   3685   done
   3686 IFS=$as_save_IFS
   3687 
   3688 fi
   3689 fi
   3690 CC=$ac_cv_prog_CC
   3691 if test -n "$CC"; then
   3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3693 $as_echo "$CC" >&6; }
   3694 else
   3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3696 $as_echo "no" >&6; }
   3697 fi
   3698 
   3699 
   3700   fi
   3701 fi
   3702 if test -z "$CC"; then
   3703   # Extract the first word of "cc", so it can be a program name with args.
   3704 set dummy cc; ac_word=$2
   3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3706 $as_echo_n "checking for $ac_word... " >&6; }
   3707 if ${ac_cv_prog_CC+:} false; then :
   3708   $as_echo_n "(cached) " >&6
   3709 else
   3710   if test -n "$CC"; then
   3711   ac_cv_prog_CC="$CC" # Let the user override the test.
   3712 else
   3713   ac_prog_rejected=no
   3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3715 for as_dir in $PATH
   3716 do
   3717   IFS=$as_save_IFS
   3718   test -z "$as_dir" && as_dir=.
   3719     for ac_exec_ext in '' $ac_executable_extensions; do
   3720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3721     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3722        ac_prog_rejected=yes
   3723        continue
   3724      fi
   3725     ac_cv_prog_CC="cc"
   3726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3727     break 2
   3728   fi
   3729 done
   3730   done
   3731 IFS=$as_save_IFS
   3732 
   3733 if test $ac_prog_rejected = yes; then
   3734   # We found a bogon in the path, so make sure we never use it.
   3735   set dummy $ac_cv_prog_CC
   3736   shift
   3737   if test $# != 0; then
   3738     # We chose a different compiler from the bogus one.
   3739     # However, it has the same basename, so the bogon will be chosen
   3740     # first if we set CC to just the basename; use the full file name.
   3741     shift
   3742     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3743   fi
   3744 fi
   3745 fi
   3746 fi
   3747 CC=$ac_cv_prog_CC
   3748 if test -n "$CC"; then
   3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3750 $as_echo "$CC" >&6; }
   3751 else
   3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3753 $as_echo "no" >&6; }
   3754 fi
   3755 
   3756 
   3757 fi
   3758 if test -z "$CC"; then
   3759   if test -n "$ac_tool_prefix"; then
   3760   for ac_prog in cl.exe
   3761   do
   3762     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3765 $as_echo_n "checking for $ac_word... " >&6; }
   3766 if ${ac_cv_prog_CC+:} false; then :
   3767   $as_echo_n "(cached) " >&6
   3768 else
   3769   if test -n "$CC"; then
   3770   ac_cv_prog_CC="$CC" # Let the user override the test.
   3771 else
   3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3773 for as_dir in $PATH
   3774 do
   3775   IFS=$as_save_IFS
   3776   test -z "$as_dir" && as_dir=.
   3777     for ac_exec_ext in '' $ac_executable_extensions; do
   3778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3779     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3781     break 2
   3782   fi
   3783 done
   3784   done
   3785 IFS=$as_save_IFS
   3786 
   3787 fi
   3788 fi
   3789 CC=$ac_cv_prog_CC
   3790 if test -n "$CC"; then
   3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3792 $as_echo "$CC" >&6; }
   3793 else
   3794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3795 $as_echo "no" >&6; }
   3796 fi
   3797 
   3798 
   3799     test -n "$CC" && break
   3800   done
   3801 fi
   3802 if test -z "$CC"; then
   3803   ac_ct_CC=$CC
   3804   for ac_prog in cl.exe
   3805 do
   3806   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3807 set dummy $ac_prog; ac_word=$2
   3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3809 $as_echo_n "checking for $ac_word... " >&6; }
   3810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3811   $as_echo_n "(cached) " >&6
   3812 else
   3813   if test -n "$ac_ct_CC"; then
   3814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3815 else
   3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3817 for as_dir in $PATH
   3818 do
   3819   IFS=$as_save_IFS
   3820   test -z "$as_dir" && as_dir=.
   3821     for ac_exec_ext in '' $ac_executable_extensions; do
   3822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3823     ac_cv_prog_ac_ct_CC="$ac_prog"
   3824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3825     break 2
   3826   fi
   3827 done
   3828   done
   3829 IFS=$as_save_IFS
   3830 
   3831 fi
   3832 fi
   3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3834 if test -n "$ac_ct_CC"; then
   3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3836 $as_echo "$ac_ct_CC" >&6; }
   3837 else
   3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3839 $as_echo "no" >&6; }
   3840 fi
   3841 
   3842 
   3843   test -n "$ac_ct_CC" && break
   3844 done
   3845 
   3846   if test "x$ac_ct_CC" = x; then
   3847     CC=""
   3848   else
   3849     case $cross_compiling:$ac_tool_warned in
   3850 yes:)
   3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3853 ac_tool_warned=yes ;;
   3854 esac
   3855     CC=$ac_ct_CC
   3856   fi
   3857 fi
   3858 
   3859 fi
   3860 
   3861 
   3862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3864 as_fn_error $? "no acceptable C compiler found in \$PATH
   3865 See \`config.log' for more details" "$LINENO" 5; }
   3866 
   3867 # Provide some information about the compiler.
   3868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3869 set X $ac_compile
   3870 ac_compiler=$2
   3871 for ac_option in --version -v -V -qversion; do
   3872   { { ac_try="$ac_compiler $ac_option >&5"
   3873 case "(($ac_try" in
   3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3875   *) ac_try_echo=$ac_try;;
   3876 esac
   3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3878 $as_echo "$ac_try_echo"; } >&5
   3879   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3880   ac_status=$?
   3881   if test -s conftest.err; then
   3882     sed '10a\
   3883 ... rest of stderr output deleted ...
   3884          10q' conftest.err >conftest.er1
   3885     cat conftest.er1 >&5
   3886   fi
   3887   rm -f conftest.er1 conftest.err
   3888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3889   test $ac_status = 0; }
   3890 done
   3891 
   3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3893 /* end confdefs.h.  */
   3894 
   3895 int main (void)
   3896 {
   3897 
   3898  ;
   3899  return 0;
   3900 }
   3901 _ACEOF
   3902 ac_clean_files_save=$ac_clean_files
   3903 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3904 # Try to create an executable without -o first, disregard a.out.
   3905 # It will help us diagnose broken compilers, and finding out an intuition
   3906 # of exeext.
   3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3908 $as_echo_n "checking whether the C compiler works... " >&6; }
   3909 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3910 
   3911 # The possible output files:
   3912 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3913 
   3914 ac_rmfiles=
   3915 for ac_file in $ac_files
   3916 do
   3917   case $ac_file in
   3918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3919     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3920   esac
   3921 done
   3922 rm -f $ac_rmfiles
   3923 
   3924 if { { ac_try="$ac_link_default"
   3925 case "(($ac_try" in
   3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3927   *) ac_try_echo=$ac_try;;
   3928 esac
   3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3930 $as_echo "$ac_try_echo"; } >&5
   3931   (eval "$ac_link_default") 2>&5
   3932   ac_status=$?
   3933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3934   test $ac_status = 0; }; then :
   3935   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3937 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3938 # so that the user can short-circuit this test for compilers unknown to
   3939 # Autoconf.
   3940 for ac_file in $ac_files ''
   3941 do
   3942   test -f "$ac_file" || continue
   3943   case $ac_file in
   3944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3945 	;;
   3946     [ab].out )
   3947 	# We found the default executable, but exeext='' is most
   3948 	# certainly right.
   3949 	break;;
   3950     *.* )
   3951 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3952 	then :; else
   3953 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3954 	fi
   3955 	# We set ac_cv_exeext here because the later test for it is not
   3956 	# safe: cross compilers may not add the suffix if given an `-o'
   3957 	# argument, so we may need to know it at that point already.
   3958 	# Even if this section looks crufty: it has the advantage of
   3959 	# actually working.
   3960 	break;;
   3961     * )
   3962 	break;;
   3963   esac
   3964 done
   3965 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3966 
   3967 else
   3968   ac_file=''
   3969 fi
   3970 if test -z "$ac_file"; then :
   3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3972 $as_echo "no" >&6; }
   3973 $as_echo "$as_me: failed program was:" >&5
   3974 sed 's/^/| /' conftest.$ac_ext >&5
   3975 
   3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3978 as_fn_error 77 "C compiler cannot create executables
   3979 See \`config.log' for more details" "$LINENO" 5; }
   3980 else
   3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3982 $as_echo "yes" >&6; }
   3983 fi
   3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3985 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3987 $as_echo "$ac_file" >&6; }
   3988 ac_exeext=$ac_cv_exeext
   3989 
   3990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3991 ac_clean_files=$ac_clean_files_save
   3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3993 $as_echo_n "checking for suffix of executables... " >&6; }
   3994 if { { ac_try="$ac_link"
   3995 case "(($ac_try" in
   3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3997   *) ac_try_echo=$ac_try;;
   3998 esac
   3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4000 $as_echo "$ac_try_echo"; } >&5
   4001   (eval "$ac_link") 2>&5
   4002   ac_status=$?
   4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4004   test $ac_status = 0; }; then :
   4005   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4006 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4008 # `rm'.
   4009 for ac_file in conftest.exe conftest conftest.*; do
   4010   test -f "$ac_file" || continue
   4011   case $ac_file in
   4012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4013     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4014 	  break;;
   4015     * ) break;;
   4016   esac
   4017 done
   4018 else
   4019   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4021 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4022 See \`config.log' for more details" "$LINENO" 5; }
   4023 fi
   4024 rm -f conftest conftest$ac_cv_exeext
   4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4026 $as_echo "$ac_cv_exeext" >&6; }
   4027 
   4028 rm -f conftest.$ac_ext
   4029 EXEEXT=$ac_cv_exeext
   4030 ac_exeext=$EXEEXT
   4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4032 /* end confdefs.h.  */
   4033 #include <stdio.h>
   4034 int main (void)
   4035 {
   4036 FILE *f = fopen ("conftest.out", "w");
   4037  return ferror (f) || fclose (f) != 0;
   4038 
   4039  ;
   4040  return 0;
   4041 }
   4042 _ACEOF
   4043 ac_clean_files="$ac_clean_files conftest.out"
   4044 # Check that the compiler produces executables we can run.  If not, either
   4045 # the compiler is broken, or we cross compile.
   4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4047 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4048 if test "$cross_compiling" != yes; then
   4049   { { ac_try="$ac_link"
   4050 case "(($ac_try" in
   4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4052   *) ac_try_echo=$ac_try;;
   4053 esac
   4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4055 $as_echo "$ac_try_echo"; } >&5
   4056   (eval "$ac_link") 2>&5
   4057   ac_status=$?
   4058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4059   test $ac_status = 0; }
   4060   if { ac_try='./conftest$ac_cv_exeext'
   4061   { { case "(($ac_try" in
   4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4063   *) ac_try_echo=$ac_try;;
   4064 esac
   4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4066 $as_echo "$ac_try_echo"; } >&5
   4067   (eval "$ac_try") 2>&5
   4068   ac_status=$?
   4069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4070   test $ac_status = 0; }; }; then
   4071     cross_compiling=no
   4072   else
   4073     if test "$cross_compiling" = maybe; then
   4074 	cross_compiling=yes
   4075     else
   4076 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4078 as_fn_error $? "cannot run C compiled programs.
   4079 If you meant to cross compile, use \`--host'.
   4080 See \`config.log' for more details" "$LINENO" 5; }
   4081     fi
   4082   fi
   4083 fi
   4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4085 $as_echo "$cross_compiling" >&6; }
   4086 
   4087 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4088 ac_clean_files=$ac_clean_files_save
   4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4090 $as_echo_n "checking for suffix of object files... " >&6; }
   4091 if ${ac_cv_objext+:} false; then :
   4092   $as_echo_n "(cached) " >&6
   4093 else
   4094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4095 /* end confdefs.h.  */
   4096 
   4097 int main (void)
   4098 {
   4099 
   4100  ;
   4101  return 0;
   4102 }
   4103 _ACEOF
   4104 rm -f conftest.o conftest.obj
   4105 if { { ac_try="$ac_compile"
   4106 case "(($ac_try" in
   4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4108   *) ac_try_echo=$ac_try;;
   4109 esac
   4110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4111 $as_echo "$ac_try_echo"; } >&5
   4112   (eval "$ac_compile") 2>&5
   4113   ac_status=$?
   4114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4115   test $ac_status = 0; }; then :
   4116   for ac_file in conftest.o conftest.obj conftest.*; do
   4117   test -f "$ac_file" || continue;
   4118   case $ac_file in
   4119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4120     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4121        break;;
   4122   esac
   4123 done
   4124 else
   4125   $as_echo "$as_me: failed program was:" >&5
   4126 sed 's/^/| /' conftest.$ac_ext >&5
   4127 
   4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4130 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4131 See \`config.log' for more details" "$LINENO" 5; }
   4132 fi
   4133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4134 fi
   4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4136 $as_echo "$ac_cv_objext" >&6; }
   4137 OBJEXT=$ac_cv_objext
   4138 ac_objext=$OBJEXT
   4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4141 if ${ac_cv_c_compiler_gnu+:} false; then :
   4142   $as_echo_n "(cached) " >&6
   4143 else
   4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4145 /* end confdefs.h.  */
   4146 
   4147 int main (void)
   4148 {
   4149 #ifndef __GNUC__
   4150        choke me
   4151 #endif
   4152 
   4153  ;
   4154  return 0;
   4155 }
   4156 _ACEOF
   4157 if ac_fn_c_try_compile "$LINENO"; then :
   4158   ac_compiler_gnu=yes
   4159 else
   4160   ac_compiler_gnu=no
   4161 fi
   4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4163 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4164 
   4165 fi
   4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4167 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4168 if test $ac_compiler_gnu = yes; then
   4169   GCC=yes
   4170 else
   4171   GCC=
   4172 fi
   4173 ac_test_CFLAGS=${CFLAGS+set}
   4174 ac_save_CFLAGS=$CFLAGS
   4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4176 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4177 if ${ac_cv_prog_cc_g+:} false; then :
   4178   $as_echo_n "(cached) " >&6
   4179 else
   4180   ac_save_c_werror_flag=$ac_c_werror_flag
   4181    ac_c_werror_flag=yes
   4182    ac_cv_prog_cc_g=no
   4183    CFLAGS="-g"
   4184    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4185 /* end confdefs.h.  */
   4186 
   4187 int main (void)
   4188 {
   4189 
   4190  ;
   4191  return 0;
   4192 }
   4193 _ACEOF
   4194 if ac_fn_c_try_compile "$LINENO"; then :
   4195   ac_cv_prog_cc_g=yes
   4196 else
   4197   CFLAGS=""
   4198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4199 /* end confdefs.h.  */
   4200 
   4201 int main (void)
   4202 {
   4203 
   4204  ;
   4205  return 0;
   4206 }
   4207 _ACEOF
   4208 if ac_fn_c_try_compile "$LINENO"; then :
   4209 
   4210 else
   4211   ac_c_werror_flag=$ac_save_c_werror_flag
   4212 	 CFLAGS="-g"
   4213 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4214 /* end confdefs.h.  */
   4215 
   4216 int main (void)
   4217 {
   4218 
   4219  ;
   4220  return 0;
   4221 }
   4222 _ACEOF
   4223 if ac_fn_c_try_compile "$LINENO"; then :
   4224   ac_cv_prog_cc_g=yes
   4225 fi
   4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4227 fi
   4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4229 fi
   4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4231    ac_c_werror_flag=$ac_save_c_werror_flag
   4232 fi
   4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4234 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4235 if test "$ac_test_CFLAGS" = set; then
   4236   CFLAGS=$ac_save_CFLAGS
   4237 elif test $ac_cv_prog_cc_g = yes; then
   4238   if test "$GCC" = yes; then
   4239     CFLAGS="-g -O2"
   4240   else
   4241     CFLAGS="-g"
   4242   fi
   4243 else
   4244   if test "$GCC" = yes; then
   4245     CFLAGS="-O2"
   4246   else
   4247     CFLAGS=
   4248   fi
   4249 fi
   4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4252 if ${ac_cv_prog_cc_c89+:} false; then :
   4253   $as_echo_n "(cached) " >&6
   4254 else
   4255   ac_cv_prog_cc_c89=no
   4256 ac_save_CC=$CC
   4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4258 /* end confdefs.h.  */
   4259 #include <stdarg.h>
   4260 #include <stdio.h>
   4261 #include <sys/types.h>
   4262 #include <sys/stat.h>
   4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4264 struct buf { int x; };
   4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4266 static char *e (p, i)
   4267      char **p;
   4268      int i;
   4269 {
   4270   return p[i];
   4271 }
   4272 static char *f (char * (*g) (char **, int), char **p, ...)
   4273 {
   4274   char *s;
   4275   va_list v;
   4276   va_start (v,p);
   4277   s = g (p, va_arg (v,int));
   4278   va_end (v);
   4279   return s;
   4280 }
   4281 
   4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4283    function prototypes and stuff, but not '\xHH' hex character constants.
   4284    These don't provoke an error unfortunately, instead are silently treated
   4285    as 'x'.  The following induces an error, until -std is added to get
   4286    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4287    array size at least.  It's necessary to write '\x00'==0 to get something
   4288    that's true only with -std.  */
   4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4290 
   4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4292    inside strings and character constants.  */
   4293 #define FOO(x) 'x'
   4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4295 
   4296 int test (int i, double x);
   4297 struct s1 {int (*f) (int a);};
   4298 struct s2 {int (*f) (double a);};
   4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4300 int argc;
   4301 char **argv;
   4302 int main (void)
   4303 {
   4304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4305  ;
   4306  return 0;
   4307 }
   4308 _ACEOF
   4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4310 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4311 do
   4312   CC="$ac_save_CC $ac_arg"
   4313   if ac_fn_c_try_compile "$LINENO"; then :
   4314   ac_cv_prog_cc_c89=$ac_arg
   4315 fi
   4316 rm -f core conftest.err conftest.$ac_objext
   4317   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4318 done
   4319 rm -f conftest.$ac_ext
   4320 CC=$ac_save_CC
   4321 
   4322 fi
   4323 # AC_CACHE_VAL
   4324 case "x$ac_cv_prog_cc_c89" in
   4325   x)
   4326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4327 $as_echo "none needed" >&6; } ;;
   4328   xno)
   4329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4330 $as_echo "unsupported" >&6; } ;;
   4331   *)
   4332     CC="$CC $ac_cv_prog_cc_c89"
   4333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4335 esac
   4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4337 
   4338 fi
   4339 
   4340 ac_ext=c
   4341 ac_cpp='$CPP $CPPFLAGS'
   4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4345 
   4346 depcc="$CC"   am_compiler_list=
   4347 
   4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4350 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   4351   $as_echo_n "(cached) " >&6
   4352 else
   4353   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4354   # We make a subdir and do the tests there.  Otherwise we can end up
   4355   # making bogus files that we don't know about and never remove.  For
   4356   # instance it was reported that on HP-UX the gcc test will end up
   4357   # making a dummy file named `D' -- because `-MD' means `put the output
   4358   # in D'.
   4359   mkdir conftest.dir
   4360   # Copy depcomp to subdir because otherwise we won't find it if we're
   4361   # using a relative directory.
   4362   cp "$am_depcomp" conftest.dir
   4363   cd conftest.dir
   4364   # We will build objects and dependencies in a subdirectory because
   4365   # it helps to detect inapplicable dependency modes.  For instance
   4366   # both Tru64's cc and ICC support -MD to output dependencies as a
   4367   # side effect of compilation, but ICC will put the dependencies in
   4368   # the current directory while Tru64 will put them in the object
   4369   # directory.
   4370   mkdir sub
   4371 
   4372   am_cv_CC_dependencies_compiler_type=none
   4373   if test "$am_compiler_list" = ""; then
   4374      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4375   fi
   4376   for depmode in $am_compiler_list; do
   4377     # Setup a source with many dependencies, because some compilers
   4378     # like to wrap large dependency lists on column 80 (with \), and
   4379     # we should not choose a depcomp mode which is confused by this.
   4380     #
   4381     # We need to recreate these files for each test, as the compiler may
   4382     # overwrite some of them when testing with obscure command lines.
   4383     # This happens at least with the AIX C compiler.
   4384     : > sub/conftest.c
   4385     for i in 1 2 3 4 5 6; do
   4386       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4387       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   4388       # Solaris 8's {/usr,}/bin/sh.
   4389       touch sub/conftst$i.h
   4390     done
   4391     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4392 
   4393     case $depmode in
   4394     nosideeffect)
   4395       # after this tag, mechanisms are not by side-effect, so they'll
   4396       # only be used when explicitly requested
   4397       if test "x$enable_dependency_tracking" = xyes; then
   4398 	continue
   4399       else
   4400 	break
   4401       fi
   4402       ;;
   4403     none) break ;;
   4404     esac
   4405     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   4406     # mode.  It turns out that the SunPro C++ compiler does not properly
   4407     # handle `-M -o', and we need to detect this.
   4408     if depmode=$depmode \
   4409        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   4410        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4411        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   4412          >/dev/null 2>conftest.err &&
   4413        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4414        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   4415        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4416       # icc doesn't choke on unknown options, it will just issue warnings
   4417       # or remarks (even with -Werror).  So we grep stderr for any message
   4418       # that says an option was ignored or not supported.
   4419       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4420       #   icc: Command line warning: ignoring option '-M'; no argument required
   4421       # The diagnosis changed in icc 8.0:
   4422       #   icc: Command line remark: option '-MP' not supported
   4423       if (grep 'ignoring option' conftest.err ||
   4424           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4425         am_cv_CC_dependencies_compiler_type=$depmode
   4426         break
   4427       fi
   4428     fi
   4429   done
   4430 
   4431   cd ..
   4432   rm -rf conftest.dir
   4433 else
   4434   am_cv_CC_dependencies_compiler_type=none
   4435 fi
   4436 
   4437 fi
   4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4439 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4441 
   4442 
   4443 
   4444 if
   4445   test "x$enable_dependency_tracking" != xno \
   4446   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4447   am__fastdepCC_TRUE=
   4448   am__fastdepCC_FALSE='#'
   4449 else
   4450   am__fastdepCC_TRUE='#'
   4451   am__fastdepCC_FALSE=
   4452 fi
   4453 
   4454 
   4455   CFLAGS="$ac_save_CFLAGS"
   4456   CPPFLAGS="$ac_save_CPPFLAGS"
   4457 
   4458 if test "x$CC" != xcc; then
   4459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   4460 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   4461 else
   4462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   4463 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   4464 fi
   4465 set dummy $CC; ac_cc=`$as_echo "$2" |
   4466 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4467 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
   4468   $as_echo_n "(cached) " >&6
   4469 else
   4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4471 /* end confdefs.h.  */
   4472 
   4473 int main (void)
   4474 {
   4475 
   4476  ;
   4477  return 0;
   4478 }
   4479 _ACEOF
   4480 # Make sure it works both with $CC and with simple cc.
   4481 # We do the test twice because some compilers refuse to overwrite an
   4482 # existing .o file with -o, though they will create one.
   4483 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4484 rm -f conftest2.*
   4485 if { { case "(($ac_try" in
   4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4487   *) ac_try_echo=$ac_try;;
   4488 esac
   4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4490 $as_echo "$ac_try_echo"; } >&5
   4491   (eval "$ac_try") 2>&5
   4492   ac_status=$?
   4493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4494   test $ac_status = 0; } &&
   4495    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4497   *) ac_try_echo=$ac_try;;
   4498 esac
   4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4500 $as_echo "$ac_try_echo"; } >&5
   4501   (eval "$ac_try") 2>&5
   4502   ac_status=$?
   4503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4504   test $ac_status = 0; };
   4505 then
   4506   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   4507   if test "x$CC" != xcc; then
   4508     # Test first that cc exists at all.
   4509     if { ac_try='cc -c conftest.$ac_ext >&5'
   4510   { { case "(($ac_try" in
   4511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4512   *) ac_try_echo=$ac_try;;
   4513 esac
   4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4515 $as_echo "$ac_try_echo"; } >&5
   4516   (eval "$ac_try") 2>&5
   4517   ac_status=$?
   4518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4519   test $ac_status = 0; }; }; then
   4520       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4521       rm -f conftest2.*
   4522       if { { case "(($ac_try" in
   4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4524   *) ac_try_echo=$ac_try;;
   4525 esac
   4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4527 $as_echo "$ac_try_echo"; } >&5
   4528   (eval "$ac_try") 2>&5
   4529   ac_status=$?
   4530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4531   test $ac_status = 0; } &&
   4532 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4534   *) ac_try_echo=$ac_try;;
   4535 esac
   4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4537 $as_echo "$ac_try_echo"; } >&5
   4538   (eval "$ac_try") 2>&5
   4539   ac_status=$?
   4540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4541   test $ac_status = 0; };
   4542       then
   4543 	# cc works too.
   4544 	:
   4545       else
   4546 	# cc exists but doesn't like -o.
   4547 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4548       fi
   4549     fi
   4550   fi
   4551 else
   4552   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4553 fi
   4554 rm -f core conftest*
   4555 
   4556 fi
   4557 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4559 $as_echo "yes" >&6; }
   4560 else
   4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4562 $as_echo "no" >&6; }
   4563 
   4564 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   4565 
   4566 fi
   4567 
   4568 # FIXME: we rely on the cache variable name because
   4569 # there is no other way.
   4570 set dummy $CC
   4571 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4572 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
   4573    # Losing compiler, so override with the script.
   4574    # FIXME: It is wrong to rewrite CC.
   4575    # But if we don't then we get into trouble of one sort or another.
   4576    # A longer-term fix would be to have automake use am__CC in this case,
   4577    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   4578    CC="$am_aux_dir/compile $CC"
   4579 fi
   4580 
   4581 
   4582 
   4583 
   4584 ac_ext=c
   4585 ac_cpp='$CPP $CPPFLAGS'
   4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4590 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4591 # On Suns, sometimes $CPP names a directory.
   4592 if test -n "$CPP" && test -d "$CPP"; then
   4593   CPP=
   4594 fi
   4595 if test -z "$CPP"; then
   4596   if ${ac_cv_prog_CPP+:} false; then :
   4597   $as_echo_n "(cached) " >&6
   4598 else
   4599       # Double quotes because CPP needs to be expanded
   4600     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4601     do
   4602       ac_preproc_ok=false
   4603 for ac_c_preproc_warn_flag in '' yes
   4604 do
   4605   # Use a header file that comes with gcc, so configuring glibc
   4606   # with a fresh cross-compiler works.
   4607   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4608   # <limits.h> exists even on freestanding compilers.
   4609   # On the NeXT, cc -E runs the code through the compiler's parser,
   4610   # not just through cpp. "Syntax error" is here to catch this case.
   4611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4612 /* end confdefs.h.  */
   4613 #ifdef __STDC__
   4614 # include <limits.h>
   4615 #else
   4616 # include <assert.h>
   4617 #endif
   4618 		     Syntax error
   4619 _ACEOF
   4620 if ac_fn_c_try_cpp "$LINENO"; then :
   4621 
   4622 else
   4623   # Broken: fails on valid input.
   4624 continue
   4625 fi
   4626 rm -f conftest.err conftest.i conftest.$ac_ext
   4627 
   4628   # OK, works on sane cases.  Now check whether nonexistent headers
   4629   # can be detected and how.
   4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4631 /* end confdefs.h.  */
   4632 #include <ac_nonexistent.h>
   4633 _ACEOF
   4634 if ac_fn_c_try_cpp "$LINENO"; then :
   4635   # Broken: success on invalid input.
   4636 continue
   4637 else
   4638   # Passes both tests.
   4639 ac_preproc_ok=:
   4640 break
   4641 fi
   4642 rm -f conftest.err conftest.i conftest.$ac_ext
   4643 
   4644 done
   4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4646 rm -f conftest.i conftest.err conftest.$ac_ext
   4647 if $ac_preproc_ok; then :
   4648   break
   4649 fi
   4650 
   4651     done
   4652     ac_cv_prog_CPP=$CPP
   4653 
   4654 fi
   4655   CPP=$ac_cv_prog_CPP
   4656 else
   4657   ac_cv_prog_CPP=$CPP
   4658 fi
   4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4660 $as_echo "$CPP" >&6; }
   4661 ac_preproc_ok=false
   4662 for ac_c_preproc_warn_flag in '' yes
   4663 do
   4664   # Use a header file that comes with gcc, so configuring glibc
   4665   # with a fresh cross-compiler works.
   4666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4667   # <limits.h> exists even on freestanding compilers.
   4668   # On the NeXT, cc -E runs the code through the compiler's parser,
   4669   # not just through cpp. "Syntax error" is here to catch this case.
   4670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4671 /* end confdefs.h.  */
   4672 #ifdef __STDC__
   4673 # include <limits.h>
   4674 #else
   4675 # include <assert.h>
   4676 #endif
   4677 		     Syntax error
   4678 _ACEOF
   4679 if ac_fn_c_try_cpp "$LINENO"; then :
   4680 
   4681 else
   4682   # Broken: fails on valid input.
   4683 continue
   4684 fi
   4685 rm -f conftest.err conftest.i conftest.$ac_ext
   4686 
   4687   # OK, works on sane cases.  Now check whether nonexistent headers
   4688   # can be detected and how.
   4689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4690 /* end confdefs.h.  */
   4691 #include <ac_nonexistent.h>
   4692 _ACEOF
   4693 if ac_fn_c_try_cpp "$LINENO"; then :
   4694   # Broken: success on invalid input.
   4695 continue
   4696 else
   4697   # Passes both tests.
   4698 ac_preproc_ok=:
   4699 break
   4700 fi
   4701 rm -f conftest.err conftest.i conftest.$ac_ext
   4702 
   4703 done
   4704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4705 rm -f conftest.i conftest.err conftest.$ac_ext
   4706 if $ac_preproc_ok; then :
   4707 
   4708 else
   4709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4711 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4712 See \`config.log' for more details" "$LINENO" 5; }
   4713 fi
   4714 
   4715 ac_ext=c
   4716 ac_cpp='$CPP $CPPFLAGS'
   4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4720 
   4721 
   4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4724 if ${ac_cv_path_GREP+:} false; then :
   4725   $as_echo_n "(cached) " >&6
   4726 else
   4727   if test -z "$GREP"; then
   4728   ac_path_GREP_found=false
   4729   # Loop through the user's path and test for each of PROGNAME-LIST
   4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4732 do
   4733   IFS=$as_save_IFS
   4734   test -z "$as_dir" && as_dir=.
   4735     for ac_prog in grep ggrep; do
   4736     for ac_exec_ext in '' $ac_executable_extensions; do
   4737       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4738       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   4739 # Check for GNU ac_path_GREP and select it if it is found.
   4740   # Check for GNU $ac_path_GREP
   4741 case `"$ac_path_GREP" --version 2>&1` in
   4742 *GNU*)
   4743   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4744 *)
   4745   ac_count=0
   4746   $as_echo_n 0123456789 >"conftest.in"
   4747   while :
   4748   do
   4749     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4750     mv "conftest.tmp" "conftest.in"
   4751     cp "conftest.in" "conftest.nl"
   4752     $as_echo 'GREP' >> "conftest.nl"
   4753     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4755     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4756     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4757       # Best one so far, save it but keep looking for a better one
   4758       ac_cv_path_GREP="$ac_path_GREP"
   4759       ac_path_GREP_max=$ac_count
   4760     fi
   4761     # 10*(2^10) chars as input seems more than enough
   4762     test $ac_count -gt 10 && break
   4763   done
   4764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4765 esac
   4766 
   4767       $ac_path_GREP_found && break 3
   4768     done
   4769   done
   4770   done
   4771 IFS=$as_save_IFS
   4772   if test -z "$ac_cv_path_GREP"; then
   4773     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4774   fi
   4775 else
   4776   ac_cv_path_GREP=$GREP
   4777 fi
   4778 
   4779 fi
   4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4781 $as_echo "$ac_cv_path_GREP" >&6; }
   4782  GREP="$ac_cv_path_GREP"
   4783 
   4784 
   4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4786 $as_echo_n "checking for egrep... " >&6; }
   4787 if ${ac_cv_path_EGREP+:} false; then :
   4788   $as_echo_n "(cached) " >&6
   4789 else
   4790   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4791    then ac_cv_path_EGREP="$GREP -E"
   4792    else
   4793      if test -z "$EGREP"; then
   4794   ac_path_EGREP_found=false
   4795   # Loop through the user's path and test for each of PROGNAME-LIST
   4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4798 do
   4799   IFS=$as_save_IFS
   4800   test -z "$as_dir" && as_dir=.
   4801     for ac_prog in egrep; do
   4802     for ac_exec_ext in '' $ac_executable_extensions; do
   4803       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4804       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4805 # Check for GNU ac_path_EGREP and select it if it is found.
   4806   # Check for GNU $ac_path_EGREP
   4807 case `"$ac_path_EGREP" --version 2>&1` in
   4808 *GNU*)
   4809   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4810 *)
   4811   ac_count=0
   4812   $as_echo_n 0123456789 >"conftest.in"
   4813   while :
   4814   do
   4815     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4816     mv "conftest.tmp" "conftest.in"
   4817     cp "conftest.in" "conftest.nl"
   4818     $as_echo 'EGREP' >> "conftest.nl"
   4819     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4820     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4821     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4822     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4823       # Best one so far, save it but keep looking for a better one
   4824       ac_cv_path_EGREP="$ac_path_EGREP"
   4825       ac_path_EGREP_max=$ac_count
   4826     fi
   4827     # 10*(2^10) chars as input seems more than enough
   4828     test $ac_count -gt 10 && break
   4829   done
   4830   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4831 esac
   4832 
   4833       $ac_path_EGREP_found && break 3
   4834     done
   4835   done
   4836   done
   4837 IFS=$as_save_IFS
   4838   if test -z "$ac_cv_path_EGREP"; then
   4839     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4840   fi
   4841 else
   4842   ac_cv_path_EGREP=$EGREP
   4843 fi
   4844 
   4845    fi
   4846 fi
   4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4848 $as_echo "$ac_cv_path_EGREP" >&6; }
   4849  EGREP="$ac_cv_path_EGREP"
   4850 
   4851 
   4852 
   4853 
   4854       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
   4855 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
   4856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4857 /* end confdefs.h.  */
   4858 
   4859 #ifdef _AIX
   4860    yes_this_is_aix
   4861 #endif
   4862 
   4863 _ACEOF
   4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4865   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
   4866 
   4867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4868 $as_echo "yes" >&6; }
   4869     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4870 
   4871 
   4872 else
   4873 
   4874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4875 $as_echo "no" >&6; }
   4876 
   4877 fi
   4878 rm -f conftest*
   4879 
   4880 
   4881 
   4882 
   4883     #
   4884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
   4885 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
   4886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4887 /* end confdefs.h.  */
   4888 
   4889 
   4890 
   4891 int main (void)
   4892 {
   4893 
   4894 #ifdef _THREAD_SAFE
   4895       int dummy=1;
   4896 #else
   4897       force compilation error
   4898 #endif
   4899 
   4900  ;
   4901  return 0;
   4902 }
   4903 
   4904 _ACEOF
   4905 if ac_fn_c_try_compile "$LINENO"; then :
   4906 
   4907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4908 $as_echo "yes" >&6; }
   4909     tmp_thread_safe_initially_defined="yes"
   4910 
   4911 else
   4912 
   4913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4914 $as_echo "no" >&6; }
   4915     tmp_thread_safe_initially_defined="no"
   4916 
   4917 fi
   4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4919   #
   4920   if test "$tmp_thread_safe_initially_defined" = "no"; then
   4921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
   4922 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
   4923 
   4924   case $host_os in
   4925     aix[123].* | aix4.[012].*)
   4926             tmp_need_thread_safe="no"
   4927       ;;
   4928     aix*)
   4929             tmp_need_thread_safe="yes"
   4930       ;;
   4931     *)
   4932       tmp_need_thread_safe="no"
   4933       ;;
   4934   esac
   4935 
   4936     if test "$tmp_need_thread_safe" = "yes"; then
   4937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4938 $as_echo "yes" >&6; }
   4939     else
   4940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4941 $as_echo "no" >&6; }
   4942     fi
   4943   fi
   4944   #
   4945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
   4946 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
   4947   if test "$tmp_thread_safe_initially_defined" = "yes" ||
   4948     test "$tmp_need_thread_safe" = "yes"; then
   4949 
   4950 
   4951 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
   4952 
   4953 cat >>confdefs.h <<_EOF
   4954 #ifndef _THREAD_SAFE
   4955 #  define _THREAD_SAFE
   4956 #endif
   4957 _EOF
   4958 
   4959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4960 $as_echo "yes" >&6; }
   4961   else
   4962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4963 $as_echo "no" >&6; }
   4964   fi
   4965   #
   4966 
   4967 
   4968     #
   4969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
   4970 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
   4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4972 /* end confdefs.h.  */
   4973 
   4974 
   4975 
   4976 int main (void)
   4977 {
   4978 
   4979 #ifdef _REENTRANT
   4980       int dummy=1;
   4981 #else
   4982       force compilation error
   4983 #endif
   4984 
   4985  ;
   4986  return 0;
   4987 }
   4988 
   4989 _ACEOF
   4990 if ac_fn_c_try_compile "$LINENO"; then :
   4991 
   4992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4993 $as_echo "yes" >&6; }
   4994     tmp_reentrant_initially_defined="yes"
   4995 
   4996 else
   4997 
   4998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4999 $as_echo "no" >&6; }
   5000     tmp_reentrant_initially_defined="no"
   5001 
   5002 fi
   5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5004   #
   5005   if test "$tmp_reentrant_initially_defined" = "no"; then
   5006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
   5007 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
   5008 
   5009   case $host_os in
   5010     solaris*)
   5011       tmp_need_reentrant="yes"
   5012       ;;
   5013     *)
   5014       tmp_need_reentrant="no"
   5015       ;;
   5016   esac
   5017 
   5018     if test "$tmp_need_reentrant" = "no"; then
   5019 
   5020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5021 /* end confdefs.h.  */
   5022 
   5023 
   5024 #include <errno.h>
   5025 
   5026 int main (void)
   5027 {
   5028 
   5029       if(0 != errno)
   5030         return 1;
   5031 
   5032  ;
   5033  return 0;
   5034 }
   5035 
   5036 _ACEOF
   5037 if ac_fn_c_try_compile "$LINENO"; then :
   5038 
   5039     tmp_errno="yes"
   5040 
   5041 else
   5042 
   5043     tmp_errno="no"
   5044 
   5045 fi
   5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5047   if test "$tmp_errno" = "yes"; then
   5048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5049 /* end confdefs.h.  */
   5050 
   5051 
   5052 #include <errno.h>
   5053 
   5054 int main (void)
   5055 {
   5056 
   5057 #ifdef errno
   5058         int dummy=1;
   5059 #else
   5060         force compilation error
   5061 #endif
   5062 
   5063  ;
   5064  return 0;
   5065 }
   5066 
   5067 _ACEOF
   5068 if ac_fn_c_try_compile "$LINENO"; then :
   5069 
   5070       tmp_errno="errno_macro_defined"
   5071 
   5072 else
   5073 
   5074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5075 /* end confdefs.h.  */
   5076 
   5077 
   5078 #define _REENTRANT
   5079 #include <errno.h>
   5080 
   5081 int main (void)
   5082 {
   5083 
   5084 #ifdef errno
   5085           int dummy=1;
   5086 #else
   5087           force compilation error
   5088 #endif
   5089 
   5090  ;
   5091  return 0;
   5092 }
   5093 
   5094 _ACEOF
   5095 if ac_fn_c_try_compile "$LINENO"; then :
   5096 
   5097         tmp_errno="errno_macro_needs_reentrant"
   5098         tmp_need_reentrant="yes"
   5099 
   5100 fi
   5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5102 
   5103 fi
   5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5105   fi
   5106 
   5107     fi
   5108     if test "$tmp_need_reentrant" = "no"; then
   5109 
   5110   if test "$tmp_need_reentrant" = "no"; then
   5111 
   5112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5113 /* end confdefs.h.  */
   5114 
   5115 
   5116 #define gmtime_r innocuous_gmtime_r
   5117 #ifdef __STDC__
   5118 # include <limits.h>
   5119 #else
   5120 # include <assert.h>
   5121 #endif
   5122 #undef gmtime_r
   5123 #ifdef __cplusplus
   5124 extern "C"
   5125 #endif
   5126 char gmtime_r ();
   5127 #if defined __stub_gmtime_r || defined __stub___gmtime_r
   5128 choke me
   5129 #endif
   5130 
   5131 int main (void)
   5132 {
   5133 return gmtime_r ();
   5134  ;
   5135  return 0;
   5136 }
   5137 
   5138 _ACEOF
   5139 if ac_fn_c_try_link "$LINENO"; then :
   5140 
   5141     tmp_gmtime_r="yes"
   5142 
   5143 else
   5144 
   5145     tmp_gmtime_r="no"
   5146 
   5147 fi
   5148 rm -f core conftest.err conftest.$ac_objext \
   5149     conftest$ac_exeext conftest.$ac_ext
   5150   if test "$tmp_gmtime_r" = "yes"; then
   5151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5152 /* end confdefs.h.  */
   5153 
   5154 #include <sys/types.h>
   5155 #include <time.h>
   5156 
   5157 _ACEOF
   5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5159   $EGREP "gmtime_r" >/dev/null 2>&1; then :
   5160 
   5161       tmp_gmtime_r="proto_declared"
   5162 
   5163 else
   5164 
   5165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5166 /* end confdefs.h.  */
   5167 
   5168 #define _REENTRANT
   5169 #include <sys/types.h>
   5170 #include <time.h>
   5171 
   5172 _ACEOF
   5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5174   $EGREP "gmtime_r" >/dev/null 2>&1; then :
   5175 
   5176         tmp_gmtime_r="proto_needs_reentrant"
   5177         tmp_need_reentrant="yes"
   5178 
   5179 fi
   5180 rm -f conftest*
   5181 
   5182 
   5183 fi
   5184 rm -f conftest*
   5185 
   5186   fi
   5187 
   5188   fi
   5189   if test "$tmp_need_reentrant" = "no"; then
   5190 
   5191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5192 /* end confdefs.h.  */
   5193 
   5194 
   5195 #define localtime_r innocuous_localtime_r
   5196 #ifdef __STDC__
   5197 # include <limits.h>
   5198 #else
   5199 # include <assert.h>
   5200 #endif
   5201 #undef localtime_r
   5202 #ifdef __cplusplus
   5203 extern "C"
   5204 #endif
   5205 char localtime_r ();
   5206 #if defined __stub_localtime_r || defined __stub___localtime_r
   5207 choke me
   5208 #endif
   5209 
   5210 int main (void)
   5211 {
   5212 return localtime_r ();
   5213  ;
   5214  return 0;
   5215 }
   5216 
   5217 _ACEOF
   5218 if ac_fn_c_try_link "$LINENO"; then :
   5219 
   5220     tmp_localtime_r="yes"
   5221 
   5222 else
   5223 
   5224     tmp_localtime_r="no"
   5225 
   5226 fi
   5227 rm -f core conftest.err conftest.$ac_objext \
   5228     conftest$ac_exeext conftest.$ac_ext
   5229   if test "$tmp_localtime_r" = "yes"; then
   5230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5231 /* end confdefs.h.  */
   5232 
   5233 #include <sys/types.h>
   5234 #include <time.h>
   5235 
   5236 _ACEOF
   5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5238   $EGREP "localtime_r" >/dev/null 2>&1; then :
   5239 
   5240       tmp_localtime_r="proto_declared"
   5241 
   5242 else
   5243 
   5244       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5245 /* end confdefs.h.  */
   5246 
   5247 #define _REENTRANT
   5248 #include <sys/types.h>
   5249 #include <time.h>
   5250 
   5251 _ACEOF
   5252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5253   $EGREP "localtime_r" >/dev/null 2>&1; then :
   5254 
   5255         tmp_localtime_r="proto_needs_reentrant"
   5256         tmp_need_reentrant="yes"
   5257 
   5258 fi
   5259 rm -f conftest*
   5260 
   5261 
   5262 fi
   5263 rm -f conftest*
   5264 
   5265   fi
   5266 
   5267   fi
   5268   if test "$tmp_need_reentrant" = "no"; then
   5269 
   5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5271 /* end confdefs.h.  */
   5272 
   5273 
   5274 #define strerror_r innocuous_strerror_r
   5275 #ifdef __STDC__
   5276 # include <limits.h>
   5277 #else
   5278 # include <assert.h>
   5279 #endif
   5280 #undef strerror_r
   5281 #ifdef __cplusplus
   5282 extern "C"
   5283 #endif
   5284 char strerror_r ();
   5285 #if defined __stub_strerror_r || defined __stub___strerror_r
   5286 choke me
   5287 #endif
   5288 
   5289 int main (void)
   5290 {
   5291 return strerror_r ();
   5292  ;
   5293  return 0;
   5294 }
   5295 
   5296 _ACEOF
   5297 if ac_fn_c_try_link "$LINENO"; then :
   5298 
   5299     tmp_strerror_r="yes"
   5300 
   5301 else
   5302 
   5303     tmp_strerror_r="no"
   5304 
   5305 fi
   5306 rm -f core conftest.err conftest.$ac_objext \
   5307     conftest$ac_exeext conftest.$ac_ext
   5308   if test "$tmp_strerror_r" = "yes"; then
   5309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5310 /* end confdefs.h.  */
   5311 
   5312 #include <sys/types.h>
   5313 #include <string.h>
   5314 
   5315 _ACEOF
   5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5317   $EGREP "strerror_r" >/dev/null 2>&1; then :
   5318 
   5319       tmp_strerror_r="proto_declared"
   5320 
   5321 else
   5322 
   5323       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5324 /* end confdefs.h.  */
   5325 
   5326 #define _REENTRANT
   5327 #include <sys/types.h>
   5328 #include <string.h>
   5329 
   5330 _ACEOF
   5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5332   $EGREP "strerror_r" >/dev/null 2>&1; then :
   5333 
   5334         tmp_strerror_r="proto_needs_reentrant"
   5335         tmp_need_reentrant="yes"
   5336 
   5337 fi
   5338 rm -f conftest*
   5339 
   5340 
   5341 fi
   5342 rm -f conftest*
   5343 
   5344   fi
   5345 
   5346   fi
   5347   if test "$tmp_need_reentrant" = "no"; then
   5348 
   5349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5350 /* end confdefs.h.  */
   5351 
   5352 
   5353 #define strtok_r innocuous_strtok_r
   5354 #ifdef __STDC__
   5355 # include <limits.h>
   5356 #else
   5357 # include <assert.h>
   5358 #endif
   5359 #undef strtok_r
   5360 #ifdef __cplusplus
   5361 extern "C"
   5362 #endif
   5363 char strtok_r ();
   5364 #if defined __stub_strtok_r || defined __stub___strtok_r
   5365 choke me
   5366 #endif
   5367 
   5368 int main (void)
   5369 {
   5370 return strtok_r ();
   5371  ;
   5372  return 0;
   5373 }
   5374 
   5375 _ACEOF
   5376 if ac_fn_c_try_link "$LINENO"; then :
   5377 
   5378     tmp_strtok_r="yes"
   5379 
   5380 else
   5381 
   5382     tmp_strtok_r="no"
   5383 
   5384 fi
   5385 rm -f core conftest.err conftest.$ac_objext \
   5386     conftest$ac_exeext conftest.$ac_ext
   5387   if test "$tmp_strtok_r" = "yes"; then
   5388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5389 /* end confdefs.h.  */
   5390 
   5391 #include <sys/types.h>
   5392 #include <string.h>
   5393 
   5394 _ACEOF
   5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5396   $EGREP "strtok_r" >/dev/null 2>&1; then :
   5397 
   5398       tmp_strtok_r="proto_declared"
   5399 
   5400 else
   5401 
   5402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5403 /* end confdefs.h.  */
   5404 
   5405 #define _REENTRANT
   5406 #include <sys/types.h>
   5407 #include <string.h>
   5408 
   5409 _ACEOF
   5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5411   $EGREP "strtok_r" >/dev/null 2>&1; then :
   5412 
   5413         tmp_strtok_r="proto_needs_reentrant"
   5414         tmp_need_reentrant="yes"
   5415 
   5416 fi
   5417 rm -f conftest*
   5418 
   5419 
   5420 fi
   5421 rm -f conftest*
   5422 
   5423   fi
   5424 
   5425   fi
   5426   if test "$tmp_need_reentrant" = "no"; then
   5427 
   5428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5429 /* end confdefs.h.  */
   5430 
   5431 
   5432 #define inet_ntoa_r innocuous_inet_ntoa_r
   5433 #ifdef __STDC__
   5434 # include <limits.h>
   5435 #else
   5436 # include <assert.h>
   5437 #endif
   5438 #undef inet_ntoa_r
   5439 #ifdef __cplusplus
   5440 extern "C"
   5441 #endif
   5442 char inet_ntoa_r ();
   5443 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
   5444 choke me
   5445 #endif
   5446 
   5447 int main (void)
   5448 {
   5449 return inet_ntoa_r ();
   5450  ;
   5451  return 0;
   5452 }
   5453 
   5454 _ACEOF
   5455 if ac_fn_c_try_link "$LINENO"; then :
   5456 
   5457     tmp_inet_ntoa_r="yes"
   5458 
   5459 else
   5460 
   5461     tmp_inet_ntoa_r="no"
   5462 
   5463 fi
   5464 rm -f core conftest.err conftest.$ac_objext \
   5465     conftest$ac_exeext conftest.$ac_ext
   5466   if test "$tmp_inet_ntoa_r" = "yes"; then
   5467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5468 /* end confdefs.h.  */
   5469 
   5470 #include <sys/types.h>
   5471 #include <sys/socket.h>
   5472 #include <netinet/in.h>
   5473 #include <arpa/inet.h>
   5474 
   5475 _ACEOF
   5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5477   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
   5478 
   5479       tmp_inet_ntoa_r="proto_declared"
   5480 
   5481 else
   5482 
   5483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5484 /* end confdefs.h.  */
   5485 
   5486 #define _REENTRANT
   5487 #include <sys/types.h>
   5488 #include <sys/socket.h>
   5489 #include <netinet/in.h>
   5490 #include <arpa/inet.h>
   5491 
   5492 _ACEOF
   5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5494   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
   5495 
   5496         tmp_inet_ntoa_r="proto_needs_reentrant"
   5497         tmp_need_reentrant="yes"
   5498 
   5499 fi
   5500 rm -f conftest*
   5501 
   5502 
   5503 fi
   5504 rm -f conftest*
   5505 
   5506   fi
   5507 
   5508   fi
   5509   if test "$tmp_need_reentrant" = "no"; then
   5510 
   5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5512 /* end confdefs.h.  */
   5513 
   5514 
   5515 #define gethostbyaddr_r innocuous_gethostbyaddr_r
   5516 #ifdef __STDC__
   5517 # include <limits.h>
   5518 #else
   5519 # include <assert.h>
   5520 #endif
   5521 #undef gethostbyaddr_r
   5522 #ifdef __cplusplus
   5523 extern "C"
   5524 #endif
   5525 char gethostbyaddr_r ();
   5526 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
   5527 choke me
   5528 #endif
   5529 
   5530 int main (void)
   5531 {
   5532 return gethostbyaddr_r ();
   5533  ;
   5534  return 0;
   5535 }
   5536 
   5537 _ACEOF
   5538 if ac_fn_c_try_link "$LINENO"; then :
   5539 
   5540     tmp_gethostbyaddr_r="yes"
   5541 
   5542 else
   5543 
   5544     tmp_gethostbyaddr_r="no"
   5545 
   5546 fi
   5547 rm -f core conftest.err conftest.$ac_objext \
   5548     conftest$ac_exeext conftest.$ac_ext
   5549   if test "$tmp_gethostbyaddr_r" = "yes"; then
   5550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5551 /* end confdefs.h.  */
   5552 
   5553 #include <sys/types.h>
   5554 #include <netdb.h>
   5555 
   5556 _ACEOF
   5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5558   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
   5559 
   5560       tmp_gethostbyaddr_r="proto_declared"
   5561 
   5562 else
   5563 
   5564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5565 /* end confdefs.h.  */
   5566 
   5567 #define _REENTRANT
   5568 #include <sys/types.h>
   5569 #include <netdb.h>
   5570 
   5571 _ACEOF
   5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5573   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
   5574 
   5575         tmp_gethostbyaddr_r="proto_needs_reentrant"
   5576         tmp_need_reentrant="yes"
   5577 
   5578 fi
   5579 rm -f conftest*
   5580 
   5581 
   5582 fi
   5583 rm -f conftest*
   5584 
   5585   fi
   5586 
   5587   fi
   5588   if test "$tmp_need_reentrant" = "no"; then
   5589 
   5590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5591 /* end confdefs.h.  */
   5592 
   5593 
   5594 #define gethostbyname_r innocuous_gethostbyname_r
   5595 #ifdef __STDC__
   5596 # include <limits.h>
   5597 #else
   5598 # include <assert.h>
   5599 #endif
   5600 #undef gethostbyname_r
   5601 #ifdef __cplusplus
   5602 extern "C"
   5603 #endif
   5604 char gethostbyname_r ();
   5605 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
   5606 choke me
   5607 #endif
   5608 
   5609 int main (void)
   5610 {
   5611 return gethostbyname_r ();
   5612  ;
   5613  return 0;
   5614 }
   5615 
   5616 _ACEOF
   5617 if ac_fn_c_try_link "$LINENO"; then :
   5618 
   5619     tmp_gethostbyname_r="yes"
   5620 
   5621 else
   5622 
   5623     tmp_gethostbyname_r="no"
   5624 
   5625 fi
   5626 rm -f core conftest.err conftest.$ac_objext \
   5627     conftest$ac_exeext conftest.$ac_ext
   5628   if test "$tmp_gethostbyname_r" = "yes"; then
   5629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5630 /* end confdefs.h.  */
   5631 
   5632 #include <sys/types.h>
   5633 #include <netdb.h>
   5634 
   5635 _ACEOF
   5636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5637   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
   5638 
   5639       tmp_gethostbyname_r="proto_declared"
   5640 
   5641 else
   5642 
   5643       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5644 /* end confdefs.h.  */
   5645 
   5646 #define _REENTRANT
   5647 #include <sys/types.h>
   5648 #include <netdb.h>
   5649 
   5650 _ACEOF
   5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5652   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
   5653 
   5654         tmp_gethostbyname_r="proto_needs_reentrant"
   5655         tmp_need_reentrant="yes"
   5656 
   5657 fi
   5658 rm -f conftest*
   5659 
   5660 
   5661 fi
   5662 rm -f conftest*
   5663 
   5664   fi
   5665 
   5666   fi
   5667   if test "$tmp_need_reentrant" = "no"; then
   5668 
   5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5670 /* end confdefs.h.  */
   5671 
   5672 
   5673 #define getprotobyname_r innocuous_getprotobyname_r
   5674 #ifdef __STDC__
   5675 # include <limits.h>
   5676 #else
   5677 # include <assert.h>
   5678 #endif
   5679 #undef getprotobyname_r
   5680 #ifdef __cplusplus
   5681 extern "C"
   5682 #endif
   5683 char getprotobyname_r ();
   5684 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
   5685 choke me
   5686 #endif
   5687 
   5688 int main (void)
   5689 {
   5690 return getprotobyname_r ();
   5691  ;
   5692  return 0;
   5693 }
   5694 
   5695 _ACEOF
   5696 if ac_fn_c_try_link "$LINENO"; then :
   5697 
   5698     tmp_getprotobyname_r="yes"
   5699 
   5700 else
   5701 
   5702     tmp_getprotobyname_r="no"
   5703 
   5704 fi
   5705 rm -f core conftest.err conftest.$ac_objext \
   5706     conftest$ac_exeext conftest.$ac_ext
   5707   if test "$tmp_getprotobyname_r" = "yes"; then
   5708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5709 /* end confdefs.h.  */
   5710 
   5711 #include <sys/types.h>
   5712 #include <netdb.h>
   5713 
   5714 _ACEOF
   5715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5716   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
   5717 
   5718       tmp_getprotobyname_r="proto_declared"
   5719 
   5720 else
   5721 
   5722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5723 /* end confdefs.h.  */
   5724 
   5725 #define _REENTRANT
   5726 #include <sys/types.h>
   5727 #include <netdb.h>
   5728 
   5729 _ACEOF
   5730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5731   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
   5732 
   5733         tmp_getprotobyname_r="proto_needs_reentrant"
   5734         tmp_need_reentrant="yes"
   5735 
   5736 fi
   5737 rm -f conftest*
   5738 
   5739 
   5740 fi
   5741 rm -f conftest*
   5742 
   5743   fi
   5744 
   5745   fi
   5746   if test "$tmp_need_reentrant" = "no"; then
   5747 
   5748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5749 /* end confdefs.h.  */
   5750 
   5751 
   5752 #define getservbyport_r innocuous_getservbyport_r
   5753 #ifdef __STDC__
   5754 # include <limits.h>
   5755 #else
   5756 # include <assert.h>
   5757 #endif
   5758 #undef getservbyport_r
   5759 #ifdef __cplusplus
   5760 extern "C"
   5761 #endif
   5762 char getservbyport_r ();
   5763 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
   5764 choke me
   5765 #endif
   5766 
   5767 int main (void)
   5768 {
   5769 return getservbyport_r ();
   5770  ;
   5771  return 0;
   5772 }
   5773 
   5774 _ACEOF
   5775 if ac_fn_c_try_link "$LINENO"; then :
   5776 
   5777     tmp_getservbyport_r="yes"
   5778 
   5779 else
   5780 
   5781     tmp_getservbyport_r="no"
   5782 
   5783 fi
   5784 rm -f core conftest.err conftest.$ac_objext \
   5785     conftest$ac_exeext conftest.$ac_ext
   5786   if test "$tmp_getservbyport_r" = "yes"; then
   5787     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5788 /* end confdefs.h.  */
   5789 
   5790 #include <sys/types.h>
   5791 #include <netdb.h>
   5792 
   5793 _ACEOF
   5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5795   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
   5796 
   5797       tmp_getservbyport_r="proto_declared"
   5798 
   5799 else
   5800 
   5801       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5802 /* end confdefs.h.  */
   5803 
   5804 #define _REENTRANT
   5805 #include <sys/types.h>
   5806 #include <netdb.h>
   5807 
   5808 _ACEOF
   5809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5810   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
   5811 
   5812         tmp_getservbyport_r="proto_needs_reentrant"
   5813         tmp_need_reentrant="yes"
   5814 
   5815 fi
   5816 rm -f conftest*
   5817 
   5818 
   5819 fi
   5820 rm -f conftest*
   5821 
   5822   fi
   5823 
   5824   fi
   5825 
   5826     fi
   5827     if test "$tmp_need_reentrant" = "yes"; then
   5828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5829 $as_echo "yes" >&6; }
   5830     else
   5831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5832 $as_echo "no" >&6; }
   5833     fi
   5834   fi
   5835   #
   5836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
   5837 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
   5838   if test "$tmp_reentrant_initially_defined" = "yes" ||
   5839     test "$tmp_need_reentrant" = "yes"; then
   5840 
   5841 
   5842 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
   5843 
   5844 cat >>confdefs.h <<_EOF
   5845 #ifndef _REENTRANT
   5846 #  define _REENTRANT
   5847 #endif
   5848 _EOF
   5849 
   5850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5851 $as_echo "yes" >&6; }
   5852   else
   5853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5854 $as_echo "no" >&6; }
   5855   fi
   5856   #
   5857 
   5858 
   5859 # Check whether --enable-largefile was given.
   5860 if test "${enable_largefile+set}" = set; then :
   5861   enableval=$enable_largefile;
   5862 fi
   5863 
   5864 if test "$enable_largefile" != no; then
   5865 
   5866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   5867 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   5868 if ${ac_cv_sys_largefile_CC+:} false; then :
   5869   $as_echo_n "(cached) " >&6
   5870 else
   5871   ac_cv_sys_largefile_CC=no
   5872      if test "$GCC" != yes; then
   5873        ac_save_CC=$CC
   5874        while :; do
   5875 	 # IRIX 6.2 and later do not support large files by default,
   5876 	 # so use the C compiler's -n32 option if that helps.
   5877 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5878 /* end confdefs.h.  */
   5879 #include <sys/types.h>
   5880  /* Check that off_t can represent 2**63 - 1 correctly.
   5881     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5882     since some C++ compilers masquerading as C compilers
   5883     incorrectly reject 9223372036854775807.  */
   5884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5885   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5886 		       && LARGE_OFF_T % 2147483647 == 1)
   5887 		      ? 1 : -1];
   5888 int main (void)
   5889 {
   5890 
   5891  ;
   5892  return 0;
   5893 }
   5894 _ACEOF
   5895 	 if ac_fn_c_try_compile "$LINENO"; then :
   5896   break
   5897 fi
   5898 rm -f core conftest.err conftest.$ac_objext
   5899 	 CC="$CC -n32"
   5900 	 if ac_fn_c_try_compile "$LINENO"; then :
   5901   ac_cv_sys_largefile_CC=' -n32'; break
   5902 fi
   5903 rm -f core conftest.err conftest.$ac_objext
   5904 	 break
   5905        done
   5906        CC=$ac_save_CC
   5907        rm -f conftest.$ac_ext
   5908     fi
   5909 fi
   5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   5911 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   5912   if test "$ac_cv_sys_largefile_CC" != no; then
   5913     CC=$CC$ac_cv_sys_largefile_CC
   5914   fi
   5915 
   5916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   5917 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   5918 if ${ac_cv_sys_file_offset_bits+:} false; then :
   5919   $as_echo_n "(cached) " >&6
   5920 else
   5921   while :; do
   5922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5923 /* end confdefs.h.  */
   5924 #include <sys/types.h>
   5925  /* Check that off_t can represent 2**63 - 1 correctly.
   5926     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5927     since some C++ compilers masquerading as C compilers
   5928     incorrectly reject 9223372036854775807.  */
   5929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5930   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5931 		       && LARGE_OFF_T % 2147483647 == 1)
   5932 		      ? 1 : -1];
   5933 int main (void)
   5934 {
   5935 
   5936  ;
   5937  return 0;
   5938 }
   5939 _ACEOF
   5940 if ac_fn_c_try_compile "$LINENO"; then :
   5941   ac_cv_sys_file_offset_bits=no; break
   5942 fi
   5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5945 /* end confdefs.h.  */
   5946 #define _FILE_OFFSET_BITS 64
   5947 #include <sys/types.h>
   5948  /* Check that off_t can represent 2**63 - 1 correctly.
   5949     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5950     since some C++ compilers masquerading as C compilers
   5951     incorrectly reject 9223372036854775807.  */
   5952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5953   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5954 		       && LARGE_OFF_T % 2147483647 == 1)
   5955 		      ? 1 : -1];
   5956 int main (void)
   5957 {
   5958 
   5959  ;
   5960  return 0;
   5961 }
   5962 _ACEOF
   5963 if ac_fn_c_try_compile "$LINENO"; then :
   5964   ac_cv_sys_file_offset_bits=64; break
   5965 fi
   5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5967   ac_cv_sys_file_offset_bits=unknown
   5968   break
   5969 done
   5970 fi
   5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   5972 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   5973 case $ac_cv_sys_file_offset_bits in #(
   5974   no | unknown) ;;
   5975   *)
   5976 cat >>confdefs.h <<_ACEOF
   5977 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   5978 _ACEOF
   5979 ;;
   5980 esac
   5981 rm -rf conftest*
   5982   if test $ac_cv_sys_file_offset_bits = unknown; then
   5983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   5984 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   5985 if ${ac_cv_sys_large_files+:} false; then :
   5986   $as_echo_n "(cached) " >&6
   5987 else
   5988   while :; do
   5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5990 /* end confdefs.h.  */
   5991 #include <sys/types.h>
   5992  /* Check that off_t can represent 2**63 - 1 correctly.
   5993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5994     since some C++ compilers masquerading as C compilers
   5995     incorrectly reject 9223372036854775807.  */
   5996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5998 		       && LARGE_OFF_T % 2147483647 == 1)
   5999 		      ? 1 : -1];
   6000 int main (void)
   6001 {
   6002 
   6003  ;
   6004  return 0;
   6005 }
   6006 _ACEOF
   6007 if ac_fn_c_try_compile "$LINENO"; then :
   6008   ac_cv_sys_large_files=no; break
   6009 fi
   6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6012 /* end confdefs.h.  */
   6013 #define _LARGE_FILES 1
   6014 #include <sys/types.h>
   6015  /* Check that off_t can represent 2**63 - 1 correctly.
   6016     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6017     since some C++ compilers masquerading as C compilers
   6018     incorrectly reject 9223372036854775807.  */
   6019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6020   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6021 		       && LARGE_OFF_T % 2147483647 == 1)
   6022 		      ? 1 : -1];
   6023 int main (void)
   6024 {
   6025 
   6026  ;
   6027  return 0;
   6028 }
   6029 _ACEOF
   6030 if ac_fn_c_try_compile "$LINENO"; then :
   6031   ac_cv_sys_large_files=1; break
   6032 fi
   6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6034   ac_cv_sys_large_files=unknown
   6035   break
   6036 done
   6037 fi
   6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   6039 $as_echo "$ac_cv_sys_large_files" >&6; }
   6040 case $ac_cv_sys_large_files in #(
   6041   no | unknown) ;;
   6042   *)
   6043 cat >>confdefs.h <<_ACEOF
   6044 #define _LARGE_FILES $ac_cv_sys_large_files
   6045 _ACEOF
   6046 ;;
   6047 esac
   6048 rm -rf conftest*
   6049   fi
   6050 fi
   6051 
   6052 
   6053 case $host_os in
   6054   solaris*)
   6055 
   6056 $as_echo "#define ETC_INET 1" >>confdefs.h
   6057 
   6058     ;;
   6059 esac
   6060 
   6061 enable_win32_dll=yes
   6062 
   6063 case $host in
   6064 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
   6065   if test -n "$ac_tool_prefix"; then
   6066   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
   6067 set dummy ${ac_tool_prefix}as; ac_word=$2
   6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6069 $as_echo_n "checking for $ac_word... " >&6; }
   6070 if ${ac_cv_prog_AS+:} false; then :
   6071   $as_echo_n "(cached) " >&6
   6072 else
   6073   if test -n "$AS"; then
   6074   ac_cv_prog_AS="$AS" # Let the user override the test.
   6075 else
   6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6077 for as_dir in $PATH
   6078 do
   6079   IFS=$as_save_IFS
   6080   test -z "$as_dir" && as_dir=.
   6081     for ac_exec_ext in '' $ac_executable_extensions; do
   6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6083     ac_cv_prog_AS="${ac_tool_prefix}as"
   6084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6085     break 2
   6086   fi
   6087 done
   6088   done
   6089 IFS=$as_save_IFS
   6090 
   6091 fi
   6092 fi
   6093 AS=$ac_cv_prog_AS
   6094 if test -n "$AS"; then
   6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   6096 $as_echo "$AS" >&6; }
   6097 else
   6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6099 $as_echo "no" >&6; }
   6100 fi
   6101 
   6102 
   6103 fi
   6104 if test -z "$ac_cv_prog_AS"; then
   6105   ac_ct_AS=$AS
   6106   # Extract the first word of "as", so it can be a program name with args.
   6107 set dummy as; ac_word=$2
   6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6109 $as_echo_n "checking for $ac_word... " >&6; }
   6110 if ${ac_cv_prog_ac_ct_AS+:} false; then :
   6111   $as_echo_n "(cached) " >&6
   6112 else
   6113   if test -n "$ac_ct_AS"; then
   6114   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
   6115 else
   6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6117 for as_dir in $PATH
   6118 do
   6119   IFS=$as_save_IFS
   6120   test -z "$as_dir" && as_dir=.
   6121     for ac_exec_ext in '' $ac_executable_extensions; do
   6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6123     ac_cv_prog_ac_ct_AS="as"
   6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6125     break 2
   6126   fi
   6127 done
   6128   done
   6129 IFS=$as_save_IFS
   6130 
   6131 fi
   6132 fi
   6133 ac_ct_AS=$ac_cv_prog_ac_ct_AS
   6134 if test -n "$ac_ct_AS"; then
   6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
   6136 $as_echo "$ac_ct_AS" >&6; }
   6137 else
   6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6139 $as_echo "no" >&6; }
   6140 fi
   6141 
   6142   if test "x$ac_ct_AS" = x; then
   6143     AS="false"
   6144   else
   6145     case $cross_compiling:$ac_tool_warned in
   6146 yes:)
   6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6149 ac_tool_warned=yes ;;
   6150 esac
   6151     AS=$ac_ct_AS
   6152   fi
   6153 else
   6154   AS="$ac_cv_prog_AS"
   6155 fi
   6156 
   6157   if test -n "$ac_tool_prefix"; then
   6158   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6161 $as_echo_n "checking for $ac_word... " >&6; }
   6162 if ${ac_cv_prog_DLLTOOL+:} false; then :
   6163   $as_echo_n "(cached) " >&6
   6164 else
   6165   if test -n "$DLLTOOL"; then
   6166   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6167 else
   6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6169 for as_dir in $PATH
   6170 do
   6171   IFS=$as_save_IFS
   6172   test -z "$as_dir" && as_dir=.
   6173     for ac_exec_ext in '' $ac_executable_extensions; do
   6174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6175     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6177     break 2
   6178   fi
   6179 done
   6180   done
   6181 IFS=$as_save_IFS
   6182 
   6183 fi
   6184 fi
   6185 DLLTOOL=$ac_cv_prog_DLLTOOL
   6186 if test -n "$DLLTOOL"; then
   6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6188 $as_echo "$DLLTOOL" >&6; }
   6189 else
   6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6191 $as_echo "no" >&6; }
   6192 fi
   6193 
   6194 
   6195 fi
   6196 if test -z "$ac_cv_prog_DLLTOOL"; then
   6197   ac_ct_DLLTOOL=$DLLTOOL
   6198   # Extract the first word of "dlltool", so it can be a program name with args.
   6199 set dummy dlltool; ac_word=$2
   6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6201 $as_echo_n "checking for $ac_word... " >&6; }
   6202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   6203   $as_echo_n "(cached) " >&6
   6204 else
   6205   if test -n "$ac_ct_DLLTOOL"; then
   6206   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6207 else
   6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6209 for as_dir in $PATH
   6210 do
   6211   IFS=$as_save_IFS
   6212   test -z "$as_dir" && as_dir=.
   6213     for ac_exec_ext in '' $ac_executable_extensions; do
   6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6215     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6217     break 2
   6218   fi
   6219 done
   6220   done
   6221 IFS=$as_save_IFS
   6222 
   6223 fi
   6224 fi
   6225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6226 if test -n "$ac_ct_DLLTOOL"; then
   6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6228 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6229 else
   6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6231 $as_echo "no" >&6; }
   6232 fi
   6233 
   6234   if test "x$ac_ct_DLLTOOL" = x; then
   6235     DLLTOOL="false"
   6236   else
   6237     case $cross_compiling:$ac_tool_warned in
   6238 yes:)
   6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6241 ac_tool_warned=yes ;;
   6242 esac
   6243     DLLTOOL=$ac_ct_DLLTOOL
   6244   fi
   6245 else
   6246   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6247 fi
   6248 
   6249   if test -n "$ac_tool_prefix"; then
   6250   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   6251 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6253 $as_echo_n "checking for $ac_word... " >&6; }
   6254 if ${ac_cv_prog_OBJDUMP+:} false; then :
   6255   $as_echo_n "(cached) " >&6
   6256 else
   6257   if test -n "$OBJDUMP"; then
   6258   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   6259 else
   6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6261 for as_dir in $PATH
   6262 do
   6263   IFS=$as_save_IFS
   6264   test -z "$as_dir" && as_dir=.
   6265     for ac_exec_ext in '' $ac_executable_extensions; do
   6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6267     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6269     break 2
   6270   fi
   6271 done
   6272   done
   6273 IFS=$as_save_IFS
   6274 
   6275 fi
   6276 fi
   6277 OBJDUMP=$ac_cv_prog_OBJDUMP
   6278 if test -n "$OBJDUMP"; then
   6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   6280 $as_echo "$OBJDUMP" >&6; }
   6281 else
   6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6283 $as_echo "no" >&6; }
   6284 fi
   6285 
   6286 
   6287 fi
   6288 if test -z "$ac_cv_prog_OBJDUMP"; then
   6289   ac_ct_OBJDUMP=$OBJDUMP
   6290   # Extract the first word of "objdump", so it can be a program name with args.
   6291 set dummy objdump; ac_word=$2
   6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6293 $as_echo_n "checking for $ac_word... " >&6; }
   6294 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   6295   $as_echo_n "(cached) " >&6
   6296 else
   6297   if test -n "$ac_ct_OBJDUMP"; then
   6298   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   6299 else
   6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6301 for as_dir in $PATH
   6302 do
   6303   IFS=$as_save_IFS
   6304   test -z "$as_dir" && as_dir=.
   6305     for ac_exec_ext in '' $ac_executable_extensions; do
   6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6307     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6309     break 2
   6310   fi
   6311 done
   6312   done
   6313 IFS=$as_save_IFS
   6314 
   6315 fi
   6316 fi
   6317 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   6318 if test -n "$ac_ct_OBJDUMP"; then
   6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   6320 $as_echo "$ac_ct_OBJDUMP" >&6; }
   6321 else
   6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6323 $as_echo "no" >&6; }
   6324 fi
   6325 
   6326   if test "x$ac_ct_OBJDUMP" = x; then
   6327     OBJDUMP="false"
   6328   else
   6329     case $cross_compiling:$ac_tool_warned in
   6330 yes:)
   6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6333 ac_tool_warned=yes ;;
   6334 esac
   6335     OBJDUMP=$ac_ct_OBJDUMP
   6336   fi
   6337 else
   6338   OBJDUMP="$ac_cv_prog_OBJDUMP"
   6339 fi
   6340 
   6341   ;;
   6342 esac
   6343 
   6344 test -z "$AS" && AS=as
   6345 
   6346 
   6347 
   6348 
   6349 
   6350 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6351 
   6352 
   6353 
   6354 
   6355 
   6356 test -z "$OBJDUMP" && OBJDUMP=objdump
   6357 
   6358 
   6359 
   6360 
   6361 
   6362 
   6363 
   6364 
   6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5
   6366 $as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; }
   6367 case $host in
   6368   x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
   6369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6370 $as_echo "yes" >&6; }
   6371     with_pic=yes
   6372     ;;
   6373   *)
   6374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6375 $as_echo "no" >&6; }
   6376     ;;
   6377 esac
   6378 
   6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5
   6380 $as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; }
   6381 case $CC in
   6382   icc | */icc)
   6383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6384 $as_echo "yes" >&6; }
   6385     with_pic=yes
   6386     ;;
   6387   *)
   6388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6389 $as_echo "no" >&6; }
   6390     ;;
   6391 esac
   6392 
   6393 case `pwd` in
   6394   *\ * | *\	*)
   6395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   6396 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   6397 esac
   6398 
   6399 
   6400 
   6401 macro_version='2.4'
   6402 macro_revision='1.3293'
   6403 
   6404 
   6405 
   6406 
   6407 
   6408 
   6409 
   6410 
   6411 
   6412 
   6413 
   6414 
   6415 
   6416 ltmain="$ac_aux_dir/ltmain.sh"
   6417 
   6418 # Backslashify metacharacters that are still active within
   6419 # double-quoted strings.
   6420 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   6421 
   6422 # Same as above, but do not quote variable references.
   6423 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   6424 
   6425 # Sed substitution to delay expansion of an escaped shell variable in a
   6426 # double_quote_subst'ed string.
   6427 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   6428 
   6429 # Sed substitution to delay expansion of an escaped single quote.
   6430 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   6431 
   6432 # Sed substitution to avoid accidental globbing in evaled expressions
   6433 no_glob_subst='s/\*/\\\*/g'
   6434 
   6435 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   6436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   6437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   6438 
   6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   6440 $as_echo_n "checking how to print strings... " >&6; }
   6441 # Test print first, because it will be a builtin if present.
   6442 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   6443    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   6444   ECHO='print -r --'
   6445 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   6446   ECHO='printf %s\n'
   6447 else
   6448   # Use this function as a fallback that always works.
   6449   func_fallback_echo ()
   6450   {
   6451     eval 'cat <<_LTECHO_EOF
   6452 $1
   6453 _LTECHO_EOF'
   6454   }
   6455   ECHO='func_fallback_echo'
   6456 fi
   6457 
   6458 # func_echo_all arg...
   6459 # Invoke $ECHO with all args, space-separated.
   6460 func_echo_all ()
   6461 {
   6462     $ECHO ""
   6463 }
   6464 
   6465 case "$ECHO" in
   6466   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   6467 $as_echo "printf" >&6; } ;;
   6468   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   6469 $as_echo "print -r" >&6; } ;;
   6470   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   6471 $as_echo "cat" >&6; } ;;
   6472 esac
   6473 
   6474 
   6475 
   6476 
   6477 
   6478 
   6479 
   6480 
   6481 
   6482 
   6483 
   6484 
   6485 
   6486 
   6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   6488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   6489 if ${ac_cv_path_SED+:} false; then :
   6490   $as_echo_n "(cached) " >&6
   6491 else
   6492             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   6493      for ac_i in 1 2 3 4 5 6 7; do
   6494        ac_script="$ac_script$as_nl$ac_script"
   6495      done
   6496      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   6497      { ac_script=; unset ac_script;}
   6498      if test -z "$SED"; then
   6499   ac_path_SED_found=false
   6500   # Loop through the user's path and test for each of PROGNAME-LIST
   6501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6502 for as_dir in $PATH
   6503 do
   6504   IFS=$as_save_IFS
   6505   test -z "$as_dir" && as_dir=.
   6506     for ac_prog in sed gsed; do
   6507     for ac_exec_ext in '' $ac_executable_extensions; do
   6508       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   6509       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   6510 # Check for GNU ac_path_SED and select it if it is found.
   6511   # Check for GNU $ac_path_SED
   6512 case `"$ac_path_SED" --version 2>&1` in
   6513 *GNU*)
   6514   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   6515 *)
   6516   ac_count=0
   6517   $as_echo_n 0123456789 >"conftest.in"
   6518   while :
   6519   do
   6520     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6521     mv "conftest.tmp" "conftest.in"
   6522     cp "conftest.in" "conftest.nl"
   6523     $as_echo '' >> "conftest.nl"
   6524     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6526     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6527     if test $ac_count -gt ${ac_path_SED_max-0}; then
   6528       # Best one so far, save it but keep looking for a better one
   6529       ac_cv_path_SED="$ac_path_SED"
   6530       ac_path_SED_max=$ac_count
   6531     fi
   6532     # 10*(2^10) chars as input seems more than enough
   6533     test $ac_count -gt 10 && break
   6534   done
   6535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6536 esac
   6537 
   6538       $ac_path_SED_found && break 3
   6539     done
   6540   done
   6541   done
   6542 IFS=$as_save_IFS
   6543   if test -z "$ac_cv_path_SED"; then
   6544     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   6545   fi
   6546 else
   6547   ac_cv_path_SED=$SED
   6548 fi
   6549 
   6550 fi
   6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   6552 $as_echo "$ac_cv_path_SED" >&6; }
   6553  SED="$ac_cv_path_SED"
   6554   rm -f conftest.sed
   6555 
   6556 test -z "$SED" && SED=sed
   6557 Xsed="$SED -e 1s/^X//"
   6558 
   6559 
   6560 
   6561 
   6562 
   6563 
   6564 
   6565 
   6566 
   6567 
   6568 
   6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   6570 $as_echo_n "checking for fgrep... " >&6; }
   6571 if ${ac_cv_path_FGREP+:} false; then :
   6572   $as_echo_n "(cached) " >&6
   6573 else
   6574   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   6575    then ac_cv_path_FGREP="$GREP -F"
   6576    else
   6577      if test -z "$FGREP"; then
   6578   ac_path_FGREP_found=false
   6579   # Loop through the user's path and test for each of PROGNAME-LIST
   6580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6582 do
   6583   IFS=$as_save_IFS
   6584   test -z "$as_dir" && as_dir=.
   6585     for ac_prog in fgrep; do
   6586     for ac_exec_ext in '' $ac_executable_extensions; do
   6587       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   6588       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
   6589 # Check for GNU ac_path_FGREP and select it if it is found.
   6590   # Check for GNU $ac_path_FGREP
   6591 case `"$ac_path_FGREP" --version 2>&1` in
   6592 *GNU*)
   6593   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   6594 *)
   6595   ac_count=0
   6596   $as_echo_n 0123456789 >"conftest.in"
   6597   while :
   6598   do
   6599     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6600     mv "conftest.tmp" "conftest.in"
   6601     cp "conftest.in" "conftest.nl"
   6602     $as_echo 'FGREP' >> "conftest.nl"
   6603     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6605     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6606     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   6607       # Best one so far, save it but keep looking for a better one
   6608       ac_cv_path_FGREP="$ac_path_FGREP"
   6609       ac_path_FGREP_max=$ac_count
   6610     fi
   6611     # 10*(2^10) chars as input seems more than enough
   6612     test $ac_count -gt 10 && break
   6613   done
   6614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6615 esac
   6616 
   6617       $ac_path_FGREP_found && break 3
   6618     done
   6619   done
   6620   done
   6621 IFS=$as_save_IFS
   6622   if test -z "$ac_cv_path_FGREP"; then
   6623     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6624   fi
   6625 else
   6626   ac_cv_path_FGREP=$FGREP
   6627 fi
   6628 
   6629    fi
   6630 fi
   6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   6632 $as_echo "$ac_cv_path_FGREP" >&6; }
   6633  FGREP="$ac_cv_path_FGREP"
   6634 
   6635 
   6636 test -z "$GREP" && GREP=grep
   6637 
   6638 
   6639 
   6640 
   6641 
   6642 
   6643 
   6644 
   6645 
   6646 
   6647 
   6648 
   6649 
   6650 
   6651 
   6652 
   6653 
   6654 
   6655 
   6656 # Check whether --with-gnu-ld was given.
   6657 if test "${with_gnu_ld+set}" = set; then :
   6658   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   6659 else
   6660   with_gnu_ld=no
   6661 fi
   6662 
   6663 ac_prog=ld
   6664 if test "$GCC" = yes; then
   6665   # Check if gcc -print-prog-name=ld gives a path.
   6666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   6667 $as_echo_n "checking for ld used by $CC... " >&6; }
   6668   case $host in
   6669   *-*-mingw*)
   6670     # gcc leaves a trailing carriage return which upsets mingw
   6671     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   6672   *)
   6673     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   6674   esac
   6675   case $ac_prog in
   6676     # Accept absolute paths.
   6677     [\\/]* | ?:[\\/]*)
   6678       re_direlt='/[^/][^/]*/\.\./'
   6679       # Canonicalize the pathname of ld
   6680       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   6681       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   6682 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   6683       done
   6684       test -z "$LD" && LD="$ac_prog"
   6685       ;;
   6686   "")
   6687     # If it fails, then pretend we aren't using GCC.
   6688     ac_prog=ld
   6689     ;;
   6690   *)
   6691     # If it is relative, then search for the first ld in PATH.
   6692     with_gnu_ld=unknown
   6693     ;;
   6694   esac
   6695 elif test "$with_gnu_ld" = yes; then
   6696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   6697 $as_echo_n "checking for GNU ld... " >&6; }
   6698 else
   6699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   6700 $as_echo_n "checking for non-GNU ld... " >&6; }
   6701 fi
   6702 if ${lt_cv_path_LD+:} false; then :
   6703   $as_echo_n "(cached) " >&6
   6704 else
   6705   if test -z "$LD"; then
   6706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6707   for ac_dir in $PATH; do
   6708     IFS="$lt_save_ifs"
   6709     test -z "$ac_dir" && ac_dir=.
   6710     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   6711       lt_cv_path_LD="$ac_dir/$ac_prog"
   6712       # Check to see if the program is GNU ld.  I'd rather use --version,
   6713       # but apparently some variants of GNU ld only accept -v.
   6714       # Break only if it was the GNU/non-GNU ld that we prefer.
   6715       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   6716       *GNU* | *'with BFD'*)
   6717 	test "$with_gnu_ld" != no && break
   6718 	;;
   6719       *)
   6720 	test "$with_gnu_ld" != yes && break
   6721 	;;
   6722       esac
   6723     fi
   6724   done
   6725   IFS="$lt_save_ifs"
   6726 else
   6727   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   6728 fi
   6729 fi
   6730 
   6731 LD="$lt_cv_path_LD"
   6732 if test -n "$LD"; then
   6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   6734 $as_echo "$LD" >&6; }
   6735 else
   6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6737 $as_echo "no" >&6; }
   6738 fi
   6739 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   6741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   6742 if ${lt_cv_prog_gnu_ld+:} false; then :
   6743   $as_echo_n "(cached) " >&6
   6744 else
   6745   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   6746 case `$LD -v 2>&1 </dev/null` in
   6747 *GNU* | *'with BFD'*)
   6748   lt_cv_prog_gnu_ld=yes
   6749   ;;
   6750 *)
   6751   lt_cv_prog_gnu_ld=no
   6752   ;;
   6753 esac
   6754 fi
   6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   6756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   6757 with_gnu_ld=$lt_cv_prog_gnu_ld
   6758 
   6759 
   6760 
   6761 
   6762 
   6763 
   6764 
   6765 
   6766 
   6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   6768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   6769 if ${lt_cv_path_NM+:} false; then :
   6770   $as_echo_n "(cached) " >&6
   6771 else
   6772   if test -n "$NM"; then
   6773   # Let the user override the test.
   6774   lt_cv_path_NM="$NM"
   6775 else
   6776   lt_nm_to_check="${ac_tool_prefix}nm"
   6777   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   6778     lt_nm_to_check="$lt_nm_to_check nm"
   6779   fi
   6780   for lt_tmp_nm in $lt_nm_to_check; do
   6781     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6782     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   6783       IFS="$lt_save_ifs"
   6784       test -z "$ac_dir" && ac_dir=.
   6785       tmp_nm="$ac_dir/$lt_tmp_nm"
   6786       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   6787 	# Check to see if the nm accepts a BSD-compat flag.
   6788 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   6789 	#   nm: unknown option "B" ignored
   6790 	# Tru64's nm complains that /dev/null is an invalid object file
   6791 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   6792 	*/dev/null* | *'Invalid file or object type'*)
   6793 	  lt_cv_path_NM="$tmp_nm -B"
   6794 	  break
   6795 	  ;;
   6796 	*)
   6797 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   6798 	  */dev/null*)
   6799 	    lt_cv_path_NM="$tmp_nm -p"
   6800 	    break
   6801 	    ;;
   6802 	  *)
   6803 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   6804 	    continue # so that we can try to find one that supports BSD flags
   6805 	    ;;
   6806 	  esac
   6807 	  ;;
   6808 	esac
   6809       fi
   6810     done
   6811     IFS="$lt_save_ifs"
   6812   done
   6813   : ${lt_cv_path_NM=no}
   6814 fi
   6815 fi
   6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   6817 $as_echo "$lt_cv_path_NM" >&6; }
   6818 if test "$lt_cv_path_NM" != "no"; then
   6819   NM="$lt_cv_path_NM"
   6820 else
   6821   # Didn't find any BSD compatible name lister, look for dumpbin.
   6822   if test -n "$DUMPBIN"; then :
   6823     # Let the user override the test.
   6824   else
   6825     if test -n "$ac_tool_prefix"; then
   6826   for ac_prog in dumpbin "link -dump"
   6827   do
   6828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   6829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6831 $as_echo_n "checking for $ac_word... " >&6; }
   6832 if ${ac_cv_prog_DUMPBIN+:} false; then :
   6833   $as_echo_n "(cached) " >&6
   6834 else
   6835   if test -n "$DUMPBIN"; then
   6836   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   6837 else
   6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6839 for as_dir in $PATH
   6840 do
   6841   IFS=$as_save_IFS
   6842   test -z "$as_dir" && as_dir=.
   6843     for ac_exec_ext in '' $ac_executable_extensions; do
   6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6845     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   6846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6847     break 2
   6848   fi
   6849 done
   6850   done
   6851 IFS=$as_save_IFS
   6852 
   6853 fi
   6854 fi
   6855 DUMPBIN=$ac_cv_prog_DUMPBIN
   6856 if test -n "$DUMPBIN"; then
   6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   6858 $as_echo "$DUMPBIN" >&6; }
   6859 else
   6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6861 $as_echo "no" >&6; }
   6862 fi
   6863 
   6864 
   6865     test -n "$DUMPBIN" && break
   6866   done
   6867 fi
   6868 if test -z "$DUMPBIN"; then
   6869   ac_ct_DUMPBIN=$DUMPBIN
   6870   for ac_prog in dumpbin "link -dump"
   6871 do
   6872   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6873 set dummy $ac_prog; ac_word=$2
   6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6875 $as_echo_n "checking for $ac_word... " >&6; }
   6876 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   6877   $as_echo_n "(cached) " >&6
   6878 else
   6879   if test -n "$ac_ct_DUMPBIN"; then
   6880   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   6881 else
   6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6883 for as_dir in $PATH
   6884 do
   6885   IFS=$as_save_IFS
   6886   test -z "$as_dir" && as_dir=.
   6887     for ac_exec_ext in '' $ac_executable_extensions; do
   6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6889     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   6890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6891     break 2
   6892   fi
   6893 done
   6894   done
   6895 IFS=$as_save_IFS
   6896 
   6897 fi
   6898 fi
   6899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   6900 if test -n "$ac_ct_DUMPBIN"; then
   6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   6902 $as_echo "$ac_ct_DUMPBIN" >&6; }
   6903 else
   6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6905 $as_echo "no" >&6; }
   6906 fi
   6907 
   6908 
   6909   test -n "$ac_ct_DUMPBIN" && break
   6910 done
   6911 
   6912   if test "x$ac_ct_DUMPBIN" = x; then
   6913     DUMPBIN=":"
   6914   else
   6915     case $cross_compiling:$ac_tool_warned in
   6916 yes:)
   6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6919 ac_tool_warned=yes ;;
   6920 esac
   6921     DUMPBIN=$ac_ct_DUMPBIN
   6922   fi
   6923 fi
   6924 
   6925     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
   6926     *COFF*)
   6927       DUMPBIN="$DUMPBIN -symbols"
   6928       ;;
   6929     *)
   6930       DUMPBIN=:
   6931       ;;
   6932     esac
   6933   fi
   6934 
   6935   if test "$DUMPBIN" != ":"; then
   6936     NM="$DUMPBIN"
   6937   fi
   6938 fi
   6939 test -z "$NM" && NM=nm
   6940 
   6941 
   6942 
   6943 
   6944 
   6945 
   6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   6947 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   6948 if ${lt_cv_nm_interface+:} false; then :
   6949   $as_echo_n "(cached) " >&6
   6950 else
   6951   lt_cv_nm_interface="BSD nm"
   6952   echo "int some_variable = 0;" > conftest.$ac_ext
   6953   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   6954   (eval "$ac_compile" 2>conftest.err)
   6955   cat conftest.err >&5
   6956   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   6957   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   6958   cat conftest.err >&5
   6959   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   6960   cat conftest.out >&5
   6961   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   6962     lt_cv_nm_interface="MS dumpbin"
   6963   fi
   6964   rm -f conftest*
   6965 fi
   6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   6967 $as_echo "$lt_cv_nm_interface" >&6; }
   6968 
   6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   6970 $as_echo_n "checking whether ln -s works... " >&6; }
   6971 LN_S=$as_ln_s
   6972 if test "$LN_S" = "ln -s"; then
   6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6974 $as_echo "yes" >&6; }
   6975 else
   6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   6977 $as_echo "no, using $LN_S" >&6; }
   6978 fi
   6979 
   6980 # find the maximum length of command line arguments
   6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   6982 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   6983 if ${lt_cv_sys_max_cmd_len+:} false; then :
   6984   $as_echo_n "(cached) " >&6
   6985 else
   6986     i=0
   6987   teststring="ABCD"
   6988 
   6989   case $build_os in
   6990   msdosdjgpp*)
   6991     # On DJGPP, this test can blow up pretty badly due to problems in libc
   6992     # (any single argument exceeding 2000 bytes causes a buffer overrun
   6993     # during glob expansion).  Even if it were fixed, the result of this
   6994     # check would be larger than it should be.
   6995     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   6996     ;;
   6997 
   6998   gnu*)
   6999     # Under GNU Hurd, this test is not required because there is
   7000     # no limit to the length of command line arguments.
   7001     # Libtool will interpret -1 as no limit whatsoever
   7002     lt_cv_sys_max_cmd_len=-1;
   7003     ;;
   7004 
   7005   cygwin* | mingw* | cegcc*)
   7006     # On Win9x/ME, this test blows up -- it succeeds, but takes
   7007     # about 5 minutes as the teststring grows exponentially.
   7008     # Worse, since 9x/ME are not pre-emptively multitasking,
   7009     # you end up with a "frozen" computer, even though with patience
   7010     # the test eventually succeeds (with a max line length of 256k).
   7011     # Instead, let's just punt: use the minimum linelength reported by
   7012     # all of the supported platforms: 8192 (on NT/2K/XP).
   7013     lt_cv_sys_max_cmd_len=8192;
   7014     ;;
   7015 
   7016   mint*)
   7017     # On MiNT this can take a long time and run out of memory.
   7018     lt_cv_sys_max_cmd_len=8192;
   7019     ;;
   7020 
   7021   amigaos*)
   7022     # On AmigaOS with pdksh, this test takes hours, literally.
   7023     # So we just punt and use a minimum line length of 8192.
   7024     lt_cv_sys_max_cmd_len=8192;
   7025     ;;
   7026 
   7027   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   7028     # This has been around since 386BSD, at least.  Likely further.
   7029     if test -x /sbin/sysctl; then
   7030       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   7031     elif test -x /usr/sbin/sysctl; then
   7032       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   7033     else
   7034       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   7035     fi
   7036     # And add a safety zone
   7037     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7038     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7039     ;;
   7040 
   7041   interix*)
   7042     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   7043     lt_cv_sys_max_cmd_len=196608
   7044     ;;
   7045 
   7046   osf*)
   7047     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   7048     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   7049     # nice to cause kernel panics so lets avoid the loop below.
   7050     # First set a reasonable default.
   7051     lt_cv_sys_max_cmd_len=16384
   7052     #
   7053     if test -x /sbin/sysconfig; then
   7054       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   7055         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   7056       esac
   7057     fi
   7058     ;;
   7059   sco3.2v5*)
   7060     lt_cv_sys_max_cmd_len=102400
   7061     ;;
   7062   sysv5* | sco5v6* | sysv4.2uw2*)
   7063     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   7064     if test -n "$kargmax"; then
   7065       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   7066     else
   7067       lt_cv_sys_max_cmd_len=32768
   7068     fi
   7069     ;;
   7070   *)
   7071     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   7072     if test -n "$lt_cv_sys_max_cmd_len"; then
   7073       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7075     else
   7076       # Make teststring a little bigger before we do anything with it.
   7077       # a 1K string should be a reasonable start.
   7078       for i in 1 2 3 4 5 6 7 8 ; do
   7079         teststring=$teststring$teststring
   7080       done
   7081       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   7082       # If test is not a shell built-in, we'll probably end up computing a
   7083       # maximum length that is only half of the actual maximum length, but
   7084       # we can't tell.
   7085       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
   7086 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   7087 	      test $i != 17 # 1/2 MB should be enough
   7088       do
   7089         i=`expr $i + 1`
   7090         teststring=$teststring$teststring
   7091       done
   7092       # Only check the string length outside the loop.
   7093       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   7094       teststring=
   7095       # Add a significant safety factor because C++ compilers can tack on
   7096       # massive amounts of additional arguments before passing them to the
   7097       # linker.  It appears as though 1/2 is a usable value.
   7098       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   7099     fi
   7100     ;;
   7101   esac
   7102 
   7103 fi
   7104 
   7105 if test -n $lt_cv_sys_max_cmd_len ; then
   7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   7107 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   7108 else
   7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   7110 $as_echo "none" >&6; }
   7111 fi
   7112 max_cmd_len=$lt_cv_sys_max_cmd_len
   7113 
   7114 
   7115 
   7116 
   7117 
   7118 
   7119 : ${CP="cp -f"}
   7120 : ${MV="mv -f"}
   7121 : ${RM="rm -f"}
   7122 
   7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
   7124 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
   7125 # Try some XSI features
   7126 xsi_shell=no
   7127 ( _lt_dummy="a/b/c"
   7128   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
   7129       = c,a/b,b/c, \
   7130     && eval 'test $(( 1 + 1 )) -eq 2 \
   7131     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   7132   && xsi_shell=yes
   7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
   7134 $as_echo "$xsi_shell" >&6; }
   7135 
   7136 
   7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
   7138 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
   7139 lt_shell_append=no
   7140 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   7141     >/dev/null 2>&1 \
   7142   && lt_shell_append=yes
   7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
   7144 $as_echo "$lt_shell_append" >&6; }
   7145 
   7146 
   7147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   7148   lt_unset=unset
   7149 else
   7150   lt_unset=false
   7151 fi
   7152 
   7153 
   7154 
   7155 
   7156 
   7157 # test EBCDIC or ASCII
   7158 case `echo X|tr X '\101'` in
   7159  A) # ASCII based system
   7160     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   7161   lt_SP2NL='tr \040 \012'
   7162   lt_NL2SP='tr \015\012 \040\040'
   7163   ;;
   7164  *) # EBCDIC based system
   7165   lt_SP2NL='tr \100 \n'
   7166   lt_NL2SP='tr \r\n \100\100'
   7167   ;;
   7168 esac
   7169 
   7170 
   7171 
   7172 
   7173 
   7174 
   7175 
   7176 
   7177 
   7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   7179 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   7180 if ${lt_cv_to_host_file_cmd+:} false; then :
   7181   $as_echo_n "(cached) " >&6
   7182 else
   7183   case $host in
   7184   *-*-mingw* )
   7185     case $build in
   7186       *-*-mingw* ) # actually msys
   7187         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   7188         ;;
   7189       *-*-cygwin* )
   7190         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   7191         ;;
   7192       * ) # otherwise, assume *nix
   7193         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   7194         ;;
   7195     esac
   7196     ;;
   7197   *-*-cygwin* )
   7198     case $build in
   7199       *-*-mingw* ) # actually msys
   7200         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   7201         ;;
   7202       *-*-cygwin* )
   7203         lt_cv_to_host_file_cmd=func_convert_file_noop
   7204         ;;
   7205       * ) # otherwise, assume *nix
   7206         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   7207         ;;
   7208     esac
   7209     ;;
   7210   * ) # unhandled hosts (and "normal" native builds)
   7211     lt_cv_to_host_file_cmd=func_convert_file_noop
   7212     ;;
   7213 esac
   7214 
   7215 fi
   7216 
   7217 to_host_file_cmd=$lt_cv_to_host_file_cmd
   7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   7219 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   7220 
   7221 
   7222 
   7223 
   7224 
   7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   7226 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   7227 if ${lt_cv_to_tool_file_cmd+:} false; then :
   7228   $as_echo_n "(cached) " >&6
   7229 else
   7230   #assume ordinary cross tools, or native build.
   7231 lt_cv_to_tool_file_cmd=func_convert_file_noop
   7232 case $host in
   7233   *-*-mingw* )
   7234     case $build in
   7235       *-*-mingw* ) # actually msys
   7236         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   7237         ;;
   7238     esac
   7239     ;;
   7240 esac
   7241 
   7242 fi
   7243 
   7244 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   7246 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   7247 
   7248 
   7249 
   7250 
   7251 
   7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   7253 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   7254 if ${lt_cv_ld_reload_flag+:} false; then :
   7255   $as_echo_n "(cached) " >&6
   7256 else
   7257   lt_cv_ld_reload_flag='-r'
   7258 fi
   7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   7260 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   7261 reload_flag=$lt_cv_ld_reload_flag
   7262 case $reload_flag in
   7263 "" | " "*) ;;
   7264 *) reload_flag=" $reload_flag" ;;
   7265 esac
   7266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7267 case $host_os in
   7268   cygwin* | mingw* | pw32* | cegcc*)
   7269     if test "$GCC" != yes; then
   7270       reload_cmds=false
   7271     fi
   7272     ;;
   7273   darwin*)
   7274     if test "$GCC" = yes; then
   7275       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   7276     else
   7277       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7278     fi
   7279     ;;
   7280 esac
   7281 
   7282 
   7283 
   7284 
   7285 
   7286 
   7287 
   7288 
   7289 
   7290 if test -n "$ac_tool_prefix"; then
   7291   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   7292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7294 $as_echo_n "checking for $ac_word... " >&6; }
   7295 if ${ac_cv_prog_OBJDUMP+:} false; then :
   7296   $as_echo_n "(cached) " >&6
   7297 else
   7298   if test -n "$OBJDUMP"; then
   7299   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   7300 else
   7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7302 for as_dir in $PATH
   7303 do
   7304   IFS=$as_save_IFS
   7305   test -z "$as_dir" && as_dir=.
   7306     for ac_exec_ext in '' $ac_executable_extensions; do
   7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7308     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   7309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7310     break 2
   7311   fi
   7312 done
   7313   done
   7314 IFS=$as_save_IFS
   7315 
   7316 fi
   7317 fi
   7318 OBJDUMP=$ac_cv_prog_OBJDUMP
   7319 if test -n "$OBJDUMP"; then
   7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   7321 $as_echo "$OBJDUMP" >&6; }
   7322 else
   7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7324 $as_echo "no" >&6; }
   7325 fi
   7326 
   7327 
   7328 fi
   7329 if test -z "$ac_cv_prog_OBJDUMP"; then
   7330   ac_ct_OBJDUMP=$OBJDUMP
   7331   # Extract the first word of "objdump", so it can be a program name with args.
   7332 set dummy objdump; ac_word=$2
   7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7334 $as_echo_n "checking for $ac_word... " >&6; }
   7335 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   7336   $as_echo_n "(cached) " >&6
   7337 else
   7338   if test -n "$ac_ct_OBJDUMP"; then
   7339   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   7340 else
   7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7342 for as_dir in $PATH
   7343 do
   7344   IFS=$as_save_IFS
   7345   test -z "$as_dir" && as_dir=.
   7346     for ac_exec_ext in '' $ac_executable_extensions; do
   7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7348     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7350     break 2
   7351   fi
   7352 done
   7353   done
   7354 IFS=$as_save_IFS
   7355 
   7356 fi
   7357 fi
   7358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   7359 if test -n "$ac_ct_OBJDUMP"; then
   7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   7361 $as_echo "$ac_ct_OBJDUMP" >&6; }
   7362 else
   7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7364 $as_echo "no" >&6; }
   7365 fi
   7366 
   7367   if test "x$ac_ct_OBJDUMP" = x; then
   7368     OBJDUMP="false"
   7369   else
   7370     case $cross_compiling:$ac_tool_warned in
   7371 yes:)
   7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7374 ac_tool_warned=yes ;;
   7375 esac
   7376     OBJDUMP=$ac_ct_OBJDUMP
   7377   fi
   7378 else
   7379   OBJDUMP="$ac_cv_prog_OBJDUMP"
   7380 fi
   7381 
   7382 test -z "$OBJDUMP" && OBJDUMP=objdump
   7383 
   7384 
   7385 
   7386 
   7387 
   7388 
   7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   7390 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   7391 if ${lt_cv_deplibs_check_method+:} false; then :
   7392   $as_echo_n "(cached) " >&6
   7393 else
   7394   lt_cv_file_magic_cmd='$MAGIC_CMD'
   7395 lt_cv_file_magic_test_file=
   7396 lt_cv_deplibs_check_method='unknown'
   7397 # Need to set the preceding variable on all platforms that support
   7398 # interlibrary dependencies.
   7399 # 'none' -- dependencies not supported.
   7400 # `unknown' -- same as none, but documents that we really don't know.
   7401 # 'pass_all' -- all dependencies passed with no checks.
   7402 # 'test_compile' -- check by making test program.
   7403 # 'file_magic [[regex]]' -- check by looking for files in library path
   7404 # which responds to the $file_magic_cmd with a given extended regex.
   7405 # If you have `file' or equivalent on your system and you're not sure
   7406 # whether `pass_all' will *always* work, you probably want this one.
   7407 
   7408 case $host_os in
   7409 aix[4-9]*)
   7410   lt_cv_deplibs_check_method=pass_all
   7411   ;;
   7412 
   7413 beos*)
   7414   lt_cv_deplibs_check_method=pass_all
   7415   ;;
   7416 
   7417 bsdi[45]*)
   7418   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   7419   lt_cv_file_magic_cmd='/usr/bin/file -L'
   7420   lt_cv_file_magic_test_file=/shlib/libc.so
   7421   ;;
   7422 
   7423 cygwin*)
   7424   # func_win32_libid is a shell function defined in ltmain.sh
   7425   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7426   lt_cv_file_magic_cmd='func_win32_libid'
   7427   ;;
   7428 
   7429 mingw* | pw32*)
   7430   # Base MSYS/MinGW do not provide the 'file' command needed by
   7431   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   7432   # unless we find 'file', for example because we are cross-compiling.
   7433   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
   7434   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
   7435     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7436     lt_cv_file_magic_cmd='func_win32_libid'
   7437   else
   7438     # Keep this pattern in sync with the one in func_win32_libid.
   7439     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   7440     lt_cv_file_magic_cmd='$OBJDUMP -f'
   7441   fi
   7442   ;;
   7443 
   7444 cegcc*)
   7445   # use the weaker test based on 'objdump'. See mingw*.
   7446   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   7447   lt_cv_file_magic_cmd='$OBJDUMP -f'
   7448   ;;
   7449 
   7450 darwin* | rhapsody*)
   7451   lt_cv_deplibs_check_method=pass_all
   7452   ;;
   7453 
   7454 freebsd* | dragonfly*)
   7455   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7456     case $host_cpu in
   7457     i*86 )
   7458       # Not sure whether the presence of OpenBSD here was a mistake.
   7459       # Let's accept both of them until this is cleared up.
   7460       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   7461       lt_cv_file_magic_cmd=/usr/bin/file
   7462       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   7463       ;;
   7464     esac
   7465   else
   7466     lt_cv_deplibs_check_method=pass_all
   7467   fi
   7468   ;;
   7469 
   7470 gnu*)
   7471   lt_cv_deplibs_check_method=pass_all
   7472   ;;
   7473 
   7474 haiku*)
   7475   lt_cv_deplibs_check_method=pass_all
   7476   ;;
   7477 
   7478 hpux10.20* | hpux11*)
   7479   lt_cv_file_magic_cmd=/usr/bin/file
   7480   case $host_cpu in
   7481   ia64*)
   7482     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   7483     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   7484     ;;
   7485   hppa*64*)
   7486     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
   7487     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   7488     ;;
   7489   *)
   7490     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   7491     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   7492     ;;
   7493   esac
   7494   ;;
   7495 
   7496 interix[3-9]*)
   7497   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   7498   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   7499   ;;
   7500 
   7501 irix5* | irix6* | nonstopux*)
   7502   case $LD in
   7503   *-32|*"-32 ") libmagic=32-bit;;
   7504   *-n32|*"-n32 ") libmagic=N32;;
   7505   *-64|*"-64 ") libmagic=64-bit;;
   7506   *) libmagic=never-match;;
   7507   esac
   7508   lt_cv_deplibs_check_method=pass_all
   7509   ;;
   7510 
   7511 # This must be Linux ELF.
   7512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   7513   lt_cv_deplibs_check_method=pass_all
   7514   ;;
   7515 
   7516 netbsd* | netbsdelf*-gnu)
   7517   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7518     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7519   else
   7520     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   7521   fi
   7522   ;;
   7523 
   7524 newos6*)
   7525   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   7526   lt_cv_file_magic_cmd=/usr/bin/file
   7527   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   7528   ;;
   7529 
   7530 *nto* | *qnx*)
   7531   lt_cv_deplibs_check_method=pass_all
   7532   ;;
   7533 
   7534 openbsd*)
   7535   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   7536     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   7537   else
   7538     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7539   fi
   7540   ;;
   7541 
   7542 osf3* | osf4* | osf5*)
   7543   lt_cv_deplibs_check_method=pass_all
   7544   ;;
   7545 
   7546 rdos*)
   7547   lt_cv_deplibs_check_method=pass_all
   7548   ;;
   7549 
   7550 solaris*)
   7551   lt_cv_deplibs_check_method=pass_all
   7552   ;;
   7553 
   7554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   7555   lt_cv_deplibs_check_method=pass_all
   7556   ;;
   7557 
   7558 sysv4 | sysv4.3*)
   7559   case $host_vendor in
   7560   motorola)
   7561     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]'
   7562     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   7563     ;;
   7564   ncr)
   7565     lt_cv_deplibs_check_method=pass_all
   7566     ;;
   7567   sequent)
   7568     lt_cv_file_magic_cmd='/bin/file'
   7569     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   7570     ;;
   7571   sni)
   7572     lt_cv_file_magic_cmd='/bin/file'
   7573     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   7574     lt_cv_file_magic_test_file=/lib/libc.so
   7575     ;;
   7576   siemens)
   7577     lt_cv_deplibs_check_method=pass_all
   7578     ;;
   7579   pc)
   7580     lt_cv_deplibs_check_method=pass_all
   7581     ;;
   7582   esac
   7583   ;;
   7584 
   7585 tpf*)
   7586   lt_cv_deplibs_check_method=pass_all
   7587   ;;
   7588 esac
   7589 
   7590 fi
   7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   7592 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   7593 
   7594 file_magic_glob=
   7595 want_nocaseglob=no
   7596 if test "$build" = "$host"; then
   7597   case $host_os in
   7598   mingw* | pw32*)
   7599     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   7600       want_nocaseglob=yes
   7601     else
   7602       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   7603     fi
   7604     ;;
   7605   esac
   7606 fi
   7607 
   7608 file_magic_cmd=$lt_cv_file_magic_cmd
   7609 deplibs_check_method=$lt_cv_deplibs_check_method
   7610 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   7611 
   7612 
   7613 
   7614 
   7615 
   7616 
   7617 
   7618 
   7619 
   7620 
   7621 
   7622 
   7623 
   7624 
   7625 
   7626 
   7627 
   7628 
   7629 
   7630 
   7631 
   7632 
   7633 if test -n "$ac_tool_prefix"; then
   7634   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   7635 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7637 $as_echo_n "checking for $ac_word... " >&6; }
   7638 if ${ac_cv_prog_DLLTOOL+:} false; then :
   7639   $as_echo_n "(cached) " >&6
   7640 else
   7641   if test -n "$DLLTOOL"; then
   7642   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   7643 else
   7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7645 for as_dir in $PATH
   7646 do
   7647   IFS=$as_save_IFS
   7648   test -z "$as_dir" && as_dir=.
   7649     for ac_exec_ext in '' $ac_executable_extensions; do
   7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7651     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7653     break 2
   7654   fi
   7655 done
   7656   done
   7657 IFS=$as_save_IFS
   7658 
   7659 fi
   7660 fi
   7661 DLLTOOL=$ac_cv_prog_DLLTOOL
   7662 if test -n "$DLLTOOL"; then
   7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   7664 $as_echo "$DLLTOOL" >&6; }
   7665 else
   7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7667 $as_echo "no" >&6; }
   7668 fi
   7669 
   7670 
   7671 fi
   7672 if test -z "$ac_cv_prog_DLLTOOL"; then
   7673   ac_ct_DLLTOOL=$DLLTOOL
   7674   # Extract the first word of "dlltool", so it can be a program name with args.
   7675 set dummy dlltool; ac_word=$2
   7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7677 $as_echo_n "checking for $ac_word... " >&6; }
   7678 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   7679   $as_echo_n "(cached) " >&6
   7680 else
   7681   if test -n "$ac_ct_DLLTOOL"; then
   7682   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   7683 else
   7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7685 for as_dir in $PATH
   7686 do
   7687   IFS=$as_save_IFS
   7688   test -z "$as_dir" && as_dir=.
   7689     for ac_exec_ext in '' $ac_executable_extensions; do
   7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7691     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7693     break 2
   7694   fi
   7695 done
   7696   done
   7697 IFS=$as_save_IFS
   7698 
   7699 fi
   7700 fi
   7701 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   7702 if test -n "$ac_ct_DLLTOOL"; then
   7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   7704 $as_echo "$ac_ct_DLLTOOL" >&6; }
   7705 else
   7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7707 $as_echo "no" >&6; }
   7708 fi
   7709 
   7710   if test "x$ac_ct_DLLTOOL" = x; then
   7711     DLLTOOL="false"
   7712   else
   7713     case $cross_compiling:$ac_tool_warned in
   7714 yes:)
   7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7717 ac_tool_warned=yes ;;
   7718 esac
   7719     DLLTOOL=$ac_ct_DLLTOOL
   7720   fi
   7721 else
   7722   DLLTOOL="$ac_cv_prog_DLLTOOL"
   7723 fi
   7724 
   7725 test -z "$DLLTOOL" && DLLTOOL=dlltool
   7726 
   7727 
   7728 
   7729 
   7730 
   7731 
   7732 
   7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   7734 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   7735 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   7736   $as_echo_n "(cached) " >&6
   7737 else
   7738   lt_cv_sharedlib_from_linklib_cmd='unknown'
   7739 
   7740 case $host_os in
   7741 cygwin* | mingw* | pw32* | cegcc*)
   7742   # two different shell functions defined in ltmain.sh
   7743   # decide which to use based on capabilities of $DLLTOOL
   7744   case `$DLLTOOL --help 2>&1` in
   7745   *--identify-strict*)
   7746     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   7747     ;;
   7748   *)
   7749     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   7750     ;;
   7751   esac
   7752   ;;
   7753 *)
   7754   # fallback: assume linklib IS sharedlib
   7755   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
   7756   ;;
   7757 esac
   7758 
   7759 fi
   7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   7761 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   7762 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   7763 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   7764 
   7765 
   7766 
   7767 
   7768 
   7769 
   7770 
   7771 if test -n "$ac_tool_prefix"; then
   7772   for ac_prog in ar
   7773   do
   7774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   7775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7777 $as_echo_n "checking for $ac_word... " >&6; }
   7778 if ${ac_cv_prog_AR+:} false; then :
   7779   $as_echo_n "(cached) " >&6
   7780 else
   7781   if test -n "$AR"; then
   7782   ac_cv_prog_AR="$AR" # Let the user override the test.
   7783 else
   7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7785 for as_dir in $PATH
   7786 do
   7787   IFS=$as_save_IFS
   7788   test -z "$as_dir" && as_dir=.
   7789     for ac_exec_ext in '' $ac_executable_extensions; do
   7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7791     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   7792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7793     break 2
   7794   fi
   7795 done
   7796   done
   7797 IFS=$as_save_IFS
   7798 
   7799 fi
   7800 fi
   7801 AR=$ac_cv_prog_AR
   7802 if test -n "$AR"; then
   7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7804 $as_echo "$AR" >&6; }
   7805 else
   7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7807 $as_echo "no" >&6; }
   7808 fi
   7809 
   7810 
   7811     test -n "$AR" && break
   7812   done
   7813 fi
   7814 if test -z "$AR"; then
   7815   ac_ct_AR=$AR
   7816   for ac_prog in ar
   7817 do
   7818   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7819 set dummy $ac_prog; ac_word=$2
   7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7821 $as_echo_n "checking for $ac_word... " >&6; }
   7822 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   7823   $as_echo_n "(cached) " >&6
   7824 else
   7825   if test -n "$ac_ct_AR"; then
   7826   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7827 else
   7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7829 for as_dir in $PATH
   7830 do
   7831   IFS=$as_save_IFS
   7832   test -z "$as_dir" && as_dir=.
   7833     for ac_exec_ext in '' $ac_executable_extensions; do
   7834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7835     ac_cv_prog_ac_ct_AR="$ac_prog"
   7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7837     break 2
   7838   fi
   7839 done
   7840   done
   7841 IFS=$as_save_IFS
   7842 
   7843 fi
   7844 fi
   7845 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7846 if test -n "$ac_ct_AR"; then
   7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7848 $as_echo "$ac_ct_AR" >&6; }
   7849 else
   7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7851 $as_echo "no" >&6; }
   7852 fi
   7853 
   7854 
   7855   test -n "$ac_ct_AR" && break
   7856 done
   7857 
   7858   if test "x$ac_ct_AR" = x; then
   7859     AR="false"
   7860   else
   7861     case $cross_compiling:$ac_tool_warned in
   7862 yes:)
   7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7865 ac_tool_warned=yes ;;
   7866 esac
   7867     AR=$ac_ct_AR
   7868   fi
   7869 fi
   7870 
   7871 : ${AR=ar}
   7872 : ${AR_FLAGS=cru}
   7873 
   7874 
   7875 
   7876 
   7877 
   7878 
   7879 
   7880 
   7881 
   7882 
   7883 
   7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   7885 $as_echo_n "checking for archiver @FILE support... " >&6; }
   7886 if ${lt_cv_ar_at_file+:} false; then :
   7887   $as_echo_n "(cached) " >&6
   7888 else
   7889   lt_cv_ar_at_file=no
   7890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7891 /* end confdefs.h.  */
   7892 
   7893 int main (void)
   7894 {
   7895 
   7896  ;
   7897  return 0;
   7898 }
   7899 _ACEOF
   7900 if ac_fn_c_try_compile "$LINENO"; then :
   7901   echo conftest.$ac_objext > conftest.lst
   7902       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   7903       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   7904   (eval $lt_ar_try) 2>&5
   7905   ac_status=$?
   7906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7907   test $ac_status = 0; }
   7908       if test "$ac_status" -eq 0; then
   7909 	# Ensure the archiver fails upon bogus file names.
   7910 	rm -f conftest.$ac_objext libconftest.a
   7911 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   7912   (eval $lt_ar_try) 2>&5
   7913   ac_status=$?
   7914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7915   test $ac_status = 0; }
   7916 	if test "$ac_status" -ne 0; then
   7917           lt_cv_ar_at_file=@
   7918         fi
   7919       fi
   7920       rm -f conftest.* libconftest.a
   7921 
   7922 fi
   7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7924 
   7925 fi
   7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   7927 $as_echo "$lt_cv_ar_at_file" >&6; }
   7928 
   7929 if test "x$lt_cv_ar_at_file" = xno; then
   7930   archiver_list_spec=
   7931 else
   7932   archiver_list_spec=$lt_cv_ar_at_file
   7933 fi
   7934 
   7935 
   7936 
   7937 
   7938 
   7939 
   7940 
   7941 if test -n "$ac_tool_prefix"; then
   7942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   7943 set dummy ${ac_tool_prefix}strip; ac_word=$2
   7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7945 $as_echo_n "checking for $ac_word... " >&6; }
   7946 if ${ac_cv_prog_STRIP+:} false; then :
   7947   $as_echo_n "(cached) " >&6
   7948 else
   7949   if test -n "$STRIP"; then
   7950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   7951 else
   7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7953 for as_dir in $PATH
   7954 do
   7955   IFS=$as_save_IFS
   7956   test -z "$as_dir" && as_dir=.
   7957     for ac_exec_ext in '' $ac_executable_extensions; do
   7958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   7960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7961     break 2
   7962   fi
   7963 done
   7964   done
   7965 IFS=$as_save_IFS
   7966 
   7967 fi
   7968 fi
   7969 STRIP=$ac_cv_prog_STRIP
   7970 if test -n "$STRIP"; then
   7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   7972 $as_echo "$STRIP" >&6; }
   7973 else
   7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7975 $as_echo "no" >&6; }
   7976 fi
   7977 
   7978 
   7979 fi
   7980 if test -z "$ac_cv_prog_STRIP"; then
   7981   ac_ct_STRIP=$STRIP
   7982   # Extract the first word of "strip", so it can be a program name with args.
   7983 set dummy strip; ac_word=$2
   7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7985 $as_echo_n "checking for $ac_word... " >&6; }
   7986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   7987   $as_echo_n "(cached) " >&6
   7988 else
   7989   if test -n "$ac_ct_STRIP"; then
   7990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   7991 else
   7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7993 for as_dir in $PATH
   7994 do
   7995   IFS=$as_save_IFS
   7996   test -z "$as_dir" && as_dir=.
   7997     for ac_exec_ext in '' $ac_executable_extensions; do
   7998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7999     ac_cv_prog_ac_ct_STRIP="strip"
   8000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8001     break 2
   8002   fi
   8003 done
   8004   done
   8005 IFS=$as_save_IFS
   8006 
   8007 fi
   8008 fi
   8009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   8010 if test -n "$ac_ct_STRIP"; then
   8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   8012 $as_echo "$ac_ct_STRIP" >&6; }
   8013 else
   8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8015 $as_echo "no" >&6; }
   8016 fi
   8017 
   8018   if test "x$ac_ct_STRIP" = x; then
   8019     STRIP=":"
   8020   else
   8021     case $cross_compiling:$ac_tool_warned in
   8022 yes:)
   8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8025 ac_tool_warned=yes ;;
   8026 esac
   8027     STRIP=$ac_ct_STRIP
   8028   fi
   8029 else
   8030   STRIP="$ac_cv_prog_STRIP"
   8031 fi
   8032 
   8033 test -z "$STRIP" && STRIP=:
   8034 
   8035 
   8036 
   8037 
   8038 
   8039 
   8040 if test -n "$ac_tool_prefix"; then
   8041   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8044 $as_echo_n "checking for $ac_word... " >&6; }
   8045 if ${ac_cv_prog_RANLIB+:} false; then :
   8046   $as_echo_n "(cached) " >&6
   8047 else
   8048   if test -n "$RANLIB"; then
   8049   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8050 else
   8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8052 for as_dir in $PATH
   8053 do
   8054   IFS=$as_save_IFS
   8055   test -z "$as_dir" && as_dir=.
   8056     for ac_exec_ext in '' $ac_executable_extensions; do
   8057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8058     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8060     break 2
   8061   fi
   8062 done
   8063   done
   8064 IFS=$as_save_IFS
   8065 
   8066 fi
   8067 fi
   8068 RANLIB=$ac_cv_prog_RANLIB
   8069 if test -n "$RANLIB"; then
   8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8071 $as_echo "$RANLIB" >&6; }
   8072 else
   8073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8074 $as_echo "no" >&6; }
   8075 fi
   8076 
   8077 
   8078 fi
   8079 if test -z "$ac_cv_prog_RANLIB"; then
   8080   ac_ct_RANLIB=$RANLIB
   8081   # Extract the first word of "ranlib", so it can be a program name with args.
   8082 set dummy ranlib; ac_word=$2
   8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8084 $as_echo_n "checking for $ac_word... " >&6; }
   8085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8086   $as_echo_n "(cached) " >&6
   8087 else
   8088   if test -n "$ac_ct_RANLIB"; then
   8089   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8090 else
   8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8092 for as_dir in $PATH
   8093 do
   8094   IFS=$as_save_IFS
   8095   test -z "$as_dir" && as_dir=.
   8096     for ac_exec_ext in '' $ac_executable_extensions; do
   8097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8098     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8100     break 2
   8101   fi
   8102 done
   8103   done
   8104 IFS=$as_save_IFS
   8105 
   8106 fi
   8107 fi
   8108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8109 if test -n "$ac_ct_RANLIB"; then
   8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8111 $as_echo "$ac_ct_RANLIB" >&6; }
   8112 else
   8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8114 $as_echo "no" >&6; }
   8115 fi
   8116 
   8117   if test "x$ac_ct_RANLIB" = x; then
   8118     RANLIB=":"
   8119   else
   8120     case $cross_compiling:$ac_tool_warned in
   8121 yes:)
   8122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8124 ac_tool_warned=yes ;;
   8125 esac
   8126     RANLIB=$ac_ct_RANLIB
   8127   fi
   8128 else
   8129   RANLIB="$ac_cv_prog_RANLIB"
   8130 fi
   8131 
   8132 test -z "$RANLIB" && RANLIB=:
   8133 
   8134 
   8135 
   8136 
   8137 
   8138 
   8139 # Determine commands to create old-style static archives.
   8140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   8141 old_postinstall_cmds='chmod 644 $oldlib'
   8142 old_postuninstall_cmds=
   8143 
   8144 if test -n "$RANLIB"; then
   8145   case $host_os in
   8146   openbsd*)
   8147     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   8148     ;;
   8149   *)
   8150     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   8151     ;;
   8152   esac
   8153   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   8154 fi
   8155 
   8156 case $host_os in
   8157   darwin*)
   8158     lock_old_archive_extraction=yes ;;
   8159   *)
   8160     lock_old_archive_extraction=no ;;
   8161 esac
   8162 
   8163 
   8164 
   8165 
   8166 
   8167 
   8168 
   8169 
   8170 
   8171 
   8172 
   8173 
   8174 
   8175 
   8176 
   8177 
   8178 
   8179 
   8180 
   8181 
   8182 
   8183 
   8184 
   8185 
   8186 
   8187 
   8188 
   8189 
   8190 
   8191 
   8192 
   8193 
   8194 
   8195 
   8196 
   8197 
   8198 
   8199 
   8200 
   8201 # If no C compiler was specified, use CC.
   8202 LTCC=${LTCC-"$CC"}
   8203 
   8204 # If no C compiler flags were specified, use CFLAGS.
   8205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8206 
   8207 # Allow CC to be a program name with arguments.
   8208 compiler=$CC
   8209 
   8210 
   8211 # Check for command to grab the raw symbol name followed by C symbol from nm.
   8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   8213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   8214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   8215   $as_echo_n "(cached) " >&6
   8216 else
   8217 
   8218 # These are sane defaults that work on at least a few old systems.
   8219 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   8220 
   8221 # Character class describing NM global symbol codes.
   8222 symcode='[BCDEGRST]'
   8223 
   8224 # Regexp to match symbols that can be accessed directly from C.
   8225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   8226 
   8227 # Define system-specific variables.
   8228 case $host_os in
   8229 aix*)
   8230   symcode='[BCDT]'
   8231   ;;
   8232 cygwin* | mingw* | pw32* | cegcc*)
   8233   symcode='[ABCDGISTW]'
   8234   ;;
   8235 hpux*)
   8236   if test "$host_cpu" = ia64; then
   8237     symcode='[ABCDEGRST]'
   8238   fi
   8239   ;;
   8240 irix* | nonstopux*)
   8241   symcode='[BCDEGRST]'
   8242   ;;
   8243 osf*)
   8244   symcode='[BCDEGQRST]'
   8245   ;;
   8246 solaris*)
   8247   symcode='[BDRT]'
   8248   ;;
   8249 sco3.2v5*)
   8250   symcode='[DT]'
   8251   ;;
   8252 sysv4.2uw2*)
   8253   symcode='[DT]'
   8254   ;;
   8255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   8256   symcode='[ABDT]'
   8257   ;;
   8258 sysv4)
   8259   symcode='[DFNSTU]'
   8260   ;;
   8261 esac
   8262 
   8263 # If we're using GNU nm, then use its standard symbol codes.
   8264 case `$NM -V 2>&1` in
   8265 *GNU* | *'with BFD'*)
   8266   symcode='[ABCDGIRSTW]' ;;
   8267 esac
   8268 
   8269 # Transform an extracted symbol line into a proper C declaration.
   8270 # Some systems (esp. on ia64) link data and code symbols differently,
   8271 # so use this general approach.
   8272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   8273 
   8274 # Transform an extracted symbol line into symbol name and symbol address
   8275 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   8276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
   8277 
   8278 # Handle CRLF in mingw tool chain
   8279 opt_cr=
   8280 case $build_os in
   8281 mingw*)
   8282   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   8283   ;;
   8284 esac
   8285 
   8286 # Try without a prefix underscore, then with it.
   8287 for ac_symprfx in "" "_"; do
   8288 
   8289   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   8290   symxfrm="\\1 $ac_symprfx\\2 \\2"
   8291 
   8292   # Write the raw and C identifiers.
   8293   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8294     # Fake it for dumpbin and say T for any non-static function
   8295     # and D for any global variable.
   8296     # Also find C++ and __fastcall symbols from MSVC++,
   8297     # which start with @ or ?.
   8298     lt_cv_sys_global_symbol_pipe="$AWK '"\
   8299 "     {last_section=section; section=\$ 3};"\
   8300 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   8301 "     \$ 0!~/External *\|/{next};"\
   8302 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   8303 "     {if(hide[section]) next};"\
   8304 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   8305 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   8306 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   8307 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   8308 "     ' prfx=^$ac_symprfx"
   8309   else
   8310     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   8311   fi
   8312   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   8313 
   8314   # Check to see that the pipe works correctly.
   8315   pipe_works=no
   8316 
   8317   rm -f conftest*
   8318   cat > conftest.$ac_ext <<_LT_EOF
   8319 #ifdef __cplusplus
   8320 extern "C" {
   8321 #endif
   8322 char nm_test_var;
   8323 void nm_test_func(void);
   8324 void nm_test_func(void){}
   8325 #ifdef __cplusplus
   8326 }
   8327 #endif
   8328 int main(){nm_test_var='a';nm_test_func();return(0);}
   8329 _LT_EOF
   8330 
   8331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8332   (eval $ac_compile) 2>&5
   8333   ac_status=$?
   8334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8335   test $ac_status = 0; }; then
   8336     # Now try to grab the symbols.
   8337     nlist=conftest.nm
   8338     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   8339   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   8340   ac_status=$?
   8341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8342   test $ac_status = 0; } && test -s "$nlist"; then
   8343       # Try sorting and uniquifying the output.
   8344       if sort "$nlist" | uniq > "$nlist"T; then
   8345 	mv -f "$nlist"T "$nlist"
   8346       else
   8347 	rm -f "$nlist"T
   8348       fi
   8349 
   8350       # Make sure that we snagged all the symbols we need.
   8351       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   8352 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   8353 	  cat <<_LT_EOF > conftest.$ac_ext
   8354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   8355 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
   8356 /* DATA imports from DLLs on WIN32 con't be const, because runtime
   8357    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   8358 # define LT_DLSYM_CONST
   8359 #elif defined(__osf__)
   8360 /* This system does not cope well with relocations in const data.  */
   8361 # define LT_DLSYM_CONST
   8362 #else
   8363 # define LT_DLSYM_CONST const
   8364 #endif
   8365 
   8366 #ifdef __cplusplus
   8367 extern "C" {
   8368 #endif
   8369 
   8370 _LT_EOF
   8371 	  # Now generate the symbol file.
   8372 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   8373 
   8374 	  cat <<_LT_EOF >> conftest.$ac_ext
   8375 
   8376 /* The mapping between symbol names and symbols.  */
   8377 LT_DLSYM_CONST struct {
   8378   const char *name;
   8379   void       *address;
   8380 }
   8381 lt__PROGRAM__LTX_preloaded_symbols[] =
   8382 {
   8383   { "@PROGRAM@", (void *) 0 },
   8384 _LT_EOF
   8385 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   8386 	  cat <<\_LT_EOF >> conftest.$ac_ext
   8387   {0, (void *) 0}
   8388 };
   8389 
   8390 /* This works around a problem in FreeBSD linker */
   8391 #ifdef FREEBSD_WORKAROUND
   8392 static const void *lt_preloaded_setup() {
   8393   return lt__PROGRAM__LTX_preloaded_symbols;
   8394 }
   8395 #endif
   8396 
   8397 #ifdef __cplusplus
   8398 }
   8399 #endif
   8400 _LT_EOF
   8401 	  # Now try linking the two files.
   8402 	  mv conftest.$ac_objext conftstm.$ac_objext
   8403 	  lt_globsym_save_LIBS=$LIBS
   8404 	  lt_globsym_save_CFLAGS=$CFLAGS
   8405 	  LIBS="conftstm.$ac_objext"
   8406 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   8407 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   8408   (eval $ac_link) 2>&5
   8409   ac_status=$?
   8410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8411   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
   8412 	    pipe_works=yes
   8413 	  fi
   8414 	  LIBS=$lt_globsym_save_LIBS
   8415 	  CFLAGS=$lt_globsym_save_CFLAGS
   8416 	else
   8417 	  echo "cannot find nm_test_func in $nlist" >&5
   8418 	fi
   8419       else
   8420 	echo "cannot find nm_test_var in $nlist" >&5
   8421       fi
   8422     else
   8423       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   8424     fi
   8425   else
   8426     echo "$progname: failed program was:" >&5
   8427     cat conftest.$ac_ext >&5
   8428   fi
   8429   rm -rf conftest* conftst*
   8430 
   8431   # Do not use the global_symbol_pipe unless it works.
   8432   if test "$pipe_works" = yes; then
   8433     break
   8434   else
   8435     lt_cv_sys_global_symbol_pipe=
   8436   fi
   8437 done
   8438 
   8439 fi
   8440 
   8441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   8442   lt_cv_sys_global_symbol_to_cdecl=
   8443 fi
   8444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   8446 $as_echo "failed" >&6; }
   8447 else
   8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   8449 $as_echo "ok" >&6; }
   8450 fi
   8451 
   8452 # Response file support.
   8453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8454   nm_file_list_spec='@'
   8455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   8456   nm_file_list_spec='@'
   8457 fi
   8458 
   8459 
   8460 
   8461 
   8462 
   8463 
   8464 
   8465 
   8466 
   8467 
   8468 
   8469 
   8470 
   8471 
   8472 
   8473 
   8474 
   8475 
   8476 
   8477 
   8478 
   8479 
   8480 
   8481 
   8482 
   8483 
   8484 
   8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   8486 $as_echo_n "checking for sysroot... " >&6; }
   8487 
   8488 # Check whether --with-sysroot was given.
   8489 if test "${with_sysroot+set}" = set; then :
   8490   withval=$with_sysroot;
   8491 else
   8492   with_sysroot=no
   8493 fi
   8494 
   8495 
   8496 lt_sysroot=
   8497 case ${with_sysroot} in #(
   8498  yes)
   8499    if test "$GCC" = yes; then
   8500      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   8501    fi
   8502    ;; #(
   8503  /*)
   8504    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   8505    ;; #(
   8506  no|'')
   8507    ;; #(
   8508  *)
   8509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
   8510 $as_echo "${with_sysroot}" >&6; }
   8511    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   8512    ;;
   8513 esac
   8514 
   8515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   8516 $as_echo "${lt_sysroot:-no}" >&6; }
   8517 
   8518 
   8519 
   8520 
   8521 
   8522 # Check whether --enable-libtool-lock was given.
   8523 if test "${enable_libtool_lock+set}" = set; then :
   8524   enableval=$enable_libtool_lock;
   8525 fi
   8526 
   8527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   8528 
   8529 # Some flags need to be propagated to the compiler or linker for good
   8530 # libtool support.
   8531 case $host in
   8532 ia64-*-hpux*)
   8533   # Find out which ABI we are using.
   8534   echo 'int i;' > conftest.$ac_ext
   8535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8536   (eval $ac_compile) 2>&5
   8537   ac_status=$?
   8538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8539   test $ac_status = 0; }; then
   8540     case `/usr/bin/file conftest.$ac_objext` in
   8541       *ELF-32*)
   8542 	HPUX_IA64_MODE="32"
   8543 	;;
   8544       *ELF-64*)
   8545 	HPUX_IA64_MODE="64"
   8546 	;;
   8547     esac
   8548   fi
   8549   rm -rf conftest*
   8550   ;;
   8551 *-*-irix6*)
   8552   # Find out which ABI we are using.
   8553   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   8554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8555   (eval $ac_compile) 2>&5
   8556   ac_status=$?
   8557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8558   test $ac_status = 0; }; then
   8559     if test "$lt_cv_prog_gnu_ld" = yes; then
   8560       case `/usr/bin/file conftest.$ac_objext` in
   8561 	*32-bit*)
   8562 	  LD="${LD-ld} -melf32bsmip"
   8563 	  ;;
   8564 	*N32*)
   8565 	  LD="${LD-ld} -melf32bmipn32"
   8566 	  ;;
   8567 	*64-bit*)
   8568 	  LD="${LD-ld} -melf64bmip"
   8569 	;;
   8570       esac
   8571     else
   8572       case `/usr/bin/file conftest.$ac_objext` in
   8573 	*32-bit*)
   8574 	  LD="${LD-ld} -32"
   8575 	  ;;
   8576 	*N32*)
   8577 	  LD="${LD-ld} -n32"
   8578 	  ;;
   8579 	*64-bit*)
   8580 	  LD="${LD-ld} -64"
   8581 	  ;;
   8582       esac
   8583     fi
   8584   fi
   8585   rm -rf conftest*
   8586   ;;
   8587 
   8588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   8589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   8590   # Find out which ABI we are using.
   8591   echo 'int i;' > conftest.$ac_ext
   8592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8593   (eval $ac_compile) 2>&5
   8594   ac_status=$?
   8595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8596   test $ac_status = 0; }; then
   8597     case `/usr/bin/file conftest.o` in
   8598       *32-bit*)
   8599 	case $host in
   8600 	  x86_64-*kfreebsd*-gnu)
   8601 	    LD="${LD-ld} -m elf_i386_fbsd"
   8602 	    ;;
   8603 	  x86_64-*linux*)
   8604 	    LD="${LD-ld} -m elf_i386"
   8605 	    ;;
   8606 	  ppc64-*linux*|powerpc64-*linux*)
   8607 	    LD="${LD-ld} -m elf32ppclinux"
   8608 	    ;;
   8609 	  s390x-*linux*)
   8610 	    LD="${LD-ld} -m elf_s390"
   8611 	    ;;
   8612 	  sparc64-*linux*)
   8613 	    LD="${LD-ld} -m elf32_sparc"
   8614 	    ;;
   8615 	esac
   8616 	;;
   8617       *64-bit*)
   8618 	case $host in
   8619 	  x86_64-*kfreebsd*-gnu)
   8620 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   8621 	    ;;
   8622 	  x86_64-*linux*)
   8623 	    LD="${LD-ld} -m elf_x86_64"
   8624 	    ;;
   8625 	  ppc*-*linux*|powerpc*-*linux*)
   8626 	    LD="${LD-ld} -m elf64ppc"
   8627 	    ;;
   8628 	  s390*-*linux*|s390*-*tpf*)
   8629 	    LD="${LD-ld} -m elf64_s390"
   8630 	    ;;
   8631 	  sparc*-*linux*)
   8632 	    LD="${LD-ld} -m elf64_sparc"
   8633 	    ;;
   8634 	esac
   8635 	;;
   8636     esac
   8637   fi
   8638   rm -rf conftest*
   8639   ;;
   8640 
   8641 *-*-sco3.2v5*)
   8642   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   8643   SAVE_CFLAGS="$CFLAGS"
   8644   CFLAGS="$CFLAGS -belf"
   8645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   8646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   8647 if ${lt_cv_cc_needs_belf+:} false; then :
   8648   $as_echo_n "(cached) " >&6
   8649 else
   8650   ac_ext=c
   8651 ac_cpp='$CPP $CPPFLAGS'
   8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8655 
   8656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8657 /* end confdefs.h.  */
   8658 
   8659 int main (void)
   8660 {
   8661 
   8662  ;
   8663  return 0;
   8664 }
   8665 _ACEOF
   8666 if ac_fn_c_try_link "$LINENO"; then :
   8667   lt_cv_cc_needs_belf=yes
   8668 else
   8669   lt_cv_cc_needs_belf=no
   8670 fi
   8671 rm -f core conftest.err conftest.$ac_objext \
   8672     conftest$ac_exeext conftest.$ac_ext
   8673      ac_ext=c
   8674 ac_cpp='$CPP $CPPFLAGS'
   8675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8678 
   8679 fi
   8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   8681 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   8682   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   8683     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   8684     CFLAGS="$SAVE_CFLAGS"
   8685   fi
   8686   ;;
   8687 sparc*-*solaris*)
   8688   # Find out which ABI we are using.
   8689   echo 'int i;' > conftest.$ac_ext
   8690   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8691   (eval $ac_compile) 2>&5
   8692   ac_status=$?
   8693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8694   test $ac_status = 0; }; then
   8695     case `/usr/bin/file conftest.o` in
   8696     *64-bit*)
   8697       case $lt_cv_prog_gnu_ld in
   8698       yes*) LD="${LD-ld} -m elf64_sparc" ;;
   8699       *)
   8700 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   8701 	  LD="${LD-ld} -64"
   8702 	fi
   8703 	;;
   8704       esac
   8705       ;;
   8706     esac
   8707   fi
   8708   rm -rf conftest*
   8709   ;;
   8710 esac
   8711 
   8712 need_locks="$enable_libtool_lock"
   8713 
   8714 if test -n "$ac_tool_prefix"; then
   8715   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   8716 set dummy ${ac_tool_prefix}mt; ac_word=$2
   8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8718 $as_echo_n "checking for $ac_word... " >&6; }
   8719 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   8720   $as_echo_n "(cached) " >&6
   8721 else
   8722   if test -n "$MANIFEST_TOOL"; then
   8723   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   8724 else
   8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8726 for as_dir in $PATH
   8727 do
   8728   IFS=$as_save_IFS
   8729   test -z "$as_dir" && as_dir=.
   8730     for ac_exec_ext in '' $ac_executable_extensions; do
   8731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8732     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   8733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8734     break 2
   8735   fi
   8736 done
   8737   done
   8738 IFS=$as_save_IFS
   8739 
   8740 fi
   8741 fi
   8742 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   8743 if test -n "$MANIFEST_TOOL"; then
   8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   8745 $as_echo "$MANIFEST_TOOL" >&6; }
   8746 else
   8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8748 $as_echo "no" >&6; }
   8749 fi
   8750 
   8751 
   8752 fi
   8753 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   8754   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   8755   # Extract the first word of "mt", so it can be a program name with args.
   8756 set dummy mt; ac_word=$2
   8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8758 $as_echo_n "checking for $ac_word... " >&6; }
   8759 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   8760   $as_echo_n "(cached) " >&6
   8761 else
   8762   if test -n "$ac_ct_MANIFEST_TOOL"; then
   8763   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   8764 else
   8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8766 for as_dir in $PATH
   8767 do
   8768   IFS=$as_save_IFS
   8769   test -z "$as_dir" && as_dir=.
   8770     for ac_exec_ext in '' $ac_executable_extensions; do
   8771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8772     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8774     break 2
   8775   fi
   8776 done
   8777   done
   8778 IFS=$as_save_IFS
   8779 
   8780 fi
   8781 fi
   8782 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   8783 if test -n "$ac_ct_MANIFEST_TOOL"; then
   8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   8785 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   8786 else
   8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8788 $as_echo "no" >&6; }
   8789 fi
   8790 
   8791   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   8792     MANIFEST_TOOL=":"
   8793   else
   8794     case $cross_compiling:$ac_tool_warned in
   8795 yes:)
   8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8798 ac_tool_warned=yes ;;
   8799 esac
   8800     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   8801   fi
   8802 else
   8803   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   8804 fi
   8805 
   8806 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   8808 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   8809 if ${lt_cv_path_mainfest_tool+:} false; then :
   8810   $as_echo_n "(cached) " >&6
   8811 else
   8812   lt_cv_path_mainfest_tool=no
   8813   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   8814   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   8815   cat conftest.err >&5
   8816   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   8817     lt_cv_path_mainfest_tool=yes
   8818   fi
   8819   rm -f conftest*
   8820 fi
   8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   8822 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   8823 if test "x$lt_cv_path_mainfest_tool" != xyes; then
   8824   MANIFEST_TOOL=:
   8825 fi
   8826 
   8827 
   8828 
   8829 
   8830 
   8831 
   8832   case $host_os in
   8833     rhapsody* | darwin*)
   8834     if test -n "$ac_tool_prefix"; then
   8835   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   8836 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8838 $as_echo_n "checking for $ac_word... " >&6; }
   8839 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   8840   $as_echo_n "(cached) " >&6
   8841 else
   8842   if test -n "$DSYMUTIL"; then
   8843   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   8844 else
   8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8846 for as_dir in $PATH
   8847 do
   8848   IFS=$as_save_IFS
   8849   test -z "$as_dir" && as_dir=.
   8850     for ac_exec_ext in '' $ac_executable_extensions; do
   8851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8852     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   8853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8854     break 2
   8855   fi
   8856 done
   8857   done
   8858 IFS=$as_save_IFS
   8859 
   8860 fi
   8861 fi
   8862 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   8863 if test -n "$DSYMUTIL"; then
   8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   8865 $as_echo "$DSYMUTIL" >&6; }
   8866 else
   8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8868 $as_echo "no" >&6; }
   8869 fi
   8870 
   8871 
   8872 fi
   8873 if test -z "$ac_cv_prog_DSYMUTIL"; then
   8874   ac_ct_DSYMUTIL=$DSYMUTIL
   8875   # Extract the first word of "dsymutil", so it can be a program name with args.
   8876 set dummy dsymutil; ac_word=$2
   8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8878 $as_echo_n "checking for $ac_word... " >&6; }
   8879 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   8880   $as_echo_n "(cached) " >&6
   8881 else
   8882   if test -n "$ac_ct_DSYMUTIL"; then
   8883   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   8884 else
   8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8886 for as_dir in $PATH
   8887 do
   8888   IFS=$as_save_IFS
   8889   test -z "$as_dir" && as_dir=.
   8890     for ac_exec_ext in '' $ac_executable_extensions; do
   8891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8892     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   8893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8894     break 2
   8895   fi
   8896 done
   8897   done
   8898 IFS=$as_save_IFS
   8899 
   8900 fi
   8901 fi
   8902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   8903 if test -n "$ac_ct_DSYMUTIL"; then
   8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   8905 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   8906 else
   8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8908 $as_echo "no" >&6; }
   8909 fi
   8910 
   8911   if test "x$ac_ct_DSYMUTIL" = x; then
   8912     DSYMUTIL=":"
   8913   else
   8914     case $cross_compiling:$ac_tool_warned in
   8915 yes:)
   8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8918 ac_tool_warned=yes ;;
   8919 esac
   8920     DSYMUTIL=$ac_ct_DSYMUTIL
   8921   fi
   8922 else
   8923   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   8924 fi
   8925 
   8926     if test -n "$ac_tool_prefix"; then
   8927   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   8928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8930 $as_echo_n "checking for $ac_word... " >&6; }
   8931 if ${ac_cv_prog_NMEDIT+:} false; then :
   8932   $as_echo_n "(cached) " >&6
   8933 else
   8934   if test -n "$NMEDIT"; then
   8935   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   8936 else
   8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8938 for as_dir in $PATH
   8939 do
   8940   IFS=$as_save_IFS
   8941   test -z "$as_dir" && as_dir=.
   8942     for ac_exec_ext in '' $ac_executable_extensions; do
   8943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8944     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   8945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8946     break 2
   8947   fi
   8948 done
   8949   done
   8950 IFS=$as_save_IFS
   8951 
   8952 fi
   8953 fi
   8954 NMEDIT=$ac_cv_prog_NMEDIT
   8955 if test -n "$NMEDIT"; then
   8956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   8957 $as_echo "$NMEDIT" >&6; }
   8958 else
   8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8960 $as_echo "no" >&6; }
   8961 fi
   8962 
   8963 
   8964 fi
   8965 if test -z "$ac_cv_prog_NMEDIT"; then
   8966   ac_ct_NMEDIT=$NMEDIT
   8967   # Extract the first word of "nmedit", so it can be a program name with args.
   8968 set dummy nmedit; ac_word=$2
   8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8970 $as_echo_n "checking for $ac_word... " >&6; }
   8971 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   8972   $as_echo_n "(cached) " >&6
   8973 else
   8974   if test -n "$ac_ct_NMEDIT"; then
   8975   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   8976 else
   8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8978 for as_dir in $PATH
   8979 do
   8980   IFS=$as_save_IFS
   8981   test -z "$as_dir" && as_dir=.
   8982     for ac_exec_ext in '' $ac_executable_extensions; do
   8983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8984     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   8985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8986     break 2
   8987   fi
   8988 done
   8989   done
   8990 IFS=$as_save_IFS
   8991 
   8992 fi
   8993 fi
   8994 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   8995 if test -n "$ac_ct_NMEDIT"; then
   8996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   8997 $as_echo "$ac_ct_NMEDIT" >&6; }
   8998 else
   8999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9000 $as_echo "no" >&6; }
   9001 fi
   9002 
   9003   if test "x$ac_ct_NMEDIT" = x; then
   9004     NMEDIT=":"
   9005   else
   9006     case $cross_compiling:$ac_tool_warned in
   9007 yes:)
   9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9010 ac_tool_warned=yes ;;
   9011 esac
   9012     NMEDIT=$ac_ct_NMEDIT
   9013   fi
   9014 else
   9015   NMEDIT="$ac_cv_prog_NMEDIT"
   9016 fi
   9017 
   9018     if test -n "$ac_tool_prefix"; then
   9019   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   9020 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9022 $as_echo_n "checking for $ac_word... " >&6; }
   9023 if ${ac_cv_prog_LIPO+:} false; then :
   9024   $as_echo_n "(cached) " >&6
   9025 else
   9026   if test -n "$LIPO"; then
   9027   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   9028 else
   9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9030 for as_dir in $PATH
   9031 do
   9032   IFS=$as_save_IFS
   9033   test -z "$as_dir" && as_dir=.
   9034     for ac_exec_ext in '' $ac_executable_extensions; do
   9035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9036     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   9037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9038     break 2
   9039   fi
   9040 done
   9041   done
   9042 IFS=$as_save_IFS
   9043 
   9044 fi
   9045 fi
   9046 LIPO=$ac_cv_prog_LIPO
   9047 if test -n "$LIPO"; then
   9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   9049 $as_echo "$LIPO" >&6; }
   9050 else
   9051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9052 $as_echo "no" >&6; }
   9053 fi
   9054 
   9055 
   9056 fi
   9057 if test -z "$ac_cv_prog_LIPO"; then
   9058   ac_ct_LIPO=$LIPO
   9059   # Extract the first word of "lipo", so it can be a program name with args.
   9060 set dummy lipo; ac_word=$2
   9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9062 $as_echo_n "checking for $ac_word... " >&6; }
   9063 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   9064   $as_echo_n "(cached) " >&6
   9065 else
   9066   if test -n "$ac_ct_LIPO"; then
   9067   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   9068 else
   9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9070 for as_dir in $PATH
   9071 do
   9072   IFS=$as_save_IFS
   9073   test -z "$as_dir" && as_dir=.
   9074     for ac_exec_ext in '' $ac_executable_extensions; do
   9075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9076     ac_cv_prog_ac_ct_LIPO="lipo"
   9077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9078     break 2
   9079   fi
   9080 done
   9081   done
   9082 IFS=$as_save_IFS
   9083 
   9084 fi
   9085 fi
   9086 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   9087 if test -n "$ac_ct_LIPO"; then
   9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   9089 $as_echo "$ac_ct_LIPO" >&6; }
   9090 else
   9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9092 $as_echo "no" >&6; }
   9093 fi
   9094 
   9095   if test "x$ac_ct_LIPO" = x; then
   9096     LIPO=":"
   9097   else
   9098     case $cross_compiling:$ac_tool_warned in
   9099 yes:)
   9100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9102 ac_tool_warned=yes ;;
   9103 esac
   9104     LIPO=$ac_ct_LIPO
   9105   fi
   9106 else
   9107   LIPO="$ac_cv_prog_LIPO"
   9108 fi
   9109 
   9110     if test -n "$ac_tool_prefix"; then
   9111   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   9112 set dummy ${ac_tool_prefix}otool; ac_word=$2
   9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9114 $as_echo_n "checking for $ac_word... " >&6; }
   9115 if ${ac_cv_prog_OTOOL+:} false; then :
   9116   $as_echo_n "(cached) " >&6
   9117 else
   9118   if test -n "$OTOOL"; then
   9119   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   9120 else
   9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9122 for as_dir in $PATH
   9123 do
   9124   IFS=$as_save_IFS
   9125   test -z "$as_dir" && as_dir=.
   9126     for ac_exec_ext in '' $ac_executable_extensions; do
   9127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9128     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   9129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9130     break 2
   9131   fi
   9132 done
   9133   done
   9134 IFS=$as_save_IFS
   9135 
   9136 fi
   9137 fi
   9138 OTOOL=$ac_cv_prog_OTOOL
   9139 if test -n "$OTOOL"; then
   9140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   9141 $as_echo "$OTOOL" >&6; }
   9142 else
   9143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9144 $as_echo "no" >&6; }
   9145 fi
   9146 
   9147 
   9148 fi
   9149 if test -z "$ac_cv_prog_OTOOL"; then
   9150   ac_ct_OTOOL=$OTOOL
   9151   # Extract the first word of "otool", so it can be a program name with args.
   9152 set dummy otool; ac_word=$2
   9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9154 $as_echo_n "checking for $ac_word... " >&6; }
   9155 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   9156   $as_echo_n "(cached) " >&6
   9157 else
   9158   if test -n "$ac_ct_OTOOL"; then
   9159   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   9160 else
   9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9162 for as_dir in $PATH
   9163 do
   9164   IFS=$as_save_IFS
   9165   test -z "$as_dir" && as_dir=.
   9166     for ac_exec_ext in '' $ac_executable_extensions; do
   9167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9168     ac_cv_prog_ac_ct_OTOOL="otool"
   9169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9170     break 2
   9171   fi
   9172 done
   9173   done
   9174 IFS=$as_save_IFS
   9175 
   9176 fi
   9177 fi
   9178 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   9179 if test -n "$ac_ct_OTOOL"; then
   9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   9181 $as_echo "$ac_ct_OTOOL" >&6; }
   9182 else
   9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9184 $as_echo "no" >&6; }
   9185 fi
   9186 
   9187   if test "x$ac_ct_OTOOL" = x; then
   9188     OTOOL=":"
   9189   else
   9190     case $cross_compiling:$ac_tool_warned in
   9191 yes:)
   9192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9194 ac_tool_warned=yes ;;
   9195 esac
   9196     OTOOL=$ac_ct_OTOOL
   9197   fi
   9198 else
   9199   OTOOL="$ac_cv_prog_OTOOL"
   9200 fi
   9201 
   9202     if test -n "$ac_tool_prefix"; then
   9203   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   9204 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9206 $as_echo_n "checking for $ac_word... " >&6; }
   9207 if ${ac_cv_prog_OTOOL64+:} false; then :
   9208   $as_echo_n "(cached) " >&6
   9209 else
   9210   if test -n "$OTOOL64"; then
   9211   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   9212 else
   9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9214 for as_dir in $PATH
   9215 do
   9216   IFS=$as_save_IFS
   9217   test -z "$as_dir" && as_dir=.
   9218     for ac_exec_ext in '' $ac_executable_extensions; do
   9219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9220     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   9221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9222     break 2
   9223   fi
   9224 done
   9225   done
   9226 IFS=$as_save_IFS
   9227 
   9228 fi
   9229 fi
   9230 OTOOL64=$ac_cv_prog_OTOOL64
   9231 if test -n "$OTOOL64"; then
   9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   9233 $as_echo "$OTOOL64" >&6; }
   9234 else
   9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9236 $as_echo "no" >&6; }
   9237 fi
   9238 
   9239 
   9240 fi
   9241 if test -z "$ac_cv_prog_OTOOL64"; then
   9242   ac_ct_OTOOL64=$OTOOL64
   9243   # Extract the first word of "otool64", so it can be a program name with args.
   9244 set dummy otool64; ac_word=$2
   9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9246 $as_echo_n "checking for $ac_word... " >&6; }
   9247 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   9248   $as_echo_n "(cached) " >&6
   9249 else
   9250   if test -n "$ac_ct_OTOOL64"; then
   9251   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   9252 else
   9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9254 for as_dir in $PATH
   9255 do
   9256   IFS=$as_save_IFS
   9257   test -z "$as_dir" && as_dir=.
   9258     for ac_exec_ext in '' $ac_executable_extensions; do
   9259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9260     ac_cv_prog_ac_ct_OTOOL64="otool64"
   9261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9262     break 2
   9263   fi
   9264 done
   9265   done
   9266 IFS=$as_save_IFS
   9267 
   9268 fi
   9269 fi
   9270 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   9271 if test -n "$ac_ct_OTOOL64"; then
   9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   9273 $as_echo "$ac_ct_OTOOL64" >&6; }
   9274 else
   9275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9276 $as_echo "no" >&6; }
   9277 fi
   9278 
   9279   if test "x$ac_ct_OTOOL64" = x; then
   9280     OTOOL64=":"
   9281   else
   9282     case $cross_compiling:$ac_tool_warned in
   9283 yes:)
   9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9286 ac_tool_warned=yes ;;
   9287 esac
   9288     OTOOL64=$ac_ct_OTOOL64
   9289   fi
   9290 else
   9291   OTOOL64="$ac_cv_prog_OTOOL64"
   9292 fi
   9293 
   9294 
   9295 
   9296 
   9297 
   9298 
   9299 
   9300 
   9301 
   9302 
   9303 
   9304 
   9305 
   9306 
   9307 
   9308 
   9309 
   9310 
   9311 
   9312 
   9313 
   9314 
   9315 
   9316 
   9317 
   9318 
   9319 
   9320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   9321 $as_echo_n "checking for -single_module linker flag... " >&6; }
   9322 if ${lt_cv_apple_cc_single_mod+:} false; then :
   9323   $as_echo_n "(cached) " >&6
   9324 else
   9325   lt_cv_apple_cc_single_mod=no
   9326       if test -z "${LT_MULTI_MODULE}"; then
   9327 	# By default we will add the -single_module flag. You can override
   9328 	# by either setting the environment variable LT_MULTI_MODULE
   9329 	# non-empty at configure time, or by adding -multi_module to the
   9330 	# link flags.
   9331 	rm -rf libconftest.dylib*
   9332 	echo "int foo(void){return 1;}" > conftest.c
   9333 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9334 -dynamiclib -Wl,-single_module conftest.c" >&5
   9335 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9336 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   9337         _lt_result=$?
   9338 	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   9339 	  lt_cv_apple_cc_single_mod=yes
   9340 	else
   9341 	  cat conftest.err >&5
   9342 	fi
   9343 	rm -rf libconftest.dylib*
   9344 	rm -f conftest.*
   9345       fi
   9346 fi
   9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   9348 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   9349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   9350 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   9351 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   9352   $as_echo_n "(cached) " >&6
   9353 else
   9354   lt_cv_ld_exported_symbols_list=no
   9355       save_LDFLAGS=$LDFLAGS
   9356       echo "_main" > conftest.sym
   9357       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   9358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9359 /* end confdefs.h.  */
   9360 
   9361 int main (void)
   9362 {
   9363 
   9364  ;
   9365  return 0;
   9366 }
   9367 _ACEOF
   9368 if ac_fn_c_try_link "$LINENO"; then :
   9369   lt_cv_ld_exported_symbols_list=yes
   9370 else
   9371   lt_cv_ld_exported_symbols_list=no
   9372 fi
   9373 rm -f core conftest.err conftest.$ac_objext \
   9374     conftest$ac_exeext conftest.$ac_ext
   9375 	LDFLAGS="$save_LDFLAGS"
   9376 
   9377 fi
   9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   9379 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   9380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   9381 $as_echo_n "checking for -force_load linker flag... " >&6; }
   9382 if ${lt_cv_ld_force_load+:} false; then :
   9383   $as_echo_n "(cached) " >&6
   9384 else
   9385   lt_cv_ld_force_load=no
   9386       cat > conftest.c << _LT_EOF
   9387 int forced_loaded() { return 2;}
   9388 _LT_EOF
   9389       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   9390       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   9391       echo "$AR cru libconftest.a conftest.o" >&5
   9392       $AR cru libconftest.a conftest.o 2>&5
   9393       echo "$RANLIB libconftest.a" >&5
   9394       $RANLIB libconftest.a 2>&5
   9395       cat > conftest.c << _LT_EOF
   9396 int main() { return 0;}
   9397 _LT_EOF
   9398       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   9399       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   9400       _lt_result=$?
   9401       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
   9402 	lt_cv_ld_force_load=yes
   9403       else
   9404 	cat conftest.err >&5
   9405       fi
   9406         rm -f conftest.err libconftest.a conftest conftest.c
   9407         rm -rf conftest.dSYM
   9408 
   9409 fi
   9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   9411 $as_echo "$lt_cv_ld_force_load" >&6; }
   9412     case $host_os in
   9413     rhapsody* | darwin1.[012])
   9414       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   9415     darwin1.*)
   9416       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   9417     darwin*) # darwin 5.x on
   9418       # if running on 10.5 or later, the deployment target defaults
   9419       # to the OS version, if on x86, and 10.4, the deployment
   9420       # target defaults to 10.4. Don't you love it?
   9421       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   9422 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   9423 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   9424 	10.[012]*)
   9425 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   9426 	10.*)
   9427 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   9428       esac
   9429     ;;
   9430   esac
   9431     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   9432       _lt_dar_single_mod='$single_module'
   9433     fi
   9434     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   9435       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   9436     else
   9437       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   9438     fi
   9439     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   9440       _lt_dsymutil='~$DSYMUTIL $lib || :'
   9441     else
   9442       _lt_dsymutil=
   9443     fi
   9444     ;;
   9445   esac
   9446 
   9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   9448 $as_echo_n "checking for ANSI C header files... " >&6; }
   9449 if ${ac_cv_header_stdc+:} false; then :
   9450   $as_echo_n "(cached) " >&6
   9451 else
   9452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9453 /* end confdefs.h.  */
   9454 #include <stdlib.h>
   9455 #include <stdarg.h>
   9456 #include <string.h>
   9457 #include <float.h>
   9458 
   9459 int main (void)
   9460 {
   9461 
   9462  ;
   9463  return 0;
   9464 }
   9465 _ACEOF
   9466 if ac_fn_c_try_compile "$LINENO"; then :
   9467   ac_cv_header_stdc=yes
   9468 else
   9469   ac_cv_header_stdc=no
   9470 fi
   9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9472 
   9473 if test $ac_cv_header_stdc = yes; then
   9474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   9475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9476 /* end confdefs.h.  */
   9477 #include <string.h>
   9478 
   9479 _ACEOF
   9480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9481   $EGREP "memchr" >/dev/null 2>&1; then :
   9482 
   9483 else
   9484   ac_cv_header_stdc=no
   9485 fi
   9486 rm -f conftest*
   9487 
   9488 fi
   9489 
   9490 if test $ac_cv_header_stdc = yes; then
   9491   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   9492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9493 /* end confdefs.h.  */
   9494 #include <stdlib.h>
   9495 
   9496 _ACEOF
   9497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9498   $EGREP "free" >/dev/null 2>&1; then :
   9499 
   9500 else
   9501   ac_cv_header_stdc=no
   9502 fi
   9503 rm -f conftest*
   9504 
   9505 fi
   9506 
   9507 if test $ac_cv_header_stdc = yes; then
   9508   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   9509   if test "$cross_compiling" = yes; then :
   9510   :
   9511 else
   9512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9513 /* end confdefs.h.  */
   9514 #include <ctype.h>
   9515 #include <stdlib.h>
   9516 #if ((' ' & 0x0FF) == 0x020)
   9517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   9518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   9519 #else
   9520 # define ISLOWER(c) \
   9521 		   (('a' <= (c) && (c) <= 'i') \
   9522 		     || ('j' <= (c) && (c) <= 'r') \
   9523 		     || ('s' <= (c) && (c) <= 'z'))
   9524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   9525 #endif
   9526 
   9527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   9528 int
   9529 main ()
   9530 {
   9531   int i;
   9532   for (i = 0; i < 256; i++)
   9533     if (XOR (islower (i), ISLOWER (i))
   9534 	|| toupper (i) != TOUPPER (i))
   9535       return 2;
   9536   return 0;
   9537 }
   9538 _ACEOF
   9539 if ac_fn_c_try_run "$LINENO"; then :
   9540 
   9541 else
   9542   ac_cv_header_stdc=no
   9543 fi
   9544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9545   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9546 fi
   9547 
   9548 fi
   9549 fi
   9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   9551 $as_echo "$ac_cv_header_stdc" >&6; }
   9552 if test $ac_cv_header_stdc = yes; then
   9553 
   9554 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   9555 
   9556 fi
   9557 
   9558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   9559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   9560 		  inttypes.h stdint.h unistd.h
   9561 do :
   9562   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   9564 "
   9565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   9566   cat >>confdefs.h <<_ACEOF
   9567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9568 _ACEOF
   9569 
   9570 fi
   9571 
   9572 done
   9573 
   9574 
   9575 for ac_header in dlfcn.h
   9576 do :
   9577   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   9578 "
   9579 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   9580   cat >>confdefs.h <<_ACEOF
   9581 #define HAVE_DLFCN_H 1
   9582 _ACEOF
   9583 
   9584 fi
   9585 
   9586 done
   9587 
   9588 
   9589 
   9590 
   9591 
   9592 # Set options
   9593 
   9594 
   9595 
   9596         enable_dlopen=no
   9597 
   9598 
   9599 
   9600             # Check whether --enable-shared was given.
   9601 if test "${enable_shared+set}" = set; then :
   9602   enableval=$enable_shared; p=${PACKAGE-default}
   9603     case $enableval in
   9604     yes) enable_shared=yes ;;
   9605     no) enable_shared=no ;;
   9606     *)
   9607       enable_shared=no
   9608       # Look at the argument we got.  We use all the common list separators.
   9609       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   9610       for pkg in $enableval; do
   9611 	IFS="$lt_save_ifs"
   9612 	if test "X$pkg" = "X$p"; then
   9613 	  enable_shared=yes
   9614 	fi
   9615       done
   9616       IFS="$lt_save_ifs"
   9617       ;;
   9618     esac
   9619 else
   9620   enable_shared=yes
   9621 fi
   9622 
   9623 
   9624 
   9625 
   9626 
   9627 
   9628 
   9629 
   9630 
   9631   # Check whether --enable-static was given.
   9632 if test "${enable_static+set}" = set; then :
   9633   enableval=$enable_static; p=${PACKAGE-default}
   9634     case $enableval in
   9635     yes) enable_static=yes ;;
   9636     no) enable_static=no ;;
   9637     *)
   9638      enable_static=no
   9639       # Look at the argument we got.  We use all the common list separators.
   9640       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   9641       for pkg in $enableval; do
   9642 	IFS="$lt_save_ifs"
   9643 	if test "X$pkg" = "X$p"; then
   9644 	  enable_static=yes
   9645 	fi
   9646       done
   9647       IFS="$lt_save_ifs"
   9648       ;;
   9649     esac
   9650 else
   9651   enable_static=yes
   9652 fi
   9653 
   9654 
   9655 
   9656 
   9657 
   9658 
   9659 
   9660 
   9661 
   9662 
   9663 # Check whether --with-pic was given.
   9664 if test "${with_pic+set}" = set; then :
   9665   withval=$with_pic; pic_mode="$withval"
   9666 else
   9667   pic_mode=default
   9668 fi
   9669 
   9670 
   9671 test -z "$pic_mode" && pic_mode=default
   9672 
   9673 
   9674 
   9675 
   9676 
   9677 
   9678 
   9679   # Check whether --enable-fast-install was given.
   9680 if test "${enable_fast_install+set}" = set; then :
   9681   enableval=$enable_fast_install; p=${PACKAGE-default}
   9682     case $enableval in
   9683     yes) enable_fast_install=yes ;;
   9684     no) enable_fast_install=no ;;
   9685     *)
   9686       enable_fast_install=no
   9687       # Look at the argument we got.  We use all the common list separators.
   9688       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   9689       for pkg in $enableval; do
   9690 	IFS="$lt_save_ifs"
   9691 	if test "X$pkg" = "X$p"; then
   9692 	  enable_fast_install=yes
   9693 	fi
   9694       done
   9695       IFS="$lt_save_ifs"
   9696       ;;
   9697     esac
   9698 else
   9699   enable_fast_install=yes
   9700 fi
   9701 
   9702 
   9703 
   9704 
   9705 
   9706 
   9707 
   9708 
   9709 
   9710 
   9711 
   9712 # This can be used to rebuild libtool when needed
   9713 LIBTOOL_DEPS="$ltmain"
   9714 
   9715 # Always use our own libtool.
   9716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   9717 
   9718 
   9719 
   9720 
   9721 
   9722 
   9723 
   9724 
   9725 
   9726 
   9727 
   9728 
   9729 
   9730 
   9731 
   9732 
   9733 
   9734 
   9735 
   9736 
   9737 
   9738 
   9739 
   9740 
   9741 
   9742 
   9743 test -z "$LN_S" && LN_S="ln -s"
   9744 
   9745 
   9746 
   9747 
   9748 
   9749 
   9750 
   9751 
   9752 
   9753 
   9754 
   9755 
   9756 
   9757 
   9758 if test -n "${ZSH_VERSION+set}" ; then
   9759    setopt NO_GLOB_SUBST
   9760 fi
   9761 
   9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   9763 $as_echo_n "checking for objdir... " >&6; }
   9764 if ${lt_cv_objdir+:} false; then :
   9765   $as_echo_n "(cached) " >&6
   9766 else
   9767   rm -f .libs 2>/dev/null
   9768 mkdir .libs 2>/dev/null
   9769 if test -d .libs; then
   9770   lt_cv_objdir=.libs
   9771 else
   9772   # MS-DOS does not allow filenames that begin with a dot.
   9773   lt_cv_objdir=_libs
   9774 fi
   9775 rmdir .libs 2>/dev/null
   9776 fi
   9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   9778 $as_echo "$lt_cv_objdir" >&6; }
   9779 objdir=$lt_cv_objdir
   9780 
   9781 
   9782 
   9783 
   9784 
   9785 cat >>confdefs.h <<_ACEOF
   9786 #define LT_OBJDIR "$lt_cv_objdir/"
   9787 _ACEOF
   9788 
   9789 
   9790 
   9791 
   9792 case $host_os in
   9793 aix3*)
   9794   # AIX sometimes has problems with the GCC collect2 program.  For some
   9795   # reason, if we set the COLLECT_NAMES environment variable, the problems
   9796   # vanish in a puff of smoke.
   9797   if test "X${COLLECT_NAMES+set}" != Xset; then
   9798     COLLECT_NAMES=
   9799     export COLLECT_NAMES
   9800   fi
   9801   ;;
   9802 esac
   9803 
   9804 # Global variables:
   9805 ofile=libtool
   9806 can_build_shared=yes
   9807 
   9808 # All known linkers require a `.a' archive for static linking (except MSVC,
   9809 # which needs '.lib').
   9810 libext=a
   9811 
   9812 with_gnu_ld="$lt_cv_prog_gnu_ld"
   9813 
   9814 old_CC="$CC"
   9815 old_CFLAGS="$CFLAGS"
   9816 
   9817 # Set sane defaults for various variables
   9818 test -z "$CC" && CC=cc
   9819 test -z "$LTCC" && LTCC=$CC
   9820 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   9821 test -z "$LD" && LD=ld
   9822 test -z "$ac_objext" && ac_objext=o
   9823 
   9824 for cc_temp in $compiler""; do
   9825   case $cc_temp in
   9826     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   9827     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   9828     \-*) ;;
   9829     *) break;;
   9830   esac
   9831 done
   9832 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   9833 
   9834 
   9835 # Only perform the check for file, if the check method requires it
   9836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   9837 case $deplibs_check_method in
   9838 file_magic*)
   9839   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   9840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   9841 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   9842 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   9843   $as_echo_n "(cached) " >&6
   9844 else
   9845   case $MAGIC_CMD in
   9846 [\\/*] |  ?:[\\/]*)
   9847   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   9848   ;;
   9849 *)
   9850   lt_save_MAGIC_CMD="$MAGIC_CMD"
   9851   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   9852   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   9853   for ac_dir in $ac_dummy; do
   9854     IFS="$lt_save_ifs"
   9855     test -z "$ac_dir" && ac_dir=.
   9856     if test -f $ac_dir/${ac_tool_prefix}file; then
   9857       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   9858       if test -n "$file_magic_test_file"; then
   9859 	case $deplibs_check_method in
   9860 	"file_magic "*)
   9861 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   9862 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   9863 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   9864 	    $EGREP "$file_magic_regex" > /dev/null; then
   9865 	    :
   9866 	  else
   9867 	    cat <<_LT_EOF 1>&2
   9868 
   9869 *** Warning: the command libtool uses to detect shared libraries,
   9870 *** $file_magic_cmd, produces output that libtool cannot recognize.
   9871 *** The result is that libtool may fail to recognize shared libraries
   9872 *** as such.  This will affect the creation of libtool libraries that
   9873 *** depend on shared libraries, but programs linked with such libtool
   9874 *** libraries will work regardless of this problem.  Nevertheless, you
   9875 *** may want to report the problem to your system manager and/or to
   9876 *** bug-libtool (at] gnu.org
   9877 
   9878 _LT_EOF
   9879 	  fi ;;
   9880 	esac
   9881       fi
   9882       break
   9883     fi
   9884   done
   9885   IFS="$lt_save_ifs"
   9886   MAGIC_CMD="$lt_save_MAGIC_CMD"
   9887   ;;
   9888 esac
   9889 fi
   9890 
   9891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   9892 if test -n "$MAGIC_CMD"; then
   9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   9894 $as_echo "$MAGIC_CMD" >&6; }
   9895 else
   9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9897 $as_echo "no" >&6; }
   9898 fi
   9899 
   9900 
   9901 
   9902 
   9903 
   9904 if test -z "$lt_cv_path_MAGIC_CMD"; then
   9905   if test -n "$ac_tool_prefix"; then
   9906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   9907 $as_echo_n "checking for file... " >&6; }
   9908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   9909   $as_echo_n "(cached) " >&6
   9910 else
   9911   case $MAGIC_CMD in
   9912 [\\/*] |  ?:[\\/]*)
   9913   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   9914   ;;
   9915 *)
   9916   lt_save_MAGIC_CMD="$MAGIC_CMD"
   9917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   9918   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   9919   for ac_dir in $ac_dummy; do
   9920     IFS="$lt_save_ifs"
   9921     test -z "$ac_dir" && ac_dir=.
   9922     if test -f $ac_dir/file; then
   9923       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   9924       if test -n "$file_magic_test_file"; then
   9925 	case $deplibs_check_method in
   9926 	"file_magic "*)
   9927 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   9928 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   9929 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   9930 	    $EGREP "$file_magic_regex" > /dev/null; then
   9931 	    :
   9932 	  else
   9933 	    cat <<_LT_EOF 1>&2
   9934 
   9935 *** Warning: the command libtool uses to detect shared libraries,
   9936 *** $file_magic_cmd, produces output that libtool cannot recognize.
   9937 *** The result is that libtool may fail to recognize shared libraries
   9938 *** as such.  This will affect the creation of libtool libraries that
   9939 *** depend on shared libraries, but programs linked with such libtool
   9940 *** libraries will work regardless of this problem.  Nevertheless, you
   9941 *** may want to report the problem to your system manager and/or to
   9942 *** bug-libtool (at] gnu.org
   9943 
   9944 _LT_EOF
   9945 	  fi ;;
   9946 	esac
   9947       fi
   9948       break
   9949     fi
   9950   done
   9951   IFS="$lt_save_ifs"
   9952   MAGIC_CMD="$lt_save_MAGIC_CMD"
   9953   ;;
   9954 esac
   9955 fi
   9956 
   9957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   9958 if test -n "$MAGIC_CMD"; then
   9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   9960 $as_echo "$MAGIC_CMD" >&6; }
   9961 else
   9962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9963 $as_echo "no" >&6; }
   9964 fi
   9965 
   9966 
   9967   else
   9968     MAGIC_CMD=:
   9969   fi
   9970 fi
   9971 
   9972   fi
   9973   ;;
   9974 esac
   9975 
   9976 # Use C for the default configuration in the libtool script
   9977 
   9978 lt_save_CC="$CC"
   9979 ac_ext=c
   9980 ac_cpp='$CPP $CPPFLAGS'
   9981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9984 
   9985 
   9986 # Source file extension for C test sources.
   9987 ac_ext=c
   9988 
   9989 # Object file extension for compiled C test sources.
   9990 objext=o
   9991 objext=$objext
   9992 
   9993 # Code to be used in simple compile tests
   9994 lt_simple_compile_test_code="int some_variable = 0;"
   9995 
   9996 # Code to be used in simple link tests
   9997 lt_simple_link_test_code='int main(){return(0);}'
   9998 
   9999 
   10000 
   10001 
   10002 
   10003 
   10004 
   10005 # If no C compiler was specified, use CC.
   10006 LTCC=${LTCC-"$CC"}
   10007 
   10008 # If no C compiler flags were specified, use CFLAGS.
   10009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   10010 
   10011 # Allow CC to be a program name with arguments.
   10012 compiler=$CC
   10013 
   10014 # Save the default compiler, since it gets overwritten when the other
   10015 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   10016 compiler_DEFAULT=$CC
   10017 
   10018 # save warnings/boilerplate of simple test code
   10019 ac_outfile=conftest.$ac_objext
   10020 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   10021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10022 _lt_compiler_boilerplate=`cat conftest.err`
   10023 $RM conftest*
   10024 
   10025 ac_outfile=conftest.$ac_objext
   10026 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   10027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10028 _lt_linker_boilerplate=`cat conftest.err`
   10029 $RM -r conftest*
   10030 
   10031 
   10032 ## CAVEAT EMPTOR:
   10033 ## There is no encapsulation within the following macros, do not change
   10034 ## the running order or otherwise move them around unless you know exactly
   10035 ## what you are doing...
   10036 if test -n "$compiler"; then
   10037 
   10038 lt_prog_compiler_no_builtin_flag=
   10039 
   10040 if test "$GCC" = yes; then
   10041   case $cc_basename in
   10042   nvcc*)
   10043     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   10044   *)
   10045     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   10046   esac
   10047 
   10048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   10049 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   10050 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   10051   $as_echo_n "(cached) " >&6
   10052 else
   10053   lt_cv_prog_compiler_rtti_exceptions=no
   10054    ac_outfile=conftest.$ac_objext
   10055    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10056    lt_compiler_flag="-fno-rtti -fno-exceptions"
   10057    # Insert the option either (1) after the last *FLAGS variable, or
   10058    # (2) before a word containing "conftest.", or (3) at the end.
   10059    # Note that $ac_compile itself does not contain backslashes and begins
   10060    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10061    # The option is referenced via a variable to avoid confusing sed.
   10062    lt_compile=`echo "$ac_compile" | $SED \
   10063    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10065    -e 's:$: $lt_compiler_flag:'`
   10066    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10067    (eval "$lt_compile" 2>conftest.err)
   10068    ac_status=$?
   10069    cat conftest.err >&5
   10070    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10071    if (exit $ac_status) && test -s "$ac_outfile"; then
   10072      # The compiler can only warn and ignore the option if not recognized
   10073      # So say no if there are warnings other than the usual output.
   10074      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   10075      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10076      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   10077        lt_cv_prog_compiler_rtti_exceptions=yes
   10078      fi
   10079    fi
   10080    $RM conftest*
   10081 
   10082 fi
   10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   10084 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   10085 
   10086 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   10087     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   10088 else
   10089     :
   10090 fi
   10091 
   10092 fi
   10093 
   10094 
   10095 
   10096 
   10097 
   10098 
   10099   lt_prog_compiler_wl=
   10100 lt_prog_compiler_pic=
   10101 lt_prog_compiler_static=
   10102 
   10103 
   10104   if test "$GCC" = yes; then
   10105     lt_prog_compiler_wl='-Wl,'
   10106     lt_prog_compiler_static='-static'
   10107 
   10108     case $host_os in
   10109       aix*)
   10110       # All AIX code is PIC.
   10111       if test "$host_cpu" = ia64; then
   10112 	# AIX 5 now supports IA64 processor
   10113 	lt_prog_compiler_static='-Bstatic'
   10114       fi
   10115       ;;
   10116 
   10117     amigaos*)
   10118       case $host_cpu in
   10119       powerpc)
   10120             # see comment about AmigaOS4 .so support
   10121             lt_prog_compiler_pic='-fPIC'
   10122         ;;
   10123       m68k)
   10124             # FIXME: we need at least 68020 code to build shared libraries, but
   10125             # adding the `-m68020' flag to GCC prevents building anything better,
   10126             # like `-m68040'.
   10127             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   10128         ;;
   10129       esac
   10130       ;;
   10131 
   10132     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   10133       # PIC is the default for these OSes.
   10134       ;;
   10135 
   10136     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10137       # This hack is so that the source file can tell whether it is being
   10138       # built for inclusion in a dll (and should export symbols for example).
   10139       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   10140       # (--disable-auto-import) libraries
   10141       lt_prog_compiler_pic='-DDLL_EXPORT'
   10142       ;;
   10143 
   10144     darwin* | rhapsody*)
   10145       # PIC is the default on this platform
   10146       # Common symbols not allowed in MH_DYLIB files
   10147       lt_prog_compiler_pic='-fno-common'
   10148       ;;
   10149 
   10150     haiku*)
   10151       # PIC is the default for Haiku.
   10152       # The "-static" flag exists, but is broken.
   10153       lt_prog_compiler_static=
   10154       ;;
   10155 
   10156     hpux*)
   10157       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   10158       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   10159       # sets the default TLS model and affects inlining.
   10160       case $host_cpu in
   10161       hppa*64*)
   10162 	# +Z the default
   10163 	;;
   10164       *)
   10165 	lt_prog_compiler_pic='-fPIC'
   10166 	;;
   10167       esac
   10168       ;;
   10169 
   10170     interix[3-9]*)
   10171       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   10172       # Instead, we relocate shared libraries at runtime.
   10173       ;;
   10174 
   10175     msdosdjgpp*)
   10176       # Just because we use GCC doesn't mean we suddenly get shared libraries
   10177       # on systems that don't support them.
   10178       lt_prog_compiler_can_build_shared=no
   10179       enable_shared=no
   10180       ;;
   10181 
   10182     *nto* | *qnx*)
   10183       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10184       # it will coredump.
   10185       lt_prog_compiler_pic='-fPIC -shared'
   10186       ;;
   10187 
   10188     sysv4*MP*)
   10189       if test -d /usr/nec; then
   10190 	lt_prog_compiler_pic=-Kconform_pic
   10191       fi
   10192       ;;
   10193 
   10194     *)
   10195       lt_prog_compiler_pic='-fPIC'
   10196       ;;
   10197     esac
   10198 
   10199     case $cc_basename in
   10200     nvcc*) # Cuda Compiler Driver 2.2
   10201       lt_prog_compiler_wl='-Xlinker '
   10202       lt_prog_compiler_pic='-Xcompiler -fPIC'
   10203       ;;
   10204     esac
   10205   else
   10206     # PORTME Check for flag to pass linker flags through the system compiler.
   10207     case $host_os in
   10208     aix*)
   10209       lt_prog_compiler_wl='-Wl,'
   10210       if test "$host_cpu" = ia64; then
   10211 	# AIX 5 now supports IA64 processor
   10212 	lt_prog_compiler_static='-Bstatic'
   10213       else
   10214 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   10215       fi
   10216       ;;
   10217 
   10218     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10219       # This hack is so that the source file can tell whether it is being
   10220       # built for inclusion in a dll (and should export symbols for example).
   10221       lt_prog_compiler_pic='-DDLL_EXPORT'
   10222       ;;
   10223 
   10224     hpux9* | hpux10* | hpux11*)
   10225       lt_prog_compiler_wl='-Wl,'
   10226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   10227       # not for PA HP-UX.
   10228       case $host_cpu in
   10229       hppa*64*|ia64*)
   10230 	# +Z the default
   10231 	;;
   10232       *)
   10233 	lt_prog_compiler_pic='+Z'
   10234 	;;
   10235       esac
   10236       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   10237       lt_prog_compiler_static='${wl}-a ${wl}archive'
   10238       ;;
   10239 
   10240     irix5* | irix6* | nonstopux*)
   10241       lt_prog_compiler_wl='-Wl,'
   10242       # PIC (with -KPIC) is the default.
   10243       lt_prog_compiler_static='-non_shared'
   10244       ;;
   10245 
   10246     linux* | k*bsd*-gnu | kopensolaris*-gnu)
   10247       case $cc_basename in
   10248       # old Intel for x86_64 which still supported -KPIC.
   10249       ecc*)
   10250 	lt_prog_compiler_wl='-Wl,'
   10251 	lt_prog_compiler_pic='-KPIC'
   10252 	lt_prog_compiler_static='-static'
   10253         ;;
   10254       # icc used to be incompatible with GCC.
   10255       # ICC 10 doesn't accept -KPIC any more.
   10256       icc* | ifort*)
   10257 	lt_prog_compiler_wl='-Wl,'
   10258 	lt_prog_compiler_pic='-fPIC'
   10259 	lt_prog_compiler_static='-static'
   10260         ;;
   10261       # Lahey Fortran 8.1.
   10262       lf95*)
   10263 	lt_prog_compiler_wl='-Wl,'
   10264 	lt_prog_compiler_pic='--shared'
   10265 	lt_prog_compiler_static='--static'
   10266 	;;
   10267       nagfor*)
   10268 	# NAG Fortran compiler
   10269 	lt_prog_compiler_wl='-Wl,-Wl,,'
   10270 	lt_prog_compiler_pic='-PIC'
   10271 	lt_prog_compiler_static='-Bstatic'
   10272 	;;
   10273       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   10274         # Portland Group compilers (*not* the Pentium gcc compiler,
   10275 	# which looks to be a dead project)
   10276 	lt_prog_compiler_wl='-Wl,'
   10277 	lt_prog_compiler_pic='-fpic'
   10278 	lt_prog_compiler_static='-Bstatic'
   10279         ;;
   10280       ccc*)
   10281         lt_prog_compiler_wl='-Wl,'
   10282         # All Alpha code is PIC.
   10283         lt_prog_compiler_static='-non_shared'
   10284         ;;
   10285       xl* | bgxl* | bgf* | mpixl*)
   10286 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   10287 	lt_prog_compiler_wl='-Wl,'
   10288 	lt_prog_compiler_pic='-qpic'
   10289 	lt_prog_compiler_static='-qstaticlink'
   10290 	;;
   10291       *)
   10292 	case `$CC -V 2>&1 | sed 5q` in
   10293 	*Sun\ F* | *Sun*Fortran*)
   10294 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   10295 	  lt_prog_compiler_pic='-KPIC'
   10296 	  lt_prog_compiler_static='-Bstatic'
   10297 	  lt_prog_compiler_wl=''
   10298 	  ;;
   10299 	*Sun\ C*)
   10300 	  # Sun C 5.9
   10301 	  lt_prog_compiler_pic='-KPIC'
   10302 	  lt_prog_compiler_static='-Bstatic'
   10303 	  lt_prog_compiler_wl='-Wl,'
   10304 	  ;;
   10305 	esac
   10306 	;;
   10307       esac
   10308       ;;
   10309 
   10310     newsos6)
   10311       lt_prog_compiler_pic='-KPIC'
   10312       lt_prog_compiler_static='-Bstatic'
   10313       ;;
   10314 
   10315     *nto* | *qnx*)
   10316       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10317       # it will coredump.
   10318       lt_prog_compiler_pic='-fPIC -shared'
   10319       ;;
   10320 
   10321     osf3* | osf4* | osf5*)
   10322       lt_prog_compiler_wl='-Wl,'
   10323       # All OSF/1 code is PIC.
   10324       lt_prog_compiler_static='-non_shared'
   10325       ;;
   10326 
   10327     rdos*)
   10328       lt_prog_compiler_static='-non_shared'
   10329       ;;
   10330 
   10331     solaris*)
   10332       lt_prog_compiler_pic='-KPIC'
   10333       lt_prog_compiler_static='-Bstatic'
   10334       case $cc_basename in
   10335       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   10336 	lt_prog_compiler_wl='-Qoption ld ';;
   10337       *)
   10338 	lt_prog_compiler_wl='-Wl,';;
   10339       esac
   10340       ;;
   10341 
   10342     sunos4*)
   10343       lt_prog_compiler_wl='-Qoption ld '
   10344       lt_prog_compiler_pic='-PIC'
   10345       lt_prog_compiler_static='-Bstatic'
   10346       ;;
   10347 
   10348     sysv4 | sysv4.2uw2* | sysv4.3*)
   10349       lt_prog_compiler_wl='-Wl,'
   10350       lt_prog_compiler_pic='-KPIC'
   10351       lt_prog_compiler_static='-Bstatic'
   10352       ;;
   10353 
   10354     sysv4*MP*)
   10355       if test -d /usr/nec ;then
   10356 	lt_prog_compiler_pic='-Kconform_pic'
   10357 	lt_prog_compiler_static='-Bstatic'
   10358       fi
   10359       ;;
   10360 
   10361     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   10362       lt_prog_compiler_wl='-Wl,'
   10363       lt_prog_compiler_pic='-KPIC'
   10364       lt_prog_compiler_static='-Bstatic'
   10365       ;;
   10366 
   10367     unicos*)
   10368       lt_prog_compiler_wl='-Wl,'
   10369       lt_prog_compiler_can_build_shared=no
   10370       ;;
   10371 
   10372     uts4*)
   10373       lt_prog_compiler_pic='-pic'
   10374       lt_prog_compiler_static='-Bstatic'
   10375       ;;
   10376 
   10377     *)
   10378       lt_prog_compiler_can_build_shared=no
   10379       ;;
   10380     esac
   10381   fi
   10382 
   10383 case $host_os in
   10384   # For platforms which do not support PIC, -DPIC is meaningless:
   10385   *djgpp*)
   10386     lt_prog_compiler_pic=
   10387     ;;
   10388   *)
   10389     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   10390     ;;
   10391 esac
   10392 
   10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   10394 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   10395 if ${lt_cv_prog_compiler_pic+:} false; then :
   10396   $as_echo_n "(cached) " >&6
   10397 else
   10398   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   10399 fi
   10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   10401 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   10402 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   10403 
   10404 #
   10405 # Check to make sure the PIC flag actually works.
   10406 #
   10407 if test -n "$lt_prog_compiler_pic"; then
   10408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   10409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   10410 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   10411   $as_echo_n "(cached) " >&6
   10412 else
   10413   lt_cv_prog_compiler_pic_works=no
   10414    ac_outfile=conftest.$ac_objext
   10415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10416    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   10417    # Insert the option either (1) after the last *FLAGS variable, or
   10418    # (2) before a word containing "conftest.", or (3) at the end.
   10419    # Note that $ac_compile itself does not contain backslashes and begins
   10420    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10421    # The option is referenced via a variable to avoid confusing sed.
   10422    lt_compile=`echo "$ac_compile" | $SED \
   10423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10425    -e 's:$: $lt_compiler_flag:'`
   10426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10427    (eval "$lt_compile" 2>conftest.err)
   10428    ac_status=$?
   10429    cat conftest.err >&5
   10430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10431    if (exit $ac_status) && test -s "$ac_outfile"; then
   10432      # The compiler can only warn and ignore the option if not recognized
   10433      # So say no if there are warnings other than the usual output.
   10434      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   10435      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10436      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   10437        lt_cv_prog_compiler_pic_works=yes
   10438      fi
   10439    fi
   10440    $RM conftest*
   10441 
   10442 fi
   10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   10444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   10445 
   10446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   10447     case $lt_prog_compiler_pic in
   10448      "" | " "*) ;;
   10449      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   10450      esac
   10451 else
   10452     lt_prog_compiler_pic=
   10453      lt_prog_compiler_can_build_shared=no
   10454 fi
   10455 
   10456 fi
   10457 
   10458 
   10459 
   10460 
   10461 
   10462 
   10463 
   10464 
   10465 
   10466 
   10467 
   10468 #
   10469 # Check to make sure the static flag actually works.
   10470 #
   10471 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   10473 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   10474 if ${lt_cv_prog_compiler_static_works+:} false; then :
   10475   $as_echo_n "(cached) " >&6
   10476 else
   10477   lt_cv_prog_compiler_static_works=no
   10478    save_LDFLAGS="$LDFLAGS"
   10479    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   10480    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   10481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   10482      # The linker can only warn and ignore the option if not recognized
   10483      # So say no if there are warnings
   10484      if test -s conftest.err; then
   10485        # Append any errors to the config.log.
   10486        cat conftest.err 1>&5
   10487        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   10488        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10489        if diff conftest.exp conftest.er2 >/dev/null; then
   10490          lt_cv_prog_compiler_static_works=yes
   10491        fi
   10492      else
   10493        lt_cv_prog_compiler_static_works=yes
   10494      fi
   10495    fi
   10496    $RM -r conftest*
   10497    LDFLAGS="$save_LDFLAGS"
   10498 
   10499 fi
   10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   10501 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   10502 
   10503 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   10504     :
   10505 else
   10506     lt_prog_compiler_static=
   10507 fi
   10508 
   10509 
   10510 
   10511 
   10512 
   10513 
   10514 
   10515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   10516 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   10517 if ${lt_cv_prog_compiler_c_o+:} false; then :
   10518   $as_echo_n "(cached) " >&6
   10519 else
   10520   lt_cv_prog_compiler_c_o=no
   10521    $RM -r conftest 2>/dev/null
   10522    mkdir conftest
   10523    cd conftest
   10524    mkdir out
   10525    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10526 
   10527    lt_compiler_flag="-o out/conftest2.$ac_objext"
   10528    # Insert the option either (1) after the last *FLAGS variable, or
   10529    # (2) before a word containing "conftest.", or (3) at the end.
   10530    # Note that $ac_compile itself does not contain backslashes and begins
   10531    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10532    lt_compile=`echo "$ac_compile" | $SED \
   10533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10535    -e 's:$: $lt_compiler_flag:'`
   10536    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10537    (eval "$lt_compile" 2>out/conftest.err)
   10538    ac_status=$?
   10539    cat out/conftest.err >&5
   10540    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   10542    then
   10543      # The compiler can only warn and ignore the option if not recognized
   10544      # So say no if there are warnings
   10545      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   10546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   10547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   10548        lt_cv_prog_compiler_c_o=yes
   10549      fi
   10550    fi
   10551    chmod u+w . 2>&5
   10552    $RM conftest*
   10553    # SGI C++ compiler will create directory out/ii_files/ for
   10554    # template instantiation
   10555    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   10556    $RM out/* && rmdir out
   10557    cd ..
   10558    $RM -r conftest
   10559    $RM conftest*
   10560 
   10561 fi
   10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   10563 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   10564 
   10565 
   10566 
   10567 
   10568 
   10569 
   10570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   10571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   10572 if ${lt_cv_prog_compiler_c_o+:} false; then :
   10573   $as_echo_n "(cached) " >&6
   10574 else
   10575   lt_cv_prog_compiler_c_o=no
   10576    $RM -r conftest 2>/dev/null
   10577    mkdir conftest
   10578    cd conftest
   10579    mkdir out
   10580    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10581 
   10582    lt_compiler_flag="-o out/conftest2.$ac_objext"
   10583    # Insert the option either (1) after the last *FLAGS variable, or
   10584    # (2) before a word containing "conftest.", or (3) at the end.
   10585    # Note that $ac_compile itself does not contain backslashes and begins
   10586    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10587    lt_compile=`echo "$ac_compile" | $SED \
   10588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10590    -e 's:$: $lt_compiler_flag:'`
   10591    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10592    (eval "$lt_compile" 2>out/conftest.err)
   10593    ac_status=$?
   10594    cat out/conftest.err >&5
   10595    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10596    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   10597    then
   10598      # The compiler can only warn and ignore the option if not recognized
   10599      # So say no if there are warnings
   10600      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   10601      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   10602      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   10603        lt_cv_prog_compiler_c_o=yes
   10604      fi
   10605    fi
   10606    chmod u+w . 2>&5
   10607    $RM conftest*
   10608    # SGI C++ compiler will create directory out/ii_files/ for
   10609    # template instantiation
   10610    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   10611    $RM out/* && rmdir out
   10612    cd ..
   10613    $RM -r conftest
   10614    $RM conftest*
   10615 
   10616 fi
   10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   10618 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   10619 
   10620 
   10621 
   10622 
   10623 hard_links="nottested"
   10624 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   10625   # do not overwrite the value of need_locks provided by the user
   10626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   10627 $as_echo_n "checking if we can lock with hard links... " >&6; }
   10628   hard_links=yes
   10629   $RM conftest*
   10630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   10631   touch conftest.a
   10632   ln conftest.a conftest.b 2>&5 || hard_links=no
   10633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   10635 $as_echo "$hard_links" >&6; }
   10636   if test "$hard_links" = no; then
   10637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   10638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   10639     need_locks=warn
   10640   fi
   10641 else
   10642   need_locks=no
   10643 fi
   10644 
   10645 
   10646 
   10647 
   10648 
   10649 
   10650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   10651 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   10652 
   10653   runpath_var=
   10654   allow_undefined_flag=
   10655   always_export_symbols=no
   10656   archive_cmds=
   10657   archive_expsym_cmds=
   10658   compiler_needs_object=no
   10659   enable_shared_with_static_runtimes=no
   10660   export_dynamic_flag_spec=
   10661   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   10662   hardcode_automatic=no
   10663   hardcode_direct=no
   10664   hardcode_direct_absolute=no
   10665   hardcode_libdir_flag_spec=
   10666   hardcode_libdir_flag_spec_ld=
   10667   hardcode_libdir_separator=
   10668   hardcode_minus_L=no
   10669   hardcode_shlibpath_var=unsupported
   10670   inherit_rpath=no
   10671   link_all_deplibs=unknown
   10672   module_cmds=
   10673   module_expsym_cmds=
   10674   old_archive_from_new_cmds=
   10675   old_archive_from_expsyms_cmds=
   10676   thread_safe_flag_spec=
   10677   whole_archive_flag_spec=
   10678   # include_expsyms should be a list of space-separated symbols to be *always*
   10679   # included in the symbol list
   10680   include_expsyms=
   10681   # exclude_expsyms can be an extended regexp of symbols to exclude
   10682   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   10683   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   10684   # as well as any symbol that contains `d'.
   10685   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   10686   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   10687   # platforms (ab)use it in PIC code, but their linkers get confused if
   10688   # the symbol is explicitly referenced.  Since portable code cannot
   10689   # rely on this symbol name, it's probably fine to never include it in
   10690   # preloaded symbol tables.
   10691   # Exclude shared library initialization/finalization symbols.
   10692   extract_expsyms_cmds=
   10693 
   10694   case $host_os in
   10695   cygwin* | mingw* | pw32* | cegcc*)
   10696     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   10697     # When not using gcc, we currently assume that we are using
   10698     # Microsoft Visual C++.
   10699     if test "$GCC" != yes; then
   10700       with_gnu_ld=no
   10701     fi
   10702     ;;
   10703   interix*)
   10704     # we just hope/assume this is gcc and not c89 (= MSVC++)
   10705     with_gnu_ld=yes
   10706     ;;
   10707   openbsd*)
   10708     with_gnu_ld=no
   10709     ;;
   10710   linux* | k*bsd*-gnu | gnu*)
   10711     link_all_deplibs=no
   10712     ;;
   10713   esac
   10714 
   10715   ld_shlibs=yes
   10716 
   10717   # On some targets, GNU ld is compatible enough with the native linker
   10718   # that we're better off using the native interface for both.
   10719   lt_use_gnu_ld_interface=no
   10720   if test "$with_gnu_ld" = yes; then
   10721     case $host_os in
   10722       aix*)
   10723 	# The AIX port of GNU ld has always aspired to compatibility
   10724 	# with the native linker.  However, as the warning in the GNU ld
   10725 	# block says, versions before 2.19.5* couldn't really create working
   10726 	# shared libraries, regardless of the interface used.
   10727 	case `$LD -v 2>&1` in
   10728 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   10729 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   10730 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   10731 	  *)
   10732 	    lt_use_gnu_ld_interface=yes
   10733 	    ;;
   10734 	esac
   10735 	;;
   10736       *)
   10737 	lt_use_gnu_ld_interface=yes
   10738 	;;
   10739     esac
   10740   fi
   10741 
   10742   if test "$lt_use_gnu_ld_interface" = yes; then
   10743     # If archive_cmds runs LD, not CC, wlarc should be empty
   10744     wlarc='${wl}'
   10745 
   10746     # Set some defaults for GNU ld with shared library support. These
   10747     # are reset later if shared libraries are not supported. Putting them
   10748     # here allows them to be overridden if necessary.
   10749     runpath_var=LD_RUN_PATH
   10750     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10751     export_dynamic_flag_spec='${wl}--export-dynamic'
   10752     # ancient GNU ld didn't support --whole-archive et. al.
   10753     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   10754       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   10755     else
   10756       whole_archive_flag_spec=
   10757     fi
   10758     supports_anon_versioning=no
   10759     case `$LD -v 2>&1` in
   10760       *GNU\ gold*) supports_anon_versioning=yes ;;
   10761       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   10762       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   10763       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   10764       *\ 2.11.*) ;; # other 2.11 versions
   10765       *) supports_anon_versioning=yes ;;
   10766     esac
   10767 
   10768     # See if GNU ld supports shared libraries.
   10769     case $host_os in
   10770     aix[3-9]*)
   10771       # On AIX/PPC, the GNU linker is very broken
   10772       if test "$host_cpu" != ia64; then
   10773 	ld_shlibs=no
   10774 	cat <<_LT_EOF 1>&2
   10775 
   10776 *** Warning: the GNU linker, at least up to release 2.19, is reported
   10777 *** to be unable to reliably create shared libraries on AIX.
   10778 *** Therefore, libtool is disabling shared libraries support.  If you
   10779 *** really care for shared libraries, you may want to install binutils
   10780 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   10781 *** You will then need to restart the configuration process.
   10782 
   10783 _LT_EOF
   10784       fi
   10785       ;;
   10786 
   10787     amigaos*)
   10788       case $host_cpu in
   10789       powerpc)
   10790             # see comment about AmigaOS4 .so support
   10791             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10792             archive_expsym_cmds=''
   10793         ;;
   10794       m68k)
   10795             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)'
   10796             hardcode_libdir_flag_spec='-L$libdir'
   10797             hardcode_minus_L=yes
   10798         ;;
   10799       esac
   10800       ;;
   10801 
   10802     beos*)
   10803       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   10804 	allow_undefined_flag=unsupported
   10805 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   10806 	# support --undefined.  This deserves some investigation.  FIXME
   10807 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10808       else
   10809 	ld_shlibs=no
   10810       fi
   10811       ;;
   10812 
   10813     cygwin* | mingw* | pw32* | cegcc*)
   10814       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   10815       # as there is no search path for DLLs.
   10816       hardcode_libdir_flag_spec='-L$libdir'
   10817       export_dynamic_flag_spec='${wl}--export-all-symbols'
   10818       allow_undefined_flag=unsupported
   10819       always_export_symbols=no
   10820       enable_shared_with_static_runtimes=yes
   10821       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
   10822       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   10823 
   10824       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   10825         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   10826 	# If the export-symbols file already is a .def file (1st line
   10827 	# is EXPORTS), use it as is; otherwise, prepend...
   10828 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   10829 	  cp $export_symbols $output_objdir/$soname.def;
   10830 	else
   10831 	  echo EXPORTS > $output_objdir/$soname.def;
   10832 	  cat $export_symbols >> $output_objdir/$soname.def;
   10833 	fi~
   10834 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   10835       else
   10836 	ld_shlibs=no
   10837       fi
   10838       ;;
   10839 
   10840     haiku*)
   10841       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10842       link_all_deplibs=yes
   10843       ;;
   10844 
   10845     interix[3-9]*)
   10846       hardcode_direct=no
   10847       hardcode_shlibpath_var=no
   10848       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   10849       export_dynamic_flag_spec='${wl}-E'
   10850       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   10851       # Instead, shared libraries are loaded at an image base (0x10000000 by
   10852       # default) and relocated if they conflict, which is a slow very memory
   10853       # consuming and fragmenting process.  To avoid this, we pick a random,
   10854       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   10855       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   10856       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   10857       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   10858       ;;
   10859 
   10860     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   10861       tmp_diet=no
   10862       if test "$host_os" = linux-dietlibc; then
   10863 	case $cc_basename in
   10864 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   10865 	esac
   10866       fi
   10867       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   10868 	 && test "$tmp_diet" = no
   10869       then
   10870 	tmp_addflag=' $pic_flag'
   10871 	tmp_sharedflag='-shared'
   10872 	case $cc_basename,$host_cpu in
   10873         pgcc*)				# Portland Group C compiler
   10874 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   10875 	  tmp_addflag=' $pic_flag'
   10876 	  ;;
   10877 	pgf77* | pgf90* | pgf95* | pgfortran*)
   10878 					# Portland Group f77 and f90 compilers
   10879 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   10880 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   10881 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   10882 	  tmp_addflag=' -i_dynamic' ;;
   10883 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   10884 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   10885 	ifc* | ifort*)			# Intel Fortran compiler
   10886 	  tmp_addflag=' -nofor_main' ;;
   10887 	lf95*)				# Lahey Fortran 8.1
   10888 	  whole_archive_flag_spec=
   10889 	  tmp_sharedflag='--shared' ;;
   10890 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   10891 	  tmp_sharedflag='-qmkshrobj'
   10892 	  tmp_addflag= ;;
   10893 	nvcc*)	# Cuda Compiler Driver 2.2
   10894 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   10895 	  compiler_needs_object=yes
   10896 	  ;;
   10897 	esac
   10898 	case `$CC -V 2>&1 | sed 5q` in
   10899 	*Sun\ C*)			# Sun C 5.9
   10900 	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   10901 	  compiler_needs_object=yes
   10902 	  tmp_sharedflag='-G' ;;
   10903 	*Sun\ F*)			# Sun Fortran 8.3
   10904 	  tmp_sharedflag='-G' ;;
   10905 	esac
   10906 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10907 
   10908         if test "x$supports_anon_versioning" = xyes; then
   10909           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   10910 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   10911 	    echo "local: *; };" >> $output_objdir/$libname.ver~
   10912 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   10913         fi
   10914 
   10915 	case $cc_basename in
   10916 	xlf* | bgf* | bgxlf* | mpixlf*)
   10917 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   10918 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   10919 	  hardcode_libdir_flag_spec=
   10920 	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
   10921 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   10922 	  if test "x$supports_anon_versioning" = xyes; then
   10923 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   10924 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   10925 	      echo "local: *; };" >> $output_objdir/$libname.ver~
   10926 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   10927 	  fi
   10928 	  ;;
   10929 	esac
   10930       else
   10931         ld_shlibs=no
   10932       fi
   10933       ;;
   10934 
   10935     netbsd* | netbsdelf*-gnu)
   10936       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10937 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   10938 	wlarc=
   10939       else
   10940 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10941 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10942       fi
   10943       ;;
   10944 
   10945     solaris*)
   10946       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   10947 	ld_shlibs=no
   10948 	cat <<_LT_EOF 1>&2
   10949 
   10950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   10951 *** create shared libraries on Solaris systems.  Therefore, libtool
   10952 *** is disabling shared libraries support.  We urge you to upgrade GNU
   10953 *** binutils to release 2.9.1 or newer.  Another option is to modify
   10954 *** your PATH or compiler configuration so that the native linker is
   10955 *** used, and then restart.
   10956 
   10957 _LT_EOF
   10958       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   10959 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10960 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10961       else
   10962 	ld_shlibs=no
   10963       fi
   10964       ;;
   10965 
   10966     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   10967       case `$LD -v 2>&1` in
   10968         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   10969 	ld_shlibs=no
   10970 	cat <<_LT_EOF 1>&2
   10971 
   10972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   10973 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   10974 *** is disabling shared libraries support.  We urge you to upgrade GNU
   10975 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   10976 *** your PATH or compiler configuration so that the native linker is
   10977 *** used, and then restart.
   10978 
   10979 _LT_EOF
   10980 	;;
   10981 	*)
   10982 	  # For security reasons, it is highly recommended that you always
   10983 	  # use absolute paths for naming shared libraries, and exclude the
   10984 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   10985 	  # requires that you compile everything twice, which is a pain.
   10986 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   10987 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10988 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10989 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10990 	  else
   10991 	    ld_shlibs=no
   10992 	  fi
   10993 	;;
   10994       esac
   10995       ;;
   10996 
   10997     sunos4*)
   10998       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   10999       wlarc=
   11000       hardcode_direct=yes
   11001       hardcode_shlibpath_var=no
   11002       ;;
   11003 
   11004     *)
   11005       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11006 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   11007 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   11008       else
   11009 	ld_shlibs=no
   11010       fi
   11011       ;;
   11012     esac
   11013 
   11014     if test "$ld_shlibs" = no; then
   11015       runpath_var=
   11016       hardcode_libdir_flag_spec=
   11017       export_dynamic_flag_spec=
   11018       whole_archive_flag_spec=
   11019     fi
   11020   else
   11021     # PORTME fill in a description of your system's linker (not GNU ld)
   11022     case $host_os in
   11023     aix3*)
   11024       allow_undefined_flag=unsupported
   11025       always_export_symbols=yes
   11026       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'
   11027       # Note: this linker hardcodes the directories in LIBPATH if there
   11028       # are no directories specified by -L.
   11029       hardcode_minus_L=yes
   11030       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   11031 	# Neither direct hardcoding nor static linking is supported with a
   11032 	# broken collect2.
   11033 	hardcode_direct=unsupported
   11034       fi
   11035       ;;
   11036 
   11037     aix[4-9]*)
   11038       if test "$host_cpu" = ia64; then
   11039 	# On IA64, the linker does run time linking by default, so we don't
   11040 	# have to do anything special.
   11041 	aix_use_runtimelinking=no
   11042 	exp_sym_flag='-Bexport'
   11043 	no_entry_flag=""
   11044       else
   11045 	# If we're using GNU nm, then we don't want the "-C" option.
   11046 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   11047 	# Also, AIX nm treats weak defined symbols like other global
   11048 	# defined symbols, whereas GNU nm marks them as "W".
   11049 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   11050 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   11051 	else
   11052 	  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'
   11053 	fi
   11054 	aix_use_runtimelinking=no
   11055 
   11056 	# Test if we are trying to use run time linking or normal
   11057 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   11058 	# need to do runtime linking.
   11059 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   11060 	  for ld_flag in $LDFLAGS; do
   11061 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   11062 	    aix_use_runtimelinking=yes
   11063 	    break
   11064 	  fi
   11065 	  done
   11066 	  ;;
   11067 	esac
   11068 
   11069 	exp_sym_flag='-bexport'
   11070 	no_entry_flag='-bnoentry'
   11071       fi
   11072 
   11073       # When large executables or shared objects are built, AIX ld can
   11074       # have problems creating the table of contents.  If linking a library
   11075       # or program results in "error TOC overflow" add -mminimal-toc to
   11076       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   11077       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   11078 
   11079       archive_cmds=''
   11080       hardcode_direct=yes
   11081       hardcode_direct_absolute=yes
   11082       hardcode_libdir_separator=':'
   11083       link_all_deplibs=yes
   11084       file_list_spec='${wl}-f,'
   11085 
   11086       if test "$GCC" = yes; then
   11087 	case $host_os in aix4.[012]|aix4.[012].*)
   11088 	# We only want to do this on AIX 4.2 and lower, the check
   11089 	# below for broken collect2 doesn't work under 4.3+
   11090 	  collect2name=`${CC} -print-prog-name=collect2`
   11091 	  if test -f "$collect2name" &&
   11092 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   11093 	  then
   11094 	  # We have reworked collect2
   11095 	  :
   11096 	  else
   11097 	  # We have old collect2
   11098 	  hardcode_direct=unsupported
   11099 	  # It fails to find uninstalled libraries when the uninstalled
   11100 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   11101 	  # to unsupported forces relinking
   11102 	  hardcode_minus_L=yes
   11103 	  hardcode_libdir_flag_spec='-L$libdir'
   11104 	  hardcode_libdir_separator=
   11105 	  fi
   11106 	  ;;
   11107 	esac
   11108 	shared_flag='-shared'
   11109 	if test "$aix_use_runtimelinking" = yes; then
   11110 	  shared_flag="$shared_flag "'${wl}-G'
   11111 	fi
   11112 	link_all_deplibs=no
   11113       else
   11114 	# not using gcc
   11115 	if test "$host_cpu" = ia64; then
   11116 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   11117 	# chokes on -Wl,-G. The following line is correct:
   11118 	  shared_flag='-G'
   11119 	else
   11120 	  if test "$aix_use_runtimelinking" = yes; then
   11121 	    shared_flag='${wl}-G'
   11122 	  else
   11123 	    shared_flag='${wl}-bM:SRE'
   11124 	  fi
   11125 	fi
   11126       fi
   11127 
   11128       export_dynamic_flag_spec='${wl}-bexpall'
   11129       # It seems that -bexpall does not export symbols beginning with
   11130       # underscore (_), so it is better to generate a list of symbols to export.
   11131       always_export_symbols=yes
   11132       if test "$aix_use_runtimelinking" = yes; then
   11133 	# Warning - without using the other runtime loading flags (-brtl),
   11134 	# -berok will link without error, but may produce a broken library.
   11135 	allow_undefined_flag='-berok'
   11136         # Determine the default libpath from the value encoded in an
   11137         # empty executable.
   11138         if test "${lt_cv_aix_libpath+set}" = set; then
   11139   aix_libpath=$lt_cv_aix_libpath
   11140 else
   11141   if ${lt_cv_aix_libpath_+:} false; then :
   11142   $as_echo_n "(cached) " >&6
   11143 else
   11144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11145 /* end confdefs.h.  */
   11146 
   11147 int main (void)
   11148 {
   11149 
   11150  ;
   11151  return 0;
   11152 }
   11153 _ACEOF
   11154 if ac_fn_c_try_link "$LINENO"; then :
   11155 
   11156   lt_aix_libpath_sed='
   11157       /Import File Strings/,/^$/ {
   11158 	  /^0/ {
   11159 	      s/^0  *\([^ ]*\) *$/\1/
   11160 	      p
   11161 	  }
   11162       }'
   11163   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11164   # Check for a 64-bit object if we didn't find anything.
   11165   if test -z "$lt_cv_aix_libpath_"; then
   11166     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11167   fi
   11168 fi
   11169 rm -f core conftest.err conftest.$ac_objext \
   11170     conftest$ac_exeext conftest.$ac_ext
   11171   if test -z "$lt_cv_aix_libpath_"; then
   11172     lt_cv_aix_libpath_="/usr/lib:/lib"
   11173   fi
   11174 
   11175 fi
   11176 
   11177   aix_libpath=$lt_cv_aix_libpath_
   11178 fi
   11179 
   11180         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   11181         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   11182       else
   11183 	if test "$host_cpu" = ia64; then
   11184 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   11185 	  allow_undefined_flag="-z nodefs"
   11186 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
   11187 	else
   11188 	 # Determine the default libpath from the value encoded in an
   11189 	 # empty executable.
   11190 	 if test "${lt_cv_aix_libpath+set}" = set; then
   11191   aix_libpath=$lt_cv_aix_libpath
   11192 else
   11193   if ${lt_cv_aix_libpath_+:} false; then :
   11194   $as_echo_n "(cached) " >&6
   11195 else
   11196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11197 /* end confdefs.h.  */
   11198 
   11199 int main (void)
   11200 {
   11201 
   11202  ;
   11203  return 0;
   11204 }
   11205 _ACEOF
   11206 if ac_fn_c_try_link "$LINENO"; then :
   11207 
   11208   lt_aix_libpath_sed='
   11209       /Import File Strings/,/^$/ {
   11210 	  /^0/ {
   11211 	      s/^0  *\([^ ]*\) *$/\1/
   11212 	      p
   11213 	  }
   11214       }'
   11215   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11216   # Check for a 64-bit object if we didn't find anything.
   11217   if test -z "$lt_cv_aix_libpath_"; then
   11218     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11219   fi
   11220 fi
   11221 rm -f core conftest.err conftest.$ac_objext \
   11222     conftest$ac_exeext conftest.$ac_ext
   11223   if test -z "$lt_cv_aix_libpath_"; then
   11224     lt_cv_aix_libpath_="/usr/lib:/lib"
   11225   fi
   11226 
   11227 fi
   11228 
   11229   aix_libpath=$lt_cv_aix_libpath_
   11230 fi
   11231 
   11232 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   11233 	  # Warning - without using the other run time loading flags,
   11234 	  # -berok will link without error, but may produce a broken library.
   11235 	  no_undefined_flag=' ${wl}-bernotok'
   11236 	  allow_undefined_flag=' ${wl}-berok'
   11237 	  if test "$with_gnu_ld" = yes; then
   11238 	    # We only use this code for GNU lds that support --whole-archive.
   11239 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   11240 	  else
   11241 	    # Exported symbols can be pulled into shared objects from archives
   11242 	    whole_archive_flag_spec='$convenience'
   11243 	  fi
   11244 	  archive_cmds_need_lc=yes
   11245 	  # This is similar to how AIX traditionally builds its shared libraries.
   11246 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   11247 	fi
   11248       fi
   11249       ;;
   11250 
   11251     amigaos*)
   11252       case $host_cpu in
   11253       powerpc)
   11254             # see comment about AmigaOS4 .so support
   11255             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   11256             archive_expsym_cmds=''
   11257         ;;
   11258       m68k)
   11259             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)'
   11260             hardcode_libdir_flag_spec='-L$libdir'
   11261             hardcode_minus_L=yes
   11262         ;;
   11263       esac
   11264       ;;
   11265 
   11266     bsdi[45]*)
   11267       export_dynamic_flag_spec=-rdynamic
   11268       ;;
   11269 
   11270     cygwin* | mingw* | pw32* | cegcc*)
   11271       # When not using gcc, we currently assume that we are using
   11272       # Microsoft Visual C++.
   11273       # hardcode_libdir_flag_spec is actually meaningless, as there is
   11274       # no search path for DLLs.
   11275       case $cc_basename in
   11276       cl*)
   11277 	# Native MSVC
   11278 	hardcode_libdir_flag_spec=' '
   11279 	allow_undefined_flag=unsupported
   11280 	always_export_symbols=yes
   11281 	file_list_spec='@'
   11282 	# Tell ltmain to make .lib files, not .a files.
   11283 	libext=lib
   11284 	# Tell ltmain to make .dll files, not .so files.
   11285 	shrext_cmds=".dll"
   11286 	# FIXME: Setting linknames here is a bad hack.
   11287 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
   11288 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   11289 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
   11290 	  else
   11291 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
   11292 	  fi~
   11293 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   11294 	  linknames='
   11295 	# The linker will not automatically build a static lib if we build a DLL.
   11296 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   11297 	enable_shared_with_static_runtimes=yes
   11298 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   11299 	# Don't use ranlib
   11300 	old_postinstall_cmds='chmod 644 $oldlib'
   11301 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   11302 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
   11303 	  case $lt_outputfile in
   11304 	    *.exe|*.EXE) ;;
   11305 	    *)
   11306 	      lt_outputfile="$lt_outputfile.exe"
   11307 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
   11308 	      ;;
   11309 	  esac~
   11310 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
   11311 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   11312 	    $RM "$lt_outputfile.manifest";
   11313 	  fi'
   11314 	;;
   11315       *)
   11316 	# Assume MSVC wrapper
   11317 	hardcode_libdir_flag_spec=' '
   11318 	allow_undefined_flag=unsupported
   11319 	# Tell ltmain to make .lib files, not .a files.
   11320 	libext=lib
   11321 	# Tell ltmain to make .dll files, not .so files.
   11322 	shrext_cmds=".dll"
   11323 	# FIXME: Setting linknames here is a bad hack.
   11324 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   11325 	# The linker will automatically build a .lib file if we build a DLL.
   11326 	old_archive_from_new_cmds='true'
   11327 	# FIXME: Should let the user specify the lib program.
   11328 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   11329 	enable_shared_with_static_runtimes=yes
   11330 	;;
   11331       esac
   11332       ;;
   11333 
   11334     darwin* | rhapsody*)
   11335 
   11336 
   11337   archive_cmds_need_lc=no
   11338   hardcode_direct=no
   11339   hardcode_automatic=yes
   11340   hardcode_shlibpath_var=unsupported
   11341   if test "$lt_cv_ld_force_load" = "yes"; then
   11342     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   11343   else
   11344     whole_archive_flag_spec=''
   11345   fi
   11346   link_all_deplibs=yes
   11347   allow_undefined_flag="$_lt_dar_allow_undefined"
   11348   case $cc_basename in
   11349      ifort*) _lt_dar_can_shared=yes ;;
   11350      *) _lt_dar_can_shared=$GCC ;;
   11351   esac
   11352   if test "$_lt_dar_can_shared" = "yes"; then
   11353     output_verbose_link_cmd=func_echo_all
   11354     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   11355     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   11356     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
   11357     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
   11358 
   11359   else
   11360   ld_shlibs=no
   11361   fi
   11362 
   11363       ;;
   11364 
   11365     dgux*)
   11366       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11367       hardcode_libdir_flag_spec='-L$libdir'
   11368       hardcode_shlibpath_var=no
   11369       ;;
   11370 
   11371     freebsd1*)
   11372       ld_shlibs=no
   11373       ;;
   11374 
   11375     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   11376     # support.  Future versions do this automatically, but an explicit c++rt0.o
   11377     # does not break anything, and helps significantly (at the cost of a little
   11378     # extra space).
   11379     freebsd2.2*)
   11380       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   11381       hardcode_libdir_flag_spec='-R$libdir'
   11382       hardcode_direct=yes
   11383       hardcode_shlibpath_var=no
   11384       ;;
   11385 
   11386     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   11387     freebsd2*)
   11388       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   11389       hardcode_direct=yes
   11390       hardcode_minus_L=yes
   11391       hardcode_shlibpath_var=no
   11392       ;;
   11393 
   11394     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   11395     freebsd* | dragonfly*)
   11396       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   11397       hardcode_libdir_flag_spec='-R$libdir'
   11398       hardcode_direct=yes
   11399       hardcode_shlibpath_var=no
   11400       ;;
   11401 
   11402     hpux9*)
   11403       if test "$GCC" = yes; then
   11404 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   11405       else
   11406 	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'
   11407       fi
   11408       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   11409       hardcode_libdir_separator=:
   11410       hardcode_direct=yes
   11411 
   11412       # hardcode_minus_L: Not really in the search PATH,
   11413       # but as the default location of the library.
   11414       hardcode_minus_L=yes
   11415       export_dynamic_flag_spec='${wl}-E'
   11416       ;;
   11417 
   11418     hpux10*)
   11419       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   11420 	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   11421       else
   11422 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   11423       fi
   11424       if test "$with_gnu_ld" = no; then
   11425 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   11426 	hardcode_libdir_flag_spec_ld='+b $libdir'
   11427 	hardcode_libdir_separator=:
   11428 	hardcode_direct=yes
   11429 	hardcode_direct_absolute=yes
   11430 	export_dynamic_flag_spec='${wl}-E'
   11431 	# hardcode_minus_L: Not really in the search PATH,
   11432 	# but as the default location of the library.
   11433 	hardcode_minus_L=yes
   11434       fi
   11435       ;;
   11436 
   11437     hpux11*)
   11438       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   11439 	case $host_cpu in
   11440 	hppa*64*)
   11441 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   11442 	  ;;
   11443 	ia64*)
   11444 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   11445 	  ;;
   11446 	*)
   11447 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   11448 	  ;;
   11449 	esac
   11450       else
   11451 	case $host_cpu in
   11452 	hppa*64*)
   11453 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   11454 	  ;;
   11455 	ia64*)
   11456 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   11457 	  ;;
   11458 	*)
   11459 
   11460 	  # Older versions of the 11.00 compiler do not understand -b yet
   11461 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   11462 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   11463 $as_echo_n "checking if $CC understands -b... " >&6; }
   11464 if ${lt_cv_prog_compiler__b+:} false; then :
   11465   $as_echo_n "(cached) " >&6
   11466 else
   11467   lt_cv_prog_compiler__b=no
   11468    save_LDFLAGS="$LDFLAGS"
   11469    LDFLAGS="$LDFLAGS -b"
   11470    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   11471    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   11472      # The linker can only warn and ignore the option if not recognized
   11473      # So say no if there are warnings
   11474      if test -s conftest.err; then
   11475        # Append any errors to the config.log.
   11476        cat conftest.err 1>&5
   11477        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   11478        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11479        if diff conftest.exp conftest.er2 >/dev/null; then
   11480          lt_cv_prog_compiler__b=yes
   11481        fi
   11482      else
   11483        lt_cv_prog_compiler__b=yes
   11484      fi
   11485    fi
   11486    $RM -r conftest*
   11487    LDFLAGS="$save_LDFLAGS"
   11488 
   11489 fi
   11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   11491 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   11492 
   11493 if test x"$lt_cv_prog_compiler__b" = xyes; then
   11494     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   11495 else
   11496     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   11497 fi
   11498 
   11499 	  ;;
   11500 	esac
   11501       fi
   11502       if test "$with_gnu_ld" = no; then
   11503 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   11504 	hardcode_libdir_separator=:
   11505 
   11506 	case $host_cpu in
   11507 	hppa*64*|ia64*)
   11508 	  hardcode_direct=no
   11509 	  hardcode_shlibpath_var=no
   11510 	  ;;
   11511 	*)
   11512 	  hardcode_direct=yes
   11513 	  hardcode_direct_absolute=yes
   11514 	  export_dynamic_flag_spec='${wl}-E'
   11515 
   11516 	  # hardcode_minus_L: Not really in the search PATH,
   11517 	  # but as the default location of the library.
   11518 	  hardcode_minus_L=yes
   11519 	  ;;
   11520 	esac
   11521       fi
   11522       ;;
   11523 
   11524     irix5* | irix6* | nonstopux*)
   11525       if test "$GCC" = yes; then
   11526 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   11527 	# Try to use the -exported_symbol ld option, if it does not
   11528 	# work, assume that -exports_file does not work either and
   11529 	# implicitly export all symbols.
   11530 	# This should be the same for all languages, so no per-tag cache variable.
   11531 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   11532 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   11533 if ${lt_cv_irix_exported_symbol+:} false; then :
   11534   $as_echo_n "(cached) " >&6
   11535 else
   11536   save_LDFLAGS="$LDFLAGS"
   11537 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   11538 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11539 /* end confdefs.h.  */
   11540 int foo (void) { return 0; }
   11541 _ACEOF
   11542 if ac_fn_c_try_link "$LINENO"; then :
   11543   lt_cv_irix_exported_symbol=yes
   11544 else
   11545   lt_cv_irix_exported_symbol=no
   11546 fi
   11547 rm -f core conftest.err conftest.$ac_objext \
   11548     conftest$ac_exeext conftest.$ac_ext
   11549            LDFLAGS="$save_LDFLAGS"
   11550 fi
   11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   11552 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   11553 	if test "$lt_cv_irix_exported_symbol" = yes; then
   11554           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
   11555 	fi
   11556       else
   11557 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   11558 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
   11559       fi
   11560       archive_cmds_need_lc='no'
   11561       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   11562       hardcode_libdir_separator=:
   11563       inherit_rpath=yes
   11564       link_all_deplibs=yes
   11565       ;;
   11566 
   11567     netbsd* | netbsdelf*-gnu)
   11568       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11569 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   11570       else
   11571 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   11572       fi
   11573       hardcode_libdir_flag_spec='-R$libdir'
   11574       hardcode_direct=yes
   11575       hardcode_shlibpath_var=no
   11576       ;;
   11577 
   11578     newsos6)
   11579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11580       hardcode_direct=yes
   11581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   11582       hardcode_libdir_separator=:
   11583       hardcode_shlibpath_var=no
   11584       ;;
   11585 
   11586     *nto* | *qnx*)
   11587       ;;
   11588 
   11589     openbsd*)
   11590       if test -f /usr/libexec/ld.so; then
   11591 	hardcode_direct=yes
   11592 	hardcode_shlibpath_var=no
   11593 	hardcode_direct_absolute=yes
   11594 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   11595 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   11596 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   11597 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   11598 	  export_dynamic_flag_spec='${wl}-E'
   11599 	else
   11600 	  case $host_os in
   11601 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   11602 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   11603 	     hardcode_libdir_flag_spec='-R$libdir'
   11604 	     ;;
   11605 	   *)
   11606 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   11607 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   11608 	     ;;
   11609 	  esac
   11610 	fi
   11611       else
   11612 	ld_shlibs=no
   11613       fi
   11614       ;;
   11615 
   11616     os2*)
   11617       hardcode_libdir_flag_spec='-L$libdir'
   11618       hardcode_minus_L=yes
   11619       allow_undefined_flag=unsupported
   11620       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'
   11621       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   11622       ;;
   11623 
   11624     osf3*)
   11625       if test "$GCC" = yes; then
   11626 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   11627 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   11628       else
   11629 	allow_undefined_flag=' -expect_unresolved \*'
   11630 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   11631       fi
   11632       archive_cmds_need_lc='no'
   11633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   11634       hardcode_libdir_separator=:
   11635       ;;
   11636 
   11637     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   11638       if test "$GCC" = yes; then
   11639 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   11640 	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   11641 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   11642       else
   11643 	allow_undefined_flag=' -expect_unresolved \*'
   11644 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   11645 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
   11646 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
   11647 
   11648 	# Both c and cxx compiler support -rpath directly
   11649 	hardcode_libdir_flag_spec='-rpath $libdir'
   11650       fi
   11651       archive_cmds_need_lc='no'
   11652       hardcode_libdir_separator=:
   11653       ;;
   11654 
   11655     solaris*)
   11656       no_undefined_flag=' -z defs'
   11657       if test "$GCC" = yes; then
   11658 	wlarc='${wl}'
   11659 	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   11660 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   11661 	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   11662       else
   11663 	case `$CC -V 2>&1` in
   11664 	*"Compilers 5.0"*)
   11665 	  wlarc=''
   11666 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11667 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   11668 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   11669 	  ;;
   11670 	*)
   11671 	  wlarc='${wl}'
   11672 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   11673 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   11674 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   11675 	  ;;
   11676 	esac
   11677       fi
   11678       hardcode_libdir_flag_spec='-R$libdir'
   11679       hardcode_shlibpath_var=no
   11680       case $host_os in
   11681       solaris2.[0-5] | solaris2.[0-5].*) ;;
   11682       *)
   11683 	# The compiler driver will combine and reorder linker options,
   11684 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   11685 	# but is careful enough not to reorder.
   11686 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   11687 	if test "$GCC" = yes; then
   11688 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   11689 	else
   11690 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   11691 	fi
   11692 	;;
   11693       esac
   11694       link_all_deplibs=yes
   11695       ;;
   11696 
   11697     sunos4*)
   11698       if test "x$host_vendor" = xsequent; then
   11699 	# Use $CC to link under sequent, because it throws in some extra .o
   11700 	# files that make .init and .fini sections work.
   11701 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   11702       else
   11703 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   11704       fi
   11705       hardcode_libdir_flag_spec='-L$libdir'
   11706       hardcode_direct=yes
   11707       hardcode_minus_L=yes
   11708       hardcode_shlibpath_var=no
   11709       ;;
   11710 
   11711     sysv4)
   11712       case $host_vendor in
   11713 	sni)
   11714 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11715 	  hardcode_direct=yes # is this really true???
   11716 	;;
   11717 	siemens)
   11718 	  ## LD is ld it makes a PLAMLIB
   11719 	  ## CC just makes a GrossModule.
   11720 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   11721 	  reload_cmds='$CC -r -o $output$reload_objs'
   11722 	  hardcode_direct=no
   11723         ;;
   11724 	motorola)
   11725 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11726 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   11727 	;;
   11728       esac
   11729       runpath_var='LD_RUN_PATH'
   11730       hardcode_shlibpath_var=no
   11731       ;;
   11732 
   11733     sysv4.3*)
   11734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11735       hardcode_shlibpath_var=no
   11736       export_dynamic_flag_spec='-Bexport'
   11737       ;;
   11738 
   11739     sysv4*MP*)
   11740       if test -d /usr/nec; then
   11741 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11742 	hardcode_shlibpath_var=no
   11743 	runpath_var=LD_RUN_PATH
   11744 	hardcode_runpath_var=yes
   11745 	ld_shlibs=yes
   11746       fi
   11747       ;;
   11748 
   11749     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   11750       no_undefined_flag='${wl}-z,text'
   11751       archive_cmds_need_lc=no
   11752       hardcode_shlibpath_var=no
   11753       runpath_var='LD_RUN_PATH'
   11754 
   11755       if test "$GCC" = yes; then
   11756 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11757 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11758       else
   11759 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11760 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11761       fi
   11762       ;;
   11763 
   11764     sysv5* | sco3.2v5* | sco5v6*)
   11765       # Note: We can NOT use -z defs as we might desire, because we do not
   11766       # link with -lc, and that would cause any symbols used from libc to
   11767       # always be unresolved, which means just about no library would
   11768       # ever link correctly.  If we're not using GNU ld we use -z text
   11769       # though, which does catch some bad symbols but isn't as heavy-handed
   11770       # as -z defs.
   11771       no_undefined_flag='${wl}-z,text'
   11772       allow_undefined_flag='${wl}-z,nodefs'
   11773       archive_cmds_need_lc=no
   11774       hardcode_shlibpath_var=no
   11775       hardcode_libdir_flag_spec='${wl}-R,$libdir'
   11776       hardcode_libdir_separator=':'
   11777       link_all_deplibs=yes
   11778       export_dynamic_flag_spec='${wl}-Bexport'
   11779       runpath_var='LD_RUN_PATH'
   11780 
   11781       if test "$GCC" = yes; then
   11782 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11783 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11784       else
   11785 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11786 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   11787       fi
   11788       ;;
   11789 
   11790     uts4*)
   11791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   11792       hardcode_libdir_flag_spec='-L$libdir'
   11793       hardcode_shlibpath_var=no
   11794       ;;
   11795 
   11796     *)
   11797       ld_shlibs=no
   11798       ;;
   11799     esac
   11800 
   11801     if test x$host_vendor = xsni; then
   11802       case $host in
   11803       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   11804 	export_dynamic_flag_spec='${wl}-Blargedynsym'
   11805 	;;
   11806       esac
   11807     fi
   11808   fi
   11809 
   11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   11811 $as_echo "$ld_shlibs" >&6; }
   11812 test "$ld_shlibs" = no && can_build_shared=no
   11813 
   11814 with_gnu_ld=$with_gnu_ld
   11815 
   11816 
   11817 
   11818 
   11819 
   11820 
   11821 
   11822 
   11823 
   11824 
   11825 
   11826 
   11827 
   11828 
   11829 
   11830 #
   11831 # Do we need to explicitly link libc?
   11832 #
   11833 case "x$archive_cmds_need_lc" in
   11834 x|xyes)
   11835   # Assume -lc should be added
   11836   archive_cmds_need_lc=yes
   11837 
   11838   if test "$enable_shared" = yes && test "$GCC" = yes; then
   11839     case $archive_cmds in
   11840     *'~'*)
   11841       # FIXME: we may have to deal with multi-command sequences.
   11842       ;;
   11843     '$CC '*)
   11844       # Test whether the compiler implicitly links with -lc since on some
   11845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   11846       # to ld, don't add -lc before -lgcc.
   11847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   11848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   11849 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   11850   $as_echo_n "(cached) " >&6
   11851 else
   11852   $RM conftest*
   11853 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11854 
   11855 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   11856   (eval $ac_compile) 2>&5
   11857   ac_status=$?
   11858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11859   test $ac_status = 0; } 2>conftest.err; then
   11860 	  soname=conftest
   11861 	  lib=conftest
   11862 	  libobjs=conftest.$ac_objext
   11863 	  deplibs=
   11864 	  wl=$lt_prog_compiler_wl
   11865 	  pic_flag=$lt_prog_compiler_pic
   11866 	  compiler_flags=-v
   11867 	  linker_flags=-v
   11868 	  verstring=
   11869 	  output_objdir=.
   11870 	  libname=conftest
   11871 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   11872 	  allow_undefined_flag=
   11873 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   11874   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   11875   ac_status=$?
   11876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11877   test $ac_status = 0; }
   11878 	  then
   11879 	    lt_cv_archive_cmds_need_lc=no
   11880 	  else
   11881 	    lt_cv_archive_cmds_need_lc=yes
   11882 	  fi
   11883 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   11884 	else
   11885 	  cat conftest.err 1>&5
   11886 	fi
   11887 	$RM conftest*
   11888 
   11889 fi
   11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   11891 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   11892       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   11893       ;;
   11894     esac
   11895   fi
   11896   ;;
   11897 esac
   11898 
   11899 
   11900 
   11901 
   11902 
   11903 
   11904 
   11905 
   11906 
   11907 
   11908 
   11909 
   11910 
   11911 
   11912 
   11913 
   11914 
   11915 
   11916 
   11917 
   11918 
   11919 
   11920 
   11921 
   11922 
   11923 
   11924 
   11925 
   11926 
   11927 
   11928 
   11929 
   11930 
   11931 
   11932 
   11933 
   11934 
   11935 
   11936 
   11937 
   11938 
   11939 
   11940 
   11941 
   11942 
   11943 
   11944 
   11945 
   11946 
   11947 
   11948 
   11949 
   11950 
   11951 
   11952 
   11953 
   11954 
   11955 
   11956 
   11957 
   11958 
   11959 
   11960 
   11961 
   11962 
   11963 
   11964 
   11965 
   11966 
   11967 
   11968 
   11969 
   11970 
   11971 
   11972 
   11973 
   11974 
   11975 
   11976 
   11977 
   11978 
   11979 
   11980 
   11981 
   11982 
   11983 
   11984 
   11985 
   11986 
   11987 
   11988 
   11989 
   11990 
   11991 
   11992 
   11993 
   11994 
   11995 
   11996 
   11997 
   11998 
   11999 
   12000 
   12001 
   12002 
   12003 
   12004 
   12005 
   12006 
   12007 
   12008 
   12009 
   12010 
   12011 
   12012 
   12013 
   12014 
   12015 
   12016 
   12017 
   12018 
   12019 
   12020 
   12021 
   12022 
   12023 
   12024 
   12025 
   12026 
   12027 
   12028 
   12029 
   12030 
   12031 
   12032 
   12033 
   12034 
   12035 
   12036 
   12037 
   12038 
   12039 
   12040 
   12041 
   12042 
   12043 
   12044 
   12045 
   12046 
   12047 
   12048 
   12049 
   12050 
   12051 
   12052 
   12053 
   12054 
   12055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   12056 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   12057 
   12058 if test "$GCC" = yes; then
   12059   case $host_os in
   12060     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   12061     *) lt_awk_arg="/^libraries:/" ;;
   12062   esac
   12063   case $host_os in
   12064     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
   12065     *) lt_sed_strip_eq="s,=/,/,g" ;;
   12066   esac
   12067   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   12068   case $lt_search_path_spec in
   12069   *\;*)
   12070     # if the path contains ";" then we assume it to be the separator
   12071     # otherwise default to the standard path separator (i.e. ":") - it is
   12072     # assumed that no part of a normal pathname contains ";" but that should
   12073     # okay in the real world where ";" in dirpaths is itself problematic.
   12074     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   12075     ;;
   12076   *)
   12077     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   12078     ;;
   12079   esac
   12080   # Ok, now we have the path, separated by spaces, we can step through it
   12081   # and add multilib dir if necessary.
   12082   lt_tmp_lt_search_path_spec=
   12083   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   12084   for lt_sys_path in $lt_search_path_spec; do
   12085     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   12086       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   12087     else
   12088       test -d "$lt_sys_path" && \
   12089 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   12090     fi
   12091   done
   12092   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   12093 BEGIN {RS=" "; FS="/|\n";} {
   12094   lt_foo="";
   12095   lt_count=0;
   12096   for (lt_i = NF; lt_i > 0; lt_i--) {
   12097     if ($lt_i != "" && $lt_i != ".") {
   12098       if ($lt_i == "..") {
   12099         lt_count++;
   12100       } else {
   12101         if (lt_count == 0) {
   12102           lt_foo="/" $lt_i lt_foo;
   12103         } else {
   12104           lt_count--;
   12105         }
   12106       }
   12107     }
   12108   }
   12109   if (lt_foo != "") { lt_freq[lt_foo]++; }
   12110   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   12111 }'`
   12112   # AWK program above erroneously prepends '/' to C:/dos/paths
   12113   # for these hosts.
   12114   case $host_os in
   12115     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   12116       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
   12117   esac
   12118   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   12119 else
   12120   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   12121 fi
   12122 library_names_spec=
   12123 libname_spec='lib$name'
   12124 soname_spec=
   12125 shrext_cmds=".so"
   12126 postinstall_cmds=
   12127 postuninstall_cmds=
   12128 finish_cmds=
   12129 finish_eval=
   12130 shlibpath_var=
   12131 shlibpath_overrides_runpath=unknown
   12132 version_type=none
   12133 dynamic_linker="$host_os ld.so"
   12134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   12135 need_lib_prefix=unknown
   12136 hardcode_into_libs=no
   12137 
   12138 # when you set need_version to no, make sure it does not cause -set_version
   12139 # flags to be left without arguments
   12140 need_version=unknown
   12141 
   12142 case $host_os in
   12143 aix3*)
   12144   version_type=linux
   12145   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   12146   shlibpath_var=LIBPATH
   12147 
   12148   # AIX 3 has no versioning support, so we append a major version to the name.
   12149   soname_spec='${libname}${release}${shared_ext}$major'
   12150   ;;
   12151 
   12152 aix[4-9]*)
   12153   version_type=linux
   12154   need_lib_prefix=no
   12155   need_version=no
   12156   hardcode_into_libs=yes
   12157   if test "$host_cpu" = ia64; then
   12158     # AIX 5 supports IA64
   12159     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   12160     shlibpath_var=LD_LIBRARY_PATH
   12161   else
   12162     # With GCC up to 2.95.x, collect2 would create an import file
   12163     # for dependence libraries.  The import file would start with
   12164     # the line `#! .'.  This would cause the generated library to
   12165     # depend on `.', always an invalid library.  This was fixed in
   12166     # development snapshots of GCC prior to 3.0.
   12167     case $host_os in
   12168       aix4 | aix4.[01] | aix4.[01].*)
   12169       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   12170 	   echo ' yes '
   12171 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   12172 	:
   12173       else
   12174 	can_build_shared=no
   12175       fi
   12176       ;;
   12177     esac
   12178     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   12179     # soname into executable. Probably we can add versioning support to
   12180     # collect2, so additional links can be useful in future.
   12181     if test "$aix_use_runtimelinking" = yes; then
   12182       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   12183       # instead of lib<name>.a to let people know that these are not
   12184       # typical AIX shared libraries.
   12185       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12186     else
   12187       # We preserve .a as extension for shared libraries through AIX4.2
   12188       # and later when we are not doing run time linking.
   12189       library_names_spec='${libname}${release}.a $libname.a'
   12190       soname_spec='${libname}${release}${shared_ext}$major'
   12191     fi
   12192     shlibpath_var=LIBPATH
   12193   fi
   12194   ;;
   12195 
   12196 amigaos*)
   12197   case $host_cpu in
   12198   powerpc)
   12199     # Since July 2007 AmigaOS4 officially supports .so libraries.
   12200     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   12201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12202     ;;
   12203   m68k)
   12204     library_names_spec='$libname.ixlibrary $libname.a'
   12205     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   12206     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
   12207     ;;
   12208   esac
   12209   ;;
   12210 
   12211 beos*)
   12212   library_names_spec='${libname}${shared_ext}'
   12213   dynamic_linker="$host_os ld.so"
   12214   shlibpath_var=LIBRARY_PATH
   12215   ;;
   12216 
   12217 bsdi[45]*)
   12218   version_type=linux
   12219   need_version=no
   12220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12221   soname_spec='${libname}${release}${shared_ext}$major'
   12222   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   12223   shlibpath_var=LD_LIBRARY_PATH
   12224   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   12225   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   12226   # the default ld.so.conf also contains /usr/contrib/lib and
   12227   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   12228   # libtool to hard-code these into programs
   12229   ;;
   12230 
   12231 cygwin* | mingw* | pw32* | cegcc*)
   12232   version_type=windows
   12233   shrext_cmds=".dll"
   12234   need_version=no
   12235   need_lib_prefix=no
   12236 
   12237   case $GCC,$cc_basename in
   12238   yes,*)
   12239     # gcc
   12240     library_names_spec='$libname.dll.a'
   12241     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   12242     postinstall_cmds='base_file=`basename \${file}`~
   12243       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   12244       dldir=$destdir/`dirname \$dlpath`~
   12245       test -d \$dldir || mkdir -p \$dldir~
   12246       $install_prog $dir/$dlname \$dldir/$dlname~
   12247       chmod a+x \$dldir/$dlname~
   12248       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   12249         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   12250       fi'
   12251     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   12252       dlpath=$dir/\$dldll~
   12253        $RM \$dlpath'
   12254     shlibpath_overrides_runpath=yes
   12255 
   12256     case $host_os in
   12257     cygwin*)
   12258       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   12259       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   12260 
   12261       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   12262       ;;
   12263     mingw* | cegcc*)
   12264       # MinGW DLLs use traditional 'lib' prefix
   12265       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   12266       ;;
   12267     pw32*)
   12268       # pw32 DLLs use 'pw' prefix rather than 'lib'
   12269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   12270       ;;
   12271     esac
   12272     dynamic_linker='Win32 ld.exe'
   12273     ;;
   12274 
   12275   *,cl*)
   12276     # Native MSVC
   12277     libname_spec='$name'
   12278     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   12279     library_names_spec='${libname}.dll.lib'
   12280 
   12281     case $build_os in
   12282     mingw*)
   12283       sys_lib_search_path_spec=
   12284       lt_save_ifs=$IFS
   12285       IFS=';'
   12286       for lt_path in $LIB
   12287       do
   12288         IFS=$lt_save_ifs
   12289         # Let DOS variable expansion print the short 8.3 style file name.
   12290         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   12291         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   12292       done
   12293       IFS=$lt_save_ifs
   12294       # Convert to MSYS style.
   12295       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   12296       ;;
   12297     cygwin*)
   12298       # Convert to unix form, then to dos form, then back to unix form
   12299       # but this time dos style (no spaces!) so that the unix form looks
   12300       # like /cygdrive/c/PROGRA~1:/cygdr...
   12301       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   12302       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   12303       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   12304       ;;
   12305     *)
   12306       sys_lib_search_path_spec="$LIB"
   12307       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   12308         # It is most probably a Windows format PATH.
   12309         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   12310       else
   12311         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   12312       fi
   12313       # FIXME: find the short name or the path components, as spaces are
   12314       # common. (e.g. "Program Files" -> "PROGRA~1")
   12315       ;;
   12316     esac
   12317 
   12318     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   12319     postinstall_cmds='base_file=`basename \${file}`~
   12320       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   12321       dldir=$destdir/`dirname \$dlpath`~
   12322       test -d \$dldir || mkdir -p \$dldir~
   12323       $install_prog $dir/$dlname \$dldir/$dlname'
   12324     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   12325       dlpath=$dir/\$dldll~
   12326        $RM \$dlpath'
   12327     shlibpath_overrides_runpath=yes
   12328     dynamic_linker='Win32 link.exe'
   12329     ;;
   12330 
   12331   *)
   12332     # Assume MSVC wrapper
   12333     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   12334     dynamic_linker='Win32 ld.exe'
   12335     ;;
   12336   esac
   12337   # FIXME: first we should search . and the directory the executable is in
   12338   shlibpath_var=PATH
   12339   ;;
   12340 
   12341 darwin* | rhapsody*)
   12342   dynamic_linker="$host_os dyld"
   12343   version_type=darwin
   12344   need_lib_prefix=no
   12345   need_version=no
   12346   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   12347   soname_spec='${libname}${release}${major}$shared_ext'
   12348   shlibpath_overrides_runpath=yes
   12349   shlibpath_var=DYLD_LIBRARY_PATH
   12350   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   12351 
   12352   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   12353   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   12354   ;;
   12355 
   12356 dgux*)
   12357   version_type=linux
   12358   need_lib_prefix=no
   12359   need_version=no
   12360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   12361   soname_spec='${libname}${release}${shared_ext}$major'
   12362   shlibpath_var=LD_LIBRARY_PATH
   12363   ;;
   12364 
   12365 freebsd1*)
   12366   dynamic_linker=no
   12367   ;;
   12368 
   12369 freebsd* | dragonfly*)
   12370   # DragonFly does not have aout.  When/if they implement a new
   12371   # versioning mechanism, adjust this.
   12372   if test -x /usr/bin/objformat; then
   12373     objformat=`/usr/bin/objformat`
   12374   else
   12375     case $host_os in
   12376     freebsd[123]*) objformat=aout ;;
   12377     *) objformat=elf ;;
   12378     esac
   12379   fi
   12380   version_type=freebsd-$objformat
   12381   case $version_type in
   12382     freebsd-elf*)
   12383       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   12384       need_version=no
   12385       need_lib_prefix=no
   12386       ;;
   12387     freebsd-*)
   12388       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   12389       need_version=yes
   12390       ;;
   12391   esac
   12392   shlibpath_var=LD_LIBRARY_PATH
   12393   case $host_os in
   12394   freebsd2*)
   12395     shlibpath_overrides_runpath=yes
   12396     ;;
   12397   freebsd3.[01]* | freebsdelf3.[01]*)
   12398     shlibpath_overrides_runpath=yes
   12399     hardcode_into_libs=yes
   12400     ;;
   12401   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   12402   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   12403     shlibpath_overrides_runpath=no
   12404     hardcode_into_libs=yes
   12405     ;;
   12406   *) # from 4.6 on, and DragonFly
   12407     shlibpath_overrides_runpath=yes
   12408     hardcode_into_libs=yes
   12409     ;;
   12410   esac
   12411   ;;
   12412 
   12413 gnu*)
   12414   version_type=linux
   12415   need_lib_prefix=no
   12416   need_version=no
   12417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   12418   soname_spec='${libname}${release}${shared_ext}$major'
   12419   shlibpath_var=LD_LIBRARY_PATH
   12420   shlibpath_overrides_runpath=no
   12421   hardcode_into_libs=yes
   12422   ;;
   12423 
   12424 haiku*)
   12425   version_type=linux
   12426   need_lib_prefix=no
   12427   need_version=no
   12428   dynamic_linker="$host_os runtime_loader"
   12429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   12430   soname_spec='${libname}${release}${shared_ext}$major'
   12431   shlibpath_var=LIBRARY_PATH
   12432   shlibpath_overrides_runpath=yes
   12433   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   12434   hardcode_into_libs=yes
   12435   ;;
   12436 
   12437 hpux9* | hpux10* | hpux11*)
   12438   # Give a soname corresponding to the major version so that dld.sl refuses to
   12439   # link against other versions.
   12440   version_type=sunos
   12441   need_lib_prefix=no
   12442   need_version=no
   12443   case $host_cpu in
   12444   ia64*)
   12445     shrext_cmds='.so'
   12446     hardcode_into_libs=yes
   12447     dynamic_linker="$host_os dld.so"
   12448     shlibpath_var=LD_LIBRARY_PATH
   12449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   12450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12451     soname_spec='${libname}${release}${shared_ext}$major'
   12452     if test "X$HPUX_IA64_MODE" = X32; then
   12453       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   12454     else
   12455       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   12456     fi
   12457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   12458     ;;
   12459   hppa*64*)
   12460     shrext_cmds='.sl'
   12461     hardcode_into_libs=yes
   12462     dynamic_linker="$host_os dld.sl"
   12463     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   12464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   12465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12466     soname_spec='${libname}${release}${shared_ext}$major'
   12467     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   12468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   12469     ;;
   12470   *)
   12471     shrext_cmds='.sl'
   12472     dynamic_linker="$host_os dld.sl"
   12473     shlibpath_var=SHLIB_PATH
   12474     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   12475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12476     soname_spec='${libname}${release}${shared_ext}$major'
   12477     ;;
   12478   esac
   12479   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   12480   postinstall_cmds='chmod 555 $lib'
   12481   # or fails outright, so override atomically:
   12482   install_override_mode=555
   12483   ;;
   12484 
   12485 interix[3-9]*)
   12486   version_type=linux
   12487   need_lib_prefix=no
   12488   need_version=no
   12489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   12490   soname_spec='${libname}${release}${shared_ext}$major'
   12491   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   12492   shlibpath_var=LD_LIBRARY_PATH
   12493   shlibpath_overrides_runpath=no
   12494   hardcode_into_libs=yes
   12495   ;;
   12496 
   12497 irix5* | irix6* | nonstopux*)
   12498   case $host_os in
   12499     nonstopux*) version_type=nonstopux ;;
   12500     *)
   12501 	if test "$lt_cv_prog_gnu_ld" = yes; then
   12502 		version_type=linux
   12503 	else
   12504 		version_type=irix
   12505 	fi ;;
   12506   esac
   12507   need_lib_prefix=no
   12508   need_version=no
   12509   soname_spec='${libname}${release}${shared_ext}$major'
   12510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   12511   case $host_os in
   12512   irix5* | nonstopux*)
   12513     libsuff= shlibsuff=
   12514     ;;
   12515   *)
   12516     case $LD in # libtool.m4 will add one of these switches to LD
   12517     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   12518       libsuff= shlibsuff= libmagic=32-bit;;
   12519     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   12520       libsuff=32 shlibsuff=N32 libmagic=N32;;
   12521     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   12522       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   12523     *) libsuff= shlibsuff= libmagic=never-match;;
   12524     esac
   12525     ;;
   12526   esac
   12527   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   12528   shlibpath_overrides_runpath=no
   12529   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   12530   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   12531   hardcode_into_libs=yes
   12532   ;;
   12533 
   12534 # No shared lib support for Linux oldld, aout, or coff.
   12535 linux*oldld* | linux*aout* | linux*coff*)
   12536   dynamic_linker=no
   12537   ;;
   12538 
   12539 # This must be Linux ELF.
   12540 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   12541   version_type=linux
   12542   need_lib_prefix=no
   12543   need_version=no
   12544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12545   soname_spec='${libname}${release}${shared_ext}$major'
   12546   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   12547   shlibpath_var=LD_LIBRARY_PATH
   12548   shlibpath_overrides_runpath=no
   12549 
   12550   # Some binutils ld are patched to set DT_RUNPATH
   12551   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   12552   $as_echo_n "(cached) " >&6
   12553 else
   12554   lt_cv_shlibpath_overrides_runpath=no
   12555     save_LDFLAGS=$LDFLAGS
   12556     save_libdir=$libdir
   12557     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   12558 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   12559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12560 /* end confdefs.h.  */
   12561 
   12562 int main (void)
   12563 {
   12564 
   12565  ;
   12566  return 0;
   12567 }
   12568 _ACEOF
   12569 if ac_fn_c_try_link "$LINENO"; then :
   12570   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   12571   lt_cv_shlibpath_overrides_runpath=yes
   12572 fi
   12573 fi
   12574 rm -f core conftest.err conftest.$ac_objext \
   12575     conftest$ac_exeext conftest.$ac_ext
   12576     LDFLAGS=$save_LDFLAGS
   12577     libdir=$save_libdir
   12578 
   12579 fi
   12580 
   12581   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   12582 
   12583   # This implies no fast_install, which is unacceptable.
   12584   # Some rework will be needed to allow for fast_install
   12585   # before this can be enabled.
   12586   hardcode_into_libs=yes
   12587 
   12588   # Append ld.so.conf contents to the search path
   12589   if test -f /etc/ld.so.conf; then
   12590     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
   12591     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   12592   fi
   12593 
   12594   # We used to test for /lib/ld.so.1 and disable shared libraries on
   12595   # powerpc, because MkLinux only supported shared libraries with the
   12596   # GNU dynamic linker.  Since this was broken with cross compilers,
   12597   # most powerpc-linux boxes support dynamic linking these days and
   12598   # people can always --disable-shared, the test was removed, and we
   12599   # assume the GNU/Linux dynamic linker is in use.
   12600   dynamic_linker='GNU/Linux ld.so'
   12601   ;;
   12602 
   12603 netbsdelf*-gnu)
   12604   version_type=linux
   12605   need_lib_prefix=no
   12606   need_version=no
   12607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   12608   soname_spec='${libname}${release}${shared_ext}$major'
   12609   shlibpath_var=LD_LIBRARY_PATH
   12610   shlibpath_overrides_runpath=no
   12611   hardcode_into_libs=yes
   12612   dynamic_linker='NetBSD ld.elf_so'
   12613   ;;
   12614 
   12615 netbsd*)
   12616   version_type=sunos
   12617   need_lib_prefix=no
   12618   need_version=no
   12619   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   12620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   12621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   12622     dynamic_linker='NetBSD (a.out) ld.so'
   12623   else
   12624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   12625     soname_spec='${libname}${release}${shared_ext}$major'
   12626     dynamic_linker='NetBSD ld.elf_so'
   12627   fi
   12628   shlibpath_var=LD_LIBRARY_PATH
   12629   shlibpath_overrides_runpath=yes
   12630   hardcode_into_libs=yes
   12631   ;;
   12632 
   12633 newsos6)
   12634   version_type=linux
   12635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12636   shlibpath_var=LD_LIBRARY_PATH
   12637   shlibpath_overrides_runpath=yes
   12638   ;;
   12639 
   12640 *nto* | *qnx*)
   12641   version_type=qnx
   12642   need_lib_prefix=no
   12643   need_version=no
   12644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12645   soname_spec='${libname}${release}${shared_ext}$major'
   12646   shlibpath_var=LD_LIBRARY_PATH
   12647   shlibpath_overrides_runpath=no
   12648   hardcode_into_libs=yes
   12649   dynamic_linker='ldqnx.so'
   12650   ;;
   12651 
   12652 openbsd*)
   12653   version_type=sunos
   12654   sys_lib_dlsearch_path_spec="/usr/lib"
   12655   need_lib_prefix=no
   12656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   12657   case $host_os in
   12658     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   12659     *)				need_version=no  ;;
   12660   esac
   12661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   12662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   12663   shlibpath_var=LD_LIBRARY_PATH
   12664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   12665     case $host_os in
   12666       openbsd2.[89] | openbsd2.[89].*)
   12667 	shlibpath_overrides_runpath=no
   12668 	;;
   12669       *)
   12670 	shlibpath_overrides_runpath=yes
   12671 	;;
   12672       esac
   12673   else
   12674     shlibpath_overrides_runpath=yes
   12675   fi
   12676   ;;
   12677 
   12678 os2*)
   12679   libname_spec='$name'
   12680   shrext_cmds=".dll"
   12681   need_lib_prefix=no
   12682   library_names_spec='$libname${shared_ext} $libname.a'
   12683   dynamic_linker='OS/2 ld.exe'
   12684   shlibpath_var=LIBPATH
   12685   ;;
   12686 
   12687 osf3* | osf4* | osf5*)
   12688   version_type=osf
   12689   need_lib_prefix=no
   12690   need_version=no
   12691   soname_spec='${libname}${release}${shared_ext}$major'
   12692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12693   shlibpath_var=LD_LIBRARY_PATH
   12694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   12695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   12696   ;;
   12697 
   12698 rdos*)
   12699   dynamic_linker=no
   12700   ;;
   12701 
   12702 solaris*)
   12703   version_type=linux
   12704   need_lib_prefix=no
   12705   need_version=no
   12706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12707   soname_spec='${libname}${release}${shared_ext}$major'
   12708   shlibpath_var=LD_LIBRARY_PATH
   12709   shlibpath_overrides_runpath=yes
   12710   hardcode_into_libs=yes
   12711   # ldd complains unless libraries are executable
   12712   postinstall_cmds='chmod +x $lib'
   12713   ;;
   12714 
   12715 sunos4*)
   12716   version_type=sunos
   12717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   12718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   12719   shlibpath_var=LD_LIBRARY_PATH
   12720   shlibpath_overrides_runpath=yes
   12721   if test "$with_gnu_ld" = yes; then
   12722     need_lib_prefix=no
   12723   fi
   12724   need_version=yes
   12725   ;;
   12726 
   12727 sysv4 | sysv4.3*)
   12728   version_type=linux
   12729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12730   soname_spec='${libname}${release}${shared_ext}$major'
   12731   shlibpath_var=LD_LIBRARY_PATH
   12732   case $host_vendor in
   12733     sni)
   12734       shlibpath_overrides_runpath=no
   12735       need_lib_prefix=no
   12736       runpath_var=LD_RUN_PATH
   12737       ;;
   12738     siemens)
   12739       need_lib_prefix=no
   12740       ;;
   12741     motorola)
   12742       need_lib_prefix=no
   12743       need_version=no
   12744       shlibpath_overrides_runpath=no
   12745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   12746       ;;
   12747   esac
   12748   ;;
   12749 
   12750 sysv4*MP*)
   12751   if test -d /usr/nec ;then
   12752     version_type=linux
   12753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   12754     soname_spec='$libname${shared_ext}.$major'
   12755     shlibpath_var=LD_LIBRARY_PATH
   12756   fi
   12757   ;;
   12758 
   12759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   12760   version_type=freebsd-elf
   12761   need_lib_prefix=no
   12762   need_version=no
   12763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   12764   soname_spec='${libname}${release}${shared_ext}$major'
   12765   shlibpath_var=LD_LIBRARY_PATH
   12766   shlibpath_overrides_runpath=yes
   12767   hardcode_into_libs=yes
   12768   if test "$with_gnu_ld" = yes; then
   12769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   12770   else
   12771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   12772     case $host_os in
   12773       sco3.2v5*)
   12774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   12775 	;;
   12776     esac
   12777   fi
   12778   sys_lib_dlsearch_path_spec='/usr/lib'
   12779   ;;
   12780 
   12781 tpf*)
   12782   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   12783   version_type=linux
   12784   need_lib_prefix=no
   12785   need_version=no
   12786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12787   shlibpath_var=LD_LIBRARY_PATH
   12788   shlibpath_overrides_runpath=no
   12789   hardcode_into_libs=yes
   12790   ;;
   12791 
   12792 uts4*)
   12793   version_type=linux
   12794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12795   soname_spec='${libname}${release}${shared_ext}$major'
   12796   shlibpath_var=LD_LIBRARY_PATH
   12797   ;;
   12798 
   12799 *)
   12800   dynamic_linker=no
   12801   ;;
   12802 esac
   12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   12804 $as_echo "$dynamic_linker" >&6; }
   12805 test "$dynamic_linker" = no && can_build_shared=no
   12806 
   12807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   12808 if test "$GCC" = yes; then
   12809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   12810 fi
   12811 
   12812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   12813   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   12814 fi
   12815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   12816   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   12817 fi
   12818 
   12819 
   12820 
   12821 
   12822 
   12823 
   12824 
   12825 
   12826 
   12827 
   12828 
   12829 
   12830 
   12831 
   12832 
   12833 
   12834 
   12835 
   12836 
   12837 
   12838 
   12839 
   12840 
   12841 
   12842 
   12843 
   12844 
   12845 
   12846 
   12847 
   12848 
   12849 
   12850 
   12851 
   12852 
   12853 
   12854 
   12855 
   12856 
   12857 
   12858 
   12859 
   12860 
   12861 
   12862 
   12863 
   12864 
   12865 
   12866 
   12867 
   12868 
   12869 
   12870 
   12871 
   12872 
   12873 
   12874 
   12875 
   12876 
   12877 
   12878 
   12879 
   12880 
   12881 
   12882 
   12883 
   12884 
   12885 
   12886 
   12887 
   12888 
   12889 
   12890 
   12891 
   12892 
   12893 
   12894 
   12895 
   12896 
   12897 
   12898 
   12899 
   12900 
   12901 
   12902 
   12903 
   12904 
   12905 
   12906 
   12907 
   12908 
   12909 
   12910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   12911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   12912 hardcode_action=
   12913 if test -n "$hardcode_libdir_flag_spec" ||
   12914    test -n "$runpath_var" ||
   12915    test "X$hardcode_automatic" = "Xyes" ; then
   12916 
   12917   # We can hardcode non-existent directories.
   12918   if test "$hardcode_direct" != no &&
   12919      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   12920      # have to relink, otherwise we might link with an installed library
   12921      # when we should be linking with a yet-to-be-installed one
   12922      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
   12923      test "$hardcode_minus_L" != no; then
   12924     # Linking always hardcodes the temporary library directory.
   12925     hardcode_action=relink
   12926   else
   12927     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   12928     hardcode_action=immediate
   12929   fi
   12930 else
   12931   # We cannot hardcode anything, or else we can only hardcode existing
   12932   # directories.
   12933   hardcode_action=unsupported
   12934 fi
   12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   12936 $as_echo "$hardcode_action" >&6; }
   12937 
   12938 if test "$hardcode_action" = relink ||
   12939    test "$inherit_rpath" = yes; then
   12940   # Fast installation is not supported
   12941   enable_fast_install=no
   12942 elif test "$shlibpath_overrides_runpath" = yes ||
   12943      test "$enable_shared" = no; then
   12944   # Fast installation is not necessary
   12945   enable_fast_install=needless
   12946 fi
   12947 
   12948 
   12949 
   12950 
   12951 
   12952 
   12953   if test "x$enable_dlopen" != xyes; then
   12954   enable_dlopen=unknown
   12955   enable_dlopen_self=unknown
   12956   enable_dlopen_self_static=unknown
   12957 else
   12958   lt_cv_dlopen=no
   12959   lt_cv_dlopen_libs=
   12960 
   12961   case $host_os in
   12962   beos*)
   12963     lt_cv_dlopen="load_add_on"
   12964     lt_cv_dlopen_libs=
   12965     lt_cv_dlopen_self=yes
   12966     ;;
   12967 
   12968   mingw* | pw32* | cegcc*)
   12969     lt_cv_dlopen="LoadLibrary"
   12970     lt_cv_dlopen_libs=
   12971     ;;
   12972 
   12973   cygwin*)
   12974     lt_cv_dlopen="dlopen"
   12975     lt_cv_dlopen_libs=
   12976     ;;
   12977 
   12978   darwin*)
   12979   # if libdl is installed we need to link against it
   12980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   12981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   12982 if ${ac_cv_lib_dl_dlopen+:} false; then :
   12983   $as_echo_n "(cached) " >&6
   12984 else
   12985   ac_check_lib_save_LIBS=$LIBS
   12986 LIBS="-ldl  $LIBS"
   12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12988 /* end confdefs.h.  */
   12989 
   12990 
   12991 #ifdef __cplusplus
   12992 extern "C"
   12993 #endif
   12994 char dlopen ();
   12995 int main (void)
   12996 {
   12997 return dlopen ();
   12998  ;
   12999  return 0;
   13000 }
   13001 _ACEOF
   13002 if ac_fn_c_try_link "$LINENO"; then :
   13003   ac_cv_lib_dl_dlopen=yes
   13004 else
   13005   ac_cv_lib_dl_dlopen=no
   13006 fi
   13007 rm -f core conftest.err conftest.$ac_objext \
   13008     conftest$ac_exeext conftest.$ac_ext
   13009 LIBS=$ac_check_lib_save_LIBS
   13010 fi
   13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13013 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   13015 else
   13016 
   13017     lt_cv_dlopen="dyld"
   13018     lt_cv_dlopen_libs=
   13019     lt_cv_dlopen_self=yes
   13020 
   13021 fi
   13022 
   13023     ;;
   13024 
   13025   *)
   13026     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   13027 if test "x$ac_cv_func_shl_load" = xyes; then :
   13028   lt_cv_dlopen="shl_load"
   13029 else
   13030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   13031 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   13032 if ${ac_cv_lib_dld_shl_load+:} false; then :
   13033   $as_echo_n "(cached) " >&6
   13034 else
   13035   ac_check_lib_save_LIBS=$LIBS
   13036 LIBS="-ldld  $LIBS"
   13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13038 /* end confdefs.h.  */
   13039 
   13040 
   13041 #ifdef __cplusplus
   13042 extern "C"
   13043 #endif
   13044 char shl_load ();
   13045 int main (void)
   13046 {
   13047 return shl_load ();
   13048  ;
   13049  return 0;
   13050 }
   13051 _ACEOF
   13052 if ac_fn_c_try_link "$LINENO"; then :
   13053   ac_cv_lib_dld_shl_load=yes
   13054 else
   13055   ac_cv_lib_dld_shl_load=no
   13056 fi
   13057 rm -f core conftest.err conftest.$ac_objext \
   13058     conftest$ac_exeext conftest.$ac_ext
   13059 LIBS=$ac_check_lib_save_LIBS
   13060 fi
   13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   13062 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   13063 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   13064   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
   13065 else
   13066   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   13067 if test "x$ac_cv_func_dlopen" = xyes; then :
   13068   lt_cv_dlopen="dlopen"
   13069 else
   13070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13072 if ${ac_cv_lib_dl_dlopen+:} false; then :
   13073   $as_echo_n "(cached) " >&6
   13074 else
   13075   ac_check_lib_save_LIBS=$LIBS
   13076 LIBS="-ldl  $LIBS"
   13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13078 /* end confdefs.h.  */
   13079 
   13080 
   13081 #ifdef __cplusplus
   13082 extern "C"
   13083 #endif
   13084 char dlopen ();
   13085 int main (void)
   13086 {
   13087 return dlopen ();
   13088  ;
   13089  return 0;
   13090 }
   13091 _ACEOF
   13092 if ac_fn_c_try_link "$LINENO"; then :
   13093   ac_cv_lib_dl_dlopen=yes
   13094 else
   13095   ac_cv_lib_dl_dlopen=no
   13096 fi
   13097 rm -f core conftest.err conftest.$ac_objext \
   13098     conftest$ac_exeext conftest.$ac_ext
   13099 LIBS=$ac_check_lib_save_LIBS
   13100 fi
   13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13103 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   13105 else
   13106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   13107 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   13108 if ${ac_cv_lib_svld_dlopen+:} false; then :
   13109   $as_echo_n "(cached) " >&6
   13110 else
   13111   ac_check_lib_save_LIBS=$LIBS
   13112 LIBS="-lsvld  $LIBS"
   13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13114 /* end confdefs.h.  */
   13115 
   13116 
   13117 #ifdef __cplusplus
   13118 extern "C"
   13119 #endif
   13120 char dlopen ();
   13121 int main (void)
   13122 {
   13123 return dlopen ();
   13124  ;
   13125  return 0;
   13126 }
   13127 _ACEOF
   13128 if ac_fn_c_try_link "$LINENO"; then :
   13129   ac_cv_lib_svld_dlopen=yes
   13130 else
   13131   ac_cv_lib_svld_dlopen=no
   13132 fi
   13133 rm -f core conftest.err conftest.$ac_objext \
   13134     conftest$ac_exeext conftest.$ac_ext
   13135 LIBS=$ac_check_lib_save_LIBS
   13136 fi
   13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   13138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   13139 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   13140   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   13141 else
   13142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   13143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   13144 if ${ac_cv_lib_dld_dld_link+:} false; then :
   13145   $as_echo_n "(cached) " >&6
   13146 else
   13147   ac_check_lib_save_LIBS=$LIBS
   13148 LIBS="-ldld  $LIBS"
   13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13150 /* end confdefs.h.  */
   13151 
   13152 
   13153 #ifdef __cplusplus
   13154 extern "C"
   13155 #endif
   13156 char dld_link ();
   13157 int main (void)
   13158 {
   13159 return dld_link ();
   13160  ;
   13161  return 0;
   13162 }
   13163 _ACEOF
   13164 if ac_fn_c_try_link "$LINENO"; then :
   13165   ac_cv_lib_dld_dld_link=yes
   13166 else
   13167   ac_cv_lib_dld_dld_link=no
   13168 fi
   13169 rm -f core conftest.err conftest.$ac_objext \
   13170     conftest$ac_exeext conftest.$ac_ext
   13171 LIBS=$ac_check_lib_save_LIBS
   13172 fi
   13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   13174 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   13175 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   13176   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
   13177 fi
   13178 
   13179 
   13180 fi
   13181 
   13182 
   13183 fi
   13184 
   13185 
   13186 fi
   13187 
   13188 
   13189 fi
   13190 
   13191 
   13192 fi
   13193 
   13194     ;;
   13195   esac
   13196 
   13197   if test "x$lt_cv_dlopen" != xno; then
   13198     enable_dlopen=yes
   13199   else
   13200     enable_dlopen=no
   13201   fi
   13202 
   13203   case $lt_cv_dlopen in
   13204   dlopen)
   13205     save_CPPFLAGS="$CPPFLAGS"
   13206     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   13207 
   13208     save_LDFLAGS="$LDFLAGS"
   13209     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   13210 
   13211     save_LIBS="$LIBS"
   13212     LIBS="$lt_cv_dlopen_libs $LIBS"
   13213 
   13214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   13215 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   13216 if ${lt_cv_dlopen_self+:} false; then :
   13217   $as_echo_n "(cached) " >&6
   13218 else
   13219   	  if test "$cross_compiling" = yes; then :
   13220   lt_cv_dlopen_self=cross
   13221 else
   13222   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   13223   lt_status=$lt_dlunknown
   13224   cat > conftest.$ac_ext <<_LT_EOF
   13225 #line $LINENO "configure"
   13226 #include "confdefs.h"
   13227 
   13228 #if HAVE_DLFCN_H
   13229 #include <dlfcn.h>
   13230 #endif
   13231 
   13232 #include <stdio.h>
   13233 
   13234 #ifdef RTLD_GLOBAL
   13235 #  define LT_DLGLOBAL		RTLD_GLOBAL
   13236 #else
   13237 #  ifdef DL_GLOBAL
   13238 #    define LT_DLGLOBAL		DL_GLOBAL
   13239 #  else
   13240 #    define LT_DLGLOBAL		0
   13241 #  endif
   13242 #endif
   13243 
   13244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   13245    find out it does not work in some platform. */
   13246 #ifndef LT_DLLAZY_OR_NOW
   13247 #  ifdef RTLD_LAZY
   13248 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   13249 #  else
   13250 #    ifdef DL_LAZY
   13251 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   13252 #    else
   13253 #      ifdef RTLD_NOW
   13254 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   13255 #      else
   13256 #        ifdef DL_NOW
   13257 #          define LT_DLLAZY_OR_NOW	DL_NOW
   13258 #        else
   13259 #          define LT_DLLAZY_OR_NOW	0
   13260 #        endif
   13261 #      endif
   13262 #    endif
   13263 #  endif
   13264 #endif
   13265 
   13266 /* When -fvisbility=hidden is used, assume the code has been annotated
   13267    correspondingly for the symbols needed.  */
   13268 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   13269 int fnord () __attribute__((visibility("default")));
   13270 #endif
   13271 
   13272 int fnord () { return 42; }
   13273 int main ()
   13274 {
   13275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   13276   int status = $lt_dlunknown;
   13277 
   13278   if (self)
   13279     {
   13280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   13281       else
   13282         {
   13283 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   13284           else puts (dlerror ());
   13285 	}
   13286       /* dlclose (self); */
   13287     }
   13288   else
   13289     puts (dlerror ());
   13290 
   13291   return status;
   13292 }
   13293 _LT_EOF
   13294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   13295   (eval $ac_link) 2>&5
   13296   ac_status=$?
   13297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13298   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   13299     (./conftest; exit; ) >&5 2>/dev/null
   13300     lt_status=$?
   13301     case x$lt_status in
   13302       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   13303       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   13304       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   13305     esac
   13306   else :
   13307     # compilation failed
   13308     lt_cv_dlopen_self=no
   13309   fi
   13310 fi
   13311 rm -fr conftest*
   13312 
   13313 
   13314 fi
   13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   13316 $as_echo "$lt_cv_dlopen_self" >&6; }
   13317 
   13318     if test "x$lt_cv_dlopen_self" = xyes; then
   13319       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   13320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   13321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   13322 if ${lt_cv_dlopen_self_static+:} false; then :
   13323   $as_echo_n "(cached) " >&6
   13324 else
   13325   	  if test "$cross_compiling" = yes; then :
   13326   lt_cv_dlopen_self_static=cross
   13327 else
   13328   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   13329   lt_status=$lt_dlunknown
   13330   cat > conftest.$ac_ext <<_LT_EOF
   13331 #line $LINENO "configure"
   13332 #include "confdefs.h"
   13333 
   13334 #if HAVE_DLFCN_H
   13335 #include <dlfcn.h>
   13336 #endif
   13337 
   13338 #include <stdio.h>
   13339 
   13340 #ifdef RTLD_GLOBAL
   13341 #  define LT_DLGLOBAL		RTLD_GLOBAL
   13342 #else
   13343 #  ifdef DL_GLOBAL
   13344 #    define LT_DLGLOBAL		DL_GLOBAL
   13345 #  else
   13346 #    define LT_DLGLOBAL		0
   13347 #  endif
   13348 #endif
   13349 
   13350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   13351    find out it does not work in some platform. */
   13352 #ifndef LT_DLLAZY_OR_NOW
   13353 #  ifdef RTLD_LAZY
   13354 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   13355 #  else
   13356 #    ifdef DL_LAZY
   13357 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   13358 #    else
   13359 #      ifdef RTLD_NOW
   13360 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   13361 #      else
   13362 #        ifdef DL_NOW
   13363 #          define LT_DLLAZY_OR_NOW	DL_NOW
   13364 #        else
   13365 #          define LT_DLLAZY_OR_NOW	0
   13366 #        endif
   13367 #      endif
   13368 #    endif
   13369 #  endif
   13370 #endif
   13371 
   13372 /* When -fvisbility=hidden is used, assume the code has been annotated
   13373    correspondingly for the symbols needed.  */
   13374 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   13375 int fnord () __attribute__((visibility("default")));
   13376 #endif
   13377 
   13378 int fnord () { return 42; }
   13379 int main ()
   13380 {
   13381   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   13382   int status = $lt_dlunknown;
   13383 
   13384   if (self)
   13385     {
   13386       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   13387       else
   13388         {
   13389 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   13390           else puts (dlerror ());
   13391 	}
   13392       /* dlclose (self); */
   13393     }
   13394   else
   13395     puts (dlerror ());
   13396 
   13397   return status;
   13398 }
   13399 _LT_EOF
   13400   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   13401   (eval $ac_link) 2>&5
   13402   ac_status=$?
   13403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13404   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   13405     (./conftest; exit; ) >&5 2>/dev/null
   13406     lt_status=$?
   13407     case x$lt_status in
   13408       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   13409       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   13410       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   13411     esac
   13412   else :
   13413     # compilation failed
   13414     lt_cv_dlopen_self_static=no
   13415   fi
   13416 fi
   13417 rm -fr conftest*
   13418 
   13419 
   13420 fi
   13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   13422 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   13423     fi
   13424 
   13425     CPPFLAGS="$save_CPPFLAGS"
   13426     LDFLAGS="$save_LDFLAGS"
   13427     LIBS="$save_LIBS"
   13428     ;;
   13429   esac
   13430 
   13431   case $lt_cv_dlopen_self in
   13432   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   13433   *) enable_dlopen_self=unknown ;;
   13434   esac
   13435 
   13436   case $lt_cv_dlopen_self_static in
   13437   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   13438   *) enable_dlopen_self_static=unknown ;;
   13439   esac
   13440 fi
   13441 
   13442 
   13443 
   13444 
   13445 
   13446 
   13447 
   13448 
   13449 
   13450 
   13451 
   13452 
   13453 
   13454 
   13455 
   13456 
   13457 
   13458 striplib=
   13459 old_striplib=
   13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   13461 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   13462 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   13463   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   13464   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   13465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13466 $as_echo "yes" >&6; }
   13467 else
   13468 # FIXME - insert some real tests, host_os isn't really good enough
   13469   case $host_os in
   13470   darwin*)
   13471     if test -n "$STRIP" ; then
   13472       striplib="$STRIP -x"
   13473       old_striplib="$STRIP -S"
   13474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13475 $as_echo "yes" >&6; }
   13476     else
   13477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13478 $as_echo "no" >&6; }
   13479     fi
   13480     ;;
   13481   *)
   13482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13483 $as_echo "no" >&6; }
   13484     ;;
   13485   esac
   13486 fi
   13487 
   13488 
   13489 
   13490 
   13491 
   13492 
   13493 
   13494 
   13495 
   13496 
   13497 
   13498 
   13499   # Report which library types will actually be built
   13500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   13501 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   13502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   13503 $as_echo "$can_build_shared" >&6; }
   13504 
   13505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   13506 $as_echo_n "checking whether to build shared libraries... " >&6; }
   13507   test "$can_build_shared" = "no" && enable_shared=no
   13508 
   13509   # On AIX, shared libraries and static libraries use the same namespace, and
   13510   # are all built from PIC.
   13511   case $host_os in
   13512   aix3*)
   13513     test "$enable_shared" = yes && enable_static=no
   13514     if test -n "$RANLIB"; then
   13515       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   13516       postinstall_cmds='$RANLIB $lib'
   13517     fi
   13518     ;;
   13519 
   13520   aix[4-9]*)
   13521     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   13522       test "$enable_shared" = yes && enable_static=no
   13523     fi
   13524     ;;
   13525   esac
   13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   13527 $as_echo "$enable_shared" >&6; }
   13528 
   13529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   13530 $as_echo_n "checking whether to build static libraries... " >&6; }
   13531   # Make sure either enable_shared or enable_static is yes.
   13532   test "$enable_shared" = yes || enable_static=yes
   13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   13534 $as_echo "$enable_static" >&6; }
   13535 
   13536 
   13537 
   13538 
   13539 fi
   13540 ac_ext=c
   13541 ac_cpp='$CPP $CPPFLAGS'
   13542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13545 
   13546 CC="$lt_save_CC"
   13547 
   13548 
   13549 
   13550 
   13551 
   13552 
   13553 
   13554 
   13555 
   13556 
   13557 
   13558 
   13559 
   13560         ac_config_commands="$ac_config_commands libtool"
   13561 
   13562 
   13563 
   13564 
   13565 # Only expand once:
   13566 
   13567 
   13568 
   13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CARES_BUILDING_LIBRARY" >&5
   13570 $as_echo_n "checking if we need CARES_BUILDING_LIBRARY... " >&6; }
   13571 case $host in
   13572   *-*-mingw*)
   13573 
   13574 $as_echo "#define CARES_BUILDING_LIBRARY 1" >>confdefs.h
   13575 
   13576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13577 $as_echo "yes" >&6; }
   13578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CARES_STATICLIB" >&5
   13579 $as_echo_n "checking if we need CARES_STATICLIB... " >&6; }
   13580     if test "X$enable_shared" = "Xno"
   13581     then
   13582 
   13583 $as_echo "#define CARES_STATICLIB 1" >>confdefs.h
   13584 
   13585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13586 $as_echo "yes" >&6; }
   13587     else
   13588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13589 $as_echo "no" >&6; }
   13590     fi
   13591     ;;
   13592   *)
   13593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13594 $as_echo "no" >&6; }
   13595     ;;
   13596 esac
   13597 
   13598 
   13599 
   13600     #
   13601   compiler_id="unknown"
   13602   compiler_num="0"
   13603   #
   13604   flags_dbg_all="unknown"
   13605   flags_dbg_yes="unknown"
   13606   flags_dbg_off="unknown"
   13607   flags_opt_all="unknown"
   13608   flags_opt_yes="unknown"
   13609   flags_opt_off="unknown"
   13610   #
   13611   flags_prefer_cppflags="no"
   13612   #
   13613 
   13614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
   13615 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
   13616 
   13617       if test -z "$SED"; then
   13618     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13619   fi
   13620   if test -z "$GREP"; then
   13621     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13622   fi
   13623 
   13624   tmp_exp=""
   13625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13626 /* end confdefs.h.  */
   13627 
   13628 
   13629 #ifdef __DECC
   13630 CURL_DEF_TOKEN __DECC
   13631 #endif
   13632 
   13633 
   13634 _ACEOF
   13635 if ac_fn_c_try_cpp "$LINENO"; then :
   13636 
   13637     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13638       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13639       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13640       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13641     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
   13642       tmp_exp=""
   13643     fi
   13644 
   13645 fi
   13646 rm -f conftest.err conftest.i conftest.$ac_ext
   13647   if test -z "$tmp_exp"; then
   13648     curl_cv_have_def___DECC=no
   13649 
   13650   else
   13651     curl_cv_have_def___DECC=yes
   13652     curl_cv_def___DECC=$tmp_exp
   13653 
   13654   fi
   13655 
   13656 
   13657       if test -z "$SED"; then
   13658     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13659   fi
   13660   if test -z "$GREP"; then
   13661     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13662   fi
   13663 
   13664   tmp_exp=""
   13665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13666 /* end confdefs.h.  */
   13667 
   13668 
   13669 #ifdef __DECC_VER
   13670 CURL_DEF_TOKEN __DECC_VER
   13671 #endif
   13672 
   13673 
   13674 _ACEOF
   13675 if ac_fn_c_try_cpp "$LINENO"; then :
   13676 
   13677     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13678       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13679       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13680       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13681     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
   13682       tmp_exp=""
   13683     fi
   13684 
   13685 fi
   13686 rm -f conftest.err conftest.i conftest.$ac_ext
   13687   if test -z "$tmp_exp"; then
   13688     curl_cv_have_def___DECC_VER=no
   13689 
   13690   else
   13691     curl_cv_have_def___DECC_VER=yes
   13692     curl_cv_def___DECC_VER=$tmp_exp
   13693 
   13694   fi
   13695 
   13696   if test "$curl_cv_have_def___DECC" = "yes" &&
   13697     test "$curl_cv_have_def___DECC_VER" = "yes"; then
   13698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13699 $as_echo "yes" >&6; }
   13700     compiler_id="DEC_C"
   13701     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   13702     flags_dbg_yes="-g2"
   13703     flags_dbg_off="-g0"
   13704     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
   13705     flags_opt_yes="-O1"
   13706     flags_opt_off="-O0"
   13707   else
   13708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13709 $as_echo "no" >&6; }
   13710   fi
   13711 
   13712 
   13713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
   13714 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
   13715 
   13716       if test -z "$SED"; then
   13717     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13718   fi
   13719   if test -z "$GREP"; then
   13720     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13721   fi
   13722 
   13723   tmp_exp=""
   13724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13725 /* end confdefs.h.  */
   13726 
   13727 
   13728 #ifdef __HP_cc
   13729 CURL_DEF_TOKEN __HP_cc
   13730 #endif
   13731 
   13732 
   13733 _ACEOF
   13734 if ac_fn_c_try_cpp "$LINENO"; then :
   13735 
   13736     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13737       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13738       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13739       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13740     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
   13741       tmp_exp=""
   13742     fi
   13743 
   13744 fi
   13745 rm -f conftest.err conftest.i conftest.$ac_ext
   13746   if test -z "$tmp_exp"; then
   13747     curl_cv_have_def___HP_cc=no
   13748 
   13749   else
   13750     curl_cv_have_def___HP_cc=yes
   13751     curl_cv_def___HP_cc=$tmp_exp
   13752 
   13753   fi
   13754 
   13755   if test "$curl_cv_have_def___HP_cc" = "yes"; then
   13756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13757 $as_echo "yes" >&6; }
   13758     compiler_id="HP_UX_C"
   13759     flags_dbg_all="-g -s"
   13760     flags_dbg_yes="-g"
   13761     flags_dbg_off="-s"
   13762     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
   13763     flags_opt_yes="+O2"
   13764     flags_opt_off="+O0"
   13765   else
   13766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13767 $as_echo "no" >&6; }
   13768   fi
   13769 
   13770 
   13771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
   13772 $as_echo_n "checking if compiler is IBM C... " >&6; }
   13773 
   13774       if test -z "$SED"; then
   13775     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13776   fi
   13777   if test -z "$GREP"; then
   13778     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13779   fi
   13780 
   13781   tmp_exp=""
   13782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13783 /* end confdefs.h.  */
   13784 
   13785 
   13786 #ifdef __IBMC__
   13787 CURL_DEF_TOKEN __IBMC__
   13788 #endif
   13789 
   13790 
   13791 _ACEOF
   13792 if ac_fn_c_try_cpp "$LINENO"; then :
   13793 
   13794     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13795       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13796       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13797       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13798     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
   13799       tmp_exp=""
   13800     fi
   13801 
   13802 fi
   13803 rm -f conftest.err conftest.i conftest.$ac_ext
   13804   if test -z "$tmp_exp"; then
   13805     curl_cv_have_def___IBMC__=no
   13806 
   13807   else
   13808     curl_cv_have_def___IBMC__=yes
   13809     curl_cv_def___IBMC__=$tmp_exp
   13810 
   13811   fi
   13812 
   13813   if test "$curl_cv_have_def___IBMC__" = "yes"; then
   13814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13815 $as_echo "yes" >&6; }
   13816     compiler_id="IBM_C"
   13817     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   13818     flags_dbg_yes="-g"
   13819     flags_dbg_off=""
   13820     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
   13821     flags_opt_all="$flags_opt_all -qnooptimize"
   13822     flags_opt_all="$flags_opt_all -qoptimize=0"
   13823     flags_opt_all="$flags_opt_all -qoptimize=1"
   13824     flags_opt_all="$flags_opt_all -qoptimize=2"
   13825     flags_opt_all="$flags_opt_all -qoptimize=3"
   13826     flags_opt_all="$flags_opt_all -qoptimize=4"
   13827     flags_opt_all="$flags_opt_all -qoptimize=5"
   13828     flags_opt_yes="-O2"
   13829     flags_opt_off="-qnooptimize"
   13830     flags_prefer_cppflags="yes"
   13831   else
   13832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13833 $as_echo "no" >&6; }
   13834   fi
   13835 
   13836 
   13837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
   13838 $as_echo_n "checking if compiler is Intel C... " >&6; }
   13839 
   13840       if test -z "$SED"; then
   13841     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13842   fi
   13843   if test -z "$GREP"; then
   13844     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13845   fi
   13846 
   13847   tmp_exp=""
   13848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13849 /* end confdefs.h.  */
   13850 
   13851 
   13852 #ifdef __INTEL_COMPILER
   13853 CURL_DEF_TOKEN __INTEL_COMPILER
   13854 #endif
   13855 
   13856 
   13857 _ACEOF
   13858 if ac_fn_c_try_cpp "$LINENO"; then :
   13859 
   13860     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13861       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13862       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13863       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13864     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
   13865       tmp_exp=""
   13866     fi
   13867 
   13868 fi
   13869 rm -f conftest.err conftest.i conftest.$ac_ext
   13870   if test -z "$tmp_exp"; then
   13871     curl_cv_have_def___INTEL_COMPILER=no
   13872 
   13873   else
   13874     curl_cv_have_def___INTEL_COMPILER=yes
   13875     curl_cv_def___INTEL_COMPILER=$tmp_exp
   13876 
   13877   fi
   13878 
   13879   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
   13880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13881 $as_echo "yes" >&6; }
   13882     compiler_num="$curl_cv_def___INTEL_COMPILER"
   13883 
   13884       if test -z "$SED"; then
   13885     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13886   fi
   13887   if test -z "$GREP"; then
   13888     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13889   fi
   13890 
   13891   tmp_exp=""
   13892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13893 /* end confdefs.h.  */
   13894 
   13895 
   13896 #ifdef __unix__
   13897 CURL_DEF_TOKEN __unix__
   13898 #endif
   13899 
   13900 
   13901 _ACEOF
   13902 if ac_fn_c_try_cpp "$LINENO"; then :
   13903 
   13904     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13905       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13906       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13907       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13908     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
   13909       tmp_exp=""
   13910     fi
   13911 
   13912 fi
   13913 rm -f conftest.err conftest.i conftest.$ac_ext
   13914   if test -z "$tmp_exp"; then
   13915     curl_cv_have_def___unix__=no
   13916 
   13917   else
   13918     curl_cv_have_def___unix__=yes
   13919     curl_cv_def___unix__=$tmp_exp
   13920 
   13921   fi
   13922 
   13923     if test "$curl_cv_have_def___unix__" = "yes"; then
   13924       compiler_id="INTEL_UNIX_C"
   13925       flags_dbg_all="-g -g0"
   13926       flags_dbg_yes="-g"
   13927       flags_dbg_off="-g0"
   13928       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
   13929       flags_opt_yes="-O2"
   13930       flags_opt_off="-O0"
   13931     else
   13932       compiler_id="INTEL_WINDOWS_C"
   13933       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
   13934       flags_dbg_all="$flags_dbg_all /debug"
   13935       flags_dbg_all="$flags_dbg_all /debug:none"
   13936       flags_dbg_all="$flags_dbg_all /debug:minimal"
   13937       flags_dbg_all="$flags_dbg_all /debug:partial"
   13938       flags_dbg_all="$flags_dbg_all /debug:full"
   13939       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
   13940       flags_dbg_all="$flags_dbg_all /debug:extended"
   13941       flags_dbg_yes="/Zi /Oy-"
   13942       flags_dbg_off="/debug:none /Oy-"
   13943       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
   13944       flags_opt_yes="/O2"
   13945       flags_opt_off="/Od"
   13946     fi
   13947   else
   13948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13949 $as_echo "no" >&6; }
   13950   fi
   13951 
   13952 
   13953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
   13954 $as_echo_n "checking if compiler is clang... " >&6; }
   13955 
   13956       if test -z "$SED"; then
   13957     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   13958   fi
   13959   if test -z "$GREP"; then
   13960     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   13961   fi
   13962 
   13963   tmp_exp=""
   13964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13965 /* end confdefs.h.  */
   13966 
   13967 
   13968 #ifdef __clang__
   13969 CURL_DEF_TOKEN __clang__
   13970 #endif
   13971 
   13972 
   13973 _ACEOF
   13974 if ac_fn_c_try_cpp "$LINENO"; then :
   13975 
   13976     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   13977       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   13978       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   13979       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   13980     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
   13981       tmp_exp=""
   13982     fi
   13983 
   13984 fi
   13985 rm -f conftest.err conftest.i conftest.$ac_ext
   13986   if test -z "$tmp_exp"; then
   13987     curl_cv_have_def___clang__=no
   13988 
   13989   else
   13990     curl_cv_have_def___clang__=yes
   13991     curl_cv_def___clang__=$tmp_exp
   13992 
   13993   fi
   13994 
   13995   if test "$curl_cv_have_def___clang__" = "yes"; then
   13996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13997 $as_echo "yes" >&6; }
   13998     compiler_id="CLANG"
   13999     clangver=`$CC -dumpversion`
   14000     clangvhi=`echo $clangver | cut -d . -f1`
   14001     clangvlo=`echo $clangver | cut -d . -f2`
   14002     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
   14003     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   14004     flags_dbg_all="$flags_dbg_all -ggdb"
   14005     flags_dbg_all="$flags_dbg_all -gstabs"
   14006     flags_dbg_all="$flags_dbg_all -gstabs+"
   14007     flags_dbg_all="$flags_dbg_all -gcoff"
   14008     flags_dbg_all="$flags_dbg_all -gxcoff"
   14009     flags_dbg_all="$flags_dbg_all -gdwarf-2"
   14010     flags_dbg_all="$flags_dbg_all -gvms"
   14011     flags_dbg_yes="-g"
   14012     flags_dbg_off="-g0"
   14013     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
   14014     flags_opt_yes="-Os"
   14015     flags_opt_off="-O0"
   14016   else
   14017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14018 $as_echo "no" >&6; }
   14019   fi
   14020 
   14021 
   14022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
   14023 $as_echo_n "checking if compiler is GNU C... " >&6; }
   14024 
   14025       if test -z "$SED"; then
   14026     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14027   fi
   14028   if test -z "$GREP"; then
   14029     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14030   fi
   14031 
   14032   tmp_exp=""
   14033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14034 /* end confdefs.h.  */
   14035 
   14036 
   14037 #ifdef __GNUC__
   14038 CURL_DEF_TOKEN __GNUC__
   14039 #endif
   14040 
   14041 
   14042 _ACEOF
   14043 if ac_fn_c_try_cpp "$LINENO"; then :
   14044 
   14045     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14046       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14047       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14048       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14049     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
   14050       tmp_exp=""
   14051     fi
   14052 
   14053 fi
   14054 rm -f conftest.err conftest.i conftest.$ac_ext
   14055   if test -z "$tmp_exp"; then
   14056     curl_cv_have_def___GNUC__=no
   14057 
   14058   else
   14059     curl_cv_have_def___GNUC__=yes
   14060     curl_cv_def___GNUC__=$tmp_exp
   14061 
   14062   fi
   14063 
   14064   if test "$curl_cv_have_def___GNUC__" = "yes" &&
   14065     test "$compiler_id" = "unknown"; then
   14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14067 $as_echo "yes" >&6; }
   14068     compiler_id="GNU_C"
   14069     gccver=`$CC -dumpversion`
   14070     gccvhi=`echo $gccver | cut -d . -f1`
   14071     gccvlo=`echo $gccver | cut -d . -f2`
   14072     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
   14073     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   14074     flags_dbg_all="$flags_dbg_all -ggdb"
   14075     flags_dbg_all="$flags_dbg_all -gstabs"
   14076     flags_dbg_all="$flags_dbg_all -gstabs+"
   14077     flags_dbg_all="$flags_dbg_all -gcoff"
   14078     flags_dbg_all="$flags_dbg_all -gxcoff"
   14079     flags_dbg_all="$flags_dbg_all -gdwarf-2"
   14080     flags_dbg_all="$flags_dbg_all -gvms"
   14081     flags_dbg_yes="-g"
   14082     flags_dbg_off="-g0"
   14083     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
   14084     flags_opt_yes="-O2"
   14085     flags_opt_off="-O0"
   14086   else
   14087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14088 $as_echo "no" >&6; }
   14089   fi
   14090 
   14091 
   14092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
   14093 $as_echo_n "checking if compiler is LCC... " >&6; }
   14094 
   14095       if test -z "$SED"; then
   14096     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14097   fi
   14098   if test -z "$GREP"; then
   14099     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14100   fi
   14101 
   14102   tmp_exp=""
   14103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14104 /* end confdefs.h.  */
   14105 
   14106 
   14107 #ifdef __LCC__
   14108 CURL_DEF_TOKEN __LCC__
   14109 #endif
   14110 
   14111 
   14112 _ACEOF
   14113 if ac_fn_c_try_cpp "$LINENO"; then :
   14114 
   14115     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14116       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14117       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14118       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14119     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
   14120       tmp_exp=""
   14121     fi
   14122 
   14123 fi
   14124 rm -f conftest.err conftest.i conftest.$ac_ext
   14125   if test -z "$tmp_exp"; then
   14126     curl_cv_have_def___LCC__=no
   14127 
   14128   else
   14129     curl_cv_have_def___LCC__=yes
   14130     curl_cv_def___LCC__=$tmp_exp
   14131 
   14132   fi
   14133 
   14134   if test "$curl_cv_have_def___LCC__" = "yes"; then
   14135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14136 $as_echo "yes" >&6; }
   14137     compiler_id="LCC"
   14138     flags_dbg_all="-g"
   14139     flags_dbg_yes="-g"
   14140     flags_dbg_off=""
   14141     flags_opt_all=""
   14142     flags_opt_yes=""
   14143     flags_opt_off=""
   14144   else
   14145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14146 $as_echo "no" >&6; }
   14147   fi
   14148 
   14149 
   14150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
   14151 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
   14152 
   14153       if test -z "$SED"; then
   14154     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14155   fi
   14156   if test -z "$GREP"; then
   14157     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14158   fi
   14159 
   14160   tmp_exp=""
   14161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14162 /* end confdefs.h.  */
   14163 
   14164 
   14165 #ifdef __GNUC__
   14166 CURL_DEF_TOKEN __GNUC__
   14167 #endif
   14168 
   14169 
   14170 _ACEOF
   14171 if ac_fn_c_try_cpp "$LINENO"; then :
   14172 
   14173     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14174       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14175       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14176       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14177     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
   14178       tmp_exp=""
   14179     fi
   14180 
   14181 fi
   14182 rm -f conftest.err conftest.i conftest.$ac_ext
   14183   if test -z "$tmp_exp"; then
   14184     curl_cv_have_def___GNUC__=no
   14185 
   14186   else
   14187     curl_cv_have_def___GNUC__=yes
   14188     curl_cv_def___GNUC__=$tmp_exp
   14189 
   14190   fi
   14191 
   14192 
   14193       if test -z "$SED"; then
   14194     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14195   fi
   14196   if test -z "$GREP"; then
   14197     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14198   fi
   14199 
   14200   tmp_exp=""
   14201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14202 /* end confdefs.h.  */
   14203 
   14204 
   14205 #ifdef _COMPILER_VERSION
   14206 CURL_DEF_TOKEN _COMPILER_VERSION
   14207 #endif
   14208 
   14209 
   14210 _ACEOF
   14211 if ac_fn_c_try_cpp "$LINENO"; then :
   14212 
   14213     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14214       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14215       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14216       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14217     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
   14218       tmp_exp=""
   14219     fi
   14220 
   14221 fi
   14222 rm -f conftest.err conftest.i conftest.$ac_ext
   14223   if test -z "$tmp_exp"; then
   14224     curl_cv_have_def__COMPILER_VERSION=no
   14225 
   14226   else
   14227     curl_cv_have_def__COMPILER_VERSION=yes
   14228     curl_cv_def__COMPILER_VERSION=$tmp_exp
   14229 
   14230   fi
   14231 
   14232 
   14233       if test -z "$SED"; then
   14234     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14235   fi
   14236   if test -z "$GREP"; then
   14237     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14238   fi
   14239 
   14240   tmp_exp=""
   14241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14242 /* end confdefs.h.  */
   14243 
   14244 
   14245 #ifdef _SGI_COMPILER_VERSION
   14246 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
   14247 #endif
   14248 
   14249 
   14250 _ACEOF
   14251 if ac_fn_c_try_cpp "$LINENO"; then :
   14252 
   14253     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14254       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14255       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14256       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14257     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
   14258       tmp_exp=""
   14259     fi
   14260 
   14261 fi
   14262 rm -f conftest.err conftest.i conftest.$ac_ext
   14263   if test -z "$tmp_exp"; then
   14264     curl_cv_have_def__SGI_COMPILER_VERSION=no
   14265 
   14266   else
   14267     curl_cv_have_def__SGI_COMPILER_VERSION=yes
   14268     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
   14269 
   14270   fi
   14271 
   14272   if test "$curl_cv_have_def___GNUC__" = "no" &&
   14273     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
   14274      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
   14275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14276 $as_echo "yes" >&6; }
   14277     compiler_id="SGI_MIPSPRO_C"
   14278     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   14279     flags_dbg_yes="-g"
   14280     flags_dbg_off="-g0"
   14281     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
   14282     flags_opt_yes="-O2"
   14283     flags_opt_off="-O0"
   14284   else
   14285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14286 $as_echo "no" >&6; }
   14287   fi
   14288 
   14289 
   14290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
   14291 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
   14292 
   14293       if test -z "$SED"; then
   14294     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14295   fi
   14296   if test -z "$GREP"; then
   14297     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14298   fi
   14299 
   14300   tmp_exp=""
   14301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14302 /* end confdefs.h.  */
   14303 
   14304 
   14305 #ifdef __GNUC__
   14306 CURL_DEF_TOKEN __GNUC__
   14307 #endif
   14308 
   14309 
   14310 _ACEOF
   14311 if ac_fn_c_try_cpp "$LINENO"; then :
   14312 
   14313     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14314       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14315       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14316       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14317     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
   14318       tmp_exp=""
   14319     fi
   14320 
   14321 fi
   14322 rm -f conftest.err conftest.i conftest.$ac_ext
   14323   if test -z "$tmp_exp"; then
   14324     curl_cv_have_def___GNUC__=no
   14325 
   14326   else
   14327     curl_cv_have_def___GNUC__=yes
   14328     curl_cv_def___GNUC__=$tmp_exp
   14329 
   14330   fi
   14331 
   14332 
   14333       if test -z "$SED"; then
   14334     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14335   fi
   14336   if test -z "$GREP"; then
   14337     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14338   fi
   14339 
   14340   tmp_exp=""
   14341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14342 /* end confdefs.h.  */
   14343 
   14344 
   14345 #ifdef __sgi
   14346 CURL_DEF_TOKEN __sgi
   14347 #endif
   14348 
   14349 
   14350 _ACEOF
   14351 if ac_fn_c_try_cpp "$LINENO"; then :
   14352 
   14353     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14354       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14355       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14356       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14357     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
   14358       tmp_exp=""
   14359     fi
   14360 
   14361 fi
   14362 rm -f conftest.err conftest.i conftest.$ac_ext
   14363   if test -z "$tmp_exp"; then
   14364     curl_cv_have_def___sgi=no
   14365 
   14366   else
   14367     curl_cv_have_def___sgi=yes
   14368     curl_cv_def___sgi=$tmp_exp
   14369 
   14370   fi
   14371 
   14372   if test "$curl_cv_have_def___GNUC__" = "no" &&
   14373     test "$curl_cv_have_def___sgi" = "yes" &&
   14374     test "$compiler_id" = "unknown"; then
   14375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14376 $as_echo "yes" >&6; }
   14377     compiler_id="SGI_MIPS_C"
   14378     flags_dbg_all="-g -g0 -g1 -g2 -g3"
   14379     flags_dbg_yes="-g"
   14380     flags_dbg_off="-g0"
   14381     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
   14382     flags_opt_yes="-O2"
   14383     flags_opt_off="-O0"
   14384   else
   14385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14386 $as_echo "no" >&6; }
   14387   fi
   14388 
   14389 
   14390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
   14391 $as_echo_n "checking if compiler is SunPro C... " >&6; }
   14392 
   14393       if test -z "$SED"; then
   14394     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14395   fi
   14396   if test -z "$GREP"; then
   14397     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14398   fi
   14399 
   14400   tmp_exp=""
   14401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14402 /* end confdefs.h.  */
   14403 
   14404 
   14405 #ifdef __SUNPRO_C
   14406 CURL_DEF_TOKEN __SUNPRO_C
   14407 #endif
   14408 
   14409 
   14410 _ACEOF
   14411 if ac_fn_c_try_cpp "$LINENO"; then :
   14412 
   14413     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14414       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14415       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14416       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14417     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
   14418       tmp_exp=""
   14419     fi
   14420 
   14421 fi
   14422 rm -f conftest.err conftest.i conftest.$ac_ext
   14423   if test -z "$tmp_exp"; then
   14424     curl_cv_have_def___SUNPRO_C=no
   14425 
   14426   else
   14427     curl_cv_have_def___SUNPRO_C=yes
   14428     curl_cv_def___SUNPRO_C=$tmp_exp
   14429 
   14430   fi
   14431 
   14432   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
   14433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14434 $as_echo "yes" >&6; }
   14435     compiler_id="SUNPRO_C"
   14436     flags_dbg_all="-g -s"
   14437     flags_dbg_yes="-g"
   14438     flags_dbg_off="-s"
   14439     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
   14440     flags_opt_yes="-xO2"
   14441     flags_opt_off=""
   14442   else
   14443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14444 $as_echo "no" >&6; }
   14445   fi
   14446 
   14447 
   14448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
   14449 $as_echo_n "checking if compiler is Tiny C... " >&6; }
   14450 
   14451       if test -z "$SED"; then
   14452     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14453   fi
   14454   if test -z "$GREP"; then
   14455     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14456   fi
   14457 
   14458   tmp_exp=""
   14459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14460 /* end confdefs.h.  */
   14461 
   14462 
   14463 #ifdef __TINYC__
   14464 CURL_DEF_TOKEN __TINYC__
   14465 #endif
   14466 
   14467 
   14468 _ACEOF
   14469 if ac_fn_c_try_cpp "$LINENO"; then :
   14470 
   14471     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14472       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14473       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14474       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14475     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
   14476       tmp_exp=""
   14477     fi
   14478 
   14479 fi
   14480 rm -f conftest.err conftest.i conftest.$ac_ext
   14481   if test -z "$tmp_exp"; then
   14482     curl_cv_have_def___TINYC__=no
   14483 
   14484   else
   14485     curl_cv_have_def___TINYC__=yes
   14486     curl_cv_def___TINYC__=$tmp_exp
   14487 
   14488   fi
   14489 
   14490   if test "$curl_cv_have_def___TINYC__" = "yes"; then
   14491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14492 $as_echo "yes" >&6; }
   14493     compiler_id="TINY_C"
   14494     flags_dbg_all="-g -b"
   14495     flags_dbg_yes="-g"
   14496     flags_dbg_off=""
   14497     flags_opt_all=""
   14498     flags_opt_yes=""
   14499     flags_opt_off=""
   14500   else
   14501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14502 $as_echo "no" >&6; }
   14503   fi
   14504 
   14505 
   14506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
   14507 $as_echo_n "checking if compiler is Watcom C... " >&6; }
   14508 
   14509       if test -z "$SED"; then
   14510     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14511   fi
   14512   if test -z "$GREP"; then
   14513     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14514   fi
   14515 
   14516   tmp_exp=""
   14517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14518 /* end confdefs.h.  */
   14519 
   14520 
   14521 #ifdef __WATCOMC__
   14522 CURL_DEF_TOKEN __WATCOMC__
   14523 #endif
   14524 
   14525 
   14526 _ACEOF
   14527 if ac_fn_c_try_cpp "$LINENO"; then :
   14528 
   14529     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14530       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14531       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14532       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14533     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
   14534       tmp_exp=""
   14535     fi
   14536 
   14537 fi
   14538 rm -f conftest.err conftest.i conftest.$ac_ext
   14539   if test -z "$tmp_exp"; then
   14540     curl_cv_have_def___WATCOMC__=no
   14541 
   14542   else
   14543     curl_cv_have_def___WATCOMC__=yes
   14544     curl_cv_def___WATCOMC__=$tmp_exp
   14545 
   14546   fi
   14547 
   14548   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
   14549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14550 $as_echo "yes" >&6; }
   14551 
   14552       if test -z "$SED"; then
   14553     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
   14554   fi
   14555   if test -z "$GREP"; then
   14556     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
   14557   fi
   14558 
   14559   tmp_exp=""
   14560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14561 /* end confdefs.h.  */
   14562 
   14563 
   14564 #ifdef __UNIX__
   14565 CURL_DEF_TOKEN __UNIX__
   14566 #endif
   14567 
   14568 
   14569 _ACEOF
   14570 if ac_fn_c_try_cpp "$LINENO"; then :
   14571 
   14572     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
   14573       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
   14574       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
   14575       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
   14576     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
   14577       tmp_exp=""
   14578     fi
   14579 
   14580 fi
   14581 rm -f conftest.err conftest.i conftest.$ac_ext
   14582   if test -z "$tmp_exp"; then
   14583     curl_cv_have_def___UNIX__=no
   14584 
   14585   else
   14586     curl_cv_have_def___UNIX__=yes
   14587     curl_cv_def___UNIX__=$tmp_exp
   14588 
   14589   fi
   14590 
   14591     if test "$curl_cv_have_def___UNIX__" = "yes"; then
   14592       compiler_id="WATCOM_UNIX_C"
   14593       flags_dbg_all="-g1 -g1+ -g2 -g3"
   14594       flags_dbg_yes="-g2"
   14595       flags_dbg_off=""
   14596       flags_opt_all="-O0 -O1 -O2 -O3"
   14597       flags_opt_yes="-O2"
   14598       flags_opt_off="-O0"
   14599     else
   14600       compiler_id="WATCOM_WINDOWS_C"
   14601       flags_dbg_all=""
   14602       flags_dbg_yes=""
   14603       flags_dbg_off=""
   14604       flags_opt_all=""
   14605       flags_opt_yes=""
   14606       flags_opt_off=""
   14607     fi
   14608   else
   14609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14610 $as_echo "no" >&6; }
   14611   fi
   14612 
   14613   #
   14614   if test "$compiler_id" = "unknown"; then
   14615   cat <<_EOF 1>&2
   14616 ***
   14617 *** Warning: This configure script does not have information about the
   14618 *** compiler you are using, relative to the flags required to enable or
   14619 *** disable generation of debug info, optimization options or warnings.
   14620 ***
   14621 *** Whatever settings are present in CFLAGS will be used for this run.
   14622 ***
   14623 *** If you wish to help the c-ares project to better support your compiler
   14624 *** you can report this and the required info on the c-ares development
   14625 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
   14626 ***
   14627 _EOF
   14628   fi
   14629 
   14630 
   14631 squeeze() {
   14632   _sqz_result=""
   14633   eval _sqz_input=\$$1
   14634   for _sqz_token in $_sqz_input; do
   14635     if test -z "$_sqz_result"; then
   14636       _sqz_result="$_sqz_token"
   14637     else
   14638       _sqz_result="$_sqz_result $_sqz_token"
   14639     fi
   14640   done
   14641   eval $1=\$_sqz_result
   14642   return 0
   14643 }
   14644 
   14645 
   14646       #
   14647   if test "$compiler_id" != "unknown"; then
   14648     #
   14649     if test "$compiler_id" = "GNU_C" ||
   14650       test "$compiler_id" = "CLANG"; then
   14651 
   14652       if test "$compiler_id" = "GNU_C" ||
   14653     test "$compiler_id" = "CLANG"; then
   14654     tmp_has_include="no"
   14655     tmp_chg_FLAGS="$CFLAGS"
   14656     for word1 in $tmp_chg_FLAGS; do
   14657       case "$word1" in
   14658         -I*)
   14659           tmp_has_include="yes"
   14660           ;;
   14661       esac
   14662     done
   14663     if test "$tmp_has_include" = "yes"; then
   14664       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
   14665       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
   14666       CFLAGS="$tmp_chg_FLAGS"
   14667       squeeze CFLAGS
   14668     fi
   14669     tmp_has_include="no"
   14670     tmp_chg_FLAGS="$CPPFLAGS"
   14671     for word1 in $tmp_chg_FLAGS; do
   14672       case "$word1" in
   14673         -I*)
   14674           tmp_has_include="yes"
   14675           ;;
   14676       esac
   14677     done
   14678     if test "$tmp_has_include" = "yes"; then
   14679       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
   14680       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
   14681       CPPFLAGS="$tmp_chg_FLAGS"
   14682       squeeze CPPFLAGS
   14683     fi
   14684   fi
   14685 
   14686     fi
   14687     #
   14688     tmp_save_CPPFLAGS="$CPPFLAGS"
   14689     tmp_save_CFLAGS="$CFLAGS"
   14690     tmp_CPPFLAGS=""
   14691     tmp_CFLAGS=""
   14692     #
   14693     case "$compiler_id" in
   14694         #
   14695       CLANG)
   14696         #
   14697                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
   14698         ;;
   14699         #
   14700       DEC_C)
   14701         #
   14702                 tmp_CFLAGS="$tmp_CFLAGS -std1"
   14703                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
   14704                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
   14705                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
   14706         ;;
   14707         #
   14708       GNU_C)
   14709         #
   14710                 tmp_CFLAGS="$tmp_CFLAGS"
   14711         ;;
   14712         #
   14713       HP_UX_C)
   14714         #
   14715                 tmp_CFLAGS="$tmp_CFLAGS -z"
   14716                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
   14717         ;;
   14718         #
   14719       IBM_C)
   14720         #
   14721                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
   14722                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
   14723                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
   14724         ;;
   14725         #
   14726       INTEL_UNIX_C)
   14727         #
   14728                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
   14729                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
   14730                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
   14731         ;;
   14732         #
   14733       INTEL_WINDOWS_C)
   14734         #
   14735                 tmp_CFLAGS="$tmp_CFLAGS"
   14736         ;;
   14737         #
   14738       LCC)
   14739         #
   14740                 tmp_CFLAGS="$tmp_CFLAGS -n"
   14741         ;;
   14742         #
   14743       SGI_MIPS_C)
   14744         #
   14745                 tmp_CFLAGS="$tmp_CFLAGS"
   14746         ;;
   14747         #
   14748       SGI_MIPSPRO_C)
   14749         #
   14750                 tmp_CFLAGS="$tmp_CFLAGS"
   14751         ;;
   14752         #
   14753       SUNPRO_C)
   14754         #
   14755                 tmp_CFLAGS="$tmp_CFLAGS"
   14756         ;;
   14757         #
   14758       TINY_C)
   14759         #
   14760                 tmp_CFLAGS="$tmp_CFLAGS"
   14761         ;;
   14762         #
   14763       WATCOM_UNIX_C)
   14764         #
   14765                 tmp_CFLAGS="$tmp_CFLAGS"
   14766         ;;
   14767         #
   14768       WATCOM_WINDOWS_C)
   14769         #
   14770                 tmp_CFLAGS="$tmp_CFLAGS"
   14771         ;;
   14772         #
   14773     esac
   14774     #
   14775     squeeze tmp_CPPFLAGS
   14776     squeeze tmp_CFLAGS
   14777     #
   14778     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
   14779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
   14780 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
   14781       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
   14782       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
   14783       squeeze CPPFLAGS
   14784       squeeze CFLAGS
   14785 
   14786     tmp_compiler_works="unknown"
   14787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14788 /* end confdefs.h.  */
   14789 
   14790 
   14791 
   14792 int main (void)
   14793 {
   14794 
   14795       int i = 1;
   14796       return i;
   14797 
   14798  ;
   14799  return 0;
   14800 }
   14801 
   14802 _ACEOF
   14803 if ac_fn_c_try_compile "$LINENO"; then :
   14804 
   14805     tmp_compiler_works="yes"
   14806 
   14807 else
   14808 
   14809     tmp_compiler_works="no"
   14810     echo " " >&6
   14811     sed 's/^/cc-fail: /' conftest.err >&6
   14812     echo " " >&6
   14813 
   14814 fi
   14815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14816     if test "$tmp_compiler_works" = "yes"; then
   14817     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14818 /* end confdefs.h.  */
   14819 
   14820 
   14821 
   14822 int main (void)
   14823 {
   14824 
   14825         int i = 1;
   14826         return i;
   14827 
   14828  ;
   14829  return 0;
   14830 }
   14831 
   14832 _ACEOF
   14833 if ac_fn_c_try_link "$LINENO"; then :
   14834 
   14835       tmp_compiler_works="yes"
   14836 
   14837 else
   14838 
   14839       tmp_compiler_works="no"
   14840       echo " " >&6
   14841       sed 's/^/link-fail: /' conftest.err >&6
   14842       echo " " >&6
   14843 
   14844 fi
   14845 rm -f core conftest.err conftest.$ac_objext \
   14846     conftest$ac_exeext conftest.$ac_ext
   14847   fi
   14848     if test "x$cross_compiling" != "xyes" &&
   14849     test "$tmp_compiler_works" = "yes"; then
   14850     if test "$cross_compiling" = yes; then :
   14851   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14853 as_fn_error $? "cannot run test program while cross compiling
   14854 See \`config.log' for more details" "$LINENO" 5; }
   14855 else
   14856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14857 /* end confdefs.h.  */
   14858 
   14859 
   14860 #       ifdef __STDC__
   14861 #         include <stdlib.h>
   14862 #       endif
   14863 
   14864 int main (void)
   14865 {
   14866 
   14867         int i = 0;
   14868         exit(i);
   14869 
   14870  ;
   14871  return 0;
   14872 }
   14873 
   14874 _ACEOF
   14875 if ac_fn_c_try_run "$LINENO"; then :
   14876 
   14877       tmp_compiler_works="yes"
   14878 
   14879 else
   14880 
   14881       tmp_compiler_works="no"
   14882       echo " " >&6
   14883       echo "run-fail: test program exited with status $ac_status" >&6
   14884       echo " " >&6
   14885 
   14886 fi
   14887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14888   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14889 fi
   14890 
   14891   fi
   14892     if test "$tmp_compiler_works" = "yes"; then
   14893 
   14894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14895 $as_echo "yes" >&6; }
   14896         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
   14897 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
   14898 
   14899   else
   14900 
   14901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14902 $as_echo "no" >&6; }
   14903         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
   14904 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
   14905                 CPPFLAGS="$tmp_save_CPPFLAGS"
   14906         CFLAGS="$tmp_save_CFLAGS"
   14907 
   14908   fi
   14909 
   14910     fi
   14911     #
   14912   fi
   14913 
   14914 
   14915         #
   14916   if test "$compiler_id" != "unknown"; then
   14917     #
   14918     tmp_save_CFLAGS="$CFLAGS"
   14919     tmp_save_CPPFLAGS="$CPPFLAGS"
   14920     #
   14921     tmp_options=""
   14922     tmp_CFLAGS="$CFLAGS"
   14923     tmp_CPPFLAGS="$CPPFLAGS"
   14924 
   14925     ac_var_stripped=""
   14926   for word1 in $tmp_CFLAGS; do
   14927     ac_var_strip_word="no"
   14928     for word2 in $flags_dbg_all; do
   14929       if test "$word1" = "$word2"; then
   14930         ac_var_strip_word="yes"
   14931       fi
   14932     done
   14933     if test "$ac_var_strip_word" = "no"; then
   14934       ac_var_stripped="$ac_var_stripped $word1"
   14935     fi
   14936   done
   14937     tmp_CFLAGS="$ac_var_stripped"
   14938   squeeze tmp_CFLAGS
   14939 
   14940 
   14941     ac_var_stripped=""
   14942   for word1 in $tmp_CPPFLAGS; do
   14943     ac_var_strip_word="no"
   14944     for word2 in $flags_dbg_all; do
   14945       if test "$word1" = "$word2"; then
   14946         ac_var_strip_word="yes"
   14947       fi
   14948     done
   14949     if test "$ac_var_strip_word" = "no"; then
   14950       ac_var_stripped="$ac_var_stripped $word1"
   14951     fi
   14952   done
   14953     tmp_CPPFLAGS="$ac_var_stripped"
   14954   squeeze tmp_CPPFLAGS
   14955 
   14956     #
   14957     if test "$want_debug" = "yes"; then
   14958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
   14959 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
   14960       tmp_options="$flags_dbg_yes"
   14961     fi
   14962     if test "$want_debug" = "no"; then
   14963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
   14964 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
   14965       tmp_options="$flags_dbg_off"
   14966     fi
   14967     #
   14968     if test "$flags_prefer_cppflags" = "yes"; then
   14969       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
   14970       CFLAGS="$tmp_CFLAGS"
   14971     else
   14972       CPPFLAGS="$tmp_CPPFLAGS"
   14973       CFLAGS="$tmp_CFLAGS $tmp_options"
   14974     fi
   14975     squeeze CPPFLAGS
   14976     squeeze CFLAGS
   14977 
   14978     tmp_compiler_works="unknown"
   14979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14980 /* end confdefs.h.  */
   14981 
   14982 
   14983 
   14984 int main (void)
   14985 {
   14986 
   14987       int i = 1;
   14988       return i;
   14989 
   14990  ;
   14991  return 0;
   14992 }
   14993 
   14994 _ACEOF
   14995 if ac_fn_c_try_compile "$LINENO"; then :
   14996 
   14997     tmp_compiler_works="yes"
   14998 
   14999 else
   15000 
   15001     tmp_compiler_works="no"
   15002     echo " " >&6
   15003     sed 's/^/cc-fail: /' conftest.err >&6
   15004     echo " " >&6
   15005 
   15006 fi
   15007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15008     if test "$tmp_compiler_works" = "yes"; then
   15009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15010 /* end confdefs.h.  */
   15011 
   15012 
   15013 
   15014 int main (void)
   15015 {
   15016 
   15017         int i = 1;
   15018         return i;
   15019 
   15020  ;
   15021  return 0;
   15022 }
   15023 
   15024 _ACEOF
   15025 if ac_fn_c_try_link "$LINENO"; then :
   15026 
   15027       tmp_compiler_works="yes"
   15028 
   15029 else
   15030 
   15031       tmp_compiler_works="no"
   15032       echo " " >&6
   15033       sed 's/^/link-fail: /' conftest.err >&6
   15034       echo " " >&6
   15035 
   15036 fi
   15037 rm -f core conftest.err conftest.$ac_objext \
   15038     conftest$ac_exeext conftest.$ac_ext
   15039   fi
   15040     if test "x$cross_compiling" != "xyes" &&
   15041     test "$tmp_compiler_works" = "yes"; then
   15042     if test "$cross_compiling" = yes; then :
   15043   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15045 as_fn_error $? "cannot run test program while cross compiling
   15046 See \`config.log' for more details" "$LINENO" 5; }
   15047 else
   15048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15049 /* end confdefs.h.  */
   15050 
   15051 
   15052 #       ifdef __STDC__
   15053 #         include <stdlib.h>
   15054 #       endif
   15055 
   15056 int main (void)
   15057 {
   15058 
   15059         int i = 0;
   15060         exit(i);
   15061 
   15062  ;
   15063  return 0;
   15064 }
   15065 
   15066 _ACEOF
   15067 if ac_fn_c_try_run "$LINENO"; then :
   15068 
   15069       tmp_compiler_works="yes"
   15070 
   15071 else
   15072 
   15073       tmp_compiler_works="no"
   15074       echo " " >&6
   15075       echo "run-fail: test program exited with status $ac_status" >&6
   15076       echo " " >&6
   15077 
   15078 fi
   15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15080   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15081 fi
   15082 
   15083   fi
   15084     if test "$tmp_compiler_works" = "yes"; then
   15085 
   15086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15087 $as_echo "yes" >&6; }
   15088       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
   15089 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
   15090 
   15091   else
   15092 
   15093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15094 $as_echo "no" >&6; }
   15095       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
   15096 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
   15097             CPPFLAGS="$tmp_save_CPPFLAGS"
   15098       CFLAGS="$tmp_save_CFLAGS"
   15099 
   15100   fi
   15101 
   15102     #
   15103   fi
   15104 
   15105 
   15106         #
   15107   if test "$compiler_id" != "unknown"; then
   15108     #
   15109     tmp_save_CFLAGS="$CFLAGS"
   15110     tmp_save_CPPFLAGS="$CPPFLAGS"
   15111     #
   15112     tmp_options=""
   15113     tmp_CFLAGS="$CFLAGS"
   15114     tmp_CPPFLAGS="$CPPFLAGS"
   15115     honor_optimize_option="yes"
   15116     #
   15117                         #
   15118     if test "$want_optimize" = "assume_no" ||
   15119        test "$want_optimize" = "assume_yes"; then
   15120       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
   15121 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
   15122 
   15123 
   15124   ac_var_match_word="no"
   15125   for word1 in $tmp_CFLAGS; do
   15126     for word2 in $flags_opt_all; do
   15127       if test "$word1" = "$word2"; then
   15128         ac_var_match_word="yes"
   15129       fi
   15130     done
   15131   done
   15132 
   15133   if test "$ac_var_match_word" = "yes"; then
   15134 
   15135         honor_optimize_option="no"
   15136 
   15137 
   15138   fi
   15139 
   15140 
   15141 
   15142   ac_var_match_word="no"
   15143   for word1 in $tmp_CPPFLAGS; do
   15144     for word2 in $flags_opt_all; do
   15145       if test "$word1" = "$word2"; then
   15146         ac_var_match_word="yes"
   15147       fi
   15148     done
   15149   done
   15150 
   15151   if test "$ac_var_match_word" = "yes"; then
   15152 
   15153         honor_optimize_option="no"
   15154 
   15155 
   15156   fi
   15157 
   15158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
   15159 $as_echo "$honor_optimize_option" >&6; }
   15160       if test "$honor_optimize_option" = "yes"; then
   15161         if test "$want_optimize" = "assume_yes"; then
   15162           want_optimize="yes"
   15163         fi
   15164         if test "$want_optimize" = "assume_no"; then
   15165           want_optimize="no"
   15166         fi
   15167       fi
   15168     fi
   15169     #
   15170     if test "$honor_optimize_option" = "yes"; then
   15171 
   15172     ac_var_stripped=""
   15173   for word1 in $tmp_CFLAGS; do
   15174     ac_var_strip_word="no"
   15175     for word2 in $flags_opt_all; do
   15176       if test "$word1" = "$word2"; then
   15177         ac_var_strip_word="yes"
   15178       fi
   15179     done
   15180     if test "$ac_var_strip_word" = "no"; then
   15181       ac_var_stripped="$ac_var_stripped $word1"
   15182     fi
   15183   done
   15184     tmp_CFLAGS="$ac_var_stripped"
   15185   squeeze tmp_CFLAGS
   15186 
   15187 
   15188     ac_var_stripped=""
   15189   for word1 in $tmp_CPPFLAGS; do
   15190     ac_var_strip_word="no"
   15191     for word2 in $flags_opt_all; do
   15192       if test "$word1" = "$word2"; then
   15193         ac_var_strip_word="yes"
   15194       fi
   15195     done
   15196     if test "$ac_var_strip_word" = "no"; then
   15197       ac_var_stripped="$ac_var_stripped $word1"
   15198     fi
   15199   done
   15200     tmp_CPPFLAGS="$ac_var_stripped"
   15201   squeeze tmp_CPPFLAGS
   15202 
   15203       if test "$want_optimize" = "yes"; then
   15204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
   15205 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
   15206         tmp_options="$flags_opt_yes"
   15207       fi
   15208       if test "$want_optimize" = "no"; then
   15209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
   15210 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
   15211         tmp_options="$flags_opt_off"
   15212       fi
   15213       if test "$flags_prefer_cppflags" = "yes"; then
   15214         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
   15215         CFLAGS="$tmp_CFLAGS"
   15216       else
   15217         CPPFLAGS="$tmp_CPPFLAGS"
   15218         CFLAGS="$tmp_CFLAGS $tmp_options"
   15219       fi
   15220       squeeze CPPFLAGS
   15221       squeeze CFLAGS
   15222 
   15223     tmp_compiler_works="unknown"
   15224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15225 /* end confdefs.h.  */
   15226 
   15227 
   15228 
   15229 int main (void)
   15230 {
   15231 
   15232       int i = 1;
   15233       return i;
   15234 
   15235  ;
   15236  return 0;
   15237 }
   15238 
   15239 _ACEOF
   15240 if ac_fn_c_try_compile "$LINENO"; then :
   15241 
   15242     tmp_compiler_works="yes"
   15243 
   15244 else
   15245 
   15246     tmp_compiler_works="no"
   15247     echo " " >&6
   15248     sed 's/^/cc-fail: /' conftest.err >&6
   15249     echo " " >&6
   15250 
   15251 fi
   15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15253     if test "$tmp_compiler_works" = "yes"; then
   15254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15255 /* end confdefs.h.  */
   15256 
   15257 
   15258 
   15259 int main (void)
   15260 {
   15261 
   15262         int i = 1;
   15263         return i;
   15264 
   15265  ;
   15266  return 0;
   15267 }
   15268 
   15269 _ACEOF
   15270 if ac_fn_c_try_link "$LINENO"; then :
   15271 
   15272       tmp_compiler_works="yes"
   15273 
   15274 else
   15275 
   15276       tmp_compiler_works="no"
   15277       echo " " >&6
   15278       sed 's/^/link-fail: /' conftest.err >&6
   15279       echo " " >&6
   15280 
   15281 fi
   15282 rm -f core conftest.err conftest.$ac_objext \
   15283     conftest$ac_exeext conftest.$ac_ext
   15284   fi
   15285     if test "x$cross_compiling" != "xyes" &&
   15286     test "$tmp_compiler_works" = "yes"; then
   15287     if test "$cross_compiling" = yes; then :
   15288   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15290 as_fn_error $? "cannot run test program while cross compiling
   15291 See \`config.log' for more details" "$LINENO" 5; }
   15292 else
   15293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15294 /* end confdefs.h.  */
   15295 
   15296 
   15297 #       ifdef __STDC__
   15298 #         include <stdlib.h>
   15299 #       endif
   15300 
   15301 int main (void)
   15302 {
   15303 
   15304         int i = 0;
   15305         exit(i);
   15306 
   15307  ;
   15308  return 0;
   15309 }
   15310 
   15311 _ACEOF
   15312 if ac_fn_c_try_run "$LINENO"; then :
   15313 
   15314       tmp_compiler_works="yes"
   15315 
   15316 else
   15317 
   15318       tmp_compiler_works="no"
   15319       echo " " >&6
   15320       echo "run-fail: test program exited with status $ac_status" >&6
   15321       echo " " >&6
   15322 
   15323 fi
   15324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15325   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15326 fi
   15327 
   15328   fi
   15329     if test "$tmp_compiler_works" = "yes"; then
   15330 
   15331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15332 $as_echo "yes" >&6; }
   15333         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
   15334 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
   15335 
   15336   else
   15337 
   15338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15339 $as_echo "no" >&6; }
   15340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
   15341 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
   15342                 CPPFLAGS="$tmp_save_CPPFLAGS"
   15343         CFLAGS="$tmp_save_CFLAGS"
   15344 
   15345   fi
   15346 
   15347     fi
   15348     #
   15349   fi
   15350 
   15351 
   15352         #
   15353   if test "$compiler_id" != "unknown"; then
   15354     #
   15355     tmp_save_CPPFLAGS="$CPPFLAGS"
   15356     tmp_save_CFLAGS="$CFLAGS"
   15357     tmp_CPPFLAGS=""
   15358     tmp_CFLAGS=""
   15359     #
   15360     case "$compiler_id" in
   15361         #
   15362       CLANG)
   15363         #
   15364         if test "$want_warnings" = "yes"; then
   15365                               tmp_CFLAGS="$tmp_CFLAGS -pedantic"
   15366           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
   15367           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
   15368           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
   15369           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
   15370           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
   15371           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
   15372           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
   15373           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
   15374           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
   15375           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
   15376           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
   15377           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
   15378           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
   15379           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
   15380           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
   15381           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
   15382           #
   15383                     if test "$compiler_num" -ge "101"; then
   15384             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
   15385           fi
   15386         fi
   15387         ;;
   15388         #
   15389       DEC_C)
   15390         #
   15391         if test "$want_warnings" = "yes"; then
   15392                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
   15393         fi
   15394         ;;
   15395         #
   15396       GNU_C)
   15397         #
   15398         if test "$want_warnings" = "yes"; then
   15399           #
   15400                               if test "x$cross_compiling" != "xyes" ||
   15401             test "$compiler_num" -ge "300"; then
   15402             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
   15403           fi
   15404           #
   15405                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
   15406           #
   15407                     if test "$compiler_num" -ge "104"; then
   15408             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
   15409                         if test "x$cross_compiling" != "xyes" ||
   15410               test "$compiler_num" -ge "300"; then
   15411               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
   15412             fi
   15413           fi
   15414           #
   15415                     if test "$compiler_num" -ge "207"; then
   15416             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
   15417                         if test "x$cross_compiling" != "xyes" ||
   15418               test "$compiler_num" -ge "300"; then
   15419               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
   15420               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
   15421             fi
   15422           fi
   15423           #
   15424                     if test "$compiler_num" -ge "295"; then
   15425             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
   15426           fi
   15427           #
   15428                     if test "$compiler_num" -ge "296"; then
   15429             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
   15430             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
   15431                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
   15432           fi
   15433           #
   15434                     if test "$compiler_num" -ge "297"; then
   15435             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
   15436           fi
   15437           #
   15438                     if test "$compiler_num" -ge "300"; then
   15439                                                             tmp_CFLAGS="$tmp_CFLAGS"
   15440           fi
   15441           #
   15442                     if test "$compiler_num" -ge "303"; then
   15443             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
   15444           fi
   15445           #
   15446                     if test "$compiler_num" -ge "304"; then
   15447             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
   15448           fi
   15449           #
   15450                     if test "$compiler_num" -ge "402"; then
   15451             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
   15452           fi
   15453           #
   15454                     if test "$compiler_num" -ge "403"; then
   15455             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
   15456             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
   15457             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
   15458             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
   15459           fi
   15460           #
   15461         fi
   15462         #
   15463                 if test "$compiler_num" -ge "300"; then
   15464           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
   15465         else
   15466                               if test "x$cross_compiling" = "xyes"; then
   15467             if test "$compiler_num" -ge "104"; then
   15468                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
   15469             fi
   15470             if test "$compiler_num" -ge "207"; then
   15471                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
   15472               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
   15473             fi
   15474           fi
   15475         fi
   15476         ;;
   15477         #
   15478       HP_UX_C)
   15479         #
   15480         if test "$want_warnings" = "yes"; then
   15481                     tmp_CFLAGS="$tmp_CFLAGS +w1"
   15482         fi
   15483         ;;
   15484         #
   15485       IBM_C)
   15486         #
   15487                 tmp_CFLAGS="$tmp_CFLAGS"
   15488         ;;
   15489         #
   15490       INTEL_UNIX_C)
   15491         #
   15492         if test "$want_warnings" = "yes"; then
   15493           if test "$compiler_num" -gt "600"; then
   15494                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
   15495                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
   15496                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
   15497                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
   15498                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
   15499                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
   15500                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
   15501                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
   15502                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
   15503                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
   15504                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
   15505           fi
   15506         fi
   15507                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
   15508                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
   15509                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
   15510                 if test "$compiler_num" -ge "1000"; then
   15511                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
   15512         fi
   15513         ;;
   15514         #
   15515       INTEL_WINDOWS_C)
   15516         #
   15517                 tmp_CFLAGS="$tmp_CFLAGS"
   15518         ;;
   15519         #
   15520       LCC)
   15521         #
   15522         if test "$want_warnings" = "yes"; then
   15523                                                   tmp_CFLAGS="$tmp_CFLAGS"
   15524         fi
   15525         ;;
   15526         #
   15527       SGI_MIPS_C)
   15528         #
   15529         if test "$want_warnings" = "yes"; then
   15530                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
   15531         fi
   15532         ;;
   15533         #
   15534       SGI_MIPSPRO_C)
   15535         #
   15536         if test "$want_warnings" = "yes"; then
   15537                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
   15538                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
   15539         fi
   15540         ;;
   15541         #
   15542       SUNPRO_C)
   15543         #
   15544         if test "$want_warnings" = "yes"; then
   15545                     tmp_CFLAGS="$tmp_CFLAGS -v"
   15546         fi
   15547         ;;
   15548         #
   15549       TINY_C)
   15550         #
   15551         if test "$want_warnings" = "yes"; then
   15552                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
   15553                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
   15554                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
   15555         fi
   15556         ;;
   15557         #
   15558       WATCOM_UNIX_C)
   15559         #
   15560         if test "$want_warnings" = "yes"; then
   15561                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
   15562         fi
   15563         ;;
   15564         #
   15565       WATCOM_WINDOWS_C)
   15566         #
   15567                 tmp_CFLAGS="$tmp_CFLAGS"
   15568         ;;
   15569         #
   15570     esac
   15571     #
   15572     squeeze tmp_CPPFLAGS
   15573     squeeze tmp_CFLAGS
   15574     #
   15575     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
   15576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
   15577 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
   15578       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
   15579       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
   15580       squeeze CPPFLAGS
   15581       squeeze CFLAGS
   15582 
   15583     tmp_compiler_works="unknown"
   15584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15585 /* end confdefs.h.  */
   15586 
   15587 
   15588 
   15589 int main (void)
   15590 {
   15591 
   15592       int i = 1;
   15593       return i;
   15594 
   15595  ;
   15596  return 0;
   15597 }
   15598 
   15599 _ACEOF
   15600 if ac_fn_c_try_compile "$LINENO"; then :
   15601 
   15602     tmp_compiler_works="yes"
   15603 
   15604 else
   15605 
   15606     tmp_compiler_works="no"
   15607     echo " " >&6
   15608     sed 's/^/cc-fail: /' conftest.err >&6
   15609     echo " " >&6
   15610 
   15611 fi
   15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15613     if test "$tmp_compiler_works" = "yes"; then
   15614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15615 /* end confdefs.h.  */
   15616 
   15617 
   15618 
   15619 int main (void)
   15620 {
   15621 
   15622         int i = 1;
   15623         return i;
   15624 
   15625  ;
   15626  return 0;
   15627 }
   15628 
   15629 _ACEOF
   15630 if ac_fn_c_try_link "$LINENO"; then :
   15631 
   15632       tmp_compiler_works="yes"
   15633 
   15634 else
   15635 
   15636       tmp_compiler_works="no"
   15637       echo " " >&6
   15638       sed 's/^/link-fail: /' conftest.err >&6
   15639       echo " " >&6
   15640 
   15641 fi
   15642 rm -f core conftest.err conftest.$ac_objext \
   15643     conftest$ac_exeext conftest.$ac_ext
   15644   fi
   15645     if test "x$cross_compiling" != "xyes" &&
   15646     test "$tmp_compiler_works" = "yes"; then
   15647     if test "$cross_compiling" = yes; then :
   15648   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15650 as_fn_error $? "cannot run test program while cross compiling
   15651 See \`config.log' for more details" "$LINENO" 5; }
   15652 else
   15653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15654 /* end confdefs.h.  */
   15655 
   15656 
   15657 #       ifdef __STDC__
   15658 #         include <stdlib.h>
   15659 #       endif
   15660 
   15661 int main (void)
   15662 {
   15663 
   15664         int i = 0;
   15665         exit(i);
   15666 
   15667  ;
   15668  return 0;
   15669 }
   15670 
   15671 _ACEOF
   15672 if ac_fn_c_try_run "$LINENO"; then :
   15673 
   15674       tmp_compiler_works="yes"
   15675 
   15676 else
   15677 
   15678       tmp_compiler_works="no"
   15679       echo " " >&6
   15680       echo "run-fail: test program exited with status $ac_status" >&6
   15681       echo " " >&6
   15682 
   15683 fi
   15684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15685   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15686 fi
   15687 
   15688   fi
   15689     if test "$tmp_compiler_works" = "yes"; then
   15690 
   15691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15692 $as_echo "yes" >&6; }
   15693         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
   15694 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
   15695 
   15696   else
   15697 
   15698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15699 $as_echo "no" >&6; }
   15700         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
   15701 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
   15702                 CPPFLAGS="$tmp_save_CPPFLAGS"
   15703         CFLAGS="$tmp_save_CFLAGS"
   15704 
   15705   fi
   15706 
   15707     fi
   15708     #
   15709   fi
   15710 
   15711 
   15712 if test "$compiler_id" = "INTEL_UNIX_C"; then
   15713   #
   15714   if test "$compiler_num" -ge "1000"; then
   15715         CFLAGS="$CFLAGS -shared-intel"
   15716   elif test "$compiler_num" -ge "900"; then
   15717         CFLAGS="$CFLAGS -i-dynamic"
   15718   fi
   15719   #
   15720 fi
   15721 
   15722 
   15723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
   15724 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
   15725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15726 /* end confdefs.h.  */
   15727 
   15728 
   15729 
   15730 int main (void)
   15731 {
   15732 
   15733       force compilation error
   15734 
   15735  ;
   15736  return 0;
   15737 }
   15738 
   15739 _ACEOF
   15740 if ac_fn_c_try_compile "$LINENO"; then :
   15741 
   15742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15743 $as_echo "no" >&6; }
   15744     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
   15745 
   15746 else
   15747 
   15748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15749 $as_echo "yes" >&6; }
   15750 
   15751 fi
   15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15753 
   15754 
   15755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
   15756 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
   15757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15758 /* end confdefs.h.  */
   15759 
   15760 
   15761       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
   15762 
   15763 int main (void)
   15764 {
   15765 
   15766       bad_t dummy;
   15767 
   15768  ;
   15769  return 0;
   15770 }
   15771 
   15772 _ACEOF
   15773 if ac_fn_c_try_compile "$LINENO"; then :
   15774 
   15775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15776 $as_echo "no" >&6; }
   15777     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
   15778 
   15779 else
   15780 
   15781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15782 $as_echo "yes" >&6; }
   15783 
   15784 fi
   15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15786 
   15787 
   15788       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
   15789 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
   15790   supports_symbol_hiding="no"
   15791   symbol_hiding_CFLAGS=""
   15792   symbol_hiding_EXTERN=""
   15793   tmp_CFLAGS=""
   15794   tmp_EXTERN=""
   15795   case "$compiler_id" in
   15796     CLANG)
   15797             tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
   15798       tmp_CFLAGS="-fvisibility=hidden"
   15799       supports_symbol_hiding="yes"
   15800       ;;
   15801     GNU_C)
   15802             if test "$compiler_num" -ge "304"; then
   15803         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
   15804           tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
   15805           tmp_CFLAGS="-fvisibility=hidden"
   15806           supports_symbol_hiding="yes"
   15807         fi
   15808       fi
   15809       ;;
   15810     INTEL_UNIX_C)
   15811             if test "$compiler_num" -ge "900"; then
   15812         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
   15813           tmp_save_CFLAGS="$CFLAGS"
   15814           CFLAGS="$CFLAGS -fvisibility=hidden"
   15815           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15816 /* end confdefs.h.  */
   15817 
   15818 
   15819 #             include <stdio.h>
   15820 
   15821 int main (void)
   15822 {
   15823 
   15824               printf("icc fvisibility bug test");
   15825 
   15826  ;
   15827  return 0;
   15828 }
   15829 
   15830 _ACEOF
   15831 if ac_fn_c_try_link "$LINENO"; then :
   15832 
   15833             tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
   15834             tmp_CFLAGS="-fvisibility=hidden"
   15835             supports_symbol_hiding="yes"
   15836 
   15837 fi
   15838 rm -f core conftest.err conftest.$ac_objext \
   15839     conftest$ac_exeext conftest.$ac_ext
   15840           CFLAGS="$tmp_save_CFLAGS"
   15841         fi
   15842       fi
   15843       ;;
   15844     SUNPRO_C)
   15845       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
   15846         tmp_EXTERN="__global"
   15847         tmp_CFLAGS="-xldscope=hidden"
   15848         supports_symbol_hiding="yes"
   15849       fi
   15850       ;;
   15851   esac
   15852   if test "$supports_symbol_hiding" = "yes"; then
   15853     tmp_save_CFLAGS="$CFLAGS"
   15854     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
   15855     squeeze CFLAGS
   15856     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15857 /* end confdefs.h.  */
   15858 
   15859 
   15860         $tmp_EXTERN char *dummy(char *buff);
   15861         char *dummy(char *buff)
   15862         {
   15863          if(buff)
   15864            return ++buff;
   15865          else
   15866            return buff;
   15867         }
   15868 
   15869 int main (void)
   15870 {
   15871 
   15872         char b[16];
   15873         char *r = dummy(&b);
   15874         if(r)
   15875           return (int)*r;
   15876 
   15877  ;
   15878  return 0;
   15879 }
   15880 
   15881 _ACEOF
   15882 if ac_fn_c_try_compile "$LINENO"; then :
   15883 
   15884       supports_symbol_hiding="yes"
   15885 
   15886 else
   15887 
   15888       supports_symbol_hiding="no"
   15889       echo " " >&6
   15890       sed 's/^/cc-src: /' conftest.$ac_ext >&6
   15891       sed 's/^/cc-err: /' conftest.err >&6
   15892       echo " " >&6
   15893 
   15894 fi
   15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15896     CFLAGS="$tmp_save_CFLAGS"
   15897   fi
   15898   if test "$supports_symbol_hiding" = "yes"; then
   15899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15900 $as_echo "yes" >&6; }
   15901     symbol_hiding_CFLAGS="$tmp_CFLAGS"
   15902     symbol_hiding_EXTERN="$tmp_EXTERN"
   15903   else
   15904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15905 $as_echo "no" >&6; }
   15906   fi
   15907 
   15908 
   15909 
   15910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5
   15911 $as_echo_n "checking if shared libraries need -no-undefined... " >&6; }
   15912   need_no_undefined="no"
   15913   case $host in
   15914     *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*)
   15915       need_no_undefined="yes"
   15916       ;;
   15917   esac
   15918   if test "x$allow_undefined" = "xno"; then
   15919     need_no_undefined="yes"
   15920   elif test "x$allow_undefined_flag" = "xunsupported"; then
   15921     need_no_undefined="yes"
   15922   fi
   15923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5
   15924 $as_echo "$need_no_undefined" >&6; }
   15925 
   15926 
   15927 
   15928 if test x$need_no_undefined = xyes; then
   15929   NO_UNDEFINED_TRUE=
   15930   NO_UNDEFINED_FALSE='#'
   15931 else
   15932   NO_UNDEFINED_TRUE='#'
   15933   NO_UNDEFINED_FALSE=
   15934 fi
   15935 
   15936 
   15937 
   15938     cares_builddir=`pwd`
   15939   supports_curldebug="unknown"
   15940   if test "$want_curldebug" = "yes"; then
   15941     if test "x$enable_shared" != "xno" &&
   15942       test "x$enable_shared" != "xyes"; then
   15943       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
   15944 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
   15945       supports_curldebug="no"
   15946     fi
   15947     if test "x$enable_static" != "xno" &&
   15948       test "x$enable_static" != "xyes"; then
   15949       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
   15950 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
   15951       supports_curldebug="no"
   15952     fi
   15953     if test "$supports_curldebug" != "no"; then
   15954       if test "$enable_shared" = "yes" &&
   15955         test "$need_no_undefined" = "yes"; then
   15956         supports_curldebug="no"
   15957         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
   15958 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
   15959       fi
   15960       if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
   15961         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
   15962 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
   15963         supports_curldebug="no"
   15964       elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
   15965         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
   15966 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
   15967         supports_curldebug="no"
   15968       elif test ! -f "$cares_builddir/../libcurl.pc" ||
   15969         test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
   15970         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
   15971 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
   15972         supports_curldebug="no"
   15973       elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
   15974         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
   15975 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
   15976         supports_curldebug="no"
   15977       elif test ! -f "$cares_builddir/../config.status"; then
   15978         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
   15979 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
   15980         supports_curldebug="no"
   15981       fi
   15982       if test "$supports_curldebug" != "no"; then
   15983         grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
   15984         if test "$?" -ne "0"; then
   15985           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
   15986 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
   15987           supports_curldebug="no"
   15988         fi
   15989       fi
   15990       if test "$supports_curldebug" != "no"; then
   15991         grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
   15992         if test "$?" -ne "0"; then
   15993           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
   15994 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
   15995           supports_curldebug="no"
   15996         fi
   15997       fi
   15998     fi
   15999   fi
   16000   #
   16001   if test "$want_curldebug" = "yes"; then
   16002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
   16003 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
   16004     test "$supports_curldebug" = "no" || supports_curldebug="yes"
   16005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
   16006 $as_echo "$supports_curldebug" >&6; }
   16007     if test "$supports_curldebug" = "no"; then
   16008       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
   16009 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
   16010       want_curldebug="no"
   16011     fi
   16012   fi
   16013   #
   16014   if test "$want_curldebug" = "yes"; then
   16015 
   16016 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
   16017 
   16018     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
   16019     squeeze CPPFLAGS
   16020   fi
   16021   #
   16022   if test "$want_debug" = "yes"; then
   16023     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
   16024     squeeze CPPFLAGS
   16025   fi
   16026 
   16027 
   16028 
   16029 if test x$want_curldebug = xyes; then
   16030   CURLDEBUG_TRUE=
   16031   CURLDEBUG_FALSE='#'
   16032 else
   16033   CURLDEBUG_TRUE='#'
   16034   CURLDEBUG_FALSE=
   16035 fi
   16036 
   16037 
   16038 
   16039 
   16040 
   16041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
   16042 $as_echo_n "checking for windows.h... " >&6; }
   16043 if ${ac_cv_header_windows_h+:} false; then :
   16044   $as_echo_n "(cached) " >&6
   16045 else
   16046 
   16047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16048 /* end confdefs.h.  */
   16049 
   16050 
   16051 #undef inline
   16052 #ifndef WIN32_LEAN_AND_MEAN
   16053 #define WIN32_LEAN_AND_MEAN
   16054 #endif
   16055 #include <windows.h>
   16056 
   16057 int main (void)
   16058 {
   16059 
   16060 #if defined(__CYGWIN__) || defined(__CEGCC__)
   16061         HAVE_WINDOWS_H shall not be defined.
   16062 #else
   16063         int dummy=2*WINVER;
   16064 #endif
   16065 
   16066  ;
   16067  return 0;
   16068 }
   16069 
   16070 _ACEOF
   16071 if ac_fn_c_try_compile "$LINENO"; then :
   16072 
   16073       ac_cv_header_windows_h="yes"
   16074 
   16075 else
   16076 
   16077       ac_cv_header_windows_h="no"
   16078 
   16079 fi
   16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16081 
   16082 fi
   16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
   16084 $as_echo "$ac_cv_header_windows_h" >&6; }
   16085   case "$ac_cv_header_windows_h" in
   16086     yes)
   16087 
   16088 cat >>confdefs.h <<_ACEOF
   16089 #define HAVE_WINDOWS_H 1
   16090 _ACEOF
   16091 
   16092 
   16093 cat >>confdefs.h <<_ACEOF
   16094 #define WIN32_LEAN_AND_MEAN 1
   16095 _ACEOF
   16096 
   16097       ;;
   16098   esac
   16099 
   16100 
   16101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
   16102 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
   16103 if ${ac_cv_native_windows+:} false; then :
   16104   $as_echo_n "(cached) " >&6
   16105 else
   16106 
   16107     if test "$ac_cv_header_windows_h" = "no"; then
   16108       ac_cv_native_windows="no"
   16109     else
   16110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16111 /* end confdefs.h.  */
   16112 
   16113 
   16114 
   16115 int main (void)
   16116 {
   16117 
   16118 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
   16119    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
   16120           int dummy=1;
   16121 #else
   16122           Not a native Windows build target.
   16123 #endif
   16124 
   16125  ;
   16126  return 0;
   16127 }
   16128 
   16129 _ACEOF
   16130 if ac_fn_c_try_compile "$LINENO"; then :
   16131 
   16132         ac_cv_native_windows="yes"
   16133 
   16134 else
   16135 
   16136         ac_cv_native_windows="no"
   16137 
   16138 fi
   16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16140     fi
   16141 
   16142 fi
   16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
   16144 $as_echo "$ac_cv_native_windows" >&6; }
   16145   case "$ac_cv_native_windows" in
   16146     yes)
   16147 
   16148 cat >>confdefs.h <<_ACEOF
   16149 #define NATIVE_WINDOWS 1
   16150 _ACEOF
   16151 
   16152       ;;
   16153   esac
   16154 
   16155 case X-"$ac_cv_native_windows" in
   16156   X-yes)
   16157 
   16158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
   16159 $as_echo_n "checking for winsock.h... " >&6; }
   16160 if ${ac_cv_header_winsock_h+:} false; then :
   16161   $as_echo_n "(cached) " >&6
   16162 else
   16163 
   16164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16165 /* end confdefs.h.  */
   16166 
   16167 
   16168 #undef inline
   16169 #ifndef WIN32_LEAN_AND_MEAN
   16170 #define WIN32_LEAN_AND_MEAN
   16171 #endif
   16172 #include <windows.h>
   16173 #include <winsock.h>
   16174 
   16175 int main (void)
   16176 {
   16177 
   16178 #if defined(__CYGWIN__) || defined(__CEGCC__)
   16179         HAVE_WINSOCK_H shall not be defined.
   16180 #else
   16181         int dummy=WSACleanup();
   16182 #endif
   16183 
   16184  ;
   16185  return 0;
   16186 }
   16187 
   16188 _ACEOF
   16189 if ac_fn_c_try_compile "$LINENO"; then :
   16190 
   16191       ac_cv_header_winsock_h="yes"
   16192 
   16193 else
   16194 
   16195       ac_cv_header_winsock_h="no"
   16196 
   16197 fi
   16198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16199 
   16200 fi
   16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
   16202 $as_echo "$ac_cv_header_winsock_h" >&6; }
   16203   case "$ac_cv_header_winsock_h" in
   16204     yes)
   16205 
   16206 cat >>confdefs.h <<_ACEOF
   16207 #define HAVE_WINSOCK_H 1
   16208 _ACEOF
   16209 
   16210       ;;
   16211   esac
   16212 
   16213 
   16214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
   16215 $as_echo_n "checking for winsock2.h... " >&6; }
   16216 if ${ac_cv_header_winsock2_h+:} false; then :
   16217   $as_echo_n "(cached) " >&6
   16218 else
   16219 
   16220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16221 /* end confdefs.h.  */
   16222 
   16223 
   16224 #undef inline
   16225 #ifndef WIN32_LEAN_AND_MEAN
   16226 #define WIN32_LEAN_AND_MEAN
   16227 #endif
   16228 #include <windows.h>
   16229 #include <winsock2.h>
   16230 
   16231 int main (void)
   16232 {
   16233 
   16234 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
   16235         HAVE_WINSOCK2_H shall not be defined.
   16236 #else
   16237         int dummy=2*IPPROTO_ESP;
   16238 #endif
   16239 
   16240  ;
   16241  return 0;
   16242 }
   16243 
   16244 _ACEOF
   16245 if ac_fn_c_try_compile "$LINENO"; then :
   16246 
   16247       ac_cv_header_winsock2_h="yes"
   16248 
   16249 else
   16250 
   16251       ac_cv_header_winsock2_h="no"
   16252 
   16253 fi
   16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16255 
   16256 fi
   16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
   16258 $as_echo "$ac_cv_header_winsock2_h" >&6; }
   16259   case "$ac_cv_header_winsock2_h" in
   16260     yes)
   16261 
   16262 cat >>confdefs.h <<_ACEOF
   16263 #define HAVE_WINSOCK2_H 1
   16264 _ACEOF
   16265 
   16266       ;;
   16267   esac
   16268 
   16269 
   16270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
   16271 $as_echo_n "checking for ws2tcpip.h... " >&6; }
   16272 if ${ac_cv_header_ws2tcpip_h+:} false; then :
   16273   $as_echo_n "(cached) " >&6
   16274 else
   16275 
   16276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16277 /* end confdefs.h.  */
   16278 
   16279 
   16280 #undef inline
   16281 #ifndef WIN32_LEAN_AND_MEAN
   16282 #define WIN32_LEAN_AND_MEAN
   16283 #endif
   16284 #include <windows.h>
   16285 #include <winsock2.h>
   16286 #include <ws2tcpip.h>
   16287 
   16288 int main (void)
   16289 {
   16290 
   16291 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
   16292         HAVE_WS2TCPIP_H shall not be defined.
   16293 #else
   16294         int dummy=2*IP_PKTINFO;
   16295 #endif
   16296 
   16297  ;
   16298  return 0;
   16299 }
   16300 
   16301 _ACEOF
   16302 if ac_fn_c_try_compile "$LINENO"; then :
   16303 
   16304       ac_cv_header_ws2tcpip_h="yes"
   16305 
   16306 else
   16307 
   16308       ac_cv_header_ws2tcpip_h="no"
   16309 
   16310 fi
   16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16312 
   16313 fi
   16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
   16315 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
   16316   case "$ac_cv_header_ws2tcpip_h" in
   16317     yes)
   16318 
   16319 cat >>confdefs.h <<_ACEOF
   16320 #define HAVE_WS2TCPIP_H 1
   16321 _ACEOF
   16322 
   16323       ;;
   16324   esac
   16325 
   16326     ;;
   16327   *)
   16328     ac_cv_header_winsock_h="no"
   16329     ac_cv_header_winsock2_h="no"
   16330     ac_cv_header_ws2tcpip_h="no"
   16331     ;;
   16332 esac
   16333 
   16334 
   16335 
   16336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
   16337 $as_echo_n "checking if X/Open network library is required... " >&6; }
   16338   tst_lib_xnet_required="no"
   16339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16340 /* end confdefs.h.  */
   16341 
   16342 
   16343 int main (void)
   16344 {
   16345 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
   16346   return 0;
   16347 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
   16348   return 0;
   16349 #else
   16350   force compilation error
   16351 #endif
   16352 }
   16353 
   16354 
   16355 _ACEOF
   16356 if ac_fn_c_try_compile "$LINENO"; then :
   16357 
   16358     tst_lib_xnet_required="yes"
   16359     LIBS="$LIBS -lxnet"
   16360 
   16361 fi
   16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
   16364 $as_echo "$tst_lib_xnet_required" >&6; }
   16365 
   16366 
   16367 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
   16368 if test "x$ac_cv_func_gethostbyname" = xyes; then :
   16369   HAVE_GETHOSTBYNAME="1"
   16370 
   16371 else
   16372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
   16373 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
   16374 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
   16375   $as_echo_n "(cached) " >&6
   16376 else
   16377   ac_check_lib_save_LIBS=$LIBS
   16378 LIBS="-lnsl  $LIBS"
   16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16380 /* end confdefs.h.  */
   16381 
   16382 
   16383 #ifdef __cplusplus
   16384 extern "C"
   16385 #endif
   16386 char gethostbyname ();
   16387 int main (void)
   16388 {
   16389 return gethostbyname ();
   16390  ;
   16391  return 0;
   16392 }
   16393 _ACEOF
   16394 if ac_fn_c_try_link "$LINENO"; then :
   16395   ac_cv_lib_nsl_gethostbyname=yes
   16396 else
   16397   ac_cv_lib_nsl_gethostbyname=no
   16398 fi
   16399 rm -f core conftest.err conftest.$ac_objext \
   16400     conftest$ac_exeext conftest.$ac_ext
   16401 LIBS=$ac_check_lib_save_LIBS
   16402 fi
   16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
   16404 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
   16405 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
   16406   HAVE_GETHOSTBYNAME="1"
   16407                              LIBS="$LIBS -lnsl"
   16408 
   16409 fi
   16410 
   16411 
   16412 fi
   16413 
   16414 
   16415 if test "$HAVE_GETHOSTBYNAME" != "1"
   16416 then
   16417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
   16418 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
   16419 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
   16420   $as_echo_n "(cached) " >&6
   16421 else
   16422   ac_check_lib_save_LIBS=$LIBS
   16423 LIBS="-lsocket  $LIBS"
   16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16425 /* end confdefs.h.  */
   16426 
   16427 
   16428 #ifdef __cplusplus
   16429 extern "C"
   16430 #endif
   16431 char gethostbyname ();
   16432 int main (void)
   16433 {
   16434 return gethostbyname ();
   16435  ;
   16436  return 0;
   16437 }
   16438 _ACEOF
   16439 if ac_fn_c_try_link "$LINENO"; then :
   16440   ac_cv_lib_socket_gethostbyname=yes
   16441 else
   16442   ac_cv_lib_socket_gethostbyname=no
   16443 fi
   16444 rm -f core conftest.err conftest.$ac_objext \
   16445     conftest$ac_exeext conftest.$ac_ext
   16446 LIBS=$ac_check_lib_save_LIBS
   16447 fi
   16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
   16449 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
   16450 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
   16451   HAVE_GETHOSTBYNAME="1"
   16452                LIBS="$LIBS -lsocket"
   16453 
   16454 fi
   16455 
   16456 fi
   16457 
   16458 if test "$HAVE_GETHOSTBYNAME" != "1"
   16459 then
   16460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
   16461 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
   16462   my_ac_save_LIBS=$LIBS
   16463   LIBS="-lnsl -lsocket $LIBS"
   16464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16465 /* end confdefs.h.  */
   16466 
   16467 
   16468 
   16469 int main (void)
   16470 {
   16471 
   16472       gethostbyname();
   16473 
   16474  ;
   16475  return 0;
   16476 }
   16477 
   16478 _ACEOF
   16479 if ac_fn_c_try_link "$LINENO"; then :
   16480 
   16481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16482 $as_echo "yes" >&6; }
   16483     HAVE_GETHOSTBYNAME="1"
   16484 
   16485 else
   16486 
   16487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16488 $as_echo "no" >&6; }
   16489     LIBS=$my_ac_save_LIBS
   16490 
   16491 fi
   16492 rm -f core conftest.err conftest.$ac_objext \
   16493     conftest$ac_exeext conftest.$ac_ext
   16494 fi
   16495 
   16496 if test "$HAVE_GETHOSTBYNAME" != "1"
   16497 then
   16498     if test "$ac_cv_header_windows_h" = "yes"; then
   16499     if test "$ac_cv_header_winsock_h" = "yes"; then
   16500       case $host in
   16501         *-*-mingw32ce*)
   16502           winsock_LIB="-lwinsock"
   16503           ;;
   16504         *)
   16505           winsock_LIB="-lwsock32"
   16506           ;;
   16507       esac
   16508     fi
   16509     if test "$ac_cv_header_winsock2_h" = "yes"; then
   16510       winsock_LIB="-lws2_32"
   16511     fi
   16512     if test ! -z "$winsock_LIB"; then
   16513       my_ac_save_LIBS=$LIBS
   16514       LIBS="$winsock_LIB $LIBS"
   16515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
   16516 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
   16517       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16518 /* end confdefs.h.  */
   16519 
   16520 
   16521 #ifdef HAVE_WINDOWS_H
   16522 #ifndef WIN32_LEAN_AND_MEAN
   16523 #define WIN32_LEAN_AND_MEAN
   16524 #endif
   16525 #include <windows.h>
   16526 #ifdef HAVE_WINSOCK2_H
   16527 #include <winsock2.h>
   16528 #else
   16529 #ifdef HAVE_WINSOCK_H
   16530 #include <winsock.h>
   16531 #endif
   16532 #endif
   16533 #endif
   16534 
   16535 int main (void)
   16536 {
   16537 
   16538           gethostbyname("www.dummysite.com");
   16539 
   16540  ;
   16541  return 0;
   16542 }
   16543 
   16544 _ACEOF
   16545 if ac_fn_c_try_link "$LINENO"; then :
   16546 
   16547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16548 $as_echo "yes" >&6; }
   16549         HAVE_GETHOSTBYNAME="1"
   16550 
   16551 else
   16552 
   16553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16554 $as_echo "no" >&6; }
   16555         winsock_LIB=""
   16556         LIBS=$my_ac_save_LIBS
   16557 
   16558 fi
   16559 rm -f core conftest.err conftest.$ac_objext \
   16560     conftest$ac_exeext conftest.$ac_ext
   16561     fi
   16562   fi
   16563 fi
   16564 
   16565 if test "$HAVE_GETHOSTBYNAME" != "1"
   16566 then
   16567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
   16568 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
   16569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16570 /* end confdefs.h.  */
   16571 
   16572 
   16573 /* Older Minix versions may need <net/gen/netdb.h> here instead */
   16574 #include <netdb.h>
   16575 
   16576 int main (void)
   16577 {
   16578 
   16579       gethostbyname("www.dummysite.com");
   16580 
   16581  ;
   16582  return 0;
   16583 }
   16584 
   16585 _ACEOF
   16586 if ac_fn_c_try_link "$LINENO"; then :
   16587 
   16588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16589 $as_echo "yes" >&6; }
   16590     HAVE_GETHOSTBYNAME="1"
   16591 
   16592 else
   16593 
   16594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16595 $as_echo "no" >&6; }
   16596 
   16597 fi
   16598 rm -f core conftest.err conftest.$ac_objext \
   16599     conftest$ac_exeext conftest.$ac_ext
   16600 fi
   16601 
   16602 if test "$HAVE_GETHOSTBYNAME" != "1"
   16603 then
   16604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
   16605 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
   16606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16607 /* end confdefs.h.  */
   16608 
   16609 
   16610 #include <stdio.h>
   16611 #include <netdb.h>
   16612 
   16613 int main (void)
   16614 {
   16615 
   16616       gethostbyname("www.dummysite.com");
   16617 
   16618  ;
   16619  return 0;
   16620 }
   16621 
   16622 _ACEOF
   16623 if ac_fn_c_try_link "$LINENO"; then :
   16624 
   16625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16626 $as_echo "yes" >&6; }
   16627     HAVE_GETHOSTBYNAME="1"
   16628 
   16629 else
   16630 
   16631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16632 $as_echo "no" >&6; }
   16633 
   16634 fi
   16635 rm -f core conftest.err conftest.$ac_objext \
   16636     conftest$ac_exeext conftest.$ac_ext
   16637 fi
   16638 
   16639 if test "$HAVE_GETHOSTBYNAME" != "1"
   16640 then
   16641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
   16642 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
   16643 if ${ac_cv_lib_net_gethostbyname+:} false; then :
   16644   $as_echo_n "(cached) " >&6
   16645 else
   16646   ac_check_lib_save_LIBS=$LIBS
   16647 LIBS="-lnet  $LIBS"
   16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16649 /* end confdefs.h.  */
   16650 
   16651 
   16652 #ifdef __cplusplus
   16653 extern "C"
   16654 #endif
   16655 char gethostbyname ();
   16656 int main (void)
   16657 {
   16658 return gethostbyname ();
   16659  ;
   16660  return 0;
   16661 }
   16662 _ACEOF
   16663 if ac_fn_c_try_link "$LINENO"; then :
   16664   ac_cv_lib_net_gethostbyname=yes
   16665 else
   16666   ac_cv_lib_net_gethostbyname=no
   16667 fi
   16668 rm -f core conftest.err conftest.$ac_objext \
   16669     conftest$ac_exeext conftest.$ac_ext
   16670 LIBS=$ac_check_lib_save_LIBS
   16671 fi
   16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
   16673 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
   16674 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
   16675   HAVE_GETHOSTBYNAME="1"
   16676                LIBS="$LIBS -lnet"
   16677 
   16678 fi
   16679 
   16680 fi
   16681 
   16682 
   16683 if test "$HAVE_GETHOSTBYNAME" != "1"; then
   16684   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
   16685 fi
   16686 
   16687 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
   16688 if test "x$ac_cv_func_strcasecmp" = xyes; then :
   16689 
   16690 else
   16691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
   16692 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
   16693 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
   16694   $as_echo_n "(cached) " >&6
   16695 else
   16696   ac_check_lib_save_LIBS=$LIBS
   16697 LIBS="-lresolve  $LIBS"
   16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16699 /* end confdefs.h.  */
   16700 
   16701 
   16702 #ifdef __cplusplus
   16703 extern "C"
   16704 #endif
   16705 char strcasecmp ();
   16706 int main (void)
   16707 {
   16708 return strcasecmp ();
   16709  ;
   16710  return 0;
   16711 }
   16712 _ACEOF
   16713 if ac_fn_c_try_link "$LINENO"; then :
   16714   ac_cv_lib_resolve_strcasecmp=yes
   16715 else
   16716   ac_cv_lib_resolve_strcasecmp=no
   16717 fi
   16718 rm -f core conftest.err conftest.$ac_objext \
   16719     conftest$ac_exeext conftest.$ac_ext
   16720 LIBS=$ac_check_lib_save_LIBS
   16721 fi
   16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
   16723 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
   16724 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
   16725   cat >>confdefs.h <<_ACEOF
   16726 #define HAVE_LIBRESOLVE 1
   16727 _ACEOF
   16728 
   16729   LIBS="-lresolve $LIBS"
   16730 
   16731 fi
   16732 
   16733 fi
   16734 
   16735 
   16736 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
   16737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
   16738 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
   16739 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
   16740   $as_echo_n "(cached) " >&6
   16741 else
   16742   ac_check_lib_save_LIBS=$LIBS
   16743 LIBS="-lresolve -lnsl $LIBS"
   16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16745 /* end confdefs.h.  */
   16746 
   16747 
   16748 #ifdef __cplusplus
   16749 extern "C"
   16750 #endif
   16751 char strcasecmp ();
   16752 int main (void)
   16753 {
   16754 return strcasecmp ();
   16755  ;
   16756  return 0;
   16757 }
   16758 _ACEOF
   16759 if ac_fn_c_try_link "$LINENO"; then :
   16760   ac_cv_lib_resolve_strcasecmp=yes
   16761 else
   16762   ac_cv_lib_resolve_strcasecmp=no
   16763 fi
   16764 rm -f core conftest.err conftest.$ac_objext \
   16765     conftest$ac_exeext conftest.$ac_ext
   16766 LIBS=$ac_check_lib_save_LIBS
   16767 fi
   16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
   16769 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
   16770 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
   16771   LIBS="-lresolve $LIBS"
   16772 fi
   16773 
   16774 fi
   16775 ac_cv_func_strcasecmp="no"
   16776 
   16777 
   16778 cares_includes_winsock2="\
   16779 /* includes start */
   16780 #ifdef HAVE_WINDOWS_H
   16781 #  ifndef WIN32_LEAN_AND_MEAN
   16782 #    define WIN32_LEAN_AND_MEAN
   16783 #  endif
   16784 #  include <windows.h>
   16785 #  ifdef HAVE_WINSOCK2_H
   16786 #    include <winsock2.h>
   16787 #  else
   16788 #    ifdef HAVE_WINSOCK_H
   16789 #      include <winsock.h>
   16790 #    endif
   16791 #  endif
   16792 #endif
   16793 /* includes end */"
   16794 
   16795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
   16796 $as_echo_n "checking for windows.h... " >&6; }
   16797 if ${ac_cv_header_windows_h+:} false; then :
   16798   $as_echo_n "(cached) " >&6
   16799 else
   16800 
   16801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16802 /* end confdefs.h.  */
   16803 
   16804 
   16805 #undef inline
   16806 #ifndef WIN32_LEAN_AND_MEAN
   16807 #define WIN32_LEAN_AND_MEAN
   16808 #endif
   16809 #include <windows.h>
   16810 
   16811 int main (void)
   16812 {
   16813 
   16814 #if defined(__CYGWIN__) || defined(__CEGCC__)
   16815         HAVE_WINDOWS_H shall not be defined.
   16816 #else
   16817         int dummy=2*WINVER;
   16818 #endif
   16819 
   16820  ;
   16821  return 0;
   16822 }
   16823 
   16824 _ACEOF
   16825 if ac_fn_c_try_compile "$LINENO"; then :
   16826 
   16827       ac_cv_header_windows_h="yes"
   16828 
   16829 else
   16830 
   16831       ac_cv_header_windows_h="no"
   16832 
   16833 fi
   16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16835 
   16836 fi
   16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
   16838 $as_echo "$ac_cv_header_windows_h" >&6; }
   16839   case "$ac_cv_header_windows_h" in
   16840     yes)
   16841 
   16842 cat >>confdefs.h <<_ACEOF
   16843 #define HAVE_WINDOWS_H 1
   16844 _ACEOF
   16845 
   16846 
   16847 cat >>confdefs.h <<_ACEOF
   16848 #define WIN32_LEAN_AND_MEAN 1
   16849 _ACEOF
   16850 
   16851       ;;
   16852   esac
   16853 
   16854 
   16855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
   16856 $as_echo_n "checking for winsock.h... " >&6; }
   16857 if ${ac_cv_header_winsock_h+:} false; then :
   16858   $as_echo_n "(cached) " >&6
   16859 else
   16860 
   16861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16862 /* end confdefs.h.  */
   16863 
   16864 
   16865 #undef inline
   16866 #ifndef WIN32_LEAN_AND_MEAN
   16867 #define WIN32_LEAN_AND_MEAN
   16868 #endif
   16869 #include <windows.h>
   16870 #include <winsock.h>
   16871 
   16872 int main (void)
   16873 {
   16874 
   16875 #if defined(__CYGWIN__) || defined(__CEGCC__)
   16876         HAVE_WINSOCK_H shall not be defined.
   16877 #else
   16878         int dummy=WSACleanup();
   16879 #endif
   16880 
   16881  ;
   16882  return 0;
   16883 }
   16884 
   16885 _ACEOF
   16886 if ac_fn_c_try_compile "$LINENO"; then :
   16887 
   16888       ac_cv_header_winsock_h="yes"
   16889 
   16890 else
   16891 
   16892       ac_cv_header_winsock_h="no"
   16893 
   16894 fi
   16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16896 
   16897 fi
   16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
   16899 $as_echo "$ac_cv_header_winsock_h" >&6; }
   16900   case "$ac_cv_header_winsock_h" in
   16901     yes)
   16902 
   16903 cat >>confdefs.h <<_ACEOF
   16904 #define HAVE_WINSOCK_H 1
   16905 _ACEOF
   16906 
   16907       ;;
   16908   esac
   16909 
   16910 
   16911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
   16912 $as_echo_n "checking for winsock2.h... " >&6; }
   16913 if ${ac_cv_header_winsock2_h+:} false; then :
   16914   $as_echo_n "(cached) " >&6
   16915 else
   16916 
   16917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16918 /* end confdefs.h.  */
   16919 
   16920 
   16921 #undef inline
   16922 #ifndef WIN32_LEAN_AND_MEAN
   16923 #define WIN32_LEAN_AND_MEAN
   16924 #endif
   16925 #include <windows.h>
   16926 #include <winsock2.h>
   16927 
   16928 int main (void)
   16929 {
   16930 
   16931 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
   16932         HAVE_WINSOCK2_H shall not be defined.
   16933 #else
   16934         int dummy=2*IPPROTO_ESP;
   16935 #endif
   16936 
   16937  ;
   16938  return 0;
   16939 }
   16940 
   16941 _ACEOF
   16942 if ac_fn_c_try_compile "$LINENO"; then :
   16943 
   16944       ac_cv_header_winsock2_h="yes"
   16945 
   16946 else
   16947 
   16948       ac_cv_header_winsock2_h="no"
   16949 
   16950 fi
   16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16952 
   16953 fi
   16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
   16955 $as_echo "$ac_cv_header_winsock2_h" >&6; }
   16956   case "$ac_cv_header_winsock2_h" in
   16957     yes)
   16958 
   16959 cat >>confdefs.h <<_ACEOF
   16960 #define HAVE_WINSOCK2_H 1
   16961 _ACEOF
   16962 
   16963       ;;
   16964   esac
   16965 
   16966 
   16967 
   16968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
   16969 $as_echo_n "checking for connect in libraries... " >&6; }
   16970   tst_connect_save_LIBS="$LIBS"
   16971   tst_connect_need_LIBS="unknown"
   16972   for tst_lib in '' '-lsocket' ; do
   16973     if test "$tst_connect_need_LIBS" = "unknown"; then
   16974       LIBS="$tst_lib $tst_connect_save_LIBS"
   16975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16976 /* end confdefs.h.  */
   16977 
   16978 
   16979           $cares_includes_winsock2
   16980           #ifndef HAVE_WINDOWS_H
   16981             int connect(int, void*, int);
   16982           #endif
   16983 
   16984 int main (void)
   16985 {
   16986 
   16987           if(0 != connect(0, 0, 0))
   16988             return 1;
   16989 
   16990  ;
   16991  return 0;
   16992 }
   16993 
   16994 _ACEOF
   16995 if ac_fn_c_try_link "$LINENO"; then :
   16996 
   16997         tst_connect_need_LIBS="$tst_lib"
   16998 
   16999 fi
   17000 rm -f core conftest.err conftest.$ac_objext \
   17001     conftest$ac_exeext conftest.$ac_ext
   17002     fi
   17003   done
   17004   LIBS="$tst_connect_save_LIBS"
   17005   #
   17006   case X-"$tst_connect_need_LIBS" in
   17007     X-unknown)
   17008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
   17009 $as_echo "cannot find connect" >&6; }
   17010       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
   17011       ;;
   17012     X-)
   17013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17014 $as_echo "yes" >&6; }
   17015       ;;
   17016     *)
   17017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
   17018 $as_echo "$tst_connect_need_LIBS" >&6; }
   17019       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
   17020       ;;
   17021   esac
   17022 
   17023 
   17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   17025 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   17026 if ${ac_cv_header_time+:} false; then :
   17027   $as_echo_n "(cached) " >&6
   17028 else
   17029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17030 /* end confdefs.h.  */
   17031 #include <sys/types.h>
   17032 #include <sys/time.h>
   17033 #include <time.h>
   17034 
   17035 int main (void)
   17036 {
   17037 if ((struct tm *) 0)
   17038 return 0;
   17039  ;
   17040  return 0;
   17041 }
   17042 _ACEOF
   17043 if ac_fn_c_try_compile "$LINENO"; then :
   17044   ac_cv_header_time=yes
   17045 else
   17046   ac_cv_header_time=no
   17047 fi
   17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17049 fi
   17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   17051 $as_echo "$ac_cv_header_time" >&6; }
   17052 if test $ac_cv_header_time = yes; then
   17053 
   17054 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   17055 
   17056 fi
   17057 
   17058 
   17059     for ac_header in sys/types.h sys/time.h time.h
   17060 do :
   17061   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17062 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17064   cat >>confdefs.h <<_ACEOF
   17065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17066 _ACEOF
   17067 
   17068 fi
   17069 
   17070 done
   17071 
   17072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
   17073 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
   17074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17075 /* end confdefs.h.  */
   17076 
   17077 
   17078 #ifdef HAVE_SYS_TYPES_H
   17079 #include <sys/types.h>
   17080 #endif
   17081 #ifdef HAVE_SYS_TIME_H
   17082 #include <sys/time.h>
   17083 #ifdef TIME_WITH_SYS_TIME
   17084 #include <time.h>
   17085 #endif
   17086 #else
   17087 #ifdef HAVE_TIME_H
   17088 #include <time.h>
   17089 #endif
   17090 #endif
   17091 
   17092 int main (void)
   17093 {
   17094 
   17095       struct timespec ts;
   17096       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
   17097 
   17098  ;
   17099  return 0;
   17100 }
   17101 
   17102 _ACEOF
   17103 if ac_fn_c_try_compile "$LINENO"; then :
   17104 
   17105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17106 $as_echo "yes" >&6; }
   17107     ac_cv_func_clock_gettime="yes"
   17108 
   17109 else
   17110 
   17111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17112 $as_echo "no" >&6; }
   17113     ac_cv_func_clock_gettime="no"
   17114 
   17115 fi
   17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17117 
   17118 
   17119     #
   17120   if test "$ac_cv_func_clock_gettime" = "yes"; then
   17121     #
   17122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
   17123 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
   17124     #
   17125     curl_cv_save_LIBS="$LIBS"
   17126     curl_cv_gclk_LIBS="unknown"
   17127     #
   17128     for x_xlibs in '' '-lrt' '-lposix4' ; do
   17129       if test "$curl_cv_gclk_LIBS" = "unknown"; then
   17130         if test -z "$x_xlibs"; then
   17131           LIBS="$curl_cv_save_LIBS"
   17132         else
   17133           LIBS="$x_xlibs $curl_cv_save_LIBS"
   17134         fi
   17135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17136 /* end confdefs.h.  */
   17137 
   17138 
   17139 #ifdef HAVE_SYS_TYPES_H
   17140 #include <sys/types.h>
   17141 #endif
   17142 #ifdef HAVE_SYS_TIME_H
   17143 #include <sys/time.h>
   17144 #ifdef TIME_WITH_SYS_TIME
   17145 #include <time.h>
   17146 #endif
   17147 #else
   17148 #ifdef HAVE_TIME_H
   17149 #include <time.h>
   17150 #endif
   17151 #endif
   17152 
   17153 int main (void)
   17154 {
   17155 
   17156             struct timespec ts;
   17157             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
   17158 
   17159  ;
   17160  return 0;
   17161 }
   17162 
   17163 _ACEOF
   17164 if ac_fn_c_try_link "$LINENO"; then :
   17165 
   17166           curl_cv_gclk_LIBS="$x_xlibs"
   17167 
   17168 fi
   17169 rm -f core conftest.err conftest.$ac_objext \
   17170     conftest$ac_exeext conftest.$ac_ext
   17171       fi
   17172     done
   17173     #
   17174     LIBS="$curl_cv_save_LIBS"
   17175     #
   17176     case X-"$curl_cv_gclk_LIBS" in
   17177       X-unknown)
   17178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
   17179 $as_echo "cannot find clock_gettime" >&6; }
   17180         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
   17181 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
   17182         ac_cv_func_clock_gettime="no"
   17183         ;;
   17184       X-)
   17185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
   17186 $as_echo "no additional lib required" >&6; }
   17187         ac_cv_func_clock_gettime="yes"
   17188         ;;
   17189       *)
   17190         if test -z "$curl_cv_save_LIBS"; then
   17191           LIBS="$curl_cv_gclk_LIBS"
   17192         else
   17193           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
   17194         fi
   17195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
   17196 $as_echo "$curl_cv_gclk_LIBS" >&6; }
   17197         ac_cv_func_clock_gettime="yes"
   17198         ;;
   17199     esac
   17200     #
   17201         if test "x$cross_compiling" != "xyes" &&
   17202       test "$ac_cv_func_clock_gettime" = "yes"; then
   17203       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
   17204 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
   17205       if test "$cross_compiling" = yes; then :
   17206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17208 as_fn_error $? "cannot run test program while cross compiling
   17209 See \`config.log' for more details" "$LINENO" 5; }
   17210 else
   17211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17212 /* end confdefs.h.  */
   17213 
   17214 
   17215 #ifdef HAVE_STDLIB_H
   17216 #include <stdlib.h>
   17217 #endif
   17218 #ifdef HAVE_SYS_TYPES_H
   17219 #include <sys/types.h>
   17220 #endif
   17221 #ifdef HAVE_SYS_TIME_H
   17222 #include <sys/time.h>
   17223 #ifdef TIME_WITH_SYS_TIME
   17224 #include <time.h>
   17225 #endif
   17226 #else
   17227 #ifdef HAVE_TIME_H
   17228 #include <time.h>
   17229 #endif
   17230 #endif
   17231 
   17232 int main (void)
   17233 {
   17234 
   17235           struct timespec ts;
   17236           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
   17237             exit(0);
   17238           else
   17239             exit(1);
   17240 
   17241  ;
   17242  return 0;
   17243 }
   17244 
   17245 _ACEOF
   17246 if ac_fn_c_try_run "$LINENO"; then :
   17247 
   17248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17249 $as_echo "yes" >&6; }
   17250 
   17251 else
   17252 
   17253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17254 $as_echo "no" >&6; }
   17255         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
   17256 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
   17257         ac_cv_func_clock_gettime="no"
   17258         LIBS="$curl_cv_save_LIBS"
   17259 
   17260 fi
   17261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17262   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17263 fi
   17264 
   17265     fi
   17266     #
   17267     case "$ac_cv_func_clock_gettime" in
   17268       yes)
   17269 
   17270 cat >>confdefs.h <<_ACEOF
   17271 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
   17272 _ACEOF
   17273 
   17274         ;;
   17275     esac
   17276     #
   17277   fi
   17278   #
   17279 
   17280 
   17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
   17282 $as_echo_n "checking whether to use libgcc... " >&6; }
   17283 # Check whether --enable-libgcc was given.
   17284 if test "${enable_libgcc+set}" = set; then :
   17285   enableval=$enable_libgcc;  case "$enableval" in
   17286   yes)
   17287         LIBS="$LIBS -lgcc"
   17288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17289 $as_echo "yes" >&6; }
   17290        ;;
   17291   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17292 $as_echo "no" >&6; }
   17293        ;;
   17294   esac
   17295 else
   17296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17297 $as_echo "no" >&6; }
   17298 
   17299 fi
   17300 
   17301 
   17302 
   17303 
   17304 
   17305 
   17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   17307 $as_echo_n "checking for ANSI C header files... " >&6; }
   17308 if ${ac_cv_header_stdc+:} false; then :
   17309   $as_echo_n "(cached) " >&6
   17310 else
   17311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17312 /* end confdefs.h.  */
   17313 #include <stdlib.h>
   17314 #include <stdarg.h>
   17315 #include <string.h>
   17316 #include <float.h>
   17317 
   17318 int main (void)
   17319 {
   17320 
   17321  ;
   17322  return 0;
   17323 }
   17324 _ACEOF
   17325 if ac_fn_c_try_compile "$LINENO"; then :
   17326   ac_cv_header_stdc=yes
   17327 else
   17328   ac_cv_header_stdc=no
   17329 fi
   17330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17331 
   17332 if test $ac_cv_header_stdc = yes; then
   17333   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   17334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17335 /* end confdefs.h.  */
   17336 #include <string.h>
   17337 
   17338 _ACEOF
   17339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17340   $EGREP "memchr" >/dev/null 2>&1; then :
   17341 
   17342 else
   17343   ac_cv_header_stdc=no
   17344 fi
   17345 rm -f conftest*
   17346 
   17347 fi
   17348 
   17349 if test $ac_cv_header_stdc = yes; then
   17350   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   17351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17352 /* end confdefs.h.  */
   17353 #include <stdlib.h>
   17354 
   17355 _ACEOF
   17356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17357   $EGREP "free" >/dev/null 2>&1; then :
   17358 
   17359 else
   17360   ac_cv_header_stdc=no
   17361 fi
   17362 rm -f conftest*
   17363 
   17364 fi
   17365 
   17366 if test $ac_cv_header_stdc = yes; then
   17367   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   17368   if test "$cross_compiling" = yes; then :
   17369   :
   17370 else
   17371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17372 /* end confdefs.h.  */
   17373 #include <ctype.h>
   17374 #include <stdlib.h>
   17375 #if ((' ' & 0x0FF) == 0x020)
   17376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   17377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   17378 #else
   17379 # define ISLOWER(c) \
   17380 		   (('a' <= (c) && (c) <= 'i') \
   17381 		     || ('j' <= (c) && (c) <= 'r') \
   17382 		     || ('s' <= (c) && (c) <= 'z'))
   17383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   17384 #endif
   17385 
   17386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   17387 int
   17388 main ()
   17389 {
   17390   int i;
   17391   for (i = 0; i < 256; i++)
   17392     if (XOR (islower (i), ISLOWER (i))
   17393 	|| toupper (i) != TOUPPER (i))
   17394       return 2;
   17395   return 0;
   17396 }
   17397 _ACEOF
   17398 if ac_fn_c_try_run "$LINENO"; then :
   17399 
   17400 else
   17401   ac_cv_header_stdc=no
   17402 fi
   17403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17404   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17405 fi
   17406 
   17407 fi
   17408 fi
   17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   17410 $as_echo "$ac_cv_header_stdc" >&6; }
   17411 if test $ac_cv_header_stdc = yes; then
   17412 
   17413 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   17414 
   17415 fi
   17416 
   17417 
   17418 
   17419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
   17420 $as_echo_n "checking for malloc.h... " >&6; }
   17421 if ${ac_cv_header_malloc_h+:} false; then :
   17422   $as_echo_n "(cached) " >&6
   17423 else
   17424 
   17425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17426 /* end confdefs.h.  */
   17427 
   17428 
   17429 #include <malloc.h>
   17430 
   17431 int main (void)
   17432 {
   17433 
   17434         void *p = malloc(10);
   17435         void *q = calloc(10,10);
   17436         free(p);
   17437         free(q);
   17438 
   17439  ;
   17440  return 0;
   17441 }
   17442 
   17443 _ACEOF
   17444 if ac_fn_c_try_compile "$LINENO"; then :
   17445 
   17446       ac_cv_header_malloc_h="yes"
   17447 
   17448 else
   17449 
   17450       ac_cv_header_malloc_h="no"
   17451 
   17452 fi
   17453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17454 
   17455 fi
   17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
   17457 $as_echo "$ac_cv_header_malloc_h" >&6; }
   17458   if test "$ac_cv_header_malloc_h" = "yes"; then
   17459 
   17460 cat >>confdefs.h <<_ACEOF
   17461 #define HAVE_MALLOC_H 1
   17462 _ACEOF
   17463 
   17464     #
   17465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17466 /* end confdefs.h.  */
   17467 
   17468 
   17469 #include <stdlib.h>
   17470 
   17471 int main (void)
   17472 {
   17473 
   17474         void *p = malloc(10);
   17475         void *q = calloc(10,10);
   17476         free(p);
   17477         free(q);
   17478 
   17479  ;
   17480  return 0;
   17481 }
   17482 
   17483 _ACEOF
   17484 if ac_fn_c_try_compile "$LINENO"; then :
   17485 
   17486       curl_cv_need_header_malloc_h="no"
   17487 
   17488 else
   17489 
   17490       curl_cv_need_header_malloc_h="yes"
   17491 
   17492 fi
   17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17494     #
   17495     case "$curl_cv_need_header_malloc_h" in
   17496       yes)
   17497 
   17498 cat >>confdefs.h <<_ACEOF
   17499 #define NEED_MALLOC_H 1
   17500 _ACEOF
   17501 
   17502         ;;
   17503     esac
   17504   fi
   17505 
   17506 
   17507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
   17508 $as_echo_n "checking for memory.h... " >&6; }
   17509 if ${ac_cv_header_memory_h+:} false; then :
   17510   $as_echo_n "(cached) " >&6
   17511 else
   17512 
   17513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17514 /* end confdefs.h.  */
   17515 
   17516 
   17517 #include <memory.h>
   17518 
   17519 int main (void)
   17520 {
   17521 
   17522         void *p = malloc(10);
   17523         void *q = calloc(10,10);
   17524         free(p);
   17525         free(q);
   17526 
   17527  ;
   17528  return 0;
   17529 }
   17530 
   17531 _ACEOF
   17532 if ac_fn_c_try_compile "$LINENO"; then :
   17533 
   17534       ac_cv_header_memory_h="yes"
   17535 
   17536 else
   17537 
   17538       ac_cv_header_memory_h="no"
   17539 
   17540 fi
   17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17542 
   17543 fi
   17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
   17545 $as_echo "$ac_cv_header_memory_h" >&6; }
   17546   if test "$ac_cv_header_memory_h" = "yes"; then
   17547 
   17548 cat >>confdefs.h <<_ACEOF
   17549 #define HAVE_MEMORY_H 1
   17550 _ACEOF
   17551 
   17552     #
   17553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17554 /* end confdefs.h.  */
   17555 
   17556 
   17557 #include <stdlib.h>
   17558 
   17559 int main (void)
   17560 {
   17561 
   17562         void *p = malloc(10);
   17563         void *q = calloc(10,10);
   17564         free(p);
   17565         free(q);
   17566 
   17567  ;
   17568  return 0;
   17569 }
   17570 
   17571 _ACEOF
   17572 if ac_fn_c_try_compile "$LINENO"; then :
   17573 
   17574       curl_cv_need_header_memory_h="no"
   17575 
   17576 else
   17577 
   17578       curl_cv_need_header_memory_h="yes"
   17579 
   17580 fi
   17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17582     #
   17583     case "$curl_cv_need_header_memory_h" in
   17584       yes)
   17585 
   17586 cat >>confdefs.h <<_ACEOF
   17587 #define NEED_MEMORY_H 1
   17588 _ACEOF
   17589 
   17590         ;;
   17591     esac
   17592   fi
   17593 
   17594 
   17595 for ac_header in sys/types.h \
   17596        sys/time.h \
   17597        sys/select.h \
   17598        sys/socket.h \
   17599        sys/ioctl.h \
   17600        sys/param.h \
   17601        sys/uio.h \
   17602        assert.h \
   17603        netdb.h \
   17604        netinet/in.h \
   17605        netinet/tcp.h \
   17606        net/if.h \
   17607        errno.h \
   17608        socket.h \
   17609        strings.h \
   17610        stdbool.h \
   17611        time.h \
   17612        limits.h \
   17613        arpa/nameser.h \
   17614        arpa/nameser_compat.h \
   17615        arpa/inet.h
   17616 do :
   17617   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
   17619 #ifdef HAVE_SYS_TYPES_H
   17620 #include <sys/types.h>
   17621 #endif
   17622 #ifdef HAVE_SYS_TIME_H
   17623 #include <sys/time.h>
   17624 #endif
   17625 #ifdef HAVE_ARPA_NAMESER_H
   17626 #include <arpa/nameser.h>
   17627 #endif
   17628 
   17629 #ifdef HAVE_SYS_SOCKET_H
   17630 #include <sys/socket.h>
   17631 #endif
   17632 #ifdef HAVE_NETINET_IN_H
   17633 #include <netinet/in.h>
   17634 #endif
   17635 
   17636 
   17637 "
   17638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17639   cat >>confdefs.h <<_ACEOF
   17640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17641 _ACEOF
   17642 
   17643 fi
   17644 
   17645 done
   17646 
   17647 
   17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   17649 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   17650 if ${ac_cv_c_const+:} false; then :
   17651   $as_echo_n "(cached) " >&6
   17652 else
   17653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17654 /* end confdefs.h.  */
   17655 
   17656 int main (void)
   17657 {
   17658 /* FIXME: Include the comments suggested by Paul. */
   17659 #ifndef __cplusplus
   17660   /* Ultrix mips cc rejects this.  */
   17661   typedef int charset[2];
   17662   const charset cs;
   17663   /* SunOS 4.1.1 cc rejects this.  */
   17664   char const *const *pcpcc;
   17665   char **ppc;
   17666   /* NEC SVR4.0.2 mips cc rejects this.  */
   17667   struct point {int x, y;};
   17668   static struct point const zero = {0,0};
   17669   /* AIX XL C 1.02.0.0 rejects this.
   17670      It does not let you subtract one const X* pointer from another in
   17671      an arm of an if-expression whose if-part is not a constant
   17672      expression */
   17673   const char *g = "string";
   17674   pcpcc = &g + (g ? g-g : 0);
   17675   /* HPUX 7.0 cc rejects these. */
   17676   ++pcpcc;
   17677   ppc = (char**) pcpcc;
   17678   pcpcc = (char const *const *) ppc;
   17679   { /* SCO 3.2v4 cc rejects this.  */
   17680     char *t;
   17681     char const *s = 0 ? (char *) 0 : (char const *) 0;
   17682 
   17683     *t++ = 0;
   17684     if (s) return 0;
   17685   }
   17686   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   17687     int x[] = {25, 17};
   17688     const int *foo = &x[0];
   17689     ++foo;
   17690   }
   17691   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   17692     typedef const int *iptr;
   17693     iptr p = 0;
   17694     ++p;
   17695   }
   17696   { /* AIX XL C 1.02.0.0 rejects this saying
   17697        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   17698     struct s { int j; const int *ap[3]; };
   17699     struct s *b; b->j = 5;
   17700   }
   17701   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   17702     const int foo = 10;
   17703     if (!foo) return 0;
   17704   }
   17705   return !cs[0] && !zero.x;
   17706 #endif
   17707 
   17708  ;
   17709  return 0;
   17710 }
   17711 _ACEOF
   17712 if ac_fn_c_try_compile "$LINENO"; then :
   17713   ac_cv_c_const=yes
   17714 else
   17715   ac_cv_c_const=no
   17716 fi
   17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17718 fi
   17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   17720 $as_echo "$ac_cv_c_const" >&6; }
   17721 if test $ac_cv_c_const = no; then
   17722 
   17723 $as_echo "#define const /**/" >>confdefs.h
   17724 
   17725 fi
   17726 
   17727 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   17728 if test "x$ac_cv_type_size_t" = xyes; then :
   17729 
   17730 else
   17731 
   17732 cat >>confdefs.h <<_ACEOF
   17733 #define size_t unsigned int
   17734 _ACEOF
   17735 
   17736 fi
   17737 
   17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   17739 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   17740 if ${ac_cv_header_time+:} false; then :
   17741   $as_echo_n "(cached) " >&6
   17742 else
   17743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17744 /* end confdefs.h.  */
   17745 #include <sys/types.h>
   17746 #include <sys/time.h>
   17747 #include <time.h>
   17748 
   17749 int main (void)
   17750 {
   17751 if ((struct tm *) 0)
   17752 return 0;
   17753  ;
   17754  return 0;
   17755 }
   17756 _ACEOF
   17757 if ac_fn_c_try_compile "$LINENO"; then :
   17758   ac_cv_header_time=yes
   17759 else
   17760   ac_cv_header_time=no
   17761 fi
   17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17763 fi
   17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   17765 $as_echo "$ac_cv_header_time" >&6; }
   17766 if test $ac_cv_header_time = yes; then
   17767 
   17768 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   17769 
   17770 fi
   17771 
   17772 
   17773         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
   17774 do :
   17775   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17776 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17778   cat >>confdefs.h <<_ACEOF
   17779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17780 _ACEOF
   17781 
   17782 fi
   17783 
   17784 done
   17785 
   17786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
   17787 $as_echo_n "checking for struct timeval... " >&6; }
   17788 if ${ac_cv_struct_timeval+:} false; then :
   17789   $as_echo_n "(cached) " >&6
   17790 else
   17791 
   17792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17793 /* end confdefs.h.  */
   17794 
   17795 
   17796 #undef inline
   17797 #ifdef HAVE_WINDOWS_H
   17798 #ifndef WIN32_LEAN_AND_MEAN
   17799 #define WIN32_LEAN_AND_MEAN
   17800 #endif
   17801 #include <windows.h>
   17802 #ifdef HAVE_WINSOCK2_H
   17803 #include <winsock2.h>
   17804 #else
   17805 #ifdef HAVE_WINSOCK_H
   17806 #include <winsock.h>
   17807 #endif
   17808 #endif
   17809 #endif
   17810 #ifdef HAVE_SYS_TYPES_H
   17811 #include <sys/types.h>
   17812 #endif
   17813 #ifdef HAVE_SYS_TIME_H
   17814 #include <sys/time.h>
   17815 #ifdef TIME_WITH_SYS_TIME
   17816 #include <time.h>
   17817 #endif
   17818 #else
   17819 #ifdef HAVE_TIME_H
   17820 #include <time.h>
   17821 #endif
   17822 #endif
   17823 #ifdef HAVE_SYS_SOCKET_H
   17824 #include <sys/socket.h>
   17825 #endif
   17826 
   17827 int main (void)
   17828 {
   17829 
   17830         struct timeval ts;
   17831         ts.tv_sec  = 0;
   17832         ts.tv_usec = 0;
   17833 
   17834  ;
   17835  return 0;
   17836 }
   17837 
   17838 _ACEOF
   17839 if ac_fn_c_try_compile "$LINENO"; then :
   17840 
   17841       ac_cv_struct_timeval="yes"
   17842 
   17843 else
   17844 
   17845       ac_cv_struct_timeval="no"
   17846 
   17847 fi
   17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17849 
   17850 fi
   17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
   17852 $as_echo "$ac_cv_struct_timeval" >&6; }
   17853   case "$ac_cv_struct_timeval" in
   17854     yes)
   17855 
   17856 cat >>confdefs.h <<_ACEOF
   17857 #define HAVE_STRUCT_TIMEVAL 1
   17858 _ACEOF
   17859 
   17860       ;;
   17861   esac
   17862 
   17863 
   17864 # The cast to long int works around a bug in the HP C Compiler
   17865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17867 # This bug is HP SR number 8606223364.
   17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   17869 $as_echo_n "checking size of size_t... " >&6; }
   17870 if ${ac_cv_sizeof_size_t+:} false; then :
   17871   $as_echo_n "(cached) " >&6
   17872 else
   17873   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   17874 
   17875 else
   17876   if test "$ac_cv_type_size_t" = yes; then
   17877      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17879 as_fn_error 77 "cannot compute sizeof (size_t)
   17880 See \`config.log' for more details" "$LINENO" 5; }
   17881    else
   17882      ac_cv_sizeof_size_t=0
   17883    fi
   17884 fi
   17885 
   17886 fi
   17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   17888 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   17889 
   17890 
   17891 
   17892 cat >>confdefs.h <<_ACEOF
   17893 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   17894 _ACEOF
   17895 
   17896 
   17897 # The cast to long int works around a bug in the HP C Compiler
   17898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17900 # This bug is HP SR number 8606223364.
   17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   17902 $as_echo_n "checking size of int... " >&6; }
   17903 if ${ac_cv_sizeof_int+:} false; then :
   17904   $as_echo_n "(cached) " >&6
   17905 else
   17906   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   17907 
   17908 else
   17909   if test "$ac_cv_type_int" = yes; then
   17910      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17912 as_fn_error 77 "cannot compute sizeof (int)
   17913 See \`config.log' for more details" "$LINENO" 5; }
   17914    else
   17915      ac_cv_sizeof_int=0
   17916    fi
   17917 fi
   17918 
   17919 fi
   17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   17921 $as_echo "$ac_cv_sizeof_int" >&6; }
   17922 
   17923 
   17924 
   17925 cat >>confdefs.h <<_ACEOF
   17926 #define SIZEOF_INT $ac_cv_sizeof_int
   17927 _ACEOF
   17928 
   17929 
   17930 # The cast to long int works around a bug in the HP C Compiler
   17931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17933 # This bug is HP SR number 8606223364.
   17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   17935 $as_echo_n "checking size of long... " >&6; }
   17936 if ${ac_cv_sizeof_long+:} false; then :
   17937   $as_echo_n "(cached) " >&6
   17938 else
   17939   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   17940 
   17941 else
   17942   if test "$ac_cv_type_long" = yes; then
   17943      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17945 as_fn_error 77 "cannot compute sizeof (long)
   17946 See \`config.log' for more details" "$LINENO" 5; }
   17947    else
   17948      ac_cv_sizeof_long=0
   17949    fi
   17950 fi
   17951 
   17952 fi
   17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   17954 $as_echo "$ac_cv_sizeof_long" >&6; }
   17955 
   17956 
   17957 
   17958 cat >>confdefs.h <<_ACEOF
   17959 #define SIZEOF_LONG $ac_cv_sizeof_long
   17960 _ACEOF
   17961 
   17962 
   17963 
   17964   if test -z "$ac_cv_sizeof_long" ||
   17965     test "$ac_cv_sizeof_long" -eq "0"; then
   17966     as_fn_error $? "cannot find out size of long." "$LINENO" 5
   17967   fi
   17968 
   17969 cat >>confdefs.h <<_EOF
   17970 #define CARES_SIZEOF_LONG $ac_cv_sizeof_long
   17971 _EOF
   17972 
   17973 
   17974 # The cast to long int works around a bug in the HP C Compiler
   17975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17977 # This bug is HP SR number 8606223364.
   17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   17979 $as_echo_n "checking size of time_t... " >&6; }
   17980 if ${ac_cv_sizeof_time_t+:} false; then :
   17981   $as_echo_n "(cached) " >&6
   17982 else
   17983   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
   17984 
   17985 else
   17986   if test "$ac_cv_type_time_t" = yes; then
   17987      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17989 as_fn_error 77 "cannot compute sizeof (time_t)
   17990 See \`config.log' for more details" "$LINENO" 5; }
   17991    else
   17992      ac_cv_sizeof_time_t=0
   17993    fi
   17994 fi
   17995 
   17996 fi
   17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   17998 $as_echo "$ac_cv_sizeof_time_t" >&6; }
   17999 
   18000 
   18001 
   18002 cat >>confdefs.h <<_ACEOF
   18003 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
   18004 _ACEOF
   18005 
   18006 
   18007 
   18008 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   18009 if test "x$ac_cv_type_long_long" = xyes; then :
   18010 
   18011 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
   18012 
   18013    longlong="yes"
   18014 
   18015 fi
   18016 
   18017 
   18018 if test "xyes" = "x$longlong"; then
   18019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
   18020 $as_echo_n "checking if numberLL works... " >&6; }
   18021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18022 /* end confdefs.h.  */
   18023 
   18024 
   18025 
   18026 int main (void)
   18027 {
   18028 
   18029       long long val = 1000LL;
   18030 
   18031  ;
   18032  return 0;
   18033 }
   18034 
   18035 _ACEOF
   18036 if ac_fn_c_try_compile "$LINENO"; then :
   18037 
   18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18039 $as_echo "yes" >&6; }
   18040 
   18041 $as_echo "#define HAVE_LL 1" >>confdefs.h
   18042 
   18043 
   18044 else
   18045 
   18046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18047 $as_echo "no" >&6; }
   18048 
   18049 fi
   18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18051 fi
   18052 
   18053 
   18054 # check for ssize_t
   18055 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   18056 if test "x$ac_cv_type_ssize_t" = xyes; then :
   18057 
   18058 else
   18059 
   18060 $as_echo "#define ssize_t int" >>confdefs.h
   18061 
   18062 fi
   18063 
   18064 
   18065 # check for bool type
   18066 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
   18067 #ifdef HAVE_SYS_TYPES_H
   18068 #include <sys/types.h>
   18069 #endif
   18070 #ifdef HAVE_STDBOOL_H
   18071 #include <stdbool.h>
   18072 #endif
   18073 
   18074 "
   18075 if test "x$ac_cv_type_bool" = xyes; then :
   18076 
   18077 
   18078 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
   18079 
   18080 
   18081 fi
   18082 
   18083 
   18084 
   18085 cares_includes_ws2tcpip="\
   18086 /* includes start */
   18087 #ifdef HAVE_WINDOWS_H
   18088 #  ifndef WIN32_LEAN_AND_MEAN
   18089 #    define WIN32_LEAN_AND_MEAN
   18090 #  endif
   18091 #  include <windows.h>
   18092 #  ifdef HAVE_WINSOCK2_H
   18093 #    include <winsock2.h>
   18094 #    ifdef HAVE_WS2TCPIP_H
   18095 #       include <ws2tcpip.h>
   18096 #    endif
   18097 #  endif
   18098 #endif
   18099 /* includes end */"
   18100 
   18101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
   18102 $as_echo_n "checking for windows.h... " >&6; }
   18103 if ${ac_cv_header_windows_h+:} false; then :
   18104   $as_echo_n "(cached) " >&6
   18105 else
   18106 
   18107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18108 /* end confdefs.h.  */
   18109 
   18110 
   18111 #undef inline
   18112 #ifndef WIN32_LEAN_AND_MEAN
   18113 #define WIN32_LEAN_AND_MEAN
   18114 #endif
   18115 #include <windows.h>
   18116 
   18117 int main (void)
   18118 {
   18119 
   18120 #if defined(__CYGWIN__) || defined(__CEGCC__)
   18121         HAVE_WINDOWS_H shall not be defined.
   18122 #else
   18123         int dummy=2*WINVER;
   18124 #endif
   18125 
   18126  ;
   18127  return 0;
   18128 }
   18129 
   18130 _ACEOF
   18131 if ac_fn_c_try_compile "$LINENO"; then :
   18132 
   18133       ac_cv_header_windows_h="yes"
   18134 
   18135 else
   18136 
   18137       ac_cv_header_windows_h="no"
   18138 
   18139 fi
   18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18141 
   18142 fi
   18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
   18144 $as_echo "$ac_cv_header_windows_h" >&6; }
   18145   case "$ac_cv_header_windows_h" in
   18146     yes)
   18147 
   18148 cat >>confdefs.h <<_ACEOF
   18149 #define HAVE_WINDOWS_H 1
   18150 _ACEOF
   18151 
   18152 
   18153 cat >>confdefs.h <<_ACEOF
   18154 #define WIN32_LEAN_AND_MEAN 1
   18155 _ACEOF
   18156 
   18157       ;;
   18158   esac
   18159 
   18160 
   18161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
   18162 $as_echo_n "checking for winsock2.h... " >&6; }
   18163 if ${ac_cv_header_winsock2_h+:} false; then :
   18164   $as_echo_n "(cached) " >&6
   18165 else
   18166 
   18167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18168 /* end confdefs.h.  */
   18169 
   18170 
   18171 #undef inline
   18172 #ifndef WIN32_LEAN_AND_MEAN
   18173 #define WIN32_LEAN_AND_MEAN
   18174 #endif
   18175 #include <windows.h>
   18176 #include <winsock2.h>
   18177 
   18178 int main (void)
   18179 {
   18180 
   18181 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
   18182         HAVE_WINSOCK2_H shall not be defined.
   18183 #else
   18184         int dummy=2*IPPROTO_ESP;
   18185 #endif
   18186 
   18187  ;
   18188  return 0;
   18189 }
   18190 
   18191 _ACEOF
   18192 if ac_fn_c_try_compile "$LINENO"; then :
   18193 
   18194       ac_cv_header_winsock2_h="yes"
   18195 
   18196 else
   18197 
   18198       ac_cv_header_winsock2_h="no"
   18199 
   18200 fi
   18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18202 
   18203 fi
   18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
   18205 $as_echo "$ac_cv_header_winsock2_h" >&6; }
   18206   case "$ac_cv_header_winsock2_h" in
   18207     yes)
   18208 
   18209 cat >>confdefs.h <<_ACEOF
   18210 #define HAVE_WINSOCK2_H 1
   18211 _ACEOF
   18212 
   18213       ;;
   18214   esac
   18215 
   18216 
   18217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
   18218 $as_echo_n "checking for ws2tcpip.h... " >&6; }
   18219 if ${ac_cv_header_ws2tcpip_h+:} false; then :
   18220   $as_echo_n "(cached) " >&6
   18221 else
   18222 
   18223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18224 /* end confdefs.h.  */
   18225 
   18226 
   18227 #undef inline
   18228 #ifndef WIN32_LEAN_AND_MEAN
   18229 #define WIN32_LEAN_AND_MEAN
   18230 #endif
   18231 #include <windows.h>
   18232 #include <winsock2.h>
   18233 #include <ws2tcpip.h>
   18234 
   18235 int main (void)
   18236 {
   18237 
   18238 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
   18239         HAVE_WS2TCPIP_H shall not be defined.
   18240 #else
   18241         int dummy=2*IP_PKTINFO;
   18242 #endif
   18243 
   18244  ;
   18245  return 0;
   18246 }
   18247 
   18248 _ACEOF
   18249 if ac_fn_c_try_compile "$LINENO"; then :
   18250 
   18251       ac_cv_header_ws2tcpip_h="yes"
   18252 
   18253 else
   18254 
   18255       ac_cv_header_ws2tcpip_h="no"
   18256 
   18257 fi
   18258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18259 
   18260 fi
   18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
   18262 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
   18263   case "$ac_cv_header_ws2tcpip_h" in
   18264     yes)
   18265 
   18266 cat >>confdefs.h <<_ACEOF
   18267 #define HAVE_WS2TCPIP_H 1
   18268 _ACEOF
   18269 
   18270       ;;
   18271   esac
   18272 
   18273 
   18274 
   18275 cares_includes_sys_socket="\
   18276 /* includes start */
   18277 #ifdef HAVE_SYS_TYPES_H
   18278 #  include <sys/types.h>
   18279 #endif
   18280 #ifdef HAVE_SYS_SOCKET_H
   18281 #  include <sys/socket.h>
   18282 #endif
   18283 /* includes end */"
   18284   for ac_header in sys/types.h sys/socket.h
   18285 do :
   18286   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
   18288 "
   18289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18290   cat >>confdefs.h <<_ACEOF
   18291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18292 _ACEOF
   18293 
   18294 fi
   18295 
   18296 done
   18297 
   18298 
   18299 
   18300 cares_preprocess_callconv="\
   18301 /* preprocess start */
   18302 #ifdef HAVE_WINDOWS_H
   18303 #  define FUNCALLCONV __stdcall
   18304 #else
   18305 #  define FUNCALLCONV
   18306 #endif
   18307 /* preprocess end */"
   18308 
   18309 
   18310         #
   18311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
   18312 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
   18313   cares_typeof_ares_socklen_t="unknown"
   18314   for arg1 in int SOCKET; do
   18315     for arg2 in 'struct sockaddr' void; do
   18316       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
   18317         if test "$cares_typeof_ares_socklen_t" = "unknown"; then
   18318           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18319 /* end confdefs.h.  */
   18320 
   18321 
   18322               $cares_includes_ws2tcpip
   18323               $cares_includes_sys_socket
   18324               $cares_preprocess_callconv
   18325               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
   18326 
   18327 int main (void)
   18328 {
   18329 
   18330               $t *lenptr = 0;
   18331               if(0 != getpeername(0, 0, lenptr))
   18332                 return 1;
   18333 
   18334  ;
   18335  return 0;
   18336 }
   18337 
   18338 _ACEOF
   18339 if ac_fn_c_try_compile "$LINENO"; then :
   18340 
   18341             cares_typeof_ares_socklen_t="$t"
   18342 
   18343 fi
   18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18345         fi
   18346       done
   18347     done
   18348   done
   18349   for t in socklen_t int; do
   18350     if test "$cares_typeof_ares_socklen_t" = "void"; then
   18351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18352 /* end confdefs.h.  */
   18353 
   18354 
   18355           $cares_includes_sys_socket
   18356           typedef $t ares_socklen_t;
   18357 
   18358 int main (void)
   18359 {
   18360 
   18361           ares_socklen_t dummy;
   18362 
   18363  ;
   18364  return 0;
   18365 }
   18366 
   18367 _ACEOF
   18368 if ac_fn_c_try_compile "$LINENO"; then :
   18369 
   18370         cares_typeof_ares_socklen_t="$t"
   18371 
   18372 fi
   18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18374     fi
   18375   done
   18376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
   18377 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
   18378   if test "$cares_typeof_ares_socklen_t" = "void" ||
   18379     test "$cares_typeof_ares_socklen_t" = "unknown"; then
   18380     as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
   18381   fi
   18382   #
   18383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
   18384 $as_echo_n "checking size of ares_socklen_t... " >&6; }
   18385   cares_sizeof_ares_socklen_t="unknown"
   18386   cares_pull_headers_socklen_t="unknown"
   18387   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
   18388     tst_pull_header_checks='none ws2tcpip'
   18389     tst_size_checks='4'
   18390   else
   18391     tst_pull_header_checks='none systypes syssocket'
   18392     tst_size_checks='4 8 2'
   18393   fi
   18394   for tst_size in $tst_size_checks; do
   18395     for tst_pull_headers in $tst_pull_header_checks; do
   18396       if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
   18397         case $tst_pull_headers in
   18398           ws2tcpip)
   18399             tmp_includes="$cares_includes_ws2tcpip"
   18400             ;;
   18401           systypes)
   18402             tmp_includes="$cares_includes_sys_types"
   18403             ;;
   18404           syssocket)
   18405             tmp_includes="$cares_includes_sys_socket"
   18406             ;;
   18407           *)
   18408             tmp_includes=""
   18409             ;;
   18410         esac
   18411         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18412 /* end confdefs.h.  */
   18413 
   18414 
   18415             $tmp_includes
   18416             typedef $cares_typeof_ares_socklen_t ares_socklen_t;
   18417             typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
   18418 
   18419 int main (void)
   18420 {
   18421 
   18422             ares_socklen_t dummy;
   18423 
   18424  ;
   18425  return 0;
   18426 }
   18427 
   18428 _ACEOF
   18429 if ac_fn_c_try_compile "$LINENO"; then :
   18430 
   18431           cares_sizeof_ares_socklen_t="$tst_size"
   18432           cares_pull_headers_socklen_t="$tst_pull_headers"
   18433 
   18434 fi
   18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18436       fi
   18437     done
   18438   done
   18439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
   18440 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
   18441   if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
   18442     as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
   18443   fi
   18444   #
   18445   case $cares_pull_headers_socklen_t in
   18446     ws2tcpip)
   18447 
   18448 cat >>confdefs.h <<_EOF
   18449 #define CARES_PULL_WS2TCPIP_H 1
   18450 _EOF
   18451 
   18452       ;;
   18453     systypes)
   18454 
   18455 cat >>confdefs.h <<_EOF
   18456 #define CARES_PULL_SYS_TYPES_H 1
   18457 _EOF
   18458 
   18459       ;;
   18460     syssocket)
   18461 
   18462 cat >>confdefs.h <<_EOF
   18463 #define CARES_PULL_SYS_TYPES_H 1
   18464 _EOF
   18465 
   18466 
   18467 cat >>confdefs.h <<_EOF
   18468 #define CARES_PULL_SYS_SOCKET_H 1
   18469 _EOF
   18470 
   18471       ;;
   18472   esac
   18473 
   18474 cat >>confdefs.h <<_EOF
   18475 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
   18476 _EOF
   18477 
   18478 
   18479 cat >>confdefs.h <<_EOF
   18480 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
   18481 _EOF
   18482 
   18483 
   18484 
   18485 
   18486   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
   18487 #undef inline
   18488 #ifdef HAVE_WINDOWS_H
   18489 #ifndef WIN32_LEAN_AND_MEAN
   18490 #define WIN32_LEAN_AND_MEAN
   18491 #endif
   18492 #include <windows.h>
   18493 #ifdef HAVE_WINSOCK2_H
   18494 #include <winsock2.h>
   18495 #else
   18496 #ifdef HAVE_WINSOCK_H
   18497 #include <winsock.h>
   18498 #endif
   18499 #endif
   18500 #else
   18501 #ifdef HAVE_SYS_TYPES_H
   18502 #include <sys/types.h>
   18503 #endif
   18504 #ifdef HAVE_SYS_SOCKET_H
   18505 #include <sys/socket.h>
   18506 #endif
   18507 #ifdef HAVE_NETINET_IN_H
   18508 #include <netinet/in.h>
   18509 #endif
   18510 #ifdef HAVE_ARPA_INET_H
   18511 #include <arpa/inet.h>
   18512 #endif
   18513 #endif
   18514 
   18515 "
   18516 if test "x$ac_cv_type_in_addr_t" = xyes; then :
   18517 
   18518 else
   18519 
   18520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
   18521 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
   18522 if ${curl_cv_in_addr_t_equiv+:} false; then :
   18523   $as_echo_n "(cached) " >&6
   18524 else
   18525 
   18526       curl_cv_in_addr_t_equiv="unknown"
   18527       for t in "unsigned long" int size_t unsigned long; do
   18528         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
   18529           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18530 /* end confdefs.h.  */
   18531 
   18532 
   18533 #undef inline
   18534 #ifdef HAVE_WINDOWS_H
   18535 #ifndef WIN32_LEAN_AND_MEAN
   18536 #define WIN32_LEAN_AND_MEAN
   18537 #endif
   18538 #include <windows.h>
   18539 #ifdef HAVE_WINSOCK2_H
   18540 #include <winsock2.h>
   18541 #else
   18542 #ifdef HAVE_WINSOCK_H
   18543 #include <winsock.h>
   18544 #endif
   18545 #endif
   18546 #else
   18547 #ifdef HAVE_SYS_TYPES_H
   18548 #include <sys/types.h>
   18549 #endif
   18550 #ifdef HAVE_SYS_SOCKET_H
   18551 #include <sys/socket.h>
   18552 #endif
   18553 #ifdef HAVE_NETINET_IN_H
   18554 #include <netinet/in.h>
   18555 #endif
   18556 #ifdef HAVE_ARPA_INET_H
   18557 #include <arpa/inet.h>
   18558 #endif
   18559 #endif
   18560 
   18561 int main (void)
   18562 {
   18563 
   18564               $t data = inet_addr ("1.2.3.4");
   18565 
   18566  ;
   18567  return 0;
   18568 }
   18569 
   18570 _ACEOF
   18571 if ac_fn_c_try_link "$LINENO"; then :
   18572 
   18573             curl_cv_in_addr_t_equiv="$t"
   18574 
   18575 fi
   18576 rm -f core conftest.err conftest.$ac_objext \
   18577     conftest$ac_exeext conftest.$ac_ext
   18578         fi
   18579       done
   18580 
   18581 fi
   18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
   18583 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
   18584     case "$curl_cv_in_addr_t_equiv" in
   18585       unknown)
   18586         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
   18587         ;;
   18588       *)
   18589 
   18590 cat >>confdefs.h <<_ACEOF
   18591 #define in_addr_t $curl_cv_in_addr_t_equiv
   18592 _ACEOF
   18593 
   18594         ;;
   18595     esac
   18596 
   18597 fi
   18598 
   18599 
   18600 
   18601 
   18602    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
   18603 #undef inline
   18604 #ifdef HAVE_WINDOWS_H
   18605 #ifndef WIN32_LEAN_AND_MEAN
   18606 #define WIN32_LEAN_AND_MEAN
   18607 #endif
   18608 #include <windows.h>
   18609 #ifdef HAVE_WINSOCK2_H
   18610 #include <winsock2.h>
   18611 #endif
   18612 #else
   18613 #ifdef HAVE_SYS_TYPES_H
   18614 #include <sys/types.h>
   18615 #endif
   18616 #ifdef HAVE_SYS_SOCKET_H
   18617 #include <sys/socket.h>
   18618 #endif
   18619 #ifdef HAVE_NETINET_IN_H
   18620 #include <netinet/in.h>
   18621 #endif
   18622 #ifdef HAVE_ARPA_INET_H
   18623 #include <arpa/inet.h>
   18624 #endif
   18625 #endif
   18626 
   18627 "
   18628 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
   18629 
   18630 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
   18631 
   18632 fi
   18633 
   18634 
   18635 
   18636 
   18637   for ac_header in signal.h
   18638 do :
   18639   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
   18640 if test "x$ac_cv_header_signal_h" = xyes; then :
   18641   cat >>confdefs.h <<_ACEOF
   18642 #define HAVE_SIGNAL_H 1
   18643 _ACEOF
   18644 
   18645 fi
   18646 
   18647 done
   18648 
   18649   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
   18650 #ifdef HAVE_SIGNAL_H
   18651 #include <signal.h>
   18652 #endif
   18653 
   18654 "
   18655 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
   18656 
   18657 
   18658 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
   18659 
   18660 
   18661 fi
   18662 
   18663   case "$ac_cv_type_sig_atomic_t" in
   18664     yes)
   18665       #
   18666       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
   18667 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
   18668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18669 /* end confdefs.h.  */
   18670 
   18671 
   18672 #ifdef HAVE_SIGNAL_H
   18673 #include <signal.h>
   18674 #endif
   18675 
   18676 int main (void)
   18677 {
   18678 
   18679           static volatile sig_atomic_t dummy = 0;
   18680 
   18681  ;
   18682  return 0;
   18683 }
   18684 
   18685 _ACEOF
   18686 if ac_fn_c_try_link "$LINENO"; then :
   18687 
   18688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18689 $as_echo "no" >&6; }
   18690         ac_cv_sig_atomic_t_volatile="no"
   18691 
   18692 else
   18693 
   18694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18695 $as_echo "yes" >&6; }
   18696         ac_cv_sig_atomic_t_volatile="yes"
   18697 
   18698 fi
   18699 rm -f core conftest.err conftest.$ac_objext \
   18700     conftest$ac_exeext conftest.$ac_ext
   18701       #
   18702       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
   18703 
   18704 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
   18705 
   18706       fi
   18707       ;;
   18708   esac
   18709 
   18710 
   18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
   18712 $as_echo_n "checking return type of signal handlers... " >&6; }
   18713 if ${ac_cv_type_signal+:} false; then :
   18714   $as_echo_n "(cached) " >&6
   18715 else
   18716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18717 /* end confdefs.h.  */
   18718 #include <sys/types.h>
   18719 #include <signal.h>
   18720 
   18721 int main (void)
   18722 {
   18723 return *(signal (0, 0)) (0) == 1;
   18724  ;
   18725  return 0;
   18726 }
   18727 _ACEOF
   18728 if ac_fn_c_try_compile "$LINENO"; then :
   18729   ac_cv_type_signal=int
   18730 else
   18731   ac_cv_type_signal=void
   18732 fi
   18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18734 fi
   18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   18736 $as_echo "$ac_cv_type_signal" >&6; }
   18737 
   18738 cat >>confdefs.h <<_ACEOF
   18739 #define RETSIGTYPE $ac_cv_type_signal
   18740 _ACEOF
   18741 
   18742 
   18743 
   18744 
   18745       for ac_header in sys/types.h sys/socket.h
   18746 do :
   18747   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   18749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18750   cat >>confdefs.h <<_ACEOF
   18751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18752 _ACEOF
   18753 
   18754 fi
   18755 
   18756 done
   18757 
   18758   #
   18759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
   18760 $as_echo_n "checking for recv... " >&6; }
   18761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18762 /* end confdefs.h.  */
   18763 
   18764 
   18765 #undef inline
   18766 #ifdef HAVE_WINDOWS_H
   18767 #ifndef WIN32_LEAN_AND_MEAN
   18768 #define WIN32_LEAN_AND_MEAN
   18769 #endif
   18770 #include <windows.h>
   18771 #ifdef HAVE_WINSOCK2_H
   18772 #include <winsock2.h>
   18773 #else
   18774 #ifdef HAVE_WINSOCK_H
   18775 #include <winsock.h>
   18776 #endif
   18777 #endif
   18778 #else
   18779 #ifdef HAVE_SYS_TYPES_H
   18780 #include <sys/types.h>
   18781 #endif
   18782 #ifdef HAVE_SYS_SOCKET_H
   18783 #include <sys/socket.h>
   18784 #endif
   18785 #endif
   18786 
   18787 int main (void)
   18788 {
   18789 
   18790       recv(0, 0, 0, 0);
   18791 
   18792  ;
   18793  return 0;
   18794 }
   18795 
   18796 _ACEOF
   18797 if ac_fn_c_try_link "$LINENO"; then :
   18798 
   18799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18800 $as_echo "yes" >&6; }
   18801     curl_cv_recv="yes"
   18802 
   18803 else
   18804 
   18805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18806 $as_echo "no" >&6; }
   18807     curl_cv_recv="no"
   18808 
   18809 fi
   18810 rm -f core conftest.err conftest.$ac_objext \
   18811     conftest$ac_exeext conftest.$ac_ext
   18812   #
   18813   if test "$curl_cv_recv" = "yes"; then
   18814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
   18815 $as_echo_n "checking types of args and return type for recv... " >&6; }
   18816 if ${curl_cv_func_recv_args+:} false; then :
   18817   $as_echo_n "(cached) " >&6
   18818 else
   18819 
   18820       curl_cv_func_recv_args="unknown"
   18821       for recv_retv in 'int' 'ssize_t'; do
   18822         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
   18823           for recv_arg2 in 'char *' 'void *'; do
   18824             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
   18825               for recv_arg4 in 'int' 'unsigned int'; do
   18826                 if test "$curl_cv_func_recv_args" = "unknown"; then
   18827                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18828 /* end confdefs.h.  */
   18829 
   18830 
   18831 #undef inline
   18832 #ifdef HAVE_WINDOWS_H
   18833 #ifndef WIN32_LEAN_AND_MEAN
   18834 #define WIN32_LEAN_AND_MEAN
   18835 #endif
   18836 #include <windows.h>
   18837 #ifdef HAVE_WINSOCK2_H
   18838 #include <winsock2.h>
   18839 #else
   18840 #ifdef HAVE_WINSOCK_H
   18841 #include <winsock.h>
   18842 #endif
   18843 #endif
   18844 #define RECVCALLCONV PASCAL
   18845 #else
   18846 #ifdef HAVE_SYS_TYPES_H
   18847 #include <sys/types.h>
   18848 #endif
   18849 #ifdef HAVE_SYS_SOCKET_H
   18850 #include <sys/socket.h>
   18851 #endif
   18852 #define RECVCALLCONV
   18853 #endif
   18854                       extern $recv_retv RECVCALLCONV
   18855                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
   18856 
   18857 int main (void)
   18858 {
   18859 
   18860                       $recv_arg1 s=0;
   18861                       $recv_arg2 buf=0;
   18862                       $recv_arg3 len=0;
   18863                       $recv_arg4 flags=0;
   18864                       $recv_retv res = recv(s, buf, len, flags);
   18865 
   18866  ;
   18867  return 0;
   18868 }
   18869 
   18870 _ACEOF
   18871 if ac_fn_c_try_compile "$LINENO"; then :
   18872 
   18873                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
   18874 
   18875 fi
   18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18877                 fi
   18878               done
   18879             done
   18880           done
   18881         done
   18882       done
   18883 
   18884 fi
   18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
   18886 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
   18887     if test "$curl_cv_func_recv_args" = "unknown"; then
   18888       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
   18889     else
   18890       recv_prev_IFS=$IFS; IFS=','
   18891       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
   18892       IFS=$recv_prev_IFS
   18893       shift
   18894       #
   18895 
   18896 cat >>confdefs.h <<_ACEOF
   18897 #define RECV_TYPE_ARG1 $1
   18898 _ACEOF
   18899 
   18900 
   18901 cat >>confdefs.h <<_ACEOF
   18902 #define RECV_TYPE_ARG2 $2
   18903 _ACEOF
   18904 
   18905 
   18906 cat >>confdefs.h <<_ACEOF
   18907 #define RECV_TYPE_ARG3 $3
   18908 _ACEOF
   18909 
   18910 
   18911 cat >>confdefs.h <<_ACEOF
   18912 #define RECV_TYPE_ARG4 $4
   18913 _ACEOF
   18914 
   18915 
   18916 cat >>confdefs.h <<_ACEOF
   18917 #define RECV_TYPE_RETV $5
   18918 _ACEOF
   18919 
   18920       #
   18921 
   18922 cat >>confdefs.h <<_ACEOF
   18923 #define HAVE_RECV 1
   18924 _ACEOF
   18925 
   18926       ac_cv_func_recv="yes"
   18927     fi
   18928   else
   18929     as_fn_error $? "Unable to link function recv" "$LINENO" 5
   18930   fi
   18931 
   18932 
   18933       for ac_header in sys/types.h sys/socket.h
   18934 do :
   18935   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   18937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18938   cat >>confdefs.h <<_ACEOF
   18939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18940 _ACEOF
   18941 
   18942 fi
   18943 
   18944 done
   18945 
   18946   #
   18947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
   18948 $as_echo_n "checking for recvfrom... " >&6; }
   18949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18950 /* end confdefs.h.  */
   18951 
   18952 
   18953 #undef inline
   18954 #ifdef HAVE_WINDOWS_H
   18955 #ifndef WIN32_LEAN_AND_MEAN
   18956 #define WIN32_LEAN_AND_MEAN
   18957 #endif
   18958 #include <windows.h>
   18959 #ifdef HAVE_WINSOCK2_H
   18960 #include <winsock2.h>
   18961 #else
   18962 #ifdef HAVE_WINSOCK_H
   18963 #include <winsock.h>
   18964 #endif
   18965 #endif
   18966 #else
   18967 #ifdef HAVE_SYS_TYPES_H
   18968 #include <sys/types.h>
   18969 #endif
   18970 #ifdef HAVE_SYS_SOCKET_H
   18971 #include <sys/socket.h>
   18972 #endif
   18973 #endif
   18974 
   18975 int main (void)
   18976 {
   18977 
   18978       recvfrom(0, 0, 0, 0, 0, 0);
   18979 
   18980  ;
   18981  return 0;
   18982 }
   18983 
   18984 _ACEOF
   18985 if ac_fn_c_try_link "$LINENO"; then :
   18986 
   18987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18988 $as_echo "yes" >&6; }
   18989     curl_cv_recvfrom="yes"
   18990 
   18991 else
   18992 
   18993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18994 $as_echo "no" >&6; }
   18995     curl_cv_recvfrom="no"
   18996 
   18997 fi
   18998 rm -f core conftest.err conftest.$ac_objext \
   18999     conftest$ac_exeext conftest.$ac_ext
   19000   #
   19001   if test "$curl_cv_recvfrom" = "yes"; then
   19002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
   19003 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
   19004 if ${curl_cv_func_recvfrom_args+:} false; then :
   19005   $as_echo_n "(cached) " >&6
   19006 else
   19007 
   19008       curl_cv_func_recvfrom_args="unknown"
   19009       for recvfrom_retv in 'int' 'ssize_t'; do
   19010         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
   19011           for recvfrom_arg2 in 'char *' 'void *'; do
   19012             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
   19013               for recvfrom_arg4 in 'int' 'unsigned int'; do
   19014                 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
   19015                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
   19016                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
   19017                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19018 /* end confdefs.h.  */
   19019 
   19020 
   19021 #undef inline
   19022 #ifdef HAVE_WINDOWS_H
   19023 #ifndef WIN32_LEAN_AND_MEAN
   19024 #define WIN32_LEAN_AND_MEAN
   19025 #endif
   19026 #include <windows.h>
   19027 #ifdef HAVE_WINSOCK2_H
   19028 #include <winsock2.h>
   19029 #else
   19030 #ifdef HAVE_WINSOCK_H
   19031 #include <winsock.h>
   19032 #endif
   19033 #endif
   19034 #define RECVFROMCALLCONV PASCAL
   19035 #else
   19036 #ifdef HAVE_SYS_TYPES_H
   19037 #include <sys/types.h>
   19038 #endif
   19039 #ifdef HAVE_SYS_SOCKET_H
   19040 #include <sys/socket.h>
   19041 #endif
   19042 #define RECVFROMCALLCONV
   19043 #endif
   19044                           extern $recvfrom_retv RECVFROMCALLCONV
   19045                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
   19046                                    $recvfrom_arg3, $recvfrom_arg4,
   19047                                    $recvfrom_arg5, $recvfrom_arg6);
   19048 
   19049 int main (void)
   19050 {
   19051 
   19052                           $recvfrom_arg1 s=0;
   19053                           $recvfrom_arg2 buf=0;
   19054                           $recvfrom_arg3 len=0;
   19055                           $recvfrom_arg4 flags=0;
   19056                           $recvfrom_arg5 addr=0;
   19057                           $recvfrom_arg6 addrlen=0;
   19058                           $recvfrom_retv res=0;
   19059                           res = recvfrom(s, buf, len, flags, addr, addrlen);
   19060 
   19061  ;
   19062  return 0;
   19063 }
   19064 
   19065 _ACEOF
   19066 if ac_fn_c_try_compile "$LINENO"; then :
   19067 
   19068                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
   19069 
   19070 fi
   19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19072                     fi
   19073                   done
   19074                 done
   19075               done
   19076             done
   19077           done
   19078         done
   19079       done
   19080 
   19081 fi
   19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
   19083 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
   19084     # Nearly last minute change for this release starts here
   19085 
   19086 cat >>confdefs.h <<_ACEOF
   19087 #define HAVE_RECVFROM 1
   19088 _ACEOF
   19089 
   19090     ac_cv_func_recvfrom="yes"
   19091     # Nearly last minute change for this release ends here
   19092     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
   19093       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
   19094 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
   19095     else
   19096       recvfrom_prev_IFS=$IFS; IFS=','
   19097       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
   19098       IFS=$recvfrom_prev_IFS
   19099       shift
   19100       #
   19101       recvfrom_ptrt_arg2=$2
   19102       recvfrom_qual_ptrt_arg5=$5
   19103       recvfrom_ptrt_arg6=$6
   19104       #
   19105 
   19106 cat >>confdefs.h <<_ACEOF
   19107 #define RECVFROM_TYPE_ARG1 $1
   19108 _ACEOF
   19109 
   19110 
   19111 cat >>confdefs.h <<_ACEOF
   19112 #define RECVFROM_TYPE_ARG3 $3
   19113 _ACEOF
   19114 
   19115 
   19116 cat >>confdefs.h <<_ACEOF
   19117 #define RECVFROM_TYPE_ARG4 $4
   19118 _ACEOF
   19119 
   19120 
   19121 cat >>confdefs.h <<_ACEOF
   19122 #define RECVFROM_TYPE_RETV $7
   19123 _ACEOF
   19124 
   19125       #
   19126       prev_sh_opts=$-
   19127       #
   19128       case $prev_sh_opts in
   19129         *f*)
   19130           ;;
   19131         *)
   19132           set -f
   19133           ;;
   19134       esac
   19135       #
   19136       case "$recvfrom_qual_ptrt_arg5" in
   19137         const*)
   19138           recvfrom_qual_arg5=const
   19139           recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
   19140         ;;
   19141         *)
   19142           recvfrom_qual_arg5=
   19143           recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
   19144         ;;
   19145       esac
   19146       #
   19147       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
   19148       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
   19149       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
   19150       #
   19151 
   19152 cat >>confdefs.h <<_ACEOF
   19153 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
   19154 _ACEOF
   19155 
   19156 
   19157 cat >>confdefs.h <<_ACEOF
   19158 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
   19159 _ACEOF
   19160 
   19161 
   19162 cat >>confdefs.h <<_ACEOF
   19163 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
   19164 _ACEOF
   19165 
   19166 
   19167 cat >>confdefs.h <<_ACEOF
   19168 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
   19169 _ACEOF
   19170 
   19171       #
   19172       if test "$recvfrom_type_arg2" = "void"; then
   19173 
   19174 cat >>confdefs.h <<_ACEOF
   19175 #define RECVFROM_TYPE_ARG2_IS_VOID 1
   19176 _ACEOF
   19177 
   19178       fi
   19179       if test "$recvfrom_type_arg5" = "void"; then
   19180 
   19181 cat >>confdefs.h <<_ACEOF
   19182 #define RECVFROM_TYPE_ARG5_IS_VOID 1
   19183 _ACEOF
   19184 
   19185       fi
   19186       if test "$recvfrom_type_arg6" = "void"; then
   19187 
   19188 cat >>confdefs.h <<_ACEOF
   19189 #define RECVFROM_TYPE_ARG6_IS_VOID 1
   19190 _ACEOF
   19191 
   19192       fi
   19193       #
   19194       case $prev_sh_opts in
   19195         *f*)
   19196           ;;
   19197         *)
   19198           set +f
   19199           ;;
   19200       esac
   19201       #
   19202 
   19203 cat >>confdefs.h <<_ACEOF
   19204 #define HAVE_RECVFROM 1
   19205 _ACEOF
   19206 
   19207       ac_cv_func_recvfrom="yes"
   19208     fi
   19209   else
   19210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
   19211 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
   19212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
   19213 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
   19214   fi
   19215 
   19216 
   19217       for ac_header in sys/types.h sys/socket.h
   19218 do :
   19219   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19220 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   19221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19222   cat >>confdefs.h <<_ACEOF
   19223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19224 _ACEOF
   19225 
   19226 fi
   19227 
   19228 done
   19229 
   19230   #
   19231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
   19232 $as_echo_n "checking for send... " >&6; }
   19233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19234 /* end confdefs.h.  */
   19235 
   19236 
   19237 #undef inline
   19238 #ifdef HAVE_WINDOWS_H
   19239 #ifndef WIN32_LEAN_AND_MEAN
   19240 #define WIN32_LEAN_AND_MEAN
   19241 #endif
   19242 #include <windows.h>
   19243 #ifdef HAVE_WINSOCK2_H
   19244 #include <winsock2.h>
   19245 #else
   19246 #ifdef HAVE_WINSOCK_H
   19247 #include <winsock.h>
   19248 #endif
   19249 #endif
   19250 #else
   19251 #ifdef HAVE_SYS_TYPES_H
   19252 #include <sys/types.h>
   19253 #endif
   19254 #ifdef HAVE_SYS_SOCKET_H
   19255 #include <sys/socket.h>
   19256 #endif
   19257 #endif
   19258 
   19259 int main (void)
   19260 {
   19261 
   19262       send(0, 0, 0, 0);
   19263 
   19264  ;
   19265  return 0;
   19266 }
   19267 
   19268 _ACEOF
   19269 if ac_fn_c_try_link "$LINENO"; then :
   19270 
   19271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19272 $as_echo "yes" >&6; }
   19273     curl_cv_send="yes"
   19274 
   19275 else
   19276 
   19277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19278 $as_echo "no" >&6; }
   19279     curl_cv_send="no"
   19280 
   19281 fi
   19282 rm -f core conftest.err conftest.$ac_objext \
   19283     conftest$ac_exeext conftest.$ac_ext
   19284   #
   19285   if test "$curl_cv_send" = "yes"; then
   19286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
   19287 $as_echo_n "checking types of args and return type for send... " >&6; }
   19288 if ${curl_cv_func_send_args+:} false; then :
   19289   $as_echo_n "(cached) " >&6
   19290 else
   19291 
   19292       curl_cv_func_send_args="unknown"
   19293       for send_retv in 'int' 'ssize_t'; do
   19294         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
   19295           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
   19296             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
   19297               for send_arg4 in 'int' 'unsigned int'; do
   19298                 if test "$curl_cv_func_send_args" = "unknown"; then
   19299                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19300 /* end confdefs.h.  */
   19301 
   19302 
   19303 #undef inline
   19304 #ifdef HAVE_WINDOWS_H
   19305 #ifndef WIN32_LEAN_AND_MEAN
   19306 #define WIN32_LEAN_AND_MEAN
   19307 #endif
   19308 #include <windows.h>
   19309 #ifdef HAVE_WINSOCK2_H
   19310 #include <winsock2.h>
   19311 #else
   19312 #ifdef HAVE_WINSOCK_H
   19313 #include <winsock.h>
   19314 #endif
   19315 #endif
   19316 #define SENDCALLCONV PASCAL
   19317 #else
   19318 #ifdef HAVE_SYS_TYPES_H
   19319 #include <sys/types.h>
   19320 #endif
   19321 #ifdef HAVE_SYS_SOCKET_H
   19322 #include <sys/socket.h>
   19323 #endif
   19324 #define SENDCALLCONV
   19325 #endif
   19326                       extern $send_retv SENDCALLCONV
   19327                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
   19328 
   19329 int main (void)
   19330 {
   19331 
   19332                       $send_arg1 s=0;
   19333                       $send_arg3 len=0;
   19334                       $send_arg4 flags=0;
   19335                       $send_retv res = send(s, 0, len, flags);
   19336 
   19337  ;
   19338  return 0;
   19339 }
   19340 
   19341 _ACEOF
   19342 if ac_fn_c_try_compile "$LINENO"; then :
   19343 
   19344                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
   19345 
   19346 fi
   19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19348                 fi
   19349               done
   19350             done
   19351           done
   19352         done
   19353       done
   19354 
   19355 fi
   19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
   19357 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
   19358     if test "$curl_cv_func_send_args" = "unknown"; then
   19359       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
   19360     else
   19361       send_prev_IFS=$IFS; IFS=','
   19362       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
   19363       IFS=$send_prev_IFS
   19364       shift
   19365       #
   19366       send_qual_type_arg2=$2
   19367       #
   19368 
   19369 cat >>confdefs.h <<_ACEOF
   19370 #define SEND_TYPE_ARG1 $1
   19371 _ACEOF
   19372 
   19373 
   19374 cat >>confdefs.h <<_ACEOF
   19375 #define SEND_TYPE_ARG3 $3
   19376 _ACEOF
   19377 
   19378 
   19379 cat >>confdefs.h <<_ACEOF
   19380 #define SEND_TYPE_ARG4 $4
   19381 _ACEOF
   19382 
   19383 
   19384 cat >>confdefs.h <<_ACEOF
   19385 #define SEND_TYPE_RETV $5
   19386 _ACEOF
   19387 
   19388       #
   19389       prev_sh_opts=$-
   19390       #
   19391       case $prev_sh_opts in
   19392         *f*)
   19393           ;;
   19394         *)
   19395           set -f
   19396           ;;
   19397       esac
   19398       #
   19399       case "$send_qual_type_arg2" in
   19400         const*)
   19401           send_qual_arg2=const
   19402           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
   19403         ;;
   19404         *)
   19405           send_qual_arg2=
   19406           send_type_arg2=$send_qual_type_arg2
   19407         ;;
   19408       esac
   19409       #
   19410 
   19411 cat >>confdefs.h <<_ACEOF
   19412 #define SEND_QUAL_ARG2 $send_qual_arg2
   19413 _ACEOF
   19414 
   19415 
   19416 cat >>confdefs.h <<_ACEOF
   19417 #define SEND_TYPE_ARG2 $send_type_arg2
   19418 _ACEOF
   19419 
   19420       #
   19421       case $prev_sh_opts in
   19422         *f*)
   19423           ;;
   19424         *)
   19425           set +f
   19426           ;;
   19427       esac
   19428       #
   19429 
   19430 cat >>confdefs.h <<_ACEOF
   19431 #define HAVE_SEND 1
   19432 _ACEOF
   19433 
   19434       ac_cv_func_send="yes"
   19435     fi
   19436   else
   19437     as_fn_error $? "Unable to link function send" "$LINENO" 5
   19438   fi
   19439 
   19440 
   19441   for ac_header in sys/types.h sys/socket.h
   19442 do :
   19443   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   19445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19446   cat >>confdefs.h <<_ACEOF
   19447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19448 _ACEOF
   19449 
   19450 fi
   19451 
   19452 done
   19453 
   19454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
   19455 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
   19456 if ${ac_cv_msg_nosignal+:} false; then :
   19457   $as_echo_n "(cached) " >&6
   19458 else
   19459 
   19460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19461 /* end confdefs.h.  */
   19462 
   19463 
   19464 #undef inline
   19465 #ifdef HAVE_WINDOWS_H
   19466 #ifndef WIN32_LEAN_AND_MEAN
   19467 #define WIN32_LEAN_AND_MEAN
   19468 #endif
   19469 #include <windows.h>
   19470 #ifdef HAVE_WINSOCK2_H
   19471 #include <winsock2.h>
   19472 #else
   19473 #ifdef HAVE_WINSOCK_H
   19474 #include <winsock.h>
   19475 #endif
   19476 #endif
   19477 #else
   19478 #ifdef HAVE_SYS_TYPES_H
   19479 #include <sys/types.h>
   19480 #endif
   19481 #ifdef HAVE_SYS_SOCKET_H
   19482 #include <sys/socket.h>
   19483 #endif
   19484 #endif
   19485 
   19486 int main (void)
   19487 {
   19488 
   19489         int flag=MSG_NOSIGNAL;
   19490 
   19491  ;
   19492  return 0;
   19493 }
   19494 
   19495 _ACEOF
   19496 if ac_fn_c_try_compile "$LINENO"; then :
   19497 
   19498       ac_cv_msg_nosignal="yes"
   19499 
   19500 else
   19501 
   19502       ac_cv_msg_nosignal="no"
   19503 
   19504 fi
   19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19506 
   19507 fi
   19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
   19509 $as_echo "$ac_cv_msg_nosignal" >&6; }
   19510   case "$ac_cv_msg_nosignal" in
   19511     yes)
   19512 
   19513 cat >>confdefs.h <<_ACEOF
   19514 #define HAVE_MSG_NOSIGNAL 1
   19515 _ACEOF
   19516 
   19517       ;;
   19518   esac
   19519 
   19520 
   19521 
   19522 cares_includes_socket="\
   19523 /* includes start */
   19524 #ifdef HAVE_SYS_TYPES_H
   19525 #  include <sys/types.h>
   19526 #endif
   19527 #ifdef HAVE_SOCKET_H
   19528 #  include <socket.h>
   19529 #endif
   19530 /* includes end */"
   19531   for ac_header in sys/types.h socket.h
   19532 do :
   19533   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
   19535 "
   19536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19537   cat >>confdefs.h <<_ACEOF
   19538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19539 _ACEOF
   19540 
   19541 fi
   19542 
   19543 done
   19544 
   19545 
   19546 
   19547       #
   19548   tst_links_closesocket="unknown"
   19549   tst_proto_closesocket="unknown"
   19550   tst_compi_closesocket="unknown"
   19551   tst_allow_closesocket="unknown"
   19552   #
   19553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
   19554 $as_echo_n "checking if closesocket can be linked... " >&6; }
   19555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19556 /* end confdefs.h.  */
   19557 
   19558 
   19559       $cares_includes_winsock2
   19560       $cares_includes_socket
   19561 
   19562 int main (void)
   19563 {
   19564 
   19565       if(0 != closesocket(0))
   19566         return 1;
   19567 
   19568  ;
   19569  return 0;
   19570 }
   19571 
   19572 _ACEOF
   19573 if ac_fn_c_try_link "$LINENO"; then :
   19574 
   19575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19576 $as_echo "yes" >&6; }
   19577     tst_links_closesocket="yes"
   19578 
   19579 else
   19580 
   19581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19582 $as_echo "no" >&6; }
   19583     tst_links_closesocket="no"
   19584 
   19585 fi
   19586 rm -f core conftest.err conftest.$ac_objext \
   19587     conftest$ac_exeext conftest.$ac_ext
   19588   #
   19589   if test "$tst_links_closesocket" = "yes"; then
   19590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
   19591 $as_echo_n "checking if closesocket is prototyped... " >&6; }
   19592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19593 /* end confdefs.h.  */
   19594 
   19595       $cares_includes_winsock2
   19596       $cares_includes_socket
   19597 
   19598 _ACEOF
   19599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19600   $EGREP "closesocket" >/dev/null 2>&1; then :
   19601 
   19602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19603 $as_echo "yes" >&6; }
   19604       tst_proto_closesocket="yes"
   19605 
   19606 else
   19607 
   19608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19609 $as_echo "no" >&6; }
   19610       tst_proto_closesocket="no"
   19611 
   19612 fi
   19613 rm -f conftest*
   19614 
   19615   fi
   19616   #
   19617   if test "$tst_proto_closesocket" = "yes"; then
   19618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
   19619 $as_echo_n "checking if closesocket is compilable... " >&6; }
   19620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19621 /* end confdefs.h.  */
   19622 
   19623 
   19624         $cares_includes_winsock2
   19625         $cares_includes_socket
   19626 
   19627 int main (void)
   19628 {
   19629 
   19630         if(0 != closesocket(0))
   19631           return 1;
   19632 
   19633  ;
   19634  return 0;
   19635 }
   19636 
   19637 _ACEOF
   19638 if ac_fn_c_try_compile "$LINENO"; then :
   19639 
   19640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19641 $as_echo "yes" >&6; }
   19642       tst_compi_closesocket="yes"
   19643 
   19644 else
   19645 
   19646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19647 $as_echo "no" >&6; }
   19648       tst_compi_closesocket="no"
   19649 
   19650 fi
   19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19652   fi
   19653   #
   19654   if test "$tst_compi_closesocket" = "yes"; then
   19655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
   19656 $as_echo_n "checking if closesocket usage allowed... " >&6; }
   19657     if test "x$cares_disallow_closesocket" != "xyes"; then
   19658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19659 $as_echo "yes" >&6; }
   19660       tst_allow_closesocket="yes"
   19661     else
   19662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19663 $as_echo "no" >&6; }
   19664       tst_allow_closesocket="no"
   19665     fi
   19666   fi
   19667   #
   19668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
   19669 $as_echo_n "checking if closesocket might be used... " >&6; }
   19670   if test "$tst_links_closesocket" = "yes" &&
   19671      test "$tst_proto_closesocket" = "yes" &&
   19672      test "$tst_compi_closesocket" = "yes" &&
   19673      test "$tst_allow_closesocket" = "yes"; then
   19674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19675 $as_echo "yes" >&6; }
   19676 
   19677 cat >>confdefs.h <<_ACEOF
   19678 #define HAVE_CLOSESOCKET 1
   19679 _ACEOF
   19680 
   19681     ac_cv_func_closesocket="yes"
   19682   else
   19683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19684 $as_echo "no" >&6; }
   19685     ac_cv_func_closesocket="no"
   19686   fi
   19687 
   19688 
   19689     #
   19690   tst_links_closesocket_camel="unknown"
   19691   tst_proto_closesocket_camel="unknown"
   19692   tst_compi_closesocket_camel="unknown"
   19693   tst_allow_closesocket_camel="unknown"
   19694   #
   19695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
   19696 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
   19697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19698 /* end confdefs.h.  */
   19699 
   19700 
   19701       $cares_includes_sys_socket
   19702 
   19703 int main (void)
   19704 {
   19705 
   19706       if(0 != CloseSocket(0))
   19707         return 1;
   19708 
   19709  ;
   19710  return 0;
   19711 }
   19712 
   19713 _ACEOF
   19714 if ac_fn_c_try_link "$LINENO"; then :
   19715 
   19716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19717 $as_echo "yes" >&6; }
   19718     tst_links_closesocket_camel="yes"
   19719 
   19720 else
   19721 
   19722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19723 $as_echo "no" >&6; }
   19724     tst_links_closesocket_camel="no"
   19725 
   19726 fi
   19727 rm -f core conftest.err conftest.$ac_objext \
   19728     conftest$ac_exeext conftest.$ac_ext
   19729   #
   19730   if test "$tst_links_closesocket_camel" = "yes"; then
   19731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
   19732 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
   19733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19734 /* end confdefs.h.  */
   19735 
   19736       $cares_includes_sys_socket
   19737 
   19738 _ACEOF
   19739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19740   $EGREP "CloseSocket" >/dev/null 2>&1; then :
   19741 
   19742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19743 $as_echo "yes" >&6; }
   19744       tst_proto_closesocket_camel="yes"
   19745 
   19746 else
   19747 
   19748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19749 $as_echo "no" >&6; }
   19750       tst_proto_closesocket_camel="no"
   19751 
   19752 fi
   19753 rm -f conftest*
   19754 
   19755   fi
   19756   #
   19757   if test "$tst_proto_closesocket_camel" = "yes"; then
   19758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
   19759 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
   19760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19761 /* end confdefs.h.  */
   19762 
   19763 
   19764         $cares_includes_sys_socket
   19765 
   19766 int main (void)
   19767 {
   19768 
   19769         if(0 != CloseSocket(0))
   19770           return 1;
   19771 
   19772  ;
   19773  return 0;
   19774 }
   19775 
   19776 _ACEOF
   19777 if ac_fn_c_try_compile "$LINENO"; then :
   19778 
   19779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19780 $as_echo "yes" >&6; }
   19781       tst_compi_closesocket_camel="yes"
   19782 
   19783 else
   19784 
   19785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19786 $as_echo "no" >&6; }
   19787       tst_compi_closesocket_camel="no"
   19788 
   19789 fi
   19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19791   fi
   19792   #
   19793   if test "$tst_compi_closesocket_camel" = "yes"; then
   19794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
   19795 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
   19796     if test "x$cares_disallow_closesocket_camel" != "xyes"; then
   19797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19798 $as_echo "yes" >&6; }
   19799       tst_allow_closesocket_camel="yes"
   19800     else
   19801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19802 $as_echo "no" >&6; }
   19803       tst_allow_closesocket_camel="no"
   19804     fi
   19805   fi
   19806   #
   19807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
   19808 $as_echo_n "checking if CloseSocket might be used... " >&6; }
   19809   if test "$tst_links_closesocket_camel" = "yes" &&
   19810      test "$tst_proto_closesocket_camel" = "yes" &&
   19811      test "$tst_compi_closesocket_camel" = "yes" &&
   19812      test "$tst_allow_closesocket_camel" = "yes"; then
   19813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19814 $as_echo "yes" >&6; }
   19815 
   19816 cat >>confdefs.h <<_ACEOF
   19817 #define HAVE_CLOSESOCKET_CAMEL 1
   19818 _ACEOF
   19819 
   19820     ac_cv_func_closesocket_camel="yes"
   19821   else
   19822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19823 $as_echo "no" >&6; }
   19824     ac_cv_func_closesocket_camel="no"
   19825   fi
   19826 
   19827 
   19828         #
   19829   tst_links_connect="unknown"
   19830   tst_proto_connect="unknown"
   19831   tst_compi_connect="unknown"
   19832   tst_allow_connect="unknown"
   19833   #
   19834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
   19835 $as_echo_n "checking if connect can be linked... " >&6; }
   19836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19837 /* end confdefs.h.  */
   19838 
   19839 
   19840       $cares_includes_winsock2
   19841       $cares_includes_sys_socket
   19842       $cares_includes_socket
   19843 
   19844 int main (void)
   19845 {
   19846 
   19847       if(0 != connect(0, 0, 0))
   19848         return 1;
   19849 
   19850  ;
   19851  return 0;
   19852 }
   19853 
   19854 _ACEOF
   19855 if ac_fn_c_try_link "$LINENO"; then :
   19856 
   19857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19858 $as_echo "yes" >&6; }
   19859     tst_links_connect="yes"
   19860 
   19861 else
   19862 
   19863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19864 $as_echo "no" >&6; }
   19865     tst_links_connect="no"
   19866 
   19867 fi
   19868 rm -f core conftest.err conftest.$ac_objext \
   19869     conftest$ac_exeext conftest.$ac_ext
   19870   #
   19871   if test "$tst_links_connect" = "yes"; then
   19872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
   19873 $as_echo_n "checking if connect is prototyped... " >&6; }
   19874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19875 /* end confdefs.h.  */
   19876 
   19877       $cares_includes_winsock2
   19878       $cares_includes_sys_socket
   19879       $cares_includes_socket
   19880 
   19881 _ACEOF
   19882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19883   $EGREP "connect" >/dev/null 2>&1; then :
   19884 
   19885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19886 $as_echo "yes" >&6; }
   19887       tst_proto_connect="yes"
   19888 
   19889 else
   19890 
   19891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19892 $as_echo "no" >&6; }
   19893       tst_proto_connect="no"
   19894 
   19895 fi
   19896 rm -f conftest*
   19897 
   19898   fi
   19899   #
   19900   if test "$tst_proto_connect" = "yes"; then
   19901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
   19902 $as_echo_n "checking if connect is compilable... " >&6; }
   19903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19904 /* end confdefs.h.  */
   19905 
   19906 
   19907         $cares_includes_winsock2
   19908         $cares_includes_sys_socket
   19909         $cares_includes_socket
   19910 
   19911 int main (void)
   19912 {
   19913 
   19914         if(0 != connect(0, 0, 0))
   19915           return 1;
   19916 
   19917  ;
   19918  return 0;
   19919 }
   19920 
   19921 _ACEOF
   19922 if ac_fn_c_try_compile "$LINENO"; then :
   19923 
   19924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19925 $as_echo "yes" >&6; }
   19926       tst_compi_connect="yes"
   19927 
   19928 else
   19929 
   19930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19931 $as_echo "no" >&6; }
   19932       tst_compi_connect="no"
   19933 
   19934 fi
   19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19936   fi
   19937   #
   19938   if test "$tst_compi_connect" = "yes"; then
   19939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
   19940 $as_echo_n "checking if connect usage allowed... " >&6; }
   19941     if test "x$cares_disallow_connect" != "xyes"; then
   19942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19943 $as_echo "yes" >&6; }
   19944       tst_allow_connect="yes"
   19945     else
   19946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19947 $as_echo "no" >&6; }
   19948       tst_allow_connect="no"
   19949     fi
   19950   fi
   19951   #
   19952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
   19953 $as_echo_n "checking if connect might be used... " >&6; }
   19954   if test "$tst_links_connect" = "yes" &&
   19955      test "$tst_proto_connect" = "yes" &&
   19956      test "$tst_compi_connect" = "yes" &&
   19957      test "$tst_allow_connect" = "yes"; then
   19958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19959 $as_echo "yes" >&6; }
   19960 
   19961 cat >>confdefs.h <<_ACEOF
   19962 #define HAVE_CONNECT 1
   19963 _ACEOF
   19964 
   19965     ac_cv_func_connect="yes"
   19966   else
   19967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19968 $as_echo "no" >&6; }
   19969     ac_cv_func_connect="no"
   19970   fi
   19971 
   19972 
   19973 cares_includes_fcntl="\
   19974 /* includes start */
   19975 #ifdef HAVE_SYS_TYPES_H
   19976 #  include <sys/types.h>
   19977 #endif
   19978 #ifdef HAVE_UNISTD_H
   19979 #  include <unistd.h>
   19980 #endif
   19981 #ifdef HAVE_FCNTL_H
   19982 #  include <fcntl.h>
   19983 #endif
   19984 /* includes end */"
   19985   for ac_header in sys/types.h unistd.h fcntl.h
   19986 do :
   19987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
   19989 "
   19990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19991   cat >>confdefs.h <<_ACEOF
   19992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19993 _ACEOF
   19994 
   19995 fi
   19996 
   19997 done
   19998 
   19999 
   20000 
   20001     #
   20002   tst_links_fcntl="unknown"
   20003   tst_proto_fcntl="unknown"
   20004   tst_compi_fcntl="unknown"
   20005   tst_allow_fcntl="unknown"
   20006   #
   20007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
   20008 $as_echo_n "checking if fcntl can be linked... " >&6; }
   20009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20010 /* end confdefs.h.  */
   20011 
   20012 
   20013 #define fcntl innocuous_fcntl
   20014 #ifdef __STDC__
   20015 # include <limits.h>
   20016 #else
   20017 # include <assert.h>
   20018 #endif
   20019 #undef fcntl
   20020 #ifdef __cplusplus
   20021 extern "C"
   20022 #endif
   20023 char fcntl ();
   20024 #if defined __stub_fcntl || defined __stub___fcntl
   20025 choke me
   20026 #endif
   20027 
   20028 int main (void)
   20029 {
   20030 return fcntl ();
   20031  ;
   20032  return 0;
   20033 }
   20034 
   20035 _ACEOF
   20036 if ac_fn_c_try_link "$LINENO"; then :
   20037 
   20038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20039 $as_echo "yes" >&6; }
   20040     tst_links_fcntl="yes"
   20041 
   20042 else
   20043 
   20044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20045 $as_echo "no" >&6; }
   20046     tst_links_fcntl="no"
   20047 
   20048 fi
   20049 rm -f core conftest.err conftest.$ac_objext \
   20050     conftest$ac_exeext conftest.$ac_ext
   20051   #
   20052   if test "$tst_links_fcntl" = "yes"; then
   20053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
   20054 $as_echo_n "checking if fcntl is prototyped... " >&6; }
   20055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20056 /* end confdefs.h.  */
   20057 
   20058       $cares_includes_fcntl
   20059 
   20060 _ACEOF
   20061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20062   $EGREP "fcntl" >/dev/null 2>&1; then :
   20063 
   20064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20065 $as_echo "yes" >&6; }
   20066       tst_proto_fcntl="yes"
   20067 
   20068 else
   20069 
   20070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20071 $as_echo "no" >&6; }
   20072       tst_proto_fcntl="no"
   20073 
   20074 fi
   20075 rm -f conftest*
   20076 
   20077   fi
   20078   #
   20079   if test "$tst_proto_fcntl" = "yes"; then
   20080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
   20081 $as_echo_n "checking if fcntl is compilable... " >&6; }
   20082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20083 /* end confdefs.h.  */
   20084 
   20085 
   20086         $cares_includes_fcntl
   20087 
   20088 int main (void)
   20089 {
   20090 
   20091         if(0 != fcntl(0, 0, 0))
   20092           return 1;
   20093 
   20094  ;
   20095  return 0;
   20096 }
   20097 
   20098 _ACEOF
   20099 if ac_fn_c_try_compile "$LINENO"; then :
   20100 
   20101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20102 $as_echo "yes" >&6; }
   20103       tst_compi_fcntl="yes"
   20104 
   20105 else
   20106 
   20107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20108 $as_echo "no" >&6; }
   20109       tst_compi_fcntl="no"
   20110 
   20111 fi
   20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20113   fi
   20114   #
   20115   if test "$tst_compi_fcntl" = "yes"; then
   20116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
   20117 $as_echo_n "checking if fcntl usage allowed... " >&6; }
   20118     if test "x$cares_disallow_fcntl" != "xyes"; then
   20119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20120 $as_echo "yes" >&6; }
   20121       tst_allow_fcntl="yes"
   20122     else
   20123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20124 $as_echo "no" >&6; }
   20125       tst_allow_fcntl="no"
   20126     fi
   20127   fi
   20128   #
   20129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
   20130 $as_echo_n "checking if fcntl might be used... " >&6; }
   20131   if test "$tst_links_fcntl" = "yes" &&
   20132      test "$tst_proto_fcntl" = "yes" &&
   20133      test "$tst_compi_fcntl" = "yes" &&
   20134      test "$tst_allow_fcntl" = "yes"; then
   20135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20136 $as_echo "yes" >&6; }
   20137 
   20138 cat >>confdefs.h <<_ACEOF
   20139 #define HAVE_FCNTL 1
   20140 _ACEOF
   20141 
   20142     ac_cv_func_fcntl="yes"
   20143 
   20144   #
   20145   tst_compi_fcntl_o_nonblock="unknown"
   20146   tst_allow_fcntl_o_nonblock="unknown"
   20147   #
   20148   case $host_os in
   20149     sunos4* | aix3* | beos*)
   20150             cares_disallow_fcntl_o_nonblock="yes"
   20151       ;;
   20152   esac
   20153   #
   20154   if test "$ac_cv_func_fcntl" = "yes"; then
   20155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
   20156 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
   20157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20158 /* end confdefs.h.  */
   20159 
   20160 
   20161         $cares_includes_fcntl
   20162 
   20163 int main (void)
   20164 {
   20165 
   20166         int flags = 0;
   20167         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
   20168           return 1;
   20169 
   20170  ;
   20171  return 0;
   20172 }
   20173 
   20174 _ACEOF
   20175 if ac_fn_c_try_compile "$LINENO"; then :
   20176 
   20177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20178 $as_echo "yes" >&6; }
   20179       tst_compi_fcntl_o_nonblock="yes"
   20180 
   20181 else
   20182 
   20183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20184 $as_echo "no" >&6; }
   20185       tst_compi_fcntl_o_nonblock="no"
   20186 
   20187 fi
   20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20189   fi
   20190   #
   20191   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
   20192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
   20193 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
   20194     if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
   20195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20196 $as_echo "yes" >&6; }
   20197       tst_allow_fcntl_o_nonblock="yes"
   20198     else
   20199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20200 $as_echo "no" >&6; }
   20201       tst_allow_fcntl_o_nonblock="no"
   20202     fi
   20203   fi
   20204   #
   20205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
   20206 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
   20207   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
   20208      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
   20209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20210 $as_echo "yes" >&6; }
   20211 
   20212 cat >>confdefs.h <<_ACEOF
   20213 #define HAVE_FCNTL_O_NONBLOCK 1
   20214 _ACEOF
   20215 
   20216     ac_cv_func_fcntl_o_nonblock="yes"
   20217   else
   20218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20219 $as_echo "no" >&6; }
   20220     ac_cv_func_fcntl_o_nonblock="no"
   20221   fi
   20222 
   20223   else
   20224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20225 $as_echo "no" >&6; }
   20226     ac_cv_func_fcntl="no"
   20227   fi
   20228 
   20229 
   20230 cares_includes_netdb="\
   20231 /* includes start */
   20232 #ifdef HAVE_SYS_TYPES_H
   20233 #  include <sys/types.h>
   20234 #endif
   20235 #ifdef HAVE_NETDB_H
   20236 #  include <netdb.h>
   20237 #endif
   20238 /* includes end */"
   20239   for ac_header in sys/types.h netdb.h
   20240 do :
   20241   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
   20243 "
   20244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   20245   cat >>confdefs.h <<_ACEOF
   20246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20247 _ACEOF
   20248 
   20249 fi
   20250 
   20251 done
   20252 
   20253 
   20254 
   20255         #
   20256   tst_links_freeaddrinfo="unknown"
   20257   tst_proto_freeaddrinfo="unknown"
   20258   tst_compi_freeaddrinfo="unknown"
   20259   tst_allow_freeaddrinfo="unknown"
   20260   #
   20261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
   20262 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
   20263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20264 /* end confdefs.h.  */
   20265 
   20266 
   20267       $cares_includes_ws2tcpip
   20268       $cares_includes_sys_socket
   20269       $cares_includes_netdb
   20270 
   20271 int main (void)
   20272 {
   20273 
   20274       freeaddrinfo(0);
   20275 
   20276  ;
   20277  return 0;
   20278 }
   20279 
   20280 _ACEOF
   20281 if ac_fn_c_try_link "$LINENO"; then :
   20282 
   20283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20284 $as_echo "yes" >&6; }
   20285     tst_links_freeaddrinfo="yes"
   20286 
   20287 else
   20288 
   20289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20290 $as_echo "no" >&6; }
   20291     tst_links_freeaddrinfo="no"
   20292 
   20293 fi
   20294 rm -f core conftest.err conftest.$ac_objext \
   20295     conftest$ac_exeext conftest.$ac_ext
   20296   #
   20297   if test "$tst_links_freeaddrinfo" = "yes"; then
   20298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
   20299 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
   20300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20301 /* end confdefs.h.  */
   20302 
   20303       $cares_includes_ws2tcpip
   20304       $cares_includes_sys_socket
   20305       $cares_includes_netdb
   20306 
   20307 _ACEOF
   20308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20309   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
   20310 
   20311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20312 $as_echo "yes" >&6; }
   20313       tst_proto_freeaddrinfo="yes"
   20314 
   20315 else
   20316 
   20317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20318 $as_echo "no" >&6; }
   20319       tst_proto_freeaddrinfo="no"
   20320 
   20321 fi
   20322 rm -f conftest*
   20323 
   20324   fi
   20325   #
   20326   if test "$tst_proto_freeaddrinfo" = "yes"; then
   20327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
   20328 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
   20329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20330 /* end confdefs.h.  */
   20331 
   20332 
   20333         $cares_includes_ws2tcpip
   20334         $cares_includes_sys_socket
   20335         $cares_includes_netdb
   20336 
   20337 int main (void)
   20338 {
   20339 
   20340         freeaddrinfo(0);
   20341 
   20342  ;
   20343  return 0;
   20344 }
   20345 
   20346 _ACEOF
   20347 if ac_fn_c_try_compile "$LINENO"; then :
   20348 
   20349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20350 $as_echo "yes" >&6; }
   20351       tst_compi_freeaddrinfo="yes"
   20352 
   20353 else
   20354 
   20355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20356 $as_echo "no" >&6; }
   20357       tst_compi_freeaddrinfo="no"
   20358 
   20359 fi
   20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20361   fi
   20362   #
   20363   if test "$tst_compi_freeaddrinfo" = "yes"; then
   20364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
   20365 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
   20366     if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
   20367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20368 $as_echo "yes" >&6; }
   20369       tst_allow_freeaddrinfo="yes"
   20370     else
   20371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20372 $as_echo "no" >&6; }
   20373       tst_allow_freeaddrinfo="no"
   20374     fi
   20375   fi
   20376   #
   20377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
   20378 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
   20379   if test "$tst_links_freeaddrinfo" = "yes" &&
   20380      test "$tst_proto_freeaddrinfo" = "yes" &&
   20381      test "$tst_compi_freeaddrinfo" = "yes" &&
   20382      test "$tst_allow_freeaddrinfo" = "yes"; then
   20383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20384 $as_echo "yes" >&6; }
   20385 
   20386 cat >>confdefs.h <<_ACEOF
   20387 #define HAVE_FREEADDRINFO 1
   20388 _ACEOF
   20389 
   20390     ac_cv_func_freeaddrinfo="yes"
   20391   else
   20392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20393 $as_echo "no" >&6; }
   20394     ac_cv_func_freeaddrinfo="no"
   20395   fi
   20396 
   20397 
   20398 cares_includes_stdlib="\
   20399 /* includes start */
   20400 #ifdef HAVE_SYS_TYPES_H
   20401 #  include <sys/types.h>
   20402 #endif
   20403 #ifdef HAVE_STDLIB_H
   20404 #  include <stdlib.h>
   20405 #endif
   20406 /* includes end */"
   20407   for ac_header in sys/types.h stdlib.h
   20408 do :
   20409   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20410 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
   20411 "
   20412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   20413   cat >>confdefs.h <<_ACEOF
   20414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20415 _ACEOF
   20416 
   20417 fi
   20418 
   20419 done
   20420 
   20421 
   20422 
   20423 cares_includes_string="\
   20424 /* includes start */
   20425 #ifdef HAVE_SYS_TYPES_H
   20426 #  include <sys/types.h>
   20427 #endif
   20428 #ifdef HAVE_STRING_H
   20429 #  include <string.h>
   20430 #endif
   20431 #ifdef HAVE_STRINGS_H
   20432 #  include <strings.h>
   20433 #endif
   20434 /* includes end */"
   20435   for ac_header in sys/types.h string.h strings.h
   20436 do :
   20437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
   20439 "
   20440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   20441   cat >>confdefs.h <<_ACEOF
   20442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20443 _ACEOF
   20444 
   20445 fi
   20446 
   20447 done
   20448 
   20449 
   20450 
   20451             #
   20452   tst_links_getaddrinfo="unknown"
   20453   tst_proto_getaddrinfo="unknown"
   20454   tst_compi_getaddrinfo="unknown"
   20455   tst_works_getaddrinfo="unknown"
   20456   tst_allow_getaddrinfo="unknown"
   20457   tst_tsafe_getaddrinfo="unknown"
   20458   #
   20459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
   20460 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
   20461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20462 /* end confdefs.h.  */
   20463 
   20464 
   20465       $cares_includes_ws2tcpip
   20466       $cares_includes_sys_socket
   20467       $cares_includes_netdb
   20468 
   20469 int main (void)
   20470 {
   20471 
   20472       if(0 != getaddrinfo(0, 0, 0, 0))
   20473         return 1;
   20474 
   20475  ;
   20476  return 0;
   20477 }
   20478 
   20479 _ACEOF
   20480 if ac_fn_c_try_link "$LINENO"; then :
   20481 
   20482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20483 $as_echo "yes" >&6; }
   20484     tst_links_getaddrinfo="yes"
   20485 
   20486 else
   20487 
   20488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20489 $as_echo "no" >&6; }
   20490     tst_links_getaddrinfo="no"
   20491 
   20492 fi
   20493 rm -f core conftest.err conftest.$ac_objext \
   20494     conftest$ac_exeext conftest.$ac_ext
   20495   #
   20496   if test "$tst_links_getaddrinfo" = "yes"; then
   20497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
   20498 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
   20499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20500 /* end confdefs.h.  */
   20501 
   20502       $cares_includes_ws2tcpip
   20503       $cares_includes_sys_socket
   20504       $cares_includes_netdb
   20505 
   20506 _ACEOF
   20507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20508   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
   20509 
   20510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20511 $as_echo "yes" >&6; }
   20512       tst_proto_getaddrinfo="yes"
   20513 
   20514 else
   20515 
   20516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20517 $as_echo "no" >&6; }
   20518       tst_proto_getaddrinfo="no"
   20519 
   20520 fi
   20521 rm -f conftest*
   20522 
   20523   fi
   20524   #
   20525   if test "$tst_proto_getaddrinfo" = "yes"; then
   20526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
   20527 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
   20528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20529 /* end confdefs.h.  */
   20530 
   20531 
   20532         $cares_includes_ws2tcpip
   20533         $cares_includes_sys_socket
   20534         $cares_includes_netdb
   20535 
   20536 int main (void)
   20537 {
   20538 
   20539         if(0 != getaddrinfo(0, 0, 0, 0))
   20540           return 1;
   20541 
   20542  ;
   20543  return 0;
   20544 }
   20545 
   20546 _ACEOF
   20547 if ac_fn_c_try_compile "$LINENO"; then :
   20548 
   20549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20550 $as_echo "yes" >&6; }
   20551       tst_compi_getaddrinfo="yes"
   20552 
   20553 else
   20554 
   20555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20556 $as_echo "no" >&6; }
   20557       tst_compi_getaddrinfo="no"
   20558 
   20559 fi
   20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20561   fi
   20562   #
   20563     if test "x$cross_compiling" != "xyes" &&
   20564     test "$tst_compi_getaddrinfo" = "yes"; then
   20565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
   20566 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
   20567     if test "$cross_compiling" = yes; then :
   20568   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20570 as_fn_error $? "cannot run test program while cross compiling
   20571 See \`config.log' for more details" "$LINENO" 5; }
   20572 else
   20573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20574 /* end confdefs.h.  */
   20575 
   20576 
   20577         $cares_includes_ws2tcpip
   20578         $cares_includes_stdlib
   20579         $cares_includes_string
   20580         $cares_includes_sys_socket
   20581         $cares_includes_netdb
   20582 
   20583 int main (void)
   20584 {
   20585 
   20586         struct addrinfo hints;
   20587         struct addrinfo *ai = 0;
   20588         int error;
   20589 
   20590         memset(&hints, 0, sizeof(hints));
   20591         hints.ai_flags = AI_NUMERICHOST;
   20592         hints.ai_family = AF_UNSPEC;
   20593         hints.ai_socktype = SOCK_STREAM;
   20594         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
   20595         if(error || !ai)
   20596           exit(1); /* fail */
   20597         else
   20598           exit(0);
   20599 
   20600  ;
   20601  return 0;
   20602 }
   20603 
   20604 _ACEOF
   20605 if ac_fn_c_try_run "$LINENO"; then :
   20606 
   20607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20608 $as_echo "yes" >&6; }
   20609       tst_works_getaddrinfo="yes"
   20610 
   20611 else
   20612 
   20613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20614 $as_echo "no" >&6; }
   20615       tst_works_getaddrinfo="no"
   20616 
   20617 fi
   20618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20619   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20620 fi
   20621 
   20622   fi
   20623   #
   20624   if test "$tst_compi_getaddrinfo" = "yes" &&
   20625     test "$tst_works_getaddrinfo" != "no"; then
   20626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
   20627 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
   20628     if test "x$cares_disallow_getaddrinfo" != "xyes"; then
   20629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20630 $as_echo "yes" >&6; }
   20631       tst_allow_getaddrinfo="yes"
   20632     else
   20633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20634 $as_echo "no" >&6; }
   20635       tst_allow_getaddrinfo="no"
   20636     fi
   20637   fi
   20638   #
   20639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
   20640 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
   20641   if test "$tst_links_getaddrinfo" = "yes" &&
   20642      test "$tst_proto_getaddrinfo" = "yes" &&
   20643      test "$tst_compi_getaddrinfo" = "yes" &&
   20644      test "$tst_allow_getaddrinfo" = "yes" &&
   20645      test "$tst_works_getaddrinfo" != "no"; then
   20646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20647 $as_echo "yes" >&6; }
   20648 
   20649 cat >>confdefs.h <<_ACEOF
   20650 #define HAVE_GETADDRINFO 1
   20651 _ACEOF
   20652 
   20653     ac_cv_func_getaddrinfo="yes"
   20654   else
   20655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20656 $as_echo "no" >&6; }
   20657     ac_cv_func_getaddrinfo="no"
   20658     ac_cv_func_getaddrinfo_threadsafe="no"
   20659   fi
   20660   #
   20661   if test "$ac_cv_func_getaddrinfo" = "yes"; then
   20662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
   20663 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
   20664     case $host_os in
   20665       aix[1234].* | aix5.[01].*)
   20666                 tst_tsafe_getaddrinfo="no"
   20667         ;;
   20668       aix*)
   20669                 tst_tsafe_getaddrinfo="yes"
   20670         ;;
   20671       darwin[12345].*)
   20672                 tst_tsafe_getaddrinfo="no"
   20673         ;;
   20674       darwin*)
   20675                 tst_tsafe_getaddrinfo="yes"
   20676         ;;
   20677       freebsd[1234].* | freebsd5.[1234]*)
   20678                 tst_tsafe_getaddrinfo="no"
   20679         ;;
   20680       freebsd*)
   20681                 tst_tsafe_getaddrinfo="yes"
   20682         ;;
   20683       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
   20684                 tst_tsafe_getaddrinfo="no"
   20685         ;;
   20686       hpux*)
   20687                 tst_tsafe_getaddrinfo="yes"
   20688         ;;
   20689       netbsd[123].*)
   20690                 tst_tsafe_getaddrinfo="no"
   20691         ;;
   20692       netbsd*)
   20693                 tst_tsafe_getaddrinfo="yes"
   20694         ;;
   20695       *bsd*)
   20696                 tst_tsafe_getaddrinfo="no"
   20697         ;;
   20698       solaris2*)
   20699                 tst_tsafe_getaddrinfo="yes"
   20700         ;;
   20701     esac
   20702     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
   20703 
   20704 
   20705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20706 /* end confdefs.h.  */
   20707 
   20708 
   20709         $cares_includes_ws2tcpip
   20710         $cares_includes_sys_socket
   20711         $cares_includes_netdb
   20712 
   20713 int main (void)
   20714 {
   20715 #ifdef h_errno
   20716   return 0;
   20717 #else
   20718   force compilation error
   20719 #endif
   20720 }
   20721 
   20722 
   20723 _ACEOF
   20724 if ac_fn_c_try_compile "$LINENO"; then :
   20725 
   20726     tst_symbol_defined="yes"
   20727 
   20728 else
   20729 
   20730     tst_symbol_defined="no"
   20731 
   20732 fi
   20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20734   if test "$tst_symbol_defined" = "yes"; then
   20735     curl_cv_have_def_h_errno=yes
   20736 
   20737   else
   20738     curl_cv_have_def_h_errno=no
   20739 
   20740   fi
   20741 
   20742       if test "$curl_cv_have_def_h_errno" = "no"; then
   20743         tst_tsafe_getaddrinfo="no"
   20744       fi
   20745     fi
   20746     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
   20747       tst_tsafe_getaddrinfo="yes"
   20748     fi
   20749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
   20750 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
   20751     if test "$tst_tsafe_getaddrinfo" = "yes"; then
   20752 
   20753 cat >>confdefs.h <<_ACEOF
   20754 #define HAVE_GETADDRINFO_THREADSAFE 1
   20755 _ACEOF
   20756 
   20757       ac_cv_func_getaddrinfo_threadsafe="yes"
   20758     else
   20759       ac_cv_func_getaddrinfo_threadsafe="no"
   20760     fi
   20761   fi
   20762 
   20763 
   20764     #
   20765   tst_links_getenv="unknown"
   20766   tst_proto_getenv="unknown"
   20767   tst_compi_getenv="unknown"
   20768   tst_allow_getenv="unknown"
   20769   #
   20770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
   20771 $as_echo_n "checking if getenv can be linked... " >&6; }
   20772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20773 /* end confdefs.h.  */
   20774 
   20775 
   20776 #define getenv innocuous_getenv
   20777 #ifdef __STDC__
   20778 # include <limits.h>
   20779 #else
   20780 # include <assert.h>
   20781 #endif
   20782 #undef getenv
   20783 #ifdef __cplusplus
   20784 extern "C"
   20785 #endif
   20786 char getenv ();
   20787 #if defined __stub_getenv || defined __stub___getenv
   20788 choke me
   20789 #endif
   20790 
   20791 int main (void)
   20792 {
   20793 return getenv ();
   20794  ;
   20795  return 0;
   20796 }
   20797 
   20798 _ACEOF
   20799 if ac_fn_c_try_link "$LINENO"; then :
   20800 
   20801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20802 $as_echo "yes" >&6; }
   20803     tst_links_getenv="yes"
   20804 
   20805 else
   20806 
   20807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20808 $as_echo "no" >&6; }
   20809     tst_links_getenv="no"
   20810 
   20811 fi
   20812 rm -f core conftest.err conftest.$ac_objext \
   20813     conftest$ac_exeext conftest.$ac_ext
   20814   #
   20815   if test "$tst_links_getenv" = "yes"; then
   20816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
   20817 $as_echo_n "checking if getenv is prototyped... " >&6; }
   20818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20819 /* end confdefs.h.  */
   20820 
   20821       $cares_includes_stdlib
   20822 
   20823 _ACEOF
   20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20825   $EGREP "getenv" >/dev/null 2>&1; then :
   20826 
   20827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20828 $as_echo "yes" >&6; }
   20829       tst_proto_getenv="yes"
   20830 
   20831 else
   20832 
   20833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20834 $as_echo "no" >&6; }
   20835       tst_proto_getenv="no"
   20836 
   20837 fi
   20838 rm -f conftest*
   20839 
   20840   fi
   20841   #
   20842   if test "$tst_proto_getenv" = "yes"; then
   20843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
   20844 $as_echo_n "checking if getenv is compilable... " >&6; }
   20845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20846 /* end confdefs.h.  */
   20847 
   20848 
   20849         $cares_includes_stdlib
   20850 
   20851 int main (void)
   20852 {
   20853 
   20854         if(0 != getenv(0))
   20855           return 1;
   20856 
   20857  ;
   20858  return 0;
   20859 }
   20860 
   20861 _ACEOF
   20862 if ac_fn_c_try_compile "$LINENO"; then :
   20863 
   20864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20865 $as_echo "yes" >&6; }
   20866       tst_compi_getenv="yes"
   20867 
   20868 else
   20869 
   20870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20871 $as_echo "no" >&6; }
   20872       tst_compi_getenv="no"
   20873 
   20874 fi
   20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20876   fi
   20877   #
   20878   if test "$tst_compi_getenv" = "yes"; then
   20879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
   20880 $as_echo_n "checking if getenv usage allowed... " >&6; }
   20881     if test "x$cares_disallow_getenv" != "xyes"; then
   20882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20883 $as_echo "yes" >&6; }
   20884       tst_allow_getenv="yes"
   20885     else
   20886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20887 $as_echo "no" >&6; }
   20888       tst_allow_getenv="no"
   20889     fi
   20890   fi
   20891   #
   20892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
   20893 $as_echo_n "checking if getenv might be used... " >&6; }
   20894   if test "$tst_links_getenv" = "yes" &&
   20895      test "$tst_proto_getenv" = "yes" &&
   20896      test "$tst_compi_getenv" = "yes" &&
   20897      test "$tst_allow_getenv" = "yes"; then
   20898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20899 $as_echo "yes" >&6; }
   20900 
   20901 cat >>confdefs.h <<_ACEOF
   20902 #define HAVE_GETENV 1
   20903 _ACEOF
   20904 
   20905     ac_cv_func_getenv="yes"
   20906   else
   20907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20908 $as_echo "no" >&6; }
   20909     ac_cv_func_getenv="no"
   20910   fi
   20911 
   20912 
   20913       #
   20914   tst_links_gethostbyaddr="unknown"
   20915   tst_proto_gethostbyaddr="unknown"
   20916   tst_compi_gethostbyaddr="unknown"
   20917   tst_allow_gethostbyaddr="unknown"
   20918   #
   20919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
   20920 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
   20921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20922 /* end confdefs.h.  */
   20923 
   20924 
   20925       $cares_includes_winsock2
   20926       $cares_includes_netdb
   20927 
   20928 int main (void)
   20929 {
   20930 
   20931       if(0 != gethostbyaddr(0, 0, 0))
   20932         return 1;
   20933 
   20934  ;
   20935  return 0;
   20936 }
   20937 
   20938 _ACEOF
   20939 if ac_fn_c_try_link "$LINENO"; then :
   20940 
   20941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20942 $as_echo "yes" >&6; }
   20943     tst_links_gethostbyaddr="yes"
   20944 
   20945 else
   20946 
   20947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20948 $as_echo "no" >&6; }
   20949     tst_links_gethostbyaddr="no"
   20950 
   20951 fi
   20952 rm -f core conftest.err conftest.$ac_objext \
   20953     conftest$ac_exeext conftest.$ac_ext
   20954   #
   20955   if test "$tst_links_gethostbyaddr" = "yes"; then
   20956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
   20957 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
   20958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20959 /* end confdefs.h.  */
   20960 
   20961       $cares_includes_winsock2
   20962       $cares_includes_netdb
   20963 
   20964 _ACEOF
   20965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20966   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
   20967 
   20968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20969 $as_echo "yes" >&6; }
   20970       tst_proto_gethostbyaddr="yes"
   20971 
   20972 else
   20973 
   20974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20975 $as_echo "no" >&6; }
   20976       tst_proto_gethostbyaddr="no"
   20977 
   20978 fi
   20979 rm -f conftest*
   20980 
   20981   fi
   20982   #
   20983   if test "$tst_proto_gethostbyaddr" = "yes"; then
   20984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
   20985 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
   20986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20987 /* end confdefs.h.  */
   20988 
   20989 
   20990         $cares_includes_winsock2
   20991         $cares_includes_netdb
   20992 
   20993 int main (void)
   20994 {
   20995 
   20996         if(0 != gethostbyaddr(0, 0, 0))
   20997           return 1;
   20998 
   20999  ;
   21000  return 0;
   21001 }
   21002 
   21003 _ACEOF
   21004 if ac_fn_c_try_compile "$LINENO"; then :
   21005 
   21006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21007 $as_echo "yes" >&6; }
   21008       tst_compi_gethostbyaddr="yes"
   21009 
   21010 else
   21011 
   21012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21013 $as_echo "no" >&6; }
   21014       tst_compi_gethostbyaddr="no"
   21015 
   21016 fi
   21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21018   fi
   21019   #
   21020   if test "$tst_compi_gethostbyaddr" = "yes"; then
   21021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
   21022 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
   21023     if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
   21024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21025 $as_echo "yes" >&6; }
   21026       tst_allow_gethostbyaddr="yes"
   21027     else
   21028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21029 $as_echo "no" >&6; }
   21030       tst_allow_gethostbyaddr="no"
   21031     fi
   21032   fi
   21033   #
   21034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
   21035 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
   21036   if test "$tst_links_gethostbyaddr" = "yes" &&
   21037      test "$tst_proto_gethostbyaddr" = "yes" &&
   21038      test "$tst_compi_gethostbyaddr" = "yes" &&
   21039      test "$tst_allow_gethostbyaddr" = "yes"; then
   21040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21041 $as_echo "yes" >&6; }
   21042 
   21043 cat >>confdefs.h <<_ACEOF
   21044 #define HAVE_GETHOSTBYADDR 1
   21045 _ACEOF
   21046 
   21047     ac_cv_func_gethostbyaddr="yes"
   21048   else
   21049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21050 $as_echo "no" >&6; }
   21051     ac_cv_func_gethostbyaddr="no"
   21052   fi
   21053 
   21054 
   21055       #
   21056   tst_links_gethostbyname="unknown"
   21057   tst_proto_gethostbyname="unknown"
   21058   tst_compi_gethostbyname="unknown"
   21059   tst_allow_gethostbyname="unknown"
   21060   #
   21061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
   21062 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
   21063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21064 /* end confdefs.h.  */
   21065 
   21066 
   21067       $cares_includes_winsock2
   21068       $cares_includes_netdb
   21069 
   21070 int main (void)
   21071 {
   21072 
   21073       if(0 != gethostbyname(0))
   21074         return 1;
   21075 
   21076  ;
   21077  return 0;
   21078 }
   21079 
   21080 _ACEOF
   21081 if ac_fn_c_try_link "$LINENO"; then :
   21082 
   21083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21084 $as_echo "yes" >&6; }
   21085     tst_links_gethostbyname="yes"
   21086 
   21087 else
   21088 
   21089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21090 $as_echo "no" >&6; }
   21091     tst_links_gethostbyname="no"
   21092 
   21093 fi
   21094 rm -f core conftest.err conftest.$ac_objext \
   21095     conftest$ac_exeext conftest.$ac_ext
   21096   #
   21097   if test "$tst_links_gethostbyname" = "yes"; then
   21098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
   21099 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
   21100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21101 /* end confdefs.h.  */
   21102 
   21103       $cares_includes_winsock2
   21104       $cares_includes_netdb
   21105 
   21106 _ACEOF
   21107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   21108   $EGREP "gethostbyname" >/dev/null 2>&1; then :
   21109 
   21110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21111 $as_echo "yes" >&6; }
   21112       tst_proto_gethostbyname="yes"
   21113 
   21114 else
   21115 
   21116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21117 $as_echo "no" >&6; }
   21118       tst_proto_gethostbyname="no"
   21119 
   21120 fi
   21121 rm -f conftest*
   21122 
   21123   fi
   21124   #
   21125   if test "$tst_proto_gethostbyname" = "yes"; then
   21126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
   21127 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
   21128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21129 /* end confdefs.h.  */
   21130 
   21131 
   21132         $cares_includes_winsock2
   21133         $cares_includes_netdb
   21134 
   21135 int main (void)
   21136 {
   21137 
   21138         if(0 != gethostbyname(0))
   21139           return 1;
   21140 
   21141  ;
   21142  return 0;
   21143 }
   21144 
   21145 _ACEOF
   21146 if ac_fn_c_try_compile "$LINENO"; then :
   21147 
   21148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21149 $as_echo "yes" >&6; }
   21150       tst_compi_gethostbyname="yes"
   21151 
   21152 else
   21153 
   21154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21155 $as_echo "no" >&6; }
   21156       tst_compi_gethostbyname="no"
   21157 
   21158 fi
   21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21160   fi
   21161   #
   21162   if test "$tst_compi_gethostbyname" = "yes"; then
   21163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
   21164 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
   21165     if test "x$cares_disallow_gethostbyname" != "xyes"; then
   21166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21167 $as_echo "yes" >&6; }
   21168       tst_allow_gethostbyname="yes"
   21169     else
   21170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21171 $as_echo "no" >&6; }
   21172       tst_allow_gethostbyname="no"
   21173     fi
   21174   fi
   21175   #
   21176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
   21177 $as_echo_n "checking if gethostbyname might be used... " >&6; }
   21178   if test "$tst_links_gethostbyname" = "yes" &&
   21179      test "$tst_proto_gethostbyname" = "yes" &&
   21180      test "$tst_compi_gethostbyname" = "yes" &&
   21181      test "$tst_allow_gethostbyname" = "yes"; then
   21182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21183 $as_echo "yes" >&6; }
   21184 
   21185 cat >>confdefs.h <<_ACEOF
   21186 #define HAVE_GETHOSTBYNAME 1
   21187 _ACEOF
   21188 
   21189     ac_cv_func_gethostbyname="yes"
   21190   else
   21191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21192 $as_echo "no" >&6; }
   21193     ac_cv_func_gethostbyname="no"
   21194   fi
   21195 
   21196 
   21197 cares_includes_unistd="\
   21198 /* includes start */
   21199 #ifdef HAVE_SYS_TYPES_H
   21200 #  include <sys/types.h>
   21201 #endif
   21202 #ifdef HAVE_UNISTD_H
   21203 #  include <unistd.h>
   21204 #endif
   21205 /* includes end */"
   21206   for ac_header in sys/types.h unistd.h
   21207 do :
   21208   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
   21210 "
   21211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   21212   cat >>confdefs.h <<_ACEOF
   21213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21214 _ACEOF
   21215 
   21216 fi
   21217 
   21218 done
   21219 
   21220 
   21221 
   21222       #
   21223   tst_links_gethostname="unknown"
   21224   tst_proto_gethostname="unknown"
   21225   tst_compi_gethostname="unknown"
   21226   tst_allow_gethostname="unknown"
   21227   #
   21228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
   21229 $as_echo_n "checking if gethostname can be linked... " >&6; }
   21230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21231 /* end confdefs.h.  */
   21232 
   21233 
   21234       $cares_includes_winsock2
   21235       $cares_includes_unistd
   21236 
   21237 int main (void)
   21238 {
   21239 
   21240       if(0 != gethostname(0, 0))
   21241         return 1;
   21242 
   21243  ;
   21244  return 0;
   21245 }
   21246 
   21247 _ACEOF
   21248 if ac_fn_c_try_link "$LINENO"; then :
   21249 
   21250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21251 $as_echo "yes" >&6; }
   21252     tst_links_gethostname="yes"
   21253 
   21254 else
   21255 
   21256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21257 $as_echo "no" >&6; }
   21258     tst_links_gethostname="no"
   21259 
   21260 fi
   21261 rm -f core conftest.err conftest.$ac_objext \
   21262     conftest$ac_exeext conftest.$ac_ext
   21263   #
   21264   if test "$tst_links_gethostname" = "yes"; then
   21265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
   21266 $as_echo_n "checking if gethostname is prototyped... " >&6; }
   21267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21268 /* end confdefs.h.  */
   21269 
   21270       $cares_includes_winsock2
   21271       $cares_includes_unistd
   21272 
   21273 _ACEOF
   21274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   21275   $EGREP "gethostname" >/dev/null 2>&1; then :
   21276 
   21277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21278 $as_echo "yes" >&6; }
   21279       tst_proto_gethostname="yes"
   21280 
   21281 else
   21282 
   21283       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21284 $as_echo "no" >&6; }
   21285       tst_proto_gethostname="no"
   21286 
   21287 fi
   21288 rm -f conftest*
   21289 
   21290   fi
   21291   #
   21292   if test "$tst_proto_gethostname" = "yes"; then
   21293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
   21294 $as_echo_n "checking if gethostname is compilable... " >&6; }
   21295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21296 /* end confdefs.h.  */
   21297 
   21298 
   21299         $cares_includes_winsock2
   21300         $cares_includes_unistd
   21301 
   21302 int main (void)
   21303 {
   21304 
   21305         if(0 != gethostname(0, 0))
   21306           return 1;
   21307 
   21308  ;
   21309  return 0;
   21310 }
   21311 
   21312 _ACEOF
   21313 if ac_fn_c_try_compile "$LINENO"; then :
   21314 
   21315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21316 $as_echo "yes" >&6; }
   21317       tst_compi_gethostname="yes"
   21318 
   21319 else
   21320 
   21321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21322 $as_echo "no" >&6; }
   21323       tst_compi_gethostname="no"
   21324 
   21325 fi
   21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21327   fi
   21328   #
   21329   if test "$tst_compi_gethostname" = "yes"; then
   21330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
   21331 $as_echo_n "checking if gethostname usage allowed... " >&6; }
   21332     if test "x$cares_disallow_gethostname" != "xyes"; then
   21333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21334 $as_echo "yes" >&6; }
   21335       tst_allow_gethostname="yes"
   21336     else
   21337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21338 $as_echo "no" >&6; }
   21339       tst_allow_gethostname="no"
   21340     fi
   21341   fi
   21342   #
   21343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
   21344 $as_echo_n "checking if gethostname might be used... " >&6; }
   21345   if test "$tst_links_gethostname" = "yes" &&
   21346      test "$tst_proto_gethostname" = "yes" &&
   21347      test "$tst_compi_gethostname" = "yes" &&
   21348      test "$tst_allow_gethostname" = "yes"; then
   21349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21350 $as_echo "yes" >&6; }
   21351 
   21352 cat >>confdefs.h <<_ACEOF
   21353 #define HAVE_GETHOSTNAME 1
   21354 _ACEOF
   21355 
   21356     ac_cv_func_gethostname="yes"
   21357   else
   21358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21359 $as_echo "no" >&6; }
   21360     ac_cv_func_gethostname="no"
   21361   fi
   21362 
   21363 
   21364     #
   21365   tst_links_getservbyport_r="unknown"
   21366   tst_proto_getservbyport_r="unknown"
   21367   tst_compi_getservbyport_r="unknown"
   21368   tst_allow_getservbyport_r="unknown"
   21369   tst_nargs_getservbyport_r="unknown"
   21370   #
   21371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
   21372 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
   21373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21374 /* end confdefs.h.  */
   21375 
   21376 
   21377 #define getservbyport_r innocuous_getservbyport_r
   21378 #ifdef __STDC__
   21379 # include <limits.h>
   21380 #else
   21381 # include <assert.h>
   21382 #endif
   21383 #undef getservbyport_r
   21384 #ifdef __cplusplus
   21385 extern "C"
   21386 #endif
   21387 char getservbyport_r ();
   21388 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
   21389 choke me
   21390 #endif
   21391 
   21392 int main (void)
   21393 {
   21394 return getservbyport_r ();
   21395  ;
   21396  return 0;
   21397 }
   21398 
   21399 _ACEOF
   21400 if ac_fn_c_try_link "$LINENO"; then :
   21401 
   21402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21403 $as_echo "yes" >&6; }
   21404     tst_links_getservbyport_r="yes"
   21405 
   21406 else
   21407 
   21408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21409 $as_echo "no" >&6; }
   21410     tst_links_getservbyport_r="no"
   21411 
   21412 fi
   21413 rm -f core conftest.err conftest.$ac_objext \
   21414     conftest$ac_exeext conftest.$ac_ext
   21415   #
   21416   if test "$tst_links_getservbyport_r" = "yes"; then
   21417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
   21418 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
   21419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21420 /* end confdefs.h.  */
   21421 
   21422       $cares_includes_netdb
   21423 
   21424 _ACEOF
   21425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   21426   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
   21427 
   21428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21429 $as_echo "yes" >&6; }
   21430       tst_proto_getservbyport_r="yes"
   21431 
   21432 else
   21433 
   21434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21435 $as_echo "no" >&6; }
   21436       tst_proto_getservbyport_r="no"
   21437 
   21438 fi
   21439 rm -f conftest*
   21440 
   21441   fi
   21442   #
   21443   if test "$tst_proto_getservbyport_r" = "yes"; then
   21444     if test "$tst_nargs_getservbyport_r" = "unknown"; then
   21445       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
   21446 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
   21447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21448 /* end confdefs.h.  */
   21449 
   21450 
   21451           $cares_includes_netdb
   21452 
   21453 int main (void)
   21454 {
   21455 
   21456           if(0 != getservbyport_r(0, 0, 0, 0))
   21457             return 1;
   21458 
   21459  ;
   21460  return 0;
   21461 }
   21462 
   21463 _ACEOF
   21464 if ac_fn_c_try_compile "$LINENO"; then :
   21465 
   21466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21467 $as_echo "yes" >&6; }
   21468         tst_compi_getservbyport_r="yes"
   21469         tst_nargs_getservbyport_r="4"
   21470 
   21471 else
   21472 
   21473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21474 $as_echo "no" >&6; }
   21475         tst_compi_getservbyport_r="no"
   21476 
   21477 fi
   21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21479     fi
   21480     if test "$tst_nargs_getservbyport_r" = "unknown"; then
   21481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
   21482 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
   21483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21484 /* end confdefs.h.  */
   21485 
   21486 
   21487           $cares_includes_netdb
   21488 
   21489 int main (void)
   21490 {
   21491 
   21492           if(0 != getservbyport_r(0, 0, 0, 0, 0))
   21493             return 1;
   21494 
   21495  ;
   21496  return 0;
   21497 }
   21498 
   21499 _ACEOF
   21500 if ac_fn_c_try_compile "$LINENO"; then :
   21501 
   21502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21503 $as_echo "yes" >&6; }
   21504         tst_compi_getservbyport_r="yes"
   21505         tst_nargs_getservbyport_r="5"
   21506 
   21507 else
   21508 
   21509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21510 $as_echo "no" >&6; }
   21511         tst_compi_getservbyport_r="no"
   21512 
   21513 fi
   21514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21515     fi
   21516     if test "$tst_nargs_getservbyport_r" = "unknown"; then
   21517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
   21518 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
   21519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21520 /* end confdefs.h.  */
   21521 
   21522 
   21523           $cares_includes_netdb
   21524 
   21525 int main (void)
   21526 {
   21527 
   21528           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
   21529             return 1;
   21530 
   21531  ;
   21532  return 0;
   21533 }
   21534 
   21535 _ACEOF
   21536 if ac_fn_c_try_compile "$LINENO"; then :
   21537 
   21538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21539 $as_echo "yes" >&6; }
   21540         tst_compi_getservbyport_r="yes"
   21541         tst_nargs_getservbyport_r="6"
   21542 
   21543 else
   21544 
   21545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21546 $as_echo "no" >&6; }
   21547         tst_compi_getservbyport_r="no"
   21548 
   21549 fi
   21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21551     fi
   21552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
   21553 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
   21554     if test "$tst_compi_getservbyport_r" = "yes"; then
   21555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21556 $as_echo "yes" >&6; }
   21557     else
   21558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21559 $as_echo "no" >&6; }
   21560     fi
   21561   fi
   21562   #
   21563   if test "$tst_compi_getservbyport_r" = "yes"; then
   21564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
   21565 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
   21566     if test "x$cares_disallow_getservbyport_r" != "xyes"; then
   21567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21568 $as_echo "yes" >&6; }
   21569       tst_allow_getservbyport_r="yes"
   21570     else
   21571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21572 $as_echo "no" >&6; }
   21573       tst_allow_getservbyport_r="no"
   21574     fi
   21575   fi
   21576   #
   21577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
   21578 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
   21579   if test "$tst_links_getservbyport_r" = "yes" &&
   21580      test "$tst_proto_getservbyport_r" = "yes" &&
   21581      test "$tst_compi_getservbyport_r" = "yes" &&
   21582      test "$tst_allow_getservbyport_r" = "yes"; then
   21583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21584 $as_echo "yes" >&6; }
   21585 
   21586 cat >>confdefs.h <<_ACEOF
   21587 #define HAVE_GETSERVBYPORT_R 1
   21588 _ACEOF
   21589 
   21590 
   21591 cat >>confdefs.h <<_ACEOF
   21592 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
   21593 _ACEOF
   21594 
   21595     if test "$tst_nargs_getservbyport_r" -eq "4"; then
   21596 
   21597 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
   21598 
   21599     else
   21600 
   21601 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
   21602 
   21603     fi
   21604     ac_cv_func_getservbyport_r="yes"
   21605   else
   21606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21607 $as_echo "no" >&6; }
   21608     ac_cv_func_getservbyport_r="no"
   21609   fi
   21610 
   21611 
   21612 cares_includes_arpa_inet="\
   21613 /* includes start */
   21614 #ifdef HAVE_SYS_TYPES_H
   21615 #  include <sys/types.h>
   21616 #endif
   21617 #ifdef HAVE_SYS_SOCKET_H
   21618 #  include <sys/socket.h>
   21619 #endif
   21620 #ifdef HAVE_NETINET_IN_H
   21621 #  include <netinet/in.h>
   21622 #endif
   21623 #ifdef HAVE_ARPA_INET_H
   21624 #  include <arpa/inet.h>
   21625 #endif
   21626 /* includes end */"
   21627   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
   21628 do :
   21629   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
   21631 "
   21632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   21633   cat >>confdefs.h <<_ACEOF
   21634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21635 _ACEOF
   21636 
   21637 fi
   21638 
   21639 done
   21640 
   21641 
   21642 
   21643         #
   21644   tst_links_inet_net_pton="unknown"
   21645   tst_proto_inet_net_pton="unknown"
   21646   tst_compi_inet_net_pton="unknown"
   21647   tst_works_inet_net_pton="unknown"
   21648   tst_allow_inet_net_pton="unknown"
   21649   #
   21650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
   21651 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
   21652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21653 /* end confdefs.h.  */
   21654 
   21655 
   21656 #define inet_net_pton innocuous_inet_net_pton
   21657 #ifdef __STDC__
   21658 # include <limits.h>
   21659 #else
   21660 # include <assert.h>
   21661 #endif
   21662 #undef inet_net_pton
   21663 #ifdef __cplusplus
   21664 extern "C"
   21665 #endif
   21666 char inet_net_pton ();
   21667 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
   21668 choke me
   21669 #endif
   21670 
   21671 int main (void)
   21672 {
   21673 return inet_net_pton ();
   21674  ;
   21675  return 0;
   21676 }
   21677 
   21678 _ACEOF
   21679 if ac_fn_c_try_link "$LINENO"; then :
   21680 
   21681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21682 $as_echo "yes" >&6; }
   21683     tst_links_inet_net_pton="yes"
   21684 
   21685 else
   21686 
   21687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21688 $as_echo "no" >&6; }
   21689     tst_links_inet_net_pton="no"
   21690 
   21691 fi
   21692 rm -f core conftest.err conftest.$ac_objext \
   21693     conftest$ac_exeext conftest.$ac_ext
   21694   #
   21695   if test "$tst_links_inet_net_pton" = "yes"; then
   21696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
   21697 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
   21698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21699 /* end confdefs.h.  */
   21700 
   21701       $cares_includes_arpa_inet
   21702 
   21703 _ACEOF
   21704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   21705   $EGREP "inet_net_pton" >/dev/null 2>&1; then :
   21706 
   21707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21708 $as_echo "yes" >&6; }
   21709       tst_proto_inet_net_pton="yes"
   21710 
   21711 else
   21712 
   21713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21714 $as_echo "no" >&6; }
   21715       tst_proto_inet_net_pton="no"
   21716 
   21717 fi
   21718 rm -f conftest*
   21719 
   21720   fi
   21721   #
   21722   if test "$tst_proto_inet_net_pton" = "yes"; then
   21723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
   21724 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
   21725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21726 /* end confdefs.h.  */
   21727 
   21728 
   21729         $cares_includes_arpa_inet
   21730 
   21731 int main (void)
   21732 {
   21733 
   21734         if(0 != inet_net_pton(0, 0, 0, 0))
   21735           return 1;
   21736 
   21737  ;
   21738  return 0;
   21739 }
   21740 
   21741 _ACEOF
   21742 if ac_fn_c_try_compile "$LINENO"; then :
   21743 
   21744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21745 $as_echo "yes" >&6; }
   21746       tst_compi_inet_net_pton="yes"
   21747 
   21748 else
   21749 
   21750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21751 $as_echo "no" >&6; }
   21752       tst_compi_inet_net_pton="no"
   21753 
   21754 fi
   21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21756   fi
   21757   #
   21758     if test "x$cross_compiling" != "xyes" &&
   21759     test "$tst_compi_inet_net_pton" = "yes"; then
   21760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
   21761 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
   21762     if test "$cross_compiling" = yes; then :
   21763   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21765 as_fn_error $? "cannot run test program while cross compiling
   21766 See \`config.log' for more details" "$LINENO" 5; }
   21767 else
   21768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21769 /* end confdefs.h.  */
   21770 
   21771 
   21772         $cares_includes_stdlib
   21773         $cares_includes_arpa_inet
   21774         $cares_includes_string
   21775 
   21776 int main (void)
   21777 {
   21778 
   21779         unsigned char ipv6a[16+1];
   21780         unsigned char ipv4a[4+1];
   21781         const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
   21782         const char *ipv6net2 = "::fffe:7f00:1";
   21783         const char *ipv6net3 = "7f20:1::/64";
   21784         const char *ipv6net4 = "7f20:1::/2147483649";
   21785         const char *ipv4net1 = "192.168.100.1";
   21786         const char *ipv4net2 = "192.168.100/32";
   21787         const char *ipv4net3 = "192.168.100.1/2147483649";
   21788         /* - */
   21789         memset(ipv4a, 1, sizeof(ipv4a));
   21790         if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
   21791           exit(1); /* fail */
   21792         /* - */
   21793         if( (ipv4a[0x00] != 0xc0) ||
   21794             (ipv4a[0x01] != 0xa8) ||
   21795             (ipv4a[0x02] != 0x64) ||
   21796             (ipv4a[0x03] != 0x01) ||
   21797             (ipv4a[0x04] != 0x01) )
   21798           exit(1); /* fail */
   21799         /* - */
   21800         memset(ipv4a, 1, sizeof(ipv4a));
   21801         if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
   21802           exit(1); /* fail */
   21803         /* - */
   21804         if( (ipv4a[0x00] != 0xc0) ||
   21805             (ipv4a[0x01] != 0xa8) ||
   21806             (ipv4a[0x02] != 0x64) ||
   21807             (ipv4a[0x03] != 0x00) ||
   21808             (ipv4a[0x04] != 0x01) )
   21809           exit(1); /* fail */
   21810         /* - */
   21811         memset(ipv4a, 1, sizeof(ipv4a));
   21812         if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
   21813           exit(1); /* fail */
   21814         /* - */
   21815         memset(ipv6a, 1, sizeof(ipv6a));
   21816         if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
   21817           exit(1); /* fail */
   21818         /* - */
   21819         if( (ipv6a[0x00] != 0xfe) ||
   21820             (ipv6a[0x01] != 0x80) ||
   21821             (ipv6a[0x08] != 0x02) ||
   21822             (ipv6a[0x09] != 0x14) ||
   21823             (ipv6a[0x0a] != 0x4f) ||
   21824             (ipv6a[0x0b] != 0xff) ||
   21825             (ipv6a[0x0c] != 0xfe) ||
   21826             (ipv6a[0x0d] != 0x0b) ||
   21827             (ipv6a[0x0e] != 0x76) ||
   21828             (ipv6a[0x0f] != 0xc8) ||
   21829             (ipv6a[0x10] != 0x01) )
   21830           exit(1); /* fail */
   21831         /* - */
   21832         if( (ipv6a[0x02] != 0x0) ||
   21833             (ipv6a[0x03] != 0x0) ||
   21834             (ipv6a[0x04] != 0x0) ||
   21835             (ipv6a[0x05] != 0x0) ||
   21836             (ipv6a[0x06] != 0x0) ||
   21837             (ipv6a[0x07] != 0x0) )
   21838           exit(1); /* fail */
   21839         /* - */
   21840         memset(ipv6a, 0, sizeof(ipv6a));
   21841         ipv6a[0x10] = 0x01;
   21842         if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
   21843           exit(1); /* fail */
   21844         /* - */
   21845         if( (ipv6a[0x0a] != 0xff) ||
   21846             (ipv6a[0x0b] != 0xfe) ||
   21847             (ipv6a[0x0c] != 0x7f) ||
   21848             (ipv6a[0x0f] != 0x01) ||
   21849             (ipv6a[0x10] != 0x01) )
   21850           exit(1); /* fail */
   21851         /* - */
   21852         if( (ipv6a[0x00] != 0x0) ||
   21853             (ipv6a[0x01] != 0x0) ||
   21854             (ipv6a[0x02] != 0x0) ||
   21855             (ipv6a[0x03] != 0x0) ||
   21856             (ipv6a[0x04] != 0x0) ||
   21857             (ipv6a[0x05] != 0x0) ||
   21858             (ipv6a[0x06] != 0x0) ||
   21859             (ipv6a[0x07] != 0x0) ||
   21860             (ipv6a[0x08] != 0x0) ||
   21861             (ipv6a[0x09] != 0x0) ||
   21862             (ipv6a[0x0d] != 0x0) ||
   21863             (ipv6a[0x0e] != 0x0) )
   21864           exit(1); /* fail */
   21865         /* - */
   21866         memset(ipv6a, 1, sizeof(ipv6a));
   21867         if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
   21868           exit(1); /* fail */
   21869         if( (ipv6a[0x00] != 0x7f) ||
   21870             (ipv6a[0x01] != 0x20) ||
   21871             (ipv6a[0x03] != 0x01) ||
   21872             (ipv6a[0x08] != 0x01) ||
   21873             (ipv6a[0x09] != 0x01) ||
   21874             (ipv6a[0x0a] != 0x01) ||
   21875             (ipv6a[0x0b] != 0x01) ||
   21876             (ipv6a[0x0c] != 0x01) ||
   21877             (ipv6a[0x0d] != 0x01) ||
   21878             (ipv6a[0x0e] != 0x01) ||
   21879             (ipv6a[0x0f] != 0x01) ||
   21880             (ipv6a[0x10] != 0x01) )
   21881           exit(1); /* fail */
   21882         if( (ipv6a[0x02] != 0x0) ||
   21883             (ipv6a[0x04] != 0x0) ||
   21884             (ipv6a[0x05] != 0x0) ||
   21885             (ipv6a[0x06] != 0x0) ||
   21886             (ipv6a[0x07] != 0x0) ||
   21887             (ipv6a[0x07] != 0x0) )
   21888           exit(1); /* fail */
   21889         /* - */
   21890         memset(ipv6a, 1, sizeof(ipv6a));
   21891         if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
   21892           exit(1); /* fail */
   21893         /* - */
   21894         exit(0);
   21895 
   21896  ;
   21897  return 0;
   21898 }
   21899 
   21900 _ACEOF
   21901 if ac_fn_c_try_run "$LINENO"; then :
   21902 
   21903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21904 $as_echo "yes" >&6; }
   21905       tst_works_inet_net_pton="yes"
   21906 
   21907 else
   21908 
   21909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21910 $as_echo "no" >&6; }
   21911       tst_works_inet_net_pton="no"
   21912 
   21913 fi
   21914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   21915   conftest.$ac_objext conftest.beam conftest.$ac_ext
   21916 fi
   21917 
   21918   fi
   21919   #
   21920   if test "$tst_compi_inet_net_pton" = "yes" &&
   21921     test "$tst_works_inet_net_pton" != "no"; then
   21922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
   21923 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
   21924     if test "x$cares_disallow_inet_net_pton" != "xyes"; then
   21925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21926 $as_echo "yes" >&6; }
   21927       tst_allow_inet_net_pton="yes"
   21928     else
   21929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21930 $as_echo "no" >&6; }
   21931       tst_allow_inet_net_pton="no"
   21932     fi
   21933   fi
   21934   #
   21935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
   21936 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
   21937   if test "$tst_links_inet_net_pton" = "yes" &&
   21938      test "$tst_proto_inet_net_pton" = "yes" &&
   21939      test "$tst_compi_inet_net_pton" = "yes" &&
   21940      test "$tst_allow_inet_net_pton" = "yes" &&
   21941      test "$tst_works_inet_net_pton" != "no"; then
   21942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21943 $as_echo "yes" >&6; }
   21944 
   21945 cat >>confdefs.h <<_ACEOF
   21946 #define HAVE_INET_NET_PTON 1
   21947 _ACEOF
   21948 
   21949     ac_cv_func_inet_net_pton="yes"
   21950   else
   21951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21952 $as_echo "no" >&6; }
   21953     ac_cv_func_inet_net_pton="no"
   21954   fi
   21955 
   21956 
   21957         #
   21958   tst_links_inet_ntop="unknown"
   21959   tst_proto_inet_ntop="unknown"
   21960   tst_compi_inet_ntop="unknown"
   21961   tst_works_inet_ntop="unknown"
   21962   tst_allow_inet_ntop="unknown"
   21963   #
   21964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
   21965 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
   21966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21967 /* end confdefs.h.  */
   21968 
   21969 
   21970 #define inet_ntop innocuous_inet_ntop
   21971 #ifdef __STDC__
   21972 # include <limits.h>
   21973 #else
   21974 # include <assert.h>
   21975 #endif
   21976 #undef inet_ntop
   21977 #ifdef __cplusplus
   21978 extern "C"
   21979 #endif
   21980 char inet_ntop ();
   21981 #if defined __stub_inet_ntop || defined __stub___inet_ntop
   21982 choke me
   21983 #endif
   21984 
   21985 int main (void)
   21986 {
   21987 return inet_ntop ();
   21988  ;
   21989  return 0;
   21990 }
   21991 
   21992 _ACEOF
   21993 if ac_fn_c_try_link "$LINENO"; then :
   21994 
   21995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21996 $as_echo "yes" >&6; }
   21997     tst_links_inet_ntop="yes"
   21998 
   21999 else
   22000 
   22001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22002 $as_echo "no" >&6; }
   22003     tst_links_inet_ntop="no"
   22004 
   22005 fi
   22006 rm -f core conftest.err conftest.$ac_objext \
   22007     conftest$ac_exeext conftest.$ac_ext
   22008   #
   22009   if test "$tst_links_inet_ntop" = "yes"; then
   22010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
   22011 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
   22012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22013 /* end confdefs.h.  */
   22014 
   22015       $cares_includes_arpa_inet
   22016 
   22017 _ACEOF
   22018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22019   $EGREP "inet_ntop" >/dev/null 2>&1; then :
   22020 
   22021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22022 $as_echo "yes" >&6; }
   22023       tst_proto_inet_ntop="yes"
   22024 
   22025 else
   22026 
   22027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22028 $as_echo "no" >&6; }
   22029       tst_proto_inet_ntop="no"
   22030 
   22031 fi
   22032 rm -f conftest*
   22033 
   22034   fi
   22035   #
   22036   if test "$tst_proto_inet_ntop" = "yes"; then
   22037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
   22038 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
   22039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22040 /* end confdefs.h.  */
   22041 
   22042 
   22043         $cares_includes_arpa_inet
   22044 
   22045 int main (void)
   22046 {
   22047 
   22048         if(0 != inet_ntop(0, 0, 0, 0))
   22049           return 1;
   22050 
   22051  ;
   22052  return 0;
   22053 }
   22054 
   22055 _ACEOF
   22056 if ac_fn_c_try_compile "$LINENO"; then :
   22057 
   22058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22059 $as_echo "yes" >&6; }
   22060       tst_compi_inet_ntop="yes"
   22061 
   22062 else
   22063 
   22064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22065 $as_echo "no" >&6; }
   22066       tst_compi_inet_ntop="no"
   22067 
   22068 fi
   22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22070   fi
   22071   #
   22072     if test "x$cross_compiling" != "xyes" &&
   22073     test "$tst_compi_inet_ntop" = "yes"; then
   22074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
   22075 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
   22076     if test "$cross_compiling" = yes; then :
   22077   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   22078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   22079 as_fn_error $? "cannot run test program while cross compiling
   22080 See \`config.log' for more details" "$LINENO" 5; }
   22081 else
   22082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22083 /* end confdefs.h.  */
   22084 
   22085 
   22086         $cares_includes_stdlib
   22087         $cares_includes_arpa_inet
   22088         $cares_includes_string
   22089 
   22090 int main (void)
   22091 {
   22092 
   22093         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
   22094         char ipv4res[sizeof "255.255.255.255"];
   22095         unsigned char ipv6a[26];
   22096         unsigned char ipv4a[5];
   22097         char *ipv6ptr = 0;
   22098         char *ipv4ptr = 0;
   22099         /* - */
   22100         ipv4res[0] = '\0';
   22101         ipv4a[0] = 0xc0;
   22102         ipv4a[1] = 0xa8;
   22103         ipv4a[2] = 0x64;
   22104         ipv4a[3] = 0x01;
   22105         ipv4a[4] = 0x01;
   22106         /* - */
   22107         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
   22108         if(!ipv4ptr)
   22109           exit(1); /* fail */
   22110         if(ipv4ptr != ipv4res)
   22111           exit(1); /* fail */
   22112         if(!ipv4ptr[0])
   22113           exit(1); /* fail */
   22114         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
   22115           exit(1); /* fail */
   22116         /* - */
   22117         ipv6res[0] = '\0';
   22118         memset(ipv6a, 0, sizeof(ipv6a));
   22119         ipv6a[0] = 0xfe;
   22120         ipv6a[1] = 0x80;
   22121         ipv6a[8] = 0x02;
   22122         ipv6a[9] = 0x14;
   22123         ipv6a[10] = 0x4f;
   22124         ipv6a[11] = 0xff;
   22125         ipv6a[12] = 0xfe;
   22126         ipv6a[13] = 0x0b;
   22127         ipv6a[14] = 0x76;
   22128         ipv6a[15] = 0xc8;
   22129         ipv6a[25] = 0x01;
   22130         /* - */
   22131         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
   22132         if(!ipv6ptr)
   22133           exit(1); /* fail */
   22134         if(ipv6ptr != ipv6res)
   22135           exit(1); /* fail */
   22136         if(!ipv6ptr[0])
   22137           exit(1); /* fail */
   22138         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
   22139           exit(1); /* fail */
   22140         /* - */
   22141         exit(0);
   22142 
   22143  ;
   22144  return 0;
   22145 }
   22146 
   22147 _ACEOF
   22148 if ac_fn_c_try_run "$LINENO"; then :
   22149 
   22150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22151 $as_echo "yes" >&6; }
   22152       tst_works_inet_ntop="yes"
   22153 
   22154 else
   22155 
   22156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22157 $as_echo "no" >&6; }
   22158       tst_works_inet_ntop="no"
   22159 
   22160 fi
   22161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22162   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22163 fi
   22164 
   22165   fi
   22166   #
   22167   if test "$tst_compi_inet_ntop" = "yes" &&
   22168     test "$tst_works_inet_ntop" != "no"; then
   22169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
   22170 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
   22171     if test "x$cares_disallow_inet_ntop" != "xyes"; then
   22172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22173 $as_echo "yes" >&6; }
   22174       tst_allow_inet_ntop="yes"
   22175     else
   22176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22177 $as_echo "no" >&6; }
   22178       tst_allow_inet_ntop="no"
   22179     fi
   22180   fi
   22181   #
   22182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
   22183 $as_echo_n "checking if inet_ntop might be used... " >&6; }
   22184   if test "$tst_links_inet_ntop" = "yes" &&
   22185      test "$tst_proto_inet_ntop" = "yes" &&
   22186      test "$tst_compi_inet_ntop" = "yes" &&
   22187      test "$tst_allow_inet_ntop" = "yes" &&
   22188      test "$tst_works_inet_ntop" != "no"; then
   22189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22190 $as_echo "yes" >&6; }
   22191 
   22192 cat >>confdefs.h <<_ACEOF
   22193 #define HAVE_INET_NTOP 1
   22194 _ACEOF
   22195 
   22196     ac_cv_func_inet_ntop="yes"
   22197   else
   22198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22199 $as_echo "no" >&6; }
   22200     ac_cv_func_inet_ntop="no"
   22201   fi
   22202 
   22203 
   22204         #
   22205   tst_links_inet_pton="unknown"
   22206   tst_proto_inet_pton="unknown"
   22207   tst_compi_inet_pton="unknown"
   22208   tst_works_inet_pton="unknown"
   22209   tst_allow_inet_pton="unknown"
   22210   #
   22211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
   22212 $as_echo_n "checking if inet_pton can be linked... " >&6; }
   22213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22214 /* end confdefs.h.  */
   22215 
   22216 
   22217 #define inet_pton innocuous_inet_pton
   22218 #ifdef __STDC__
   22219 # include <limits.h>
   22220 #else
   22221 # include <assert.h>
   22222 #endif
   22223 #undef inet_pton
   22224 #ifdef __cplusplus
   22225 extern "C"
   22226 #endif
   22227 char inet_pton ();
   22228 #if defined __stub_inet_pton || defined __stub___inet_pton
   22229 choke me
   22230 #endif
   22231 
   22232 int main (void)
   22233 {
   22234 return inet_pton ();
   22235  ;
   22236  return 0;
   22237 }
   22238 
   22239 _ACEOF
   22240 if ac_fn_c_try_link "$LINENO"; then :
   22241 
   22242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22243 $as_echo "yes" >&6; }
   22244     tst_links_inet_pton="yes"
   22245 
   22246 else
   22247 
   22248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22249 $as_echo "no" >&6; }
   22250     tst_links_inet_pton="no"
   22251 
   22252 fi
   22253 rm -f core conftest.err conftest.$ac_objext \
   22254     conftest$ac_exeext conftest.$ac_ext
   22255   #
   22256   if test "$tst_links_inet_pton" = "yes"; then
   22257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
   22258 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
   22259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22260 /* end confdefs.h.  */
   22261 
   22262       $cares_includes_arpa_inet
   22263 
   22264 _ACEOF
   22265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22266   $EGREP "inet_pton" >/dev/null 2>&1; then :
   22267 
   22268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22269 $as_echo "yes" >&6; }
   22270       tst_proto_inet_pton="yes"
   22271 
   22272 else
   22273 
   22274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22275 $as_echo "no" >&6; }
   22276       tst_proto_inet_pton="no"
   22277 
   22278 fi
   22279 rm -f conftest*
   22280 
   22281   fi
   22282   #
   22283   if test "$tst_proto_inet_pton" = "yes"; then
   22284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
   22285 $as_echo_n "checking if inet_pton is compilable... " >&6; }
   22286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22287 /* end confdefs.h.  */
   22288 
   22289 
   22290         $cares_includes_arpa_inet
   22291 
   22292 int main (void)
   22293 {
   22294 
   22295         if(0 != inet_pton(0, 0, 0))
   22296           return 1;
   22297 
   22298  ;
   22299  return 0;
   22300 }
   22301 
   22302 _ACEOF
   22303 if ac_fn_c_try_compile "$LINENO"; then :
   22304 
   22305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22306 $as_echo "yes" >&6; }
   22307       tst_compi_inet_pton="yes"
   22308 
   22309 else
   22310 
   22311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22312 $as_echo "no" >&6; }
   22313       tst_compi_inet_pton="no"
   22314 
   22315 fi
   22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22317   fi
   22318   #
   22319     if test "x$cross_compiling" != "xyes" &&
   22320     test "$tst_compi_inet_pton" = "yes"; then
   22321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
   22322 $as_echo_n "checking if inet_pton seems to work... " >&6; }
   22323     if test "$cross_compiling" = yes; then :
   22324   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   22325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   22326 as_fn_error $? "cannot run test program while cross compiling
   22327 See \`config.log' for more details" "$LINENO" 5; }
   22328 else
   22329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22330 /* end confdefs.h.  */
   22331 
   22332 
   22333         $cares_includes_stdlib
   22334         $cares_includes_arpa_inet
   22335         $cares_includes_string
   22336 
   22337 int main (void)
   22338 {
   22339 
   22340         unsigned char ipv6a[16+1];
   22341         unsigned char ipv4a[4+1];
   22342         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
   22343         const char *ipv4src = "192.168.100.1";
   22344         /* - */
   22345         memset(ipv4a, 1, sizeof(ipv4a));
   22346         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
   22347           exit(1); /* fail */
   22348         /* - */
   22349         if( (ipv4a[0] != 0xc0) ||
   22350             (ipv4a[1] != 0xa8) ||
   22351             (ipv4a[2] != 0x64) ||
   22352             (ipv4a[3] != 0x01) ||
   22353             (ipv4a[4] != 0x01) )
   22354           exit(1); /* fail */
   22355         /* - */
   22356         memset(ipv6a, 1, sizeof(ipv6a));
   22357         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
   22358           exit(1); /* fail */
   22359         /* - */
   22360         if( (ipv6a[0]  != 0xfe) ||
   22361             (ipv6a[1]  != 0x80) ||
   22362             (ipv6a[8]  != 0x02) ||
   22363             (ipv6a[9]  != 0x14) ||
   22364             (ipv6a[10] != 0x4f) ||
   22365             (ipv6a[11] != 0xff) ||
   22366             (ipv6a[12] != 0xfe) ||
   22367             (ipv6a[13] != 0x0b) ||
   22368             (ipv6a[14] != 0x76) ||
   22369             (ipv6a[15] != 0xc8) ||
   22370             (ipv6a[16] != 0x01) )
   22371           exit(1); /* fail */
   22372         /* - */
   22373         if( (ipv6a[2]  != 0x0) ||
   22374             (ipv6a[3]  != 0x0) ||
   22375             (ipv6a[4]  != 0x0) ||
   22376             (ipv6a[5]  != 0x0) ||
   22377             (ipv6a[6]  != 0x0) ||
   22378             (ipv6a[7]  != 0x0) )
   22379           exit(1); /* fail */
   22380         /* - */
   22381         exit(0);
   22382 
   22383  ;
   22384  return 0;
   22385 }
   22386 
   22387 _ACEOF
   22388 if ac_fn_c_try_run "$LINENO"; then :
   22389 
   22390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22391 $as_echo "yes" >&6; }
   22392       tst_works_inet_pton="yes"
   22393 
   22394 else
   22395 
   22396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22397 $as_echo "no" >&6; }
   22398       tst_works_inet_pton="no"
   22399 
   22400 fi
   22401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22402   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22403 fi
   22404 
   22405   fi
   22406   #
   22407   if test "$tst_compi_inet_pton" = "yes" &&
   22408     test "$tst_works_inet_pton" != "no"; then
   22409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
   22410 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
   22411     if test "x$cares_disallow_inet_pton" != "xyes"; then
   22412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22413 $as_echo "yes" >&6; }
   22414       tst_allow_inet_pton="yes"
   22415     else
   22416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22417 $as_echo "no" >&6; }
   22418       tst_allow_inet_pton="no"
   22419     fi
   22420   fi
   22421   #
   22422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
   22423 $as_echo_n "checking if inet_pton might be used... " >&6; }
   22424   if test "$tst_links_inet_pton" = "yes" &&
   22425      test "$tst_proto_inet_pton" = "yes" &&
   22426      test "$tst_compi_inet_pton" = "yes" &&
   22427      test "$tst_allow_inet_pton" = "yes" &&
   22428      test "$tst_works_inet_pton" != "no"; then
   22429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22430 $as_echo "yes" >&6; }
   22431 
   22432 cat >>confdefs.h <<_ACEOF
   22433 #define HAVE_INET_PTON 1
   22434 _ACEOF
   22435 
   22436     ac_cv_func_inet_pton="yes"
   22437   else
   22438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22439 $as_echo "no" >&6; }
   22440     ac_cv_func_inet_pton="no"
   22441   fi
   22442 
   22443 
   22444 cares_includes_stropts="\
   22445 /* includes start */
   22446 #ifdef HAVE_SYS_TYPES_H
   22447 #  include <sys/types.h>
   22448 #endif
   22449 #ifdef HAVE_UNISTD_H
   22450 #  include <unistd.h>
   22451 #endif
   22452 #ifdef HAVE_SYS_SOCKET_H
   22453 #  include <sys/socket.h>
   22454 #endif
   22455 #ifdef HAVE_SYS_IOCTL_H
   22456 #  include <sys/ioctl.h>
   22457 #endif
   22458 #ifdef HAVE_STROPTS_H
   22459 #  include <stropts.h>
   22460 #endif
   22461 /* includes end */"
   22462   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
   22463 do :
   22464   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   22465 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
   22466 "
   22467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   22468   cat >>confdefs.h <<_ACEOF
   22469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   22470 _ACEOF
   22471 
   22472 fi
   22473 
   22474 done
   22475 
   22476 
   22477 
   22478     #
   22479   tst_links_ioctl="unknown"
   22480   tst_proto_ioctl="unknown"
   22481   tst_compi_ioctl="unknown"
   22482   tst_allow_ioctl="unknown"
   22483   #
   22484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
   22485 $as_echo_n "checking if ioctl can be linked... " >&6; }
   22486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22487 /* end confdefs.h.  */
   22488 
   22489 
   22490 #define ioctl innocuous_ioctl
   22491 #ifdef __STDC__
   22492 # include <limits.h>
   22493 #else
   22494 # include <assert.h>
   22495 #endif
   22496 #undef ioctl
   22497 #ifdef __cplusplus
   22498 extern "C"
   22499 #endif
   22500 char ioctl ();
   22501 #if defined __stub_ioctl || defined __stub___ioctl
   22502 choke me
   22503 #endif
   22504 
   22505 int main (void)
   22506 {
   22507 return ioctl ();
   22508  ;
   22509  return 0;
   22510 }
   22511 
   22512 _ACEOF
   22513 if ac_fn_c_try_link "$LINENO"; then :
   22514 
   22515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22516 $as_echo "yes" >&6; }
   22517     tst_links_ioctl="yes"
   22518 
   22519 else
   22520 
   22521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22522 $as_echo "no" >&6; }
   22523     tst_links_ioctl="no"
   22524 
   22525 fi
   22526 rm -f core conftest.err conftest.$ac_objext \
   22527     conftest$ac_exeext conftest.$ac_ext
   22528   #
   22529   if test "$tst_links_ioctl" = "yes"; then
   22530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
   22531 $as_echo_n "checking if ioctl is prototyped... " >&6; }
   22532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22533 /* end confdefs.h.  */
   22534 
   22535       $cares_includes_stropts
   22536 
   22537 _ACEOF
   22538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22539   $EGREP "ioctl" >/dev/null 2>&1; then :
   22540 
   22541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22542 $as_echo "yes" >&6; }
   22543       tst_proto_ioctl="yes"
   22544 
   22545 else
   22546 
   22547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22548 $as_echo "no" >&6; }
   22549       tst_proto_ioctl="no"
   22550 
   22551 fi
   22552 rm -f conftest*
   22553 
   22554   fi
   22555   #
   22556   if test "$tst_proto_ioctl" = "yes"; then
   22557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
   22558 $as_echo_n "checking if ioctl is compilable... " >&6; }
   22559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22560 /* end confdefs.h.  */
   22561 
   22562 
   22563         $cares_includes_stropts
   22564 
   22565 int main (void)
   22566 {
   22567 
   22568         if(0 != ioctl(0, 0, 0))
   22569           return 1;
   22570 
   22571  ;
   22572  return 0;
   22573 }
   22574 
   22575 _ACEOF
   22576 if ac_fn_c_try_compile "$LINENO"; then :
   22577 
   22578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22579 $as_echo "yes" >&6; }
   22580       tst_compi_ioctl="yes"
   22581 
   22582 else
   22583 
   22584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22585 $as_echo "no" >&6; }
   22586       tst_compi_ioctl="no"
   22587 
   22588 fi
   22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22590   fi
   22591   #
   22592   if test "$tst_compi_ioctl" = "yes"; then
   22593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
   22594 $as_echo_n "checking if ioctl usage allowed... " >&6; }
   22595     if test "x$cares_disallow_ioctl" != "xyes"; then
   22596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22597 $as_echo "yes" >&6; }
   22598       tst_allow_ioctl="yes"
   22599     else
   22600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22601 $as_echo "no" >&6; }
   22602       tst_allow_ioctl="no"
   22603     fi
   22604   fi
   22605   #
   22606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
   22607 $as_echo_n "checking if ioctl might be used... " >&6; }
   22608   if test "$tst_links_ioctl" = "yes" &&
   22609      test "$tst_proto_ioctl" = "yes" &&
   22610      test "$tst_compi_ioctl" = "yes" &&
   22611      test "$tst_allow_ioctl" = "yes"; then
   22612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22613 $as_echo "yes" >&6; }
   22614 
   22615 cat >>confdefs.h <<_ACEOF
   22616 #define HAVE_IOCTL 1
   22617 _ACEOF
   22618 
   22619     ac_cv_func_ioctl="yes"
   22620 
   22621   #
   22622   tst_compi_ioctl_fionbio="unknown"
   22623   tst_allow_ioctl_fionbio="unknown"
   22624   #
   22625   if test "$ac_cv_func_ioctl" = "yes"; then
   22626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
   22627 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
   22628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22629 /* end confdefs.h.  */
   22630 
   22631 
   22632         $cares_includes_stropts
   22633 
   22634 int main (void)
   22635 {
   22636 
   22637         int flags = 0;
   22638         if(0 != ioctl(0, FIONBIO, &flags))
   22639           return 1;
   22640 
   22641  ;
   22642  return 0;
   22643 }
   22644 
   22645 _ACEOF
   22646 if ac_fn_c_try_compile "$LINENO"; then :
   22647 
   22648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22649 $as_echo "yes" >&6; }
   22650       tst_compi_ioctl_fionbio="yes"
   22651 
   22652 else
   22653 
   22654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22655 $as_echo "no" >&6; }
   22656       tst_compi_ioctl_fionbio="no"
   22657 
   22658 fi
   22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22660   fi
   22661   #
   22662   if test "$tst_compi_ioctl_fionbio" = "yes"; then
   22663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
   22664 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
   22665     if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
   22666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22667 $as_echo "yes" >&6; }
   22668       tst_allow_ioctl_fionbio="yes"
   22669     else
   22670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22671 $as_echo "no" >&6; }
   22672       tst_allow_ioctl_fionbio="no"
   22673     fi
   22674   fi
   22675   #
   22676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
   22677 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
   22678   if test "$tst_compi_ioctl_fionbio" = "yes" &&
   22679      test "$tst_allow_ioctl_fionbio" = "yes"; then
   22680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22681 $as_echo "yes" >&6; }
   22682 
   22683 cat >>confdefs.h <<_ACEOF
   22684 #define HAVE_IOCTL_FIONBIO 1
   22685 _ACEOF
   22686 
   22687     ac_cv_func_ioctl_fionbio="yes"
   22688   else
   22689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22690 $as_echo "no" >&6; }
   22691     ac_cv_func_ioctl_fionbio="no"
   22692   fi
   22693 
   22694 
   22695   #
   22696   tst_compi_ioctl_siocgifaddr="unknown"
   22697   tst_allow_ioctl_siocgifaddr="unknown"
   22698   #
   22699   if test "$ac_cv_func_ioctl" = "yes"; then
   22700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
   22701 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
   22702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22703 /* end confdefs.h.  */
   22704 
   22705 
   22706         $cares_includes_stropts
   22707         #include <net/if.h>
   22708 
   22709 int main (void)
   22710 {
   22711 
   22712         struct ifreq ifr;
   22713         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
   22714           return 1;
   22715 
   22716  ;
   22717  return 0;
   22718 }
   22719 
   22720 _ACEOF
   22721 if ac_fn_c_try_compile "$LINENO"; then :
   22722 
   22723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22724 $as_echo "yes" >&6; }
   22725       tst_compi_ioctl_siocgifaddr="yes"
   22726 
   22727 else
   22728 
   22729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22730 $as_echo "no" >&6; }
   22731       tst_compi_ioctl_siocgifaddr="no"
   22732 
   22733 fi
   22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22735   fi
   22736   #
   22737   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
   22738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
   22739 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
   22740     if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
   22741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22742 $as_echo "yes" >&6; }
   22743       tst_allow_ioctl_siocgifaddr="yes"
   22744     else
   22745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22746 $as_echo "no" >&6; }
   22747       tst_allow_ioctl_siocgifaddr="no"
   22748     fi
   22749   fi
   22750   #
   22751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
   22752 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
   22753   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
   22754      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
   22755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22756 $as_echo "yes" >&6; }
   22757 
   22758 cat >>confdefs.h <<_ACEOF
   22759 #define HAVE_IOCTL_SIOCGIFADDR 1
   22760 _ACEOF
   22761 
   22762     ac_cv_func_ioctl_siocgifaddr="yes"
   22763   else
   22764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22765 $as_echo "no" >&6; }
   22766     ac_cv_func_ioctl_siocgifaddr="no"
   22767   fi
   22768 
   22769   else
   22770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22771 $as_echo "no" >&6; }
   22772     ac_cv_func_ioctl="no"
   22773   fi
   22774 
   22775 
   22776     #
   22777   tst_links_ioctlsocket="unknown"
   22778   tst_proto_ioctlsocket="unknown"
   22779   tst_compi_ioctlsocket="unknown"
   22780   tst_allow_ioctlsocket="unknown"
   22781   #
   22782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
   22783 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
   22784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22785 /* end confdefs.h.  */
   22786 
   22787 
   22788       $cares_includes_winsock2
   22789 
   22790 int main (void)
   22791 {
   22792 
   22793       if(0 != ioctlsocket(0, 0, 0))
   22794         return 1;
   22795 
   22796  ;
   22797  return 0;
   22798 }
   22799 
   22800 _ACEOF
   22801 if ac_fn_c_try_link "$LINENO"; then :
   22802 
   22803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22804 $as_echo "yes" >&6; }
   22805     tst_links_ioctlsocket="yes"
   22806 
   22807 else
   22808 
   22809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22810 $as_echo "no" >&6; }
   22811     tst_links_ioctlsocket="no"
   22812 
   22813 fi
   22814 rm -f core conftest.err conftest.$ac_objext \
   22815     conftest$ac_exeext conftest.$ac_ext
   22816   #
   22817   if test "$tst_links_ioctlsocket" = "yes"; then
   22818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
   22819 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
   22820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22821 /* end confdefs.h.  */
   22822 
   22823       $cares_includes_winsock2
   22824 
   22825 _ACEOF
   22826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22827   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
   22828 
   22829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22830 $as_echo "yes" >&6; }
   22831       tst_proto_ioctlsocket="yes"
   22832 
   22833 else
   22834 
   22835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22836 $as_echo "no" >&6; }
   22837       tst_proto_ioctlsocket="no"
   22838 
   22839 fi
   22840 rm -f conftest*
   22841 
   22842   fi
   22843   #
   22844   if test "$tst_proto_ioctlsocket" = "yes"; then
   22845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
   22846 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
   22847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22848 /* end confdefs.h.  */
   22849 
   22850 
   22851         $cares_includes_winsock2
   22852 
   22853 int main (void)
   22854 {
   22855 
   22856         if(0 != ioctlsocket(0, 0, 0))
   22857           return 1;
   22858 
   22859  ;
   22860  return 0;
   22861 }
   22862 
   22863 _ACEOF
   22864 if ac_fn_c_try_compile "$LINENO"; then :
   22865 
   22866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22867 $as_echo "yes" >&6; }
   22868       tst_compi_ioctlsocket="yes"
   22869 
   22870 else
   22871 
   22872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22873 $as_echo "no" >&6; }
   22874       tst_compi_ioctlsocket="no"
   22875 
   22876 fi
   22877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22878   fi
   22879   #
   22880   if test "$tst_compi_ioctlsocket" = "yes"; then
   22881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
   22882 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
   22883     if test "x$cares_disallow_ioctlsocket" != "xyes"; then
   22884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22885 $as_echo "yes" >&6; }
   22886       tst_allow_ioctlsocket="yes"
   22887     else
   22888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22889 $as_echo "no" >&6; }
   22890       tst_allow_ioctlsocket="no"
   22891     fi
   22892   fi
   22893   #
   22894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
   22895 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
   22896   if test "$tst_links_ioctlsocket" = "yes" &&
   22897      test "$tst_proto_ioctlsocket" = "yes" &&
   22898      test "$tst_compi_ioctlsocket" = "yes" &&
   22899      test "$tst_allow_ioctlsocket" = "yes"; then
   22900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22901 $as_echo "yes" >&6; }
   22902 
   22903 cat >>confdefs.h <<_ACEOF
   22904 #define HAVE_IOCTLSOCKET 1
   22905 _ACEOF
   22906 
   22907     ac_cv_func_ioctlsocket="yes"
   22908 
   22909   #
   22910   tst_compi_ioctlsocket_fionbio="unknown"
   22911   tst_allow_ioctlsocket_fionbio="unknown"
   22912   #
   22913   if test "$ac_cv_func_ioctlsocket" = "yes"; then
   22914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
   22915 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
   22916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22917 /* end confdefs.h.  */
   22918 
   22919 
   22920         $cares_includes_winsock2
   22921 
   22922 int main (void)
   22923 {
   22924 
   22925         int flags = 0;
   22926         if(0 != ioctlsocket(0, FIONBIO, &flags))
   22927           return 1;
   22928 
   22929  ;
   22930  return 0;
   22931 }
   22932 
   22933 _ACEOF
   22934 if ac_fn_c_try_compile "$LINENO"; then :
   22935 
   22936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22937 $as_echo "yes" >&6; }
   22938       tst_compi_ioctlsocket_fionbio="yes"
   22939 
   22940 else
   22941 
   22942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22943 $as_echo "no" >&6; }
   22944       tst_compi_ioctlsocket_fionbio="no"
   22945 
   22946 fi
   22947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22948   fi
   22949   #
   22950   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
   22951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
   22952 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
   22953     if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
   22954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22955 $as_echo "yes" >&6; }
   22956       tst_allow_ioctlsocket_fionbio="yes"
   22957     else
   22958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22959 $as_echo "no" >&6; }
   22960       tst_allow_ioctlsocket_fionbio="no"
   22961     fi
   22962   fi
   22963   #
   22964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
   22965 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
   22966   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
   22967      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
   22968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22969 $as_echo "yes" >&6; }
   22970 
   22971 cat >>confdefs.h <<_ACEOF
   22972 #define HAVE_IOCTLSOCKET_FIONBIO 1
   22973 _ACEOF
   22974 
   22975     ac_cv_func_ioctlsocket_fionbio="yes"
   22976   else
   22977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22978 $as_echo "no" >&6; }
   22979     ac_cv_func_ioctlsocket_fionbio="no"
   22980   fi
   22981 
   22982   else
   22983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22984 $as_echo "no" >&6; }
   22985     ac_cv_func_ioctlsocket="no"
   22986   fi
   22987 
   22988 
   22989     #
   22990   tst_links_ioctlsocket_camel="unknown"
   22991   tst_proto_ioctlsocket_camel="unknown"
   22992   tst_compi_ioctlsocket_camel="unknown"
   22993   tst_allow_ioctlsocket_camel="unknown"
   22994   #
   22995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
   22996 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
   22997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22998 /* end confdefs.h.  */
   22999 
   23000 
   23001 #define IoctlSocket innocuous_IoctlSocket
   23002 #ifdef __STDC__
   23003 # include <limits.h>
   23004 #else
   23005 # include <assert.h>
   23006 #endif
   23007 #undef IoctlSocket
   23008 #ifdef __cplusplus
   23009 extern "C"
   23010 #endif
   23011 char IoctlSocket ();
   23012 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
   23013 choke me
   23014 #endif
   23015 
   23016 int main (void)
   23017 {
   23018 return IoctlSocket ();
   23019  ;
   23020  return 0;
   23021 }
   23022 
   23023 _ACEOF
   23024 if ac_fn_c_try_link "$LINENO"; then :
   23025 
   23026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23027 $as_echo "yes" >&6; }
   23028     tst_links_ioctlsocket_camel="yes"
   23029 
   23030 else
   23031 
   23032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23033 $as_echo "no" >&6; }
   23034     tst_links_ioctlsocket_camel="no"
   23035 
   23036 fi
   23037 rm -f core conftest.err conftest.$ac_objext \
   23038     conftest$ac_exeext conftest.$ac_ext
   23039   #
   23040   if test "$tst_links_ioctlsocket_camel" = "yes"; then
   23041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
   23042 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
   23043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23044 /* end confdefs.h.  */
   23045 
   23046       $cares_includes_stropts
   23047 
   23048 _ACEOF
   23049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23050   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
   23051 
   23052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23053 $as_echo "yes" >&6; }
   23054       tst_proto_ioctlsocket_camel="yes"
   23055 
   23056 else
   23057 
   23058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23059 $as_echo "no" >&6; }
   23060       tst_proto_ioctlsocket_camel="no"
   23061 
   23062 fi
   23063 rm -f conftest*
   23064 
   23065   fi
   23066   #
   23067   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
   23068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
   23069 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
   23070     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23071 /* end confdefs.h.  */
   23072 
   23073 
   23074         $cares_includes_stropts
   23075 
   23076 int main (void)
   23077 {
   23078 
   23079         if(0 != IoctlSocket(0, 0, 0))
   23080           return 1;
   23081 
   23082  ;
   23083  return 0;
   23084 }
   23085 
   23086 _ACEOF
   23087 if ac_fn_c_try_compile "$LINENO"; then :
   23088 
   23089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23090 $as_echo "yes" >&6; }
   23091       tst_compi_ioctlsocket_camel="yes"
   23092 
   23093 else
   23094 
   23095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23096 $as_echo "no" >&6; }
   23097       tst_compi_ioctlsocket_camel="no"
   23098 
   23099 fi
   23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23101   fi
   23102   #
   23103   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
   23104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
   23105 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
   23106     if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
   23107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23108 $as_echo "yes" >&6; }
   23109       tst_allow_ioctlsocket_camel="yes"
   23110     else
   23111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23112 $as_echo "no" >&6; }
   23113       tst_allow_ioctlsocket_camel="no"
   23114     fi
   23115   fi
   23116   #
   23117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
   23118 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
   23119   if test "$tst_links_ioctlsocket_camel" = "yes" &&
   23120      test "$tst_proto_ioctlsocket_camel" = "yes" &&
   23121      test "$tst_compi_ioctlsocket_camel" = "yes" &&
   23122      test "$tst_allow_ioctlsocket_camel" = "yes"; then
   23123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23124 $as_echo "yes" >&6; }
   23125 
   23126 cat >>confdefs.h <<_ACEOF
   23127 #define HAVE_IOCTLSOCKET_CAMEL 1
   23128 _ACEOF
   23129 
   23130     ac_cv_func_ioctlsocket_camel="yes"
   23131 
   23132   #
   23133   tst_compi_ioctlsocket_camel_fionbio="unknown"
   23134   tst_allow_ioctlsocket_camel_fionbio="unknown"
   23135   #
   23136   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
   23137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
   23138 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
   23139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23140 /* end confdefs.h.  */
   23141 
   23142 
   23143         $cares_includes_stropts
   23144 
   23145 int main (void)
   23146 {
   23147 
   23148         long flags = 0;
   23149         if(0 != ioctlsocket(0, FIONBIO, &flags))
   23150           return 1;
   23151 
   23152  ;
   23153  return 0;
   23154 }
   23155 
   23156 _ACEOF
   23157 if ac_fn_c_try_compile "$LINENO"; then :
   23158 
   23159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23160 $as_echo "yes" >&6; }
   23161       tst_compi_ioctlsocket_camel_fionbio="yes"
   23162 
   23163 else
   23164 
   23165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23166 $as_echo "no" >&6; }
   23167       tst_compi_ioctlsocket_camel_fionbio="no"
   23168 
   23169 fi
   23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23171   fi
   23172   #
   23173   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
   23174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
   23175 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
   23176     if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
   23177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23178 $as_echo "yes" >&6; }
   23179       tst_allow_ioctlsocket_camel_fionbio="yes"
   23180     else
   23181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23182 $as_echo "no" >&6; }
   23183       tst_allow_ioctlsocket_camel_fionbio="no"
   23184     fi
   23185   fi
   23186   #
   23187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
   23188 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
   23189   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
   23190      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
   23191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23192 $as_echo "yes" >&6; }
   23193 
   23194 cat >>confdefs.h <<_ACEOF
   23195 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
   23196 _ACEOF
   23197 
   23198     ac_cv_func_ioctlsocket_camel_fionbio="yes"
   23199   else
   23200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23201 $as_echo "no" >&6; }
   23202     ac_cv_func_ioctlsocket_camel_fionbio="no"
   23203   fi
   23204 
   23205   else
   23206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23207 $as_echo "no" >&6; }
   23208     ac_cv_func_ioctlsocket_camel="no"
   23209   fi
   23210 
   23211 
   23212       #
   23213   tst_links_setsockopt="unknown"
   23214   tst_proto_setsockopt="unknown"
   23215   tst_compi_setsockopt="unknown"
   23216   tst_allow_setsockopt="unknown"
   23217   #
   23218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
   23219 $as_echo_n "checking if setsockopt can be linked... " >&6; }
   23220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23221 /* end confdefs.h.  */
   23222 
   23223 
   23224       $cares_includes_winsock2
   23225       $cares_includes_sys_socket
   23226 
   23227 int main (void)
   23228 {
   23229 
   23230       if(0 != setsockopt(0, 0, 0, 0, 0))
   23231         return 1;
   23232 
   23233  ;
   23234  return 0;
   23235 }
   23236 
   23237 _ACEOF
   23238 if ac_fn_c_try_link "$LINENO"; then :
   23239 
   23240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23241 $as_echo "yes" >&6; }
   23242     tst_links_setsockopt="yes"
   23243 
   23244 else
   23245 
   23246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23247 $as_echo "no" >&6; }
   23248     tst_links_setsockopt="no"
   23249 
   23250 fi
   23251 rm -f core conftest.err conftest.$ac_objext \
   23252     conftest$ac_exeext conftest.$ac_ext
   23253   #
   23254   if test "$tst_links_setsockopt" = "yes"; then
   23255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
   23256 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
   23257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23258 /* end confdefs.h.  */
   23259 
   23260       $cares_includes_winsock2
   23261       $cares_includes_sys_socket
   23262 
   23263 _ACEOF
   23264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23265   $EGREP "setsockopt" >/dev/null 2>&1; then :
   23266 
   23267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23268 $as_echo "yes" >&6; }
   23269       tst_proto_setsockopt="yes"
   23270 
   23271 else
   23272 
   23273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23274 $as_echo "no" >&6; }
   23275       tst_proto_setsockopt="no"
   23276 
   23277 fi
   23278 rm -f conftest*
   23279 
   23280   fi
   23281   #
   23282   if test "$tst_proto_setsockopt" = "yes"; then
   23283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
   23284 $as_echo_n "checking if setsockopt is compilable... " >&6; }
   23285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23286 /* end confdefs.h.  */
   23287 
   23288 
   23289         $cares_includes_winsock2
   23290         $cares_includes_sys_socket
   23291 
   23292 int main (void)
   23293 {
   23294 
   23295         if(0 != setsockopt(0, 0, 0, 0, 0))
   23296           return 1;
   23297 
   23298  ;
   23299  return 0;
   23300 }
   23301 
   23302 _ACEOF
   23303 if ac_fn_c_try_compile "$LINENO"; then :
   23304 
   23305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23306 $as_echo "yes" >&6; }
   23307       tst_compi_setsockopt="yes"
   23308 
   23309 else
   23310 
   23311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23312 $as_echo "no" >&6; }
   23313       tst_compi_setsockopt="no"
   23314 
   23315 fi
   23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23317   fi
   23318   #
   23319   if test "$tst_compi_setsockopt" = "yes"; then
   23320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
   23321 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
   23322     if test "x$cares_disallow_setsockopt" != "xyes"; then
   23323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23324 $as_echo "yes" >&6; }
   23325       tst_allow_setsockopt="yes"
   23326     else
   23327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23328 $as_echo "no" >&6; }
   23329       tst_allow_setsockopt="no"
   23330     fi
   23331   fi
   23332   #
   23333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
   23334 $as_echo_n "checking if setsockopt might be used... " >&6; }
   23335   if test "$tst_links_setsockopt" = "yes" &&
   23336      test "$tst_proto_setsockopt" = "yes" &&
   23337      test "$tst_compi_setsockopt" = "yes" &&
   23338      test "$tst_allow_setsockopt" = "yes"; then
   23339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23340 $as_echo "yes" >&6; }
   23341 
   23342 cat >>confdefs.h <<_ACEOF
   23343 #define HAVE_SETSOCKOPT 1
   23344 _ACEOF
   23345 
   23346     ac_cv_func_setsockopt="yes"
   23347 
   23348   #
   23349   tst_compi_setsockopt_so_nonblock="unknown"
   23350   tst_allow_setsockopt_so_nonblock="unknown"
   23351   #
   23352   if test "$ac_cv_func_setsockopt" = "yes"; then
   23353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
   23354 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
   23355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23356 /* end confdefs.h.  */
   23357 
   23358 
   23359         $cares_includes_winsock2
   23360         $cares_includes_sys_socket
   23361 
   23362 int main (void)
   23363 {
   23364 
   23365         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
   23366           return 1;
   23367 
   23368  ;
   23369  return 0;
   23370 }
   23371 
   23372 _ACEOF
   23373 if ac_fn_c_try_compile "$LINENO"; then :
   23374 
   23375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23376 $as_echo "yes" >&6; }
   23377       tst_compi_setsockopt_so_nonblock="yes"
   23378 
   23379 else
   23380 
   23381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23382 $as_echo "no" >&6; }
   23383       tst_compi_setsockopt_so_nonblock="no"
   23384 
   23385 fi
   23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23387   fi
   23388   #
   23389   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
   23390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
   23391 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
   23392     if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
   23393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23394 $as_echo "yes" >&6; }
   23395       tst_allow_setsockopt_so_nonblock="yes"
   23396     else
   23397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23398 $as_echo "no" >&6; }
   23399       tst_allow_setsockopt_so_nonblock="no"
   23400     fi
   23401   fi
   23402   #
   23403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
   23404 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
   23405   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
   23406      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
   23407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23408 $as_echo "yes" >&6; }
   23409 
   23410 cat >>confdefs.h <<_ACEOF
   23411 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
   23412 _ACEOF
   23413 
   23414     ac_cv_func_setsockopt_so_nonblock="yes"
   23415   else
   23416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23417 $as_echo "no" >&6; }
   23418     ac_cv_func_setsockopt_so_nonblock="no"
   23419   fi
   23420 
   23421   else
   23422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23423 $as_echo "no" >&6; }
   23424     ac_cv_func_setsockopt="no"
   23425   fi
   23426 
   23427 
   23428         #
   23429   tst_links_socket="unknown"
   23430   tst_proto_socket="unknown"
   23431   tst_compi_socket="unknown"
   23432   tst_allow_socket="unknown"
   23433   #
   23434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
   23435 $as_echo_n "checking if socket can be linked... " >&6; }
   23436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23437 /* end confdefs.h.  */
   23438 
   23439 
   23440       $cares_includes_winsock2
   23441       $cares_includes_sys_socket
   23442       $cares_includes_socket
   23443 
   23444 int main (void)
   23445 {
   23446 
   23447       if(0 != socket(0, 0, 0))
   23448         return 1;
   23449 
   23450  ;
   23451  return 0;
   23452 }
   23453 
   23454 _ACEOF
   23455 if ac_fn_c_try_link "$LINENO"; then :
   23456 
   23457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23458 $as_echo "yes" >&6; }
   23459     tst_links_socket="yes"
   23460 
   23461 else
   23462 
   23463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23464 $as_echo "no" >&6; }
   23465     tst_links_socket="no"
   23466 
   23467 fi
   23468 rm -f core conftest.err conftest.$ac_objext \
   23469     conftest$ac_exeext conftest.$ac_ext
   23470   #
   23471   if test "$tst_links_socket" = "yes"; then
   23472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
   23473 $as_echo_n "checking if socket is prototyped... " >&6; }
   23474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23475 /* end confdefs.h.  */
   23476 
   23477       $cares_includes_winsock2
   23478       $cares_includes_sys_socket
   23479       $cares_includes_socket
   23480 
   23481 _ACEOF
   23482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23483   $EGREP "socket" >/dev/null 2>&1; then :
   23484 
   23485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23486 $as_echo "yes" >&6; }
   23487       tst_proto_socket="yes"
   23488 
   23489 else
   23490 
   23491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23492 $as_echo "no" >&6; }
   23493       tst_proto_socket="no"
   23494 
   23495 fi
   23496 rm -f conftest*
   23497 
   23498   fi
   23499   #
   23500   if test "$tst_proto_socket" = "yes"; then
   23501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
   23502 $as_echo_n "checking if socket is compilable... " >&6; }
   23503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23504 /* end confdefs.h.  */
   23505 
   23506 
   23507         $cares_includes_winsock2
   23508         $cares_includes_sys_socket
   23509         $cares_includes_socket
   23510 
   23511 int main (void)
   23512 {
   23513 
   23514         if(0 != socket(0, 0, 0))
   23515           return 1;
   23516 
   23517  ;
   23518  return 0;
   23519 }
   23520 
   23521 _ACEOF
   23522 if ac_fn_c_try_compile "$LINENO"; then :
   23523 
   23524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23525 $as_echo "yes" >&6; }
   23526       tst_compi_socket="yes"
   23527 
   23528 else
   23529 
   23530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23531 $as_echo "no" >&6; }
   23532       tst_compi_socket="no"
   23533 
   23534 fi
   23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23536   fi
   23537   #
   23538   if test "$tst_compi_socket" = "yes"; then
   23539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
   23540 $as_echo_n "checking if socket usage allowed... " >&6; }
   23541     if test "x$cares_disallow_socket" != "xyes"; then
   23542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23543 $as_echo "yes" >&6; }
   23544       tst_allow_socket="yes"
   23545     else
   23546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23547 $as_echo "no" >&6; }
   23548       tst_allow_socket="no"
   23549     fi
   23550   fi
   23551   #
   23552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
   23553 $as_echo_n "checking if socket might be used... " >&6; }
   23554   if test "$tst_links_socket" = "yes" &&
   23555      test "$tst_proto_socket" = "yes" &&
   23556      test "$tst_compi_socket" = "yes" &&
   23557      test "$tst_allow_socket" = "yes"; then
   23558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23559 $as_echo "yes" >&6; }
   23560 
   23561 cat >>confdefs.h <<_ACEOF
   23562 #define HAVE_SOCKET 1
   23563 _ACEOF
   23564 
   23565     ac_cv_func_socket="yes"
   23566   else
   23567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23568 $as_echo "no" >&6; }
   23569     ac_cv_func_socket="no"
   23570   fi
   23571 
   23572 
   23573     #
   23574   tst_links_strcasecmp="unknown"
   23575   tst_proto_strcasecmp="unknown"
   23576   tst_compi_strcasecmp="unknown"
   23577   tst_allow_strcasecmp="unknown"
   23578   #
   23579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
   23580 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
   23581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23582 /* end confdefs.h.  */
   23583 
   23584 
   23585 #define strcasecmp innocuous_strcasecmp
   23586 #ifdef __STDC__
   23587 # include <limits.h>
   23588 #else
   23589 # include <assert.h>
   23590 #endif
   23591 #undef strcasecmp
   23592 #ifdef __cplusplus
   23593 extern "C"
   23594 #endif
   23595 char strcasecmp ();
   23596 #if defined __stub_strcasecmp || defined __stub___strcasecmp
   23597 choke me
   23598 #endif
   23599 
   23600 int main (void)
   23601 {
   23602 return strcasecmp ();
   23603  ;
   23604  return 0;
   23605 }
   23606 
   23607 _ACEOF
   23608 if ac_fn_c_try_link "$LINENO"; then :
   23609 
   23610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23611 $as_echo "yes" >&6; }
   23612     tst_links_strcasecmp="yes"
   23613 
   23614 else
   23615 
   23616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23617 $as_echo "no" >&6; }
   23618     tst_links_strcasecmp="no"
   23619 
   23620 fi
   23621 rm -f core conftest.err conftest.$ac_objext \
   23622     conftest$ac_exeext conftest.$ac_ext
   23623   #
   23624   if test "$tst_links_strcasecmp" = "yes"; then
   23625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
   23626 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
   23627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23628 /* end confdefs.h.  */
   23629 
   23630       $cares_includes_string
   23631 
   23632 _ACEOF
   23633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23634   $EGREP "strcasecmp" >/dev/null 2>&1; then :
   23635 
   23636       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23637 $as_echo "yes" >&6; }
   23638       tst_proto_strcasecmp="yes"
   23639 
   23640 else
   23641 
   23642       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23643 $as_echo "no" >&6; }
   23644       tst_proto_strcasecmp="no"
   23645 
   23646 fi
   23647 rm -f conftest*
   23648 
   23649   fi
   23650   #
   23651   if test "$tst_proto_strcasecmp" = "yes"; then
   23652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
   23653 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
   23654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23655 /* end confdefs.h.  */
   23656 
   23657 
   23658         $cares_includes_string
   23659 
   23660 int main (void)
   23661 {
   23662 
   23663         if(0 != strcasecmp(0, 0))
   23664           return 1;
   23665 
   23666  ;
   23667  return 0;
   23668 }
   23669 
   23670 _ACEOF
   23671 if ac_fn_c_try_compile "$LINENO"; then :
   23672 
   23673       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23674 $as_echo "yes" >&6; }
   23675       tst_compi_strcasecmp="yes"
   23676 
   23677 else
   23678 
   23679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23680 $as_echo "no" >&6; }
   23681       tst_compi_strcasecmp="no"
   23682 
   23683 fi
   23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23685   fi
   23686   #
   23687   if test "$tst_compi_strcasecmp" = "yes"; then
   23688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
   23689 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
   23690     if test "x$cares_disallow_strcasecmp" != "xyes"; then
   23691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23692 $as_echo "yes" >&6; }
   23693       tst_allow_strcasecmp="yes"
   23694     else
   23695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23696 $as_echo "no" >&6; }
   23697       tst_allow_strcasecmp="no"
   23698     fi
   23699   fi
   23700   #
   23701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
   23702 $as_echo_n "checking if strcasecmp might be used... " >&6; }
   23703   if test "$tst_links_strcasecmp" = "yes" &&
   23704      test "$tst_proto_strcasecmp" = "yes" &&
   23705      test "$tst_compi_strcasecmp" = "yes" &&
   23706      test "$tst_allow_strcasecmp" = "yes"; then
   23707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23708 $as_echo "yes" >&6; }
   23709 
   23710 cat >>confdefs.h <<_ACEOF
   23711 #define HAVE_STRCASECMP 1
   23712 _ACEOF
   23713 
   23714     ac_cv_func_strcasecmp="yes"
   23715   else
   23716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23717 $as_echo "no" >&6; }
   23718     ac_cv_func_strcasecmp="no"
   23719   fi
   23720 
   23721 
   23722     #
   23723   tst_links_strcmpi="unknown"
   23724   tst_proto_strcmpi="unknown"
   23725   tst_compi_strcmpi="unknown"
   23726   tst_allow_strcmpi="unknown"
   23727   #
   23728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
   23729 $as_echo_n "checking if strcmpi can be linked... " >&6; }
   23730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23731 /* end confdefs.h.  */
   23732 
   23733 
   23734 #define strcmpi innocuous_strcmpi
   23735 #ifdef __STDC__
   23736 # include <limits.h>
   23737 #else
   23738 # include <assert.h>
   23739 #endif
   23740 #undef strcmpi
   23741 #ifdef __cplusplus
   23742 extern "C"
   23743 #endif
   23744 char strcmpi ();
   23745 #if defined __stub_strcmpi || defined __stub___strcmpi
   23746 choke me
   23747 #endif
   23748 
   23749 int main (void)
   23750 {
   23751 return strcmpi ();
   23752  ;
   23753  return 0;
   23754 }
   23755 
   23756 _ACEOF
   23757 if ac_fn_c_try_link "$LINENO"; then :
   23758 
   23759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23760 $as_echo "yes" >&6; }
   23761     tst_links_strcmpi="yes"
   23762 
   23763 else
   23764 
   23765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23766 $as_echo "no" >&6; }
   23767     tst_links_strcmpi="no"
   23768 
   23769 fi
   23770 rm -f core conftest.err conftest.$ac_objext \
   23771     conftest$ac_exeext conftest.$ac_ext
   23772   #
   23773   if test "$tst_links_strcmpi" = "yes"; then
   23774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
   23775 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
   23776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23777 /* end confdefs.h.  */
   23778 
   23779       $cares_includes_string
   23780 
   23781 _ACEOF
   23782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23783   $EGREP "strcmpi" >/dev/null 2>&1; then :
   23784 
   23785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23786 $as_echo "yes" >&6; }
   23787       tst_proto_strcmpi="yes"
   23788 
   23789 else
   23790 
   23791       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23792 $as_echo "no" >&6; }
   23793       tst_proto_strcmpi="no"
   23794 
   23795 fi
   23796 rm -f conftest*
   23797 
   23798   fi
   23799   #
   23800   if test "$tst_proto_strcmpi" = "yes"; then
   23801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
   23802 $as_echo_n "checking if strcmpi is compilable... " >&6; }
   23803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23804 /* end confdefs.h.  */
   23805 
   23806 
   23807         $cares_includes_string
   23808 
   23809 int main (void)
   23810 {
   23811 
   23812         if(0 != strcmpi(0, 0))
   23813           return 1;
   23814 
   23815  ;
   23816  return 0;
   23817 }
   23818 
   23819 _ACEOF
   23820 if ac_fn_c_try_compile "$LINENO"; then :
   23821 
   23822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23823 $as_echo "yes" >&6; }
   23824       tst_compi_strcmpi="yes"
   23825 
   23826 else
   23827 
   23828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23829 $as_echo "no" >&6; }
   23830       tst_compi_strcmpi="no"
   23831 
   23832 fi
   23833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23834   fi
   23835   #
   23836   if test "$tst_compi_strcmpi" = "yes"; then
   23837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
   23838 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
   23839     if test "x$cares_disallow_strcmpi" != "xyes"; then
   23840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23841 $as_echo "yes" >&6; }
   23842       tst_allow_strcmpi="yes"
   23843     else
   23844       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23845 $as_echo "no" >&6; }
   23846       tst_allow_strcmpi="no"
   23847     fi
   23848   fi
   23849   #
   23850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
   23851 $as_echo_n "checking if strcmpi might be used... " >&6; }
   23852   if test "$tst_links_strcmpi" = "yes" &&
   23853      test "$tst_proto_strcmpi" = "yes" &&
   23854      test "$tst_compi_strcmpi" = "yes" &&
   23855      test "$tst_allow_strcmpi" = "yes"; then
   23856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23857 $as_echo "yes" >&6; }
   23858 
   23859 cat >>confdefs.h <<_ACEOF
   23860 #define HAVE_STRCMPI 1
   23861 _ACEOF
   23862 
   23863     ac_cv_func_strcmpi="yes"
   23864   else
   23865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23866 $as_echo "no" >&6; }
   23867     ac_cv_func_strcmpi="no"
   23868   fi
   23869 
   23870 
   23871     #
   23872   tst_links_strdup="unknown"
   23873   tst_proto_strdup="unknown"
   23874   tst_compi_strdup="unknown"
   23875   tst_allow_strdup="unknown"
   23876   #
   23877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
   23878 $as_echo_n "checking if strdup can be linked... " >&6; }
   23879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23880 /* end confdefs.h.  */
   23881 
   23882 
   23883 #define strdup innocuous_strdup
   23884 #ifdef __STDC__
   23885 # include <limits.h>
   23886 #else
   23887 # include <assert.h>
   23888 #endif
   23889 #undef strdup
   23890 #ifdef __cplusplus
   23891 extern "C"
   23892 #endif
   23893 char strdup ();
   23894 #if defined __stub_strdup || defined __stub___strdup
   23895 choke me
   23896 #endif
   23897 
   23898 int main (void)
   23899 {
   23900 return strdup ();
   23901  ;
   23902  return 0;
   23903 }
   23904 
   23905 _ACEOF
   23906 if ac_fn_c_try_link "$LINENO"; then :
   23907 
   23908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23909 $as_echo "yes" >&6; }
   23910     tst_links_strdup="yes"
   23911 
   23912 else
   23913 
   23914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23915 $as_echo "no" >&6; }
   23916     tst_links_strdup="no"
   23917 
   23918 fi
   23919 rm -f core conftest.err conftest.$ac_objext \
   23920     conftest$ac_exeext conftest.$ac_ext
   23921   #
   23922   if test "$tst_links_strdup" = "yes"; then
   23923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
   23924 $as_echo_n "checking if strdup is prototyped... " >&6; }
   23925     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23926 /* end confdefs.h.  */
   23927 
   23928       $cares_includes_string
   23929 
   23930 _ACEOF
   23931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23932   $EGREP "strdup" >/dev/null 2>&1; then :
   23933 
   23934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23935 $as_echo "yes" >&6; }
   23936       tst_proto_strdup="yes"
   23937 
   23938 else
   23939 
   23940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23941 $as_echo "no" >&6; }
   23942       tst_proto_strdup="no"
   23943 
   23944 fi
   23945 rm -f conftest*
   23946 
   23947   fi
   23948   #
   23949   if test "$tst_proto_strdup" = "yes"; then
   23950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
   23951 $as_echo_n "checking if strdup is compilable... " >&6; }
   23952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23953 /* end confdefs.h.  */
   23954 
   23955 
   23956         $cares_includes_string
   23957 
   23958 int main (void)
   23959 {
   23960 
   23961         if(0 != strdup(0))
   23962           return 1;
   23963 
   23964  ;
   23965  return 0;
   23966 }
   23967 
   23968 _ACEOF
   23969 if ac_fn_c_try_compile "$LINENO"; then :
   23970 
   23971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23972 $as_echo "yes" >&6; }
   23973       tst_compi_strdup="yes"
   23974 
   23975 else
   23976 
   23977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23978 $as_echo "no" >&6; }
   23979       tst_compi_strdup="no"
   23980 
   23981 fi
   23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23983   fi
   23984   #
   23985   if test "$tst_compi_strdup" = "yes"; then
   23986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
   23987 $as_echo_n "checking if strdup usage allowed... " >&6; }
   23988     if test "x$cares_disallow_strdup" != "xyes"; then
   23989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23990 $as_echo "yes" >&6; }
   23991       tst_allow_strdup="yes"
   23992     else
   23993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23994 $as_echo "no" >&6; }
   23995       tst_allow_strdup="no"
   23996     fi
   23997   fi
   23998   #
   23999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
   24000 $as_echo_n "checking if strdup might be used... " >&6; }
   24001   if test "$tst_links_strdup" = "yes" &&
   24002      test "$tst_proto_strdup" = "yes" &&
   24003      test "$tst_compi_strdup" = "yes" &&
   24004      test "$tst_allow_strdup" = "yes"; then
   24005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24006 $as_echo "yes" >&6; }
   24007 
   24008 cat >>confdefs.h <<_ACEOF
   24009 #define HAVE_STRDUP 1
   24010 _ACEOF
   24011 
   24012     ac_cv_func_strdup="yes"
   24013   else
   24014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24015 $as_echo "no" >&6; }
   24016     ac_cv_func_strdup="no"
   24017   fi
   24018 
   24019 
   24020     #
   24021   tst_links_stricmp="unknown"
   24022   tst_proto_stricmp="unknown"
   24023   tst_compi_stricmp="unknown"
   24024   tst_allow_stricmp="unknown"
   24025   #
   24026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
   24027 $as_echo_n "checking if stricmp can be linked... " >&6; }
   24028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24029 /* end confdefs.h.  */
   24030 
   24031 
   24032 #define stricmp innocuous_stricmp
   24033 #ifdef __STDC__
   24034 # include <limits.h>
   24035 #else
   24036 # include <assert.h>
   24037 #endif
   24038 #undef stricmp
   24039 #ifdef __cplusplus
   24040 extern "C"
   24041 #endif
   24042 char stricmp ();
   24043 #if defined __stub_stricmp || defined __stub___stricmp
   24044 choke me
   24045 #endif
   24046 
   24047 int main (void)
   24048 {
   24049 return stricmp ();
   24050  ;
   24051  return 0;
   24052 }
   24053 
   24054 _ACEOF
   24055 if ac_fn_c_try_link "$LINENO"; then :
   24056 
   24057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24058 $as_echo "yes" >&6; }
   24059     tst_links_stricmp="yes"
   24060 
   24061 else
   24062 
   24063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24064 $as_echo "no" >&6; }
   24065     tst_links_stricmp="no"
   24066 
   24067 fi
   24068 rm -f core conftest.err conftest.$ac_objext \
   24069     conftest$ac_exeext conftest.$ac_ext
   24070   #
   24071   if test "$tst_links_stricmp" = "yes"; then
   24072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
   24073 $as_echo_n "checking if stricmp is prototyped... " >&6; }
   24074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24075 /* end confdefs.h.  */
   24076 
   24077       $cares_includes_string
   24078 
   24079 _ACEOF
   24080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24081   $EGREP "stricmp" >/dev/null 2>&1; then :
   24082 
   24083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24084 $as_echo "yes" >&6; }
   24085       tst_proto_stricmp="yes"
   24086 
   24087 else
   24088 
   24089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24090 $as_echo "no" >&6; }
   24091       tst_proto_stricmp="no"
   24092 
   24093 fi
   24094 rm -f conftest*
   24095 
   24096   fi
   24097   #
   24098   if test "$tst_proto_stricmp" = "yes"; then
   24099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
   24100 $as_echo_n "checking if stricmp is compilable... " >&6; }
   24101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24102 /* end confdefs.h.  */
   24103 
   24104 
   24105         $cares_includes_string
   24106 
   24107 int main (void)
   24108 {
   24109 
   24110         if(0 != stricmp(0, 0))
   24111           return 1;
   24112 
   24113  ;
   24114  return 0;
   24115 }
   24116 
   24117 _ACEOF
   24118 if ac_fn_c_try_compile "$LINENO"; then :
   24119 
   24120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24121 $as_echo "yes" >&6; }
   24122       tst_compi_stricmp="yes"
   24123 
   24124 else
   24125 
   24126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24127 $as_echo "no" >&6; }
   24128       tst_compi_stricmp="no"
   24129 
   24130 fi
   24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24132   fi
   24133   #
   24134   if test "$tst_compi_stricmp" = "yes"; then
   24135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
   24136 $as_echo_n "checking if stricmp usage allowed... " >&6; }
   24137     if test "x$cares_disallow_stricmp" != "xyes"; then
   24138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24139 $as_echo "yes" >&6; }
   24140       tst_allow_stricmp="yes"
   24141     else
   24142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24143 $as_echo "no" >&6; }
   24144       tst_allow_stricmp="no"
   24145     fi
   24146   fi
   24147   #
   24148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
   24149 $as_echo_n "checking if stricmp might be used... " >&6; }
   24150   if test "$tst_links_stricmp" = "yes" &&
   24151      test "$tst_proto_stricmp" = "yes" &&
   24152      test "$tst_compi_stricmp" = "yes" &&
   24153      test "$tst_allow_stricmp" = "yes"; then
   24154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24155 $as_echo "yes" >&6; }
   24156 
   24157 cat >>confdefs.h <<_ACEOF
   24158 #define HAVE_STRICMP 1
   24159 _ACEOF
   24160 
   24161     ac_cv_func_stricmp="yes"
   24162   else
   24163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24164 $as_echo "no" >&6; }
   24165     ac_cv_func_stricmp="no"
   24166   fi
   24167 
   24168 
   24169     #
   24170   tst_links_strncasecmp="unknown"
   24171   tst_proto_strncasecmp="unknown"
   24172   tst_compi_strncasecmp="unknown"
   24173   tst_allow_strncasecmp="unknown"
   24174   #
   24175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
   24176 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
   24177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24178 /* end confdefs.h.  */
   24179 
   24180 
   24181 #define strncasecmp innocuous_strncasecmp
   24182 #ifdef __STDC__
   24183 # include <limits.h>
   24184 #else
   24185 # include <assert.h>
   24186 #endif
   24187 #undef strncasecmp
   24188 #ifdef __cplusplus
   24189 extern "C"
   24190 #endif
   24191 char strncasecmp ();
   24192 #if defined __stub_strncasecmp || defined __stub___strncasecmp
   24193 choke me
   24194 #endif
   24195 
   24196 int main (void)
   24197 {
   24198 return strncasecmp ();
   24199  ;
   24200  return 0;
   24201 }
   24202 
   24203 _ACEOF
   24204 if ac_fn_c_try_link "$LINENO"; then :
   24205 
   24206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24207 $as_echo "yes" >&6; }
   24208     tst_links_strncasecmp="yes"
   24209 
   24210 else
   24211 
   24212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24213 $as_echo "no" >&6; }
   24214     tst_links_strncasecmp="no"
   24215 
   24216 fi
   24217 rm -f core conftest.err conftest.$ac_objext \
   24218     conftest$ac_exeext conftest.$ac_ext
   24219   #
   24220   if test "$tst_links_strncasecmp" = "yes"; then
   24221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
   24222 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
   24223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24224 /* end confdefs.h.  */
   24225 
   24226       $cares_includes_string
   24227 
   24228 _ACEOF
   24229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24230   $EGREP "strncasecmp" >/dev/null 2>&1; then :
   24231 
   24232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24233 $as_echo "yes" >&6; }
   24234       tst_proto_strncasecmp="yes"
   24235 
   24236 else
   24237 
   24238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24239 $as_echo "no" >&6; }
   24240       tst_proto_strncasecmp="no"
   24241 
   24242 fi
   24243 rm -f conftest*
   24244 
   24245   fi
   24246   #
   24247   if test "$tst_proto_strncasecmp" = "yes"; then
   24248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
   24249 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
   24250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24251 /* end confdefs.h.  */
   24252 
   24253 
   24254         $cares_includes_string
   24255 
   24256 int main (void)
   24257 {
   24258 
   24259         if(0 != strncasecmp(0, 0, 0))
   24260           return 1;
   24261 
   24262  ;
   24263  return 0;
   24264 }
   24265 
   24266 _ACEOF
   24267 if ac_fn_c_try_compile "$LINENO"; then :
   24268 
   24269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24270 $as_echo "yes" >&6; }
   24271       tst_compi_strncasecmp="yes"
   24272 
   24273 else
   24274 
   24275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24276 $as_echo "no" >&6; }
   24277       tst_compi_strncasecmp="no"
   24278 
   24279 fi
   24280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24281   fi
   24282   #
   24283   if test "$tst_compi_strncasecmp" = "yes"; then
   24284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
   24285 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
   24286     if test "x$cares_disallow_strncasecmp" != "xyes"; then
   24287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24288 $as_echo "yes" >&6; }
   24289       tst_allow_strncasecmp="yes"
   24290     else
   24291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24292 $as_echo "no" >&6; }
   24293       tst_allow_strncasecmp="no"
   24294     fi
   24295   fi
   24296   #
   24297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
   24298 $as_echo_n "checking if strncasecmp might be used... " >&6; }
   24299   if test "$tst_links_strncasecmp" = "yes" &&
   24300      test "$tst_proto_strncasecmp" = "yes" &&
   24301      test "$tst_compi_strncasecmp" = "yes" &&
   24302      test "$tst_allow_strncasecmp" = "yes"; then
   24303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24304 $as_echo "yes" >&6; }
   24305 
   24306 cat >>confdefs.h <<_ACEOF
   24307 #define HAVE_STRNCASECMP 1
   24308 _ACEOF
   24309 
   24310     ac_cv_func_strncasecmp="yes"
   24311   else
   24312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24313 $as_echo "no" >&6; }
   24314     ac_cv_func_strncasecmp="no"
   24315   fi
   24316 
   24317 
   24318     #
   24319   tst_links_strncmpi="unknown"
   24320   tst_proto_strncmpi="unknown"
   24321   tst_compi_strncmpi="unknown"
   24322   tst_allow_strncmpi="unknown"
   24323   #
   24324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
   24325 $as_echo_n "checking if strncmpi can be linked... " >&6; }
   24326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24327 /* end confdefs.h.  */
   24328 
   24329 
   24330 #define strncmpi innocuous_strncmpi
   24331 #ifdef __STDC__
   24332 # include <limits.h>
   24333 #else
   24334 # include <assert.h>
   24335 #endif
   24336 #undef strncmpi
   24337 #ifdef __cplusplus
   24338 extern "C"
   24339 #endif
   24340 char strncmpi ();
   24341 #if defined __stub_strncmpi || defined __stub___strncmpi
   24342 choke me
   24343 #endif
   24344 
   24345 int main (void)
   24346 {
   24347 return strncmpi ();
   24348  ;
   24349  return 0;
   24350 }
   24351 
   24352 _ACEOF
   24353 if ac_fn_c_try_link "$LINENO"; then :
   24354 
   24355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24356 $as_echo "yes" >&6; }
   24357     tst_links_strncmpi="yes"
   24358 
   24359 else
   24360 
   24361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24362 $as_echo "no" >&6; }
   24363     tst_links_strncmpi="no"
   24364 
   24365 fi
   24366 rm -f core conftest.err conftest.$ac_objext \
   24367     conftest$ac_exeext conftest.$ac_ext
   24368   #
   24369   if test "$tst_links_strncmpi" = "yes"; then
   24370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
   24371 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
   24372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24373 /* end confdefs.h.  */
   24374 
   24375       $cares_includes_string
   24376 
   24377 _ACEOF
   24378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24379   $EGREP "strncmpi" >/dev/null 2>&1; then :
   24380 
   24381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24382 $as_echo "yes" >&6; }
   24383       tst_proto_strncmpi="yes"
   24384 
   24385 else
   24386 
   24387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24388 $as_echo "no" >&6; }
   24389       tst_proto_strncmpi="no"
   24390 
   24391 fi
   24392 rm -f conftest*
   24393 
   24394   fi
   24395   #
   24396   if test "$tst_proto_strncmpi" = "yes"; then
   24397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
   24398 $as_echo_n "checking if strncmpi is compilable... " >&6; }
   24399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24400 /* end confdefs.h.  */
   24401 
   24402 
   24403         $cares_includes_string
   24404 
   24405 int main (void)
   24406 {
   24407 
   24408         if(0 != strncmpi(0, 0))
   24409           return 1;
   24410 
   24411  ;
   24412  return 0;
   24413 }
   24414 
   24415 _ACEOF
   24416 if ac_fn_c_try_compile "$LINENO"; then :
   24417 
   24418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24419 $as_echo "yes" >&6; }
   24420       tst_compi_strncmpi="yes"
   24421 
   24422 else
   24423 
   24424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24425 $as_echo "no" >&6; }
   24426       tst_compi_strncmpi="no"
   24427 
   24428 fi
   24429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24430   fi
   24431   #
   24432   if test "$tst_compi_strncmpi" = "yes"; then
   24433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
   24434 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
   24435     if test "x$cares_disallow_strncmpi" != "xyes"; then
   24436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24437 $as_echo "yes" >&6; }
   24438       tst_allow_strncmpi="yes"
   24439     else
   24440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24441 $as_echo "no" >&6; }
   24442       tst_allow_strncmpi="no"
   24443     fi
   24444   fi
   24445   #
   24446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
   24447 $as_echo_n "checking if strncmpi might be used... " >&6; }
   24448   if test "$tst_links_strncmpi" = "yes" &&
   24449      test "$tst_proto_strncmpi" = "yes" &&
   24450      test "$tst_compi_strncmpi" = "yes" &&
   24451      test "$tst_allow_strncmpi" = "yes"; then
   24452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24453 $as_echo "yes" >&6; }
   24454 
   24455 cat >>confdefs.h <<_ACEOF
   24456 #define HAVE_STRNCMPI 1
   24457 _ACEOF
   24458 
   24459     ac_cv_func_strncmpi="yes"
   24460   else
   24461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24462 $as_echo "no" >&6; }
   24463     ac_cv_func_strncmpi="no"
   24464   fi
   24465 
   24466 
   24467     #
   24468   tst_links_strnicmp="unknown"
   24469   tst_proto_strnicmp="unknown"
   24470   tst_compi_strnicmp="unknown"
   24471   tst_allow_strnicmp="unknown"
   24472   #
   24473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
   24474 $as_echo_n "checking if strnicmp can be linked... " >&6; }
   24475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24476 /* end confdefs.h.  */
   24477 
   24478 
   24479 #define strnicmp innocuous_strnicmp
   24480 #ifdef __STDC__
   24481 # include <limits.h>
   24482 #else
   24483 # include <assert.h>
   24484 #endif
   24485 #undef strnicmp
   24486 #ifdef __cplusplus
   24487 extern "C"
   24488 #endif
   24489 char strnicmp ();
   24490 #if defined __stub_strnicmp || defined __stub___strnicmp
   24491 choke me
   24492 #endif
   24493 
   24494 int main (void)
   24495 {
   24496 return strnicmp ();
   24497  ;
   24498  return 0;
   24499 }
   24500 
   24501 _ACEOF
   24502 if ac_fn_c_try_link "$LINENO"; then :
   24503 
   24504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24505 $as_echo "yes" >&6; }
   24506     tst_links_strnicmp="yes"
   24507 
   24508 else
   24509 
   24510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24511 $as_echo "no" >&6; }
   24512     tst_links_strnicmp="no"
   24513 
   24514 fi
   24515 rm -f core conftest.err conftest.$ac_objext \
   24516     conftest$ac_exeext conftest.$ac_ext
   24517   #
   24518   if test "$tst_links_strnicmp" = "yes"; then
   24519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
   24520 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
   24521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24522 /* end confdefs.h.  */
   24523 
   24524       $cares_includes_string
   24525 
   24526 _ACEOF
   24527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24528   $EGREP "strnicmp" >/dev/null 2>&1; then :
   24529 
   24530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24531 $as_echo "yes" >&6; }
   24532       tst_proto_strnicmp="yes"
   24533 
   24534 else
   24535 
   24536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24537 $as_echo "no" >&6; }
   24538       tst_proto_strnicmp="no"
   24539 
   24540 fi
   24541 rm -f conftest*
   24542 
   24543   fi
   24544   #
   24545   if test "$tst_proto_strnicmp" = "yes"; then
   24546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
   24547 $as_echo_n "checking if strnicmp is compilable... " >&6; }
   24548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24549 /* end confdefs.h.  */
   24550 
   24551 
   24552         $cares_includes_string
   24553 
   24554 int main (void)
   24555 {
   24556 
   24557         if(0 != strnicmp(0, 0))
   24558           return 1;
   24559 
   24560  ;
   24561  return 0;
   24562 }
   24563 
   24564 _ACEOF
   24565 if ac_fn_c_try_compile "$LINENO"; then :
   24566 
   24567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24568 $as_echo "yes" >&6; }
   24569       tst_compi_strnicmp="yes"
   24570 
   24571 else
   24572 
   24573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24574 $as_echo "no" >&6; }
   24575       tst_compi_strnicmp="no"
   24576 
   24577 fi
   24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24579   fi
   24580   #
   24581   if test "$tst_compi_strnicmp" = "yes"; then
   24582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
   24583 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
   24584     if test "x$cares_disallow_strnicmp" != "xyes"; then
   24585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24586 $as_echo "yes" >&6; }
   24587       tst_allow_strnicmp="yes"
   24588     else
   24589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24590 $as_echo "no" >&6; }
   24591       tst_allow_strnicmp="no"
   24592     fi
   24593   fi
   24594   #
   24595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
   24596 $as_echo_n "checking if strnicmp might be used... " >&6; }
   24597   if test "$tst_links_strnicmp" = "yes" &&
   24598      test "$tst_proto_strnicmp" = "yes" &&
   24599      test "$tst_compi_strnicmp" = "yes" &&
   24600      test "$tst_allow_strnicmp" = "yes"; then
   24601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24602 $as_echo "yes" >&6; }
   24603 
   24604 cat >>confdefs.h <<_ACEOF
   24605 #define HAVE_STRNICMP 1
   24606 _ACEOF
   24607 
   24608     ac_cv_func_strnicmp="yes"
   24609   else
   24610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24611 $as_echo "no" >&6; }
   24612     ac_cv_func_strnicmp="no"
   24613   fi
   24614 
   24615 
   24616 cares_includes_sys_uio="\
   24617 /* includes start */
   24618 #ifdef HAVE_SYS_TYPES_H
   24619 #  include <sys/types.h>
   24620 #endif
   24621 #ifdef HAVE_SYS_UIO_H
   24622 #  include <sys/uio.h>
   24623 #endif
   24624 /* includes end */"
   24625   for ac_header in sys/types.h sys/uio.h
   24626 do :
   24627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   24628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
   24629 "
   24630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   24631   cat >>confdefs.h <<_ACEOF
   24632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   24633 _ACEOF
   24634 
   24635 fi
   24636 
   24637 done
   24638 
   24639 
   24640 
   24641     #
   24642   tst_links_writev="unknown"
   24643   tst_proto_writev="unknown"
   24644   tst_compi_writev="unknown"
   24645   tst_allow_writev="unknown"
   24646   #
   24647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
   24648 $as_echo_n "checking if writev can be linked... " >&6; }
   24649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24650 /* end confdefs.h.  */
   24651 
   24652 
   24653 #define writev innocuous_writev
   24654 #ifdef __STDC__
   24655 # include <limits.h>
   24656 #else
   24657 # include <assert.h>
   24658 #endif
   24659 #undef writev
   24660 #ifdef __cplusplus
   24661 extern "C"
   24662 #endif
   24663 char writev ();
   24664 #if defined __stub_writev || defined __stub___writev
   24665 choke me
   24666 #endif
   24667 
   24668 int main (void)
   24669 {
   24670 return writev ();
   24671  ;
   24672  return 0;
   24673 }
   24674 
   24675 _ACEOF
   24676 if ac_fn_c_try_link "$LINENO"; then :
   24677 
   24678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24679 $as_echo "yes" >&6; }
   24680     tst_links_writev="yes"
   24681 
   24682 else
   24683 
   24684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24685 $as_echo "no" >&6; }
   24686     tst_links_writev="no"
   24687 
   24688 fi
   24689 rm -f core conftest.err conftest.$ac_objext \
   24690     conftest$ac_exeext conftest.$ac_ext
   24691   #
   24692   if test "$tst_links_writev" = "yes"; then
   24693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
   24694 $as_echo_n "checking if writev is prototyped... " >&6; }
   24695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24696 /* end confdefs.h.  */
   24697 
   24698       $cares_includes_sys_uio
   24699 
   24700 _ACEOF
   24701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24702   $EGREP "writev" >/dev/null 2>&1; then :
   24703 
   24704       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24705 $as_echo "yes" >&6; }
   24706       tst_proto_writev="yes"
   24707 
   24708 else
   24709 
   24710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24711 $as_echo "no" >&6; }
   24712       tst_proto_writev="no"
   24713 
   24714 fi
   24715 rm -f conftest*
   24716 
   24717   fi
   24718   #
   24719   if test "$tst_proto_writev" = "yes"; then
   24720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
   24721 $as_echo_n "checking if writev is compilable... " >&6; }
   24722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24723 /* end confdefs.h.  */
   24724 
   24725 
   24726         $cares_includes_sys_uio
   24727 
   24728 int main (void)
   24729 {
   24730 
   24731         if(0 != writev(0, 0, 0))
   24732           return 1;
   24733 
   24734  ;
   24735  return 0;
   24736 }
   24737 
   24738 _ACEOF
   24739 if ac_fn_c_try_compile "$LINENO"; then :
   24740 
   24741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24742 $as_echo "yes" >&6; }
   24743       tst_compi_writev="yes"
   24744 
   24745 else
   24746 
   24747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24748 $as_echo "no" >&6; }
   24749       tst_compi_writev="no"
   24750 
   24751 fi
   24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24753   fi
   24754   #
   24755   if test "$tst_compi_writev" = "yes"; then
   24756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
   24757 $as_echo_n "checking if writev usage allowed... " >&6; }
   24758     if test "x$cares_disallow_writev" != "xyes"; then
   24759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24760 $as_echo "yes" >&6; }
   24761       tst_allow_writev="yes"
   24762     else
   24763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24764 $as_echo "no" >&6; }
   24765       tst_allow_writev="no"
   24766     fi
   24767   fi
   24768   #
   24769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
   24770 $as_echo_n "checking if writev might be used... " >&6; }
   24771   if test "$tst_links_writev" = "yes" &&
   24772      test "$tst_proto_writev" = "yes" &&
   24773      test "$tst_compi_writev" = "yes" &&
   24774      test "$tst_allow_writev" = "yes"; then
   24775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24776 $as_echo "yes" >&6; }
   24777 
   24778 cat >>confdefs.h <<_ACEOF
   24779 #define HAVE_WRITEV 1
   24780 _ACEOF
   24781 
   24782     ac_cv_func_writev="yes"
   24783   else
   24784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24785 $as_echo "no" >&6; }
   24786     ac_cv_func_writev="no"
   24787   fi
   24788 
   24789 
   24790 
   24791 
   24792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
   24793 $as_echo_n "checking for PF_INET6... " >&6; }
   24794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24795 /* end confdefs.h.  */
   24796 
   24797 
   24798 #undef inline
   24799 #ifdef HAVE_WINDOWS_H
   24800 #ifndef WIN32_LEAN_AND_MEAN
   24801 #define WIN32_LEAN_AND_MEAN
   24802 #endif
   24803 #include <windows.h>
   24804 #ifdef HAVE_WINSOCK2_H
   24805 #include <winsock2.h>
   24806 #endif
   24807 #else
   24808 #ifdef HAVE_SYS_TYPES_H
   24809 #include <sys/types.h>
   24810 #endif
   24811 #ifdef HAVE_SYS_SOCKET_H
   24812 #include <sys/socket.h>
   24813 #endif
   24814 #endif
   24815 
   24816 
   24817       #ifdef PF_INET6
   24818         VARIABLEWASDEFINED
   24819       #else
   24820         NJET
   24821       #endif
   24822 
   24823 _ACEOF
   24824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24825   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
   24826   ac_constant="yes"
   24827 else
   24828   ac_constant="no"
   24829 
   24830 fi
   24831 rm -f conftest*
   24832 
   24833   if test "$ac_constant" = "yes" ; then
   24834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24835 $as_echo "yes" >&6; }
   24836 
   24837 cat >>confdefs.h <<_ACEOF
   24838 #define HAVE_PF_INET6 1
   24839 _ACEOF
   24840 
   24841 
   24842   else
   24843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24844 $as_echo "no" >&6; }
   24845 
   24846   fi
   24847 
   24848 
   24849 
   24850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
   24851 $as_echo_n "checking for AF_INET6... " >&6; }
   24852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24853 /* end confdefs.h.  */
   24854 
   24855 
   24856 #undef inline
   24857 #ifdef HAVE_WINDOWS_H
   24858 #ifndef WIN32_LEAN_AND_MEAN
   24859 #define WIN32_LEAN_AND_MEAN
   24860 #endif
   24861 #include <windows.h>
   24862 #ifdef HAVE_WINSOCK2_H
   24863 #include <winsock2.h>
   24864 #endif
   24865 #else
   24866 #ifdef HAVE_SYS_TYPES_H
   24867 #include <sys/types.h>
   24868 #endif
   24869 #ifdef HAVE_SYS_SOCKET_H
   24870 #include <sys/socket.h>
   24871 #endif
   24872 #endif
   24873 
   24874 
   24875       #ifdef AF_INET6
   24876         VARIABLEWASDEFINED
   24877       #else
   24878         NJET
   24879       #endif
   24880 
   24881 _ACEOF
   24882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   24883   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
   24884   ac_constant="yes"
   24885 else
   24886   ac_constant="no"
   24887 
   24888 fi
   24889 rm -f conftest*
   24890 
   24891   if test "$ac_constant" = "yes" ; then
   24892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24893 $as_echo "yes" >&6; }
   24894 
   24895 cat >>confdefs.h <<_ACEOF
   24896 #define HAVE_AF_INET6 1
   24897 _ACEOF
   24898 
   24899 
   24900   else
   24901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24902 $as_echo "no" >&6; }
   24903 
   24904   fi
   24905 
   24906 
   24907 
   24908 
   24909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
   24910 $as_echo_n "checking for struct in6_addr... " >&6; }
   24911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24912 /* end confdefs.h.  */
   24913 
   24914 #undef inline
   24915 #ifdef HAVE_WINDOWS_H
   24916 #ifndef WIN32_LEAN_AND_MEAN
   24917 #define WIN32_LEAN_AND_MEAN
   24918 #endif
   24919 #include <windows.h>
   24920 #ifdef HAVE_WINSOCK2_H
   24921 #include <winsock2.h>
   24922 #ifdef HAVE_WS2TCPIP_H
   24923 #include <ws2tcpip.h>
   24924 #endif
   24925 #endif
   24926 #else
   24927 #ifdef HAVE_SYS_TYPES_H
   24928 #include <sys/types.h>
   24929 #endif
   24930 #ifdef HAVE_NETINET_IN_H
   24931 #include <netinet/in.h>
   24932 #endif
   24933 #endif
   24934 
   24935 int main (void)
   24936 {
   24937 
   24938       struct in6_addr struct_instance;
   24939 
   24940  ;
   24941  return 0;
   24942 }
   24943 _ACEOF
   24944 if ac_fn_c_try_compile "$LINENO"; then :
   24945   ac_struct="yes"
   24946 else
   24947   ac_found="no"
   24948 fi
   24949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24950   if test "$ac_struct" = "yes" ; then
   24951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24952 $as_echo "yes" >&6; }
   24953 
   24954 cat >>confdefs.h <<_ACEOF
   24955 #define HAVE_STRUCT_IN6_ADDR 1
   24956 _ACEOF
   24957 
   24958 
   24959   else
   24960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24961 $as_echo "no" >&6; }
   24962 
   24963   fi
   24964 
   24965 
   24966 
   24967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
   24968 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
   24969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24970 /* end confdefs.h.  */
   24971 
   24972 #undef inline
   24973 #ifdef HAVE_WINDOWS_H
   24974 #ifndef WIN32_LEAN_AND_MEAN
   24975 #define WIN32_LEAN_AND_MEAN
   24976 #endif
   24977 #include <windows.h>
   24978 #ifdef HAVE_WINSOCK2_H
   24979 #include <winsock2.h>
   24980 #ifdef HAVE_WS2TCPIP_H
   24981 #include <ws2tcpip.h>
   24982 #endif
   24983 #endif
   24984 #else
   24985 #ifdef HAVE_SYS_TYPES_H
   24986 #include <sys/types.h>
   24987 #endif
   24988 #ifdef HAVE_NETINET_IN_H
   24989 #include <netinet/in.h>
   24990 #endif
   24991 #endif
   24992 
   24993 int main (void)
   24994 {
   24995 
   24996       struct sockaddr_in6 struct_instance;
   24997 
   24998  ;
   24999  return 0;
   25000 }
   25001 _ACEOF
   25002 if ac_fn_c_try_compile "$LINENO"; then :
   25003   ac_struct="yes"
   25004 else
   25005   ac_found="no"
   25006 fi
   25007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25008   if test "$ac_struct" = "yes" ; then
   25009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25010 $as_echo "yes" >&6; }
   25011 
   25012 cat >>confdefs.h <<_ACEOF
   25013 #define HAVE_STRUCT_SOCKADDR_IN6 1
   25014 _ACEOF
   25015  ac_have_sockaddr_in6=yes
   25016 
   25017   else
   25018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25019 $as_echo "no" >&6; }
   25020 
   25021   fi
   25022 
   25023 
   25024 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
   25025 #undef inline
   25026 #ifdef HAVE_WINDOWS_H
   25027 #ifndef WIN32_LEAN_AND_MEAN
   25028 #define WIN32_LEAN_AND_MEAN
   25029 #endif
   25030 #include <windows.h>
   25031 #ifdef HAVE_WINSOCK2_H
   25032 #include <winsock2.h>
   25033 #ifdef HAVE_WS2TCPIP_H
   25034 #include <ws2tcpip.h>
   25035 #endif
   25036 #endif
   25037 #else
   25038 #ifdef HAVE_SYS_TYPES_H
   25039 #include <sys/types.h>
   25040 #endif
   25041 #ifdef HAVE_NETINET_IN_H
   25042 #include <netinet/in.h>
   25043 #endif
   25044 #endif
   25045 
   25046 "
   25047 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
   25048 
   25049 cat >>confdefs.h <<_ACEOF
   25050 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
   25051 _ACEOF
   25052 
   25053 
   25054 fi
   25055 
   25056 
   25057 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
   25058 #undef inline
   25059 #ifdef HAVE_WINDOWS_H
   25060 #ifndef WIN32_LEAN_AND_MEAN
   25061 #define WIN32_LEAN_AND_MEAN
   25062 #endif
   25063 #include <windows.h>
   25064 #ifdef HAVE_WINSOCK2_H
   25065 #include <winsock2.h>
   25066 #ifdef HAVE_WS2TCPIP_H
   25067 #include <ws2tcpip.h>
   25068 #endif
   25069 #endif
   25070 #else
   25071 #ifdef HAVE_SYS_TYPES_H
   25072 #include <sys/types.h>
   25073 #endif
   25074 #ifdef HAVE_NETINET_IN_H
   25075 #include <netinet/in.h>
   25076 #endif
   25077 #ifdef HAVE_SYS_SOCKET_H
   25078 #include <sys/socket.h>
   25079 #endif
   25080 #ifdef HAVE_NETDB_H
   25081 #include <netdb.h>
   25082 #endif
   25083 #endif
   25084 
   25085 
   25086 "
   25087 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
   25088 
   25089 cat >>confdefs.h <<_ACEOF
   25090 #define HAVE_STRUCT_ADDRINFO 1
   25091 _ACEOF
   25092 
   25093 fi
   25094 
   25095 
   25096 
   25097 for ac_func in bitncmp \
   25098   gettimeofday \
   25099   if_indextoname
   25100 
   25101 do :
   25102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   25103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   25104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   25105   cat >>confdefs.h <<_ACEOF
   25106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   25107 _ACEOF
   25108 
   25109 
   25110 else
   25111 
   25112   func="$ac_func"
   25113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
   25114 $as_echo_n "checking deeper for $func... " >&6; }
   25115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25116 /* end confdefs.h.  */
   25117 
   25118 
   25119 
   25120 int main (void)
   25121 {
   25122 
   25123       $func ();
   25124 
   25125  ;
   25126  return 0;
   25127 }
   25128 
   25129 _ACEOF
   25130 if ac_fn_c_try_link "$LINENO"; then :
   25131 
   25132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25133 $as_echo "yes" >&6; }
   25134     eval "ac_cv_func_$func=yes"
   25135 
   25136 cat >>confdefs.h <<_ACEOF
   25137 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
   25138 _ACEOF
   25139 
   25140 
   25141 else
   25142 
   25143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
   25144 $as_echo "but still no" >&6; }
   25145 
   25146 fi
   25147 rm -f core conftest.err conftest.$ac_objext \
   25148     conftest$ac_exeext conftest.$ac_ext
   25149 
   25150 fi
   25151 done
   25152 
   25153 
   25154 
   25155 # The cast to long int works around a bug in the HP C Compiler
   25156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25158 # This bug is HP SR number 8606223364.
   25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
   25160 $as_echo_n "checking size of struct in6_addr... " >&6; }
   25161 if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
   25162   $as_echo_n "(cached) " >&6
   25163 else
   25164   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr"        "
   25165 #undef inline
   25166 #ifdef HAVE_WINDOWS_H
   25167 #ifndef WIN32_LEAN_AND_MEAN
   25168 #define WIN32_LEAN_AND_MEAN
   25169 #endif
   25170 #include <windows.h>
   25171 #ifdef HAVE_WINSOCK2_H
   25172 #include <winsock2.h>
   25173 #ifdef HAVE_WS2TCPIP_H
   25174 #include <ws2tcpip.h>
   25175 #endif
   25176 #endif
   25177 #else
   25178 #ifdef HAVE_SYS_TYPES_H
   25179 #include <sys/types.h>
   25180 #endif
   25181 #ifdef HAVE_SYS_SOCKET_H
   25182 #include <sys/socket.h>
   25183 #endif
   25184 #ifdef HAVE_NETINET_IN_H
   25185 #include <netinet/in.h>
   25186 #endif
   25187 #endif
   25188 
   25189 
   25190 "; then :
   25191 
   25192 else
   25193   if test "$ac_cv_type_struct_in6_addr" = yes; then
   25194      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   25195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   25196 as_fn_error 77 "cannot compute sizeof (struct in6_addr)
   25197 See \`config.log' for more details" "$LINENO" 5; }
   25198    else
   25199      ac_cv_sizeof_struct_in6_addr=0
   25200    fi
   25201 fi
   25202 
   25203 fi
   25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
   25205 $as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
   25206 
   25207 
   25208 
   25209 cat >>confdefs.h <<_ACEOF
   25210 #define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
   25211 _ACEOF
   25212 
   25213 
   25214 
   25215 # The cast to long int works around a bug in the HP C Compiler
   25216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25218 # This bug is HP SR number 8606223364.
   25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
   25220 $as_echo_n "checking size of struct in_addr... " >&6; }
   25221 if ${ac_cv_sizeof_struct_in_addr+:} false; then :
   25222   $as_echo_n "(cached) " >&6
   25223 else
   25224   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr"        "
   25225 #undef inline
   25226 #ifdef HAVE_WINDOWS_H
   25227 #ifndef WIN32_LEAN_AND_MEAN
   25228 #define WIN32_LEAN_AND_MEAN
   25229 #endif
   25230 #include <windows.h>
   25231 #ifdef HAVE_WINSOCK2_H
   25232 #include <winsock2.h>
   25233 #ifdef HAVE_WS2TCPIP_H
   25234 #include <ws2tcpip.h>
   25235 #endif
   25236 #endif
   25237 #else
   25238 #ifdef HAVE_SYS_TYPES_H
   25239 #include <sys/types.h>
   25240 #endif
   25241 #ifdef HAVE_SYS_SOCKET_H
   25242 #include <sys/socket.h>
   25243 #endif
   25244 #ifdef HAVE_NETINET_IN_H
   25245 #include <netinet/in.h>
   25246 #endif
   25247 #endif
   25248 
   25249 
   25250 "; then :
   25251 
   25252 else
   25253   if test "$ac_cv_type_struct_in_addr" = yes; then
   25254      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   25255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   25256 as_fn_error 77 "cannot compute sizeof (struct in_addr)
   25257 See \`config.log' for more details" "$LINENO" 5; }
   25258    else
   25259      ac_cv_sizeof_struct_in_addr=0
   25260    fi
   25261 fi
   25262 
   25263 fi
   25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
   25265 $as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
   25266 
   25267 
   25268 
   25269 cat >>confdefs.h <<_ACEOF
   25270 #define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
   25271 _ACEOF
   25272 
   25273 
   25274 
   25275 
   25276 
   25277     for ac_header in sys/types.h sys/socket.h netdb.h
   25278 do :
   25279   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   25280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   25281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   25282   cat >>confdefs.h <<_ACEOF
   25283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   25284 _ACEOF
   25285 
   25286 fi
   25287 
   25288 done
   25289 
   25290   #
   25291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
   25292 $as_echo_n "checking for getnameinfo... " >&6; }
   25293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25294 /* end confdefs.h.  */
   25295 
   25296 
   25297 #define getnameinfo innocuous_getnameinfo
   25298 #ifdef __STDC__
   25299 # include <limits.h>
   25300 #else
   25301 # include <assert.h>
   25302 #endif
   25303 #undef getnameinfo
   25304 #ifdef __cplusplus
   25305 extern "C"
   25306 #endif
   25307 char getnameinfo ();
   25308 #if defined __stub_getnameinfo || defined __stub___getnameinfo
   25309 choke me
   25310 #endif
   25311 
   25312 int main (void)
   25313 {
   25314 return getnameinfo ();
   25315  ;
   25316  return 0;
   25317 }
   25318 
   25319 _ACEOF
   25320 if ac_fn_c_try_link "$LINENO"; then :
   25321 
   25322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25323 $as_echo "yes" >&6; }
   25324     curl_cv_getnameinfo="yes"
   25325 
   25326 else
   25327 
   25328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25329 $as_echo "no" >&6; }
   25330     curl_cv_getnameinfo="no"
   25331 
   25332 fi
   25333 rm -f core conftest.err conftest.$ac_objext \
   25334     conftest$ac_exeext conftest.$ac_ext
   25335   #
   25336   if test "$curl_cv_getnameinfo" != "yes"; then
   25337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
   25338 $as_echo_n "checking deeper for getnameinfo... " >&6; }
   25339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25340 /* end confdefs.h.  */
   25341 
   25342 
   25343 
   25344 int main (void)
   25345 {
   25346 
   25347         getnameinfo();
   25348 
   25349  ;
   25350  return 0;
   25351 }
   25352 
   25353 _ACEOF
   25354 if ac_fn_c_try_link "$LINENO"; then :
   25355 
   25356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25357 $as_echo "yes" >&6; }
   25358       curl_cv_getnameinfo="yes"
   25359 
   25360 else
   25361 
   25362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
   25363 $as_echo "but still no" >&6; }
   25364       curl_cv_getnameinfo="no"
   25365 
   25366 fi
   25367 rm -f core conftest.err conftest.$ac_objext \
   25368     conftest$ac_exeext conftest.$ac_ext
   25369   fi
   25370   #
   25371   if test "$curl_cv_getnameinfo" != "yes"; then
   25372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
   25373 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
   25374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25375 /* end confdefs.h.  */
   25376 
   25377 
   25378 #undef inline
   25379 #ifdef HAVE_WINDOWS_H
   25380 #ifndef WIN32_LEAN_AND_MEAN
   25381 #define WIN32_LEAN_AND_MEAN
   25382 #endif
   25383 #include <windows.h>
   25384 #ifdef HAVE_WINSOCK2_H
   25385 #include <winsock2.h>
   25386 #ifdef HAVE_WS2TCPIP_H
   25387 #include <ws2tcpip.h>
   25388 #endif
   25389 #endif
   25390 #else
   25391 #ifdef HAVE_SYS_TYPES_H
   25392 #include <sys/types.h>
   25393 #endif
   25394 #ifdef HAVE_SYS_SOCKET_H
   25395 #include <sys/socket.h>
   25396 #endif
   25397 #ifdef HAVE_NETDB_H
   25398 #include <netdb.h>
   25399 #endif
   25400 #endif
   25401 
   25402 int main (void)
   25403 {
   25404 
   25405         getnameinfo(0, 0, 0, 0, 0, 0, 0);
   25406 
   25407  ;
   25408  return 0;
   25409 }
   25410 
   25411 _ACEOF
   25412 if ac_fn_c_try_link "$LINENO"; then :
   25413 
   25414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25415 $as_echo "yes" >&6; }
   25416       curl_cv_getnameinfo="yes"
   25417 
   25418 else
   25419 
   25420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
   25421 $as_echo "but still no" >&6; }
   25422       curl_cv_getnameinfo="no"
   25423 
   25424 fi
   25425 rm -f core conftest.err conftest.$ac_objext \
   25426     conftest$ac_exeext conftest.$ac_ext
   25427   fi
   25428   #
   25429   if test "$curl_cv_getnameinfo" = "yes"; then
   25430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
   25431 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
   25432 if ${curl_cv_func_getnameinfo_args+:} false; then :
   25433   $as_echo_n "(cached) " >&6
   25434 else
   25435 
   25436       curl_cv_func_getnameinfo_args="unknown"
   25437       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
   25438         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
   25439           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
   25440             for gni_arg7 in 'int' 'unsigned int'; do
   25441               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
   25442                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25443 /* end confdefs.h.  */
   25444 
   25445 
   25446 #undef inline
   25447 #ifdef HAVE_WINDOWS_H
   25448 #ifndef WIN32_LEAN_AND_MEAN
   25449 #define WIN32_LEAN_AND_MEAN
   25450 #endif
   25451 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
   25452 #undef _WIN32_WINNT
   25453 #define _WIN32_WINNT 0x0501
   25454 #endif
   25455 #include <windows.h>
   25456 #ifdef HAVE_WINSOCK2_H
   25457 #include <winsock2.h>
   25458 #ifdef HAVE_WS2TCPIP_H
   25459 #include <ws2tcpip.h>
   25460 #endif
   25461 #endif
   25462 #define GNICALLCONV WSAAPI
   25463 #else
   25464 #ifdef HAVE_SYS_TYPES_H
   25465 #include <sys/types.h>
   25466 #endif
   25467 #ifdef HAVE_SYS_SOCKET_H
   25468 #include <sys/socket.h>
   25469 #endif
   25470 #ifdef HAVE_NETDB_H
   25471 #include <netdb.h>
   25472 #endif
   25473 #define GNICALLCONV
   25474 #endif
   25475                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
   25476                                            char *, $gni_arg46,
   25477                                            char *, $gni_arg46,
   25478                                            $gni_arg7);
   25479 
   25480 int main (void)
   25481 {
   25482 
   25483                     $gni_arg2 salen=0;
   25484                     $gni_arg46 hostlen=0;
   25485                     $gni_arg46 servlen=0;
   25486                     $gni_arg7 flags=0;
   25487                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
   25488 
   25489  ;
   25490  return 0;
   25491 }
   25492 
   25493 _ACEOF
   25494 if ac_fn_c_try_compile "$LINENO"; then :
   25495 
   25496                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
   25497 
   25498 fi
   25499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25500               fi
   25501             done
   25502           done
   25503         done
   25504       done
   25505 
   25506 fi
   25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
   25508 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
   25509     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
   25510       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
   25511 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
   25512       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
   25513 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
   25514     else
   25515       gni_prev_IFS=$IFS; IFS=','
   25516       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
   25517       IFS=$gni_prev_IFS
   25518       shift
   25519       #
   25520       gni_qual_type_arg1=$1
   25521       #
   25522 
   25523 cat >>confdefs.h <<_ACEOF
   25524 #define GETNAMEINFO_TYPE_ARG2 $2
   25525 _ACEOF
   25526 
   25527 
   25528 cat >>confdefs.h <<_ACEOF
   25529 #define GETNAMEINFO_TYPE_ARG46 $3
   25530 _ACEOF
   25531 
   25532 
   25533 cat >>confdefs.h <<_ACEOF
   25534 #define GETNAMEINFO_TYPE_ARG7 $4
   25535 _ACEOF
   25536 
   25537       #
   25538       prev_sh_opts=$-
   25539       #
   25540       case $prev_sh_opts in
   25541         *f*)
   25542           ;;
   25543         *)
   25544           set -f
   25545           ;;
   25546       esac
   25547       #
   25548       case "$gni_qual_type_arg1" in
   25549         const*)
   25550           gni_qual_arg1=const
   25551           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
   25552         ;;
   25553         *)
   25554           gni_qual_arg1=
   25555           gni_type_arg1=$gni_qual_type_arg1
   25556         ;;
   25557       esac
   25558       #
   25559 
   25560 cat >>confdefs.h <<_ACEOF
   25561 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
   25562 _ACEOF
   25563 
   25564 
   25565 cat >>confdefs.h <<_ACEOF
   25566 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
   25567 _ACEOF
   25568 
   25569       #
   25570       case $prev_sh_opts in
   25571         *f*)
   25572           ;;
   25573         *)
   25574           set +f
   25575           ;;
   25576       esac
   25577       #
   25578 
   25579 cat >>confdefs.h <<_ACEOF
   25580 #define HAVE_GETNAMEINFO 1
   25581 _ACEOF
   25582 
   25583       ac_cv_func_getnameinfo="yes"
   25584     fi
   25585   fi
   25586 
   25587 
   25588 
   25589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   25590 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   25591 if ${ac_cv_c_bigendian+:} false; then :
   25592   $as_echo_n "(cached) " >&6
   25593 else
   25594   ac_cv_c_bigendian=unknown
   25595     # See if we're dealing with a universal compiler.
   25596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25597 /* end confdefs.h.  */
   25598 #ifndef __APPLE_CC__
   25599 	       not a universal capable compiler
   25600 	     #endif
   25601 	     typedef int dummy;
   25602 
   25603 _ACEOF
   25604 if ac_fn_c_try_compile "$LINENO"; then :
   25605 
   25606 	# Check for potential -arch flags.  It is not universal unless
   25607 	# there are at least two -arch flags with different values.
   25608 	ac_arch=
   25609 	ac_prev=
   25610 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   25611 	 if test -n "$ac_prev"; then
   25612 	   case $ac_word in
   25613 	     i?86 | x86_64 | ppc | ppc64)
   25614 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   25615 		 ac_arch=$ac_word
   25616 	       else
   25617 		 ac_cv_c_bigendian=universal
   25618 		 break
   25619 	       fi
   25620 	       ;;
   25621 	   esac
   25622 	   ac_prev=
   25623 	 elif test "x$ac_word" = "x-arch"; then
   25624 	   ac_prev=arch
   25625 	 fi
   25626        done
   25627 fi
   25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25629     if test $ac_cv_c_bigendian = unknown; then
   25630       # See if sys/param.h defines the BYTE_ORDER macro.
   25631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25632 /* end confdefs.h.  */
   25633 #include <sys/types.h>
   25634 	     #include <sys/param.h>
   25635 
   25636 int main (void)
   25637 {
   25638 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   25639 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   25640 		     && LITTLE_ENDIAN)
   25641 	      bogus endian macros
   25642 	     #endif
   25643 
   25644  ;
   25645  return 0;
   25646 }
   25647 _ACEOF
   25648 if ac_fn_c_try_compile "$LINENO"; then :
   25649   # It does; now see whether it defined to BIG_ENDIAN or not.
   25650 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25651 /* end confdefs.h.  */
   25652 #include <sys/types.h>
   25653 		#include <sys/param.h>
   25654 
   25655 int main (void)
   25656 {
   25657 #if BYTE_ORDER != BIG_ENDIAN
   25658 		 not big endian
   25659 		#endif
   25660 
   25661  ;
   25662  return 0;
   25663 }
   25664 _ACEOF
   25665 if ac_fn_c_try_compile "$LINENO"; then :
   25666   ac_cv_c_bigendian=yes
   25667 else
   25668   ac_cv_c_bigendian=no
   25669 fi
   25670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25671 fi
   25672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25673     fi
   25674     if test $ac_cv_c_bigendian = unknown; then
   25675       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   25676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25677 /* end confdefs.h.  */
   25678 #include <limits.h>
   25679 
   25680 int main (void)
   25681 {
   25682 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   25683 	      bogus endian macros
   25684 	     #endif
   25685 
   25686  ;
   25687  return 0;
   25688 }
   25689 _ACEOF
   25690 if ac_fn_c_try_compile "$LINENO"; then :
   25691   # It does; now see whether it defined to _BIG_ENDIAN or not.
   25692 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25693 /* end confdefs.h.  */
   25694 #include <limits.h>
   25695 
   25696 int main (void)
   25697 {
   25698 #ifndef _BIG_ENDIAN
   25699 		 not big endian
   25700 		#endif
   25701 
   25702  ;
   25703  return 0;
   25704 }
   25705 _ACEOF
   25706 if ac_fn_c_try_compile "$LINENO"; then :
   25707   ac_cv_c_bigendian=yes
   25708 else
   25709   ac_cv_c_bigendian=no
   25710 fi
   25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25712 fi
   25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25714     fi
   25715     if test $ac_cv_c_bigendian = unknown; then
   25716       # Compile a test program.
   25717       if test "$cross_compiling" = yes; then :
   25718   # Try to guess by grepping values from an object file.
   25719 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25720 /* end confdefs.h.  */
   25721 short int ascii_mm[] =
   25722 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   25723 		short int ascii_ii[] =
   25724 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   25725 		int use_ascii (int i) {
   25726 		  return ascii_mm[i] + ascii_ii[i];
   25727 		}
   25728 		short int ebcdic_ii[] =
   25729 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   25730 		short int ebcdic_mm[] =
   25731 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   25732 		int use_ebcdic (int i) {
   25733 		  return ebcdic_mm[i] + ebcdic_ii[i];
   25734 		}
   25735 		extern int foo;
   25736 
   25737 int main (void)
   25738 {
   25739 return use_ascii (foo) == use_ebcdic (foo);
   25740  ;
   25741  return 0;
   25742 }
   25743 _ACEOF
   25744 if ac_fn_c_try_compile "$LINENO"; then :
   25745   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   25746 	      ac_cv_c_bigendian=yes
   25747 	    fi
   25748 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   25749 	      if test "$ac_cv_c_bigendian" = unknown; then
   25750 		ac_cv_c_bigendian=no
   25751 	      else
   25752 		# finding both strings is unlikely to happen, but who knows?
   25753 		ac_cv_c_bigendian=unknown
   25754 	      fi
   25755 	    fi
   25756 fi
   25757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25758 else
   25759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25760 /* end confdefs.h.  */
   25761 $ac_includes_default
   25762 int main (void)
   25763 {
   25764 
   25765 	     /* Are we little or big endian?  From Harbison&Steele.  */
   25766 	     union
   25767 	     {
   25768 	       long int l;
   25769 	       char c[sizeof (long int)];
   25770 	     } u;
   25771 	     u.l = 1;
   25772 	     return u.c[sizeof (long int) - 1] == 1;
   25773 
   25774  ;
   25775  return 0;
   25776 }
   25777 _ACEOF
   25778 if ac_fn_c_try_run "$LINENO"; then :
   25779   ac_cv_c_bigendian=no
   25780 else
   25781   ac_cv_c_bigendian=yes
   25782 fi
   25783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25784   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25785 fi
   25786 
   25787     fi
   25788 fi
   25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   25790 $as_echo "$ac_cv_c_bigendian" >&6; }
   25791  case $ac_cv_c_bigendian in #(
   25792    yes)
   25793 
   25794 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
   25795 ;; #(
   25796    no)
   25797       ;; #(
   25798    universal)
   25799 
   25800 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   25801 
   25802      ;; #(
   25803    *)
   25804      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
   25805 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
   25806  ;;
   25807  esac
   25808 
   25809 
   25810 
   25811 # Check whether --with-random was given.
   25812 if test "${with_random+set}" = set; then :
   25813   withval=$with_random;  RANDOM_FILE="$withval"
   25814 else
   25815 
   25816                                 if test "$cross_compiling" = "no"; then
   25817           as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
   25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
   25819 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
   25820 if eval \${$as_ac_File+:} false; then :
   25821   $as_echo_n "(cached) " >&6
   25822 else
   25823   test "$cross_compiling" = yes &&
   25824   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   25825 if test -r ""/dev/urandom""; then
   25826   eval "$as_ac_File=yes"
   25827 else
   25828   eval "$as_ac_File=no"
   25829 fi
   25830 fi
   25831 eval ac_res=\$$as_ac_File
   25832 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   25833 $as_echo "$ac_res" >&6; }
   25834 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
   25835    RANDOM_FILE="/dev/urandom"
   25836 fi
   25837 
   25838         else
   25839           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
   25840 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
   25841         fi
   25842 
   25843 
   25844 
   25845 fi
   25846 
   25847 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
   25848 
   25849 
   25850 cat >>confdefs.h <<_ACEOF
   25851 #define RANDOM_FILE "$RANDOM_FILE"
   25852 _ACEOF
   25853 
   25854 fi
   25855 
   25856 
   25857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
   25858 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
   25859   OPT_NONBLOCKING="default"
   25860   # Check whether --enable-nonblocking was given.
   25861 if test "${enable_nonblocking+set}" = set; then :
   25862   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
   25863 fi
   25864 
   25865   case "$OPT_NONBLOCKING" in
   25866     no)
   25867             want_nonblocking="no"
   25868       ;;
   25869     default)
   25870             want_nonblocking="yes"
   25871       ;;
   25872     *)
   25873             want_nonblocking="yes"
   25874       ;;
   25875   esac
   25876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
   25877 $as_echo "$want_nonblocking" >&6; }
   25878 
   25879 
   25880               #
   25881   tst_method="unknown"
   25882   if test "$want_nonblocking" = "yes"; then
   25883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
   25884 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
   25885     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
   25886       tst_method="fcntl O_NONBLOCK"
   25887     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
   25888       tst_method="ioctl FIONBIO"
   25889     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
   25890       tst_method="ioctlsocket FIONBIO"
   25891     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
   25892       tst_method="IoctlSocket FIONBIO"
   25893     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
   25894       tst_method="setsockopt SO_NONBLOCK"
   25895     fi
   25896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
   25897 $as_echo "$tst_method" >&6; }
   25898     if test "$tst_method" = "unknown"; then
   25899       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
   25900 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
   25901     fi
   25902   fi
   25903   if test "$tst_method" = "unknown"; then
   25904 
   25905 cat >>confdefs.h <<_ACEOF
   25906 #define USE_BLOCKING_SOCKETS 1
   25907 _ACEOF
   25908 
   25909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
   25910 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
   25911   fi
   25912 
   25913 
   25914 
   25915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
   25916 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
   25917   if test x"$ac_cv_native_windows" != "xyes" &&
   25918     test "$want_symbol_hiding" = "yes" &&
   25919     test "$supports_symbol_hiding" = "yes"; then
   25920     CFLAGS="$CFLAGS $symbol_hiding_CFLAGS"
   25921 
   25922 cat >>confdefs.h <<_ACEOF
   25923 #define CARES_SYMBOL_HIDING 1
   25924 _ACEOF
   25925 
   25926 
   25927 cat >>confdefs.h <<_ACEOF
   25928 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
   25929 _ACEOF
   25930 
   25931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25932 $as_echo "yes" >&6; }
   25933   else
   25934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25935 $as_echo "no" >&6; }
   25936   fi
   25937 
   25938 
   25939 CARES_PRIVATE_LIBS="$LIBS"
   25940 
   25941 
   25942 CARES_CFLAG_EXTRAS=""
   25943 if test X"$want_werror" = Xyes; then
   25944   CARES_CFLAG_EXTRAS="-Werror"
   25945 fi
   25946 
   25947 
   25948 
   25949 squeeze CFLAGS
   25950 squeeze CPPFLAGS
   25951 squeeze DEFS
   25952 squeeze LDFLAGS
   25953 squeeze LIBS
   25954 
   25955 squeeze CARES_PRIVATE_LIBS
   25956 
   25957 ac_config_files="$ac_config_files Makefile libcares.pc"
   25958 
   25959 cat >confcache <<\_ACEOF
   25960 # This file is a shell script that caches the results of configure
   25961 # tests run on this system so they can be shared between configure
   25962 # scripts and configure runs, see configure's option --config-cache.
   25963 # It is not useful on other systems.  If it contains results you don't
   25964 # want to keep, you may remove or edit it.
   25965 #
   25966 # config.status only pays attention to the cache file if you give it
   25967 # the --recheck option to rerun configure.
   25968 #
   25969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   25970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   25971 # following values.
   25972 
   25973 _ACEOF
   25974 
   25975 # The following way of writing the cache mishandles newlines in values,
   25976 # but we know of no workaround that is simple, portable, and efficient.
   25977 # So, we kill variables containing newlines.
   25978 # Ultrix sh set writes to stderr and can't be redirected directly,
   25979 # and sets the high bit in the cache file unless we assign to the vars.
   25980 (
   25981   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   25982     eval ac_val=\$$ac_var
   25983     case $ac_val in #(
   25984     *${as_nl}*)
   25985       case $ac_var in #(
   25986       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   25987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   25988       esac
   25989       case $ac_var in #(
   25990       _ | IFS | as_nl) ;; #(
   25991       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   25992       *) { eval $ac_var=; unset $ac_var;} ;;
   25993       esac ;;
   25994     esac
   25995   done
   25996 
   25997   (set) 2>&1 |
   25998     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   25999     *${as_nl}ac_space=\ *)
   26000       # `set' does not quote correctly, so add quotes: double-quote
   26001       # substitution turns \\\\ into \\, and sed turns \\ into \.
   26002       sed -n \
   26003 	"s/'/'\\\\''/g;
   26004 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   26005       ;; #(
   26006     *)
   26007       # `set' quotes correctly as required by POSIX, so do not add quotes.
   26008       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   26009       ;;
   26010     esac |
   26011     sort
   26012 ) |
   26013   sed '
   26014      /^ac_cv_env_/b end
   26015      t clear
   26016      :clear
   26017      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   26018      t end
   26019      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   26020      :end' >>confcache
   26021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   26022   if test -w "$cache_file"; then
   26023     if test "x$cache_file" != "x/dev/null"; then
   26024       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   26025 $as_echo "$as_me: updating cache $cache_file" >&6;}
   26026       if test ! -f "$cache_file" || test -h "$cache_file"; then
   26027 	cat confcache >"$cache_file"
   26028       else
   26029         case $cache_file in #(
   26030         */* | ?:*)
   26031 	  mv -f confcache "$cache_file"$$ &&
   26032 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   26033         *)
   26034 	  mv -f confcache "$cache_file" ;;
   26035 	esac
   26036       fi
   26037     fi
   26038   else
   26039     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   26040 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   26041   fi
   26042 fi
   26043 rm -f confcache
   26044 
   26045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   26046 # Let make expand exec_prefix.
   26047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   26048 
   26049 DEFS=-DHAVE_CONFIG_H
   26050 
   26051 ac_libobjs=
   26052 ac_ltlibobjs=
   26053 U=
   26054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   26055   # 1. Remove the extension, and $U if already installed.
   26056   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   26057   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   26058   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   26059   #    will be set to the directory where LIBOBJS objects are built.
   26060   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   26061   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   26062 done
   26063 LIBOBJS=$ac_libobjs
   26064 
   26065 LTLIBOBJS=$ac_ltlibobjs
   26066 
   26067 
   26068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   26069   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   26070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26071 fi
   26072 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   26073   as_fn_error $? "conditional \"AMDEP\" was never defined.
   26074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26075 fi
   26076 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   26077   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   26078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26079 fi
   26080 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
   26081   as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
   26082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26083 fi
   26084 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
   26085   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
   26086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26087 fi
   26088 
   26089 
   26090 : "${CONFIG_STATUS=./config.status}"
   26091 ac_write_fail=0
   26092 ac_clean_files_save=$ac_clean_files
   26093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   26094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   26095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   26096 as_write_fail=0
   26097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   26098 #! $SHELL
   26099 # Generated by $as_me.
   26100 # Run this file to recreate the current configuration.
   26101 # Compiler output produced by configure, useful for debugging
   26102 # configure, is in config.log if it exists.
   26103 
   26104 debug=false
   26105 ac_cs_recheck=false
   26106 ac_cs_silent=false
   26107 
   26108 SHELL=\${CONFIG_SHELL-$SHELL}
   26109 export SHELL
   26110 _ASEOF
   26111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   26112 ## -------------------- ##
   26113 ## M4sh Initialization. ##
   26114 ## -------------------- ##
   26115 
   26116 # Be more Bourne compatible
   26117 DUALCASE=1; export DUALCASE # for MKS sh
   26118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   26119   emulate sh
   26120   NULLCMD=:
   26121   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   26122   # is contrary to our usage.  Disable this feature.
   26123   alias -g '${1+"$@"}'='"$@"'
   26124   setopt NO_GLOB_SUBST
   26125 else
   26126   case `(set -o) 2>/dev/null` in #(
   26127   *posix*) :
   26128     set -o posix ;; #(
   26129   *) :
   26130      ;;
   26131 esac
   26132 fi
   26133 
   26134 
   26135 as_nl='
   26136 '
   26137 export as_nl
   26138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   26139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   26140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   26141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   26142 # Prefer a ksh shell builtin over an external printf program on Solaris,
   26143 # but without wasting forks for bash or zsh.
   26144 if test -z "$BASH_VERSION$ZSH_VERSION" \
   26145     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   26146   as_echo='print -r --'
   26147   as_echo_n='print -rn --'
   26148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   26149   as_echo='printf %s\n'
   26150   as_echo_n='printf %s'
   26151 else
   26152   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   26153     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   26154     as_echo_n='/usr/ucb/echo -n'
   26155   else
   26156     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   26157     as_echo_n_body='eval
   26158       arg=$1;
   26159       case $arg in #(
   26160       *"$as_nl"*)
   26161 	expr "X$arg" : "X\\(.*\\)$as_nl";
   26162 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   26163       esac;
   26164       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   26165     '
   26166     export as_echo_n_body
   26167     as_echo_n='sh -c $as_echo_n_body as_echo'
   26168   fi
   26169   export as_echo_body
   26170   as_echo='sh -c $as_echo_body as_echo'
   26171 fi
   26172 
   26173 
   26174 
   26175 # IFS
   26176 # We need space, tab and new line, in precisely that order.  Quoting is
   26177 # there to prevent editors from complaining about space-tab.
   26178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   26179 # splitting by setting IFS to empty value.)
   26180 IFS=" ""	$as_nl"
   26181 
   26182 # Find who we are.  Look in the path if we contain no directory separator.
   26183 as_myself=
   26184 case $0 in #((
   26185   *[\\/]* ) as_myself=$0 ;;
   26186   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   26187 for as_dir in $PATH
   26188 do
   26189   IFS=$as_save_IFS
   26190   test -z "$as_dir" && as_dir=.
   26191     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   26192   done
   26193 IFS=$as_save_IFS
   26194 
   26195      ;;
   26196 esac
   26197 # We did not find ourselves, most probably we were run as `sh COMMAND'
   26198 # in which case we are not to be found in the path.
   26199 if test "x$as_myself" = x; then
   26200   as_myself=$0
   26201 fi
   26202 if test ! -f "$as_myself"; then
   26203   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   26204   exit 1
   26205 fi
   26206 
   26207 # Unset variables that we do not need and which cause bugs (e.g. in
   26208 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   26209 # suppresses any "Segmentation fault" message there.  '((' could
   26210 # trigger a bug in pdksh 5.2.14.
   26211 for as_var in BASH_ENV ENV MAIL MAILPATH
   26212 do eval test x\${$as_var+set} = xset \
   26213   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   26214 done
   26215 PS1='$ '
   26216 PS2='> '
   26217 PS4='+ '
   26218 
   26219 # NLS nuisances.
   26220 LC_ALL=C
   26221 export LC_ALL
   26222 LANGUAGE=C
   26223 export LANGUAGE
   26224 
   26225 # CDPATH.
   26226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   26227 
   26228 
   26229 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   26230 # ----------------------------------------
   26231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   26232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   26233 # script with STATUS, using 1 if that was 0.
   26234 as_fn_error ()
   26235 {
   26236   as_status=$1; test $as_status -eq 0 && as_status=1
   26237   if test "$4"; then
   26238     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   26239     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   26240   fi
   26241   $as_echo "$as_me: error: $2" >&2
   26242   as_fn_exit $as_status
   26243 } # as_fn_error
   26244 
   26245 
   26246 # as_fn_set_status STATUS
   26247 # -----------------------
   26248 # Set $? to STATUS, without forking.
   26249 as_fn_set_status ()
   26250 {
   26251   return $1
   26252 } # as_fn_set_status
   26253 
   26254 # as_fn_exit STATUS
   26255 # -----------------
   26256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   26257 as_fn_exit ()
   26258 {
   26259   set +e
   26260   as_fn_set_status $1
   26261   exit $1
   26262 } # as_fn_exit
   26263 
   26264 # as_fn_unset VAR
   26265 # ---------------
   26266 # Portably unset VAR.
   26267 as_fn_unset ()
   26268 {
   26269   { eval $1=; unset $1;}
   26270 }
   26271 as_unset=as_fn_unset
   26272 # as_fn_append VAR VALUE
   26273 # ----------------------
   26274 # Append the text in VALUE to the end of the definition contained in VAR. Take
   26275 # advantage of any shell optimizations that allow amortized linear growth over
   26276 # repeated appends, instead of the typical quadratic growth present in naive
   26277 # implementations.
   26278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   26279   eval 'as_fn_append ()
   26280   {
   26281     eval $1+=\$2
   26282   }'
   26283 else
   26284   as_fn_append ()
   26285   {
   26286     eval $1=\$$1\$2
   26287   }
   26288 fi # as_fn_append
   26289 
   26290 # as_fn_arith ARG...
   26291 # ------------------
   26292 # Perform arithmetic evaluation on the ARGs, and store the result in the
   26293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   26294 # must be portable across $(()) and expr.
   26295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   26296   eval 'as_fn_arith ()
   26297   {
   26298     as_val=$(( $* ))
   26299   }'
   26300 else
   26301   as_fn_arith ()
   26302   {
   26303     as_val=`expr "$@" || test $? -eq 1`
   26304   }
   26305 fi # as_fn_arith
   26306 
   26307 
   26308 if expr a : '\(a\)' >/dev/null 2>&1 &&
   26309    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   26310   as_expr=expr
   26311 else
   26312   as_expr=false
   26313 fi
   26314 
   26315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   26316   as_basename=basename
   26317 else
   26318   as_basename=false
   26319 fi
   26320 
   26321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   26322   as_dirname=dirname
   26323 else
   26324   as_dirname=false
   26325 fi
   26326 
   26327 as_me=`$as_basename -- "$0" ||
   26328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   26329 	 X"$0" : 'X\(//\)$' \| \
   26330 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   26331 $as_echo X/"$0" |
   26332     sed '/^.*\/\([^/][^/]*\)\/*$/{
   26333 	    s//\1/
   26334 	    q
   26335 	  }
   26336 	  /^X\/\(\/\/\)$/{
   26337 	    s//\1/
   26338 	    q
   26339 	  }
   26340 	  /^X\/\(\/\).*/{
   26341 	    s//\1/
   26342 	    q
   26343 	  }
   26344 	  s/.*/./; q'`
   26345 
   26346 # Avoid depending upon Character Ranges.
   26347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   26348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   26349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   26350 as_cr_digits='0123456789'
   26351 as_cr_alnum=$as_cr_Letters$as_cr_digits
   26352 
   26353 ECHO_C= ECHO_N= ECHO_T=
   26354 case `echo -n x` in #(((((
   26355 -n*)
   26356   case `echo 'xy\c'` in
   26357   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   26358   xy)  ECHO_C='\c';;
   26359   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   26360        ECHO_T='	';;
   26361   esac;;
   26362 *)
   26363   ECHO_N='-n';;
   26364 esac
   26365 
   26366 rm -f conf$$ conf$$.exe conf$$.file
   26367 if test -d conf$$.dir; then
   26368   rm -f conf$$.dir/conf$$.file
   26369 else
   26370   rm -f conf$$.dir
   26371   mkdir conf$$.dir 2>/dev/null
   26372 fi
   26373 if (echo >conf$$.file) 2>/dev/null; then
   26374   if ln -s conf$$.file conf$$ 2>/dev/null; then
   26375     as_ln_s='ln -s'
   26376     # ... but there are two gotchas:
   26377     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   26378     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   26379     # In both cases, we have to default to `cp -p'.
   26380     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   26381       as_ln_s='cp -p'
   26382   elif ln conf$$.file conf$$ 2>/dev/null; then
   26383     as_ln_s=ln
   26384   else
   26385     as_ln_s='cp -p'
   26386   fi
   26387 else
   26388   as_ln_s='cp -p'
   26389 fi
   26390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   26391 rmdir conf$$.dir 2>/dev/null
   26392 
   26393 
   26394 # as_fn_mkdir_p
   26395 # -------------
   26396 # Create "$as_dir" as a directory, including parents if necessary.
   26397 as_fn_mkdir_p ()
   26398 {
   26399 
   26400   case $as_dir in #(
   26401   -*) as_dir=./$as_dir;;
   26402   esac
   26403   test -d "$as_dir" || eval $as_mkdir_p || {
   26404     as_dirs=
   26405     while :; do
   26406       case $as_dir in #(
   26407       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   26408       *) as_qdir=$as_dir;;
   26409       esac
   26410       as_dirs="'$as_qdir' $as_dirs"
   26411       as_dir=`$as_dirname -- "$as_dir" ||
   26412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   26413 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   26414 	 X"$as_dir" : 'X\(//\)$' \| \
   26415 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   26416 $as_echo X"$as_dir" |
   26417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   26418 	    s//\1/
   26419 	    q
   26420 	  }
   26421 	  /^X\(\/\/\)[^/].*/{
   26422 	    s//\1/
   26423 	    q
   26424 	  }
   26425 	  /^X\(\/\/\)$/{
   26426 	    s//\1/
   26427 	    q
   26428 	  }
   26429 	  /^X\(\/\).*/{
   26430 	    s//\1/
   26431 	    q
   26432 	  }
   26433 	  s/.*/./; q'`
   26434       test -d "$as_dir" && break
   26435     done
   26436     test -z "$as_dirs" || eval "mkdir $as_dirs"
   26437   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   26438 
   26439 
   26440 } # as_fn_mkdir_p
   26441 if mkdir -p . 2>/dev/null; then
   26442   as_mkdir_p='mkdir -p "$as_dir"'
   26443 else
   26444   test -d ./-p && rmdir ./-p
   26445   as_mkdir_p=false
   26446 fi
   26447 
   26448 if test -x / >/dev/null 2>&1; then
   26449   as_test_x='test -x'
   26450 else
   26451   if ls -dL / >/dev/null 2>&1; then
   26452     as_ls_L_option=L
   26453   else
   26454     as_ls_L_option=
   26455   fi
   26456   as_test_x='
   26457     eval sh -c '\''
   26458       if test -d "$1"; then
   26459 	test -d "$1/.";
   26460       else
   26461 	case $1 in #(
   26462 	-*)set "./$1";;
   26463 	esac;
   26464 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   26465 	???[sx]*):;;*)false;;esac;fi
   26466     '\'' sh
   26467   '
   26468 fi
   26469 as_executable_p=$as_test_x
   26470 
   26471 # Sed expression to map a string onto a valid CPP name.
   26472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   26473 
   26474 # Sed expression to map a string onto a valid variable name.
   26475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   26476 
   26477 
   26478 exec 6>&1
   26479 ## ----------------------------------- ##
   26480 ## Main body of $CONFIG_STATUS script. ##
   26481 ## ----------------------------------- ##
   26482 _ASEOF
   26483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   26484 
   26485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26486 # Save the log message, to keep $0 and so on meaningful, and to
   26487 # report actual input values of CONFIG_FILES etc. instead of their
   26488 # values after options handling.
   26489 ac_log="
   26490 This file was extended by c-ares $as_me 1.7.5, which was
   26491 generated by GNU Autoconf 2.68.  Invocation command line was
   26492 
   26493   CONFIG_FILES    = $CONFIG_FILES
   26494   CONFIG_HEADERS  = $CONFIG_HEADERS
   26495   CONFIG_LINKS    = $CONFIG_LINKS
   26496   CONFIG_COMMANDS = $CONFIG_COMMANDS
   26497   $ $0 $@
   26498 
   26499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   26500 "
   26501 
   26502 _ACEOF
   26503 
   26504 case $ac_config_files in *"
   26505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   26506 esac
   26507 
   26508 case $ac_config_headers in *"
   26509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   26510 esac
   26511 
   26512 
   26513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26514 # Files that config.status was made for.
   26515 config_files="$ac_config_files"
   26516 config_headers="$ac_config_headers"
   26517 config_commands="$ac_config_commands"
   26518 
   26519 _ACEOF
   26520 
   26521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26522 ac_cs_usage="\
   26523 \`$as_me' instantiates files and other configuration actions
   26524 from templates according to the current configuration.  Unless the files
   26525 and actions are specified as TAGs, all are instantiated by default.
   26526 
   26527 Usage: $0 [OPTION]... [TAG]...
   26528 
   26529   -h, --help       print this help, then exit
   26530   -V, --version    print version number and configuration settings, then exit
   26531       --config     print configuration, then exit
   26532   -q, --quiet, --silent
   26533                    do not print progress messages
   26534   -d, --debug      don't remove temporary files
   26535       --recheck    update $as_me by reconfiguring in the same conditions
   26536       --file=FILE[:TEMPLATE]
   26537                    instantiate the configuration file FILE
   26538       --header=FILE[:TEMPLATE]
   26539                    instantiate the configuration header FILE
   26540 
   26541 Configuration files:
   26542 $config_files
   26543 
   26544 Configuration headers:
   26545 $config_headers
   26546 
   26547 Configuration commands:
   26548 $config_commands
   26549 
   26550 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
   26551 
   26552 _ACEOF
   26553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   26555 ac_cs_version="\\
   26556 c-ares config.status 1.7.5
   26557 configured by $0, generated by GNU Autoconf 2.68,
   26558   with options \\"\$ac_cs_config\\"
   26559 
   26560 Copyright (C) 2010 Free Software Foundation, Inc.
   26561 This config.status script is free software; the Free Software Foundation
   26562 gives unlimited permission to copy, distribute and modify it."
   26563 
   26564 ac_pwd='$ac_pwd'
   26565 srcdir='$srcdir'
   26566 INSTALL='$INSTALL'
   26567 AWK='$AWK'
   26568 test -n "\$AWK" || AWK=awk
   26569 _ACEOF
   26570 
   26571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26572 # The default lists apply if the user does not specify any file.
   26573 ac_need_defaults=:
   26574 while test $# != 0
   26575 do
   26576   case $1 in
   26577   --*=?*)
   26578     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   26579     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   26580     ac_shift=:
   26581     ;;
   26582   --*=)
   26583     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   26584     ac_optarg=
   26585     ac_shift=:
   26586     ;;
   26587   *)
   26588     ac_option=$1
   26589     ac_optarg=$2
   26590     ac_shift=shift
   26591     ;;
   26592   esac
   26593 
   26594   case $ac_option in
   26595   # Handling of the options.
   26596   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   26597     ac_cs_recheck=: ;;
   26598   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   26599     $as_echo "$ac_cs_version"; exit ;;
   26600   --config | --confi | --conf | --con | --co | --c )
   26601     $as_echo "$ac_cs_config"; exit ;;
   26602   --debug | --debu | --deb | --de | --d | -d )
   26603     debug=: ;;
   26604   --file | --fil | --fi | --f )
   26605     $ac_shift
   26606     case $ac_optarg in
   26607     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   26608     '') as_fn_error $? "missing file argument" ;;
   26609     esac
   26610     as_fn_append CONFIG_FILES " '$ac_optarg'"
   26611     ac_need_defaults=false;;
   26612   --header | --heade | --head | --hea )
   26613     $ac_shift
   26614     case $ac_optarg in
   26615     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   26616     esac
   26617     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   26618     ac_need_defaults=false;;
   26619   --he | --h)
   26620     # Conflict between --help and --header
   26621     as_fn_error $? "ambiguous option: \`$1'
   26622 Try \`$0 --help' for more information.";;
   26623   --help | --hel | -h )
   26624     $as_echo "$ac_cs_usage"; exit ;;
   26625   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   26626   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   26627     ac_cs_silent=: ;;
   26628 
   26629   # This is an error.
   26630   -*) as_fn_error $? "unrecognized option: \`$1'
   26631 Try \`$0 --help' for more information." ;;
   26632 
   26633   *) as_fn_append ac_config_targets " $1"
   26634      ac_need_defaults=false ;;
   26635 
   26636   esac
   26637   shift
   26638 done
   26639 
   26640 ac_configure_extra_args=
   26641 
   26642 if $ac_cs_silent; then
   26643   exec 6>/dev/null
   26644   ac_configure_extra_args="$ac_configure_extra_args --silent"
   26645 fi
   26646 
   26647 _ACEOF
   26648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26649 if \$ac_cs_recheck; then
   26650   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   26651   shift
   26652   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   26653   CONFIG_SHELL='$SHELL'
   26654   export CONFIG_SHELL
   26655   exec "\$@"
   26656 fi
   26657 
   26658 _ACEOF
   26659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26660 exec 5>>config.log
   26661 {
   26662   echo
   26663   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   26664 ## Running $as_me. ##
   26665 _ASBOX
   26666   $as_echo "$ac_log"
   26667 } >&5
   26668 
   26669 _ACEOF
   26670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26671 #
   26672 # INIT-COMMANDS
   26673 #
   26674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   26675 
   26676 
   26677 # The HP-UX ksh and POSIX shell print the target directory to stdout
   26678 # if CDPATH is set.
   26679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   26680 
   26681 sed_quote_subst='$sed_quote_subst'
   26682 double_quote_subst='$double_quote_subst'
   26683 delay_variable_subst='$delay_variable_subst'
   26684 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
   26685 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   26686 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   26687 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   26688 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   26689 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   26690 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   26691 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   26692 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   26693 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   26694 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   26695 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   26696 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   26697 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   26698 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   26699 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   26700 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   26701 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   26702 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   26703 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   26704 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   26705 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   26706 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   26707 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   26708 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   26709 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   26710 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   26711 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   26712 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   26713 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   26714 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   26715 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   26716 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   26717 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   26718 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   26719 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   26720 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   26721 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   26722 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   26723 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   26724 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   26725 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   26726 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   26727 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   26728 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   26729 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   26730 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   26731 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   26732 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   26733 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   26734 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   26735 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   26736 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   26737 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   26738 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   26739 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   26740 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
   26741 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   26742 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   26743 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   26744 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   26745 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   26746 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   26747 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   26748 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   26749 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   26750 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   26751 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   26752 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   26753 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   26754 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   26755 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   26756 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   26757 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   26758 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   26759 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   26760 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   26761 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   26762 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   26763 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   26764 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   26765 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   26766 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   26767 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   26768 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   26769 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   26770 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   26771 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   26772 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   26773 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   26774 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   26775 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
   26776 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   26777 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   26778 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   26779 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   26780 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   26781 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   26782 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   26783 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   26784 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   26785 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   26786 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   26787 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   26788 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   26789 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   26790 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   26791 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   26792 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   26793 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   26794 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   26795 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   26796 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   26797 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   26798 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   26799 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   26800 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   26801 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   26802 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   26803 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   26804 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   26805 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   26806 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   26807 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   26808 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
   26809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   26810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   26811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   26812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   26813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   26814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   26815 
   26816 LTCC='$LTCC'
   26817 LTCFLAGS='$LTCFLAGS'
   26818 compiler='$compiler_DEFAULT'
   26819 
   26820 # A function that is used when there is no print builtin or printf.
   26821 func_fallback_echo ()
   26822 {
   26823   eval 'cat <<_LTECHO_EOF
   26824 \$1
   26825 _LTECHO_EOF'
   26826 }
   26827 
   26828 # Quote evaled strings.
   26829 for var in AS \
   26830 DLLTOOL \
   26831 OBJDUMP \
   26832 SHELL \
   26833 ECHO \
   26834 SED \
   26835 GREP \
   26836 EGREP \
   26837 FGREP \
   26838 LD \
   26839 NM \
   26840 LN_S \
   26841 lt_SP2NL \
   26842 lt_NL2SP \
   26843 reload_flag \
   26844 deplibs_check_method \
   26845 file_magic_cmd \
   26846 file_magic_glob \
   26847 want_nocaseglob \
   26848 sharedlib_from_linklib_cmd \
   26849 AR \
   26850 AR_FLAGS \
   26851 archiver_list_spec \
   26852 STRIP \
   26853 RANLIB \
   26854 CC \
   26855 CFLAGS \
   26856 compiler \
   26857 lt_cv_sys_global_symbol_pipe \
   26858 lt_cv_sys_global_symbol_to_cdecl \
   26859 lt_cv_sys_global_symbol_to_c_name_address \
   26860 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   26861 nm_file_list_spec \
   26862 lt_prog_compiler_no_builtin_flag \
   26863 lt_prog_compiler_pic \
   26864 lt_prog_compiler_wl \
   26865 lt_prog_compiler_static \
   26866 lt_cv_prog_compiler_c_o \
   26867 need_locks \
   26868 MANIFEST_TOOL \
   26869 DSYMUTIL \
   26870 NMEDIT \
   26871 LIPO \
   26872 OTOOL \
   26873 OTOOL64 \
   26874 shrext_cmds \
   26875 export_dynamic_flag_spec \
   26876 whole_archive_flag_spec \
   26877 compiler_needs_object \
   26878 with_gnu_ld \
   26879 allow_undefined_flag \
   26880 no_undefined_flag \
   26881 hardcode_libdir_flag_spec \
   26882 hardcode_libdir_flag_spec_ld \
   26883 hardcode_libdir_separator \
   26884 exclude_expsyms \
   26885 include_expsyms \
   26886 file_list_spec \
   26887 variables_saved_for_relink \
   26888 libname_spec \
   26889 library_names_spec \
   26890 soname_spec \
   26891 install_override_mode \
   26892 finish_eval \
   26893 old_striplib \
   26894 striplib; do
   26895     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   26896     *[\\\\\\\`\\"\\\$]*)
   26897       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   26898       ;;
   26899     *)
   26900       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   26901       ;;
   26902     esac
   26903 done
   26904 
   26905 # Double-quote double-evaled strings.
   26906 for var in reload_cmds \
   26907 old_postinstall_cmds \
   26908 old_postuninstall_cmds \
   26909 old_archive_cmds \
   26910 extract_expsyms_cmds \
   26911 old_archive_from_new_cmds \
   26912 old_archive_from_expsyms_cmds \
   26913 archive_cmds \
   26914 archive_expsym_cmds \
   26915 module_cmds \
   26916 module_expsym_cmds \
   26917 export_symbols_cmds \
   26918 prelink_cmds \
   26919 postlink_cmds \
   26920 postinstall_cmds \
   26921 postuninstall_cmds \
   26922 finish_cmds \
   26923 sys_lib_search_path_spec \
   26924 sys_lib_dlsearch_path_spec; do
   26925     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   26926     *[\\\\\\\`\\"\\\$]*)
   26927       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   26928       ;;
   26929     *)
   26930       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   26931       ;;
   26932     esac
   26933 done
   26934 
   26935 ac_aux_dir='$ac_aux_dir'
   26936 xsi_shell='$xsi_shell'
   26937 lt_shell_append='$lt_shell_append'
   26938 
   26939 # See if we are running on zsh, and set the options which allow our
   26940 # commands through without removal of \ escapes INIT.
   26941 if test -n "\${ZSH_VERSION+set}" ; then
   26942    setopt NO_GLOB_SUBST
   26943 fi
   26944 
   26945 
   26946     PACKAGE='$PACKAGE'
   26947     VERSION='$VERSION'
   26948     TIMESTAMP='$TIMESTAMP'
   26949     RM='$RM'
   26950     ofile='$ofile'
   26951 
   26952 
   26953 
   26954 
   26955 _ACEOF
   26956 
   26957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26958 
   26959 # Handling of arguments.
   26960 for ac_config_target in $ac_config_targets
   26961 do
   26962   case $ac_config_target in
   26963     "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
   26964     "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
   26965     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   26966     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   26967     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   26968     "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
   26969 
   26970   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   26971   esac
   26972 done
   26973 
   26974 
   26975 # If the user did not use the arguments to specify the items to instantiate,
   26976 # then the envvar interface is used.  Set only those that are not.
   26977 # We use the long form for the default assignment because of an extremely
   26978 # bizarre bug on SunOS 4.1.3.
   26979 if $ac_need_defaults; then
   26980   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   26981   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   26982   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   26983 fi
   26984 
   26985 # Have a temporary directory for convenience.  Make it in the build tree
   26986 # simply because there is no reason against having it here, and in addition,
   26987 # creating and moving files from /tmp can sometimes cause problems.
   26988 # Hook for its removal unless debugging.
   26989 # Note that there is a small window in which the directory will not be cleaned:
   26990 # after its creation but before its name has been assigned to `$tmp'.
   26991 $debug ||
   26992 {
   26993   tmp= ac_tmp=
   26994   trap 'exit_status=$?
   26995   : "${ac_tmp:=$tmp}"
   26996   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   26997 ' 0
   26998   trap 'as_fn_exit 1' 1 2 13 15
   26999 }
   27000 # Create a (secure) tmp directory for tmp files.
   27001 
   27002 {
   27003   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   27004   test -d "$tmp"
   27005 }  ||
   27006 {
   27007   tmp=./conf$$-$RANDOM
   27008   (umask 077 && mkdir "$tmp")
   27009 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   27010 ac_tmp=$tmp
   27011 
   27012 # Set up the scripts for CONFIG_FILES section.
   27013 # No need to generate them if there are no CONFIG_FILES.
   27014 # This happens for instance with `./config.status config.h'.
   27015 if test -n "$CONFIG_FILES"; then
   27016 
   27017 
   27018 ac_cr=`echo X | tr X '\015'`
   27019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   27020 # But we know of no other shell where ac_cr would be empty at this
   27021 # point, so we can use a bashism as a fallback.
   27022 if test "x$ac_cr" = x; then
   27023   eval ac_cr=\$\'\\r\'
   27024 fi
   27025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   27026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   27027   ac_cs_awk_cr='\\r'
   27028 else
   27029   ac_cs_awk_cr=$ac_cr
   27030 fi
   27031 
   27032 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   27033 _ACEOF
   27034 
   27035 
   27036 {
   27037   echo "cat >conf$$subs.awk <<_ACEOF" &&
   27038   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   27039   echo "_ACEOF"
   27040 } >conf$$subs.sh ||
   27041   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   27043 ac_delim='%!_!# '
   27044 for ac_last_try in false false false false false :; do
   27045   . ./conf$$subs.sh ||
   27046     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27047 
   27048   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   27049   if test $ac_delim_n = $ac_delim_num; then
   27050     break
   27051   elif $ac_last_try; then
   27052     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27053   else
   27054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   27055   fi
   27056 done
   27057 rm -f conf$$subs.sh
   27058 
   27059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27060 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   27061 _ACEOF
   27062 sed -n '
   27063 h
   27064 s/^/S["/; s/!.*/"]=/
   27065 p
   27066 g
   27067 s/^[^!]*!//
   27068 :repl
   27069 t repl
   27070 s/'"$ac_delim"'$//
   27071 t delim
   27072 :nl
   27073 h
   27074 s/\(.\{148\}\)..*/\1/
   27075 t more1
   27076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   27077 p
   27078 n
   27079 b repl
   27080 :more1
   27081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   27082 p
   27083 g
   27084 s/.\{148\}//
   27085 t nl
   27086 :delim
   27087 h
   27088 s/\(.\{148\}\)..*/\1/
   27089 t more2
   27090 s/["\\]/\\&/g; s/^/"/; s/$/"/
   27091 p
   27092 b
   27093 :more2
   27094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   27095 p
   27096 g
   27097 s/.\{148\}//
   27098 t delim
   27099 ' <conf$$subs.awk | sed '
   27100 /^[^""]/{
   27101   N
   27102   s/\n//
   27103 }
   27104 ' >>$CONFIG_STATUS || ac_write_fail=1
   27105 rm -f conf$$subs.awk
   27106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27107 _ACAWK
   27108 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   27109   for (key in S) S_is_set[key] = 1
   27110   FS = ""
   27111 
   27112 }
   27113 {
   27114   line = $ 0
   27115   nfields = split(line, field, "@")
   27116   substed = 0
   27117   len = length(field[1])
   27118   for (i = 2; i < nfields; i++) {
   27119     key = field[i]
   27120     keylen = length(key)
   27121     if (S_is_set[key]) {
   27122       value = S[key]
   27123       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   27124       len += length(value) + length(field[++i])
   27125       substed = 1
   27126     } else
   27127       len += 1 + keylen
   27128   }
   27129 
   27130   print line
   27131 }
   27132 
   27133 _ACAWK
   27134 _ACEOF
   27135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   27137   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   27138 else
   27139   cat
   27140 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   27141   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   27142 _ACEOF
   27143 
   27144 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   27145 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   27146 # trailing colons and then remove the whole line if VPATH becomes empty
   27147 # (actually we leave an empty line to preserve line numbers).
   27148 if test "x$srcdir" = x.; then
   27149   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   27150 h
   27151 s///
   27152 s/^/:/
   27153 s/[	 ]*$/:/
   27154 s/:\$(srcdir):/:/g
   27155 s/:\${srcdir}:/:/g
   27156 s/:@srcdir@:/:/g
   27157 s/^:*//
   27158 s/:*$//
   27159 x
   27160 s/\(=[	 ]*\).*/\1/
   27161 G
   27162 s/\n//
   27163 s/^[^=]*=[	 ]*$//
   27164 }'
   27165 fi
   27166 
   27167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27168 fi # test -n "$CONFIG_FILES"
   27169 
   27170 # Set up the scripts for CONFIG_HEADERS section.
   27171 # No need to generate them if there are no CONFIG_HEADERS.
   27172 # This happens for instance with `./config.status Makefile'.
   27173 if test -n "$CONFIG_HEADERS"; then
   27174 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   27175 BEGIN {
   27176 _ACEOF
   27177 
   27178 # Transform confdefs.h into an awk script `defines.awk', embedded as
   27179 # here-document in config.status, that substitutes the proper values into
   27180 # config.h.in to produce config.h.
   27181 
   27182 # Create a delimiter string that does not exist in confdefs.h, to ease
   27183 # handling of long lines.
   27184 ac_delim='%!_!# '
   27185 for ac_last_try in false false :; do
   27186   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   27187   if test -z "$ac_tt"; then
   27188     break
   27189   elif $ac_last_try; then
   27190     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   27191   else
   27192     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   27193   fi
   27194 done
   27195 
   27196 # For the awk script, D is an array of macro values keyed by name,
   27197 # likewise P contains macro parameters if any.  Preserve backslash
   27198 # newline sequences.
   27199 
   27200 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   27201 sed -n '
   27202 s/.\{148\}/&'"$ac_delim"'/g
   27203 t rset
   27204 :rset
   27205 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   27206 t def
   27207 d
   27208 :def
   27209 s/\\$//
   27210 t bsnl
   27211 s/["\\]/\\&/g
   27212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   27213 D["\1"]=" \3"/p
   27214 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   27215 d
   27216 :bsnl
   27217 s/["\\]/\\&/g
   27218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   27219 D["\1"]=" \3\\\\\\n"\\/p
   27220 t cont
   27221 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   27222 t cont
   27223 d
   27224 :cont
   27225 n
   27226 s/.\{148\}/&'"$ac_delim"'/g
   27227 t clear
   27228 :clear
   27229 s/\\$//
   27230 t bsnlc
   27231 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   27232 d
   27233 :bsnlc
   27234 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   27235 b cont
   27236 ' <confdefs.h | sed '
   27237 s/'"$ac_delim"'/"\\\
   27238 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   27239 
   27240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27241   for (key in D) D_is_set[key] = 1
   27242   FS = ""
   27243 }
   27244 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   27245   line = \$ 0
   27246   split(line, arg, " ")
   27247   if (arg[1] == "#") {
   27248     defundef = arg[2]
   27249     mac1 = arg[3]
   27250   } else {
   27251     defundef = substr(arg[1], 2)
   27252     mac1 = arg[2]
   27253   }
   27254   split(mac1, mac2, "(") #)
   27255   macro = mac2[1]
   27256   prefix = substr(line, 1, index(line, defundef) - 1)
   27257   if (D_is_set[macro]) {
   27258     # Preserve the white space surrounding the "#".
   27259     print prefix "define", macro P[macro] D[macro]
   27260     next
   27261   } else {
   27262     # Replace #undef with comments.  This is necessary, for example,
   27263     # in the case of _POSIX_SOURCE, which is predefined and required
   27264     # on some systems where configure will not decide to define it.
   27265     if (defundef == "undef") {
   27266       print "/*", prefix defundef, macro, "*/"
   27267       next
   27268     }
   27269   }
   27270 }
   27271 { print }
   27272 _ACAWK
   27273 _ACEOF
   27274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27275   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   27276 fi # test -n "$CONFIG_HEADERS"
   27277 
   27278 
   27279 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   27280 shift
   27281 for ac_tag
   27282 do
   27283   case $ac_tag in
   27284   :[FHLC]) ac_mode=$ac_tag; continue;;
   27285   esac
   27286   case $ac_mode$ac_tag in
   27287   :[FHL]*:*);;
   27288   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   27289   :[FH]-) ac_tag=-:-;;
   27290   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   27291   esac
   27292   ac_save_IFS=$IFS
   27293   IFS=:
   27294   set x $ac_tag
   27295   IFS=$ac_save_IFS
   27296   shift
   27297   ac_file=$1
   27298   shift
   27299 
   27300   case $ac_mode in
   27301   :L) ac_source=$1;;
   27302   :[FH])
   27303     ac_file_inputs=
   27304     for ac_f
   27305     do
   27306       case $ac_f in
   27307       -) ac_f="$ac_tmp/stdin";;
   27308       *) # Look for the file first in the build tree, then in the source tree
   27309 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   27310 	 # because $ac_f cannot contain `:'.
   27311 	 test -f "$ac_f" ||
   27312 	   case $ac_f in
   27313 	   [\\/$]*) false;;
   27314 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   27315 	   esac ||
   27316 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   27317       esac
   27318       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   27319       as_fn_append ac_file_inputs " '$ac_f'"
   27320     done
   27321 
   27322     # Let's still pretend it is `configure' which instantiates (i.e., don't
   27323     # use $as_me), people would be surprised to read:
   27324     #    /* config.h.  Generated by config.status.  */
   27325     configure_input='Generated from '`
   27326 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   27327 	`' by configure.'
   27328     if test x"$ac_file" != x-; then
   27329       configure_input="$ac_file.  $configure_input"
   27330       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   27331 $as_echo "$as_me: creating $ac_file" >&6;}
   27332     fi
   27333     # Neutralize special characters interpreted by sed in replacement strings.
   27334     case $configure_input in #(
   27335     *\&* | *\|* | *\\* )
   27336        ac_sed_conf_input=`$as_echo "$configure_input" |
   27337        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   27338     *) ac_sed_conf_input=$configure_input;;
   27339     esac
   27340 
   27341     case $ac_tag in
   27342     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   27343       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   27344     esac
   27345     ;;
   27346   esac
   27347 
   27348   ac_dir=`$as_dirname -- "$ac_file" ||
   27349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27350 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   27351 	 X"$ac_file" : 'X\(//\)$' \| \
   27352 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   27353 $as_echo X"$ac_file" |
   27354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27355 	    s//\1/
   27356 	    q
   27357 	  }
   27358 	  /^X\(\/\/\)[^/].*/{
   27359 	    s//\1/
   27360 	    q
   27361 	  }
   27362 	  /^X\(\/\/\)$/{
   27363 	    s//\1/
   27364 	    q
   27365 	  }
   27366 	  /^X\(\/\).*/{
   27367 	    s//\1/
   27368 	    q
   27369 	  }
   27370 	  s/.*/./; q'`
   27371   as_dir="$ac_dir"; as_fn_mkdir_p
   27372   ac_builddir=.
   27373 
   27374 case "$ac_dir" in
   27375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   27376 *)
   27377   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   27378   # A ".." for each directory in $ac_dir_suffix.
   27379   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   27380   case $ac_top_builddir_sub in
   27381   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   27382   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   27383   esac ;;
   27384 esac
   27385 ac_abs_top_builddir=$ac_pwd
   27386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   27387 # for backward compatibility:
   27388 ac_top_builddir=$ac_top_build_prefix
   27389 
   27390 case $srcdir in
   27391   .)  # We are building in place.
   27392     ac_srcdir=.
   27393     ac_top_srcdir=$ac_top_builddir_sub
   27394     ac_abs_top_srcdir=$ac_pwd ;;
   27395   [\\/]* | ?:[\\/]* )  # Absolute name.
   27396     ac_srcdir=$srcdir$ac_dir_suffix;
   27397     ac_top_srcdir=$srcdir
   27398     ac_abs_top_srcdir=$srcdir ;;
   27399   *) # Relative name.
   27400     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   27401     ac_top_srcdir=$ac_top_build_prefix$srcdir
   27402     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   27403 esac
   27404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   27405 
   27406 
   27407   case $ac_mode in
   27408   :F)
   27409   #
   27410   # CONFIG_FILE
   27411   #
   27412 
   27413   case $INSTALL in
   27414   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   27415   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   27416   esac
   27417 _ACEOF
   27418 
   27419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27420 # If the template does not know about datarootdir, expand it.
   27421 # FIXME: This hack should be removed a few years after 2.60.
   27422 ac_datarootdir_hack=; ac_datarootdir_seen=
   27423 ac_sed_dataroot='
   27424 /datarootdir/ {
   27425   p
   27426   q
   27427 }
   27428 /@datadir@/p
   27429 /@docdir@/p
   27430 /@infodir@/p
   27431 /@localedir@/p
   27432 /@mandir@/p'
   27433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   27434 *datarootdir*) ac_datarootdir_seen=yes;;
   27435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   27436   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   27437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   27438 _ACEOF
   27439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27440   ac_datarootdir_hack='
   27441   s&@datadir@&$datadir&g
   27442   s&@docdir@&$docdir&g
   27443   s&@infodir@&$infodir&g
   27444   s&@localedir@&$localedir&g
   27445   s&@mandir@&$mandir&g
   27446   s&\\\${datarootdir}&$datarootdir&g' ;;
   27447 esac
   27448 _ACEOF
   27449 
   27450 # Neutralize VPATH when `$srcdir' = `.'.
   27451 # Shell code in configure.ac might set extrasub.
   27452 # FIXME: do we really want to maintain this feature?
   27453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27454 ac_sed_extra="$ac_vpsub
   27455 $extrasub
   27456 _ACEOF
   27457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27458 :t
   27459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   27460 s|@configure_input@|$ac_sed_conf_input|;t t
   27461 s&@top_builddir@&$ac_top_builddir_sub&;t t
   27462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   27463 s&@srcdir@&$ac_srcdir&;t t
   27464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   27465 s&@top_srcdir@&$ac_top_srcdir&;t t
   27466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   27467 s&@builddir@&$ac_builddir&;t t
   27468 s&@abs_builddir@&$ac_abs_builddir&;t t
   27469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   27470 s&@INSTALL@&$ac_INSTALL&;t t
   27471 $ac_datarootdir_hack
   27472 "
   27473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   27474   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27475 
   27476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   27477   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   27478   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   27479       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   27480   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   27481 which seems to be undefined.  Please make sure it is defined" >&5
   27482 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   27483 which seems to be undefined.  Please make sure it is defined" >&2;}
   27484 
   27485   rm -f "$ac_tmp/stdin"
   27486   case $ac_file in
   27487   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   27488   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   27489   esac \
   27490   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27491  ;;
   27492   :H)
   27493   #
   27494   # CONFIG_HEADER
   27495   #
   27496   if test x"$ac_file" != x-; then
   27497     {
   27498       $as_echo "/* $configure_input  */" \
   27499       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   27500     } >"$ac_tmp/config.h" \
   27501       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27502     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   27503       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   27504 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   27505     else
   27506       rm -f "$ac_file"
   27507       mv "$ac_tmp/config.h" "$ac_file" \
   27508 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27509     fi
   27510   else
   27511     $as_echo "/* $configure_input  */" \
   27512       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   27513       || as_fn_error $? "could not create -" "$LINENO" 5
   27514   fi
   27515 # Compute "$ac_file"'s index in $config_headers.
   27516 _am_stamp_count=1
   27517 for _am_header in $config_headers :; do
   27518   case $_am_header in
   27519     "$ac_file" | "$ac_file":* )
   27520       break ;;
   27521     * )
   27522       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   27523   esac
   27524 done
   27525 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
   27526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27527 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   27528 	 X"$ac_file" : 'X\(//\)$' \| \
   27529 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   27530 $as_echo X"$ac_file" |
   27531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27532 	    s//\1/
   27533 	    q
   27534 	  }
   27535 	  /^X\(\/\/\)[^/].*/{
   27536 	    s//\1/
   27537 	    q
   27538 	  }
   27539 	  /^X\(\/\/\)$/{
   27540 	    s//\1/
   27541 	    q
   27542 	  }
   27543 	  /^X\(\/\).*/{
   27544 	    s//\1/
   27545 	    q
   27546 	  }
   27547 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   27548  ;;
   27549 
   27550   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   27551 $as_echo "$as_me: executing $ac_file commands" >&6;}
   27552  ;;
   27553   esac
   27554 
   27555 
   27556   case $ac_file$ac_mode in
   27557     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
   27558   # Strip MF so we end up with the name of the file.
   27559   mf=`echo "$mf" | sed -e 's/:.*$//'`
   27560   # Check whether this is an Automake generated Makefile or not.
   27561   # We used to match only the files named `Makefile.in', but
   27562   # some people rename them; so instead we look at the file content.
   27563   # Grep'ing the first line is not enough: some people post-process
   27564   # each Makefile.in and add a new line on top of each file to say so.
   27565   # So let's grep whole file.
   27566   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
   27567     dirpart=`$as_dirname -- "$mf" ||
   27568 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27569 	 X"$mf" : 'X\(//\)[^/]' \| \
   27570 	 X"$mf" : 'X\(//\)$' \| \
   27571 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   27572 $as_echo X"$mf" |
   27573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27574 	    s//\1/
   27575 	    q
   27576 	  }
   27577 	  /^X\(\/\/\)[^/].*/{
   27578 	    s//\1/
   27579 	    q
   27580 	  }
   27581 	  /^X\(\/\/\)$/{
   27582 	    s//\1/
   27583 	    q
   27584 	  }
   27585 	  /^X\(\/\).*/{
   27586 	    s//\1/
   27587 	    q
   27588 	  }
   27589 	  s/.*/./; q'`
   27590   else
   27591     continue
   27592   fi
   27593   # Extract the definition of DEPDIR, am__include, and am__quote
   27594   # from the Makefile without running `make'.
   27595   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   27596   test -z "$DEPDIR" && continue
   27597   am__include=`sed -n 's/^am__include = //p' < "$mf"`
   27598   test -z "am__include" && continue
   27599   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   27600   # When using ansi2knr, U may be empty or an underscore; expand it
   27601   U=`sed -n 's/^U = //p' < "$mf"`
   27602   # Find all dependency output files, they are included files with
   27603   # $(DEPDIR) in their names.  We invoke sed twice because it is the
   27604   # simplest approach to changing $(DEPDIR) to its actual value in the
   27605   # expansion.
   27606   for file in `sed -n "
   27607     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   27608        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   27609     # Make sure the directory exists.
   27610     test -f "$dirpart/$file" && continue
   27611     fdir=`$as_dirname -- "$file" ||
   27612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27613 	 X"$file" : 'X\(//\)[^/]' \| \
   27614 	 X"$file" : 'X\(//\)$' \| \
   27615 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   27616 $as_echo X"$file" |
   27617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27618 	    s//\1/
   27619 	    q
   27620 	  }
   27621 	  /^X\(\/\/\)[^/].*/{
   27622 	    s//\1/
   27623 	    q
   27624 	  }
   27625 	  /^X\(\/\/\)$/{
   27626 	    s//\1/
   27627 	    q
   27628 	  }
   27629 	  /^X\(\/\).*/{
   27630 	    s//\1/
   27631 	    q
   27632 	  }
   27633 	  s/.*/./; q'`
   27634     as_dir=$dirpart/$fdir; as_fn_mkdir_p
   27635     # echo "creating $dirpart/$file"
   27636     echo '# dummy' > "$dirpart/$file"
   27637   done
   27638 done
   27639  ;;
   27640     "libtool":C)
   27641 
   27642     # See if we are running on zsh, and set the options which allow our
   27643     # commands through without removal of \ escapes.
   27644     if test -n "${ZSH_VERSION+set}" ; then
   27645       setopt NO_GLOB_SUBST
   27646     fi
   27647 
   27648     cfgfile="${ofile}T"
   27649     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   27650     $RM "$cfgfile"
   27651 
   27652     cat <<_LT_EOF >> "$cfgfile"
   27653 #! $SHELL
   27654 
   27655 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   27656 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
   27657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   27658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   27659 #
   27660 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   27661 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
   27662 #                 Inc.
   27663 #   Written by Gordon Matzigkeit, 1996
   27664 #
   27665 #   This file is part of GNU Libtool.
   27666 #
   27667 # GNU Libtool is free software; you can redistribute it and/or
   27668 # modify it under the terms of the GNU General Public License as
   27669 # published by the Free Software Foundation; either version 2 of
   27670 # the License, or (at your option) any later version.
   27671 #
   27672 # As a special exception to the GNU General Public License,
   27673 # if you distribute this file as part of a program or library that
   27674 # is built using GNU Libtool, you may include this file under the
   27675 # same distribution terms that you use for the rest of that program.
   27676 #
   27677 # GNU Libtool is distributed in the hope that it will be useful,
   27678 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   27679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   27680 # GNU General Public License for more details.
   27681 #
   27682 # You should have received a copy of the GNU General Public License
   27683 # along with GNU Libtool; see the file COPYING.  If not, a copy
   27684 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
   27685 # obtained by writing to the Free Software Foundation, Inc.,
   27686 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   27687 
   27688 
   27689 # The names of the tagged configurations supported by this script.
   27690 available_tags=""
   27691 
   27692 # ### BEGIN LIBTOOL CONFIG
   27693 
   27694 # Assembler program.
   27695 AS=$lt_AS
   27696 
   27697 # DLL creation program.
   27698 DLLTOOL=$lt_DLLTOOL
   27699 
   27700 # Object dumper program.
   27701 OBJDUMP=$lt_OBJDUMP
   27702 
   27703 # Which release of libtool.m4 was used?
   27704 macro_version=$macro_version
   27705 macro_revision=$macro_revision
   27706 
   27707 # Whether or not to build shared libraries.
   27708 build_libtool_libs=$enable_shared
   27709 
   27710 # Whether or not to build static libraries.
   27711 build_old_libs=$enable_static
   27712 
   27713 # What type of objects to build.
   27714 pic_mode=$pic_mode
   27715 
   27716 # Whether or not to optimize for fast installation.
   27717 fast_install=$enable_fast_install
   27718 
   27719 # Shell to use when invoking shell scripts.
   27720 SHELL=$lt_SHELL
   27721 
   27722 # An echo program that protects backslashes.
   27723 ECHO=$lt_ECHO
   27724 
   27725 # The host system.
   27726 host_alias=$host_alias
   27727 host=$host
   27728 host_os=$host_os
   27729 
   27730 # The build system.
   27731 build_alias=$build_alias
   27732 build=$build
   27733 build_os=$build_os
   27734 
   27735 # A sed program that does not truncate output.
   27736 SED=$lt_SED
   27737 
   27738 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   27739 Xsed="\$SED -e 1s/^X//"
   27740 
   27741 # A grep program that handles long lines.
   27742 GREP=$lt_GREP
   27743 
   27744 # An ERE matcher.
   27745 EGREP=$lt_EGREP
   27746 
   27747 # A literal string matcher.
   27748 FGREP=$lt_FGREP
   27749 
   27750 # A BSD- or MS-compatible name lister.
   27751 NM=$lt_NM
   27752 
   27753 # Whether we need soft or hard links.
   27754 LN_S=$lt_LN_S
   27755 
   27756 # What is the maximum length of a command?
   27757 max_cmd_len=$max_cmd_len
   27758 
   27759 # Object file suffix (normally "o").
   27760 objext=$ac_objext
   27761 
   27762 # Executable file suffix (normally "").
   27763 exeext=$exeext
   27764 
   27765 # whether the shell understands "unset".
   27766 lt_unset=$lt_unset
   27767 
   27768 # turn spaces into newlines.
   27769 SP2NL=$lt_lt_SP2NL
   27770 
   27771 # turn newlines into spaces.
   27772 NL2SP=$lt_lt_NL2SP
   27773 
   27774 # convert \$build file names to \$host format.
   27775 to_host_file_cmd=$lt_cv_to_host_file_cmd
   27776 
   27777 # convert \$build files to toolchain format.
   27778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   27779 
   27780 # Method to check whether dependent libraries are shared objects.
   27781 deplibs_check_method=$lt_deplibs_check_method
   27782 
   27783 # Command to use when deplibs_check_method = "file_magic".
   27784 file_magic_cmd=$lt_file_magic_cmd
   27785 
   27786 # How to find potential files when deplibs_check_method = "file_magic".
   27787 file_magic_glob=$lt_file_magic_glob
   27788 
   27789 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   27790 want_nocaseglob=$lt_want_nocaseglob
   27791 
   27792 # Command to associate shared and link libraries.
   27793 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   27794 
   27795 # The archiver.
   27796 AR=$lt_AR
   27797 
   27798 # Flags to create an archive.
   27799 AR_FLAGS=$lt_AR_FLAGS
   27800 
   27801 # How to feed a file listing to the archiver.
   27802 archiver_list_spec=$lt_archiver_list_spec
   27803 
   27804 # A symbol stripping program.
   27805 STRIP=$lt_STRIP
   27806 
   27807 # Commands used to install an old-style archive.
   27808 RANLIB=$lt_RANLIB
   27809 old_postinstall_cmds=$lt_old_postinstall_cmds
   27810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   27811 
   27812 # Whether to use a lock for old archive extraction.
   27813 lock_old_archive_extraction=$lock_old_archive_extraction
   27814 
   27815 # A C compiler.
   27816 LTCC=$lt_CC
   27817 
   27818 # LTCC compiler flags.
   27819 LTCFLAGS=$lt_CFLAGS
   27820 
   27821 # Take the output of nm and produce a listing of raw symbols and C names.
   27822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   27823 
   27824 # Transform the output of nm in a proper C declaration.
   27825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   27826 
   27827 # Transform the output of nm in a C name address pair.
   27828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   27829 
   27830 # Transform the output of nm in a C name address pair when lib prefix is needed.
   27831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   27832 
   27833 # Specify filename containing input files for \$NM.
   27834 nm_file_list_spec=$lt_nm_file_list_spec
   27835 
   27836 # The root where to search for dependent libraries,and in which our libraries should be installed.
   27837 lt_sysroot=$lt_sysroot
   27838 
   27839 # The name of the directory that contains temporary libtool files.
   27840 objdir=$objdir
   27841 
   27842 # Used to examine libraries when file_magic_cmd begins with "file".
   27843 MAGIC_CMD=$MAGIC_CMD
   27844 
   27845 # Must we lock files when doing compilation?
   27846 need_locks=$lt_need_locks
   27847 
   27848 # Manifest tool.
   27849 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   27850 
   27851 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   27852 DSYMUTIL=$lt_DSYMUTIL
   27853 
   27854 # Tool to change global to local symbols on Mac OS X.
   27855 NMEDIT=$lt_NMEDIT
   27856 
   27857 # Tool to manipulate fat objects and archives on Mac OS X.
   27858 LIPO=$lt_LIPO
   27859 
   27860 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   27861 OTOOL=$lt_OTOOL
   27862 
   27863 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   27864 OTOOL64=$lt_OTOOL64
   27865 
   27866 # Old archive suffix (normally "a").
   27867 libext=$libext
   27868 
   27869 # Shared library suffix (normally ".so").
   27870 shrext_cmds=$lt_shrext_cmds
   27871 
   27872 # The commands to extract the exported symbol list from a shared archive.
   27873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   27874 
   27875 # Variables whose values should be saved in libtool wrapper scripts and
   27876 # restored at link time.
   27877 variables_saved_for_relink=$lt_variables_saved_for_relink
   27878 
   27879 # Do we need the "lib" prefix for modules?
   27880 need_lib_prefix=$need_lib_prefix
   27881 
   27882 # Do we need a version for libraries?
   27883 need_version=$need_version
   27884 
   27885 # Library versioning type.
   27886 version_type=$version_type
   27887 
   27888 # Shared library runtime path variable.
   27889 runpath_var=$runpath_var
   27890 
   27891 # Shared library path variable.
   27892 shlibpath_var=$shlibpath_var
   27893 
   27894 # Is shlibpath searched before the hard-coded library search path?
   27895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   27896 
   27897 # Format of library name prefix.
   27898 libname_spec=$lt_libname_spec
   27899 
   27900 # List of archive names.  First name is the real one, the rest are links.
   27901 # The last name is the one that the linker finds with -lNAME
   27902 library_names_spec=$lt_library_names_spec
   27903 
   27904 # The coded name of the library, if different from the real name.
   27905 soname_spec=$lt_soname_spec
   27906 
   27907 # Permission mode override for installation of shared libraries.
   27908 install_override_mode=$lt_install_override_mode
   27909 
   27910 # Command to use after installation of a shared archive.
   27911 postinstall_cmds=$lt_postinstall_cmds
   27912 
   27913 # Command to use after uninstallation of a shared archive.
   27914 postuninstall_cmds=$lt_postuninstall_cmds
   27915 
   27916 # Commands used to finish a libtool library installation in a directory.
   27917 finish_cmds=$lt_finish_cmds
   27918 
   27919 # As "finish_cmds", except a single script fragment to be evaled but
   27920 # not shown.
   27921 finish_eval=$lt_finish_eval
   27922 
   27923 # Whether we should hardcode library paths into libraries.
   27924 hardcode_into_libs=$hardcode_into_libs
   27925 
   27926 # Compile-time system search path for libraries.
   27927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   27928 
   27929 # Run-time system search path for libraries.
   27930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   27931 
   27932 # Whether dlopen is supported.
   27933 dlopen_support=$enable_dlopen
   27934 
   27935 # Whether dlopen of programs is supported.
   27936 dlopen_self=$enable_dlopen_self
   27937 
   27938 # Whether dlopen of statically linked programs is supported.
   27939 dlopen_self_static=$enable_dlopen_self_static
   27940 
   27941 # Commands to strip libraries.
   27942 old_striplib=$lt_old_striplib
   27943 striplib=$lt_striplib
   27944 
   27945 
   27946 # The linker used to build libraries.
   27947 LD=$lt_LD
   27948 
   27949 # How to create reloadable object files.
   27950 reload_flag=$lt_reload_flag
   27951 reload_cmds=$lt_reload_cmds
   27952 
   27953 # Commands used to build an old-style archive.
   27954 old_archive_cmds=$lt_old_archive_cmds
   27955 
   27956 # A language specific compiler.
   27957 CC=$lt_compiler
   27958 
   27959 # Is the compiler the GNU compiler?
   27960 with_gcc=$GCC
   27961 
   27962 # Compiler flag to turn off builtin functions.
   27963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   27964 
   27965 # Additional compiler flags for building library objects.
   27966 pic_flag=$lt_lt_prog_compiler_pic
   27967 
   27968 # How to pass a linker flag through the compiler.
   27969 wl=$lt_lt_prog_compiler_wl
   27970 
   27971 # Compiler flag to prevent dynamic linking.
   27972 link_static_flag=$lt_lt_prog_compiler_static
   27973 
   27974 # Does compiler simultaneously support -c and -o options?
   27975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   27976 
   27977 # Whether or not to add -lc for building shared libraries.
   27978 build_libtool_need_lc=$archive_cmds_need_lc
   27979 
   27980 # Whether or not to disallow shared libs when runtime libs are static.
   27981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   27982 
   27983 # Compiler flag to allow reflexive dlopens.
   27984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   27985 
   27986 # Compiler flag to generate shared objects directly from archives.
   27987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   27988 
   27989 # Whether the compiler copes with passing no objects directly.
   27990 compiler_needs_object=$lt_compiler_needs_object
   27991 
   27992 # Create an old-style archive from a shared archive.
   27993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   27994 
   27995 # Create a temporary old-style archive to link instead of a shared archive.
   27996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   27997 
   27998 # Commands used to build a shared archive.
   27999 archive_cmds=$lt_archive_cmds
   28000 archive_expsym_cmds=$lt_archive_expsym_cmds
   28001 
   28002 # Commands used to build a loadable module if different from building
   28003 # a shared archive.
   28004 module_cmds=$lt_module_cmds
   28005 module_expsym_cmds=$lt_module_expsym_cmds
   28006 
   28007 # Whether we are building with GNU ld or not.
   28008 with_gnu_ld=$lt_with_gnu_ld
   28009 
   28010 # Flag that allows shared libraries with undefined symbols to be built.
   28011 allow_undefined_flag=$lt_allow_undefined_flag
   28012 
   28013 # Flag that enforces no undefined symbols.
   28014 no_undefined_flag=$lt_no_undefined_flag
   28015 
   28016 # Flag to hardcode \$libdir into a binary during linking.
   28017 # This must work even if \$libdir does not exist
   28018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   28019 
   28020 # If ld is used when linking, flag to hardcode \$libdir into a binary
   28021 # during linking.  This must work even if \$libdir does not exist.
   28022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
   28023 
   28024 # Whether we need a single "-rpath" flag with a separated argument.
   28025 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   28026 
   28027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   28028 # DIR into the resulting binary.
   28029 hardcode_direct=$hardcode_direct
   28030 
   28031 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   28032 # DIR into the resulting binary and the resulting library dependency is
   28033 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
   28034 # library is relocated.
   28035 hardcode_direct_absolute=$hardcode_direct_absolute
   28036 
   28037 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   28038 # into the resulting binary.
   28039 hardcode_minus_L=$hardcode_minus_L
   28040 
   28041 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   28042 # into the resulting binary.
   28043 hardcode_shlibpath_var=$hardcode_shlibpath_var
   28044 
   28045 # Set to "yes" if building a shared library automatically hardcodes DIR
   28046 # into the library and all subsequent libraries and executables linked
   28047 # against it.
   28048 hardcode_automatic=$hardcode_automatic
   28049 
   28050 # Set to yes if linker adds runtime paths of dependent libraries
   28051 # to runtime path list.
   28052 inherit_rpath=$inherit_rpath
   28053 
   28054 # Whether libtool must link a program against all its dependency libraries.
   28055 link_all_deplibs=$link_all_deplibs
   28056 
   28057 # Set to "yes" if exported symbols are required.
   28058 always_export_symbols=$always_export_symbols
   28059 
   28060 # The commands to list exported symbols.
   28061 export_symbols_cmds=$lt_export_symbols_cmds
   28062 
   28063 # Symbols that should not be listed in the preloaded symbols.
   28064 exclude_expsyms=$lt_exclude_expsyms
   28065 
   28066 # Symbols that must always be exported.
   28067 include_expsyms=$lt_include_expsyms
   28068 
   28069 # Commands necessary for linking programs (against libraries) with templates.
   28070 prelink_cmds=$lt_prelink_cmds
   28071 
   28072 # Commands necessary for finishing linking programs.
   28073 postlink_cmds=$lt_postlink_cmds
   28074 
   28075 # Specify filename containing input files.
   28076 file_list_spec=$lt_file_list_spec
   28077 
   28078 # How to hardcode a shared library path into an executable.
   28079 hardcode_action=$hardcode_action
   28080 
   28081 # ### END LIBTOOL CONFIG
   28082 
   28083 _LT_EOF
   28084 
   28085   case $host_os in
   28086   aix3*)
   28087     cat <<\_LT_EOF >> "$cfgfile"
   28088 # AIX sometimes has problems with the GCC collect2 program.  For some
   28089 # reason, if we set the COLLECT_NAMES environment variable, the problems
   28090 # vanish in a puff of smoke.
   28091 if test "X${COLLECT_NAMES+set}" != Xset; then
   28092   COLLECT_NAMES=
   28093   export COLLECT_NAMES
   28094 fi
   28095 _LT_EOF
   28096     ;;
   28097   esac
   28098 
   28099 
   28100 ltmain="$ac_aux_dir/ltmain.sh"
   28101 
   28102 
   28103   # We use sed instead of cat because bash on DJGPP gets confused if
   28104   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   28105   # text mode, it properly converts lines to CR/LF.  This bash problem
   28106   # is reportedly fixed, but why not run on old versions too?
   28107   sed '$q' "$ltmain" >> "$cfgfile" \
   28108      || (rm -f "$cfgfile"; exit 1)
   28109 
   28110   if test x"$xsi_shell" = xyes; then
   28111   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
   28112 func_dirname ()\
   28113 {\
   28114 \    case ${1} in\
   28115 \      */*) func_dirname_result="${1%/*}${2}" ;;\
   28116 \      *  ) func_dirname_result="${3}" ;;\
   28117 \    esac\
   28118 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
   28119   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28120     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28121 test 0 -eq $? || _lt_function_replace_fail=:
   28122 
   28123 
   28124   sed -e '/^func_basename ()$/,/^} # func_basename /c\
   28125 func_basename ()\
   28126 {\
   28127 \    func_basename_result="${1##*/}"\
   28128 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
   28129   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28130     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28131 test 0 -eq $? || _lt_function_replace_fail=:
   28132 
   28133 
   28134   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
   28135 func_dirname_and_basename ()\
   28136 {\
   28137 \    case ${1} in\
   28138 \      */*) func_dirname_result="${1%/*}${2}" ;;\
   28139 \      *  ) func_dirname_result="${3}" ;;\
   28140 \    esac\
   28141 \    func_basename_result="${1##*/}"\
   28142 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
   28143   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28145 test 0 -eq $? || _lt_function_replace_fail=:
   28146 
   28147 
   28148   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
   28149 func_stripname ()\
   28150 {\
   28151 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
   28152 \    # positional parameters, so assign one to ordinary parameter first.\
   28153 \    func_stripname_result=${3}\
   28154 \    func_stripname_result=${func_stripname_result#"${1}"}\
   28155 \    func_stripname_result=${func_stripname_result%"${2}"}\
   28156 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
   28157   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28158     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28159 test 0 -eq $? || _lt_function_replace_fail=:
   28160 
   28161 
   28162   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
   28163 func_split_long_opt ()\
   28164 {\
   28165 \    func_split_long_opt_name=${1%%=*}\
   28166 \    func_split_long_opt_arg=${1#*=}\
   28167 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
   28168   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28169     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28170 test 0 -eq $? || _lt_function_replace_fail=:
   28171 
   28172 
   28173   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
   28174 func_split_short_opt ()\
   28175 {\
   28176 \    func_split_short_opt_arg=${1#??}\
   28177 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
   28178 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
   28179   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28180     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28181 test 0 -eq $? || _lt_function_replace_fail=:
   28182 
   28183 
   28184   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
   28185 func_lo2o ()\
   28186 {\
   28187 \    case ${1} in\
   28188 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
   28189 \      *)    func_lo2o_result=${1} ;;\
   28190 \    esac\
   28191 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
   28192   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28193     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28194 test 0 -eq $? || _lt_function_replace_fail=:
   28195 
   28196 
   28197   sed -e '/^func_xform ()$/,/^} # func_xform /c\
   28198 func_xform ()\
   28199 {\
   28200     func_xform_result=${1%.*}.lo\
   28201 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
   28202   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28203     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28204 test 0 -eq $? || _lt_function_replace_fail=:
   28205 
   28206 
   28207   sed -e '/^func_arith ()$/,/^} # func_arith /c\
   28208 func_arith ()\
   28209 {\
   28210     func_arith_result=$(( $* ))\
   28211 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
   28212   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28214 test 0 -eq $? || _lt_function_replace_fail=:
   28215 
   28216 
   28217   sed -e '/^func_len ()$/,/^} # func_len /c\
   28218 func_len ()\
   28219 {\
   28220     func_len_result=${#1}\
   28221 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
   28222   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28224 test 0 -eq $? || _lt_function_replace_fail=:
   28225 
   28226 fi
   28227 
   28228 if test x"$lt_shell_append" = xyes; then
   28229   sed -e '/^func_append ()$/,/^} # func_append /c\
   28230 func_append ()\
   28231 {\
   28232     eval "${1}+=\\${2}"\
   28233 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
   28234   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28235     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28236 test 0 -eq $? || _lt_function_replace_fail=:
   28237 
   28238 
   28239   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
   28240 func_append_quoted ()\
   28241 {\
   28242 \    func_quote_for_eval "${2}"\
   28243 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
   28244 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
   28245   && mv -f "$cfgfile.tmp" "$cfgfile" \
   28246     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28247 test 0 -eq $? || _lt_function_replace_fail=:
   28248 
   28249 
   28250   # Save a `func_append' function call where possible by direct use of '+='
   28251   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
   28252     && mv -f "$cfgfile.tmp" "$cfgfile" \
   28253       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28254   test 0 -eq $? || _lt_function_replace_fail=:
   28255 else
   28256   # Save a `func_append' function call even when '+=' is not available
   28257   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
   28258     && mv -f "$cfgfile.tmp" "$cfgfile" \
   28259       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   28260   test 0 -eq $? || _lt_function_replace_fail=:
   28261 fi
   28262 
   28263 if test x"$_lt_function_replace_fail" = x":"; then
   28264   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
   28265 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
   28266 fi
   28267 
   28268 
   28269    mv -f "$cfgfile" "$ofile" ||
   28270     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   28271   chmod +x "$ofile"
   28272 
   28273  ;;
   28274 
   28275   esac
   28276 done # for ac_tag
   28277 
   28278 
   28279 as_fn_exit 0
   28280 _ACEOF
   28281 ac_clean_files=$ac_clean_files_save
   28282 
   28283 test $ac_write_fail = 0 ||
   28284   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   28285 
   28286 
   28287 # configure is writing to config.log, and then calls config.status.
   28288 # config.status does its own redirection, appending to config.log.
   28289 # Unfortunately, on DOS this fails, as config.log is still kept open
   28290 # by configure, so config.status won't be able to write to it; its
   28291 # output is simply discarded.  So we exec the FD to /dev/null,
   28292 # effectively closing config.log, so it can be properly (re)opened and
   28293 # appended to by config.status.  When coming back to configure, we
   28294 # need to make the FD available again.
   28295 if test "$no_create" != yes; then
   28296   ac_cs_success=:
   28297   ac_config_status_args=
   28298   test "$silent" = yes &&
   28299     ac_config_status_args="$ac_config_status_args --quiet"
   28300   exec 5>/dev/null
   28301   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   28302   exec 5>>config.log
   28303   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   28304   # would make configure fail if this is the last instruction.
   28305   $ac_cs_success || as_fn_exit 1
   28306 fi
   28307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   28308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   28309 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   28310 fi
   28311 
   28312