Merge branch 'upstream' into tizen
[platform/upstream/c-ares.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares 1.10.0.
4 #
5 # Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13
14 ## -------------------------------- ##
15 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
16 ## -------------------------------- ##
17
18 xc_configure_preamble_ver_major='1'
19 xc_configure_preamble_ver_minor='0'
20
21 #
22 # Set IFS to space, tab and newline.
23 #
24
25 xc_space=' '
26 xc_tab='        '
27 xc_newline='
28 '
29 IFS="$xc_space$xc_tab$xc_newline"
30
31 #
32 # Set internationalization behavior variables.
33 #
34
35 LANG='C'
36 LC_ALL='C'
37 LANGUAGE='C'
38 export LANG
39 export LC_ALL
40 export LANGUAGE
41
42 #
43 # Some useful variables.
44 #
45
46 xc_msg_warn='configure: WARNING:'
47 xc_msg_abrt='Can not continue.'
48 xc_msg_err='configure: error:'
49
50 #
51 # Verify that 'echo' command is available, otherwise abort.
52 #
53
54 xc_tst_str='unknown'
55 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
56 case "x$xc_tst_str" in # ((
57   xsuccess)
58     :
59     ;;
60   *)
61     # Try built-in echo, and fail.
62     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
63     exit 1
64     ;;
65 esac
66
67 #
68 # Verify that 'test' command is available, otherwise abort.
69 #
70
71 xc_tst_str='unknown'
72 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
73 case "x$xc_tst_str" in # ((
74   xsuccess)
75     :
76     ;;
77   *)
78     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
79     exit 1
80     ;;
81 esac
82
83 #
84 # Verify that 'PATH' variable is set, otherwise abort.
85 #
86
87 xc_tst_str='unknown'
88 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
89 case "x$xc_tst_str" in # ((
90   xsuccess)
91     :
92     ;;
93   *)
94     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
95     exit 1
96     ;;
97 esac
98
99 #
100 # Verify that 'expr' command is available, otherwise abort.
101 #
102
103 xc_tst_str='unknown'
104 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
105 case "x$xc_tst_str" in # ((
106   x7)
107     :
108     ;;
109   *)
110     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
111     exit 1
112     ;;
113 esac
114
115 #
116 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
117 #
118
119 xc_tst_str='unknown'
120 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
121   | sed -e 's:unknown:success:' 2>/dev/null`
122 case "x$xc_tst_str" in # ((
123   xsuccess)
124     :
125     ;;
126   *)
127     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
128     exit 1
129     ;;
130 esac
131
132 #
133 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
134 #
135
136 xc_tst_str='unknown'
137 (`echo "$xc_tst_str" 2>/dev/null \
138   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
139 case "x$xc_tst_str" in # ((
140   xsuccess)
141     :
142     ;;
143   *)
144     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
145     exit 1
146     ;;
147 esac
148
149 #
150 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
151 #
152
153 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
154 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
155   | tr -d "0123456789$xc_tab" 2>/dev/null`
156 case "x$xc_tst_str" in # ((
157   xsuccess)
158     :
159     ;;
160   *)
161     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
162     exit 1
163     ;;
164 esac
165
166 #
167 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
168 #
169
170 xc_tst_str='unknown unknown unknown unknown'
171 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
172   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
173 case "x$xc_tst_str" in # ((
174   x4)
175     :
176     ;;
177   *)
178     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
179     exit 1
180     ;;
181 esac
182
183 #
184 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
185 #
186
187 xc_tst_str='unknown'
188 xc_tst_str=`cat <<_EOT 2>/dev/null \
189   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
190 unknown
191 unknown
192 unknown
193 _EOT`
194 case "x$xc_tst_str" in # ((
195   x3)
196     :
197     ;;
198   *)
199     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
200     exit 1
201     ;;
202 esac
203
204 #
205 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
206 #
207
208 # Directory count in 'PATH' when using a colon separator.
209 xc_tst_dirs_col='x'
210 xc_tst_prev_IFS=$IFS; IFS=':'
211 for xc_tst_dir in $PATH; do
212   IFS=$xc_tst_prev_IFS
213   xc_tst_dirs_col="x$xc_tst_dirs_col"
214 done
215 IFS=$xc_tst_prev_IFS
216 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
217
218 # Directory count in 'PATH' when using a semicolon separator.
219 xc_tst_dirs_sem='x'
220 xc_tst_prev_IFS=$IFS; IFS=';'
221 for xc_tst_dir in $PATH; do
222   IFS=$xc_tst_prev_IFS
223   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
224 done
225 IFS=$xc_tst_prev_IFS
226 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
227
228 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
229   # When both counting methods give the same result we do not want to
230   # chose one over the other, and consider auto-detection not possible.
231   if test -z "$PATH_SEPARATOR"; then
232     # Stop dead until user provides 'PATH_SEPARATOR' definition.
233     echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
234     exit 1
235   fi
236 else
237   # Separator with the greater directory count is the auto-detected one.
238   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
239     xc_tst_auto_separator=';'
240   else
241     xc_tst_auto_separator=':'
242   fi
243   if test -z "$PATH_SEPARATOR"; then
244     # Simply use the auto-detected one when not already set.
245     PATH_SEPARATOR=$xc_tst_auto_separator
246   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
247     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
248   fi
249 fi
250 xc_PATH_SEPARATOR=$PATH_SEPARATOR
251
252 xc_configure_preamble_result='yes'
253
254
255 ## -------------------- ##
256 ## M4sh Initialization. ##
257 ## -------------------- ##
258
259 # Be more Bourne compatible
260 DUALCASE=1; export DUALCASE # for MKS sh
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in #(
270   *posix*) :
271     set -o posix ;; #(
272   *) :
273      ;;
274 esac
275 fi
276
277
278 as_nl='
279 '
280 export as_nl
281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
285 # Prefer a ksh shell builtin over an external printf program on Solaris,
286 # but without wasting forks for bash or zsh.
287 if test -z "$BASH_VERSION$ZSH_VERSION" \
288     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
289   as_echo='print -r --'
290   as_echo_n='print -rn --'
291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
292   as_echo='printf %s\n'
293   as_echo_n='printf %s'
294 else
295   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
296     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
297     as_echo_n='/usr/ucb/echo -n'
298   else
299     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
300     as_echo_n_body='eval
301       arg=$1;
302       case $arg in #(
303       *"$as_nl"*)
304         expr "X$arg" : "X\\(.*\\)$as_nl";
305         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
306       esac;
307       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
308     '
309     export as_echo_n_body
310     as_echo_n='sh -c $as_echo_n_body as_echo'
311   fi
312   export as_echo_body
313   as_echo='sh -c $as_echo_body as_echo'
314 fi
315
316
317
318 # IFS
319 # We need space, tab and new line, in precisely that order.  Quoting is
320 # there to prevent editors from complaining about space-tab.
321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
322 # splitting by setting IFS to empty value.)
323 IFS=" ""        $as_nl"
324
325 # Find who we are.  Look in the path if we contain no directory separator.
326 as_myself=
327 case $0 in #((
328   *[\\/]* ) as_myself=$0 ;;
329   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330 for as_dir in $PATH
331 do
332   IFS=$as_save_IFS
333   test -z "$as_dir" && as_dir=.
334     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
335   done
336 IFS=$as_save_IFS
337
338      ;;
339 esac
340 # We did not find ourselves, most probably we were run as `sh COMMAND'
341 # in which case we are not to be found in the path.
342 if test "x$as_myself" = x; then
343   as_myself=$0
344 fi
345 if test ! -f "$as_myself"; then
346   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
347   exit 1
348 fi
349
350 # Unset variables that we do not need and which cause bugs (e.g. in
351 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
352 # suppresses any "Segmentation fault" message there.  '((' could
353 # trigger a bug in pdksh 5.2.14.
354 for as_var in BASH_ENV ENV MAIL MAILPATH
355 do eval test x\${$as_var+set} = xset \
356   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
357 done
358 PS1='$ '
359 PS2='> '
360 PS4='+ '
361
362 # NLS nuisances.
363 LC_ALL=C
364 export LC_ALL
365 LANGUAGE=C
366 export LANGUAGE
367
368 # CDPATH.
369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
370
371 # Use a proper internal environment variable to ensure we don't fall
372   # into an infinite loop, continuously re-executing ourselves.
373   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
374     _as_can_reexec=no; export _as_can_reexec;
375     # We cannot yet assume a decent shell, so we have to provide a
376 # neutralization value for shells without unset; and this also
377 # works around shells that cannot unset nonexistent variables.
378 # Preserve -v and -x to the replacement shell.
379 BASH_ENV=/dev/null
380 ENV=/dev/null
381 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
382 case $- in # ((((
383   *v*x* | *x*v* ) as_opts=-vx ;;
384   *v* ) as_opts=-v ;;
385   *x* ) as_opts=-x ;;
386   * ) as_opts= ;;
387 esac
388 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
389 # Admittedly, this is quite paranoid, since all the known shells bail
390 # out after a failed `exec'.
391 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
392 as_fn_exit 255
393   fi
394   # We don't want this to propagate to other subprocesses.
395           { _as_can_reexec=; unset _as_can_reexec;}
396 if test "x$CONFIG_SHELL" = x; then
397   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
398   emulate sh
399   NULLCMD=:
400   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
401   # is contrary to our usage.  Disable this feature.
402   alias -g '\${1+\"\$@\"}'='\"\$@\"'
403   setopt NO_GLOB_SUBST
404 else
405   case \`(set -o) 2>/dev/null\` in #(
406   *posix*) :
407     set -o posix ;; #(
408   *) :
409      ;;
410 esac
411 fi
412 "
413   as_required="as_fn_return () { (exit \$1); }
414 as_fn_success () { as_fn_return 0; }
415 as_fn_failure () { as_fn_return 1; }
416 as_fn_ret_success () { return 0; }
417 as_fn_ret_failure () { return 1; }
418
419 exitcode=0
420 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
421 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
422 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
423 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
424 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
425
426 else
427   exitcode=1; echo positional parameters were not saved.
428 fi
429 test x\$exitcode = x0 || exit 1
430 test -x / || exit 1"
431   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
432   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
433   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
434   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
435 test \$(( 1 + 1 )) = 2 || exit 1
436
437   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
438     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
439     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
440     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
441     PATH=/empty FPATH=/empty; export PATH FPATH
442     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
443       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
444   if (eval "$as_required") 2>/dev/null; then :
445   as_have_required=yes
446 else
447   as_have_required=no
448 fi
449   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
450
451 else
452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453 as_found=false
454 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
455 do
456   IFS=$as_save_IFS
457   test -z "$as_dir" && as_dir=.
458   as_found=:
459   case $as_dir in #(
460          /*)
461            for as_base in sh bash ksh sh5; do
462              # Try only shells that exist, to save several forks.
463              as_shell=$as_dir/$as_base
464              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
465                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
466   CONFIG_SHELL=$as_shell as_have_required=yes
467                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
468   break 2
469 fi
470 fi
471            done;;
472        esac
473   as_found=false
474 done
475 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
476               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
477   CONFIG_SHELL=$SHELL as_have_required=yes
478 fi; }
479 IFS=$as_save_IFS
480
481
482       if test "x$CONFIG_SHELL" != x; then :
483   export CONFIG_SHELL
484              # We cannot yet assume a decent shell, so we have to provide a
485 # neutralization value for shells without unset; and this also
486 # works around shells that cannot unset nonexistent variables.
487 # Preserve -v and -x to the replacement shell.
488 BASH_ENV=/dev/null
489 ENV=/dev/null
490 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
491 case $- in # ((((
492   *v*x* | *x*v* ) as_opts=-vx ;;
493   *v* ) as_opts=-v ;;
494   *x* ) as_opts=-x ;;
495   * ) as_opts= ;;
496 esac
497 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
498 # Admittedly, this is quite paranoid, since all the known shells bail
499 # out after a failed `exec'.
500 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
501 exit 255
502 fi
503
504     if test x$as_have_required = xno; then :
505   $as_echo "$0: This script requires a shell more modern than all"
506   $as_echo "$0: the shells that I found on your system."
507   if test x${ZSH_VERSION+set} = xset ; then
508     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
509     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
510   else
511     $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
512 $0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
513 $0: your system, including any error possibly output before
514 $0: this message. Then install a modern shell, or manually
515 $0: run the script under such a shell if you do have one."
516   fi
517   exit 1
518 fi
519 fi
520 fi
521 SHELL=${CONFIG_SHELL-/bin/sh}
522 export SHELL
523 # Unset more variables known to interfere with behavior of common tools.
524 CLICOLOR_FORCE= GREP_OPTIONS=
525 unset CLICOLOR_FORCE GREP_OPTIONS
526
527 ## --------------------- ##
528 ## M4sh Shell Functions. ##
529 ## --------------------- ##
530 # as_fn_unset VAR
531 # ---------------
532 # Portably unset VAR.
533 as_fn_unset ()
534 {
535   { eval $1=; unset $1;}
536 }
537 as_unset=as_fn_unset
538
539 # as_fn_set_status STATUS
540 # -----------------------
541 # Set $? to STATUS, without forking.
542 as_fn_set_status ()
543 {
544   return $1
545 } # as_fn_set_status
546
547 # as_fn_exit STATUS
548 # -----------------
549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
550 as_fn_exit ()
551 {
552   set +e
553   as_fn_set_status $1
554   exit $1
555 } # as_fn_exit
556
557 # as_fn_mkdir_p
558 # -------------
559 # Create "$as_dir" as a directory, including parents if necessary.
560 as_fn_mkdir_p ()
561 {
562
563   case $as_dir in #(
564   -*) as_dir=./$as_dir;;
565   esac
566   test -d "$as_dir" || eval $as_mkdir_p || {
567     as_dirs=
568     while :; do
569       case $as_dir in #(
570       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
571       *) as_qdir=$as_dir;;
572       esac
573       as_dirs="'$as_qdir' $as_dirs"
574       as_dir=`$as_dirname -- "$as_dir" ||
575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576          X"$as_dir" : 'X\(//\)[^/]' \| \
577          X"$as_dir" : 'X\(//\)$' \| \
578          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
579 $as_echo X"$as_dir" |
580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
581             s//\1/
582             q
583           }
584           /^X\(\/\/\)[^/].*/{
585             s//\1/
586             q
587           }
588           /^X\(\/\/\)$/{
589             s//\1/
590             q
591           }
592           /^X\(\/\).*/{
593             s//\1/
594             q
595           }
596           s/.*/./; q'`
597       test -d "$as_dir" && break
598     done
599     test -z "$as_dirs" || eval "mkdir $as_dirs"
600   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
601
602
603 } # as_fn_mkdir_p
604
605 # as_fn_executable_p FILE
606 # -----------------------
607 # Test if FILE is an executable regular file.
608 as_fn_executable_p ()
609 {
610   test -f "$1" && test -x "$1"
611 } # as_fn_executable_p
612 # as_fn_append VAR VALUE
613 # ----------------------
614 # Append the text in VALUE to the end of the definition contained in VAR. Take
615 # advantage of any shell optimizations that allow amortized linear growth over
616 # repeated appends, instead of the typical quadratic growth present in naive
617 # implementations.
618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
619   eval 'as_fn_append ()
620   {
621     eval $1+=\$2
622   }'
623 else
624   as_fn_append ()
625   {
626     eval $1=\$$1\$2
627   }
628 fi # as_fn_append
629
630 # as_fn_arith ARG...
631 # ------------------
632 # Perform arithmetic evaluation on the ARGs, and store the result in the
633 # global $as_val. Take advantage of shells that can avoid forks. The arguments
634 # must be portable across $(()) and expr.
635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
636   eval 'as_fn_arith ()
637   {
638     as_val=$(( $* ))
639   }'
640 else
641   as_fn_arith ()
642   {
643     as_val=`expr "$@" || test $? -eq 1`
644   }
645 fi # as_fn_arith
646
647
648 # as_fn_error STATUS ERROR [LINENO LOG_FD]
649 # ----------------------------------------
650 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
651 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
652 # script with STATUS, using 1 if that was 0.
653 as_fn_error ()
654 {
655   as_status=$1; test $as_status -eq 0 && as_status=1
656   if test "$4"; then
657     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
658     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
659   fi
660   $as_echo "$as_me: error: $2" >&2
661   as_fn_exit $as_status
662 } # as_fn_error
663
664 if expr a : '\(a\)' >/dev/null 2>&1 &&
665    test "X`expr 00001 : '.*\(...\)'`" = X001; then
666   as_expr=expr
667 else
668   as_expr=false
669 fi
670
671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
672   as_basename=basename
673 else
674   as_basename=false
675 fi
676
677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
678   as_dirname=dirname
679 else
680   as_dirname=false
681 fi
682
683 as_me=`$as_basename -- "$0" ||
684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
685          X"$0" : 'X\(//\)$' \| \
686          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
687 $as_echo X/"$0" |
688     sed '/^.*\/\([^/][^/]*\)\/*$/{
689             s//\1/
690             q
691           }
692           /^X\/\(\/\/\)$/{
693             s//\1/
694             q
695           }
696           /^X\/\(\/\).*/{
697             s//\1/
698             q
699           }
700           s/.*/./; q'`
701
702 # Avoid depending upon Character Ranges.
703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
706 as_cr_digits='0123456789'
707 as_cr_alnum=$as_cr_Letters$as_cr_digits
708
709
710   as_lineno_1=$LINENO as_lineno_1a=$LINENO
711   as_lineno_2=$LINENO as_lineno_2a=$LINENO
712   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
713   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
714   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
715   sed -n '
716     p
717     /[$]LINENO/=
718   ' <$as_myself |
719     sed '
720       s/[$]LINENO.*/&-/
721       t lineno
722       b
723       :lineno
724       N
725       :loop
726       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
727       t loop
728       s/-\n.*//
729     ' >$as_me.lineno &&
730   chmod +x "$as_me.lineno" ||
731     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
732
733   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
734   # already done that, so ensure we don't try to do so again and fall
735   # in an infinite loop.  This has already happened in practice.
736   _as_can_reexec=no; export _as_can_reexec
737   # Don't try to exec as it changes $[0], causing all sort of problems
738   # (the dirname of $[0] is not the place where we might find the
739   # original and so on.  Autoconf is especially sensitive to this).
740   . "./$as_me.lineno"
741   # Exit status is that of the last command.
742   exit
743 }
744
745 ECHO_C= ECHO_N= ECHO_T=
746 case `echo -n x` in #(((((
747 -n*)
748   case `echo 'xy\c'` in
749   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
750   xy)  ECHO_C='\c';;
751   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
752        ECHO_T=' ';;
753   esac;;
754 *)
755   ECHO_N='-n';;
756 esac
757
758 rm -f conf$$ conf$$.exe conf$$.file
759 if test -d conf$$.dir; then
760   rm -f conf$$.dir/conf$$.file
761 else
762   rm -f conf$$.dir
763   mkdir conf$$.dir 2>/dev/null
764 fi
765 if (echo >conf$$.file) 2>/dev/null; then
766   if ln -s conf$$.file conf$$ 2>/dev/null; then
767     as_ln_s='ln -s'
768     # ... but there are two gotchas:
769     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
770     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
771     # In both cases, we have to default to `cp -pR'.
772     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
773       as_ln_s='cp -pR'
774   elif ln conf$$.file conf$$ 2>/dev/null; then
775     as_ln_s=ln
776   else
777     as_ln_s='cp -pR'
778   fi
779 else
780   as_ln_s='cp -pR'
781 fi
782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
783 rmdir conf$$.dir 2>/dev/null
784
785 if mkdir -p . 2>/dev/null; then
786   as_mkdir_p='mkdir -p "$as_dir"'
787 else
788   test -d ./-p && rmdir ./-p
789   as_mkdir_p=false
790 fi
791
792 as_test_x='test -x'
793 as_executable_p=as_fn_executable_p
794
795 # Sed expression to map a string onto a valid CPP name.
796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
797
798 # Sed expression to map a string onto a valid variable name.
799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
800
801 SHELL=${CONFIG_SHELL-/bin/sh}
802
803
804 test -n "$DJDIR" || exec 7<&0 </dev/null
805 exec 6>&1
806
807 # Name of the host.
808 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
809 # so uname gets run too.
810 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
811
812 #
813 # Initializations.
814 #
815 ac_default_prefix=/usr/local
816 ac_clean_files=
817 ac_config_libobj_dir=.
818 LIBOBJS=
819 cross_compiling=no
820 subdirs=
821 MFLAGS=
822 MAKEFLAGS=
823
824 # Identity of this package.
825 PACKAGE_NAME='c-ares'
826 PACKAGE_TARNAME='c-ares'
827 PACKAGE_VERSION='1.10.0'
828 PACKAGE_STRING='c-ares 1.10.0'
829 PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
830 PACKAGE_URL=''
831
832 ac_unique_file="ares_ipv6.h"
833 # Factoring default headers for most tests.
834 ac_includes_default="\
835 #include <stdio.h>
836 #ifdef HAVE_SYS_TYPES_H
837 # include <sys/types.h>
838 #endif
839 #ifdef HAVE_SYS_STAT_H
840 # include <sys/stat.h>
841 #endif
842 #ifdef STDC_HEADERS
843 # include <stdlib.h>
844 # include <stddef.h>
845 #else
846 # ifdef HAVE_STDLIB_H
847 #  include <stdlib.h>
848 # endif
849 #endif
850 #ifdef HAVE_STRING_H
851 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
852 #  include <memory.h>
853 # endif
854 # include <string.h>
855 #endif
856 #ifdef HAVE_STRINGS_H
857 # include <strings.h>
858 #endif
859 #ifdef HAVE_INTTYPES_H
860 # include <inttypes.h>
861 #endif
862 #ifdef HAVE_STDINT_H
863 # include <stdint.h>
864 #endif
865 #ifdef HAVE_UNISTD_H
866 # include <unistd.h>
867 #endif"
868
869 ac_subst_vars='am__EXEEXT_FALSE
870 am__EXEEXT_TRUE
871 LTLIBOBJS
872 LIBOBJS
873 CARES_CFLAG_EXTRAS
874 CARES_PRIVATE_LIBS
875 CFLAG_CARES_SYMBOL_HIDING
876 DOING_CARES_SYMBOL_HIDING_FALSE
877 DOING_CARES_SYMBOL_HIDING_TRUE
878 RANDOM_FILE
879 DOING_NATIVE_WINDOWS_FALSE
880 DOING_NATIVE_WINDOWS_TRUE
881 CURLDEBUG_FALSE
882 CURLDEBUG_TRUE
883 CPPFLAG_CARES_STATICLIB
884 USE_CPPFLAG_CARES_STATICLIB_FALSE
885 USE_CPPFLAG_CARES_STATICLIB_TRUE
886 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
887 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
888 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
889 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
890 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
891 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
892 OTOOL64
893 OTOOL
894 LIPO
895 NMEDIT
896 DSYMUTIL
897 MANIFEST_TOOL
898 RANLIB
899 ac_ct_AR
900 LN_S
901 NM
902 ac_ct_DUMPBIN
903 DUMPBIN
904 LD
905 FGREP
906 LIBTOOL
907 OBJDUMP
908 DLLTOOL
909 AS
910 am__fastdepCC_FALSE
911 am__fastdepCC_TRUE
912 CCDEPMODE
913 am__nodep
914 AMDEPBACKSLASH
915 AMDEP_FALSE
916 AMDEP_TRUE
917 am__quote
918 am__include
919 DEPDIR
920 am__untar
921 am__tar
922 AMTAR
923 am__leading_dot
924 SET_MAKE
925 AWK
926 mkdir_p
927 MKDIR_P
928 INSTALL_STRIP_PROGRAM
929 STRIP
930 install_sh
931 MAKEINFO
932 AUTOHEADER
933 AUTOMAKE
934 AUTOCONF
935 ACLOCAL
936 VERSION
937 PACKAGE
938 CYGPATH_W
939 am__isrc
940 CPP
941 OBJEXT
942 EXEEXT
943 ac_ct_CC
944 CPPFLAGS
945 LDFLAGS
946 CFLAGS
947 CC
948 INSTALL_DATA
949 INSTALL_SCRIPT
950 INSTALL_PROGRAM
951 host_os
952 host_vendor
953 host_cpu
954 host
955 build_os
956 build_vendor
957 build_cpu
958 build
959 AR
960 EGREP
961 GREP
962 SED
963 MAINT
964 MAINTAINER_MODE_FALSE
965 MAINTAINER_MODE_TRUE
966 target_alias
967 host_alias
968 build_alias
969 LIBS
970 ECHO_T
971 ECHO_N
972 ECHO_C
973 DEFS
974 mandir
975 localedir
976 libdir
977 psdir
978 pdfdir
979 dvidir
980 htmldir
981 infodir
982 docdir
983 oldincludedir
984 includedir
985 localstatedir
986 sharedstatedir
987 sysconfdir
988 datadir
989 datarootdir
990 libexecdir
991 sbindir
992 bindir
993 program_transform_name
994 prefix
995 exec_prefix
996 PACKAGE_URL
997 PACKAGE_BUGREPORT
998 PACKAGE_STRING
999 PACKAGE_VERSION
1000 PACKAGE_TARNAME
1001 PACKAGE_NAME
1002 SHELL
1003 PATH_SEPARATOR'
1004 ac_subst_files=''
1005 ac_user_opts='
1006 enable_option_checking
1007 enable_maintainer_mode
1008 enable_debug
1009 enable_optimize
1010 enable_warnings
1011 enable_werror
1012 enable_curldebug
1013 enable_symbol_hiding
1014 enable_dependency_tracking
1015 enable_largefile
1016 enable_shared
1017 enable_static
1018 with_pic
1019 enable_fast_install
1020 with_gnu_ld
1021 with_sysroot
1022 enable_libtool_lock
1023 enable_libgcc
1024 with_random
1025 enable_nonblocking
1026 '
1027       ac_precious_vars='build_alias
1028 host_alias
1029 target_alias
1030 CC
1031 CFLAGS
1032 LDFLAGS
1033 LIBS
1034 CPPFLAGS
1035 CPP'
1036
1037
1038 # Initialize some variables set by options.
1039 ac_init_help=
1040 ac_init_version=false
1041 ac_unrecognized_opts=
1042 ac_unrecognized_sep=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file=/dev/null
1046 exec_prefix=NONE
1047 no_create=
1048 no_recursion=
1049 prefix=NONE
1050 program_prefix=NONE
1051 program_suffix=NONE
1052 program_transform_name=s,x,x,
1053 silent=
1054 site=
1055 srcdir=
1056 verbose=
1057 x_includes=NONE
1058 x_libraries=NONE
1059
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir='${exec_prefix}/bin'
1067 sbindir='${exec_prefix}/sbin'
1068 libexecdir='${exec_prefix}/libexec'
1069 datarootdir='${prefix}/share'
1070 datadir='${datarootdir}'
1071 sysconfdir='${prefix}/etc'
1072 sharedstatedir='${prefix}/com'
1073 localstatedir='${prefix}/var'
1074 includedir='${prefix}/include'
1075 oldincludedir='/usr/include'
1076 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1077 infodir='${datarootdir}/info'
1078 htmldir='${docdir}'
1079 dvidir='${docdir}'
1080 pdfdir='${docdir}'
1081 psdir='${docdir}'
1082 libdir='${exec_prefix}/lib'
1083 localedir='${datarootdir}/locale'
1084 mandir='${datarootdir}/man'
1085
1086 ac_prev=
1087 ac_dashdash=
1088 for ac_option
1089 do
1090   # If the previous option needs an argument, assign it.
1091   if test -n "$ac_prev"; then
1092     eval $ac_prev=\$ac_option
1093     ac_prev=
1094     continue
1095   fi
1096
1097   case $ac_option in
1098   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099   *=)   ac_optarg= ;;
1100   *)    ac_optarg=yes ;;
1101   esac
1102
1103   # Accept the important Cygnus configure options, so we can diagnose typos.
1104
1105   case $ac_dashdash$ac_option in
1106   --)
1107     ac_dashdash=yes ;;
1108
1109   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1110     ac_prev=bindir ;;
1111   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1112     bindir=$ac_optarg ;;
1113
1114   -build | --build | --buil | --bui | --bu)
1115     ac_prev=build_alias ;;
1116   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1117     build_alias=$ac_optarg ;;
1118
1119   -cache-file | --cache-file | --cache-fil | --cache-fi \
1120   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1121     ac_prev=cache_file ;;
1122   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1123   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1124     cache_file=$ac_optarg ;;
1125
1126   --config-cache | -C)
1127     cache_file=config.cache ;;
1128
1129   -datadir | --datadir | --datadi | --datad)
1130     ac_prev=datadir ;;
1131   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1132     datadir=$ac_optarg ;;
1133
1134   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1135   | --dataroo | --dataro | --datar)
1136     ac_prev=datarootdir ;;
1137   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1138   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1139     datarootdir=$ac_optarg ;;
1140
1141   -disable-* | --disable-*)
1142     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145       as_fn_error $? "invalid feature name: $ac_useropt"
1146     ac_useropt_orig=$ac_useropt
1147     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148     case $ac_user_opts in
1149       *"
1150 "enable_$ac_useropt"
1151 "*) ;;
1152       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153          ac_unrecognized_sep=', ';;
1154     esac
1155     eval enable_$ac_useropt=no ;;
1156
1157   -docdir | --docdir | --docdi | --doc | --do)
1158     ac_prev=docdir ;;
1159   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1160     docdir=$ac_optarg ;;
1161
1162   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1163     ac_prev=dvidir ;;
1164   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1165     dvidir=$ac_optarg ;;
1166
1167   -enable-* | --enable-*)
1168     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171       as_fn_error $? "invalid feature name: $ac_useropt"
1172     ac_useropt_orig=$ac_useropt
1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174     case $ac_user_opts in
1175       *"
1176 "enable_$ac_useropt"
1177 "*) ;;
1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179          ac_unrecognized_sep=', ';;
1180     esac
1181     eval enable_$ac_useropt=\$ac_optarg ;;
1182
1183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185   | --exec | --exe | --ex)
1186     ac_prev=exec_prefix ;;
1187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189   | --exec=* | --exe=* | --ex=*)
1190     exec_prefix=$ac_optarg ;;
1191
1192   -gas | --gas | --ga | --g)
1193     # Obsolete; use --with-gas.
1194     with_gas=yes ;;
1195
1196   -help | --help | --hel | --he | -h)
1197     ac_init_help=long ;;
1198   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199     ac_init_help=recursive ;;
1200   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201     ac_init_help=short ;;
1202
1203   -host | --host | --hos | --ho)
1204     ac_prev=host_alias ;;
1205   -host=* | --host=* | --hos=* | --ho=*)
1206     host_alias=$ac_optarg ;;
1207
1208   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209     ac_prev=htmldir ;;
1210   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211   | --ht=*)
1212     htmldir=$ac_optarg ;;
1213
1214   -includedir | --includedir | --includedi | --included | --include \
1215   | --includ | --inclu | --incl | --inc)
1216     ac_prev=includedir ;;
1217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218   | --includ=* | --inclu=* | --incl=* | --inc=*)
1219     includedir=$ac_optarg ;;
1220
1221   -infodir | --infodir | --infodi | --infod | --info | --inf)
1222     ac_prev=infodir ;;
1223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224     infodir=$ac_optarg ;;
1225
1226   -libdir | --libdir | --libdi | --libd)
1227     ac_prev=libdir ;;
1228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229     libdir=$ac_optarg ;;
1230
1231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232   | --libexe | --libex | --libe)
1233     ac_prev=libexecdir ;;
1234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235   | --libexe=* | --libex=* | --libe=*)
1236     libexecdir=$ac_optarg ;;
1237
1238   -localedir | --localedir | --localedi | --localed | --locale)
1239     ac_prev=localedir ;;
1240   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241     localedir=$ac_optarg ;;
1242
1243   -localstatedir | --localstatedir | --localstatedi | --localstated \
1244   | --localstate | --localstat | --localsta | --localst | --locals)
1245     ac_prev=localstatedir ;;
1246   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248     localstatedir=$ac_optarg ;;
1249
1250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251     ac_prev=mandir ;;
1252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253     mandir=$ac_optarg ;;
1254
1255   -nfp | --nfp | --nf)
1256     # Obsolete; use --without-fp.
1257     with_fp=no ;;
1258
1259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260   | --no-cr | --no-c | -n)
1261     no_create=yes ;;
1262
1263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265     no_recursion=yes ;;
1266
1267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269   | --oldin | --oldi | --old | --ol | --o)
1270     ac_prev=oldincludedir ;;
1271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274     oldincludedir=$ac_optarg ;;
1275
1276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277     ac_prev=prefix ;;
1278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279     prefix=$ac_optarg ;;
1280
1281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282   | --program-pre | --program-pr | --program-p)
1283     ac_prev=program_prefix ;;
1284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286     program_prefix=$ac_optarg ;;
1287
1288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289   | --program-suf | --program-su | --program-s)
1290     ac_prev=program_suffix ;;
1291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293     program_suffix=$ac_optarg ;;
1294
1295   -program-transform-name | --program-transform-name \
1296   | --program-transform-nam | --program-transform-na \
1297   | --program-transform-n | --program-transform- \
1298   | --program-transform | --program-transfor \
1299   | --program-transfo | --program-transf \
1300   | --program-trans | --program-tran \
1301   | --progr-tra | --program-tr | --program-t)
1302     ac_prev=program_transform_name ;;
1303   -program-transform-name=* | --program-transform-name=* \
1304   | --program-transform-nam=* | --program-transform-na=* \
1305   | --program-transform-n=* | --program-transform-=* \
1306   | --program-transform=* | --program-transfor=* \
1307   | --program-transfo=* | --program-transf=* \
1308   | --program-trans=* | --program-tran=* \
1309   | --progr-tra=* | --program-tr=* | --program-t=*)
1310     program_transform_name=$ac_optarg ;;
1311
1312   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313     ac_prev=pdfdir ;;
1314   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315     pdfdir=$ac_optarg ;;
1316
1317   -psdir | --psdir | --psdi | --psd | --ps)
1318     ac_prev=psdir ;;
1319   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320     psdir=$ac_optarg ;;
1321
1322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323   | -silent | --silent | --silen | --sile | --sil)
1324     silent=yes ;;
1325
1326   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327     ac_prev=sbindir ;;
1328   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329   | --sbi=* | --sb=*)
1330     sbindir=$ac_optarg ;;
1331
1332   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334   | --sharedst | --shareds | --shared | --share | --shar \
1335   | --sha | --sh)
1336     ac_prev=sharedstatedir ;;
1337   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340   | --sha=* | --sh=*)
1341     sharedstatedir=$ac_optarg ;;
1342
1343   -site | --site | --sit)
1344     ac_prev=site ;;
1345   -site=* | --site=* | --sit=*)
1346     site=$ac_optarg ;;
1347
1348   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349     ac_prev=srcdir ;;
1350   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351     srcdir=$ac_optarg ;;
1352
1353   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354   | --syscon | --sysco | --sysc | --sys | --sy)
1355     ac_prev=sysconfdir ;;
1356   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358     sysconfdir=$ac_optarg ;;
1359
1360   -target | --target | --targe | --targ | --tar | --ta | --t)
1361     ac_prev=target_alias ;;
1362   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363     target_alias=$ac_optarg ;;
1364
1365   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1366     verbose=yes ;;
1367
1368   -version | --version | --versio | --versi | --vers | -V)
1369     ac_init_version=: ;;
1370
1371   -with-* | --with-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error $? "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=\$ac_optarg ;;
1386
1387   -without-* | --without-*)
1388     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391       as_fn_error $? "invalid package name: $ac_useropt"
1392     ac_useropt_orig=$ac_useropt
1393     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394     case $ac_user_opts in
1395       *"
1396 "with_$ac_useropt"
1397 "*) ;;
1398       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399          ac_unrecognized_sep=', ';;
1400     esac
1401     eval with_$ac_useropt=no ;;
1402
1403   --x)
1404     # Obsolete; use --with-x.
1405     with_x=yes ;;
1406
1407   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1408   | --x-incl | --x-inc | --x-in | --x-i)
1409     ac_prev=x_includes ;;
1410   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1411   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1412     x_includes=$ac_optarg ;;
1413
1414   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1415   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1416     ac_prev=x_libraries ;;
1417   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1418   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1419     x_libraries=$ac_optarg ;;
1420
1421   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1422 Try \`$0 --help' for more information"
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     case $ac_envvar in #(
1429       '' | [0-9]* | *[!_$as_cr_alnum]* )
1430       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1431     esac
1432     eval $ac_envvar=\$ac_optarg
1433     export $ac_envvar ;;
1434
1435   *)
1436     # FIXME: should be removed in autoconf 3.0.
1437     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1439       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1441     ;;
1442
1443   esac
1444 done
1445
1446 if test -n "$ac_prev"; then
1447   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1448   as_fn_error $? "missing argument to $ac_option"
1449 fi
1450
1451 if test -n "$ac_unrecognized_opts"; then
1452   case $enable_option_checking in
1453     no) ;;
1454     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1455     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1456   esac
1457 fi
1458
1459 # Check all directory arguments for consistency.
1460 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461                 datadir sysconfdir sharedstatedir localstatedir includedir \
1462                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463                 libdir localedir mandir
1464 do
1465   eval ac_val=\$$ac_var
1466   # Remove trailing slashes.
1467   case $ac_val in
1468     */ )
1469       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470       eval $ac_var=\$ac_val;;
1471   esac
1472   # Be sure to have absolute directory names.
1473   case $ac_val in
1474     [\\/$]* | ?:[\\/]* )  continue;;
1475     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476   esac
1477   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1478 done
1479
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1483 build=$build_alias
1484 host=$host_alias
1485 target=$target_alias
1486
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489   if test "x$build_alias" = x; then
1490     cross_compiling=maybe
1491   elif test "x$build_alias" != "x$host_alias"; then
1492     cross_compiling=yes
1493   fi
1494 fi
1495
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499 test "$silent" = yes && exec 6>/dev/null
1500
1501
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505   as_fn_error $? "working directory cannot be determined"
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507   as_fn_error $? "pwd does not report name of working directory"
1508
1509
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512   ac_srcdir_defaulted=yes
1513   # Try the directory containing this script, then the parent directory.
1514   ac_confdir=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516          X"$as_myself" : 'X\(//\)[^/]' \| \
1517          X"$as_myself" : 'X\(//\)$' \| \
1518          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521             s//\1/
1522             q
1523           }
1524           /^X\(\/\/\)[^/].*/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)$/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\).*/{
1533             s//\1/
1534             q
1535           }
1536           s/.*/./; q'`
1537   srcdir=$ac_confdir
1538   if test ! -r "$srcdir/$ac_unique_file"; then
1539     srcdir=..
1540   fi
1541 else
1542   ac_srcdir_defaulted=no
1543 fi
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1547 fi
1548 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 ac_abs_confdir=`(
1550         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1551         pwd)`
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554   srcdir=.
1555 fi
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1559 case $srcdir in
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 esac
1562 for ac_var in $ac_precious_vars; do
1563   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564   eval ac_env_${ac_var}_value=\$${ac_var}
1565   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567 done
1568
1569 #
1570 # Report the --help message.
1571 #
1572 if test "$ac_init_help" = "long"; then
1573   # Omit some internal or obsolete options to make the list less imposing.
1574   # This message is too long to be a string in the A/UX 3.1 sh.
1575   cat <<_ACEOF
1576 \`configure' configures c-ares 1.10.0 to adapt to many kinds of systems.
1577
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1579
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE.  See below for descriptions of some of the useful variables.
1582
1583 Defaults for the options are specified in brackets.
1584
1585 Configuration:
1586   -h, --help              display this help and exit
1587       --help=short        display options specific to this package
1588       --help=recursive    display the short help of all the included packages
1589   -V, --version           display version information and exit
1590   -q, --quiet, --silent   do not print \`checking ...' messages
1591       --cache-file=FILE   cache test results in FILE [disabled]
1592   -C, --config-cache      alias for \`--cache-file=config.cache'
1593   -n, --no-create         do not create output files
1594       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1595
1596 Installation directories:
1597   --prefix=PREFIX         install architecture-independent files in PREFIX
1598                           [$ac_default_prefix]
1599   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1600                           [PREFIX]
1601
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1606
1607 For better control, use the options below.
1608
1609 Fine tuning of the installation directories:
1610   --bindir=DIR            user executables [EPREFIX/bin]
1611   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1612   --libexecdir=DIR        program executables [EPREFIX/libexec]
1613   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1614   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1615   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1616   --libdir=DIR            object code libraries [EPREFIX/lib]
1617   --includedir=DIR        C header files [PREFIX/include]
1618   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1619   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1620   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1621   --infodir=DIR           info documentation [DATAROOTDIR/info]
1622   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1623   --mandir=DIR            man documentation [DATAROOTDIR/man]
1624   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1625   --htmldir=DIR           html documentation [DOCDIR]
1626   --dvidir=DIR            dvi documentation [DOCDIR]
1627   --pdfdir=DIR            pdf documentation [DOCDIR]
1628   --psdir=DIR             ps documentation [DOCDIR]
1629 _ACEOF
1630
1631   cat <<\_ACEOF
1632
1633 Program names:
1634   --program-prefix=PREFIX            prepend PREFIX to installed program names
1635   --program-suffix=SUFFIX            append SUFFIX to installed program names
1636   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1637
1638 System types:
1639   --build=BUILD     configure for building on BUILD [guessed]
1640   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1641 _ACEOF
1642 fi
1643
1644 if test -n "$ac_init_help"; then
1645   case $ac_init_help in
1646      short | recursive ) echo "Configuration of c-ares 1.10.0:";;
1647    esac
1648   cat <<\_ACEOF
1649
1650 Optional Features:
1651   --disable-option-checking  ignore unrecognized --enable/--with options
1652   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1653   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1654   --enable-maintainer-mode  enable make rules and dependencies not useful
1655                           (and sometimes confusing) to the casual installer
1656   --enable-debug          Enable debug build options
1657   --disable-debug         Disable debug build options
1658   --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1659   --disable-optimize      Disable compiler optimizations
1660   --enable-warnings       Enable strict compiler warnings
1661   --disable-warnings      Disable strict compiler warnings
1662   --enable-werror         Enable compiler warnings as errors
1663   --disable-werror        Disable compiler warnings as errors
1664   --enable-curldebug      Enable curl debug memory tracking
1665   --disable-curldebug     Disable curl debug memory tracking
1666   --enable-symbol-hiding  Enable hiding of library internal symbols
1667   --disable-symbol-hiding Disable hiding of library internal symbols
1668   --disable-dependency-tracking  speeds up one-time build
1669   --enable-dependency-tracking   do not reject slow dependency extractors
1670   --disable-largefile     omit support for large files
1671   --enable-shared[=PKGS]  build shared libraries [default=yes]
1672   --enable-static[=PKGS]  build static libraries [default=yes]
1673   --enable-fast-install[=PKGS]
1674                           optimize for fast installation [default=yes]
1675   --disable-libtool-lock  avoid locking (might break parallel builds)
1676   --enable-libgcc         use libgcc when linking
1677   --enable-nonblocking    Enable non-blocking communications
1678   --disable-nonblocking   Disable non-blocking communications
1679
1680 Optional Packages:
1681   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1682   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1683   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1684                           both]
1685   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1686   --with-sysroot=DIR Search for dependent libraries within DIR
1687                         (or the compiler's sysroot if not specified).
1688   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1689
1690 Some influential environment variables:
1691   CC          C compiler command
1692   CFLAGS      C compiler flags
1693   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1694               nonstandard directory <lib dir>
1695   LIBS        libraries to pass to the linker, e.g. -l<library>
1696   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697               you have headers in a nonstandard directory <include dir>
1698   CPP         C preprocessor
1699
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1702
1703 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1704 _ACEOF
1705 ac_status=$?
1706 fi
1707
1708 if test "$ac_init_help" = "recursive"; then
1709   # If there are subdirs, report their specific --help.
1710   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711     test -d "$ac_dir" ||
1712       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713       continue
1714     ac_builddir=.
1715
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *)
1719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720   # A ".." for each directory in $ac_dir_suffix.
1721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722   case $ac_top_builddir_sub in
1723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725   esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1731
1732 case $srcdir in
1733   .)  # We are building in place.
1734     ac_srcdir=.
1735     ac_top_srcdir=$ac_top_builddir_sub
1736     ac_abs_top_srcdir=$ac_pwd ;;
1737   [\\/]* | ?:[\\/]* )  # Absolute name.
1738     ac_srcdir=$srcdir$ac_dir_suffix;
1739     ac_top_srcdir=$srcdir
1740     ac_abs_top_srcdir=$srcdir ;;
1741   *) # Relative name.
1742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743     ac_top_srcdir=$ac_top_build_prefix$srcdir
1744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748     cd "$ac_dir" || { ac_status=$?; continue; }
1749     # Check for guested configure.
1750     if test -f "$ac_srcdir/configure.gnu"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753     elif test -f "$ac_srcdir/configure"; then
1754       echo &&
1755       $SHELL "$ac_srcdir/configure" --help=recursive
1756     else
1757       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758     fi || ac_status=$?
1759     cd "$ac_pwd" || { ac_status=$?; break; }
1760   done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765   cat <<\_ACEOF
1766 c-ares configure 1.10.0
1767 generated by GNU Autoconf 2.69
1768
1769 Copyright (C) 2012 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773   exit
1774 fi
1775
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1779
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext
1787   if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_compile") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest.$ac_objext; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814   as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_compile
1817
1818 # ac_fn_c_try_cpp LINENO
1819 # ----------------------
1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_cpp ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   if { { ac_try="$ac_cpp conftest.$ac_ext"
1825 case "(($ac_try" in
1826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827   *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832   ac_status=$?
1833   if test -s conftest.err; then
1834     grep -v '^ *+' conftest.err >conftest.er1
1835     cat conftest.er1 >&5
1836     mv -f conftest.er1 conftest.err
1837   fi
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; } > conftest.i && {
1840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1841          test ! -s conftest.err
1842        }; then :
1843   ac_retval=0
1844 else
1845   $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848     ac_retval=1
1849 fi
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851   as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_cpp
1854
1855 # ac_fn_c_try_link LINENO
1856 # -----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_link ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   rm -f conftest.$ac_objext conftest$ac_exeext
1862   if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_link") 2>conftest.err
1870   ac_status=$?
1871   if test -s conftest.err; then
1872     grep -v '^ *+' conftest.err >conftest.er1
1873     cat conftest.er1 >&5
1874     mv -f conftest.er1 conftest.err
1875   fi
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } && {
1878          test -z "$ac_c_werror_flag" ||
1879          test ! -s conftest.err
1880        } && test -s conftest$ac_exeext && {
1881          test "$cross_compiling" = yes ||
1882          test -x conftest$ac_exeext
1883        }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889         ac_retval=1
1890 fi
1891   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893   # interfere with the next link command; also delete a directory that is
1894   # left behind by Apple's compiler.  We do this before executing the actions.
1895   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_link
1900
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911   $as_echo_n "(cached) " >&6
1912 else
1913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919   eval "$3=yes"
1920 else
1921   eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_header_compile
1931
1932 # ac_fn_c_try_run LINENO
1933 # ----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935 # that executables *can* be run.
1936 ac_fn_c_try_run ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942   *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946   (eval "$ac_link") 2>&5
1947   ac_status=$?
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950   { { case "(($ac_try" in
1951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952   *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956   (eval "$ac_try") 2>&5
1957   ac_status=$?
1958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959   test $ac_status = 0; }; }; then :
1960   ac_retval=0
1961 else
1962   $as_echo "$as_me: program exited with status $ac_status" >&5
1963        $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966        ac_retval=$ac_status
1967 fi
1968   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970   as_fn_set_status $ac_retval
1971
1972 } # ac_fn_c_try_run
1973
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983   $as_echo_n "(cached) " >&6
1984 else
1985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987
1988 #define $2 innocuous_$2
1989 #ifdef __STDC__
1990 # include <limits.h>
1991 #else
1992 # include <assert.h>
1993 #endif
1994 #undef $2
1995 #ifdef __cplusplus
1996 extern "C"
1997 #endif
1998 char $2 ();
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2002
2003 int main (void)
2004 {
2005 return $2 ();
2006  ;
2007  return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011   eval "$3=yes"
2012 else
2013   eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016     conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028 # the include files in INCLUDES and setting the cache variable VAR
2029 # accordingly.
2030 ac_fn_c_check_header_mongrel ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   if eval \${$3+:} false; then :
2034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037   $as_echo_n "(cached) " >&6
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 else
2043   # Is the header compilable?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045 $as_echo_n "checking $2 usability... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   ac_header_compiler=yes
2053 else
2054   ac_header_compiler=no
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058 $as_echo "$ac_header_compiler" >&6; }
2059
2060 # Is the header present?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062 $as_echo_n "checking $2 presence... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_c_try_cpp "$LINENO"; then :
2068   ac_header_preproc=yes
2069 else
2070   ac_header_preproc=no
2071 fi
2072 rm -f conftest.err conftest.i conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074 $as_echo "$ac_header_preproc" >&6; }
2075
2076 # So?  What about this header?
2077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2078   yes:no: )
2079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083     ;;
2084   no:yes:* )
2085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2088 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2092 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ( $as_echo "## ------------------------------------------------------------------------------- ##
2096 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2097 ## ------------------------------------------------------------------------------- ##"
2098      ) | sed "s/^/$as_me: WARNING:     /" >&2
2099     ;;
2100 esac
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104   $as_echo_n "(cached) " >&6
2105 else
2106   eval "$3=\$ac_header_compiler"
2107 fi
2108 eval ac_res=\$$3
2109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 fi
2112   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_header_mongrel
2115
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2121 {
2122   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126   $as_echo_n "(cached) " >&6
2127 else
2128   eval "$3=no"
2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $4
2132 int main (void)
2133 {
2134 if (sizeof ($2))
2135          return 0;
2136  ;
2137  return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int main (void)
2145 {
2146 if (sizeof (($2)))
2147             return 0;
2148  ;
2149  return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153
2154 else
2155   eval "$3=yes"
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_type
2167
2168 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2169 # --------------------------------------------
2170 # Tries to find the compile-time value of EXPR in a program that includes
2171 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2172 # computed
2173 ac_fn_c_compute_int ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   if test "$cross_compiling" = yes; then
2177     # Depending upon the size, compute the lo and hi bounds.
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $4
2181 int main (void)
2182 {
2183 static int test_array [1 - 2 * !(($2) >= 0)];
2184 test_array [0] = 0;
2185 return test_array [0];
2186
2187  ;
2188  return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   ac_lo=0 ac_mid=0
2193   while :; do
2194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int main (void)
2198 {
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200 test_array [0] = 0;
2201 return test_array [0];
2202
2203  ;
2204  return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208   ac_hi=$ac_mid; break
2209 else
2210   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2211                         if test $ac_lo -le $ac_mid; then
2212                           ac_lo= ac_hi=
2213                           break
2214                         fi
2215                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218   done
2219 else
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int main (void)
2224 {
2225 static int test_array [1 - 2 * !(($2) < 0)];
2226 test_array [0] = 0;
2227 return test_array [0];
2228
2229  ;
2230  return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   ac_hi=-1 ac_mid=-1
2235   while :; do
2236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $4
2239 int main (void)
2240 {
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245  ;
2246  return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   ac_lo=$ac_mid; break
2251 else
2252   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253                         if test $ac_mid -le $ac_hi; then
2254                           ac_lo= ac_hi=
2255                           break
2256                         fi
2257                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260   done
2261 else
2262   ac_lo= ac_hi=
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int main (void)
2274 {
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 test_array [0] = 0;
2277 return test_array [0];
2278
2279  ;
2280  return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   ac_hi=$ac_mid
2285 else
2286   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 done
2290 case $ac_lo in #((
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2292 '') ac_retval=1 ;;
2293 esac
2294   else
2295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2300 #include <stdio.h>
2301 #include <stdlib.h>
2302 int main (void)
2303 {
2304
2305   FILE *f = fopen ("conftest.val", "w");
2306   if (! f)
2307     return 1;
2308   if (($2) < 0)
2309     {
2310       long int i = longval ();
2311       if (i != ($2))
2312         return 1;
2313       fprintf (f, "%ld", i);
2314     }
2315   else
2316     {
2317       unsigned long int i = ulongval ();
2318       if (i != ($2))
2319         return 1;
2320       fprintf (f, "%lu", i);
2321     }
2322   /* Do not output a trailing newline, as this causes \r\n confusion
2323      on some platforms.  */
2324   return ferror (f) || fclose (f) != 0;
2325
2326  ;
2327  return 0;
2328 }
2329 _ACEOF
2330 if ac_fn_c_try_run "$LINENO"; then :
2331   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332 else
2333   ac_retval=1
2334 fi
2335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336   conftest.$ac_objext conftest.beam conftest.$ac_ext
2337 rm -f conftest.val
2338
2339   fi
2340   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341   as_fn_set_status $ac_retval
2342
2343 } # ac_fn_c_compute_int
2344
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2350 {
2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if eval \${$4+:} false; then :
2355   $as_echo_n "(cached) " >&6
2356 else
2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 $5
2360 int main (void)
2361 {
2362 static $2 ac_aggr;
2363 if (ac_aggr.$3)
2364 return 0;
2365  ;
2366  return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370   eval "$4=yes"
2371 else
2372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $5
2375 int main (void)
2376 {
2377 static $2 ac_aggr;
2378 if (sizeof ac_aggr.$3)
2379 return 0;
2380  ;
2381  return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385   eval "$4=yes"
2386 else
2387   eval "$4=no"
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$4
2394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398 } # ac_fn_c_check_member
2399 cat >config.log <<_ACEOF
2400 This file contains any messages produced by compilers while
2401 running configure, to aid debugging if configure makes a mistake.
2402
2403 It was created by c-ares $as_me 1.10.0, which was
2404 generated by GNU Autoconf 2.69.  Invocation command line was
2405
2406   $ $0 $@
2407
2408 _ACEOF
2409 exec 5>>config.log
2410 {
2411 cat <<_ASUNAME
2412 ## --------- ##
2413 ## Platform. ##
2414 ## --------- ##
2415
2416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2421
2422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2424
2425 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2426 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2429 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2430 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2431 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2432
2433 _ASUNAME
2434
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440     $as_echo "PATH: $as_dir"
2441   done
2442 IFS=$as_save_IFS
2443
2444 } >&5
2445
2446 cat >&5 <<_ACEOF
2447
2448
2449 ## ----------- ##
2450 ## Core tests. ##
2451 ## ----------- ##
2452
2453 _ACEOF
2454
2455
2456 # Keep a trace of the command line.
2457 # Strip out --no-create and --no-recursion so they do not pile up.
2458 # Strip out --silent because we don't want to record it for future runs.
2459 # Also quote any args containing shell meta-characters.
2460 # Make two passes to allow for proper duplicate-argument suppression.
2461 ac_configure_args=
2462 ac_configure_args0=
2463 ac_configure_args1=
2464 ac_must_keep_next=false
2465 for ac_pass in 1 2
2466 do
2467   for ac_arg
2468   do
2469     case $ac_arg in
2470     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2471     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2472     | -silent | --silent | --silen | --sile | --sil)
2473       continue ;;
2474     *\'*)
2475       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2476     esac
2477     case $ac_pass in
2478     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2479     2)
2480       as_fn_append ac_configure_args1 " '$ac_arg'"
2481       if test $ac_must_keep_next = true; then
2482         ac_must_keep_next=false # Got value, back to normal.
2483       else
2484         case $ac_arg in
2485           *=* | --config-cache | -C | -disable-* | --disable-* \
2486           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2487           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2488           | -with-* | --with-* | -without-* | --without-* | --x)
2489             case "$ac_configure_args0 " in
2490               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2491             esac
2492             ;;
2493           -* ) ac_must_keep_next=true ;;
2494         esac
2495       fi
2496       as_fn_append ac_configure_args " '$ac_arg'"
2497       ;;
2498     esac
2499   done
2500 done
2501 { ac_configure_args0=; unset ac_configure_args0;}
2502 { ac_configure_args1=; unset ac_configure_args1;}
2503
2504 # When interrupted or exit'd, cleanup temporary files, and complete
2505 # config.log.  We remove comments because anyway the quotes in there
2506 # would cause problems or look ugly.
2507 # WARNING: Use '\'' to represent an apostrophe within the trap.
2508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2509 trap 'exit_status=$?
2510   # Save into config.log some information that might help in debugging.
2511   {
2512     echo
2513
2514     $as_echo "## ---------------- ##
2515 ## Cache variables. ##
2516 ## ---------------- ##"
2517     echo
2518     # The following way of writing the cache mishandles newlines in values,
2519 (
2520   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2521     eval ac_val=\$$ac_var
2522     case $ac_val in #(
2523     *${as_nl}*)
2524       case $ac_var in #(
2525       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2527       esac
2528       case $ac_var in #(
2529       _ | IFS | as_nl) ;; #(
2530       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2531       *) { eval $ac_var=; unset $ac_var;} ;;
2532       esac ;;
2533     esac
2534   done
2535   (set) 2>&1 |
2536     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2537     *${as_nl}ac_space=\ *)
2538       sed -n \
2539         "s/'\''/'\''\\\\'\'''\''/g;
2540           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2541       ;; #(
2542     *)
2543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2544       ;;
2545     esac |
2546     sort
2547 )
2548     echo
2549
2550     $as_echo "## ----------------- ##
2551 ## Output variables. ##
2552 ## ----------------- ##"
2553     echo
2554     for ac_var in $ac_subst_vars
2555     do
2556       eval ac_val=\$$ac_var
2557       case $ac_val in
2558       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559       esac
2560       $as_echo "$ac_var='\''$ac_val'\''"
2561     done | sort
2562     echo
2563
2564     if test -n "$ac_subst_files"; then
2565       $as_echo "## ------------------- ##
2566 ## File substitutions. ##
2567 ## ------------------- ##"
2568       echo
2569       for ac_var in $ac_subst_files
2570       do
2571         eval ac_val=\$$ac_var
2572         case $ac_val in
2573         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574         esac
2575         $as_echo "$ac_var='\''$ac_val'\''"
2576       done | sort
2577       echo
2578     fi
2579
2580     if test -s confdefs.h; then
2581       $as_echo "## ----------- ##
2582 ## confdefs.h. ##
2583 ## ----------- ##"
2584       echo
2585       cat confdefs.h
2586       echo
2587     fi
2588     test "$ac_signal" != 0 &&
2589       $as_echo "$as_me: caught signal $ac_signal"
2590     $as_echo "$as_me: exit $exit_status"
2591   } >&5
2592   rm -f core *.core core.conftest.* &&
2593     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2594     exit $exit_status
2595 ' 0
2596 for ac_signal in 1 2 13 15; do
2597   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2598 done
2599 ac_signal=0
2600
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest* confdefs.h
2603
2604 $as_echo "/* confdefs.h */" > confdefs.h
2605
2606 # Predefined preprocessor variables.
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2618 _ACEOF
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2630 _ACEOF
2631
2632
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2635 ac_site_file1=NONE
2636 ac_site_file2=NONE
2637 if test -n "$CONFIG_SITE"; then
2638   # We do not want a PATH search for config.site.
2639   case $CONFIG_SITE in #((
2640     -*)  ac_site_file1=./$CONFIG_SITE;;
2641     */*) ac_site_file1=$CONFIG_SITE;;
2642     *)   ac_site_file1=./$CONFIG_SITE;;
2643   esac
2644 elif test "x$prefix" != xNONE; then
2645   ac_site_file1=$prefix/share/config.site
2646   ac_site_file2=$prefix/etc/config.site
2647 else
2648   ac_site_file1=$ac_default_prefix/share/config.site
2649   ac_site_file2=$ac_default_prefix/etc/config.site
2650 fi
2651 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2652 do
2653   test "x$ac_site_file" = xNONE && continue
2654   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2657     sed 's/^/| /' "$ac_site_file" >&5
2658     . "$ac_site_file" \
2659       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $? "failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2663   fi
2664 done
2665
2666 if test -r "$cache_file"; then
2667   # Some versions of bash will fail to source /dev/null (special files
2668   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2669   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 $as_echo "$as_me: loading cache $cache_file" >&6;}
2672     case $cache_file in
2673       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674       *)                      . "./$cache_file";;
2675     esac
2676   fi
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 $as_echo "$as_me: creating cache $cache_file" >&6;}
2680   >$cache_file
2681 fi
2682
2683 # Check that the precious variables saved in the cache have kept the same
2684 # value.
2685 ac_cache_corrupted=false
2686 for ac_var in $ac_precious_vars; do
2687   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2688   eval ac_new_set=\$ac_env_${ac_var}_set
2689   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2690   eval ac_new_val=\$ac_env_${ac_var}_value
2691   case $ac_old_set,$ac_new_set in
2692     set,)
2693       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2694 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2695       ac_cache_corrupted=: ;;
2696     ,set)
2697       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2699       ac_cache_corrupted=: ;;
2700     ,);;
2701     *)
2702       if test "x$ac_old_val" != "x$ac_new_val"; then
2703         # differences in whitespace do not lead to failure.
2704         ac_old_val_w=`echo x $ac_old_val`
2705         ac_new_val_w=`echo x $ac_new_val`
2706         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2707           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2708 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2709           ac_cache_corrupted=:
2710         else
2711           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2712 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2713           eval $ac_var=\$ac_old_val
2714         fi
2715         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2716 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2717         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2718 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2719       fi;;
2720   esac
2721   # Pass precious variables to config.status.
2722   if test "$ac_new_set" = set; then
2723     case $ac_new_val in
2724     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2725     *) ac_arg=$ac_var=$ac_new_val ;;
2726     esac
2727     case " $ac_configure_args " in
2728       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2729       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2730     esac
2731   fi
2732 done
2733 if $ac_cache_corrupted; then
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2737 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2738   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2739 fi
2740 ## -------------------- ##
2741 ## Main body of script. ##
2742 ## -------------------- ##
2743
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751
2752
2753
2754
2755
2756 # using cares-override.m4
2757
2758
2759
2760 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2761
2762
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2766     # Check whether --enable-maintainer-mode was given.
2767 if test "${enable_maintainer_mode+set}" = set; then :
2768   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2769 else
2770   USE_MAINTAINER_MODE=no
2771 fi
2772
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2775    if test $USE_MAINTAINER_MODE = yes; then
2776   MAINTAINER_MODE_TRUE=
2777   MAINTAINER_MODE_FALSE='#'
2778 else
2779   MAINTAINER_MODE_TRUE='#'
2780   MAINTAINER_MODE_FALSE=
2781 fi
2782
2783   MAINT=$MAINTAINER_MODE_TRUE
2784
2785
2786
2787
2788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2789 $as_echo_n "checking whether to enable debug build options... " >&6; }
2790   OPT_DEBUG_BUILD="default"
2791   # Check whether --enable-debug was given.
2792 if test "${enable_debug+set}" = set; then :
2793   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2794 fi
2795
2796   case "$OPT_DEBUG_BUILD" in
2797     no)
2798             want_debug="no"
2799       ;;
2800     default)
2801             want_debug="no"
2802       ;;
2803     *)
2804             want_debug="yes"
2805       ;;
2806   esac
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2808 $as_echo "$want_debug" >&6; }
2809
2810
2811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2812 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2813   OPT_COMPILER_OPTIMIZE="default"
2814   # Check whether --enable-optimize was given.
2815 if test "${enable_optimize+set}" = set; then :
2816   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2817 fi
2818
2819   case "$OPT_COMPILER_OPTIMIZE" in
2820     no)
2821                               want_optimize="no"
2822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824       ;;
2825     default)
2826                                                                         if test "$want_debug" = "yes"; then
2827         want_optimize="assume_no"
2828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2829 $as_echo "not specified (assuming no)" >&6; }
2830       else
2831         want_optimize="assume_yes"
2832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2833 $as_echo "not specified (assuming yes)" >&6; }
2834       fi
2835       ;;
2836     *)
2837                               want_optimize="yes"
2838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840       ;;
2841   esac
2842
2843
2844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2845 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2846   OPT_COMPILER_WARNINGS="default"
2847   # Check whether --enable-warnings was given.
2848 if test "${enable_warnings+set}" = set; then :
2849   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2850 fi
2851
2852   case "$OPT_COMPILER_WARNINGS" in
2853     no)
2854             want_warnings="no"
2855       ;;
2856     default)
2857                   want_warnings="$want_debug"
2858       ;;
2859     *)
2860             want_warnings="yes"
2861       ;;
2862   esac
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2864 $as_echo "$want_warnings" >&6; }
2865
2866
2867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2868 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2869   OPT_COMPILER_WERROR="default"
2870   # Check whether --enable-werror was given.
2871 if test "${enable_werror+set}" = set; then :
2872   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2873 fi
2874
2875   case "$OPT_COMPILER_WERROR" in
2876     no)
2877             want_werror="no"
2878       ;;
2879     default)
2880             want_werror="no"
2881       ;;
2882     *)
2883             want_werror="yes"
2884       ;;
2885   esac
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2887 $as_echo "$want_werror" >&6; }
2888
2889
2890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2891 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2892   OPT_CURLDEBUG_BUILD="default"
2893   # Check whether --enable-curldebug was given.
2894 if test "${enable_curldebug+set}" = set; then :
2895   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2896 fi
2897
2898   case "$OPT_CURLDEBUG_BUILD" in
2899     no)
2900             want_curldebug="no"
2901       ;;
2902     default)
2903             want_curldebug="no"
2904       ;;
2905     *)
2906                                                       want_curldebug="yes"
2907       ;;
2908   esac
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2910 $as_echo "$want_curldebug" >&6; }
2911
2912
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2914 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2915   OPT_SYMBOL_HIDING="default"
2916   # Check whether --enable-symbol-hiding was given.
2917 if test "${enable_symbol_hiding+set}" = set; then :
2918   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2919 fi
2920
2921   case "$OPT_SYMBOL_HIDING" in
2922     no)
2923                               want_symbol_hiding="no"
2924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926       ;;
2927     default)
2928                   want_symbol_hiding="yes"
2929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2930 $as_echo "yes" >&6; }
2931       ;;
2932     *)
2933                         want_symbol_hiding="yes"
2934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2936       ;;
2937   esac
2938
2939
2940 #
2941 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
2942 #
2943
2944 if test -z "$xc_configure_preamble_result"; then
2945   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
2946 fi
2947
2948 #
2949 # Check that 'PATH_SEPARATOR' has already been set.
2950 #
2951
2952 if test -z "$xc_PATH_SEPARATOR"; then
2953   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
2954 fi
2955 if test -z "$PATH_SEPARATOR"; then
2956   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
2957 fi
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
2959 $as_echo_n "checking for path separator... " >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
2961 $as_echo "$PATH_SEPARATOR" >&6; }
2962 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
2964 $as_echo_n "checking for initial path separator... " >&6; }
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
2966 $as_echo "$xc_PATH_SEPARATOR" >&6; }
2967   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
2968 fi
2969
2970
2971 # Extract the first word of "sed", so it can be a program name with args.
2972 set dummy sed; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_path_SED+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   case $SED in
2979   [\\/]* | ?:[\\/]*)
2980   ac_cv_path_SED="$SED" # Let the user override the test with a path.
2981   ;;
2982   *)
2983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2985 for as_dir in $as_dummy
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_exec_ext in '' $ac_executable_extensions; do
2990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3000   ;;
3001 esac
3002 fi
3003 SED=$ac_cv_path_SED
3004 if test -n "$SED"; then
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3006 $as_echo "$SED" >&6; }
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 if test -z "$SED" || test "$SED" = "not_found"; then
3014   as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3015 fi
3016
3017
3018 # Extract the first word of "grep", so it can be a program name with args.
3019 set dummy grep; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_path_GREP+:} false; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   case $GREP in
3026   [\\/]* | ?:[\\/]*)
3027   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3028   ;;
3029   *)
3030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3032 for as_dir in $as_dummy
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_exec_ext in '' $ac_executable_extensions; do
3037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043   done
3044 IFS=$as_save_IFS
3045
3046   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3047   ;;
3048 esac
3049 fi
3050 GREP=$ac_cv_path_GREP
3051 if test -n "$GREP"; then
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3053 $as_echo "$GREP" >&6; }
3054 else
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 if test -z "$GREP" || test "$GREP" = "not_found"; then
3061   as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3062 fi
3063
3064
3065 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3067 $as_echo_n "checking for egrep... " >&6; }
3068   EGREP="$GREP -E"
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3070 $as_echo "$EGREP" >&6; }
3071 else
3072   # Extract the first word of "egrep", so it can be a program name with args.
3073 set dummy egrep; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_path_EGREP+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   case $EGREP in
3080   [\\/]* | ?:[\\/]*)
3081   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3082   ;;
3083   *)
3084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3086 for as_dir in $as_dummy
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3101   ;;
3102 esac
3103 fi
3104 EGREP=$ac_cv_path_EGREP
3105 if test -n "$EGREP"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3107 $as_echo "$EGREP" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3116   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3117 fi
3118
3119
3120 if test -n "$ac_tool_prefix"; then
3121   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}ar; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_path_AR+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   case $AR in
3129   [\\/]* | ?:[\\/]*)
3130   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3131   ;;
3132   *)
3133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3135 for as_dir in $as_dummy
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149   ;;
3150 esac
3151 fi
3152 AR=$ac_cv_path_AR
3153 if test -n "$AR"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3155 $as_echo "$AR" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162 fi
3163 if test -z "$ac_cv_path_AR"; then
3164   ac_pt_AR=$AR
3165   # Extract the first word of "ar", so it can be a program name with args.
3166 set dummy ar; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_path_ac_pt_AR+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   case $ac_pt_AR in
3173   [\\/]* | ?:[\\/]*)
3174   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3175   ;;
3176   *)
3177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3179 for as_dir in $as_dummy
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193   ;;
3194 esac
3195 fi
3196 ac_pt_AR=$ac_cv_path_ac_pt_AR
3197 if test -n "$ac_pt_AR"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3199 $as_echo "$ac_pt_AR" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205   if test "x$ac_pt_AR" = x; then
3206     AR="not_found"
3207   else
3208     case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214     AR=$ac_pt_AR
3215   fi
3216 else
3217   AR="$ac_cv_path_AR"
3218 fi
3219
3220 if test -z "$AR" || test "$AR" = "not_found"; then
3221   as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3222 fi
3223
3224
3225 if test -f ${srcdir}/ares_build.h; then
3226   rm -f ${srcdir}/ares_build.h
3227 fi
3228
3229
3230 ac_aux_dir=
3231 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3232   if test -f "$ac_dir/install-sh"; then
3233     ac_aux_dir=$ac_dir
3234     ac_install_sh="$ac_aux_dir/install-sh -c"
3235     break
3236   elif test -f "$ac_dir/install.sh"; then
3237     ac_aux_dir=$ac_dir
3238     ac_install_sh="$ac_aux_dir/install.sh -c"
3239     break
3240   elif test -f "$ac_dir/shtool"; then
3241     ac_aux_dir=$ac_dir
3242     ac_install_sh="$ac_aux_dir/shtool install -c"
3243     break
3244   fi
3245 done
3246 if test -z "$ac_aux_dir"; then
3247   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3248 fi
3249
3250 # These three variables are undocumented and unsupported,
3251 # and are intended to be withdrawn in a future Autoconf release.
3252 # They can cause serious problems if a builder's source tree is in a directory
3253 # whose full name contains unusual characters.
3254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3256 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3257
3258
3259 # Make sure we can run config.sub.
3260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3261   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3264 $as_echo_n "checking build system type... " >&6; }
3265 if ${ac_cv_build+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   ac_build_alias=$build_alias
3269 test "x$ac_build_alias" = x &&
3270   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3271 test "x$ac_build_alias" = x &&
3272   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3273 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3274   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3275
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3278 $as_echo "$ac_cv_build" >&6; }
3279 case $ac_cv_build in
3280 *-*-*) ;;
3281 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3282 esac
3283 build=$ac_cv_build
3284 ac_save_IFS=$IFS; IFS='-'
3285 set x $ac_cv_build
3286 shift
3287 build_cpu=$1
3288 build_vendor=$2
3289 shift; shift
3290 # Remember, the first character of IFS is used to create $*,
3291 # except with old shells:
3292 build_os=$*
3293 IFS=$ac_save_IFS
3294 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3295
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3298 $as_echo_n "checking host system type... " >&6; }
3299 if ${ac_cv_host+:} false; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if test "x$host_alias" = x; then
3303   ac_cv_host=$ac_cv_build
3304 else
3305   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3306     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3307 fi
3308
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3311 $as_echo "$ac_cv_host" >&6; }
3312 case $ac_cv_host in
3313 *-*-*) ;;
3314 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3315 esac
3316 host=$ac_cv_host
3317 ac_save_IFS=$IFS; IFS='-'
3318 set x $ac_cv_host
3319 shift
3320 host_cpu=$1
3321 host_vendor=$2
3322 shift; shift
3323 # Remember, the first character of IFS is used to create $*,
3324 # except with old shells:
3325 host_os=$*
3326 IFS=$ac_save_IFS
3327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3328
3329
3330
3331 cat >>confdefs.h <<_ACEOF
3332 #define OS "${host}"
3333 _ACEOF
3334
3335
3336
3337   xc_prog_cc_prev_IFS=$IFS
3338   xc_prog_cc_prev_LIBS=$LIBS
3339   xc_prog_cc_prev_CFLAGS=$CFLAGS
3340   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3341   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3342
3343
3344
3345   xc_bad_var_libs=no
3346   for xc_word in $LIBS; do
3347     case "$xc_word" in
3348       -l* | --library=*)
3349         :
3350         ;;
3351       *)
3352         xc_bad_var_libs=yes
3353         ;;
3354     esac
3355   done
3356   if test $xc_bad_var_libs = yes; then
3357     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3358 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3359     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3360 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3361   fi
3362
3363
3364   xc_bad_var_ldflags=no
3365   for xc_word in $LDFLAGS; do
3366     case "$xc_word" in
3367       -D*)
3368         xc_bad_var_ldflags=yes
3369         ;;
3370       -U*)
3371         xc_bad_var_ldflags=yes
3372         ;;
3373       -I*)
3374         xc_bad_var_ldflags=yes
3375         ;;
3376       -l* | --library=*)
3377         xc_bad_var_ldflags=yes
3378         ;;
3379     esac
3380   done
3381   if test $xc_bad_var_ldflags = yes; then
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3383 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3384     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3385     for xc_word in $LDFLAGS; do
3386       case "$xc_word" in
3387         -D*)
3388           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3389 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3390           ;;
3391         -U*)
3392           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3393 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3394           ;;
3395         -I*)
3396           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3397 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3398           ;;
3399         -l* | --library=*)
3400           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3401 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3402           ;;
3403       esac
3404     done
3405   fi
3406
3407
3408   xc_bad_var_cppflags=no
3409   for xc_word in $CPPFLAGS; do
3410     case "$xc_word" in
3411       -rpath*)
3412         xc_bad_var_cppflags=yes
3413         ;;
3414       -L* | --library-path=*)
3415         xc_bad_var_cppflags=yes
3416         ;;
3417       -l* | --library=*)
3418         xc_bad_var_cppflags=yes
3419         ;;
3420     esac
3421   done
3422   if test $xc_bad_var_cppflags = yes; then
3423     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3424 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3425     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3426     for xc_word in $CPPFLAGS; do
3427       case "$xc_word" in
3428         -rpath*)
3429           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3430 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3431           ;;
3432         -L* | --library-path=*)
3433           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3434 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3435           ;;
3436         -l* | --library=*)
3437           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3438 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3439           ;;
3440       esac
3441     done
3442   fi
3443
3444
3445   xc_bad_var_cflags=no
3446   for xc_word in $CFLAGS; do
3447     case "$xc_word" in
3448       -D*)
3449         xc_bad_var_cflags=yes
3450         ;;
3451       -U*)
3452         xc_bad_var_cflags=yes
3453         ;;
3454       -I*)
3455         xc_bad_var_cflags=yes
3456         ;;
3457       -rpath*)
3458         xc_bad_var_cflags=yes
3459         ;;
3460       -L* | --library-path=*)
3461         xc_bad_var_cflags=yes
3462         ;;
3463       -l* | --library=*)
3464         xc_bad_var_cflags=yes
3465         ;;
3466     esac
3467   done
3468   if test $xc_bad_var_cflags = yes; then
3469     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3470 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3471     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3472     for xc_word in $CFLAGS; do
3473       case "$xc_word" in
3474         -D*)
3475           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3476 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3477           ;;
3478         -U*)
3479           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3480 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3481           ;;
3482         -I*)
3483           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3484 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3485           ;;
3486         -rpath*)
3487           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3488 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3489           ;;
3490         -L* | --library-path=*)
3491           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3492 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3493           ;;
3494         -l* | --library=*)
3495           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3496 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3497           ;;
3498       esac
3499     done
3500   fi
3501
3502   if test $xc_bad_var_libs = yes ||
3503      test $xc_bad_var_cflags = yes ||
3504      test $xc_bad_var_ldflags = yes ||
3505      test $xc_bad_var_cppflags = yes; then
3506      as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
3507   fi
3508
3509 # Find a good install program.  We prefer a C program (faster),
3510 # so one script is as good as another.  But avoid the broken or
3511 # incompatible versions:
3512 # SysV /etc/install, /usr/sbin/install
3513 # SunOS /usr/etc/install
3514 # IRIX /sbin/install
3515 # AIX /bin/install
3516 # AmigaOS /C/install, which installs bootblocks on floppy discs
3517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3520 # OS/2's system install, which has a completely different semantic
3521 # ./install, which can be erroneously created by make from ./install.sh.
3522 # Reject install programs that cannot install multiple files.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3524 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3525 if test -z "$INSTALL"; then
3526 if ${ac_cv_path_install+:} false; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     # Account for people who put trailing slashes in PATH elements.
3535 case $as_dir/ in #((
3536   ./ | .// | /[cC]/* | \
3537   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3538   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3539   /usr/ucb/* ) ;;
3540   *)
3541     # OSF1 and SCO ODT 3.0 have their own names for install.
3542     # Don't use installbsd from OSF since it installs stuff as root
3543     # by default.
3544     for ac_prog in ginstall scoinst install; do
3545       for ac_exec_ext in '' $ac_executable_extensions; do
3546         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3547           if test $ac_prog = install &&
3548             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549             # AIX install.  It has an incompatible calling convention.
3550             :
3551           elif test $ac_prog = install &&
3552             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553             # program-specific install script used by HP pwplus--don't use.
3554             :
3555           else
3556             rm -rf conftest.one conftest.two conftest.dir
3557             echo one > conftest.one
3558             echo two > conftest.two
3559             mkdir conftest.dir
3560             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3561               test -s conftest.one && test -s conftest.two &&
3562               test -s conftest.dir/conftest.one &&
3563               test -s conftest.dir/conftest.two
3564             then
3565               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3566               break 3
3567             fi
3568           fi
3569         fi
3570       done
3571     done
3572     ;;
3573 esac
3574
3575   done
3576 IFS=$as_save_IFS
3577
3578 rm -rf conftest.one conftest.two conftest.dir
3579
3580 fi
3581   if test "${ac_cv_path_install+set}" = set; then
3582     INSTALL=$ac_cv_path_install
3583   else
3584     # As a last resort, use the slow shell script.  Don't cache a
3585     # value for INSTALL within a source directory, because that will
3586     # break other packages using the cache if that directory is
3587     # removed, or if the value is a relative name.
3588     INSTALL=$ac_install_sh
3589   fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3592 $as_echo "$INSTALL" >&6; }
3593
3594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595 # It thinks the first close brace ends the variable substitution.
3596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3597
3598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3599
3600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3601
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   if test -n "$CC"; then
3616   ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621   IFS=$as_save_IFS
3622   test -z "$as_dir" && as_dir=.
3623     for ac_exec_ext in '' $ac_executable_extensions; do
3624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627     break 2
3628   fi
3629 done
3630   done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$ac_cv_prog_CC"; then
3647   ac_ct_CC=$CC
3648   # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   if test -n "$ac_ct_CC"; then
3656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663     for ac_exec_ext in '' $ac_executable_extensions; do
3664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665     ac_cv_prog_ac_ct_CC="gcc"
3666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667     break 2
3668   fi
3669 done
3670   done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3679 else
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 fi
3683
3684   if test "x$ac_ct_CC" = x; then
3685     CC=""
3686   else
3687     case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693     CC=$ac_ct_CC
3694   fi
3695 else
3696   CC="$ac_cv_prog_CC"
3697 fi
3698
3699 if test -z "$CC"; then
3700           if test -n "$ac_tool_prefix"; then
3701     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}cc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   if test -n "$CC"; then
3709   ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     ac_cv_prog_CC="${ac_tool_prefix}cc"
3719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723   done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738   fi
3739 fi
3740 if test -z "$CC"; then
3741   # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CC+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   if test -n "$CC"; then
3749   ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751   ac_prog_rejected=no
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760        ac_prog_rejected=yes
3761        continue
3762      fi
3763     ac_cv_prog_CC="cc"
3764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768   done
3769 IFS=$as_save_IFS
3770
3771 if test $ac_prog_rejected = yes; then
3772   # We found a bogon in the path, so make sure we never use it.
3773   set dummy $ac_cv_prog_CC
3774   shift
3775   if test $# != 0; then
3776     # We chose a different compiler from the bogus one.
3777     # However, it has the same basename, so the bogon will be chosen
3778     # first if we set CC to just the basename; use the full file name.
3779     shift
3780     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3781   fi
3782 fi
3783 fi
3784 fi
3785 CC=$ac_cv_prog_CC
3786 if test -n "$CC"; then
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3789 else
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3792 fi
3793
3794
3795 fi
3796 if test -z "$CC"; then
3797   if test -n "$ac_tool_prefix"; then
3798   for ac_prog in cl.exe
3799   do
3800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if test -n "$CC"; then
3808   ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815     for ac_exec_ext in '' $ac_executable_extensions; do
3816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822   done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836
3837     test -n "$CC" && break
3838   done
3839 fi
3840 if test -z "$CC"; then
3841   ac_ct_CC=$CC
3842   for ac_prog in cl.exe
3843 do
3844   # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   if test -n "$ac_ct_CC"; then
3852   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859     for ac_exec_ext in '' $ac_executable_extensions; do
3860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861     ac_cv_prog_ac_ct_CC="$ac_prog"
3862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3875 else
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3878 fi
3879
3880
3881   test -n "$ac_ct_CC" && break
3882 done
3883
3884   if test "x$ac_ct_CC" = x; then
3885     CC=""
3886   else
3887     case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893     CC=$ac_ct_CC
3894   fi
3895 fi
3896
3897 fi
3898
3899
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $? "no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details" "$LINENO" 5; }
3904
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907 set X $ac_compile
3908 ac_compiler=$2
3909 for ac_option in --version -v -V -qversion; do
3910   { { ac_try="$ac_compiler $ac_option >&5"
3911 case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918   ac_status=$?
3919   if test -s conftest.err; then
3920     sed '10a\
3921 ... rest of stderr output deleted ...
3922          10q' conftest.err >conftest.er1
3923     cat conftest.er1 >&5
3924   fi
3925   rm -f conftest.er1 conftest.err
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }
3928 done
3929
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h.  */
3932
3933 int main (void)
3934 {
3935
3936  ;
3937  return 0;
3938 }
3939 _ACEOF
3940 ac_clean_files_save=$ac_clean_files
3941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3942 # Try to create an executable without -o first, disregard a.out.
3943 # It will help us diagnose broken compilers, and finding out an intuition
3944 # of exeext.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3946 $as_echo_n "checking whether the C compiler works... " >&6; }
3947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3948
3949 # The possible output files:
3950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3951
3952 ac_rmfiles=
3953 for ac_file in $ac_files
3954 do
3955   case $ac_file in
3956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3958   esac
3959 done
3960 rm -f $ac_rmfiles
3961
3962 if { { ac_try="$ac_link_default"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969   (eval "$ac_link_default") 2>&5
3970   ac_status=$?
3971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972   test $ac_status = 0; }; then :
3973   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3975 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3976 # so that the user can short-circuit this test for compilers unknown to
3977 # Autoconf.
3978 for ac_file in $ac_files ''
3979 do
3980   test -f "$ac_file" || continue
3981   case $ac_file in
3982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3983         ;;
3984     [ab].out )
3985         # We found the default executable, but exeext='' is most
3986         # certainly right.
3987         break;;
3988     *.* )
3989         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3990         then :; else
3991            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992         fi
3993         # We set ac_cv_exeext here because the later test for it is not
3994         # safe: cross compilers may not add the suffix if given an `-o'
3995         # argument, so we may need to know it at that point already.
3996         # Even if this section looks crufty: it has the advantage of
3997         # actually working.
3998         break;;
3999     * )
4000         break;;
4001   esac
4002 done
4003 test "$ac_cv_exeext" = no && ac_cv_exeext=
4004
4005 else
4006   ac_file=''
4007 fi
4008 if test -z "$ac_file"; then :
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error 77 "C compiler cannot create executables
4017 See \`config.log' for more details" "$LINENO" 5; }
4018 else
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4023 $as_echo_n "checking for C compiler default output file name... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4025 $as_echo "$ac_file" >&6; }
4026 ac_exeext=$ac_cv_exeext
4027
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4029 ac_clean_files=$ac_clean_files_save
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4031 $as_echo_n "checking for suffix of executables... " >&6; }
4032 if { { ac_try="$ac_link"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039   (eval "$ac_link") 2>&5
4040   ac_status=$?
4041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042   test $ac_status = 0; }; then :
4043   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4044 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4045 # work properly (i.e., refer to `conftest.exe'), while it won't with
4046 # `rm'.
4047 for ac_file in conftest.exe conftest conftest.*; do
4048   test -f "$ac_file" || continue
4049   case $ac_file in
4050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4052           break;;
4053     * ) break;;
4054   esac
4055 done
4056 else
4057   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4060 See \`config.log' for more details" "$LINENO" 5; }
4061 fi
4062 rm -f conftest conftest$ac_cv_exeext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4064 $as_echo "$ac_cv_exeext" >&6; }
4065
4066 rm -f conftest.$ac_ext
4067 EXEEXT=$ac_cv_exeext
4068 ac_exeext=$EXEEXT
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071 #include <stdio.h>
4072 int main (void)
4073 {
4074 FILE *f = fopen ("conftest.out", "w");
4075  return ferror (f) || fclose (f) != 0;
4076
4077  ;
4078  return 0;
4079 }
4080 _ACEOF
4081 ac_clean_files="$ac_clean_files conftest.out"
4082 # Check that the compiler produces executables we can run.  If not, either
4083 # the compiler is broken, or we cross compile.
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4085 $as_echo_n "checking whether we are cross compiling... " >&6; }
4086 if test "$cross_compiling" != yes; then
4087   { { ac_try="$ac_link"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094   (eval "$ac_link") 2>&5
4095   ac_status=$?
4096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097   test $ac_status = 0; }
4098   if { ac_try='./conftest$ac_cv_exeext'
4099   { { case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105   (eval "$ac_try") 2>&5
4106   ac_status=$?
4107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108   test $ac_status = 0; }; }; then
4109     cross_compiling=no
4110   else
4111     if test "$cross_compiling" = maybe; then
4112         cross_compiling=yes
4113     else
4114         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot run C compiled programs.
4117 If you meant to cross compile, use \`--host'.
4118 See \`config.log' for more details" "$LINENO" 5; }
4119     fi
4120   fi
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4123 $as_echo "$cross_compiling" >&6; }
4124
4125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4126 ac_clean_files=$ac_clean_files_save
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4128 $as_echo_n "checking for suffix of object files... " >&6; }
4129 if ${ac_cv_objext+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h.  */
4134
4135 int main (void)
4136 {
4137
4138  ;
4139  return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.o conftest.obj
4143 if { { ac_try="$ac_compile"
4144 case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150   (eval "$ac_compile") 2>&5
4151   ac_status=$?
4152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153   test $ac_status = 0; }; then :
4154   for ac_file in conftest.o conftest.obj conftest.*; do
4155   test -f "$ac_file" || continue;
4156   case $ac_file in
4157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4158     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4159        break;;
4160   esac
4161 done
4162 else
4163   $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of object files: cannot compile
4169 See \`config.log' for more details" "$LINENO" 5; }
4170 fi
4171 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4174 $as_echo "$ac_cv_objext" >&6; }
4175 OBJEXT=$ac_cv_objext
4176 ac_objext=$OBJEXT
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4179 if ${ac_cv_c_compiler_gnu+:} false; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184
4185 int main (void)
4186 {
4187 #ifndef __GNUC__
4188        choke me
4189 #endif
4190
4191  ;
4192  return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196   ac_compiler_gnu=yes
4197 else
4198   ac_compiler_gnu=no
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4207   GCC=yes
4208 else
4209   GCC=
4210 fi
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if ${ac_cv_prog_cc_g+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   ac_save_c_werror_flag=$ac_c_werror_flag
4219    ac_c_werror_flag=yes
4220    ac_cv_prog_cc_g=no
4221    CFLAGS="-g"
4222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224
4225 int main (void)
4226 {
4227
4228  ;
4229  return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233   ac_cv_prog_cc_g=yes
4234 else
4235   CFLAGS=""
4236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int main (void)
4240 {
4241
4242  ;
4243  return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247
4248 else
4249   ac_c_werror_flag=$ac_save_c_werror_flag
4250          CFLAGS="-g"
4251          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253
4254 int main (void)
4255 {
4256
4257  ;
4258  return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262   ac_cv_prog_cc_g=yes
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269    ac_c_werror_flag=$ac_save_c_werror_flag
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274   CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276   if test "$GCC" = yes; then
4277     CFLAGS="-g -O2"
4278   else
4279     CFLAGS="-g"
4280   fi
4281 else
4282   if test "$GCC" = yes; then
4283     CFLAGS="-O2"
4284   else
4285     CFLAGS=
4286   fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297 #include <stdarg.h>
4298 #include <stdio.h>
4299 struct stat;
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4304      char **p;
4305      int i;
4306 {
4307   return p[i];
4308 }
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4310 {
4311   char *s;
4312   va_list v;
4313   va_start (v,p);
4314   s = g (p, va_arg (v,int));
4315   va_end (v);
4316   return s;
4317 }
4318
4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4320    function prototypes and stuff, but not '\xHH' hex character constants.
4321    These don't provoke an error unfortunately, instead are silently treated
4322    as 'x'.  The following induces an error, until -std is added to get
4323    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4324    array size at least.  It's necessary to write '\x00'==0 to get something
4325    that's true only with -std.  */
4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4327
4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4329    inside strings and character constants.  */
4330 #define FOO(x) 'x'
4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4332
4333 int test (int i, double x);
4334 struct s1 {int (*f) (int a);};
4335 struct s2 {int (*f) (double a);};
4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4337 int argc;
4338 char **argv;
4339 int main (void)
4340 {
4341 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4342  ;
4343  return 0;
4344 }
4345 _ACEOF
4346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4347         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4348 do
4349   CC="$ac_save_CC $ac_arg"
4350   if ac_fn_c_try_compile "$LINENO"; then :
4351   ac_cv_prog_cc_c89=$ac_arg
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext
4354   test "x$ac_cv_prog_cc_c89" != "xno" && break
4355 done
4356 rm -f conftest.$ac_ext
4357 CC=$ac_save_CC
4358
4359 fi
4360 # AC_CACHE_VAL
4361 case "x$ac_cv_prog_cc_c89" in
4362   x)
4363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364 $as_echo "none needed" >&6; } ;;
4365   xno)
4366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4367 $as_echo "unsupported" >&6; } ;;
4368   *)
4369     CC="$CC $ac_cv_prog_cc_c89"
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4372 esac
4373 if test "x$ac_cv_prog_cc_c89" != xno; then :
4374
4375 fi
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 if test "x$CC" != xcc; then
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4385 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4386 else
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4388 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4389 fi
4390 set dummy $CC; ac_cc=`$as_echo "$2" |
4391                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4392 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397
4398 int main (void)
4399 {
4400
4401  ;
4402  return 0;
4403 }
4404 _ACEOF
4405 # Make sure it works both with $CC and with simple cc.
4406 # We do the test twice because some compilers refuse to overwrite an
4407 # existing .o file with -o, though they will create one.
4408 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4409 rm -f conftest2.*
4410 if { { case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419   test $ac_status = 0; } &&
4420    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426   (eval "$ac_try") 2>&5
4427   ac_status=$?
4428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429   test $ac_status = 0; };
4430 then
4431   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4432   if test "x$CC" != xcc; then
4433     # Test first that cc exists at all.
4434     if { ac_try='cc -c conftest.$ac_ext >&5'
4435   { { case "(($ac_try" in
4436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437   *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441   (eval "$ac_try") 2>&5
4442   ac_status=$?
4443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444   test $ac_status = 0; }; }; then
4445       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4446       rm -f conftest2.*
4447       if { { case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453   (eval "$ac_try") 2>&5
4454   ac_status=$?
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; } &&
4457          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463   (eval "$ac_try") 2>&5
4464   ac_status=$?
4465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466   test $ac_status = 0; };
4467       then
4468         # cc works too.
4469         :
4470       else
4471         # cc exists but doesn't like -o.
4472         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4473       fi
4474     fi
4475   fi
4476 else
4477   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4478 fi
4479 rm -f core conftest*
4480
4481 fi
4482 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4485 else
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488
4489 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4490
4491 fi
4492
4493 # expand $ac_aux_dir to an absolute path
4494 am_aux_dir=`cd $ac_aux_dir && pwd`
4495
4496 # FIXME: we rely on the cache variable name because
4497 # there is no other way.
4498 set dummy $CC
4499 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4500 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4501 if test "$am_t" != yes; then
4502    # Losing compiler, so override with the script.
4503    # FIXME: It is wrong to rewrite CC.
4504    # But if we don't then we get into trouble of one sort or another.
4505    # A longer-term fix would be to have automake use am__CC in this case,
4506    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507    CC="$am_aux_dir/compile $CC"
4508 fi
4509
4510
4511 ac_ext=c
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4517 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4518 # On Suns, sometimes $CPP names a directory.
4519 if test -n "$CPP" && test -d "$CPP"; then
4520   CPP=
4521 fi
4522 if test -z "$CPP"; then
4523   if ${ac_cv_prog_CPP+:} false; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526       # Double quotes because CPP needs to be expanded
4527     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4528     do
4529       ac_preproc_ok=false
4530 for ac_c_preproc_warn_flag in '' yes
4531 do
4532   # Use a header file that comes with gcc, so configuring glibc
4533   # with a fresh cross-compiler works.
4534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535   # <limits.h> exists even on freestanding compilers.
4536   # On the NeXT, cc -E runs the code through the compiler's parser,
4537   # not just through cpp. "Syntax error" is here to catch this case.
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545                      Syntax error
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548
4549 else
4550   # Broken: fails on valid input.
4551 continue
4552 fi
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4554
4555   # OK, works on sane cases.  Now check whether nonexistent headers
4556   # can be detected and how.
4557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #include <ac_nonexistent.h>
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562   # Broken: success on invalid input.
4563 continue
4564 else
4565   # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4568 fi
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4570
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4575   break
4576 fi
4577
4578     done
4579     ac_cv_prog_CPP=$CPP
4580
4581 fi
4582   CPP=$ac_cv_prog_CPP
4583 else
4584   ac_cv_prog_CPP=$CPP
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4587 $as_echo "$CPP" >&6; }
4588 ac_preproc_ok=false
4589 for ac_c_preproc_warn_flag in '' yes
4590 do
4591   # Use a header file that comes with gcc, so configuring glibc
4592   # with a fresh cross-compiler works.
4593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594   # <limits.h> exists even on freestanding compilers.
4595   # On the NeXT, cc -E runs the code through the compiler's parser,
4596   # not just through cpp. "Syntax error" is here to catch this case.
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599 #ifdef __STDC__
4600 # include <limits.h>
4601 #else
4602 # include <assert.h>
4603 #endif
4604                      Syntax error
4605 _ACEOF
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4607
4608 else
4609   # Broken: fails on valid input.
4610 continue
4611 fi
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4613
4614   # OK, works on sane cases.  Now check whether nonexistent headers
4615   # can be detected and how.
4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <ac_nonexistent.h>
4619 _ACEOF
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621   # Broken: success on invalid input.
4622 continue
4623 else
4624   # Passes both tests.
4625 ac_preproc_ok=:
4626 break
4627 fi
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4629
4630 done
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then :
4634
4635 else
4636   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4639 See \`config.log' for more details" "$LINENO" 5; }
4640 fi
4641
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648
4649   IFS=$xc_prog_cc_prev_IFS
4650   LIBS=$xc_prog_cc_prev_LIBS
4651   CFLAGS=$xc_prog_cc_prev_CFLAGS
4652   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4653   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4654
4655
4656
4657
4658
4659
4660 am__api_version='1.11'
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4663 $as_echo_n "checking whether build environment is sane... " >&6; }
4664 # Just in case
4665 sleep 1
4666 echo timestamp > conftest.file
4667 # Reject unsafe characters in $srcdir or the absolute working directory
4668 # name.  Accept space and tab only in the latter.
4669 am_lf='
4670 '
4671 case `pwd` in
4672   *[\\\"\#\$\&\'\`$am_lf]*)
4673     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4674 esac
4675 case $srcdir in
4676   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4677     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4678 esac
4679
4680 # Do `set' in a subshell so we don't clobber the current shell's
4681 # arguments.  Must try -L first in case configure is actually a
4682 # symlink; some systems play weird games with the mod time of symlinks
4683 # (eg FreeBSD returns the mod time of the symlink's containing
4684 # directory).
4685 if (
4686    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4687    if test "$*" = "X"; then
4688       # -L didn't work.
4689       set X `ls -t "$srcdir/configure" conftest.file`
4690    fi
4691    rm -f conftest.file
4692    if test "$*" != "X $srcdir/configure conftest.file" \
4693       && test "$*" != "X conftest.file $srcdir/configure"; then
4694
4695       # If neither matched, then we have a broken ls.  This can happen
4696       # if, for instance, CONFIG_SHELL is bash and it inherits a
4697       # broken ls alias from the environment.  This has actually
4698       # happened.  Such a system could not be considered "sane".
4699       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4700 alias in your environment" "$LINENO" 5
4701    fi
4702
4703    test "$2" = conftest.file
4704    )
4705 then
4706    # Ok.
4707    :
4708 else
4709    as_fn_error $? "newly created file is older than distributed files!
4710 Check your system clock" "$LINENO" 5
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 $as_echo "yes" >&6; }
4714 test "$program_prefix" != NONE &&
4715   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4716 # Use a double $ so make ignores it.
4717 test "$program_suffix" != NONE &&
4718   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4719 # Double any \ or $.
4720 # By default was `s,x,x', remove it if useless.
4721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4723
4724 if test x"${MISSING+set}" != xset; then
4725   case $am_aux_dir in
4726   *\ * | *\     *)
4727     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4728   *)
4729     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4730   esac
4731 fi
4732 # Use eval to expand $SHELL
4733 if eval "$MISSING --run true"; then
4734   am_missing_run="$MISSING --run "
4735 else
4736   am_missing_run=
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4738 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4739 fi
4740
4741 if test x"${install_sh}" != xset; then
4742   case $am_aux_dir in
4743   *\ * | *\     *)
4744     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4745   *)
4746     install_sh="\${SHELL} $am_aux_dir/install-sh"
4747   esac
4748 fi
4749
4750 # Installed binaries are usually stripped using `strip' when the user
4751 # run `make install-strip'.  However `strip' might not be the right
4752 # tool to use in cross-compilation environments, therefore Automake
4753 # will honor the `STRIP' environment variable to overrule this program.
4754 if test "$cross_compiling" != no; then
4755   if test -n "$ac_tool_prefix"; then
4756   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}strip; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_STRIP+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   if test -n "$STRIP"; then
4764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778   done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 STRIP=$ac_cv_prog_STRIP
4784 if test -n "$STRIP"; then
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4786 $as_echo "$STRIP" >&6; }
4787 else
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792
4793 fi
4794 if test -z "$ac_cv_prog_STRIP"; then
4795   ac_ct_STRIP=$STRIP
4796   # Extract the first word of "strip", so it can be a program name with args.
4797 set dummy strip; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   if test -n "$ac_ct_STRIP"; then
4804   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_prog_ac_ct_STRIP="strip"
4814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818   done
4819 IFS=$as_save_IFS
4820
4821 fi
4822 fi
4823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4824 if test -n "$ac_ct_STRIP"; then
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4826 $as_echo "$ac_ct_STRIP" >&6; }
4827 else
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4830 fi
4831
4832   if test "x$ac_ct_STRIP" = x; then
4833     STRIP=":"
4834   else
4835     case $cross_compiling:$ac_tool_warned in
4836 yes:)
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839 ac_tool_warned=yes ;;
4840 esac
4841     STRIP=$ac_ct_STRIP
4842   fi
4843 else
4844   STRIP="$ac_cv_prog_STRIP"
4845 fi
4846
4847 fi
4848 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4851 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4852 if test -z "$MKDIR_P"; then
4853   if ${ac_cv_path_mkdir+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_prog in mkdir gmkdir; do
4862          for ac_exec_ext in '' $ac_executable_extensions; do
4863            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4864            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4865              'mkdir (GNU coreutils) '* | \
4866              'mkdir (coreutils) '* | \
4867              'mkdir (fileutils) '4.1*)
4868                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4869                break 3;;
4870            esac
4871          done
4872        done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877
4878   test -d ./--version && rmdir ./--version
4879   if test "${ac_cv_path_mkdir+set}" = set; then
4880     MKDIR_P="$ac_cv_path_mkdir -p"
4881   else
4882     # As a last resort, use the slow shell script.  Don't cache a
4883     # value for MKDIR_P within a source directory, because that will
4884     # break other packages using the cache if that directory is
4885     # removed, or if the value is a relative name.
4886     MKDIR_P="$ac_install_sh -d"
4887   fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4890 $as_echo "$MKDIR_P" >&6; }
4891
4892 mkdir_p="$MKDIR_P"
4893 case $mkdir_p in
4894   [\\/$]* | ?:[\\/]*) ;;
4895   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4896 esac
4897
4898 for ac_prog in gawk mawk nawk awk
4899 do
4900   # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_AWK+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   if test -n "$AWK"; then
4908   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_prog_AWK="$ac_prog"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 AWK=$ac_cv_prog_AWK
4928 if test -n "$AWK"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4930 $as_echo "$AWK" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936
4937   test -n "$AWK" && break
4938 done
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4942 set x ${MAKE-make}
4943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4944 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat >conftest.make <<\_ACEOF
4948 SHELL = /bin/sh
4949 all:
4950         @echo '@@@%%%=$(MAKE)=@@@%%%'
4951 _ACEOF
4952 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4954   *@@@%%%=?*=@@@%%%*)
4955     eval ac_cv_prog_make_${ac_make}_set=yes;;
4956   *)
4957     eval ac_cv_prog_make_${ac_make}_set=no;;
4958 esac
4959 rm -f conftest.make
4960 fi
4961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4963 $as_echo "yes" >&6; }
4964   SET_MAKE=
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968   SET_MAKE="MAKE=${MAKE-make}"
4969 fi
4970
4971 rm -rf .tst 2>/dev/null
4972 mkdir .tst 2>/dev/null
4973 if test -d .tst; then
4974   am__leading_dot=.
4975 else
4976   am__leading_dot=_
4977 fi
4978 rmdir .tst 2>/dev/null
4979
4980 DEPDIR="${am__leading_dot}deps"
4981
4982 ac_config_commands="$ac_config_commands depfiles"
4983
4984
4985 am_make=${MAKE-make}
4986 cat > confinc << 'END'
4987 am__doit:
4988         @echo this is the am__doit target
4989 .PHONY: am__doit
4990 END
4991 # If we don't find an include directive, just comment out the code.
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4993 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4994 am__include="#"
4995 am__quote=
4996 _am_result=none
4997 # First try GNU make style include.
4998 echo "include confinc" > confmf
4999 # Ignore all kinds of additional output from `make'.
5000 case `$am_make -s -f confmf 2> /dev/null` in #(
5001 *the\ am__doit\ target*)
5002   am__include=include
5003   am__quote=
5004   _am_result=GNU
5005   ;;
5006 esac
5007 # Now try BSD make style include.
5008 if test "$am__include" = "#"; then
5009    echo '.include "confinc"' > confmf
5010    case `$am_make -s -f confmf 2> /dev/null` in #(
5011    *the\ am__doit\ target*)
5012      am__include=.include
5013      am__quote="\""
5014      _am_result=BSD
5015      ;;
5016    esac
5017 fi
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5021 $as_echo "$_am_result" >&6; }
5022 rm -f confinc confmf
5023
5024 # Check whether --enable-dependency-tracking was given.
5025 if test "${enable_dependency_tracking+set}" = set; then :
5026   enableval=$enable_dependency_tracking;
5027 fi
5028
5029 if test "x$enable_dependency_tracking" != xno; then
5030   am_depcomp="$ac_aux_dir/depcomp"
5031   AMDEPBACKSLASH='\'
5032   am__nodep='_no'
5033 fi
5034  if test "x$enable_dependency_tracking" != xno; then
5035   AMDEP_TRUE=
5036   AMDEP_FALSE='#'
5037 else
5038   AMDEP_TRUE='#'
5039   AMDEP_FALSE=
5040 fi
5041
5042
5043 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5044   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5045   # is not polluted with repeated "-I."
5046   am__isrc=' -I$(srcdir)'
5047   # test to see if srcdir already configured
5048   if test -f $srcdir/config.status; then
5049     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5050   fi
5051 fi
5052
5053 # test whether we have cygpath
5054 if test -z "$CYGPATH_W"; then
5055   if (cygpath --version) >/dev/null 2>/dev/null; then
5056     CYGPATH_W='cygpath -w'
5057   else
5058     CYGPATH_W=echo
5059   fi
5060 fi
5061
5062
5063 # Define the identity of the package.
5064  PACKAGE='c-ares'
5065  VERSION='1.10.0'
5066
5067
5068 cat >>confdefs.h <<_ACEOF
5069 #define PACKAGE "$PACKAGE"
5070 _ACEOF
5071
5072
5073 cat >>confdefs.h <<_ACEOF
5074 #define VERSION "$VERSION"
5075 _ACEOF
5076
5077 # Some tools Automake needs.
5078
5079 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5080
5081
5082 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5083
5084
5085 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5086
5087
5088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5089
5090
5091 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5092
5093 # We need awk for the "check" target.  The system "awk" is bad on
5094 # some platforms.
5095 # Always define AMTAR for backward compatibility.  Yes, it's still used
5096 # in the wild :-(  We should find a proper way to deprecate it ...
5097 AMTAR='$${TAR-tar}'
5098
5099 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5100
5101
5102
5103
5104 depcc="$CC"   am_compiler_list=
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5107 $as_echo_n "checking dependency style of $depcc... " >&6; }
5108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5112   # We make a subdir and do the tests there.  Otherwise we can end up
5113   # making bogus files that we don't know about and never remove.  For
5114   # instance it was reported that on HP-UX the gcc test will end up
5115   # making a dummy file named `D' -- because `-MD' means `put the output
5116   # in D'.
5117   rm -rf conftest.dir
5118   mkdir conftest.dir
5119   # Copy depcomp to subdir because otherwise we won't find it if we're
5120   # using a relative directory.
5121   cp "$am_depcomp" conftest.dir
5122   cd conftest.dir
5123   # We will build objects and dependencies in a subdirectory because
5124   # it helps to detect inapplicable dependency modes.  For instance
5125   # both Tru64's cc and ICC support -MD to output dependencies as a
5126   # side effect of compilation, but ICC will put the dependencies in
5127   # the current directory while Tru64 will put them in the object
5128   # directory.
5129   mkdir sub
5130
5131   am_cv_CC_dependencies_compiler_type=none
5132   if test "$am_compiler_list" = ""; then
5133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5134   fi
5135   am__universal=false
5136   case " $depcc " in #(
5137      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5138      esac
5139
5140   for depmode in $am_compiler_list; do
5141     # Setup a source with many dependencies, because some compilers
5142     # like to wrap large dependency lists on column 80 (with \), and
5143     # we should not choose a depcomp mode which is confused by this.
5144     #
5145     # We need to recreate these files for each test, as the compiler may
5146     # overwrite some of them when testing with obscure command lines.
5147     # This happens at least with the AIX C compiler.
5148     : > sub/conftest.c
5149     for i in 1 2 3 4 5 6; do
5150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5151       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5152       # Solaris 8's {/usr,}/bin/sh.
5153       touch sub/conftst$i.h
5154     done
5155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5156
5157     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5158     # mode.  It turns out that the SunPro C++ compiler does not properly
5159     # handle `-M -o', and we need to detect this.  Also, some Intel
5160     # versions had trouble with output in subdirs
5161     am__obj=sub/conftest.${OBJEXT-o}
5162     am__minus_obj="-o $am__obj"
5163     case $depmode in
5164     gcc)
5165       # This depmode causes a compiler race in universal mode.
5166       test "$am__universal" = false || continue
5167       ;;
5168     nosideeffect)
5169       # after this tag, mechanisms are not by side-effect, so they'll
5170       # only be used when explicitly requested
5171       if test "x$enable_dependency_tracking" = xyes; then
5172         continue
5173       else
5174         break
5175       fi
5176       ;;
5177     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5178       # This compiler won't grok `-c -o', but also, the minuso test has
5179       # not run yet.  These depmodes are late enough in the game, and
5180       # so weak that their functioning should not be impacted.
5181       am__obj=conftest.${OBJEXT-o}
5182       am__minus_obj=
5183       ;;
5184     none) break ;;
5185     esac
5186     if depmode=$depmode \
5187        source=sub/conftest.c object=$am__obj \
5188        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5189        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5190          >/dev/null 2>conftest.err &&
5191        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5192        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5193        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5194        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5195       # icc doesn't choke on unknown options, it will just issue warnings
5196       # or remarks (even with -Werror).  So we grep stderr for any message
5197       # that says an option was ignored or not supported.
5198       # When given -MP, icc 7.0 and 7.1 complain thusly:
5199       #   icc: Command line warning: ignoring option '-M'; no argument required
5200       # The diagnosis changed in icc 8.0:
5201       #   icc: Command line remark: option '-MP' not supported
5202       if (grep 'ignoring option' conftest.err ||
5203           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5204         am_cv_CC_dependencies_compiler_type=$depmode
5205         break
5206       fi
5207     fi
5208   done
5209
5210   cd ..
5211   rm -rf conftest.dir
5212 else
5213   am_cv_CC_dependencies_compiler_type=none
5214 fi
5215
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5220
5221  if
5222   test "x$enable_dependency_tracking" != xno \
5223   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5224   am__fastdepCC_TRUE=
5225   am__fastdepCC_FALSE='#'
5226 else
5227   am__fastdepCC_TRUE='#'
5228   am__fastdepCC_FALSE=
5229 fi
5230
5231
5232
5233
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5238 if ${ac_cv_path_GREP+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   if test -z "$GREP"; then
5242   ac_path_GREP_found=false
5243   # Loop through the user's path and test for each of PROGNAME-LIST
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_prog in grep ggrep; do
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5252       as_fn_executable_p "$ac_path_GREP" || continue
5253 # Check for GNU ac_path_GREP and select it if it is found.
5254   # Check for GNU $ac_path_GREP
5255 case `"$ac_path_GREP" --version 2>&1` in
5256 *GNU*)
5257   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5258 *)
5259   ac_count=0
5260   $as_echo_n 0123456789 >"conftest.in"
5261   while :
5262   do
5263     cat "conftest.in" "conftest.in" >"conftest.tmp"
5264     mv "conftest.tmp" "conftest.in"
5265     cp "conftest.in" "conftest.nl"
5266     $as_echo 'GREP' >> "conftest.nl"
5267     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269     as_fn_arith $ac_count + 1 && ac_count=$as_val
5270     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5271       # Best one so far, save it but keep looking for a better one
5272       ac_cv_path_GREP="$ac_path_GREP"
5273       ac_path_GREP_max=$ac_count
5274     fi
5275     # 10*(2^10) chars as input seems more than enough
5276     test $ac_count -gt 10 && break
5277   done
5278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281       $ac_path_GREP_found && break 3
5282     done
5283   done
5284   done
5285 IFS=$as_save_IFS
5286   if test -z "$ac_cv_path_GREP"; then
5287     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288   fi
5289 else
5290   ac_cv_path_GREP=$GREP
5291 fi
5292
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5295 $as_echo "$ac_cv_path_GREP" >&6; }
5296  GREP="$ac_cv_path_GREP"
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5300 $as_echo_n "checking for egrep... " >&6; }
5301 if ${ac_cv_path_EGREP+:} false; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5305    then ac_cv_path_EGREP="$GREP -E"
5306    else
5307      if test -z "$EGREP"; then
5308   ac_path_EGREP_found=false
5309   # Loop through the user's path and test for each of PROGNAME-LIST
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315     for ac_prog in egrep; do
5316     for ac_exec_ext in '' $ac_executable_extensions; do
5317       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5318       as_fn_executable_p "$ac_path_EGREP" || continue
5319 # Check for GNU ac_path_EGREP and select it if it is found.
5320   # Check for GNU $ac_path_EGREP
5321 case `"$ac_path_EGREP" --version 2>&1` in
5322 *GNU*)
5323   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5324 *)
5325   ac_count=0
5326   $as_echo_n 0123456789 >"conftest.in"
5327   while :
5328   do
5329     cat "conftest.in" "conftest.in" >"conftest.tmp"
5330     mv "conftest.tmp" "conftest.in"
5331     cp "conftest.in" "conftest.nl"
5332     $as_echo 'EGREP' >> "conftest.nl"
5333     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335     as_fn_arith $ac_count + 1 && ac_count=$as_val
5336     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5337       # Best one so far, save it but keep looking for a better one
5338       ac_cv_path_EGREP="$ac_path_EGREP"
5339       ac_path_EGREP_max=$ac_count
5340     fi
5341     # 10*(2^10) chars as input seems more than enough
5342     test $ac_count -gt 10 && break
5343   done
5344   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5345 esac
5346
5347       $ac_path_EGREP_found && break 3
5348     done
5349   done
5350   done
5351 IFS=$as_save_IFS
5352   if test -z "$ac_cv_path_EGREP"; then
5353     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354   fi
5355 else
5356   ac_cv_path_EGREP=$EGREP
5357 fi
5358
5359    fi
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5362 $as_echo "$ac_cv_path_EGREP" >&6; }
5363  EGREP="$ac_cv_path_EGREP"
5364
5365
5366
5367
5368       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5369 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h.  */
5372
5373 #ifdef _AIX
5374    yes_this_is_aix
5375 #endif
5376
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5380
5381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5384
5385
5386 else
5387
5388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390
5391 fi
5392 rm -f conftest*
5393
5394
5395
5396
5397     #
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5399 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402
5403
5404
5405 int main (void)
5406 {
5407
5408 #ifdef _THREAD_SAFE
5409       int dummy=1;
5410 #else
5411       force compilation error
5412 #endif
5413
5414  ;
5415  return 0;
5416 }
5417
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420
5421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5423     tmp_thread_safe_initially_defined="yes"
5424
5425 else
5426
5427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429     tmp_thread_safe_initially_defined="no"
5430
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433   #
5434   if test "$tmp_thread_safe_initially_defined" = "no"; then
5435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5436 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5437
5438   case $host_os in
5439     aix[123].* | aix4.[012].*)
5440             tmp_need_thread_safe="no"
5441       ;;
5442     aix*)
5443             tmp_need_thread_safe="yes"
5444       ;;
5445     *)
5446       tmp_need_thread_safe="no"
5447       ;;
5448   esac
5449
5450     if test "$tmp_need_thread_safe" = "yes"; then
5451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5453     else
5454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456     fi
5457   fi
5458   #
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
5460 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
5461   if test "$tmp_thread_safe_initially_defined" = "yes" ||
5462     test "$tmp_need_thread_safe" = "yes"; then
5463
5464
5465 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
5466
5467 cat >>confdefs.h <<_EOF
5468 #ifndef _THREAD_SAFE
5469 #  define _THREAD_SAFE
5470 #endif
5471 _EOF
5472
5473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5474 $as_echo "yes" >&6; }
5475   else
5476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478   fi
5479   #
5480
5481
5482     #
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
5484 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
5485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487
5488
5489
5490 int main (void)
5491 {
5492
5493 #ifdef _REENTRANT
5494       int dummy=1;
5495 #else
5496       force compilation error
5497 #endif
5498
5499  ;
5500  return 0;
5501 }
5502
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505
5506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 $as_echo "yes" >&6; }
5508     tmp_reentrant_initially_defined="yes"
5509
5510 else
5511
5512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514     tmp_reentrant_initially_defined="no"
5515
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518   #
5519   if test "$tmp_reentrant_initially_defined" = "no"; then
5520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
5521 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
5522
5523   case $host_os in
5524     solaris*)
5525       tmp_need_reentrant="yes"
5526       ;;
5527     *)
5528       tmp_need_reentrant="no"
5529       ;;
5530   esac
5531
5532     if test "$tmp_need_reentrant" = "no"; then
5533
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536
5537
5538 #include <errno.h>
5539
5540 int main (void)
5541 {
5542
5543       if(0 != errno)
5544         return 1;
5545
5546  ;
5547  return 0;
5548 }
5549
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552
5553     tmp_errno="yes"
5554
5555 else
5556
5557     tmp_errno="no"
5558
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561   if test "$tmp_errno" = "yes"; then
5562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564
5565
5566 #include <errno.h>
5567
5568 int main (void)
5569 {
5570
5571 #ifdef errno
5572         int dummy=1;
5573 #else
5574         force compilation error
5575 #endif
5576
5577  ;
5578  return 0;
5579 }
5580
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583
5584       tmp_errno="errno_macro_defined"
5585
5586 else
5587
5588       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590
5591
5592 #define _REENTRANT
5593 #include <errno.h>
5594
5595 int main (void)
5596 {
5597
5598 #ifdef errno
5599           int dummy=1;
5600 #else
5601           force compilation error
5602 #endif
5603
5604  ;
5605  return 0;
5606 }
5607
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610
5611         tmp_errno="errno_macro_needs_reentrant"
5612         tmp_need_reentrant="yes"
5613
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619   fi
5620
5621     fi
5622     if test "$tmp_need_reentrant" = "no"; then
5623
5624   if test "$tmp_need_reentrant" = "no"; then
5625
5626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h.  */
5628
5629
5630 #define gmtime_r innocuous_gmtime_r
5631 #ifdef __STDC__
5632 # include <limits.h>
5633 #else
5634 # include <assert.h>
5635 #endif
5636 #undef gmtime_r
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 char gmtime_r ();
5641 #if defined __stub_gmtime_r || defined __stub___gmtime_r
5642 choke me
5643 #endif
5644
5645 int main (void)
5646 {
5647 return gmtime_r ();
5648  ;
5649  return 0;
5650 }
5651
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654
5655     tmp_gmtime_r="yes"
5656
5657 else
5658
5659     tmp_gmtime_r="no"
5660
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext \
5663     conftest$ac_exeext conftest.$ac_ext
5664   if test "$tmp_gmtime_r" = "yes"; then
5665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h.  */
5667
5668 #include <sys/types.h>
5669 #include <time.h>
5670
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673   $EGREP "gmtime_r" >/dev/null 2>&1; then :
5674
5675       tmp_gmtime_r="proto_declared"
5676
5677 else
5678
5679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h.  */
5681
5682 #define _REENTRANT
5683 #include <sys/types.h>
5684 #include <time.h>
5685
5686 _ACEOF
5687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5688   $EGREP "gmtime_r" >/dev/null 2>&1; then :
5689
5690         tmp_gmtime_r="proto_needs_reentrant"
5691         tmp_need_reentrant="yes"
5692
5693 fi
5694 rm -f conftest*
5695
5696
5697 fi
5698 rm -f conftest*
5699
5700   fi
5701
5702   fi
5703   if test "$tmp_need_reentrant" = "no"; then
5704
5705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h.  */
5707
5708
5709 #define localtime_r innocuous_localtime_r
5710 #ifdef __STDC__
5711 # include <limits.h>
5712 #else
5713 # include <assert.h>
5714 #endif
5715 #undef localtime_r
5716 #ifdef __cplusplus
5717 extern "C"
5718 #endif
5719 char localtime_r ();
5720 #if defined __stub_localtime_r || defined __stub___localtime_r
5721 choke me
5722 #endif
5723
5724 int main (void)
5725 {
5726 return localtime_r ();
5727  ;
5728  return 0;
5729 }
5730
5731 _ACEOF
5732 if ac_fn_c_try_link "$LINENO"; then :
5733
5734     tmp_localtime_r="yes"
5735
5736 else
5737
5738     tmp_localtime_r="no"
5739
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext \
5742     conftest$ac_exeext conftest.$ac_ext
5743   if test "$tmp_localtime_r" = "yes"; then
5744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h.  */
5746
5747 #include <sys/types.h>
5748 #include <time.h>
5749
5750 _ACEOF
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752   $EGREP "localtime_r" >/dev/null 2>&1; then :
5753
5754       tmp_localtime_r="proto_declared"
5755
5756 else
5757
5758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760
5761 #define _REENTRANT
5762 #include <sys/types.h>
5763 #include <time.h>
5764
5765 _ACEOF
5766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767   $EGREP "localtime_r" >/dev/null 2>&1; then :
5768
5769         tmp_localtime_r="proto_needs_reentrant"
5770         tmp_need_reentrant="yes"
5771
5772 fi
5773 rm -f conftest*
5774
5775
5776 fi
5777 rm -f conftest*
5778
5779   fi
5780
5781   fi
5782   if test "$tmp_need_reentrant" = "no"; then
5783
5784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h.  */
5786
5787
5788 #define strerror_r innocuous_strerror_r
5789 #ifdef __STDC__
5790 # include <limits.h>
5791 #else
5792 # include <assert.h>
5793 #endif
5794 #undef strerror_r
5795 #ifdef __cplusplus
5796 extern "C"
5797 #endif
5798 char strerror_r ();
5799 #if defined __stub_strerror_r || defined __stub___strerror_r
5800 choke me
5801 #endif
5802
5803 int main (void)
5804 {
5805 return strerror_r ();
5806  ;
5807  return 0;
5808 }
5809
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812
5813     tmp_strerror_r="yes"
5814
5815 else
5816
5817     tmp_strerror_r="no"
5818
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext \
5821     conftest$ac_exeext conftest.$ac_ext
5822   if test "$tmp_strerror_r" = "yes"; then
5823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h.  */
5825
5826 #include <sys/types.h>
5827 #include <string.h>
5828
5829 _ACEOF
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831   $EGREP "strerror_r" >/dev/null 2>&1; then :
5832
5833       tmp_strerror_r="proto_declared"
5834
5835 else
5836
5837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h.  */
5839
5840 #define _REENTRANT
5841 #include <sys/types.h>
5842 #include <string.h>
5843
5844 _ACEOF
5845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5846   $EGREP "strerror_r" >/dev/null 2>&1; then :
5847
5848         tmp_strerror_r="proto_needs_reentrant"
5849         tmp_need_reentrant="yes"
5850
5851 fi
5852 rm -f conftest*
5853
5854
5855 fi
5856 rm -f conftest*
5857
5858   fi
5859
5860   fi
5861   if test "$tmp_need_reentrant" = "no"; then
5862
5863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865
5866
5867 #define strtok_r innocuous_strtok_r
5868 #ifdef __STDC__
5869 # include <limits.h>
5870 #else
5871 # include <assert.h>
5872 #endif
5873 #undef strtok_r
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char strtok_r ();
5878 #if defined __stub_strtok_r || defined __stub___strtok_r
5879 choke me
5880 #endif
5881
5882 int main (void)
5883 {
5884 return strtok_r ();
5885  ;
5886  return 0;
5887 }
5888
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"; then :
5891
5892     tmp_strtok_r="yes"
5893
5894 else
5895
5896     tmp_strtok_r="no"
5897
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext \
5900     conftest$ac_exeext conftest.$ac_ext
5901   if test "$tmp_strtok_r" = "yes"; then
5902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h.  */
5904
5905 #include <sys/types.h>
5906 #include <string.h>
5907
5908 _ACEOF
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910   $EGREP "strtok_r" >/dev/null 2>&1; then :
5911
5912       tmp_strtok_r="proto_declared"
5913
5914 else
5915
5916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h.  */
5918
5919 #define _REENTRANT
5920 #include <sys/types.h>
5921 #include <string.h>
5922
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925   $EGREP "strtok_r" >/dev/null 2>&1; then :
5926
5927         tmp_strtok_r="proto_needs_reentrant"
5928         tmp_need_reentrant="yes"
5929
5930 fi
5931 rm -f conftest*
5932
5933
5934 fi
5935 rm -f conftest*
5936
5937   fi
5938
5939   fi
5940   if test "$tmp_need_reentrant" = "no"; then
5941
5942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h.  */
5944
5945
5946 #define inet_ntoa_r innocuous_inet_ntoa_r
5947 #ifdef __STDC__
5948 # include <limits.h>
5949 #else
5950 # include <assert.h>
5951 #endif
5952 #undef inet_ntoa_r
5953 #ifdef __cplusplus
5954 extern "C"
5955 #endif
5956 char inet_ntoa_r ();
5957 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
5958 choke me
5959 #endif
5960
5961 int main (void)
5962 {
5963 return inet_ntoa_r ();
5964  ;
5965  return 0;
5966 }
5967
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970
5971     tmp_inet_ntoa_r="yes"
5972
5973 else
5974
5975     tmp_inet_ntoa_r="no"
5976
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext \
5979     conftest$ac_exeext conftest.$ac_ext
5980   if test "$tmp_inet_ntoa_r" = "yes"; then
5981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983
5984 #include <sys/types.h>
5985 #include <sys/socket.h>
5986 #include <netinet/in.h>
5987 #include <arpa/inet.h>
5988
5989 _ACEOF
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
5992
5993       tmp_inet_ntoa_r="proto_declared"
5994
5995 else
5996
5997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h.  */
5999
6000 #define _REENTRANT
6001 #include <sys/types.h>
6002 #include <sys/socket.h>
6003 #include <netinet/in.h>
6004 #include <arpa/inet.h>
6005
6006 _ACEOF
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6009
6010         tmp_inet_ntoa_r="proto_needs_reentrant"
6011         tmp_need_reentrant="yes"
6012
6013 fi
6014 rm -f conftest*
6015
6016
6017 fi
6018 rm -f conftest*
6019
6020   fi
6021
6022   fi
6023   if test "$tmp_need_reentrant" = "no"; then
6024
6025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h.  */
6027
6028
6029 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6030 #ifdef __STDC__
6031 # include <limits.h>
6032 #else
6033 # include <assert.h>
6034 #endif
6035 #undef gethostbyaddr_r
6036 #ifdef __cplusplus
6037 extern "C"
6038 #endif
6039 char gethostbyaddr_r ();
6040 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6041 choke me
6042 #endif
6043
6044 int main (void)
6045 {
6046 return gethostbyaddr_r ();
6047  ;
6048  return 0;
6049 }
6050
6051 _ACEOF
6052 if ac_fn_c_try_link "$LINENO"; then :
6053
6054     tmp_gethostbyaddr_r="yes"
6055
6056 else
6057
6058     tmp_gethostbyaddr_r="no"
6059
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext \
6062     conftest$ac_exeext conftest.$ac_ext
6063   if test "$tmp_gethostbyaddr_r" = "yes"; then
6064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066
6067 #include <sys/types.h>
6068 #include <netdb.h>
6069
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6073
6074       tmp_gethostbyaddr_r="proto_declared"
6075
6076 else
6077
6078       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h.  */
6080
6081 #define _REENTRANT
6082 #include <sys/types.h>
6083 #include <netdb.h>
6084
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6088
6089         tmp_gethostbyaddr_r="proto_needs_reentrant"
6090         tmp_need_reentrant="yes"
6091
6092 fi
6093 rm -f conftest*
6094
6095
6096 fi
6097 rm -f conftest*
6098
6099   fi
6100
6101   fi
6102   if test "$tmp_need_reentrant" = "no"; then
6103
6104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106
6107
6108 #define gethostbyname_r innocuous_gethostbyname_r
6109 #ifdef __STDC__
6110 # include <limits.h>
6111 #else
6112 # include <assert.h>
6113 #endif
6114 #undef gethostbyname_r
6115 #ifdef __cplusplus
6116 extern "C"
6117 #endif
6118 char gethostbyname_r ();
6119 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6120 choke me
6121 #endif
6122
6123 int main (void)
6124 {
6125 return gethostbyname_r ();
6126  ;
6127  return 0;
6128 }
6129
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"; then :
6132
6133     tmp_gethostbyname_r="yes"
6134
6135 else
6136
6137     tmp_gethostbyname_r="no"
6138
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext \
6141     conftest$ac_exeext conftest.$ac_ext
6142   if test "$tmp_gethostbyname_r" = "yes"; then
6143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h.  */
6145
6146 #include <sys/types.h>
6147 #include <netdb.h>
6148
6149 _ACEOF
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6152
6153       tmp_gethostbyname_r="proto_declared"
6154
6155 else
6156
6157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h.  */
6159
6160 #define _REENTRANT
6161 #include <sys/types.h>
6162 #include <netdb.h>
6163
6164 _ACEOF
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6167
6168         tmp_gethostbyname_r="proto_needs_reentrant"
6169         tmp_need_reentrant="yes"
6170
6171 fi
6172 rm -f conftest*
6173
6174
6175 fi
6176 rm -f conftest*
6177
6178   fi
6179
6180   fi
6181   if test "$tmp_need_reentrant" = "no"; then
6182
6183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h.  */
6185
6186
6187 #define getprotobyname_r innocuous_getprotobyname_r
6188 #ifdef __STDC__
6189 # include <limits.h>
6190 #else
6191 # include <assert.h>
6192 #endif
6193 #undef getprotobyname_r
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char getprotobyname_r ();
6198 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6199 choke me
6200 #endif
6201
6202 int main (void)
6203 {
6204 return getprotobyname_r ();
6205  ;
6206  return 0;
6207 }
6208
6209 _ACEOF
6210 if ac_fn_c_try_link "$LINENO"; then :
6211
6212     tmp_getprotobyname_r="yes"
6213
6214 else
6215
6216     tmp_getprotobyname_r="no"
6217
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext \
6220     conftest$ac_exeext conftest.$ac_ext
6221   if test "$tmp_getprotobyname_r" = "yes"; then
6222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h.  */
6224
6225 #include <sys/types.h>
6226 #include <netdb.h>
6227
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6231
6232       tmp_getprotobyname_r="proto_declared"
6233
6234 else
6235
6236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239 #define _REENTRANT
6240 #include <sys/types.h>
6241 #include <netdb.h>
6242
6243 _ACEOF
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6246
6247         tmp_getprotobyname_r="proto_needs_reentrant"
6248         tmp_need_reentrant="yes"
6249
6250 fi
6251 rm -f conftest*
6252
6253
6254 fi
6255 rm -f conftest*
6256
6257   fi
6258
6259   fi
6260   if test "$tmp_need_reentrant" = "no"; then
6261
6262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h.  */
6264
6265
6266 #define getservbyport_r innocuous_getservbyport_r
6267 #ifdef __STDC__
6268 # include <limits.h>
6269 #else
6270 # include <assert.h>
6271 #endif
6272 #undef getservbyport_r
6273 #ifdef __cplusplus
6274 extern "C"
6275 #endif
6276 char getservbyport_r ();
6277 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6278 choke me
6279 #endif
6280
6281 int main (void)
6282 {
6283 return getservbyport_r ();
6284  ;
6285  return 0;
6286 }
6287
6288 _ACEOF
6289 if ac_fn_c_try_link "$LINENO"; then :
6290
6291     tmp_getservbyport_r="yes"
6292
6293 else
6294
6295     tmp_getservbyport_r="no"
6296
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext \
6299     conftest$ac_exeext conftest.$ac_ext
6300   if test "$tmp_getservbyport_r" = "yes"; then
6301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h.  */
6303
6304 #include <sys/types.h>
6305 #include <netdb.h>
6306
6307 _ACEOF
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6310
6311       tmp_getservbyport_r="proto_declared"
6312
6313 else
6314
6315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317
6318 #define _REENTRANT
6319 #include <sys/types.h>
6320 #include <netdb.h>
6321
6322 _ACEOF
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6325
6326         tmp_getservbyport_r="proto_needs_reentrant"
6327         tmp_need_reentrant="yes"
6328
6329 fi
6330 rm -f conftest*
6331
6332
6333 fi
6334 rm -f conftest*
6335
6336   fi
6337
6338   fi
6339
6340     fi
6341     if test "$tmp_need_reentrant" = "yes"; then
6342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343 $as_echo "yes" >&6; }
6344     else
6345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347     fi
6348   fi
6349   #
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6351 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6352   if test "$tmp_reentrant_initially_defined" = "yes" ||
6353     test "$tmp_need_reentrant" = "yes"; then
6354
6355
6356 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6357
6358 cat >>confdefs.h <<_EOF
6359 #ifndef _REENTRANT
6360 #  define _REENTRANT
6361 #endif
6362 _EOF
6363
6364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365 $as_echo "yes" >&6; }
6366   else
6367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369   fi
6370   #
6371
6372
6373 # Check whether --enable-largefile was given.
6374 if test "${enable_largefile+set}" = set; then :
6375   enableval=$enable_largefile;
6376 fi
6377
6378 if test "$enable_largefile" != no; then
6379
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6382 if ${ac_cv_sys_largefile_CC+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   ac_cv_sys_largefile_CC=no
6386      if test "$GCC" != yes; then
6387        ac_save_CC=$CC
6388        while :; do
6389          # IRIX 6.2 and later do not support large files by default,
6390          # so use the C compiler's -n32 option if that helps.
6391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h.  */
6393 #include <sys/types.h>
6394  /* Check that off_t can represent 2**63 - 1 correctly.
6395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6396     since some C++ compilers masquerading as C compilers
6397     incorrectly reject 9223372036854775807.  */
6398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6400                        && LARGE_OFF_T % 2147483647 == 1)
6401                       ? 1 : -1];
6402 int main (void)
6403 {
6404
6405  ;
6406  return 0;
6407 }
6408 _ACEOF
6409          if ac_fn_c_try_compile "$LINENO"; then :
6410   break
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext
6413          CC="$CC -n32"
6414          if ac_fn_c_try_compile "$LINENO"; then :
6415   ac_cv_sys_largefile_CC=' -n32'; break
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext
6418          break
6419        done
6420        CC=$ac_save_CC
6421        rm -f conftest.$ac_ext
6422     fi
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6425 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6426   if test "$ac_cv_sys_largefile_CC" != no; then
6427     CC=$CC$ac_cv_sys_largefile_CC
6428   fi
6429
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6431 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6432 if ${ac_cv_sys_file_offset_bits+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   while :; do
6436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h.  */
6438 #include <sys/types.h>
6439  /* Check that off_t can represent 2**63 - 1 correctly.
6440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6441     since some C++ compilers masquerading as C compilers
6442     incorrectly reject 9223372036854775807.  */
6443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6445                        && LARGE_OFF_T % 2147483647 == 1)
6446                       ? 1 : -1];
6447 int main (void)
6448 {
6449
6450  ;
6451  return 0;
6452 }
6453 _ACEOF
6454 if ac_fn_c_try_compile "$LINENO"; then :
6455   ac_cv_sys_file_offset_bits=no; break
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h.  */
6460 #define _FILE_OFFSET_BITS 64
6461 #include <sys/types.h>
6462  /* Check that off_t can represent 2**63 - 1 correctly.
6463     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6464     since some C++ compilers masquerading as C compilers
6465     incorrectly reject 9223372036854775807.  */
6466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6467   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6468                        && LARGE_OFF_T % 2147483647 == 1)
6469                       ? 1 : -1];
6470 int main (void)
6471 {
6472
6473  ;
6474  return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478   ac_cv_sys_file_offset_bits=64; break
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481   ac_cv_sys_file_offset_bits=unknown
6482   break
6483 done
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6486 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6487 case $ac_cv_sys_file_offset_bits in #(
6488   no | unknown) ;;
6489   *)
6490 cat >>confdefs.h <<_ACEOF
6491 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6492 _ACEOF
6493 ;;
6494 esac
6495 rm -rf conftest*
6496   if test $ac_cv_sys_file_offset_bits = unknown; then
6497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6498 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6499 if ${ac_cv_sys_large_files+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   while :; do
6503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h.  */
6505 #include <sys/types.h>
6506  /* Check that off_t can represent 2**63 - 1 correctly.
6507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6508     since some C++ compilers masquerading as C compilers
6509     incorrectly reject 9223372036854775807.  */
6510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6512                        && LARGE_OFF_T % 2147483647 == 1)
6513                       ? 1 : -1];
6514 int main (void)
6515 {
6516
6517  ;
6518  return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522   ac_cv_sys_large_files=no; break
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h.  */
6527 #define _LARGE_FILES 1
6528 #include <sys/types.h>
6529  /* Check that off_t can represent 2**63 - 1 correctly.
6530     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531     since some C++ compilers masquerading as C compilers
6532     incorrectly reject 9223372036854775807.  */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535                        && LARGE_OFF_T % 2147483647 == 1)
6536                       ? 1 : -1];
6537 int main (void)
6538 {
6539
6540  ;
6541  return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545   ac_cv_sys_large_files=1; break
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548   ac_cv_sys_large_files=unknown
6549   break
6550 done
6551 fi
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6553 $as_echo "$ac_cv_sys_large_files" >&6; }
6554 case $ac_cv_sys_large_files in #(
6555   no | unknown) ;;
6556   *)
6557 cat >>confdefs.h <<_ACEOF
6558 #define _LARGE_FILES $ac_cv_sys_large_files
6559 _ACEOF
6560 ;;
6561 esac
6562 rm -rf conftest*
6563   fi
6564
6565
6566 fi
6567
6568
6569 case $host_os in
6570   solaris*)
6571
6572 $as_echo "#define ETC_INET 1" >>confdefs.h
6573
6574     ;;
6575 esac
6576
6577 case `pwd` in
6578   *\ * | *\     *)
6579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6581 esac
6582
6583
6584
6585 macro_version='2.4.2'
6586 macro_revision='1.3337'
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 ltmain="$ac_aux_dir/ltmain.sh"
6601
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6605
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6608
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6615
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6618
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6627    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6628   ECHO='print -r --'
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6630   ECHO='printf %s\n'
6631 else
6632   # Use this function as a fallback that always works.
6633   func_fallback_echo ()
6634   {
6635     eval 'cat <<_LTECHO_EOF
6636 $1
6637 _LTECHO_EOF'
6638   }
6639   ECHO='func_fallback_echo'
6640 fi
6641
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6644 func_echo_all ()
6645 {
6646     $ECHO ""
6647 }
6648
6649 case "$ECHO" in
6650   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6656 esac
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677      for ac_i in 1 2 3 4 5 6 7; do
6678        ac_script="$ac_script$as_nl$ac_script"
6679      done
6680      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681      { ac_script=; unset ac_script;}
6682      if test -z "$SED"; then
6683   ac_path_SED_found=false
6684   # Loop through the user's path and test for each of PROGNAME-LIST
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_prog in sed gsed; do
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693       as_fn_executable_p "$ac_path_SED" || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695   # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6697 *GNU*)
6698   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6699 *)
6700   ac_count=0
6701   $as_echo_n 0123456789 >"conftest.in"
6702   while :
6703   do
6704     cat "conftest.in" "conftest.in" >"conftest.tmp"
6705     mv "conftest.tmp" "conftest.in"
6706     cp "conftest.in" "conftest.nl"
6707     $as_echo '' >> "conftest.nl"
6708     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710     as_fn_arith $ac_count + 1 && ac_count=$as_val
6711     if test $ac_count -gt ${ac_path_SED_max-0}; then
6712       # Best one so far, save it but keep looking for a better one
6713       ac_cv_path_SED="$ac_path_SED"
6714       ac_path_SED_max=$ac_count
6715     fi
6716     # 10*(2^10) chars as input seems more than enough
6717     test $ac_count -gt 10 && break
6718   done
6719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6720 esac
6721
6722       $ac_path_SED_found && break 3
6723     done
6724   done
6725   done
6726 IFS=$as_save_IFS
6727   if test -z "$ac_cv_path_SED"; then
6728     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6729   fi
6730 else
6731   ac_cv_path_SED=$SED
6732 fi
6733
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737  SED="$ac_cv_path_SED"
6738   rm -f conftest.sed
6739
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759    then ac_cv_path_FGREP="$GREP -F"
6760    else
6761      if test -z "$FGREP"; then
6762   ac_path_FGREP_found=false
6763   # Loop through the user's path and test for each of PROGNAME-LIST
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_prog in fgrep; do
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772       as_fn_executable_p "$ac_path_FGREP" || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774   # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6776 *GNU*)
6777   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6778 *)
6779   ac_count=0
6780   $as_echo_n 0123456789 >"conftest.in"
6781   while :
6782   do
6783     cat "conftest.in" "conftest.in" >"conftest.tmp"
6784     mv "conftest.tmp" "conftest.in"
6785     cp "conftest.in" "conftest.nl"
6786     $as_echo 'FGREP' >> "conftest.nl"
6787     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789     as_fn_arith $ac_count + 1 && ac_count=$as_val
6790     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791       # Best one so far, save it but keep looking for a better one
6792       ac_cv_path_FGREP="$ac_path_FGREP"
6793       ac_path_FGREP_max=$ac_count
6794     fi
6795     # 10*(2^10) chars as input seems more than enough
6796     test $ac_count -gt 10 && break
6797   done
6798   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6799 esac
6800
6801       $ac_path_FGREP_found && break 3
6802     done
6803   done
6804   done
6805 IFS=$as_save_IFS
6806   if test -z "$ac_cv_path_FGREP"; then
6807     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6808   fi
6809 else
6810   ac_cv_path_FGREP=$FGREP
6811 fi
6812
6813    fi
6814 fi
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817  FGREP="$ac_cv_path_FGREP"
6818
6819
6820 test -z "$GREP" && GREP=grep
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6843 else
6844   with_gnu_ld=no
6845 fi
6846
6847 ac_prog=ld
6848 if test "$GCC" = yes; then
6849   # Check if gcc -print-prog-name=ld gives a path.
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6852   case $host in
6853   *-*-mingw*)
6854     # gcc leaves a trailing carriage return which upsets mingw
6855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6856   *)
6857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6858   esac
6859   case $ac_prog in
6860     # Accept absolute paths.
6861     [\\/]* | ?:[\\/]*)
6862       re_direlt='/[^/][^/]*/\.\./'
6863       # Canonicalize the pathname of ld
6864       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6867       done
6868       test -z "$LD" && LD="$ac_prog"
6869       ;;
6870   "")
6871     # If it fails, then pretend we aren't using GCC.
6872     ac_prog=ld
6873     ;;
6874   *)
6875     # If it is relative, then search for the first ld in PATH.
6876     with_gnu_ld=unknown
6877     ;;
6878   esac
6879 elif test "$with_gnu_ld" = yes; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6885 fi
6886 if ${lt_cv_path_LD+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -z "$LD"; then
6890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891   for ac_dir in $PATH; do
6892     IFS="$lt_save_ifs"
6893     test -z "$ac_dir" && ac_dir=.
6894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895       lt_cv_path_LD="$ac_dir/$ac_prog"
6896       # Check to see if the program is GNU ld.  I'd rather use --version,
6897       # but apparently some variants of GNU ld only accept -v.
6898       # Break only if it was the GNU/non-GNU ld that we prefer.
6899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900       *GNU* | *'with BFD'*)
6901         test "$with_gnu_ld" != no && break
6902         ;;
6903       *)
6904         test "$with_gnu_ld" != yes && break
6905         ;;
6906       esac
6907     fi
6908   done
6909   IFS="$lt_save_ifs"
6910 else
6911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6912 fi
6913 fi
6914
6915 LD="$lt_cv_path_LD"
6916 if test -n "$LD"; then
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6919 else
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932   lt_cv_prog_gnu_ld=yes
6933   ;;
6934 *)
6935   lt_cv_prog_gnu_ld=no
6936   ;;
6937 esac
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$NM"; then
6957   # Let the user override the test.
6958   lt_cv_path_NM="$NM"
6959 else
6960   lt_nm_to_check="${ac_tool_prefix}nm"
6961   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962     lt_nm_to_check="$lt_nm_to_check nm"
6963   fi
6964   for lt_tmp_nm in $lt_nm_to_check; do
6965     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6967       IFS="$lt_save_ifs"
6968       test -z "$ac_dir" && ac_dir=.
6969       tmp_nm="$ac_dir/$lt_tmp_nm"
6970       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6971         # Check to see if the nm accepts a BSD-compat flag.
6972         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6973         #   nm: unknown option "B" ignored
6974         # Tru64's nm complains that /dev/null is an invalid object file
6975         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6976         */dev/null* | *'Invalid file or object type'*)
6977           lt_cv_path_NM="$tmp_nm -B"
6978           break
6979           ;;
6980         *)
6981           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6982           */dev/null*)
6983             lt_cv_path_NM="$tmp_nm -p"
6984             break
6985             ;;
6986           *)
6987             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6988             continue # so that we can try to find one that supports BSD flags
6989             ;;
6990           esac
6991           ;;
6992         esac
6993       fi
6994     done
6995     IFS="$lt_save_ifs"
6996   done
6997   : ${lt_cv_path_NM=no}
6998 fi
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7001 $as_echo "$lt_cv_path_NM" >&6; }
7002 if test "$lt_cv_path_NM" != "no"; then
7003   NM="$lt_cv_path_NM"
7004 else
7005   # Didn't find any BSD compatible name lister, look for dumpbin.
7006   if test -n "$DUMPBIN"; then :
7007     # Let the user override the test.
7008   else
7009     if test -n "$ac_tool_prefix"; then
7010   for ac_prog in dumpbin "link -dump"
7011   do
7012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_DUMPBIN+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$DUMPBIN"; then
7020   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 DUMPBIN=$ac_cv_prog_DUMPBIN
7040 if test -n "$DUMPBIN"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7042 $as_echo "$DUMPBIN" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049     test -n "$DUMPBIN" && break
7050   done
7051 fi
7052 if test -z "$DUMPBIN"; then
7053   ac_ct_DUMPBIN=$DUMPBIN
7054   for ac_prog in dumpbin "link -dump"
7055 do
7056   # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$ac_ct_DUMPBIN"; then
7064   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7084 if test -n "$ac_ct_DUMPBIN"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7086 $as_echo "$ac_ct_DUMPBIN" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093   test -n "$ac_ct_DUMPBIN" && break
7094 done
7095
7096   if test "x$ac_ct_DUMPBIN" = x; then
7097     DUMPBIN=":"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     DUMPBIN=$ac_ct_DUMPBIN
7106   fi
7107 fi
7108
7109     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7110     *COFF*)
7111       DUMPBIN="$DUMPBIN -symbols"
7112       ;;
7113     *)
7114       DUMPBIN=:
7115       ;;
7116     esac
7117   fi
7118
7119   if test "$DUMPBIN" != ":"; then
7120     NM="$DUMPBIN"
7121   fi
7122 fi
7123 test -z "$NM" && NM=nm
7124
7125
7126
7127
7128
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7132 if ${lt_cv_nm_interface+:} false; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   lt_cv_nm_interface="BSD nm"
7136   echo "int some_variable = 0;" > conftest.$ac_ext
7137   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7138   (eval "$ac_compile" 2>conftest.err)
7139   cat conftest.err >&5
7140   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7141   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7142   cat conftest.err >&5
7143   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7144   cat conftest.out >&5
7145   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7146     lt_cv_nm_interface="MS dumpbin"
7147   fi
7148   rm -f conftest*
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7151 $as_echo "$lt_cv_nm_interface" >&6; }
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7154 $as_echo_n "checking whether ln -s works... " >&6; }
7155 LN_S=$as_ln_s
7156 if test "$LN_S" = "ln -s"; then
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158 $as_echo "yes" >&6; }
7159 else
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7161 $as_echo "no, using $LN_S" >&6; }
7162 fi
7163
7164 # find the maximum length of command line arguments
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7167 if ${lt_cv_sys_max_cmd_len+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170     i=0
7171   teststring="ABCD"
7172
7173   case $build_os in
7174   msdosdjgpp*)
7175     # On DJGPP, this test can blow up pretty badly due to problems in libc
7176     # (any single argument exceeding 2000 bytes causes a buffer overrun
7177     # during glob expansion).  Even if it were fixed, the result of this
7178     # check would be larger than it should be.
7179     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7180     ;;
7181
7182   gnu*)
7183     # Under GNU Hurd, this test is not required because there is
7184     # no limit to the length of command line arguments.
7185     # Libtool will interpret -1 as no limit whatsoever
7186     lt_cv_sys_max_cmd_len=-1;
7187     ;;
7188
7189   cygwin* | mingw* | cegcc*)
7190     # On Win9x/ME, this test blows up -- it succeeds, but takes
7191     # about 5 minutes as the teststring grows exponentially.
7192     # Worse, since 9x/ME are not pre-emptively multitasking,
7193     # you end up with a "frozen" computer, even though with patience
7194     # the test eventually succeeds (with a max line length of 256k).
7195     # Instead, let's just punt: use the minimum linelength reported by
7196     # all of the supported platforms: 8192 (on NT/2K/XP).
7197     lt_cv_sys_max_cmd_len=8192;
7198     ;;
7199
7200   mint*)
7201     # On MiNT this can take a long time and run out of memory.
7202     lt_cv_sys_max_cmd_len=8192;
7203     ;;
7204
7205   amigaos*)
7206     # On AmigaOS with pdksh, this test takes hours, literally.
7207     # So we just punt and use a minimum line length of 8192.
7208     lt_cv_sys_max_cmd_len=8192;
7209     ;;
7210
7211   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7212     # This has been around since 386BSD, at least.  Likely further.
7213     if test -x /sbin/sysctl; then
7214       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7215     elif test -x /usr/sbin/sysctl; then
7216       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7217     else
7218       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7219     fi
7220     # And add a safety zone
7221     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7222     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7223     ;;
7224
7225   interix*)
7226     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7227     lt_cv_sys_max_cmd_len=196608
7228     ;;
7229
7230   os2*)
7231     # The test takes a long time on OS/2.
7232     lt_cv_sys_max_cmd_len=8192
7233     ;;
7234
7235   osf*)
7236     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238     # nice to cause kernel panics so lets avoid the loop below.
7239     # First set a reasonable default.
7240     lt_cv_sys_max_cmd_len=16384
7241     #
7242     if test -x /sbin/sysconfig; then
7243       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7245       esac
7246     fi
7247     ;;
7248   sco3.2v5*)
7249     lt_cv_sys_max_cmd_len=102400
7250     ;;
7251   sysv5* | sco5v6* | sysv4.2uw2*)
7252     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253     if test -n "$kargmax"; then
7254       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7255     else
7256       lt_cv_sys_max_cmd_len=32768
7257     fi
7258     ;;
7259   *)
7260     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261     if test -n "$lt_cv_sys_max_cmd_len" && \
7262         test undefined != "$lt_cv_sys_max_cmd_len"; then
7263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7264       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265     else
7266       # Make teststring a little bigger before we do anything with it.
7267       # a 1K string should be a reasonable start.
7268       for i in 1 2 3 4 5 6 7 8 ; do
7269         teststring=$teststring$teststring
7270       done
7271       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7272       # If test is not a shell built-in, we'll probably end up computing a
7273       # maximum length that is only half of the actual maximum length, but
7274       # we can't tell.
7275       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7276                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7277               test $i != 17 # 1/2 MB should be enough
7278       do
7279         i=`expr $i + 1`
7280         teststring=$teststring$teststring
7281       done
7282       # Only check the string length outside the loop.
7283       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284       teststring=
7285       # Add a significant safety factor because C++ compilers can tack on
7286       # massive amounts of additional arguments before passing them to the
7287       # linker.  It appears as though 1/2 is a usable value.
7288       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7289     fi
7290     ;;
7291   esac
7292
7293 fi
7294
7295 if test -n $lt_cv_sys_max_cmd_len ; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7300 $as_echo "none" >&6; }
7301 fi
7302 max_cmd_len=$lt_cv_sys_max_cmd_len
7303
7304
7305
7306
7307
7308
7309 : ${CP="cp -f"}
7310 : ${MV="mv -f"}
7311 : ${RM="rm -f"}
7312
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7315 # Try some XSI features
7316 xsi_shell=no
7317 ( _lt_dummy="a/b/c"
7318   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7319       = c,a/b,b/c, \
7320     && eval 'test $(( 1 + 1 )) -eq 2 \
7321     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7322   && xsi_shell=yes
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7324 $as_echo "$xsi_shell" >&6; }
7325
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7329 lt_shell_append=no
7330 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331     >/dev/null 2>&1 \
7332   && lt_shell_append=yes
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7334 $as_echo "$lt_shell_append" >&6; }
7335
7336
7337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7338   lt_unset=unset
7339 else
7340   lt_unset=false
7341 fi
7342
7343
7344
7345
7346
7347 # test EBCDIC or ASCII
7348 case `echo X|tr X '\101'` in
7349  A) # ASCII based system
7350     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7351   lt_SP2NL='tr \040 \012'
7352   lt_NL2SP='tr \015\012 \040\040'
7353   ;;
7354  *) # EBCDIC based system
7355   lt_SP2NL='tr \100 \n'
7356   lt_NL2SP='tr \r\n \100\100'
7357   ;;
7358 esac
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7369 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7370 if ${lt_cv_to_host_file_cmd+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   case $host in
7374   *-*-mingw* )
7375     case $build in
7376       *-*-mingw* ) # actually msys
7377         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7378         ;;
7379       *-*-cygwin* )
7380         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7381         ;;
7382       * ) # otherwise, assume *nix
7383         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7384         ;;
7385     esac
7386     ;;
7387   *-*-cygwin* )
7388     case $build in
7389       *-*-mingw* ) # actually msys
7390         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7391         ;;
7392       *-*-cygwin* )
7393         lt_cv_to_host_file_cmd=func_convert_file_noop
7394         ;;
7395       * ) # otherwise, assume *nix
7396         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7397         ;;
7398     esac
7399     ;;
7400   * ) # unhandled hosts (and "normal" native builds)
7401     lt_cv_to_host_file_cmd=func_convert_file_noop
7402     ;;
7403 esac
7404
7405 fi
7406
7407 to_host_file_cmd=$lt_cv_to_host_file_cmd
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7409 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7410
7411
7412
7413
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7416 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7417 if ${lt_cv_to_tool_file_cmd+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   #assume ordinary cross tools, or native build.
7421 lt_cv_to_tool_file_cmd=func_convert_file_noop
7422 case $host in
7423   *-*-mingw* )
7424     case $build in
7425       *-*-mingw* ) # actually msys
7426         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7427         ;;
7428     esac
7429     ;;
7430 esac
7431
7432 fi
7433
7434 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7436 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7437
7438
7439
7440
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7443 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7444 if ${lt_cv_ld_reload_flag+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   lt_cv_ld_reload_flag='-r'
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7450 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7451 reload_flag=$lt_cv_ld_reload_flag
7452 case $reload_flag in
7453 "" | " "*) ;;
7454 *) reload_flag=" $reload_flag" ;;
7455 esac
7456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7457 case $host_os in
7458   cygwin* | mingw* | pw32* | cegcc*)
7459     if test "$GCC" != yes; then
7460       reload_cmds=false
7461     fi
7462     ;;
7463   darwin*)
7464     if test "$GCC" = yes; then
7465       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7466     else
7467       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7468     fi
7469     ;;
7470 esac
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 if test -n "$ac_tool_prefix"; then
7481   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_OBJDUMP+:} false; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   if test -n "$OBJDUMP"; then
7489   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 OBJDUMP=$ac_cv_prog_OBJDUMP
7509 if test -n "$OBJDUMP"; then
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7511 $as_echo "$OBJDUMP" >&6; }
7512 else
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 fi
7519 if test -z "$ac_cv_prog_OBJDUMP"; then
7520   ac_ct_OBJDUMP=$OBJDUMP
7521   # Extract the first word of "objdump", so it can be a program name with args.
7522 set dummy objdump; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   if test -n "$ac_ct_OBJDUMP"; then
7529   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536     for ac_exec_ext in '' $ac_executable_extensions; do
7537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543   done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7549 if test -n "$ac_ct_OBJDUMP"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7551 $as_echo "$ac_ct_OBJDUMP" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557   if test "x$ac_ct_OBJDUMP" = x; then
7558     OBJDUMP="false"
7559   else
7560     case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566     OBJDUMP=$ac_ct_OBJDUMP
7567   fi
7568 else
7569   OBJDUMP="$ac_cv_prog_OBJDUMP"
7570 fi
7571
7572 test -z "$OBJDUMP" && OBJDUMP=objdump
7573
7574
7575
7576
7577
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7580 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7581 if ${lt_cv_deplibs_check_method+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   lt_cv_file_magic_cmd='$MAGIC_CMD'
7585 lt_cv_file_magic_test_file=
7586 lt_cv_deplibs_check_method='unknown'
7587 # Need to set the preceding variable on all platforms that support
7588 # interlibrary dependencies.
7589 # 'none' -- dependencies not supported.
7590 # `unknown' -- same as none, but documents that we really don't know.
7591 # 'pass_all' -- all dependencies passed with no checks.
7592 # 'test_compile' -- check by making test program.
7593 # 'file_magic [[regex]]' -- check by looking for files in library path
7594 # which responds to the $file_magic_cmd with a given extended regex.
7595 # If you have `file' or equivalent on your system and you're not sure
7596 # whether `pass_all' will *always* work, you probably want this one.
7597
7598 case $host_os in
7599 aix[4-9]*)
7600   lt_cv_deplibs_check_method=pass_all
7601   ;;
7602
7603 beos*)
7604   lt_cv_deplibs_check_method=pass_all
7605   ;;
7606
7607 bsdi[45]*)
7608   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7609   lt_cv_file_magic_cmd='/usr/bin/file -L'
7610   lt_cv_file_magic_test_file=/shlib/libc.so
7611   ;;
7612
7613 cygwin*)
7614   # func_win32_libid is a shell function defined in ltmain.sh
7615   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7616   lt_cv_file_magic_cmd='func_win32_libid'
7617   ;;
7618
7619 mingw* | pw32*)
7620   # Base MSYS/MinGW do not provide the 'file' command needed by
7621   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7622   # unless we find 'file', for example because we are cross-compiling.
7623   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7624   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7625     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7626     lt_cv_file_magic_cmd='func_win32_libid'
7627   else
7628     # Keep this pattern in sync with the one in func_win32_libid.
7629     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7630     lt_cv_file_magic_cmd='$OBJDUMP -f'
7631   fi
7632   ;;
7633
7634 cegcc*)
7635   # use the weaker test based on 'objdump'. See mingw*.
7636   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7637   lt_cv_file_magic_cmd='$OBJDUMP -f'
7638   ;;
7639
7640 darwin* | rhapsody*)
7641   lt_cv_deplibs_check_method=pass_all
7642   ;;
7643
7644 freebsd* | dragonfly*)
7645   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7646     case $host_cpu in
7647     i*86 )
7648       # Not sure whether the presence of OpenBSD here was a mistake.
7649       # Let's accept both of them until this is cleared up.
7650       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7651       lt_cv_file_magic_cmd=/usr/bin/file
7652       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7653       ;;
7654     esac
7655   else
7656     lt_cv_deplibs_check_method=pass_all
7657   fi
7658   ;;
7659
7660 haiku*)
7661   lt_cv_deplibs_check_method=pass_all
7662   ;;
7663
7664 hpux10.20* | hpux11*)
7665   lt_cv_file_magic_cmd=/usr/bin/file
7666   case $host_cpu in
7667   ia64*)
7668     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7669     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7670     ;;
7671   hppa*64*)
7672     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]'
7673     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7674     ;;
7675   *)
7676     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7677     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7678     ;;
7679   esac
7680   ;;
7681
7682 interix[3-9]*)
7683   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7684   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7685   ;;
7686
7687 irix5* | irix6* | nonstopux*)
7688   case $LD in
7689   *-32|*"-32 ") libmagic=32-bit;;
7690   *-n32|*"-n32 ") libmagic=N32;;
7691   *-64|*"-64 ") libmagic=64-bit;;
7692   *) libmagic=never-match;;
7693   esac
7694   lt_cv_deplibs_check_method=pass_all
7695   ;;
7696
7697 # This must be glibc/ELF.
7698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7699   lt_cv_deplibs_check_method=pass_all
7700   ;;
7701
7702 netbsd* | netbsdelf*-gnu)
7703   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7704     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7705   else
7706     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7707   fi
7708   ;;
7709
7710 newos6*)
7711   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7712   lt_cv_file_magic_cmd=/usr/bin/file
7713   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7714   ;;
7715
7716 *nto* | *qnx*)
7717   lt_cv_deplibs_check_method=pass_all
7718   ;;
7719
7720 openbsd*)
7721   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7722     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7723   else
7724     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7725   fi
7726   ;;
7727
7728 osf3* | osf4* | osf5*)
7729   lt_cv_deplibs_check_method=pass_all
7730   ;;
7731
7732 rdos*)
7733   lt_cv_deplibs_check_method=pass_all
7734   ;;
7735
7736 solaris*)
7737   lt_cv_deplibs_check_method=pass_all
7738   ;;
7739
7740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7741   lt_cv_deplibs_check_method=pass_all
7742   ;;
7743
7744 sysv4 | sysv4.3*)
7745   case $host_vendor in
7746   motorola)
7747     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]'
7748     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7749     ;;
7750   ncr)
7751     lt_cv_deplibs_check_method=pass_all
7752     ;;
7753   sequent)
7754     lt_cv_file_magic_cmd='/bin/file'
7755     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7756     ;;
7757   sni)
7758     lt_cv_file_magic_cmd='/bin/file'
7759     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7760     lt_cv_file_magic_test_file=/lib/libc.so
7761     ;;
7762   siemens)
7763     lt_cv_deplibs_check_method=pass_all
7764     ;;
7765   pc)
7766     lt_cv_deplibs_check_method=pass_all
7767     ;;
7768   esac
7769   ;;
7770
7771 tpf*)
7772   lt_cv_deplibs_check_method=pass_all
7773   ;;
7774 esac
7775
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7778 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7779
7780 file_magic_glob=
7781 want_nocaseglob=no
7782 if test "$build" = "$host"; then
7783   case $host_os in
7784   mingw* | pw32*)
7785     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7786       want_nocaseglob=yes
7787     else
7788       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7789     fi
7790     ;;
7791   esac
7792 fi
7793
7794 file_magic_cmd=$lt_cv_file_magic_cmd
7795 deplibs_check_method=$lt_cv_deplibs_check_method
7796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 if test -n "$ac_tool_prefix"; then
7820   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_DLLTOOL+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$DLLTOOL"; then
7828   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 DLLTOOL=$ac_cv_prog_DLLTOOL
7848 if test -n "$DLLTOOL"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7850 $as_echo "$DLLTOOL" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857 fi
7858 if test -z "$ac_cv_prog_DLLTOOL"; then
7859   ac_ct_DLLTOOL=$DLLTOOL
7860   # Extract the first word of "dlltool", so it can be a program name with args.
7861 set dummy dlltool; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   if test -n "$ac_ct_DLLTOOL"; then
7868   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875     for ac_exec_ext in '' $ac_executable_extensions; do
7876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882   done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7888 if test -n "$ac_ct_DLLTOOL"; then
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7890 $as_echo "$ac_ct_DLLTOOL" >&6; }
7891 else
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896   if test "x$ac_ct_DLLTOOL" = x; then
7897     DLLTOOL="false"
7898   else
7899     case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7904 esac
7905     DLLTOOL=$ac_ct_DLLTOOL
7906   fi
7907 else
7908   DLLTOOL="$ac_cv_prog_DLLTOOL"
7909 fi
7910
7911 test -z "$DLLTOOL" && DLLTOOL=dlltool
7912
7913
7914
7915
7916
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7920 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7921 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   lt_cv_sharedlib_from_linklib_cmd='unknown'
7925
7926 case $host_os in
7927 cygwin* | mingw* | pw32* | cegcc*)
7928   # two different shell functions defined in ltmain.sh
7929   # decide which to use based on capabilities of $DLLTOOL
7930   case `$DLLTOOL --help 2>&1` in
7931   *--identify-strict*)
7932     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7933     ;;
7934   *)
7935     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7936     ;;
7937   esac
7938   ;;
7939 *)
7940   # fallback: assume linklib IS sharedlib
7941   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7942   ;;
7943 esac
7944
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7947 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7948 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7949 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7950
7951
7952
7953
7954
7955
7956
7957 if test -n "$ac_tool_prefix"; then
7958   for ac_prog in ar
7959   do
7960     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_AR+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   if test -n "$AR"; then
7968   ac_cv_prog_AR="$AR" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_exec_ext in '' $ac_executable_extensions; do
7976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982   done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 AR=$ac_cv_prog_AR
7988 if test -n "$AR"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7990 $as_echo "$AR" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997     test -n "$AR" && break
7998   done
7999 fi
8000 if test -z "$AR"; then
8001   ac_ct_AR=$AR
8002   for ac_prog in ar
8003 do
8004   # Extract the first word of "$ac_prog", so it can be a program name with args.
8005 set dummy $ac_prog; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   if test -n "$ac_ct_AR"; then
8012   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019     for ac_exec_ext in '' $ac_executable_extensions; do
8020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021     ac_cv_prog_ac_ct_AR="$ac_prog"
8022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026   done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8032 if test -n "$ac_ct_AR"; then
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8034 $as_echo "$ac_ct_AR" >&6; }
8035 else
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041   test -n "$ac_ct_AR" && break
8042 done
8043
8044   if test "x$ac_ct_AR" = x; then
8045     AR="false"
8046   else
8047     case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053     AR=$ac_ct_AR
8054   fi
8055 fi
8056
8057 : ${AR=ar}
8058 : ${AR_FLAGS=cru}
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8071 $as_echo_n "checking for archiver @FILE support... " >&6; }
8072 if ${lt_cv_ar_at_file+:} false; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   lt_cv_ar_at_file=no
8076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h.  */
8078
8079 int main (void)
8080 {
8081
8082  ;
8083  return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087   echo conftest.$ac_objext > conftest.lst
8088       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8089       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8090   (eval $lt_ar_try) 2>&5
8091   ac_status=$?
8092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093   test $ac_status = 0; }
8094       if test "$ac_status" -eq 0; then
8095         # Ensure the archiver fails upon bogus file names.
8096         rm -f conftest.$ac_objext libconftest.a
8097         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8098   (eval $lt_ar_try) 2>&5
8099   ac_status=$?
8100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8101   test $ac_status = 0; }
8102         if test "$ac_status" -ne 0; then
8103           lt_cv_ar_at_file=@
8104         fi
8105       fi
8106       rm -f conftest.* libconftest.a
8107
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8113 $as_echo "$lt_cv_ar_at_file" >&6; }
8114
8115 if test "x$lt_cv_ar_at_file" = xno; then
8116   archiver_list_spec=
8117 else
8118   archiver_list_spec=$lt_cv_ar_at_file
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127 if test -n "$ac_tool_prefix"; then
8128   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}strip; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if ${ac_cv_prog_STRIP+:} false; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   if test -n "$STRIP"; then
8136   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141   IFS=$as_save_IFS
8142   test -z "$as_dir" && as_dir=.
8143     for ac_exec_ext in '' $ac_executable_extensions; do
8144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147     break 2
8148   fi
8149 done
8150   done
8151 IFS=$as_save_IFS
8152
8153 fi
8154 fi
8155 STRIP=$ac_cv_prog_STRIP
8156 if test -n "$STRIP"; then
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8158 $as_echo "$STRIP" >&6; }
8159 else
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 fi
8163
8164
8165 fi
8166 if test -z "$ac_cv_prog_STRIP"; then
8167   ac_ct_STRIP=$STRIP
8168   # Extract the first word of "strip", so it can be a program name with args.
8169 set dummy strip; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   if test -n "$ac_ct_STRIP"; then
8176   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183     for ac_exec_ext in '' $ac_executable_extensions; do
8184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185     ac_cv_prog_ac_ct_STRIP="strip"
8186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190   done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8196 if test -n "$ac_ct_STRIP"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8198 $as_echo "$ac_ct_STRIP" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204   if test "x$ac_ct_STRIP" = x; then
8205     STRIP=":"
8206   else
8207     case $cross_compiling:$ac_tool_warned in
8208 yes:)
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211 ac_tool_warned=yes ;;
8212 esac
8213     STRIP=$ac_ct_STRIP
8214   fi
8215 else
8216   STRIP="$ac_cv_prog_STRIP"
8217 fi
8218
8219 test -z "$STRIP" && STRIP=:
8220
8221
8222
8223
8224
8225
8226 if test -n "$ac_tool_prefix"; then
8227   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_RANLIB+:} false; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   if test -n "$RANLIB"; then
8235   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 RANLIB=$ac_cv_prog_RANLIB
8255 if test -n "$RANLIB"; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8257 $as_echo "$RANLIB" >&6; }
8258 else
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264 fi
8265 if test -z "$ac_cv_prog_RANLIB"; then
8266   ac_ct_RANLIB=$RANLIB
8267   # Extract the first word of "ranlib", so it can be a program name with args.
8268 set dummy ranlib; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   if test -n "$ac_ct_RANLIB"; then
8275   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284     ac_cv_prog_ac_ct_RANLIB="ranlib"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8295 if test -n "$ac_ct_RANLIB"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8297 $as_echo "$ac_ct_RANLIB" >&6; }
8298 else
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303   if test "x$ac_ct_RANLIB" = x; then
8304     RANLIB=":"
8305   else
8306     case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8311 esac
8312     RANLIB=$ac_ct_RANLIB
8313   fi
8314 else
8315   RANLIB="$ac_cv_prog_RANLIB"
8316 fi
8317
8318 test -z "$RANLIB" && RANLIB=:
8319
8320
8321
8322
8323
8324
8325 # Determine commands to create old-style static archives.
8326 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8327 old_postinstall_cmds='chmod 644 $oldlib'
8328 old_postuninstall_cmds=
8329
8330 if test -n "$RANLIB"; then
8331   case $host_os in
8332   openbsd*)
8333     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8334     ;;
8335   *)
8336     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8337     ;;
8338   esac
8339   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8340 fi
8341
8342 case $host_os in
8343   darwin*)
8344     lock_old_archive_extraction=yes ;;
8345   *)
8346     lock_old_archive_extraction=no ;;
8347 esac
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 # If no C compiler was specified, use CC.
8388 LTCC=${LTCC-"$CC"}
8389
8390 # If no C compiler flags were specified, use CFLAGS.
8391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8392
8393 # Allow CC to be a program name with arguments.
8394 compiler=$CC
8395
8396
8397 # Check for command to grab the raw symbol name followed by C symbol from nm.
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8400 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403
8404 # These are sane defaults that work on at least a few old systems.
8405 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8406
8407 # Character class describing NM global symbol codes.
8408 symcode='[BCDEGRST]'
8409
8410 # Regexp to match symbols that can be accessed directly from C.
8411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8412
8413 # Define system-specific variables.
8414 case $host_os in
8415 aix*)
8416   symcode='[BCDT]'
8417   ;;
8418 cygwin* | mingw* | pw32* | cegcc*)
8419   symcode='[ABCDGISTW]'
8420   ;;
8421 hpux*)
8422   if test "$host_cpu" = ia64; then
8423     symcode='[ABCDEGRST]'
8424   fi
8425   ;;
8426 irix* | nonstopux*)
8427   symcode='[BCDEGRST]'
8428   ;;
8429 osf*)
8430   symcode='[BCDEGQRST]'
8431   ;;
8432 solaris*)
8433   symcode='[BDRT]'
8434   ;;
8435 sco3.2v5*)
8436   symcode='[DT]'
8437   ;;
8438 sysv4.2uw2*)
8439   symcode='[DT]'
8440   ;;
8441 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8442   symcode='[ABDT]'
8443   ;;
8444 sysv4)
8445   symcode='[DFNSTU]'
8446   ;;
8447 esac
8448
8449 # If we're using GNU nm, then use its standard symbol codes.
8450 case `$NM -V 2>&1` in
8451 *GNU* | *'with BFD'*)
8452   symcode='[ABCDGIRSTW]' ;;
8453 esac
8454
8455 # Transform an extracted symbol line into a proper C declaration.
8456 # Some systems (esp. on ia64) link data and code symbols differently,
8457 # so use this general approach.
8458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8459
8460 # Transform an extracted symbol line into symbol name and symbol address
8461 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8462 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'"
8463
8464 # Handle CRLF in mingw tool chain
8465 opt_cr=
8466 case $build_os in
8467 mingw*)
8468   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8469   ;;
8470 esac
8471
8472 # Try without a prefix underscore, then with it.
8473 for ac_symprfx in "" "_"; do
8474
8475   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8476   symxfrm="\\1 $ac_symprfx\\2 \\2"
8477
8478   # Write the raw and C identifiers.
8479   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8480     # Fake it for dumpbin and say T for any non-static function
8481     # and D for any global variable.
8482     # Also find C++ and __fastcall symbols from MSVC++,
8483     # which start with @ or ?.
8484     lt_cv_sys_global_symbol_pipe="$AWK '"\
8485 "     {last_section=section; section=\$ 3};"\
8486 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8487 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8488 "     \$ 0!~/External *\|/{next};"\
8489 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8490 "     {if(hide[section]) next};"\
8491 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8492 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8493 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8494 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8495 "     ' prfx=^$ac_symprfx"
8496   else
8497     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8498   fi
8499   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8500
8501   # Check to see that the pipe works correctly.
8502   pipe_works=no
8503
8504   rm -f conftest*
8505   cat > conftest.$ac_ext <<_LT_EOF
8506 #ifdef __cplusplus
8507 extern "C" {
8508 #endif
8509 char nm_test_var;
8510 void nm_test_func(void);
8511 void nm_test_func(void){}
8512 #ifdef __cplusplus
8513 }
8514 #endif
8515 int main(){nm_test_var='a';nm_test_func();return(0);}
8516 _LT_EOF
8517
8518   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8519   (eval $ac_compile) 2>&5
8520   ac_status=$?
8521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8522   test $ac_status = 0; }; then
8523     # Now try to grab the symbols.
8524     nlist=conftest.nm
8525     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8526   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8527   ac_status=$?
8528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8529   test $ac_status = 0; } && test -s "$nlist"; then
8530       # Try sorting and uniquifying the output.
8531       if sort "$nlist" | uniq > "$nlist"T; then
8532         mv -f "$nlist"T "$nlist"
8533       else
8534         rm -f "$nlist"T
8535       fi
8536
8537       # Make sure that we snagged all the symbols we need.
8538       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8539         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8540           cat <<_LT_EOF > conftest.$ac_ext
8541 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8542 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8543 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8544    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8545 # define LT_DLSYM_CONST
8546 #elif defined(__osf__)
8547 /* This system does not cope well with relocations in const data.  */
8548 # define LT_DLSYM_CONST
8549 #else
8550 # define LT_DLSYM_CONST const
8551 #endif
8552
8553 #ifdef __cplusplus
8554 extern "C" {
8555 #endif
8556
8557 _LT_EOF
8558           # Now generate the symbol file.
8559           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8560
8561           cat <<_LT_EOF >> conftest.$ac_ext
8562
8563 /* The mapping between symbol names and symbols.  */
8564 LT_DLSYM_CONST struct {
8565   const char *name;
8566   void       *address;
8567 }
8568 lt__PROGRAM__LTX_preloaded_symbols[] =
8569 {
8570   { "@PROGRAM@", (void *) 0 },
8571 _LT_EOF
8572           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8573           cat <<\_LT_EOF >> conftest.$ac_ext
8574   {0, (void *) 0}
8575 };
8576
8577 /* This works around a problem in FreeBSD linker */
8578 #ifdef FREEBSD_WORKAROUND
8579 static const void *lt_preloaded_setup() {
8580   return lt__PROGRAM__LTX_preloaded_symbols;
8581 }
8582 #endif
8583
8584 #ifdef __cplusplus
8585 }
8586 #endif
8587 _LT_EOF
8588           # Now try linking the two files.
8589           mv -f conftest.$ac_objext conftstm.$ac_objext
8590           lt_globsym_save_LIBS=$LIBS
8591           lt_globsym_save_CFLAGS=$CFLAGS
8592           LIBS="conftstm.$ac_objext"
8593           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8594           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8595   (eval $ac_link) 2>&5
8596   ac_status=$?
8597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8598   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8599             pipe_works=yes
8600           fi
8601           LIBS=$lt_globsym_save_LIBS
8602           CFLAGS=$lt_globsym_save_CFLAGS
8603         else
8604           echo "cannot find nm_test_func in $nlist" >&5
8605         fi
8606       else
8607         echo "cannot find nm_test_var in $nlist" >&5
8608       fi
8609     else
8610       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8611     fi
8612   else
8613     echo "$progname: failed program was:" >&5
8614     cat conftest.$ac_ext >&5
8615   fi
8616   rm -rf conftest* conftst*
8617
8618   # Do not use the global_symbol_pipe unless it works.
8619   if test "$pipe_works" = yes; then
8620     break
8621   else
8622     lt_cv_sys_global_symbol_pipe=
8623   fi
8624 done
8625
8626 fi
8627
8628 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8629   lt_cv_sys_global_symbol_to_cdecl=
8630 fi
8631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8633 $as_echo "failed" >&6; }
8634 else
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8636 $as_echo "ok" >&6; }
8637 fi
8638
8639 # Response file support.
8640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8641   nm_file_list_spec='@'
8642 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8643   nm_file_list_spec='@'
8644 fi
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8673 $as_echo_n "checking for sysroot... " >&6; }
8674
8675 # Check whether --with-sysroot was given.
8676 if test "${with_sysroot+set}" = set; then :
8677   withval=$with_sysroot;
8678 else
8679   with_sysroot=no
8680 fi
8681
8682
8683 lt_sysroot=
8684 case ${with_sysroot} in #(
8685  yes)
8686    if test "$GCC" = yes; then
8687      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8688    fi
8689    ;; #(
8690  /*)
8691    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8692    ;; #(
8693  no|'')
8694    ;; #(
8695  *)
8696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8697 $as_echo "${with_sysroot}" >&6; }
8698    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8699    ;;
8700 esac
8701
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8703 $as_echo "${lt_sysroot:-no}" >&6; }
8704
8705
8706
8707
8708
8709 # Check whether --enable-libtool-lock was given.
8710 if test "${enable_libtool_lock+set}" = set; then :
8711   enableval=$enable_libtool_lock;
8712 fi
8713
8714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8715
8716 # Some flags need to be propagated to the compiler or linker for good
8717 # libtool support.
8718 case $host in
8719 ia64-*-hpux*)
8720   # Find out which ABI we are using.
8721   echo 'int i;' > conftest.$ac_ext
8722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8723   (eval $ac_compile) 2>&5
8724   ac_status=$?
8725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726   test $ac_status = 0; }; then
8727     case `/usr/bin/file conftest.$ac_objext` in
8728       *ELF-32*)
8729         HPUX_IA64_MODE="32"
8730         ;;
8731       *ELF-64*)
8732         HPUX_IA64_MODE="64"
8733         ;;
8734     esac
8735   fi
8736   rm -rf conftest*
8737   ;;
8738 *-*-irix6*)
8739   # Find out which ABI we are using.
8740   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8742   (eval $ac_compile) 2>&5
8743   ac_status=$?
8744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745   test $ac_status = 0; }; then
8746     if test "$lt_cv_prog_gnu_ld" = yes; then
8747       case `/usr/bin/file conftest.$ac_objext` in
8748         *32-bit*)
8749           LD="${LD-ld} -melf32bsmip"
8750           ;;
8751         *N32*)
8752           LD="${LD-ld} -melf32bmipn32"
8753           ;;
8754         *64-bit*)
8755           LD="${LD-ld} -melf64bmip"
8756         ;;
8757       esac
8758     else
8759       case `/usr/bin/file conftest.$ac_objext` in
8760         *32-bit*)
8761           LD="${LD-ld} -32"
8762           ;;
8763         *N32*)
8764           LD="${LD-ld} -n32"
8765           ;;
8766         *64-bit*)
8767           LD="${LD-ld} -64"
8768           ;;
8769       esac
8770     fi
8771   fi
8772   rm -rf conftest*
8773   ;;
8774
8775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8777   # Find out which ABI we are using.
8778   echo 'int i;' > conftest.$ac_ext
8779   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8780   (eval $ac_compile) 2>&5
8781   ac_status=$?
8782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783   test $ac_status = 0; }; then
8784     case `/usr/bin/file conftest.o` in
8785       *32-bit*)
8786         case $host in
8787           x86_64-*kfreebsd*-gnu)
8788             LD="${LD-ld} -m elf_i386_fbsd"
8789             ;;
8790           x86_64-*linux*)
8791             case `/usr/bin/file conftest.o` in
8792               *x86-64*)
8793                 LD="${LD-ld} -m elf32_x86_64"
8794                 ;;
8795               *)
8796                 LD="${LD-ld} -m elf_i386"
8797                 ;;
8798             esac
8799             ;;
8800           ppc64-*linux*|powerpc64-*linux*)
8801             LD="${LD-ld} -m elf32ppclinux"
8802             ;;
8803           s390x-*linux*)
8804             LD="${LD-ld} -m elf_s390"
8805             ;;
8806           sparc64-*linux*)
8807             LD="${LD-ld} -m elf32_sparc"
8808             ;;
8809         esac
8810         ;;
8811       *64-bit*)
8812         case $host in
8813           x86_64-*kfreebsd*-gnu)
8814             LD="${LD-ld} -m elf_x86_64_fbsd"
8815             ;;
8816           x86_64-*linux*)
8817             LD="${LD-ld} -m elf_x86_64"
8818             ;;
8819           ppc*-*linux*|powerpc*-*linux*)
8820             LD="${LD-ld} -m elf64ppc"
8821             ;;
8822           s390*-*linux*|s390*-*tpf*)
8823             LD="${LD-ld} -m elf64_s390"
8824             ;;
8825           sparc*-*linux*)
8826             LD="${LD-ld} -m elf64_sparc"
8827             ;;
8828         esac
8829         ;;
8830     esac
8831   fi
8832   rm -rf conftest*
8833   ;;
8834
8835 *-*-sco3.2v5*)
8836   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8837   SAVE_CFLAGS="$CFLAGS"
8838   CFLAGS="$CFLAGS -belf"
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8840 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8841 if ${lt_cv_cc_needs_belf+:} false; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   ac_ext=c
8845 ac_cpp='$CPP $CPPFLAGS'
8846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8849
8850      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h.  */
8852
8853 int main (void)
8854 {
8855
8856  ;
8857  return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"; then :
8861   lt_cv_cc_needs_belf=yes
8862 else
8863   lt_cv_cc_needs_belf=no
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext \
8866     conftest$ac_exeext conftest.$ac_ext
8867      ac_ext=c
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8875 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8876   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8877     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8878     CFLAGS="$SAVE_CFLAGS"
8879   fi
8880   ;;
8881 *-*solaris*)
8882   # Find out which ABI we are using.
8883   echo 'int i;' > conftest.$ac_ext
8884   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8885   (eval $ac_compile) 2>&5
8886   ac_status=$?
8887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8888   test $ac_status = 0; }; then
8889     case `/usr/bin/file conftest.o` in
8890     *64-bit*)
8891       case $lt_cv_prog_gnu_ld in
8892       yes*)
8893         case $host in
8894         i?86-*-solaris*)
8895           LD="${LD-ld} -m elf_x86_64"
8896           ;;
8897         sparc*-*-solaris*)
8898           LD="${LD-ld} -m elf64_sparc"
8899           ;;
8900         esac
8901         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8902         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8903           LD="${LD-ld}_sol2"
8904         fi
8905         ;;
8906       *)
8907         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8908           LD="${LD-ld} -64"
8909         fi
8910         ;;
8911       esac
8912       ;;
8913     esac
8914   fi
8915   rm -rf conftest*
8916   ;;
8917 esac
8918
8919 need_locks="$enable_libtool_lock"
8920
8921 if test -n "$ac_tool_prefix"; then
8922   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8923 set dummy ${ac_tool_prefix}mt; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8927   $as_echo_n "(cached) " >&6
8928 else
8929   if test -n "$MANIFEST_TOOL"; then
8930   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935   IFS=$as_save_IFS
8936   test -z "$as_dir" && as_dir=.
8937     for ac_exec_ext in '' $ac_executable_extensions; do
8938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941     break 2
8942   fi
8943 done
8944   done
8945 IFS=$as_save_IFS
8946
8947 fi
8948 fi
8949 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8950 if test -n "$MANIFEST_TOOL"; then
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8952 $as_echo "$MANIFEST_TOOL" >&6; }
8953 else
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8956 fi
8957
8958
8959 fi
8960 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8961   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8962   # Extract the first word of "mt", so it can be a program name with args.
8963 set dummy mt; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   if test -n "$ac_ct_MANIFEST_TOOL"; then
8970   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8990 if test -n "$ac_ct_MANIFEST_TOOL"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8992 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
8998   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8999     MANIFEST_TOOL=":"
9000   else
9001     case $cross_compiling:$ac_tool_warned in
9002 yes:)
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9005 ac_tool_warned=yes ;;
9006 esac
9007     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9008   fi
9009 else
9010   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9011 fi
9012
9013 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9015 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9016 if ${lt_cv_path_mainfest_tool+:} false; then :
9017   $as_echo_n "(cached) " >&6
9018 else
9019   lt_cv_path_mainfest_tool=no
9020   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9021   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9022   cat conftest.err >&5
9023   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9024     lt_cv_path_mainfest_tool=yes
9025   fi
9026   rm -f conftest*
9027 fi
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9029 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9030 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9031   MANIFEST_TOOL=:
9032 fi
9033
9034
9035
9036
9037
9038
9039   case $host_os in
9040     rhapsody* | darwin*)
9041     if test -n "$ac_tool_prefix"; then
9042   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   if test -n "$DSYMUTIL"; then
9050   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9070 if test -n "$DSYMUTIL"; then
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9072 $as_echo "$DSYMUTIL" >&6; }
9073 else
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079 fi
9080 if test -z "$ac_cv_prog_DSYMUTIL"; then
9081   ac_ct_DSYMUTIL=$DSYMUTIL
9082   # Extract the first word of "dsymutil", so it can be a program name with args.
9083 set dummy dsymutil; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089   if test -n "$ac_ct_DSYMUTIL"; then
9090   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095   IFS=$as_save_IFS
9096   test -z "$as_dir" && as_dir=.
9097     for ac_exec_ext in '' $ac_executable_extensions; do
9098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101     break 2
9102   fi
9103 done
9104   done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9110 if test -n "$ac_ct_DSYMUTIL"; then
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9112 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9113 else
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118   if test "x$ac_ct_DSYMUTIL" = x; then
9119     DSYMUTIL=":"
9120   else
9121     case $cross_compiling:$ac_tool_warned in
9122 yes:)
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9126 esac
9127     DSYMUTIL=$ac_ct_DSYMUTIL
9128   fi
9129 else
9130   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9131 fi
9132
9133     if test -n "$ac_tool_prefix"; then
9134   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_NMEDIT+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$NMEDIT"; then
9142   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 NMEDIT=$ac_cv_prog_NMEDIT
9162 if test -n "$NMEDIT"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9164 $as_echo "$NMEDIT" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171 fi
9172 if test -z "$ac_cv_prog_NMEDIT"; then
9173   ac_ct_NMEDIT=$NMEDIT
9174   # Extract the first word of "nmedit", so it can be a program name with args.
9175 set dummy nmedit; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   if test -n "$ac_ct_NMEDIT"; then
9182   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189     for ac_exec_ext in '' $ac_executable_extensions; do
9190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196   done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9202 if test -n "$ac_ct_NMEDIT"; then
9203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9204 $as_echo "$ac_ct_NMEDIT" >&6; }
9205 else
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 fi
9209
9210   if test "x$ac_ct_NMEDIT" = x; then
9211     NMEDIT=":"
9212   else
9213     case $cross_compiling:$ac_tool_warned in
9214 yes:)
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9218 esac
9219     NMEDIT=$ac_ct_NMEDIT
9220   fi
9221 else
9222   NMEDIT="$ac_cv_prog_NMEDIT"
9223 fi
9224
9225     if test -n "$ac_tool_prefix"; then
9226   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9227 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_LIPO+:} false; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   if test -n "$LIPO"; then
9234   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250
9251 fi
9252 fi
9253 LIPO=$ac_cv_prog_LIPO
9254 if test -n "$LIPO"; then
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9256 $as_echo "$LIPO" >&6; }
9257 else
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262
9263 fi
9264 if test -z "$ac_cv_prog_LIPO"; then
9265   ac_ct_LIPO=$LIPO
9266   # Extract the first word of "lipo", so it can be a program name with args.
9267 set dummy lipo; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   if test -n "$ac_ct_LIPO"; then
9274   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283     ac_cv_prog_ac_ct_LIPO="lipo"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9294 if test -n "$ac_ct_LIPO"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9296 $as_echo "$ac_ct_LIPO" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302   if test "x$ac_ct_LIPO" = x; then
9303     LIPO=":"
9304   else
9305     case $cross_compiling:$ac_tool_warned in
9306 yes:)
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned=yes ;;
9310 esac
9311     LIPO=$ac_ct_LIPO
9312   fi
9313 else
9314   LIPO="$ac_cv_prog_LIPO"
9315 fi
9316
9317     if test -n "$ac_tool_prefix"; then
9318   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9319 set dummy ${ac_tool_prefix}otool; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_OTOOL+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   if test -n "$OTOOL"; then
9326   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331   IFS=$as_save_IFS
9332   test -z "$as_dir" && as_dir=.
9333     for ac_exec_ext in '' $ac_executable_extensions; do
9334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337     break 2
9338   fi
9339 done
9340   done
9341 IFS=$as_save_IFS
9342
9343 fi
9344 fi
9345 OTOOL=$ac_cv_prog_OTOOL
9346 if test -n "$OTOOL"; then
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9348 $as_echo "$OTOOL" >&6; }
9349 else
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 fi
9353
9354
9355 fi
9356 if test -z "$ac_cv_prog_OTOOL"; then
9357   ac_ct_OTOOL=$OTOOL
9358   # Extract the first word of "otool", so it can be a program name with args.
9359 set dummy otool; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   if test -n "$ac_ct_OTOOL"; then
9366   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375     ac_cv_prog_ac_ct_OTOOL="otool"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382
9383 fi
9384 fi
9385 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9386 if test -n "$ac_ct_OTOOL"; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9388 $as_echo "$ac_ct_OTOOL" >&6; }
9389 else
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394   if test "x$ac_ct_OTOOL" = x; then
9395     OTOOL=":"
9396   else
9397     case $cross_compiling:$ac_tool_warned in
9398 yes:)
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401 ac_tool_warned=yes ;;
9402 esac
9403     OTOOL=$ac_ct_OTOOL
9404   fi
9405 else
9406   OTOOL="$ac_cv_prog_OTOOL"
9407 fi
9408
9409     if test -n "$ac_tool_prefix"; then
9410   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9411 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_OTOOL64+:} false; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   if test -n "$OTOOL64"; then
9418   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9422 do
9423   IFS=$as_save_IFS
9424   test -z "$as_dir" && as_dir=.
9425     for ac_exec_ext in '' $ac_executable_extensions; do
9426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429     break 2
9430   fi
9431 done
9432   done
9433 IFS=$as_save_IFS
9434
9435 fi
9436 fi
9437 OTOOL64=$ac_cv_prog_OTOOL64
9438 if test -n "$OTOOL64"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9440 $as_echo "$OTOOL64" >&6; }
9441 else
9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9444 fi
9445
9446
9447 fi
9448 if test -z "$ac_cv_prog_OTOOL64"; then
9449   ac_ct_OTOOL64=$OTOOL64
9450   # Extract the first word of "otool64", so it can be a program name with args.
9451 set dummy otool64; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   if test -n "$ac_ct_OTOOL64"; then
9458   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467     ac_cv_prog_ac_ct_OTOOL64="otool64"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9478 if test -n "$ac_ct_OTOOL64"; then
9479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9480 $as_echo "$ac_ct_OTOOL64" >&6; }
9481 else
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 fi
9485
9486   if test "x$ac_ct_OTOOL64" = x; then
9487     OTOOL64=":"
9488   else
9489     case $cross_compiling:$ac_tool_warned in
9490 yes:)
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9493 ac_tool_warned=yes ;;
9494 esac
9495     OTOOL64=$ac_ct_OTOOL64
9496   fi
9497 else
9498   OTOOL64="$ac_cv_prog_OTOOL64"
9499 fi
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9528 $as_echo_n "checking for -single_module linker flag... " >&6; }
9529 if ${lt_cv_apple_cc_single_mod+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   lt_cv_apple_cc_single_mod=no
9533       if test -z "${LT_MULTI_MODULE}"; then
9534         # By default we will add the -single_module flag. You can override
9535         # by either setting the environment variable LT_MULTI_MODULE
9536         # non-empty at configure time, or by adding -multi_module to the
9537         # link flags.
9538         rm -rf libconftest.dylib*
9539         echo "int foo(void){return 1;}" > conftest.c
9540         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9541 -dynamiclib -Wl,-single_module conftest.c" >&5
9542         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9543           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9544         _lt_result=$?
9545         # If there is a non-empty error log, and "single_module"
9546         # appears in it, assume the flag caused a linker warning
9547         if test -s conftest.err && $GREP single_module conftest.err; then
9548           cat conftest.err >&5
9549         # Otherwise, if the output was created with a 0 exit code from
9550         # the compiler, it worked.
9551         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9552           lt_cv_apple_cc_single_mod=yes
9553         else
9554           cat conftest.err >&5
9555         fi
9556         rm -rf libconftest.dylib*
9557         rm -f conftest.*
9558       fi
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9561 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9562
9563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9564 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9565 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   lt_cv_ld_exported_symbols_list=no
9569       save_LDFLAGS=$LDFLAGS
9570       echo "_main" > conftest.sym
9571       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h.  */
9574
9575 int main (void)
9576 {
9577
9578  ;
9579  return 0;
9580 }
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583   lt_cv_ld_exported_symbols_list=yes
9584 else
9585   lt_cv_ld_exported_symbols_list=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588     conftest$ac_exeext conftest.$ac_ext
9589         LDFLAGS="$save_LDFLAGS"
9590
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9593 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9594
9595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9596 $as_echo_n "checking for -force_load linker flag... " >&6; }
9597 if ${lt_cv_ld_force_load+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   lt_cv_ld_force_load=no
9601       cat > conftest.c << _LT_EOF
9602 int forced_loaded() { return 2;}
9603 _LT_EOF
9604       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9605       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9606       echo "$AR cru libconftest.a conftest.o" >&5
9607       $AR cru libconftest.a conftest.o 2>&5
9608       echo "$RANLIB libconftest.a" >&5
9609       $RANLIB libconftest.a 2>&5
9610       cat > conftest.c << _LT_EOF
9611 int main() { return 0;}
9612 _LT_EOF
9613       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9614       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9615       _lt_result=$?
9616       if test -s conftest.err && $GREP force_load conftest.err; then
9617         cat conftest.err >&5
9618       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9619         lt_cv_ld_force_load=yes
9620       else
9621         cat conftest.err >&5
9622       fi
9623         rm -f conftest.err libconftest.a conftest conftest.c
9624         rm -rf conftest.dSYM
9625
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9628 $as_echo "$lt_cv_ld_force_load" >&6; }
9629     case $host_os in
9630     rhapsody* | darwin1.[012])
9631       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9632     darwin1.*)
9633       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9634     darwin*) # darwin 5.x on
9635       # if running on 10.5 or later, the deployment target defaults
9636       # to the OS version, if on x86, and 10.4, the deployment
9637       # target defaults to 10.4. Don't you love it?
9638       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9639         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9640           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9641         10.[012]*)
9642           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9643         10.*)
9644           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9645       esac
9646     ;;
9647   esac
9648     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9649       _lt_dar_single_mod='$single_module'
9650     fi
9651     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9652       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9653     else
9654       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9655     fi
9656     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9657       _lt_dsymutil='~$DSYMUTIL $lib || :'
9658     else
9659       _lt_dsymutil=
9660     fi
9661     ;;
9662   esac
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9665 $as_echo_n "checking for ANSI C header files... " >&6; }
9666 if ${ac_cv_header_stdc+:} false; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671 #include <stdlib.h>
9672 #include <stdarg.h>
9673 #include <string.h>
9674 #include <float.h>
9675
9676 int main (void)
9677 {
9678
9679  ;
9680  return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684   ac_cv_header_stdc=yes
9685 else
9686   ac_cv_header_stdc=no
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689
9690 if test $ac_cv_header_stdc = yes; then
9691   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h.  */
9694 #include <string.h>
9695
9696 _ACEOF
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698   $EGREP "memchr" >/dev/null 2>&1; then :
9699
9700 else
9701   ac_cv_header_stdc=no
9702 fi
9703 rm -f conftest*
9704
9705 fi
9706
9707 if test $ac_cv_header_stdc = yes; then
9708   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h.  */
9711 #include <stdlib.h>
9712
9713 _ACEOF
9714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9715   $EGREP "free" >/dev/null 2>&1; then :
9716
9717 else
9718   ac_cv_header_stdc=no
9719 fi
9720 rm -f conftest*
9721
9722 fi
9723
9724 if test $ac_cv_header_stdc = yes; then
9725   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9726   if test "$cross_compiling" = yes; then :
9727   :
9728 else
9729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h.  */
9731 #include <ctype.h>
9732 #include <stdlib.h>
9733 #if ((' ' & 0x0FF) == 0x020)
9734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9736 #else
9737 # define ISLOWER(c) \
9738                    (('a' <= (c) && (c) <= 'i') \
9739                      || ('j' <= (c) && (c) <= 'r') \
9740                      || ('s' <= (c) && (c) <= 'z'))
9741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9742 #endif
9743
9744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9745 int
9746 main ()
9747 {
9748   int i;
9749   for (i = 0; i < 256; i++)
9750     if (XOR (islower (i), ISLOWER (i))
9751         || toupper (i) != TOUPPER (i))
9752       return 2;
9753   return 0;
9754 }
9755 _ACEOF
9756 if ac_fn_c_try_run "$LINENO"; then :
9757
9758 else
9759   ac_cv_header_stdc=no
9760 fi
9761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9762   conftest.$ac_objext conftest.beam conftest.$ac_ext
9763 fi
9764
9765 fi
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9768 $as_echo "$ac_cv_header_stdc" >&6; }
9769 if test $ac_cv_header_stdc = yes; then
9770
9771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9772
9773 fi
9774
9775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9776 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9777                   inttypes.h stdint.h unistd.h
9778 do :
9779   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9781 "
9782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9783   cat >>confdefs.h <<_ACEOF
9784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9785 _ACEOF
9786
9787 fi
9788
9789 done
9790
9791
9792 for ac_header in dlfcn.h
9793 do :
9794   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9795 "
9796 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9797   cat >>confdefs.h <<_ACEOF
9798 #define HAVE_DLFCN_H 1
9799 _ACEOF
9800
9801 fi
9802
9803 done
9804
9805 # ------------------------------------ #
9806 #  Determine libtool default behavior  #
9807 # ------------------------------------ #
9808
9809 #
9810 # Default behavior is to enable shared and static libraries on systems
9811 # where libtool knows how to build both library versions, and does not
9812 # require separate configuration and build runs for each flavor.
9813 #
9814
9815 xc_lt_want_enable_shared='yes'
9816 xc_lt_want_enable_static='yes'
9817
9818 #
9819 # User may have disabled shared or static libraries.
9820 #
9821 case "x$enable_shared" in # (
9822   xno)
9823     xc_lt_want_enable_shared='no'
9824     ;;
9825 esac
9826 case "x$enable_static" in # (
9827   xno)
9828     xc_lt_want_enable_static='no'
9829     ;;
9830 esac
9831 if test "x$xc_lt_want_enable_shared" = 'xno' &&
9832   test "x$xc_lt_want_enable_static" = 'xno'; then
9833   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
9834 fi
9835
9836 #
9837 # Default behavior on systems that require independent configuration
9838 # and build runs for shared and static is to enable shared libraries
9839 # and disable static ones. On these systems option '--disable-shared'
9840 # must be used in order to build a proper static library.
9841 #
9842
9843 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
9844   test "x$xc_lt_want_enable_static" = 'xyes'; then
9845   case $host_os in # (
9846     mingw* | pw32* | cegcc* | os2* | aix*)
9847       xc_lt_want_enable_static='no'
9848       ;;
9849   esac
9850 fi
9851
9852 #
9853 # Make libtool aware of current shared and static library preferences
9854 # taking in account that, depending on host characteristics, libtool
9855 # may modify these option preferences later in this configure script.
9856 #
9857
9858 enable_shared=$xc_lt_want_enable_shared
9859 enable_static=$xc_lt_want_enable_static
9860
9861 #
9862 # Default behavior is to build PIC objects for shared libraries and
9863 # non-PIC objects for static libraries.
9864 #
9865
9866 xc_lt_want_with_pic='default'
9867
9868 #
9869 # User may have specified PIC preference.
9870 #
9871
9872 case "x$with_pic" in # ((
9873   xno)
9874     xc_lt_want_with_pic='no'
9875     ;;
9876   xyes)
9877     xc_lt_want_with_pic='yes'
9878     ;;
9879 esac
9880
9881 #
9882 # Default behavior on some systems where building a shared library out
9883 # of non-PIC compiled objects will fail with following linker error
9884 # "relocation R_X86_64_32 can not be used when making a shared object"
9885 # is to build PIC objects even for static libraries. This behavior may
9886 # be overriden using 'configure --disable-shared --without-pic'.
9887 #
9888
9889 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
9890   case $host_cpu in # (
9891     x86_64 | amd64 | ia64)
9892       case $host_os in # (
9893         linux* | freebsd*)
9894           xc_lt_want_with_pic='yes'
9895           ;;
9896       esac
9897       ;;
9898   esac
9899 fi
9900
9901 #
9902 # Make libtool aware of current PIC preference taking in account that,
9903 # depending on host characteristics, libtool may modify PIC default
9904 # behavior to fit host system idiosyncrasies later in this script.
9905 #
9906
9907 with_pic=$xc_lt_want_with_pic
9908
9909 ## ----------------------- ##
9910 ##  Start of libtool code  ##
9911 ## ----------------------- ##
9912
9913
9914
9915
9916 # Set options
9917 enable_win32_dll=yes
9918
9919 case $host in
9920 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9921   if test -n "$ac_tool_prefix"; then
9922   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9923 set dummy ${ac_tool_prefix}as; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if ${ac_cv_prog_AS+:} false; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   if test -n "$AS"; then
9930   ac_cv_prog_AS="$AS" # Let the user override the test.
9931 else
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935   IFS=$as_save_IFS
9936   test -z "$as_dir" && as_dir=.
9937     for ac_exec_ext in '' $ac_executable_extensions; do
9938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9939     ac_cv_prog_AS="${ac_tool_prefix}as"
9940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941     break 2
9942   fi
9943 done
9944   done
9945 IFS=$as_save_IFS
9946
9947 fi
9948 fi
9949 AS=$ac_cv_prog_AS
9950 if test -n "$AS"; then
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9952 $as_echo "$AS" >&6; }
9953 else
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 fi
9957
9958
9959 fi
9960 if test -z "$ac_cv_prog_AS"; then
9961   ac_ct_AS=$AS
9962   # Extract the first word of "as", so it can be a program name with args.
9963 set dummy as; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   if test -n "$ac_ct_AS"; then
9970   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979     ac_cv_prog_ac_ct_AS="as"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986
9987 fi
9988 fi
9989 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9990 if test -n "$ac_ct_AS"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9992 $as_echo "$ac_ct_AS" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997
9998   if test "x$ac_ct_AS" = x; then
9999     AS="false"
10000   else
10001     case $cross_compiling:$ac_tool_warned in
10002 yes:)
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10005 ac_tool_warned=yes ;;
10006 esac
10007     AS=$ac_ct_AS
10008   fi
10009 else
10010   AS="$ac_cv_prog_AS"
10011 fi
10012
10013   if test -n "$ac_tool_prefix"; then
10014   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_prog_DLLTOOL+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   if test -n "$DLLTOOL"; then
10022   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027   IFS=$as_save_IFS
10028   test -z "$as_dir" && as_dir=.
10029     for ac_exec_ext in '' $ac_executable_extensions; do
10030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033     break 2
10034   fi
10035 done
10036   done
10037 IFS=$as_save_IFS
10038
10039 fi
10040 fi
10041 DLLTOOL=$ac_cv_prog_DLLTOOL
10042 if test -n "$DLLTOOL"; then
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10044 $as_echo "$DLLTOOL" >&6; }
10045 else
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10048 fi
10049
10050
10051 fi
10052 if test -z "$ac_cv_prog_DLLTOOL"; then
10053   ac_ct_DLLTOOL=$DLLTOOL
10054   # Extract the first word of "dlltool", so it can be a program name with args.
10055 set dummy dlltool; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   if test -n "$ac_ct_DLLTOOL"; then
10062   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10082 if test -n "$ac_ct_DLLTOOL"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10084 $as_echo "$ac_ct_DLLTOOL" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090   if test "x$ac_ct_DLLTOOL" = x; then
10091     DLLTOOL="false"
10092   else
10093     case $cross_compiling:$ac_tool_warned in
10094 yes:)
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10097 ac_tool_warned=yes ;;
10098 esac
10099     DLLTOOL=$ac_ct_DLLTOOL
10100   fi
10101 else
10102   DLLTOOL="$ac_cv_prog_DLLTOOL"
10103 fi
10104
10105   if test -n "$ac_tool_prefix"; then
10106   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10107 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_prog_OBJDUMP+:} false; then :
10111   $as_echo_n "(cached) " >&6
10112 else
10113   if test -n "$OBJDUMP"; then
10114   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10115 else
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10118 do
10119   IFS=$as_save_IFS
10120   test -z "$as_dir" && as_dir=.
10121     for ac_exec_ext in '' $ac_executable_extensions; do
10122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125     break 2
10126   fi
10127 done
10128   done
10129 IFS=$as_save_IFS
10130
10131 fi
10132 fi
10133 OBJDUMP=$ac_cv_prog_OBJDUMP
10134 if test -n "$OBJDUMP"; then
10135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10136 $as_echo "$OBJDUMP" >&6; }
10137 else
10138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10140 fi
10141
10142
10143 fi
10144 if test -z "$ac_cv_prog_OBJDUMP"; then
10145   ac_ct_OBJDUMP=$OBJDUMP
10146   # Extract the first word of "objdump", so it can be a program name with args.
10147 set dummy objdump; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10151   $as_echo_n "(cached) " >&6
10152 else
10153   if test -n "$ac_ct_OBJDUMP"; then
10154   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10155 else
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159   IFS=$as_save_IFS
10160   test -z "$as_dir" && as_dir=.
10161     for ac_exec_ext in '' $ac_executable_extensions; do
10162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165     break 2
10166   fi
10167 done
10168   done
10169 IFS=$as_save_IFS
10170
10171 fi
10172 fi
10173 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10174 if test -n "$ac_ct_OBJDUMP"; then
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10176 $as_echo "$ac_ct_OBJDUMP" >&6; }
10177 else
10178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180 fi
10181
10182   if test "x$ac_ct_OBJDUMP" = x; then
10183     OBJDUMP="false"
10184   else
10185     case $cross_compiling:$ac_tool_warned in
10186 yes:)
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10189 ac_tool_warned=yes ;;
10190 esac
10191     OBJDUMP=$ac_ct_OBJDUMP
10192   fi
10193 else
10194   OBJDUMP="$ac_cv_prog_OBJDUMP"
10195 fi
10196
10197   ;;
10198 esac
10199
10200 test -z "$AS" && AS=as
10201
10202
10203
10204
10205
10206 test -z "$DLLTOOL" && DLLTOOL=dlltool
10207
10208
10209
10210
10211
10212 test -z "$OBJDUMP" && OBJDUMP=objdump
10213
10214
10215
10216
10217
10218
10219
10220         enable_dlopen=no
10221
10222
10223
10224             # Check whether --enable-shared was given.
10225 if test "${enable_shared+set}" = set; then :
10226   enableval=$enable_shared; p=${PACKAGE-default}
10227     case $enableval in
10228     yes) enable_shared=yes ;;
10229     no) enable_shared=no ;;
10230     *)
10231       enable_shared=no
10232       # Look at the argument we got.  We use all the common list separators.
10233       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10234       for pkg in $enableval; do
10235         IFS="$lt_save_ifs"
10236         if test "X$pkg" = "X$p"; then
10237           enable_shared=yes
10238         fi
10239       done
10240       IFS="$lt_save_ifs"
10241       ;;
10242     esac
10243 else
10244   enable_shared=yes
10245 fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255   # Check whether --enable-static was given.
10256 if test "${enable_static+set}" = set; then :
10257   enableval=$enable_static; p=${PACKAGE-default}
10258     case $enableval in
10259     yes) enable_static=yes ;;
10260     no) enable_static=no ;;
10261     *)
10262      enable_static=no
10263       # Look at the argument we got.  We use all the common list separators.
10264       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10265       for pkg in $enableval; do
10266         IFS="$lt_save_ifs"
10267         if test "X$pkg" = "X$p"; then
10268           enable_static=yes
10269         fi
10270       done
10271       IFS="$lt_save_ifs"
10272       ;;
10273     esac
10274 else
10275   enable_static=yes
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287 # Check whether --with-pic was given.
10288 if test "${with_pic+set}" = set; then :
10289   withval=$with_pic; lt_p=${PACKAGE-default}
10290     case $withval in
10291     yes|no) pic_mode=$withval ;;
10292     *)
10293       pic_mode=default
10294       # Look at the argument we got.  We use all the common list separators.
10295       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10296       for lt_pkg in $withval; do
10297         IFS="$lt_save_ifs"
10298         if test "X$lt_pkg" = "X$lt_p"; then
10299           pic_mode=yes
10300         fi
10301       done
10302       IFS="$lt_save_ifs"
10303       ;;
10304     esac
10305 else
10306   pic_mode=default
10307 fi
10308
10309
10310 test -z "$pic_mode" && pic_mode=default
10311
10312
10313
10314
10315
10316
10317
10318   # Check whether --enable-fast-install was given.
10319 if test "${enable_fast_install+set}" = set; then :
10320   enableval=$enable_fast_install; p=${PACKAGE-default}
10321     case $enableval in
10322     yes) enable_fast_install=yes ;;
10323     no) enable_fast_install=no ;;
10324     *)
10325       enable_fast_install=no
10326       # Look at the argument we got.  We use all the common list separators.
10327       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10328       for pkg in $enableval; do
10329         IFS="$lt_save_ifs"
10330         if test "X$pkg" = "X$p"; then
10331           enable_fast_install=yes
10332         fi
10333       done
10334       IFS="$lt_save_ifs"
10335       ;;
10336     esac
10337 else
10338   enable_fast_install=yes
10339 fi
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351 # This can be used to rebuild libtool when needed
10352 LIBTOOL_DEPS="$ltmain"
10353
10354 # Always use our own libtool.
10355 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386 test -z "$LN_S" && LN_S="ln -s"
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 if test -n "${ZSH_VERSION+set}" ; then
10402    setopt NO_GLOB_SUBST
10403 fi
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10406 $as_echo_n "checking for objdir... " >&6; }
10407 if ${lt_cv_objdir+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   rm -f .libs 2>/dev/null
10411 mkdir .libs 2>/dev/null
10412 if test -d .libs; then
10413   lt_cv_objdir=.libs
10414 else
10415   # MS-DOS does not allow filenames that begin with a dot.
10416   lt_cv_objdir=_libs
10417 fi
10418 rmdir .libs 2>/dev/null
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10421 $as_echo "$lt_cv_objdir" >&6; }
10422 objdir=$lt_cv_objdir
10423
10424
10425
10426
10427
10428 cat >>confdefs.h <<_ACEOF
10429 #define LT_OBJDIR "$lt_cv_objdir/"
10430 _ACEOF
10431
10432
10433
10434
10435 case $host_os in
10436 aix3*)
10437   # AIX sometimes has problems with the GCC collect2 program.  For some
10438   # reason, if we set the COLLECT_NAMES environment variable, the problems
10439   # vanish in a puff of smoke.
10440   if test "X${COLLECT_NAMES+set}" != Xset; then
10441     COLLECT_NAMES=
10442     export COLLECT_NAMES
10443   fi
10444   ;;
10445 esac
10446
10447 # Global variables:
10448 ofile=libtool
10449 can_build_shared=yes
10450
10451 # All known linkers require a `.a' archive for static linking (except MSVC,
10452 # which needs '.lib').
10453 libext=a
10454
10455 with_gnu_ld="$lt_cv_prog_gnu_ld"
10456
10457 old_CC="$CC"
10458 old_CFLAGS="$CFLAGS"
10459
10460 # Set sane defaults for various variables
10461 test -z "$CC" && CC=cc
10462 test -z "$LTCC" && LTCC=$CC
10463 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10464 test -z "$LD" && LD=ld
10465 test -z "$ac_objext" && ac_objext=o
10466
10467 for cc_temp in $compiler""; do
10468   case $cc_temp in
10469     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10470     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10471     \-*) ;;
10472     *) break;;
10473   esac
10474 done
10475 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10476
10477
10478 # Only perform the check for file, if the check method requires it
10479 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10480 case $deplibs_check_method in
10481 file_magic*)
10482   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10484 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10485 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   case $MAGIC_CMD in
10489 [\\/*] |  ?:[\\/]*)
10490   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10491   ;;
10492 *)
10493   lt_save_MAGIC_CMD="$MAGIC_CMD"
10494   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10495   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10496   for ac_dir in $ac_dummy; do
10497     IFS="$lt_save_ifs"
10498     test -z "$ac_dir" && ac_dir=.
10499     if test -f $ac_dir/${ac_tool_prefix}file; then
10500       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10501       if test -n "$file_magic_test_file"; then
10502         case $deplibs_check_method in
10503         "file_magic "*)
10504           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10505           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10506           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10507             $EGREP "$file_magic_regex" > /dev/null; then
10508             :
10509           else
10510             cat <<_LT_EOF 1>&2
10511
10512 *** Warning: the command libtool uses to detect shared libraries,
10513 *** $file_magic_cmd, produces output that libtool cannot recognize.
10514 *** The result is that libtool may fail to recognize shared libraries
10515 *** as such.  This will affect the creation of libtool libraries that
10516 *** depend on shared libraries, but programs linked with such libtool
10517 *** libraries will work regardless of this problem.  Nevertheless, you
10518 *** may want to report the problem to your system manager and/or to
10519 *** bug-libtool@gnu.org
10520
10521 _LT_EOF
10522           fi ;;
10523         esac
10524       fi
10525       break
10526     fi
10527   done
10528   IFS="$lt_save_ifs"
10529   MAGIC_CMD="$lt_save_MAGIC_CMD"
10530   ;;
10531 esac
10532 fi
10533
10534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10535 if test -n "$MAGIC_CMD"; then
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10537 $as_echo "$MAGIC_CMD" >&6; }
10538 else
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10541 fi
10542
10543
10544
10545
10546
10547 if test -z "$lt_cv_path_MAGIC_CMD"; then
10548   if test -n "$ac_tool_prefix"; then
10549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10550 $as_echo_n "checking for file... " >&6; }
10551 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10552   $as_echo_n "(cached) " >&6
10553 else
10554   case $MAGIC_CMD in
10555 [\\/*] |  ?:[\\/]*)
10556   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10557   ;;
10558 *)
10559   lt_save_MAGIC_CMD="$MAGIC_CMD"
10560   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10561   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10562   for ac_dir in $ac_dummy; do
10563     IFS="$lt_save_ifs"
10564     test -z "$ac_dir" && ac_dir=.
10565     if test -f $ac_dir/file; then
10566       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10567       if test -n "$file_magic_test_file"; then
10568         case $deplibs_check_method in
10569         "file_magic "*)
10570           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10571           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10572           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10573             $EGREP "$file_magic_regex" > /dev/null; then
10574             :
10575           else
10576             cat <<_LT_EOF 1>&2
10577
10578 *** Warning: the command libtool uses to detect shared libraries,
10579 *** $file_magic_cmd, produces output that libtool cannot recognize.
10580 *** The result is that libtool may fail to recognize shared libraries
10581 *** as such.  This will affect the creation of libtool libraries that
10582 *** depend on shared libraries, but programs linked with such libtool
10583 *** libraries will work regardless of this problem.  Nevertheless, you
10584 *** may want to report the problem to your system manager and/or to
10585 *** bug-libtool@gnu.org
10586
10587 _LT_EOF
10588           fi ;;
10589         esac
10590       fi
10591       break
10592     fi
10593   done
10594   IFS="$lt_save_ifs"
10595   MAGIC_CMD="$lt_save_MAGIC_CMD"
10596   ;;
10597 esac
10598 fi
10599
10600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10601 if test -n "$MAGIC_CMD"; then
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10603 $as_echo "$MAGIC_CMD" >&6; }
10604 else
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10609
10610   else
10611     MAGIC_CMD=:
10612   fi
10613 fi
10614
10615   fi
10616   ;;
10617 esac
10618
10619 # Use C for the default configuration in the libtool script
10620
10621 lt_save_CC="$CC"
10622 ac_ext=c
10623 ac_cpp='$CPP $CPPFLAGS'
10624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10627
10628
10629 # Source file extension for C test sources.
10630 ac_ext=c
10631
10632 # Object file extension for compiled C test sources.
10633 objext=o
10634 objext=$objext
10635
10636 # Code to be used in simple compile tests
10637 lt_simple_compile_test_code="int some_variable = 0;"
10638
10639 # Code to be used in simple link tests
10640 lt_simple_link_test_code='int main(){return(0);}'
10641
10642
10643
10644
10645
10646
10647
10648 # If no C compiler was specified, use CC.
10649 LTCC=${LTCC-"$CC"}
10650
10651 # If no C compiler flags were specified, use CFLAGS.
10652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10653
10654 # Allow CC to be a program name with arguments.
10655 compiler=$CC
10656
10657 # Save the default compiler, since it gets overwritten when the other
10658 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10659 compiler_DEFAULT=$CC
10660
10661 # save warnings/boilerplate of simple test code
10662 ac_outfile=conftest.$ac_objext
10663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10665 _lt_compiler_boilerplate=`cat conftest.err`
10666 $RM conftest*
10667
10668 ac_outfile=conftest.$ac_objext
10669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10671 _lt_linker_boilerplate=`cat conftest.err`
10672 $RM -r conftest*
10673
10674
10675 ## CAVEAT EMPTOR:
10676 ## There is no encapsulation within the following macros, do not change
10677 ## the running order or otherwise move them around unless you know exactly
10678 ## what you are doing...
10679 if test -n "$compiler"; then
10680
10681 lt_prog_compiler_no_builtin_flag=
10682
10683 if test "$GCC" = yes; then
10684   case $cc_basename in
10685   nvcc*)
10686     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10687   *)
10688     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10689   esac
10690
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10692 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10693 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   lt_cv_prog_compiler_rtti_exceptions=no
10697    ac_outfile=conftest.$ac_objext
10698    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10699    lt_compiler_flag="-fno-rtti -fno-exceptions"
10700    # Insert the option either (1) after the last *FLAGS variable, or
10701    # (2) before a word containing "conftest.", or (3) at the end.
10702    # Note that $ac_compile itself does not contain backslashes and begins
10703    # with a dollar sign (not a hyphen), so the echo should work correctly.
10704    # The option is referenced via a variable to avoid confusing sed.
10705    lt_compile=`echo "$ac_compile" | $SED \
10706    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10707    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10708    -e 's:$: $lt_compiler_flag:'`
10709    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10710    (eval "$lt_compile" 2>conftest.err)
10711    ac_status=$?
10712    cat conftest.err >&5
10713    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714    if (exit $ac_status) && test -s "$ac_outfile"; then
10715      # The compiler can only warn and ignore the option if not recognized
10716      # So say no if there are warnings other than the usual output.
10717      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10718      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10719      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10720        lt_cv_prog_compiler_rtti_exceptions=yes
10721      fi
10722    fi
10723    $RM conftest*
10724
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10727 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10728
10729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10730     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10731 else
10732     :
10733 fi
10734
10735 fi
10736
10737
10738
10739
10740
10741
10742   lt_prog_compiler_wl=
10743 lt_prog_compiler_pic=
10744 lt_prog_compiler_static=
10745
10746
10747   if test "$GCC" = yes; then
10748     lt_prog_compiler_wl='-Wl,'
10749     lt_prog_compiler_static='-static'
10750
10751     case $host_os in
10752       aix*)
10753       # All AIX code is PIC.
10754       if test "$host_cpu" = ia64; then
10755         # AIX 5 now supports IA64 processor
10756         lt_prog_compiler_static='-Bstatic'
10757       fi
10758       ;;
10759
10760     amigaos*)
10761       case $host_cpu in
10762       powerpc)
10763             # see comment about AmigaOS4 .so support
10764             lt_prog_compiler_pic='-fPIC'
10765         ;;
10766       m68k)
10767             # FIXME: we need at least 68020 code to build shared libraries, but
10768             # adding the `-m68020' flag to GCC prevents building anything better,
10769             # like `-m68040'.
10770             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10771         ;;
10772       esac
10773       ;;
10774
10775     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776       # PIC is the default for these OSes.
10777       ;;
10778
10779     mingw* | cygwin* | pw32* | os2* | cegcc*)
10780       # This hack is so that the source file can tell whether it is being
10781       # built for inclusion in a dll (and should export symbols for example).
10782       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10783       # (--disable-auto-import) libraries
10784       lt_prog_compiler_pic='-DDLL_EXPORT'
10785       ;;
10786
10787     darwin* | rhapsody*)
10788       # PIC is the default on this platform
10789       # Common symbols not allowed in MH_DYLIB files
10790       lt_prog_compiler_pic='-fno-common'
10791       ;;
10792
10793     haiku*)
10794       # PIC is the default for Haiku.
10795       # The "-static" flag exists, but is broken.
10796       lt_prog_compiler_static=
10797       ;;
10798
10799     hpux*)
10800       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10801       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10802       # sets the default TLS model and affects inlining.
10803       case $host_cpu in
10804       hppa*64*)
10805         # +Z the default
10806         ;;
10807       *)
10808         lt_prog_compiler_pic='-fPIC'
10809         ;;
10810       esac
10811       ;;
10812
10813     interix[3-9]*)
10814       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10815       # Instead, we relocate shared libraries at runtime.
10816       ;;
10817
10818     msdosdjgpp*)
10819       # Just because we use GCC doesn't mean we suddenly get shared libraries
10820       # on systems that don't support them.
10821       lt_prog_compiler_can_build_shared=no
10822       enable_shared=no
10823       ;;
10824
10825     *nto* | *qnx*)
10826       # QNX uses GNU C++, but need to define -shared option too, otherwise
10827       # it will coredump.
10828       lt_prog_compiler_pic='-fPIC -shared'
10829       ;;
10830
10831     sysv4*MP*)
10832       if test -d /usr/nec; then
10833         lt_prog_compiler_pic=-Kconform_pic
10834       fi
10835       ;;
10836
10837     *)
10838       lt_prog_compiler_pic='-fPIC'
10839       ;;
10840     esac
10841
10842     case $cc_basename in
10843     nvcc*) # Cuda Compiler Driver 2.2
10844       lt_prog_compiler_wl='-Xlinker '
10845       if test -n "$lt_prog_compiler_pic"; then
10846         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10847       fi
10848       ;;
10849     esac
10850   else
10851     # PORTME Check for flag to pass linker flags through the system compiler.
10852     case $host_os in
10853     aix*)
10854       lt_prog_compiler_wl='-Wl,'
10855       if test "$host_cpu" = ia64; then
10856         # AIX 5 now supports IA64 processor
10857         lt_prog_compiler_static='-Bstatic'
10858       else
10859         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10860       fi
10861       ;;
10862
10863     mingw* | cygwin* | pw32* | os2* | cegcc*)
10864       # This hack is so that the source file can tell whether it is being
10865       # built for inclusion in a dll (and should export symbols for example).
10866       lt_prog_compiler_pic='-DDLL_EXPORT'
10867       ;;
10868
10869     hpux9* | hpux10* | hpux11*)
10870       lt_prog_compiler_wl='-Wl,'
10871       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10872       # not for PA HP-UX.
10873       case $host_cpu in
10874       hppa*64*|ia64*)
10875         # +Z the default
10876         ;;
10877       *)
10878         lt_prog_compiler_pic='+Z'
10879         ;;
10880       esac
10881       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10882       lt_prog_compiler_static='${wl}-a ${wl}archive'
10883       ;;
10884
10885     irix5* | irix6* | nonstopux*)
10886       lt_prog_compiler_wl='-Wl,'
10887       # PIC (with -KPIC) is the default.
10888       lt_prog_compiler_static='-non_shared'
10889       ;;
10890
10891     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10892       case $cc_basename in
10893       # old Intel for x86_64 which still supported -KPIC.
10894       ecc*)
10895         lt_prog_compiler_wl='-Wl,'
10896         lt_prog_compiler_pic='-KPIC'
10897         lt_prog_compiler_static='-static'
10898         ;;
10899       # icc used to be incompatible with GCC.
10900       # ICC 10 doesn't accept -KPIC any more.
10901       icc* | ifort*)
10902         lt_prog_compiler_wl='-Wl,'
10903         lt_prog_compiler_pic='-fPIC'
10904         lt_prog_compiler_static='-static'
10905         ;;
10906       # Lahey Fortran 8.1.
10907       lf95*)
10908         lt_prog_compiler_wl='-Wl,'
10909         lt_prog_compiler_pic='--shared'
10910         lt_prog_compiler_static='--static'
10911         ;;
10912       nagfor*)
10913         # NAG Fortran compiler
10914         lt_prog_compiler_wl='-Wl,-Wl,,'
10915         lt_prog_compiler_pic='-PIC'
10916         lt_prog_compiler_static='-Bstatic'
10917         ;;
10918       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10919         # Portland Group compilers (*not* the Pentium gcc compiler,
10920         # which looks to be a dead project)
10921         lt_prog_compiler_wl='-Wl,'
10922         lt_prog_compiler_pic='-fpic'
10923         lt_prog_compiler_static='-Bstatic'
10924         ;;
10925       ccc*)
10926         lt_prog_compiler_wl='-Wl,'
10927         # All Alpha code is PIC.
10928         lt_prog_compiler_static='-non_shared'
10929         ;;
10930       xl* | bgxl* | bgf* | mpixl*)
10931         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10932         lt_prog_compiler_wl='-Wl,'
10933         lt_prog_compiler_pic='-qpic'
10934         lt_prog_compiler_static='-qstaticlink'
10935         ;;
10936       *)
10937         case `$CC -V 2>&1 | sed 5q` in
10938         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10939           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10940           lt_prog_compiler_pic='-KPIC'
10941           lt_prog_compiler_static='-Bstatic'
10942           lt_prog_compiler_wl=''
10943           ;;
10944         *Sun\ F* | *Sun*Fortran*)
10945           lt_prog_compiler_pic='-KPIC'
10946           lt_prog_compiler_static='-Bstatic'
10947           lt_prog_compiler_wl='-Qoption ld '
10948           ;;
10949         *Sun\ C*)
10950           # Sun C 5.9
10951           lt_prog_compiler_pic='-KPIC'
10952           lt_prog_compiler_static='-Bstatic'
10953           lt_prog_compiler_wl='-Wl,'
10954           ;;
10955         *Intel*\ [CF]*Compiler*)
10956           lt_prog_compiler_wl='-Wl,'
10957           lt_prog_compiler_pic='-fPIC'
10958           lt_prog_compiler_static='-static'
10959           ;;
10960         *Portland\ Group*)
10961           lt_prog_compiler_wl='-Wl,'
10962           lt_prog_compiler_pic='-fpic'
10963           lt_prog_compiler_static='-Bstatic'
10964           ;;
10965         esac
10966         ;;
10967       esac
10968       ;;
10969
10970     newsos6)
10971       lt_prog_compiler_pic='-KPIC'
10972       lt_prog_compiler_static='-Bstatic'
10973       ;;
10974
10975     *nto* | *qnx*)
10976       # QNX uses GNU C++, but need to define -shared option too, otherwise
10977       # it will coredump.
10978       lt_prog_compiler_pic='-fPIC -shared'
10979       ;;
10980
10981     osf3* | osf4* | osf5*)
10982       lt_prog_compiler_wl='-Wl,'
10983       # All OSF/1 code is PIC.
10984       lt_prog_compiler_static='-non_shared'
10985       ;;
10986
10987     rdos*)
10988       lt_prog_compiler_static='-non_shared'
10989       ;;
10990
10991     solaris*)
10992       lt_prog_compiler_pic='-KPIC'
10993       lt_prog_compiler_static='-Bstatic'
10994       case $cc_basename in
10995       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10996         lt_prog_compiler_wl='-Qoption ld ';;
10997       *)
10998         lt_prog_compiler_wl='-Wl,';;
10999       esac
11000       ;;
11001
11002     sunos4*)
11003       lt_prog_compiler_wl='-Qoption ld '
11004       lt_prog_compiler_pic='-PIC'
11005       lt_prog_compiler_static='-Bstatic'
11006       ;;
11007
11008     sysv4 | sysv4.2uw2* | sysv4.3*)
11009       lt_prog_compiler_wl='-Wl,'
11010       lt_prog_compiler_pic='-KPIC'
11011       lt_prog_compiler_static='-Bstatic'
11012       ;;
11013
11014     sysv4*MP*)
11015       if test -d /usr/nec ;then
11016         lt_prog_compiler_pic='-Kconform_pic'
11017         lt_prog_compiler_static='-Bstatic'
11018       fi
11019       ;;
11020
11021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11022       lt_prog_compiler_wl='-Wl,'
11023       lt_prog_compiler_pic='-KPIC'
11024       lt_prog_compiler_static='-Bstatic'
11025       ;;
11026
11027     unicos*)
11028       lt_prog_compiler_wl='-Wl,'
11029       lt_prog_compiler_can_build_shared=no
11030       ;;
11031
11032     uts4*)
11033       lt_prog_compiler_pic='-pic'
11034       lt_prog_compiler_static='-Bstatic'
11035       ;;
11036
11037     *)
11038       lt_prog_compiler_can_build_shared=no
11039       ;;
11040     esac
11041   fi
11042
11043 case $host_os in
11044   # For platforms which do not support PIC, -DPIC is meaningless:
11045   *djgpp*)
11046     lt_prog_compiler_pic=
11047     ;;
11048   *)
11049     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11050     ;;
11051 esac
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11055 if ${lt_cv_prog_compiler_pic+:} false; then :
11056   $as_echo_n "(cached) " >&6
11057 else
11058   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11061 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11062 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11063
11064 #
11065 # Check to make sure the PIC flag actually works.
11066 #
11067 if test -n "$lt_prog_compiler_pic"; then
11068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11069 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11070 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   lt_cv_prog_compiler_pic_works=no
11074    ac_outfile=conftest.$ac_objext
11075    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11076    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11077    # Insert the option either (1) after the last *FLAGS variable, or
11078    # (2) before a word containing "conftest.", or (3) at the end.
11079    # Note that $ac_compile itself does not contain backslashes and begins
11080    # with a dollar sign (not a hyphen), so the echo should work correctly.
11081    # The option is referenced via a variable to avoid confusing sed.
11082    lt_compile=`echo "$ac_compile" | $SED \
11083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11085    -e 's:$: $lt_compiler_flag:'`
11086    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11087    (eval "$lt_compile" 2>conftest.err)
11088    ac_status=$?
11089    cat conftest.err >&5
11090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091    if (exit $ac_status) && test -s "$ac_outfile"; then
11092      # The compiler can only warn and ignore the option if not recognized
11093      # So say no if there are warnings other than the usual output.
11094      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11095      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11096      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11097        lt_cv_prog_compiler_pic_works=yes
11098      fi
11099    fi
11100    $RM conftest*
11101
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11104 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11105
11106 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11107     case $lt_prog_compiler_pic in
11108      "" | " "*) ;;
11109      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11110      esac
11111 else
11112     lt_prog_compiler_pic=
11113      lt_prog_compiler_can_build_shared=no
11114 fi
11115
11116 fi
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 #
11129 # Check to make sure the static flag actually works.
11130 #
11131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11134 if ${lt_cv_prog_compiler_static_works+:} false; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   lt_cv_prog_compiler_static_works=no
11138    save_LDFLAGS="$LDFLAGS"
11139    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11140    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11141    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11142      # The linker can only warn and ignore the option if not recognized
11143      # So say no if there are warnings
11144      if test -s conftest.err; then
11145        # Append any errors to the config.log.
11146        cat conftest.err 1>&5
11147        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11148        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11149        if diff conftest.exp conftest.er2 >/dev/null; then
11150          lt_cv_prog_compiler_static_works=yes
11151        fi
11152      else
11153        lt_cv_prog_compiler_static_works=yes
11154      fi
11155    fi
11156    $RM -r conftest*
11157    LDFLAGS="$save_LDFLAGS"
11158
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11162
11163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11164     :
11165 else
11166     lt_prog_compiler_static=
11167 fi
11168
11169
11170
11171
11172
11173
11174
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11177 if ${lt_cv_prog_compiler_c_o+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   lt_cv_prog_compiler_c_o=no
11181    $RM -r conftest 2>/dev/null
11182    mkdir conftest
11183    cd conftest
11184    mkdir out
11185    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11186
11187    lt_compiler_flag="-o out/conftest2.$ac_objext"
11188    # Insert the option either (1) after the last *FLAGS variable, or
11189    # (2) before a word containing "conftest.", or (3) at the end.
11190    # Note that $ac_compile itself does not contain backslashes and begins
11191    # with a dollar sign (not a hyphen), so the echo should work correctly.
11192    lt_compile=`echo "$ac_compile" | $SED \
11193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11195    -e 's:$: $lt_compiler_flag:'`
11196    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11197    (eval "$lt_compile" 2>out/conftest.err)
11198    ac_status=$?
11199    cat out/conftest.err >&5
11200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11202    then
11203      # The compiler can only warn and ignore the option if not recognized
11204      # So say no if there are warnings
11205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11206      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11207      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11208        lt_cv_prog_compiler_c_o=yes
11209      fi
11210    fi
11211    chmod u+w . 2>&5
11212    $RM conftest*
11213    # SGI C++ compiler will create directory out/ii_files/ for
11214    # template instantiation
11215    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11216    $RM out/* && rmdir out
11217    cd ..
11218    $RM -r conftest
11219    $RM conftest*
11220
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11224
11225
11226
11227
11228
11229
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11232 if ${lt_cv_prog_compiler_c_o+:} false; then :
11233   $as_echo_n "(cached) " >&6
11234 else
11235   lt_cv_prog_compiler_c_o=no
11236    $RM -r conftest 2>/dev/null
11237    mkdir conftest
11238    cd conftest
11239    mkdir out
11240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11241
11242    lt_compiler_flag="-o out/conftest2.$ac_objext"
11243    # Insert the option either (1) after the last *FLAGS variable, or
11244    # (2) before a word containing "conftest.", or (3) at the end.
11245    # Note that $ac_compile itself does not contain backslashes and begins
11246    # with a dollar sign (not a hyphen), so the echo should work correctly.
11247    lt_compile=`echo "$ac_compile" | $SED \
11248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11250    -e 's:$: $lt_compiler_flag:'`
11251    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11252    (eval "$lt_compile" 2>out/conftest.err)
11253    ac_status=$?
11254    cat out/conftest.err >&5
11255    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11257    then
11258      # The compiler can only warn and ignore the option if not recognized
11259      # So say no if there are warnings
11260      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11261      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11262      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11263        lt_cv_prog_compiler_c_o=yes
11264      fi
11265    fi
11266    chmod u+w . 2>&5
11267    $RM conftest*
11268    # SGI C++ compiler will create directory out/ii_files/ for
11269    # template instantiation
11270    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11271    $RM out/* && rmdir out
11272    cd ..
11273    $RM -r conftest
11274    $RM conftest*
11275
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11279
11280
11281
11282
11283 hard_links="nottested"
11284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11285   # do not overwrite the value of need_locks provided by the user
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11287 $as_echo_n "checking if we can lock with hard links... " >&6; }
11288   hard_links=yes
11289   $RM conftest*
11290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11291   touch conftest.a
11292   ln conftest.a conftest.b 2>&5 || hard_links=no
11293   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11295 $as_echo "$hard_links" >&6; }
11296   if test "$hard_links" = no; then
11297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11299     need_locks=warn
11300   fi
11301 else
11302   need_locks=no
11303 fi
11304
11305
11306
11307
11308
11309
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11312
11313   runpath_var=
11314   allow_undefined_flag=
11315   always_export_symbols=no
11316   archive_cmds=
11317   archive_expsym_cmds=
11318   compiler_needs_object=no
11319   enable_shared_with_static_runtimes=no
11320   export_dynamic_flag_spec=
11321   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11322   hardcode_automatic=no
11323   hardcode_direct=no
11324   hardcode_direct_absolute=no
11325   hardcode_libdir_flag_spec=
11326   hardcode_libdir_separator=
11327   hardcode_minus_L=no
11328   hardcode_shlibpath_var=unsupported
11329   inherit_rpath=no
11330   link_all_deplibs=unknown
11331   module_cmds=
11332   module_expsym_cmds=
11333   old_archive_from_new_cmds=
11334   old_archive_from_expsyms_cmds=
11335   thread_safe_flag_spec=
11336   whole_archive_flag_spec=
11337   # include_expsyms should be a list of space-separated symbols to be *always*
11338   # included in the symbol list
11339   include_expsyms=
11340   # exclude_expsyms can be an extended regexp of symbols to exclude
11341   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11342   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11343   # as well as any symbol that contains `d'.
11344   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11345   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11346   # platforms (ab)use it in PIC code, but their linkers get confused if
11347   # the symbol is explicitly referenced.  Since portable code cannot
11348   # rely on this symbol name, it's probably fine to never include it in
11349   # preloaded symbol tables.
11350   # Exclude shared library initialization/finalization symbols.
11351   extract_expsyms_cmds=
11352
11353   case $host_os in
11354   cygwin* | mingw* | pw32* | cegcc*)
11355     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11356     # When not using gcc, we currently assume that we are using
11357     # Microsoft Visual C++.
11358     if test "$GCC" != yes; then
11359       with_gnu_ld=no
11360     fi
11361     ;;
11362   interix*)
11363     # we just hope/assume this is gcc and not c89 (= MSVC++)
11364     with_gnu_ld=yes
11365     ;;
11366   openbsd*)
11367     with_gnu_ld=no
11368     ;;
11369   linux* | k*bsd*-gnu | gnu*)
11370     link_all_deplibs=no
11371     ;;
11372   esac
11373
11374   ld_shlibs=yes
11375
11376   # On some targets, GNU ld is compatible enough with the native linker
11377   # that we're better off using the native interface for both.
11378   lt_use_gnu_ld_interface=no
11379   if test "$with_gnu_ld" = yes; then
11380     case $host_os in
11381       aix*)
11382         # The AIX port of GNU ld has always aspired to compatibility
11383         # with the native linker.  However, as the warning in the GNU ld
11384         # block says, versions before 2.19.5* couldn't really create working
11385         # shared libraries, regardless of the interface used.
11386         case `$LD -v 2>&1` in
11387           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11388           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11389           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11390           *)
11391             lt_use_gnu_ld_interface=yes
11392             ;;
11393         esac
11394         ;;
11395       *)
11396         lt_use_gnu_ld_interface=yes
11397         ;;
11398     esac
11399   fi
11400
11401   if test "$lt_use_gnu_ld_interface" = yes; then
11402     # If archive_cmds runs LD, not CC, wlarc should be empty
11403     wlarc='${wl}'
11404
11405     # Set some defaults for GNU ld with shared library support. These
11406     # are reset later if shared libraries are not supported. Putting them
11407     # here allows them to be overridden if necessary.
11408     runpath_var=LD_RUN_PATH
11409     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11410     export_dynamic_flag_spec='${wl}--export-dynamic'
11411     # ancient GNU ld didn't support --whole-archive et. al.
11412     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11413       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11414     else
11415       whole_archive_flag_spec=
11416     fi
11417     supports_anon_versioning=no
11418     case `$LD -v 2>&1` in
11419       *GNU\ gold*) supports_anon_versioning=yes ;;
11420       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11421       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11422       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11423       *\ 2.11.*) ;; # other 2.11 versions
11424       *) supports_anon_versioning=yes ;;
11425     esac
11426
11427     # See if GNU ld supports shared libraries.
11428     case $host_os in
11429     aix[3-9]*)
11430       # On AIX/PPC, the GNU linker is very broken
11431       if test "$host_cpu" != ia64; then
11432         ld_shlibs=no
11433         cat <<_LT_EOF 1>&2
11434
11435 *** Warning: the GNU linker, at least up to release 2.19, is reported
11436 *** to be unable to reliably create shared libraries on AIX.
11437 *** Therefore, libtool is disabling shared libraries support.  If you
11438 *** really care for shared libraries, you may want to install binutils
11439 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11440 *** You will then need to restart the configuration process.
11441
11442 _LT_EOF
11443       fi
11444       ;;
11445
11446     amigaos*)
11447       case $host_cpu in
11448       powerpc)
11449             # see comment about AmigaOS4 .so support
11450             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11451             archive_expsym_cmds=''
11452         ;;
11453       m68k)
11454             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)'
11455             hardcode_libdir_flag_spec='-L$libdir'
11456             hardcode_minus_L=yes
11457         ;;
11458       esac
11459       ;;
11460
11461     beos*)
11462       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11463         allow_undefined_flag=unsupported
11464         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11465         # support --undefined.  This deserves some investigation.  FIXME
11466         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467       else
11468         ld_shlibs=no
11469       fi
11470       ;;
11471
11472     cygwin* | mingw* | pw32* | cegcc*)
11473       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11474       # as there is no search path for DLLs.
11475       hardcode_libdir_flag_spec='-L$libdir'
11476       export_dynamic_flag_spec='${wl}--export-all-symbols'
11477       allow_undefined_flag=unsupported
11478       always_export_symbols=no
11479       enable_shared_with_static_runtimes=yes
11480       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'
11481       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11482
11483       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11484         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11485         # If the export-symbols file already is a .def file (1st line
11486         # is EXPORTS), use it as is; otherwise, prepend...
11487         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11488           cp $export_symbols $output_objdir/$soname.def;
11489         else
11490           echo EXPORTS > $output_objdir/$soname.def;
11491           cat $export_symbols >> $output_objdir/$soname.def;
11492         fi~
11493         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11494       else
11495         ld_shlibs=no
11496       fi
11497       ;;
11498
11499     haiku*)
11500       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501       link_all_deplibs=yes
11502       ;;
11503
11504     interix[3-9]*)
11505       hardcode_direct=no
11506       hardcode_shlibpath_var=no
11507       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11508       export_dynamic_flag_spec='${wl}-E'
11509       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11510       # Instead, shared libraries are loaded at an image base (0x10000000 by
11511       # default) and relocated if they conflict, which is a slow very memory
11512       # consuming and fragmenting process.  To avoid this, we pick a random,
11513       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11514       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11515       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11516       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'
11517       ;;
11518
11519     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11520       tmp_diet=no
11521       if test "$host_os" = linux-dietlibc; then
11522         case $cc_basename in
11523           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11524         esac
11525       fi
11526       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11527          && test "$tmp_diet" = no
11528       then
11529         tmp_addflag=' $pic_flag'
11530         tmp_sharedflag='-shared'
11531         case $cc_basename,$host_cpu in
11532         pgcc*)                          # Portland Group C compiler
11533           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'
11534           tmp_addflag=' $pic_flag'
11535           ;;
11536         pgf77* | pgf90* | pgf95* | pgfortran*)
11537                                         # Portland Group f77 and f90 compilers
11538           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'
11539           tmp_addflag=' $pic_flag -Mnomain' ;;
11540         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11541           tmp_addflag=' -i_dynamic' ;;
11542         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11543           tmp_addflag=' -i_dynamic -nofor_main' ;;
11544         ifc* | ifort*)                  # Intel Fortran compiler
11545           tmp_addflag=' -nofor_main' ;;
11546         lf95*)                          # Lahey Fortran 8.1
11547           whole_archive_flag_spec=
11548           tmp_sharedflag='--shared' ;;
11549         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11550           tmp_sharedflag='-qmkshrobj'
11551           tmp_addflag= ;;
11552         nvcc*)  # Cuda Compiler Driver 2.2
11553           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'
11554           compiler_needs_object=yes
11555           ;;
11556         esac
11557         case `$CC -V 2>&1 | sed 5q` in
11558         *Sun\ C*)                       # Sun C 5.9
11559           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'
11560           compiler_needs_object=yes
11561           tmp_sharedflag='-G' ;;
11562         *Sun\ F*)                       # Sun Fortran 8.3
11563           tmp_sharedflag='-G' ;;
11564         esac
11565         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11566
11567         if test "x$supports_anon_versioning" = xyes; then
11568           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11569             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11570             echo "local: *; };" >> $output_objdir/$libname.ver~
11571             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11572         fi
11573
11574         case $cc_basename in
11575         xlf* | bgf* | bgxlf* | mpixlf*)
11576           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11577           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11578           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11579           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11580           if test "x$supports_anon_versioning" = xyes; then
11581             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11582               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11583               echo "local: *; };" >> $output_objdir/$libname.ver~
11584               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11585           fi
11586           ;;
11587         esac
11588       else
11589         ld_shlibs=no
11590       fi
11591       ;;
11592
11593     netbsd* | netbsdelf*-gnu)
11594       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11595         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11596         wlarc=
11597       else
11598         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11599         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11600       fi
11601       ;;
11602
11603     solaris*)
11604       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11605         ld_shlibs=no
11606         cat <<_LT_EOF 1>&2
11607
11608 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11609 *** create shared libraries on Solaris systems.  Therefore, libtool
11610 *** is disabling shared libraries support.  We urge you to upgrade GNU
11611 *** binutils to release 2.9.1 or newer.  Another option is to modify
11612 *** your PATH or compiler configuration so that the native linker is
11613 *** used, and then restart.
11614
11615 _LT_EOF
11616       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11617         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11618         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11619       else
11620         ld_shlibs=no
11621       fi
11622       ;;
11623
11624     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11625       case `$LD -v 2>&1` in
11626         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11627         ld_shlibs=no
11628         cat <<_LT_EOF 1>&2
11629
11630 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11631 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11632 *** is disabling shared libraries support.  We urge you to upgrade GNU
11633 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11634 *** your PATH or compiler configuration so that the native linker is
11635 *** used, and then restart.
11636
11637 _LT_EOF
11638         ;;
11639         *)
11640           # For security reasons, it is highly recommended that you always
11641           # use absolute paths for naming shared libraries, and exclude the
11642           # DT_RUNPATH tag from executables and libraries.  But doing so
11643           # requires that you compile everything twice, which is a pain.
11644           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11645             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11646             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11647             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11648           else
11649             ld_shlibs=no
11650           fi
11651         ;;
11652       esac
11653       ;;
11654
11655     sunos4*)
11656       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11657       wlarc=
11658       hardcode_direct=yes
11659       hardcode_shlibpath_var=no
11660       ;;
11661
11662     *)
11663       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11664         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11665         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11666       else
11667         ld_shlibs=no
11668       fi
11669       ;;
11670     esac
11671
11672     if test "$ld_shlibs" = no; then
11673       runpath_var=
11674       hardcode_libdir_flag_spec=
11675       export_dynamic_flag_spec=
11676       whole_archive_flag_spec=
11677     fi
11678   else
11679     # PORTME fill in a description of your system's linker (not GNU ld)
11680     case $host_os in
11681     aix3*)
11682       allow_undefined_flag=unsupported
11683       always_export_symbols=yes
11684       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'
11685       # Note: this linker hardcodes the directories in LIBPATH if there
11686       # are no directories specified by -L.
11687       hardcode_minus_L=yes
11688       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11689         # Neither direct hardcoding nor static linking is supported with a
11690         # broken collect2.
11691         hardcode_direct=unsupported
11692       fi
11693       ;;
11694
11695     aix[4-9]*)
11696       if test "$host_cpu" = ia64; then
11697         # On IA64, the linker does run time linking by default, so we don't
11698         # have to do anything special.
11699         aix_use_runtimelinking=no
11700         exp_sym_flag='-Bexport'
11701         no_entry_flag=""
11702       else
11703         # If we're using GNU nm, then we don't want the "-C" option.
11704         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11705         # Also, AIX nm treats weak defined symbols like other global
11706         # defined symbols, whereas GNU nm marks them as "W".
11707         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11708           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'
11709         else
11710           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'
11711         fi
11712         aix_use_runtimelinking=no
11713
11714         # Test if we are trying to use run time linking or normal
11715         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716         # need to do runtime linking.
11717         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718           for ld_flag in $LDFLAGS; do
11719           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11720             aix_use_runtimelinking=yes
11721             break
11722           fi
11723           done
11724           ;;
11725         esac
11726
11727         exp_sym_flag='-bexport'
11728         no_entry_flag='-bnoentry'
11729       fi
11730
11731       # When large executables or shared objects are built, AIX ld can
11732       # have problems creating the table of contents.  If linking a library
11733       # or program results in "error TOC overflow" add -mminimal-toc to
11734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11736
11737       archive_cmds=''
11738       hardcode_direct=yes
11739       hardcode_direct_absolute=yes
11740       hardcode_libdir_separator=':'
11741       link_all_deplibs=yes
11742       file_list_spec='${wl}-f,'
11743
11744       if test "$GCC" = yes; then
11745         case $host_os in aix4.[012]|aix4.[012].*)
11746         # We only want to do this on AIX 4.2 and lower, the check
11747         # below for broken collect2 doesn't work under 4.3+
11748           collect2name=`${CC} -print-prog-name=collect2`
11749           if test -f "$collect2name" &&
11750            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11751           then
11752           # We have reworked collect2
11753           :
11754           else
11755           # We have old collect2
11756           hardcode_direct=unsupported
11757           # It fails to find uninstalled libraries when the uninstalled
11758           # path is not listed in the libpath.  Setting hardcode_minus_L
11759           # to unsupported forces relinking
11760           hardcode_minus_L=yes
11761           hardcode_libdir_flag_spec='-L$libdir'
11762           hardcode_libdir_separator=
11763           fi
11764           ;;
11765         esac
11766         shared_flag='-shared'
11767         if test "$aix_use_runtimelinking" = yes; then
11768           shared_flag="$shared_flag "'${wl}-G'
11769         fi
11770         link_all_deplibs=no
11771       else
11772         # not using gcc
11773         if test "$host_cpu" = ia64; then
11774         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775         # chokes on -Wl,-G. The following line is correct:
11776           shared_flag='-G'
11777         else
11778           if test "$aix_use_runtimelinking" = yes; then
11779             shared_flag='${wl}-G'
11780           else
11781             shared_flag='${wl}-bM:SRE'
11782           fi
11783         fi
11784       fi
11785
11786       export_dynamic_flag_spec='${wl}-bexpall'
11787       # It seems that -bexpall does not export symbols beginning with
11788       # underscore (_), so it is better to generate a list of symbols to export.
11789       always_export_symbols=yes
11790       if test "$aix_use_runtimelinking" = yes; then
11791         # Warning - without using the other runtime loading flags (-brtl),
11792         # -berok will link without error, but may produce a broken library.
11793         allow_undefined_flag='-berok'
11794         # Determine the default libpath from the value encoded in an
11795         # empty executable.
11796         if test "${lt_cv_aix_libpath+set}" = set; then
11797   aix_libpath=$lt_cv_aix_libpath
11798 else
11799   if ${lt_cv_aix_libpath_+:} false; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h.  */
11804
11805 int main (void)
11806 {
11807
11808  ;
11809  return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813
11814   lt_aix_libpath_sed='
11815       /Import File Strings/,/^$/ {
11816           /^0/ {
11817               s/^0  *\([^ ]*\) *$/\1/
11818               p
11819           }
11820       }'
11821   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11822   # Check for a 64-bit object if we didn't find anything.
11823   if test -z "$lt_cv_aix_libpath_"; then
11824     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11825   fi
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828     conftest$ac_exeext conftest.$ac_ext
11829   if test -z "$lt_cv_aix_libpath_"; then
11830     lt_cv_aix_libpath_="/usr/lib:/lib"
11831   fi
11832
11833 fi
11834
11835   aix_libpath=$lt_cv_aix_libpath_
11836 fi
11837
11838         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11839         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"
11840       else
11841         if test "$host_cpu" = ia64; then
11842           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11843           allow_undefined_flag="-z nodefs"
11844           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"
11845         else
11846          # Determine the default libpath from the value encoded in an
11847          # empty executable.
11848          if test "${lt_cv_aix_libpath+set}" = set; then
11849   aix_libpath=$lt_cv_aix_libpath
11850 else
11851   if ${lt_cv_aix_libpath_+:} false; then :
11852   $as_echo_n "(cached) " >&6
11853 else
11854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h.  */
11856
11857 int main (void)
11858 {
11859
11860  ;
11861  return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_c_try_link "$LINENO"; then :
11865
11866   lt_aix_libpath_sed='
11867       /Import File Strings/,/^$/ {
11868           /^0/ {
11869               s/^0  *\([^ ]*\) *$/\1/
11870               p
11871           }
11872       }'
11873   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11874   # Check for a 64-bit object if we didn't find anything.
11875   if test -z "$lt_cv_aix_libpath_"; then
11876     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877   fi
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext \
11880     conftest$ac_exeext conftest.$ac_ext
11881   if test -z "$lt_cv_aix_libpath_"; then
11882     lt_cv_aix_libpath_="/usr/lib:/lib"
11883   fi
11884
11885 fi
11886
11887   aix_libpath=$lt_cv_aix_libpath_
11888 fi
11889
11890          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11891           # Warning - without using the other run time loading flags,
11892           # -berok will link without error, but may produce a broken library.
11893           no_undefined_flag=' ${wl}-bernotok'
11894           allow_undefined_flag=' ${wl}-berok'
11895           if test "$with_gnu_ld" = yes; then
11896             # We only use this code for GNU lds that support --whole-archive.
11897             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11898           else
11899             # Exported symbols can be pulled into shared objects from archives
11900             whole_archive_flag_spec='$convenience'
11901           fi
11902           archive_cmds_need_lc=yes
11903           # This is similar to how AIX traditionally builds its shared libraries.
11904           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'
11905         fi
11906       fi
11907       ;;
11908
11909     amigaos*)
11910       case $host_cpu in
11911       powerpc)
11912             # see comment about AmigaOS4 .so support
11913             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11914             archive_expsym_cmds=''
11915         ;;
11916       m68k)
11917             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)'
11918             hardcode_libdir_flag_spec='-L$libdir'
11919             hardcode_minus_L=yes
11920         ;;
11921       esac
11922       ;;
11923
11924     bsdi[45]*)
11925       export_dynamic_flag_spec=-rdynamic
11926       ;;
11927
11928     cygwin* | mingw* | pw32* | cegcc*)
11929       # When not using gcc, we currently assume that we are using
11930       # Microsoft Visual C++.
11931       # hardcode_libdir_flag_spec is actually meaningless, as there is
11932       # no search path for DLLs.
11933       case $cc_basename in
11934       cl*)
11935         # Native MSVC
11936         hardcode_libdir_flag_spec=' '
11937         allow_undefined_flag=unsupported
11938         always_export_symbols=yes
11939         file_list_spec='@'
11940         # Tell ltmain to make .lib files, not .a files.
11941         libext=lib
11942         # Tell ltmain to make .dll files, not .so files.
11943         shrext_cmds=".dll"
11944         # FIXME: Setting linknames here is a bad hack.
11945         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11946         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11947             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11948           else
11949             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11950           fi~
11951           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11952           linknames='
11953         # The linker will not automatically build a static lib if we build a DLL.
11954         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11955         enable_shared_with_static_runtimes=yes
11956         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11957         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11958         # Don't use ranlib
11959         old_postinstall_cmds='chmod 644 $oldlib'
11960         postlink_cmds='lt_outputfile="@OUTPUT@"~
11961           lt_tool_outputfile="@TOOL_OUTPUT@"~
11962           case $lt_outputfile in
11963             *.exe|*.EXE) ;;
11964             *)
11965               lt_outputfile="$lt_outputfile.exe"
11966               lt_tool_outputfile="$lt_tool_outputfile.exe"
11967               ;;
11968           esac~
11969           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11970             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11971             $RM "$lt_outputfile.manifest";
11972           fi'
11973         ;;
11974       *)
11975         # Assume MSVC wrapper
11976         hardcode_libdir_flag_spec=' '
11977         allow_undefined_flag=unsupported
11978         # Tell ltmain to make .lib files, not .a files.
11979         libext=lib
11980         # Tell ltmain to make .dll files, not .so files.
11981         shrext_cmds=".dll"
11982         # FIXME: Setting linknames here is a bad hack.
11983         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11984         # The linker will automatically build a .lib file if we build a DLL.
11985         old_archive_from_new_cmds='true'
11986         # FIXME: Should let the user specify the lib program.
11987         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11988         enable_shared_with_static_runtimes=yes
11989         ;;
11990       esac
11991       ;;
11992
11993     darwin* | rhapsody*)
11994
11995
11996   archive_cmds_need_lc=no
11997   hardcode_direct=no
11998   hardcode_automatic=yes
11999   hardcode_shlibpath_var=unsupported
12000   if test "$lt_cv_ld_force_load" = "yes"; then
12001     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\"`'
12002
12003   else
12004     whole_archive_flag_spec=''
12005   fi
12006   link_all_deplibs=yes
12007   allow_undefined_flag="$_lt_dar_allow_undefined"
12008   case $cc_basename in
12009      ifort*) _lt_dar_can_shared=yes ;;
12010      *) _lt_dar_can_shared=$GCC ;;
12011   esac
12012   if test "$_lt_dar_can_shared" = "yes"; then
12013     output_verbose_link_cmd=func_echo_all
12014     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12015     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12016     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}"
12017     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}"
12018
12019   else
12020   ld_shlibs=no
12021   fi
12022
12023       ;;
12024
12025     dgux*)
12026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12027       hardcode_libdir_flag_spec='-L$libdir'
12028       hardcode_shlibpath_var=no
12029       ;;
12030
12031     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12032     # support.  Future versions do this automatically, but an explicit c++rt0.o
12033     # does not break anything, and helps significantly (at the cost of a little
12034     # extra space).
12035     freebsd2.2*)
12036       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12037       hardcode_libdir_flag_spec='-R$libdir'
12038       hardcode_direct=yes
12039       hardcode_shlibpath_var=no
12040       ;;
12041
12042     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12043     freebsd2.*)
12044       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12045       hardcode_direct=yes
12046       hardcode_minus_L=yes
12047       hardcode_shlibpath_var=no
12048       ;;
12049
12050     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12051     freebsd* | dragonfly*)
12052       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12053       hardcode_libdir_flag_spec='-R$libdir'
12054       hardcode_direct=yes
12055       hardcode_shlibpath_var=no
12056       ;;
12057
12058     hpux9*)
12059       if test "$GCC" = yes; then
12060         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 -f $output_objdir/$soname $lib'
12061       else
12062         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 -f $output_objdir/$soname $lib'
12063       fi
12064       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12065       hardcode_libdir_separator=:
12066       hardcode_direct=yes
12067
12068       # hardcode_minus_L: Not really in the search PATH,
12069       # but as the default location of the library.
12070       hardcode_minus_L=yes
12071       export_dynamic_flag_spec='${wl}-E'
12072       ;;
12073
12074     hpux10*)
12075       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12076         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12077       else
12078         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12079       fi
12080       if test "$with_gnu_ld" = no; then
12081         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12082         hardcode_libdir_separator=:
12083         hardcode_direct=yes
12084         hardcode_direct_absolute=yes
12085         export_dynamic_flag_spec='${wl}-E'
12086         # hardcode_minus_L: Not really in the search PATH,
12087         # but as the default location of the library.
12088         hardcode_minus_L=yes
12089       fi
12090       ;;
12091
12092     hpux11*)
12093       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12094         case $host_cpu in
12095         hppa*64*)
12096           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12097           ;;
12098         ia64*)
12099           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12100           ;;
12101         *)
12102           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12103           ;;
12104         esac
12105       else
12106         case $host_cpu in
12107         hppa*64*)
12108           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12109           ;;
12110         ia64*)
12111           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12112           ;;
12113         *)
12114
12115           # Older versions of the 11.00 compiler do not understand -b yet
12116           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12117           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12118 $as_echo_n "checking if $CC understands -b... " >&6; }
12119 if ${lt_cv_prog_compiler__b+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   lt_cv_prog_compiler__b=no
12123    save_LDFLAGS="$LDFLAGS"
12124    LDFLAGS="$LDFLAGS -b"
12125    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12127      # The linker can only warn and ignore the option if not recognized
12128      # So say no if there are warnings
12129      if test -s conftest.err; then
12130        # Append any errors to the config.log.
12131        cat conftest.err 1>&5
12132        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12134        if diff conftest.exp conftest.er2 >/dev/null; then
12135          lt_cv_prog_compiler__b=yes
12136        fi
12137      else
12138        lt_cv_prog_compiler__b=yes
12139      fi
12140    fi
12141    $RM -r conftest*
12142    LDFLAGS="$save_LDFLAGS"
12143
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12146 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12147
12148 if test x"$lt_cv_prog_compiler__b" = xyes; then
12149     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12150 else
12151     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12152 fi
12153
12154           ;;
12155         esac
12156       fi
12157       if test "$with_gnu_ld" = no; then
12158         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12159         hardcode_libdir_separator=:
12160
12161         case $host_cpu in
12162         hppa*64*|ia64*)
12163           hardcode_direct=no
12164           hardcode_shlibpath_var=no
12165           ;;
12166         *)
12167           hardcode_direct=yes
12168           hardcode_direct_absolute=yes
12169           export_dynamic_flag_spec='${wl}-E'
12170
12171           # hardcode_minus_L: Not really in the search PATH,
12172           # but as the default location of the library.
12173           hardcode_minus_L=yes
12174           ;;
12175         esac
12176       fi
12177       ;;
12178
12179     irix5* | irix6* | nonstopux*)
12180       if test "$GCC" = yes; then
12181         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'
12182         # Try to use the -exported_symbol ld option, if it does not
12183         # work, assume that -exports_file does not work either and
12184         # implicitly export all symbols.
12185         # This should be the same for all languages, so no per-tag cache variable.
12186         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12187 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12188 if ${lt_cv_irix_exported_symbol+:} false; then :
12189   $as_echo_n "(cached) " >&6
12190 else
12191   save_LDFLAGS="$LDFLAGS"
12192            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12193            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h.  */
12195 int foo (void) { return 0; }
12196 _ACEOF
12197 if ac_fn_c_try_link "$LINENO"; then :
12198   lt_cv_irix_exported_symbol=yes
12199 else
12200   lt_cv_irix_exported_symbol=no
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext \
12203     conftest$ac_exeext conftest.$ac_ext
12204            LDFLAGS="$save_LDFLAGS"
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12207 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12208         if test "$lt_cv_irix_exported_symbol" = yes; then
12209           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'
12210         fi
12211       else
12212         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'
12213         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'
12214       fi
12215       archive_cmds_need_lc='no'
12216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12217       hardcode_libdir_separator=:
12218       inherit_rpath=yes
12219       link_all_deplibs=yes
12220       ;;
12221
12222     netbsd* | netbsdelf*-gnu)
12223       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12224         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12225       else
12226         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12227       fi
12228       hardcode_libdir_flag_spec='-R$libdir'
12229       hardcode_direct=yes
12230       hardcode_shlibpath_var=no
12231       ;;
12232
12233     newsos6)
12234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12235       hardcode_direct=yes
12236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12237       hardcode_libdir_separator=:
12238       hardcode_shlibpath_var=no
12239       ;;
12240
12241     *nto* | *qnx*)
12242       ;;
12243
12244     openbsd*)
12245       if test -f /usr/libexec/ld.so; then
12246         hardcode_direct=yes
12247         hardcode_shlibpath_var=no
12248         hardcode_direct_absolute=yes
12249         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12250           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12251           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12252           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12253           export_dynamic_flag_spec='${wl}-E'
12254         else
12255           case $host_os in
12256            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12257              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12258              hardcode_libdir_flag_spec='-R$libdir'
12259              ;;
12260            *)
12261              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12262              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12263              ;;
12264           esac
12265         fi
12266       else
12267         ld_shlibs=no
12268       fi
12269       ;;
12270
12271     os2*)
12272       hardcode_libdir_flag_spec='-L$libdir'
12273       hardcode_minus_L=yes
12274       allow_undefined_flag=unsupported
12275       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'
12276       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12277       ;;
12278
12279     osf3*)
12280       if test "$GCC" = yes; then
12281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12282         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'
12283       else
12284         allow_undefined_flag=' -expect_unresolved \*'
12285         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'
12286       fi
12287       archive_cmds_need_lc='no'
12288       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12289       hardcode_libdir_separator=:
12290       ;;
12291
12292     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12293       if test "$GCC" = yes; then
12294         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12295         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'
12296         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12297       else
12298         allow_undefined_flag=' -expect_unresolved \*'
12299         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'
12300         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~
12301         $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'
12302
12303         # Both c and cxx compiler support -rpath directly
12304         hardcode_libdir_flag_spec='-rpath $libdir'
12305       fi
12306       archive_cmds_need_lc='no'
12307       hardcode_libdir_separator=:
12308       ;;
12309
12310     solaris*)
12311       no_undefined_flag=' -z defs'
12312       if test "$GCC" = yes; then
12313         wlarc='${wl}'
12314         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12315         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12316           $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'
12317       else
12318         case `$CC -V 2>&1` in
12319         *"Compilers 5.0"*)
12320           wlarc=''
12321           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12322           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12323           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12324           ;;
12325         *)
12326           wlarc='${wl}'
12327           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12328           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12329           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12330           ;;
12331         esac
12332       fi
12333       hardcode_libdir_flag_spec='-R$libdir'
12334       hardcode_shlibpath_var=no
12335       case $host_os in
12336       solaris2.[0-5] | solaris2.[0-5].*) ;;
12337       *)
12338         # The compiler driver will combine and reorder linker options,
12339         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12340         # but is careful enough not to reorder.
12341         # Supported since Solaris 2.6 (maybe 2.5.1?)
12342         if test "$GCC" = yes; then
12343           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12344         else
12345           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12346         fi
12347         ;;
12348       esac
12349       link_all_deplibs=yes
12350       ;;
12351
12352     sunos4*)
12353       if test "x$host_vendor" = xsequent; then
12354         # Use $CC to link under sequent, because it throws in some extra .o
12355         # files that make .init and .fini sections work.
12356         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12357       else
12358         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12359       fi
12360       hardcode_libdir_flag_spec='-L$libdir'
12361       hardcode_direct=yes
12362       hardcode_minus_L=yes
12363       hardcode_shlibpath_var=no
12364       ;;
12365
12366     sysv4)
12367       case $host_vendor in
12368         sni)
12369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370           hardcode_direct=yes # is this really true???
12371         ;;
12372         siemens)
12373           ## LD is ld it makes a PLAMLIB
12374           ## CC just makes a GrossModule.
12375           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12376           reload_cmds='$CC -r -o $output$reload_objs'
12377           hardcode_direct=no
12378         ;;
12379         motorola)
12380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12381           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12382         ;;
12383       esac
12384       runpath_var='LD_RUN_PATH'
12385       hardcode_shlibpath_var=no
12386       ;;
12387
12388     sysv4.3*)
12389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12390       hardcode_shlibpath_var=no
12391       export_dynamic_flag_spec='-Bexport'
12392       ;;
12393
12394     sysv4*MP*)
12395       if test -d /usr/nec; then
12396         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12397         hardcode_shlibpath_var=no
12398         runpath_var=LD_RUN_PATH
12399         hardcode_runpath_var=yes
12400         ld_shlibs=yes
12401       fi
12402       ;;
12403
12404     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12405       no_undefined_flag='${wl}-z,text'
12406       archive_cmds_need_lc=no
12407       hardcode_shlibpath_var=no
12408       runpath_var='LD_RUN_PATH'
12409
12410       if test "$GCC" = yes; then
12411         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12412         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12413       else
12414         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12416       fi
12417       ;;
12418
12419     sysv5* | sco3.2v5* | sco5v6*)
12420       # Note: We can NOT use -z defs as we might desire, because we do not
12421       # link with -lc, and that would cause any symbols used from libc to
12422       # always be unresolved, which means just about no library would
12423       # ever link correctly.  If we're not using GNU ld we use -z text
12424       # though, which does catch some bad symbols but isn't as heavy-handed
12425       # as -z defs.
12426       no_undefined_flag='${wl}-z,text'
12427       allow_undefined_flag='${wl}-z,nodefs'
12428       archive_cmds_need_lc=no
12429       hardcode_shlibpath_var=no
12430       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12431       hardcode_libdir_separator=':'
12432       link_all_deplibs=yes
12433       export_dynamic_flag_spec='${wl}-Bexport'
12434       runpath_var='LD_RUN_PATH'
12435
12436       if test "$GCC" = yes; then
12437         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12438         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439       else
12440         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12442       fi
12443       ;;
12444
12445     uts4*)
12446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12447       hardcode_libdir_flag_spec='-L$libdir'
12448       hardcode_shlibpath_var=no
12449       ;;
12450
12451     *)
12452       ld_shlibs=no
12453       ;;
12454     esac
12455
12456     if test x$host_vendor = xsni; then
12457       case $host in
12458       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12459         export_dynamic_flag_spec='${wl}-Blargedynsym'
12460         ;;
12461       esac
12462     fi
12463   fi
12464
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12466 $as_echo "$ld_shlibs" >&6; }
12467 test "$ld_shlibs" = no && can_build_shared=no
12468
12469 with_gnu_ld=$with_gnu_ld
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485 #
12486 # Do we need to explicitly link libc?
12487 #
12488 case "x$archive_cmds_need_lc" in
12489 x|xyes)
12490   # Assume -lc should be added
12491   archive_cmds_need_lc=yes
12492
12493   if test "$enable_shared" = yes && test "$GCC" = yes; then
12494     case $archive_cmds in
12495     *'~'*)
12496       # FIXME: we may have to deal with multi-command sequences.
12497       ;;
12498     '$CC '*)
12499       # Test whether the compiler implicitly links with -lc since on some
12500       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12501       # to ld, don't add -lc before -lgcc.
12502       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12503 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12504 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507   $RM conftest*
12508         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12509
12510         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12511   (eval $ac_compile) 2>&5
12512   ac_status=$?
12513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514   test $ac_status = 0; } 2>conftest.err; then
12515           soname=conftest
12516           lib=conftest
12517           libobjs=conftest.$ac_objext
12518           deplibs=
12519           wl=$lt_prog_compiler_wl
12520           pic_flag=$lt_prog_compiler_pic
12521           compiler_flags=-v
12522           linker_flags=-v
12523           verstring=
12524           output_objdir=.
12525           libname=conftest
12526           lt_save_allow_undefined_flag=$allow_undefined_flag
12527           allow_undefined_flag=
12528           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12529   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12530   ac_status=$?
12531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532   test $ac_status = 0; }
12533           then
12534             lt_cv_archive_cmds_need_lc=no
12535           else
12536             lt_cv_archive_cmds_need_lc=yes
12537           fi
12538           allow_undefined_flag=$lt_save_allow_undefined_flag
12539         else
12540           cat conftest.err 1>&5
12541         fi
12542         $RM conftest*
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12546 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12547       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12548       ;;
12549     esac
12550   fi
12551   ;;
12552 esac
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12707
12708 if test "$GCC" = yes; then
12709   case $host_os in
12710     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12711     *) lt_awk_arg="/^libraries:/" ;;
12712   esac
12713   case $host_os in
12714     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12715     *) lt_sed_strip_eq="s,=/,/,g" ;;
12716   esac
12717   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12718   case $lt_search_path_spec in
12719   *\;*)
12720     # if the path contains ";" then we assume it to be the separator
12721     # otherwise default to the standard path separator (i.e. ":") - it is
12722     # assumed that no part of a normal pathname contains ";" but that should
12723     # okay in the real world where ";" in dirpaths is itself problematic.
12724     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12725     ;;
12726   *)
12727     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12728     ;;
12729   esac
12730   # Ok, now we have the path, separated by spaces, we can step through it
12731   # and add multilib dir if necessary.
12732   lt_tmp_lt_search_path_spec=
12733   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12734   for lt_sys_path in $lt_search_path_spec; do
12735     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12736       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12737     else
12738       test -d "$lt_sys_path" && \
12739         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12740     fi
12741   done
12742   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12743 BEGIN {RS=" "; FS="/|\n";} {
12744   lt_foo="";
12745   lt_count=0;
12746   for (lt_i = NF; lt_i > 0; lt_i--) {
12747     if ($lt_i != "" && $lt_i != ".") {
12748       if ($lt_i == "..") {
12749         lt_count++;
12750       } else {
12751         if (lt_count == 0) {
12752           lt_foo="/" $lt_i lt_foo;
12753         } else {
12754           lt_count--;
12755         }
12756       }
12757     }
12758   }
12759   if (lt_foo != "") { lt_freq[lt_foo]++; }
12760   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12761 }'`
12762   # AWK program above erroneously prepends '/' to C:/dos/paths
12763   # for these hosts.
12764   case $host_os in
12765     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12766       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12767   esac
12768   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12769 else
12770   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12771 fi
12772 library_names_spec=
12773 libname_spec='lib$name'
12774 soname_spec=
12775 shrext_cmds=".so"
12776 postinstall_cmds=
12777 postuninstall_cmds=
12778 finish_cmds=
12779 finish_eval=
12780 shlibpath_var=
12781 shlibpath_overrides_runpath=unknown
12782 version_type=none
12783 dynamic_linker="$host_os ld.so"
12784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12785 need_lib_prefix=unknown
12786 hardcode_into_libs=no
12787
12788 # when you set need_version to no, make sure it does not cause -set_version
12789 # flags to be left without arguments
12790 need_version=unknown
12791
12792 case $host_os in
12793 aix3*)
12794   version_type=linux # correct to gnu/linux during the next big refactor
12795   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12796   shlibpath_var=LIBPATH
12797
12798   # AIX 3 has no versioning support, so we append a major version to the name.
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   ;;
12801
12802 aix[4-9]*)
12803   version_type=linux # correct to gnu/linux during the next big refactor
12804   need_lib_prefix=no
12805   need_version=no
12806   hardcode_into_libs=yes
12807   if test "$host_cpu" = ia64; then
12808     # AIX 5 supports IA64
12809     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12810     shlibpath_var=LD_LIBRARY_PATH
12811   else
12812     # With GCC up to 2.95.x, collect2 would create an import file
12813     # for dependence libraries.  The import file would start with
12814     # the line `#! .'.  This would cause the generated library to
12815     # depend on `.', always an invalid library.  This was fixed in
12816     # development snapshots of GCC prior to 3.0.
12817     case $host_os in
12818       aix4 | aix4.[01] | aix4.[01].*)
12819       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12820            echo ' yes '
12821            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12822         :
12823       else
12824         can_build_shared=no
12825       fi
12826       ;;
12827     esac
12828     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12829     # soname into executable. Probably we can add versioning support to
12830     # collect2, so additional links can be useful in future.
12831     if test "$aix_use_runtimelinking" = yes; then
12832       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12833       # instead of lib<name>.a to let people know that these are not
12834       # typical AIX shared libraries.
12835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12836     else
12837       # We preserve .a as extension for shared libraries through AIX4.2
12838       # and later when we are not doing run time linking.
12839       library_names_spec='${libname}${release}.a $libname.a'
12840       soname_spec='${libname}${release}${shared_ext}$major'
12841     fi
12842     shlibpath_var=LIBPATH
12843   fi
12844   ;;
12845
12846 amigaos*)
12847   case $host_cpu in
12848   powerpc)
12849     # Since July 2007 AmigaOS4 officially supports .so libraries.
12850     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852     ;;
12853   m68k)
12854     library_names_spec='$libname.ixlibrary $libname.a'
12855     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12856     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'
12857     ;;
12858   esac
12859   ;;
12860
12861 beos*)
12862   library_names_spec='${libname}${shared_ext}'
12863   dynamic_linker="$host_os ld.so"
12864   shlibpath_var=LIBRARY_PATH
12865   ;;
12866
12867 bsdi[45]*)
12868   version_type=linux # correct to gnu/linux during the next big refactor
12869   need_version=no
12870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871   soname_spec='${libname}${release}${shared_ext}$major'
12872   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12873   shlibpath_var=LD_LIBRARY_PATH
12874   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12875   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12876   # the default ld.so.conf also contains /usr/contrib/lib and
12877   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12878   # libtool to hard-code these into programs
12879   ;;
12880
12881 cygwin* | mingw* | pw32* | cegcc*)
12882   version_type=windows
12883   shrext_cmds=".dll"
12884   need_version=no
12885   need_lib_prefix=no
12886
12887   case $GCC,$cc_basename in
12888   yes,*)
12889     # gcc
12890     library_names_spec='$libname.dll.a'
12891     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12892     postinstall_cmds='base_file=`basename \${file}`~
12893       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12894       dldir=$destdir/`dirname \$dlpath`~
12895       test -d \$dldir || mkdir -p \$dldir~
12896       $install_prog $dir/$dlname \$dldir/$dlname~
12897       chmod a+x \$dldir/$dlname~
12898       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12899         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12900       fi'
12901     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12902       dlpath=$dir/\$dldll~
12903        $RM \$dlpath'
12904     shlibpath_overrides_runpath=yes
12905
12906     case $host_os in
12907     cygwin*)
12908       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12909       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12910
12911       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12912       ;;
12913     mingw* | cegcc*)
12914       # MinGW DLLs use traditional 'lib' prefix
12915       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12916       ;;
12917     pw32*)
12918       # pw32 DLLs use 'pw' prefix rather than 'lib'
12919       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12920       ;;
12921     esac
12922     dynamic_linker='Win32 ld.exe'
12923     ;;
12924
12925   *,cl*)
12926     # Native MSVC
12927     libname_spec='$name'
12928     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12929     library_names_spec='${libname}.dll.lib'
12930
12931     case $build_os in
12932     mingw*)
12933       sys_lib_search_path_spec=
12934       lt_save_ifs=$IFS
12935       IFS=';'
12936       for lt_path in $LIB
12937       do
12938         IFS=$lt_save_ifs
12939         # Let DOS variable expansion print the short 8.3 style file name.
12940         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12941         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12942       done
12943       IFS=$lt_save_ifs
12944       # Convert to MSYS style.
12945       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12946       ;;
12947     cygwin*)
12948       # Convert to unix form, then to dos form, then back to unix form
12949       # but this time dos style (no spaces!) so that the unix form looks
12950       # like /cygdrive/c/PROGRA~1:/cygdr...
12951       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12952       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12953       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12954       ;;
12955     *)
12956       sys_lib_search_path_spec="$LIB"
12957       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12958         # It is most probably a Windows format PATH.
12959         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12960       else
12961         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12962       fi
12963       # FIXME: find the short name or the path components, as spaces are
12964       # common. (e.g. "Program Files" -> "PROGRA~1")
12965       ;;
12966     esac
12967
12968     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12969     postinstall_cmds='base_file=`basename \${file}`~
12970       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12971       dldir=$destdir/`dirname \$dlpath`~
12972       test -d \$dldir || mkdir -p \$dldir~
12973       $install_prog $dir/$dlname \$dldir/$dlname'
12974     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12975       dlpath=$dir/\$dldll~
12976        $RM \$dlpath'
12977     shlibpath_overrides_runpath=yes
12978     dynamic_linker='Win32 link.exe'
12979     ;;
12980
12981   *)
12982     # Assume MSVC wrapper
12983     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12984     dynamic_linker='Win32 ld.exe'
12985     ;;
12986   esac
12987   # FIXME: first we should search . and the directory the executable is in
12988   shlibpath_var=PATH
12989   ;;
12990
12991 darwin* | rhapsody*)
12992   dynamic_linker="$host_os dyld"
12993   version_type=darwin
12994   need_lib_prefix=no
12995   need_version=no
12996   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12997   soname_spec='${libname}${release}${major}$shared_ext'
12998   shlibpath_overrides_runpath=yes
12999   shlibpath_var=DYLD_LIBRARY_PATH
13000   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13001
13002   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13003   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13004   ;;
13005
13006 dgux*)
13007   version_type=linux # correct to gnu/linux during the next big refactor
13008   need_lib_prefix=no
13009   need_version=no
13010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13011   soname_spec='${libname}${release}${shared_ext}$major'
13012   shlibpath_var=LD_LIBRARY_PATH
13013   ;;
13014
13015 freebsd* | dragonfly*)
13016   # DragonFly does not have aout.  When/if they implement a new
13017   # versioning mechanism, adjust this.
13018   if test -x /usr/bin/objformat; then
13019     objformat=`/usr/bin/objformat`
13020   else
13021     case $host_os in
13022     freebsd[23].*) objformat=aout ;;
13023     *) objformat=elf ;;
13024     esac
13025   fi
13026   version_type=freebsd-$objformat
13027   case $version_type in
13028     freebsd-elf*)
13029       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13030       need_version=no
13031       need_lib_prefix=no
13032       ;;
13033     freebsd-*)
13034       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13035       need_version=yes
13036       ;;
13037   esac
13038   shlibpath_var=LD_LIBRARY_PATH
13039   case $host_os in
13040   freebsd2.*)
13041     shlibpath_overrides_runpath=yes
13042     ;;
13043   freebsd3.[01]* | freebsdelf3.[01]*)
13044     shlibpath_overrides_runpath=yes
13045     hardcode_into_libs=yes
13046     ;;
13047   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13048   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13049     shlibpath_overrides_runpath=no
13050     hardcode_into_libs=yes
13051     ;;
13052   *) # from 4.6 on, and DragonFly
13053     shlibpath_overrides_runpath=yes
13054     hardcode_into_libs=yes
13055     ;;
13056   esac
13057   ;;
13058
13059 haiku*)
13060   version_type=linux # correct to gnu/linux during the next big refactor
13061   need_lib_prefix=no
13062   need_version=no
13063   dynamic_linker="$host_os runtime_loader"
13064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13065   soname_spec='${libname}${release}${shared_ext}$major'
13066   shlibpath_var=LIBRARY_PATH
13067   shlibpath_overrides_runpath=yes
13068   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13069   hardcode_into_libs=yes
13070   ;;
13071
13072 hpux9* | hpux10* | hpux11*)
13073   # Give a soname corresponding to the major version so that dld.sl refuses to
13074   # link against other versions.
13075   version_type=sunos
13076   need_lib_prefix=no
13077   need_version=no
13078   case $host_cpu in
13079   ia64*)
13080     shrext_cmds='.so'
13081     hardcode_into_libs=yes
13082     dynamic_linker="$host_os dld.so"
13083     shlibpath_var=LD_LIBRARY_PATH
13084     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086     soname_spec='${libname}${release}${shared_ext}$major'
13087     if test "X$HPUX_IA64_MODE" = X32; then
13088       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13089     else
13090       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13091     fi
13092     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13093     ;;
13094   hppa*64*)
13095     shrext_cmds='.sl'
13096     hardcode_into_libs=yes
13097     dynamic_linker="$host_os dld.sl"
13098     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13099     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101     soname_spec='${libname}${release}${shared_ext}$major'
13102     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13103     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13104     ;;
13105   *)
13106     shrext_cmds='.sl'
13107     dynamic_linker="$host_os dld.sl"
13108     shlibpath_var=SHLIB_PATH
13109     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111     soname_spec='${libname}${release}${shared_ext}$major'
13112     ;;
13113   esac
13114   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13115   postinstall_cmds='chmod 555 $lib'
13116   # or fails outright, so override atomically:
13117   install_override_mode=555
13118   ;;
13119
13120 interix[3-9]*)
13121   version_type=linux # correct to gnu/linux during the next big refactor
13122   need_lib_prefix=no
13123   need_version=no
13124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13125   soname_spec='${libname}${release}${shared_ext}$major'
13126   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13127   shlibpath_var=LD_LIBRARY_PATH
13128   shlibpath_overrides_runpath=no
13129   hardcode_into_libs=yes
13130   ;;
13131
13132 irix5* | irix6* | nonstopux*)
13133   case $host_os in
13134     nonstopux*) version_type=nonstopux ;;
13135     *)
13136         if test "$lt_cv_prog_gnu_ld" = yes; then
13137                 version_type=linux # correct to gnu/linux during the next big refactor
13138         else
13139                 version_type=irix
13140         fi ;;
13141   esac
13142   need_lib_prefix=no
13143   need_version=no
13144   soname_spec='${libname}${release}${shared_ext}$major'
13145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13146   case $host_os in
13147   irix5* | nonstopux*)
13148     libsuff= shlibsuff=
13149     ;;
13150   *)
13151     case $LD in # libtool.m4 will add one of these switches to LD
13152     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13153       libsuff= shlibsuff= libmagic=32-bit;;
13154     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13155       libsuff=32 shlibsuff=N32 libmagic=N32;;
13156     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13157       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13158     *) libsuff= shlibsuff= libmagic=never-match;;
13159     esac
13160     ;;
13161   esac
13162   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13163   shlibpath_overrides_runpath=no
13164   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13165   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13166   hardcode_into_libs=yes
13167   ;;
13168
13169 # No shared lib support for Linux oldld, aout, or coff.
13170 linux*oldld* | linux*aout* | linux*coff*)
13171   dynamic_linker=no
13172   ;;
13173
13174 # This must be glibc/ELF.
13175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13176   version_type=linux # correct to gnu/linux during the next big refactor
13177   need_lib_prefix=no
13178   need_version=no
13179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13180   soname_spec='${libname}${release}${shared_ext}$major'
13181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13182   shlibpath_var=LD_LIBRARY_PATH
13183   shlibpath_overrides_runpath=no
13184
13185   # Some binutils ld are patched to set DT_RUNPATH
13186   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13187   $as_echo_n "(cached) " >&6
13188 else
13189   lt_cv_shlibpath_overrides_runpath=no
13190     save_LDFLAGS=$LDFLAGS
13191     save_libdir=$libdir
13192     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13193          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h.  */
13196
13197 int main (void)
13198 {
13199
13200  ;
13201  return 0;
13202 }
13203 _ACEOF
13204 if ac_fn_c_try_link "$LINENO"; then :
13205   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13206   lt_cv_shlibpath_overrides_runpath=yes
13207 fi
13208 fi
13209 rm -f core conftest.err conftest.$ac_objext \
13210     conftest$ac_exeext conftest.$ac_ext
13211     LDFLAGS=$save_LDFLAGS
13212     libdir=$save_libdir
13213
13214 fi
13215
13216   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13217
13218   # This implies no fast_install, which is unacceptable.
13219   # Some rework will be needed to allow for fast_install
13220   # before this can be enabled.
13221   hardcode_into_libs=yes
13222
13223   # Append ld.so.conf contents to the search path
13224   if test -f /etc/ld.so.conf; then
13225     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' ' '`
13226     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13227   fi
13228
13229   # We used to test for /lib/ld.so.1 and disable shared libraries on
13230   # powerpc, because MkLinux only supported shared libraries with the
13231   # GNU dynamic linker.  Since this was broken with cross compilers,
13232   # most powerpc-linux boxes support dynamic linking these days and
13233   # people can always --disable-shared, the test was removed, and we
13234   # assume the GNU/Linux dynamic linker is in use.
13235   dynamic_linker='GNU/Linux ld.so'
13236   ;;
13237
13238 netbsdelf*-gnu)
13239   version_type=linux
13240   need_lib_prefix=no
13241   need_version=no
13242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13243   soname_spec='${libname}${release}${shared_ext}$major'
13244   shlibpath_var=LD_LIBRARY_PATH
13245   shlibpath_overrides_runpath=no
13246   hardcode_into_libs=yes
13247   dynamic_linker='NetBSD ld.elf_so'
13248   ;;
13249
13250 netbsd*)
13251   version_type=sunos
13252   need_lib_prefix=no
13253   need_version=no
13254   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257     dynamic_linker='NetBSD (a.out) ld.so'
13258   else
13259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260     soname_spec='${libname}${release}${shared_ext}$major'
13261     dynamic_linker='NetBSD ld.elf_so'
13262   fi
13263   shlibpath_var=LD_LIBRARY_PATH
13264   shlibpath_overrides_runpath=yes
13265   hardcode_into_libs=yes
13266   ;;
13267
13268 newsos6)
13269   version_type=linux # correct to gnu/linux during the next big refactor
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271   shlibpath_var=LD_LIBRARY_PATH
13272   shlibpath_overrides_runpath=yes
13273   ;;
13274
13275 *nto* | *qnx*)
13276   version_type=qnx
13277   need_lib_prefix=no
13278   need_version=no
13279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280   soname_spec='${libname}${release}${shared_ext}$major'
13281   shlibpath_var=LD_LIBRARY_PATH
13282   shlibpath_overrides_runpath=no
13283   hardcode_into_libs=yes
13284   dynamic_linker='ldqnx.so'
13285   ;;
13286
13287 openbsd*)
13288   version_type=sunos
13289   sys_lib_dlsearch_path_spec="/usr/lib"
13290   need_lib_prefix=no
13291   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13292   case $host_os in
13293     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13294     *)                          need_version=no  ;;
13295   esac
13296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13298   shlibpath_var=LD_LIBRARY_PATH
13299   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13300     case $host_os in
13301       openbsd2.[89] | openbsd2.[89].*)
13302         shlibpath_overrides_runpath=no
13303         ;;
13304       *)
13305         shlibpath_overrides_runpath=yes
13306         ;;
13307       esac
13308   else
13309     shlibpath_overrides_runpath=yes
13310   fi
13311   ;;
13312
13313 os2*)
13314   libname_spec='$name'
13315   shrext_cmds=".dll"
13316   need_lib_prefix=no
13317   library_names_spec='$libname${shared_ext} $libname.a'
13318   dynamic_linker='OS/2 ld.exe'
13319   shlibpath_var=LIBPATH
13320   ;;
13321
13322 osf3* | osf4* | osf5*)
13323   version_type=osf
13324   need_lib_prefix=no
13325   need_version=no
13326   soname_spec='${libname}${release}${shared_ext}$major'
13327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328   shlibpath_var=LD_LIBRARY_PATH
13329   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13330   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13331   ;;
13332
13333 rdos*)
13334   dynamic_linker=no
13335   ;;
13336
13337 solaris*)
13338   version_type=linux # correct to gnu/linux during the next big refactor
13339   need_lib_prefix=no
13340   need_version=no
13341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342   soname_spec='${libname}${release}${shared_ext}$major'
13343   shlibpath_var=LD_LIBRARY_PATH
13344   shlibpath_overrides_runpath=yes
13345   hardcode_into_libs=yes
13346   # ldd complains unless libraries are executable
13347   postinstall_cmds='chmod +x $lib'
13348   ;;
13349
13350 sunos4*)
13351   version_type=sunos
13352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13354   shlibpath_var=LD_LIBRARY_PATH
13355   shlibpath_overrides_runpath=yes
13356   if test "$with_gnu_ld" = yes; then
13357     need_lib_prefix=no
13358   fi
13359   need_version=yes
13360   ;;
13361
13362 sysv4 | sysv4.3*)
13363   version_type=linux # correct to gnu/linux during the next big refactor
13364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13365   soname_spec='${libname}${release}${shared_ext}$major'
13366   shlibpath_var=LD_LIBRARY_PATH
13367   case $host_vendor in
13368     sni)
13369       shlibpath_overrides_runpath=no
13370       need_lib_prefix=no
13371       runpath_var=LD_RUN_PATH
13372       ;;
13373     siemens)
13374       need_lib_prefix=no
13375       ;;
13376     motorola)
13377       need_lib_prefix=no
13378       need_version=no
13379       shlibpath_overrides_runpath=no
13380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13381       ;;
13382   esac
13383   ;;
13384
13385 sysv4*MP*)
13386   if test -d /usr/nec ;then
13387     version_type=linux # correct to gnu/linux during the next big refactor
13388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13389     soname_spec='$libname${shared_ext}.$major'
13390     shlibpath_var=LD_LIBRARY_PATH
13391   fi
13392   ;;
13393
13394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13395   version_type=freebsd-elf
13396   need_lib_prefix=no
13397   need_version=no
13398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13399   soname_spec='${libname}${release}${shared_ext}$major'
13400   shlibpath_var=LD_LIBRARY_PATH
13401   shlibpath_overrides_runpath=yes
13402   hardcode_into_libs=yes
13403   if test "$with_gnu_ld" = yes; then
13404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13405   else
13406     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13407     case $host_os in
13408       sco3.2v5*)
13409         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13410         ;;
13411     esac
13412   fi
13413   sys_lib_dlsearch_path_spec='/usr/lib'
13414   ;;
13415
13416 tpf*)
13417   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13418   version_type=linux # correct to gnu/linux during the next big refactor
13419   need_lib_prefix=no
13420   need_version=no
13421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422   shlibpath_var=LD_LIBRARY_PATH
13423   shlibpath_overrides_runpath=no
13424   hardcode_into_libs=yes
13425   ;;
13426
13427 uts4*)
13428   version_type=linux # correct to gnu/linux during the next big refactor
13429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430   soname_spec='${libname}${release}${shared_ext}$major'
13431   shlibpath_var=LD_LIBRARY_PATH
13432   ;;
13433
13434 *)
13435   dynamic_linker=no
13436   ;;
13437 esac
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13439 $as_echo "$dynamic_linker" >&6; }
13440 test "$dynamic_linker" = no && can_build_shared=no
13441
13442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13443 if test "$GCC" = yes; then
13444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13445 fi
13446
13447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13448   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13449 fi
13450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13451   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13452 fi
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13546 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13547 hardcode_action=
13548 if test -n "$hardcode_libdir_flag_spec" ||
13549    test -n "$runpath_var" ||
13550    test "X$hardcode_automatic" = "Xyes" ; then
13551
13552   # We can hardcode non-existent directories.
13553   if test "$hardcode_direct" != no &&
13554      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13555      # have to relink, otherwise we might link with an installed library
13556      # when we should be linking with a yet-to-be-installed one
13557      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13558      test "$hardcode_minus_L" != no; then
13559     # Linking always hardcodes the temporary library directory.
13560     hardcode_action=relink
13561   else
13562     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13563     hardcode_action=immediate
13564   fi
13565 else
13566   # We cannot hardcode anything, or else we can only hardcode existing
13567   # directories.
13568   hardcode_action=unsupported
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13571 $as_echo "$hardcode_action" >&6; }
13572
13573 if test "$hardcode_action" = relink ||
13574    test "$inherit_rpath" = yes; then
13575   # Fast installation is not supported
13576   enable_fast_install=no
13577 elif test "$shlibpath_overrides_runpath" = yes ||
13578      test "$enable_shared" = no; then
13579   # Fast installation is not necessary
13580   enable_fast_install=needless
13581 fi
13582
13583
13584
13585
13586
13587
13588   if test "x$enable_dlopen" != xyes; then
13589   enable_dlopen=unknown
13590   enable_dlopen_self=unknown
13591   enable_dlopen_self_static=unknown
13592 else
13593   lt_cv_dlopen=no
13594   lt_cv_dlopen_libs=
13595
13596   case $host_os in
13597   beos*)
13598     lt_cv_dlopen="load_add_on"
13599     lt_cv_dlopen_libs=
13600     lt_cv_dlopen_self=yes
13601     ;;
13602
13603   mingw* | pw32* | cegcc*)
13604     lt_cv_dlopen="LoadLibrary"
13605     lt_cv_dlopen_libs=
13606     ;;
13607
13608   cygwin*)
13609     lt_cv_dlopen="dlopen"
13610     lt_cv_dlopen_libs=
13611     ;;
13612
13613   darwin*)
13614   # if libdl is installed we need to link against it
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13617 if ${ac_cv_lib_dl_dlopen+:} false; then :
13618   $as_echo_n "(cached) " >&6
13619 else
13620   ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-ldl  $LIBS"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h.  */
13624
13625
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char dlopen ();
13630 int main (void)
13631 {
13632 return dlopen ();
13633  ;
13634  return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638   ac_cv_lib_dl_dlopen=yes
13639 else
13640   ac_cv_lib_dl_dlopen=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643     conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13650 else
13651
13652     lt_cv_dlopen="dyld"
13653     lt_cv_dlopen_libs=
13654     lt_cv_dlopen_self=yes
13655
13656 fi
13657
13658     ;;
13659
13660   *)
13661     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13662 if test "x$ac_cv_func_shl_load" = xyes; then :
13663   lt_cv_dlopen="shl_load"
13664 else
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13667 if ${ac_cv_lib_dld_shl_load+:} false; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-ldld  $LIBS"
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h.  */
13674
13675
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char shl_load ();
13680 int main (void)
13681 {
13682 return shl_load ();
13683  ;
13684  return 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"; then :
13688   ac_cv_lib_dld_shl_load=yes
13689 else
13690   ac_cv_lib_dld_shl_load=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext \
13693     conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13697 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13698 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13699   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13700 else
13701   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13702 if test "x$ac_cv_func_dlopen" = xyes; then :
13703   lt_cv_dlopen="dlopen"
13704 else
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13706 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13707 if ${ac_cv_lib_dl_dlopen+:} false; then :
13708   $as_echo_n "(cached) " >&6
13709 else
13710   ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-ldl  $LIBS"
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h.  */
13714
13715
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char dlopen ();
13720 int main (void)
13721 {
13722 return dlopen ();
13723  ;
13724  return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728   ac_cv_lib_dl_dlopen=yes
13729 else
13730   ac_cv_lib_dl_dlopen=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733     conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13737 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13738 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13740 else
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13742 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13743 if ${ac_cv_lib_svld_dlopen+:} false; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746   ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lsvld  $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750
13751
13752 #ifdef __cplusplus
13753 extern "C"
13754 #endif
13755 char dlopen ();
13756 int main (void)
13757 {
13758 return dlopen ();
13759  ;
13760  return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_c_try_link "$LINENO"; then :
13764   ac_cv_lib_svld_dlopen=yes
13765 else
13766   ac_cv_lib_svld_dlopen=no
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext \
13769     conftest$ac_exeext conftest.$ac_ext
13770 LIBS=$ac_check_lib_save_LIBS
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13774 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13775   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13776 else
13777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13779 if ${ac_cv_lib_dld_dld_link+:} false; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782   ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-ldld  $LIBS"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h.  */
13786
13787
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char dld_link ();
13792 int main (void)
13793 {
13794 return dld_link ();
13795  ;
13796  return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800   ac_cv_lib_dld_dld_link=yes
13801 else
13802   ac_cv_lib_dld_dld_link=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805     conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13810 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13811   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13812 fi
13813
13814
13815 fi
13816
13817
13818 fi
13819
13820
13821 fi
13822
13823
13824 fi
13825
13826
13827 fi
13828
13829     ;;
13830   esac
13831
13832   if test "x$lt_cv_dlopen" != xno; then
13833     enable_dlopen=yes
13834   else
13835     enable_dlopen=no
13836   fi
13837
13838   case $lt_cv_dlopen in
13839   dlopen)
13840     save_CPPFLAGS="$CPPFLAGS"
13841     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13842
13843     save_LDFLAGS="$LDFLAGS"
13844     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13845
13846     save_LIBS="$LIBS"
13847     LIBS="$lt_cv_dlopen_libs $LIBS"
13848
13849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13850 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13851 if ${lt_cv_dlopen_self+:} false; then :
13852   $as_echo_n "(cached) " >&6
13853 else
13854           if test "$cross_compiling" = yes; then :
13855   lt_cv_dlopen_self=cross
13856 else
13857   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13858   lt_status=$lt_dlunknown
13859   cat > conftest.$ac_ext <<_LT_EOF
13860 #line $LINENO "configure"
13861 #include "confdefs.h"
13862
13863 #if HAVE_DLFCN_H
13864 #include <dlfcn.h>
13865 #endif
13866
13867 #include <stdio.h>
13868
13869 #ifdef RTLD_GLOBAL
13870 #  define LT_DLGLOBAL           RTLD_GLOBAL
13871 #else
13872 #  ifdef DL_GLOBAL
13873 #    define LT_DLGLOBAL         DL_GLOBAL
13874 #  else
13875 #    define LT_DLGLOBAL         0
13876 #  endif
13877 #endif
13878
13879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13880    find out it does not work in some platform. */
13881 #ifndef LT_DLLAZY_OR_NOW
13882 #  ifdef RTLD_LAZY
13883 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13884 #  else
13885 #    ifdef DL_LAZY
13886 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13887 #    else
13888 #      ifdef RTLD_NOW
13889 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13890 #      else
13891 #        ifdef DL_NOW
13892 #          define LT_DLLAZY_OR_NOW      DL_NOW
13893 #        else
13894 #          define LT_DLLAZY_OR_NOW      0
13895 #        endif
13896 #      endif
13897 #    endif
13898 #  endif
13899 #endif
13900
13901 /* When -fvisbility=hidden is used, assume the code has been annotated
13902    correspondingly for the symbols needed.  */
13903 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13904 int fnord () __attribute__((visibility("default")));
13905 #endif
13906
13907 int fnord () { return 42; }
13908 int main ()
13909 {
13910   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13911   int status = $lt_dlunknown;
13912
13913   if (self)
13914     {
13915       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13916       else
13917         {
13918           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13919           else puts (dlerror ());
13920         }
13921       /* dlclose (self); */
13922     }
13923   else
13924     puts (dlerror ());
13925
13926   return status;
13927 }
13928 _LT_EOF
13929   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13930   (eval $ac_link) 2>&5
13931   ac_status=$?
13932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13934     (./conftest; exit; ) >&5 2>/dev/null
13935     lt_status=$?
13936     case x$lt_status in
13937       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13938       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13939       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13940     esac
13941   else :
13942     # compilation failed
13943     lt_cv_dlopen_self=no
13944   fi
13945 fi
13946 rm -fr conftest*
13947
13948
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13951 $as_echo "$lt_cv_dlopen_self" >&6; }
13952
13953     if test "x$lt_cv_dlopen_self" = xyes; then
13954       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13956 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13957 if ${lt_cv_dlopen_self_static+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960           if test "$cross_compiling" = yes; then :
13961   lt_cv_dlopen_self_static=cross
13962 else
13963   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13964   lt_status=$lt_dlunknown
13965   cat > conftest.$ac_ext <<_LT_EOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968
13969 #if HAVE_DLFCN_H
13970 #include <dlfcn.h>
13971 #endif
13972
13973 #include <stdio.h>
13974
13975 #ifdef RTLD_GLOBAL
13976 #  define LT_DLGLOBAL           RTLD_GLOBAL
13977 #else
13978 #  ifdef DL_GLOBAL
13979 #    define LT_DLGLOBAL         DL_GLOBAL
13980 #  else
13981 #    define LT_DLGLOBAL         0
13982 #  endif
13983 #endif
13984
13985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13986    find out it does not work in some platform. */
13987 #ifndef LT_DLLAZY_OR_NOW
13988 #  ifdef RTLD_LAZY
13989 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13990 #  else
13991 #    ifdef DL_LAZY
13992 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13993 #    else
13994 #      ifdef RTLD_NOW
13995 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13996 #      else
13997 #        ifdef DL_NOW
13998 #          define LT_DLLAZY_OR_NOW      DL_NOW
13999 #        else
14000 #          define LT_DLLAZY_OR_NOW      0
14001 #        endif
14002 #      endif
14003 #    endif
14004 #  endif
14005 #endif
14006
14007 /* When -fvisbility=hidden is used, assume the code has been annotated
14008    correspondingly for the symbols needed.  */
14009 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14010 int fnord () __attribute__((visibility("default")));
14011 #endif
14012
14013 int fnord () { return 42; }
14014 int main ()
14015 {
14016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017   int status = $lt_dlunknown;
14018
14019   if (self)
14020     {
14021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14022       else
14023         {
14024           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14025           else puts (dlerror ());
14026         }
14027       /* dlclose (self); */
14028     }
14029   else
14030     puts (dlerror ());
14031
14032   return status;
14033 }
14034 _LT_EOF
14035   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14036   (eval $ac_link) 2>&5
14037   ac_status=$?
14038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14040     (./conftest; exit; ) >&5 2>/dev/null
14041     lt_status=$?
14042     case x$lt_status in
14043       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14044       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14045       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14046     esac
14047   else :
14048     # compilation failed
14049     lt_cv_dlopen_self_static=no
14050   fi
14051 fi
14052 rm -fr conftest*
14053
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14057 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14058     fi
14059
14060     CPPFLAGS="$save_CPPFLAGS"
14061     LDFLAGS="$save_LDFLAGS"
14062     LIBS="$save_LIBS"
14063     ;;
14064   esac
14065
14066   case $lt_cv_dlopen_self in
14067   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14068   *) enable_dlopen_self=unknown ;;
14069   esac
14070
14071   case $lt_cv_dlopen_self_static in
14072   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14073   *) enable_dlopen_self_static=unknown ;;
14074   esac
14075 fi
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 striplib=
14094 old_striplib=
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14096 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14097 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14098   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14099   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101 $as_echo "yes" >&6; }
14102 else
14103 # FIXME - insert some real tests, host_os isn't really good enough
14104   case $host_os in
14105   darwin*)
14106     if test -n "$STRIP" ; then
14107       striplib="$STRIP -x"
14108       old_striplib="$STRIP -S"
14109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14110 $as_echo "yes" >&6; }
14111     else
14112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114     fi
14115     ;;
14116   *)
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14119     ;;
14120   esac
14121 fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134   # Report which library types will actually be built
14135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14136 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14138 $as_echo "$can_build_shared" >&6; }
14139
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14141 $as_echo_n "checking whether to build shared libraries... " >&6; }
14142   test "$can_build_shared" = "no" && enable_shared=no
14143
14144   # On AIX, shared libraries and static libraries use the same namespace, and
14145   # are all built from PIC.
14146   case $host_os in
14147   aix3*)
14148     test "$enable_shared" = yes && enable_static=no
14149     if test -n "$RANLIB"; then
14150       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14151       postinstall_cmds='$RANLIB $lib'
14152     fi
14153     ;;
14154
14155   aix[4-9]*)
14156     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14157       test "$enable_shared" = yes && enable_static=no
14158     fi
14159     ;;
14160   esac
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14162 $as_echo "$enable_shared" >&6; }
14163
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14165 $as_echo_n "checking whether to build static libraries... " >&6; }
14166   # Make sure either enable_shared or enable_static is yes.
14167   test "$enable_shared" = yes || enable_static=yes
14168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14169 $as_echo "$enable_static" >&6; }
14170
14171
14172
14173
14174 fi
14175 ac_ext=c
14176 ac_cpp='$CPP $CPPFLAGS'
14177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180
14181 CC="$lt_save_CC"
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197         ac_config_commands="$ac_config_commands libtool"
14198
14199
14200
14201
14202 # Only expand once:
14203
14204
14205 ## --------------------- ##
14206 ##  End of libtool code  ##
14207 ## --------------------- ##
14208
14209 #
14210 # Verify if finally libtool shared libraries will be built
14211 #
14212
14213 case "x$enable_shared" in # ((
14214   xyes | xno)
14215     xc_lt_build_shared=$enable_shared
14216     ;;
14217   *)
14218     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
14219     ;;
14220 esac
14221
14222 #
14223 # Verify if finally libtool static libraries will be built
14224 #
14225
14226 case "x$enable_static" in # ((
14227   xyes | xno)
14228     xc_lt_build_static=$enable_static
14229     ;;
14230   *)
14231     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
14232     ;;
14233 esac
14234
14235 #
14236 # Verify if libtool shared libraries should be linked using flag -version-info
14237 #
14238
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
14240 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
14241 xc_lt_shlib_use_version_info='yes'
14242 if test "x$version_type" = 'xnone'; then
14243   xc_lt_shlib_use_version_info='no'
14244 fi
14245 case $host_os in # (
14246   amigaos*)
14247     xc_lt_shlib_use_version_info='yes'
14248     ;;
14249 esac
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
14251 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
14252
14253 #
14254 # Verify if libtool shared libraries should be linked using flag -no-undefined
14255 #
14256
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
14258 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
14259 xc_lt_shlib_use_no_undefined='no'
14260 if test "x$allow_undefined" = 'xno'; then
14261   xc_lt_shlib_use_no_undefined='yes'
14262 elif test "x$allow_undefined_flag" = 'xunsupported'; then
14263   xc_lt_shlib_use_no_undefined='yes'
14264 fi
14265 case $host_os in # (
14266   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
14267     xc_lt_shlib_use_no_undefined='yes'
14268     ;;
14269 esac
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
14271 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
14272
14273 #
14274 # Verify if libtool shared libraries should be linked using flag -mimpure-text
14275 #
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
14278 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
14279 xc_lt_shlib_use_mimpure_text='no'
14280 case $host_os in # (
14281   solaris2*)
14282     if test "x$GCC" = 'xyes'; then
14283       xc_lt_shlib_use_mimpure_text='yes'
14284     fi
14285     ;;
14286 esac
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
14288 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
14289
14290 #
14291 # Find out wether libtool libraries would be built wit PIC
14292 #
14293
14294 case "x$pic_mode" in # ((((
14295   xdefault)
14296     xc_lt_build_shared_with_pic='yes'
14297     xc_lt_build_static_with_pic='no'
14298     ;;
14299   xyes)
14300     xc_lt_build_shared_with_pic='yes'
14301     xc_lt_build_static_with_pic='yes'
14302     ;;
14303   xno)
14304     xc_lt_build_shared_with_pic='no'
14305     xc_lt_build_static_with_pic='no'
14306     ;;
14307   *)
14308     xc_lt_build_shared_with_pic='unknown'
14309     xc_lt_build_static_with_pic='unknown'
14310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
14311 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
14312     ;;
14313 esac
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
14315 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
14317 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
14319 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
14321 $as_echo "$xc_lt_build_static_with_pic" >&6; }
14322
14323 #
14324 # Verify if libtool shared libraries will be built while static not built
14325 #
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
14328 $as_echo_n "checking whether to build shared libraries only... " >&6; }
14329 if test "$xc_lt_build_shared" = 'yes' &&
14330   test "$xc_lt_build_static" = 'no'; then
14331   xc_lt_build_shared_only='yes'
14332 else
14333   xc_lt_build_shared_only='no'
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
14336 $as_echo "$xc_lt_build_shared_only" >&6; }
14337
14338 #
14339 # Verify if libtool static libraries will be built while shared not built
14340 #
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
14343 $as_echo_n "checking whether to build static libraries only... " >&6; }
14344 if test "$xc_lt_build_static" = 'yes' &&
14345   test "$xc_lt_build_shared" = 'no'; then
14346   xc_lt_build_static_only='yes'
14347 else
14348   xc_lt_build_static_only='no'
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
14351 $as_echo "$xc_lt_build_static_only" >&6; }
14352
14353
14354
14355
14356 #
14357 # Automake conditionals based on libtool related checks
14358 #
14359
14360  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
14361   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
14362   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
14363 else
14364   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
14365   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
14366 fi
14367
14368  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
14369   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
14370   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
14371 else
14372   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
14373   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
14374 fi
14375
14376  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
14377   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
14378   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
14379 else
14380   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
14381   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
14382 fi
14383
14384
14385 #
14386 # Due to libtool and automake machinery limitations of not allowing
14387 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
14388 # inclusion of these in shared or static libraries, we are forced to
14389 # build using separate configure runs for shared and static libraries
14390 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
14391 # to compile objects for each kind of library. Notice that relying on
14392 # the '-DPIC' CFLAG that libtool provides is not valid given that the
14393 # user might for example choose to build static libraries with PIC.
14394 #
14395
14396 #
14397 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
14398 # targeting a static library and not building its shared counterpart.
14399 #
14400
14401  if test "x$xc_lt_build_static_only" = 'xyes'; then
14402   USE_CPPFLAG_CARES_STATICLIB_TRUE=
14403   USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
14404 else
14405   USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
14406   USE_CPPFLAG_CARES_STATICLIB_FALSE=
14407 fi
14408
14409
14410 #
14411 # Make staticlib CPPFLAG variable and its definition visible in output
14412 # files unconditionally, providing an empty definition unless strictly
14413 # targeting a static library and not building its shared counterpart.
14414 #
14415
14416 CPPFLAG_CARES_STATICLIB=
14417 if test "x$xc_lt_build_static_only" = 'xyes'; then
14418   CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
14419 fi
14420
14421
14422
14423
14424   #
14425   compiler_id="unknown"
14426   compiler_num="0"
14427   #
14428   flags_dbg_all="unknown"
14429   flags_dbg_yes="unknown"
14430   flags_dbg_off="unknown"
14431   flags_opt_all="unknown"
14432   flags_opt_yes="unknown"
14433   flags_opt_off="unknown"
14434   #
14435   flags_prefer_cppflags="no"
14436   #
14437
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
14439 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
14440
14441       if test -z "$SED"; then
14442     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14443   fi
14444   if test -z "$GREP"; then
14445     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14446   fi
14447
14448   tmp_exp=""
14449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h.  */
14451
14452
14453 #ifdef __DECC
14454 CURL_DEF_TOKEN __DECC
14455 #endif
14456
14457
14458 _ACEOF
14459 if ac_fn_c_try_cpp "$LINENO"; then :
14460
14461     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14462       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14463       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14464       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14465     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
14466       tmp_exp=""
14467     fi
14468
14469 fi
14470 rm -f conftest.err conftest.i conftest.$ac_ext
14471   if test -z "$tmp_exp"; then
14472     curl_cv_have_def___DECC=no
14473
14474   else
14475     curl_cv_have_def___DECC=yes
14476     curl_cv_def___DECC=$tmp_exp
14477
14478   fi
14479
14480
14481       if test -z "$SED"; then
14482     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14483   fi
14484   if test -z "$GREP"; then
14485     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14486   fi
14487
14488   tmp_exp=""
14489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h.  */
14491
14492
14493 #ifdef __DECC_VER
14494 CURL_DEF_TOKEN __DECC_VER
14495 #endif
14496
14497
14498 _ACEOF
14499 if ac_fn_c_try_cpp "$LINENO"; then :
14500
14501     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14502       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14503       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14504       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14505     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
14506       tmp_exp=""
14507     fi
14508
14509 fi
14510 rm -f conftest.err conftest.i conftest.$ac_ext
14511   if test -z "$tmp_exp"; then
14512     curl_cv_have_def___DECC_VER=no
14513
14514   else
14515     curl_cv_have_def___DECC_VER=yes
14516     curl_cv_def___DECC_VER=$tmp_exp
14517
14518   fi
14519
14520   if test "$curl_cv_have_def___DECC" = "yes" &&
14521     test "$curl_cv_have_def___DECC_VER" = "yes"; then
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14523 $as_echo "yes" >&6; }
14524     compiler_id="DEC_C"
14525     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14526     flags_dbg_yes="-g2"
14527     flags_dbg_off="-g0"
14528     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
14529     flags_opt_yes="-O1"
14530     flags_opt_off="-O0"
14531   else
14532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534   fi
14535
14536
14537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
14538 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
14539
14540       if test -z "$SED"; then
14541     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14542   fi
14543   if test -z "$GREP"; then
14544     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14545   fi
14546
14547   tmp_exp=""
14548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551
14552 #ifdef __HP_cc
14553 CURL_DEF_TOKEN __HP_cc
14554 #endif
14555
14556
14557 _ACEOF
14558 if ac_fn_c_try_cpp "$LINENO"; then :
14559
14560     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14561       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14562       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14563       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14564     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
14565       tmp_exp=""
14566     fi
14567
14568 fi
14569 rm -f conftest.err conftest.i conftest.$ac_ext
14570   if test -z "$tmp_exp"; then
14571     curl_cv_have_def___HP_cc=no
14572
14573   else
14574     curl_cv_have_def___HP_cc=yes
14575     curl_cv_def___HP_cc=$tmp_exp
14576
14577   fi
14578
14579   if test "$curl_cv_have_def___HP_cc" = "yes"; then
14580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14581 $as_echo "yes" >&6; }
14582     compiler_id="HP_UX_C"
14583     flags_dbg_all="-g -s"
14584     flags_dbg_yes="-g"
14585     flags_dbg_off="-s"
14586     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
14587     flags_opt_yes="+O2"
14588     flags_opt_off="+O0"
14589   else
14590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14592   fi
14593
14594
14595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
14596 $as_echo_n "checking if compiler is IBM C... " >&6; }
14597
14598       if test -z "$SED"; then
14599     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14600   fi
14601   if test -z "$GREP"; then
14602     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14603   fi
14604
14605   tmp_exp=""
14606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h.  */
14608
14609
14610 #ifdef __IBMC__
14611 CURL_DEF_TOKEN __IBMC__
14612 #endif
14613
14614
14615 _ACEOF
14616 if ac_fn_c_try_cpp "$LINENO"; then :
14617
14618     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14619       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14620       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14621       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14622     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
14623       tmp_exp=""
14624     fi
14625
14626 fi
14627 rm -f conftest.err conftest.i conftest.$ac_ext
14628   if test -z "$tmp_exp"; then
14629     curl_cv_have_def___IBMC__=no
14630
14631   else
14632     curl_cv_have_def___IBMC__=yes
14633     curl_cv_def___IBMC__=$tmp_exp
14634
14635   fi
14636
14637   if test "$curl_cv_have_def___IBMC__" = "yes"; then
14638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14639 $as_echo "yes" >&6; }
14640     compiler_id="IBM_C"
14641     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14642     flags_dbg_yes="-g"
14643     flags_dbg_off=""
14644     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
14645     flags_opt_all="$flags_opt_all -qnooptimize"
14646     flags_opt_all="$flags_opt_all -qoptimize=0"
14647     flags_opt_all="$flags_opt_all -qoptimize=1"
14648     flags_opt_all="$flags_opt_all -qoptimize=2"
14649     flags_opt_all="$flags_opt_all -qoptimize=3"
14650     flags_opt_all="$flags_opt_all -qoptimize=4"
14651     flags_opt_all="$flags_opt_all -qoptimize=5"
14652     flags_opt_yes="-O2"
14653     flags_opt_off="-qnooptimize"
14654     flags_prefer_cppflags="yes"
14655   else
14656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14658   fi
14659
14660
14661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
14662 $as_echo_n "checking if compiler is Intel C... " >&6; }
14663
14664       if test -z "$SED"; then
14665     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14666   fi
14667   if test -z "$GREP"; then
14668     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14669   fi
14670
14671   tmp_exp=""
14672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h.  */
14674
14675
14676 #ifdef __INTEL_COMPILER
14677 CURL_DEF_TOKEN __INTEL_COMPILER
14678 #endif
14679
14680
14681 _ACEOF
14682 if ac_fn_c_try_cpp "$LINENO"; then :
14683
14684     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14685       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14686       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14687       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14688     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
14689       tmp_exp=""
14690     fi
14691
14692 fi
14693 rm -f conftest.err conftest.i conftest.$ac_ext
14694   if test -z "$tmp_exp"; then
14695     curl_cv_have_def___INTEL_COMPILER=no
14696
14697   else
14698     curl_cv_have_def___INTEL_COMPILER=yes
14699     curl_cv_def___INTEL_COMPILER=$tmp_exp
14700
14701   fi
14702
14703   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
14704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706     compiler_num="$curl_cv_def___INTEL_COMPILER"
14707
14708       if test -z "$SED"; then
14709     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14710   fi
14711   if test -z "$GREP"; then
14712     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14713   fi
14714
14715   tmp_exp=""
14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718
14719
14720 #ifdef __unix__
14721 CURL_DEF_TOKEN __unix__
14722 #endif
14723
14724
14725 _ACEOF
14726 if ac_fn_c_try_cpp "$LINENO"; then :
14727
14728     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14729       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14730       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14731       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14732     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
14733       tmp_exp=""
14734     fi
14735
14736 fi
14737 rm -f conftest.err conftest.i conftest.$ac_ext
14738   if test -z "$tmp_exp"; then
14739     curl_cv_have_def___unix__=no
14740
14741   else
14742     curl_cv_have_def___unix__=yes
14743     curl_cv_def___unix__=$tmp_exp
14744
14745   fi
14746
14747     if test "$curl_cv_have_def___unix__" = "yes"; then
14748       compiler_id="INTEL_UNIX_C"
14749       flags_dbg_all="-g -g0"
14750       flags_dbg_yes="-g"
14751       flags_dbg_off="-g0"
14752       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14753       flags_opt_yes="-O2"
14754       flags_opt_off="-O0"
14755     else
14756       compiler_id="INTEL_WINDOWS_C"
14757       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
14758       flags_dbg_all="$flags_dbg_all /debug"
14759       flags_dbg_all="$flags_dbg_all /debug:none"
14760       flags_dbg_all="$flags_dbg_all /debug:minimal"
14761       flags_dbg_all="$flags_dbg_all /debug:partial"
14762       flags_dbg_all="$flags_dbg_all /debug:full"
14763       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
14764       flags_dbg_all="$flags_dbg_all /debug:extended"
14765       flags_dbg_yes="/Zi /Oy-"
14766       flags_dbg_off="/debug:none /Oy-"
14767       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
14768       flags_opt_yes="/O2"
14769       flags_opt_off="/Od"
14770     fi
14771   else
14772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14774   fi
14775
14776
14777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
14778 $as_echo_n "checking if compiler is clang... " >&6; }
14779
14780       if test -z "$SED"; then
14781     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14782   fi
14783   if test -z "$GREP"; then
14784     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14785   fi
14786
14787   tmp_exp=""
14788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790
14791
14792 #ifdef __clang__
14793 CURL_DEF_TOKEN __clang__
14794 #endif
14795
14796
14797 _ACEOF
14798 if ac_fn_c_try_cpp "$LINENO"; then :
14799
14800     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14801       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14802       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14803       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14804     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
14805       tmp_exp=""
14806     fi
14807
14808 fi
14809 rm -f conftest.err conftest.i conftest.$ac_ext
14810   if test -z "$tmp_exp"; then
14811     curl_cv_have_def___clang__=no
14812
14813   else
14814     curl_cv_have_def___clang__=yes
14815     curl_cv_def___clang__=$tmp_exp
14816
14817   fi
14818
14819   if test "$curl_cv_have_def___clang__" = "yes"; then
14820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14821 $as_echo "yes" >&6; }
14822     compiler_id="CLANG"
14823     clangver=`$CC -dumpversion`
14824     clangvhi=`echo $clangver | cut -d . -f1`
14825     clangvlo=`echo $clangver | cut -d . -f2`
14826     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14827     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14828     flags_dbg_all="$flags_dbg_all -ggdb"
14829     flags_dbg_all="$flags_dbg_all -gstabs"
14830     flags_dbg_all="$flags_dbg_all -gstabs+"
14831     flags_dbg_all="$flags_dbg_all -gcoff"
14832     flags_dbg_all="$flags_dbg_all -gxcoff"
14833     flags_dbg_all="$flags_dbg_all -gdwarf-2"
14834     flags_dbg_all="$flags_dbg_all -gvms"
14835     flags_dbg_yes="-g"
14836     flags_dbg_off="-g0"
14837     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14838     flags_opt_yes="-Os"
14839     flags_opt_off="-O0"
14840   else
14841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 $as_echo "no" >&6; }
14843   fi
14844
14845
14846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14847 $as_echo_n "checking if compiler is GNU C... " >&6; }
14848
14849       if test -z "$SED"; then
14850     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14851   fi
14852   if test -z "$GREP"; then
14853     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14854   fi
14855
14856   tmp_exp=""
14857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h.  */
14859
14860
14861 #ifdef __GNUC__
14862 CURL_DEF_TOKEN __GNUC__
14863 #endif
14864
14865
14866 _ACEOF
14867 if ac_fn_c_try_cpp "$LINENO"; then :
14868
14869     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14870       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14871       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14872       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14873     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14874       tmp_exp=""
14875     fi
14876
14877 fi
14878 rm -f conftest.err conftest.i conftest.$ac_ext
14879   if test -z "$tmp_exp"; then
14880     curl_cv_have_def___GNUC__=no
14881
14882   else
14883     curl_cv_have_def___GNUC__=yes
14884     curl_cv_def___GNUC__=$tmp_exp
14885
14886   fi
14887
14888   if test "$curl_cv_have_def___GNUC__" = "yes" &&
14889     test "$compiler_id" = "unknown"; then
14890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14892     compiler_id="GNU_C"
14893     gccver=`$CC -dumpversion`
14894     gccvhi=`echo $gccver | cut -d . -f1`
14895     gccvlo=`echo $gccver | cut -d . -f2`
14896     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
14897     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14898     flags_dbg_all="$flags_dbg_all -ggdb"
14899     flags_dbg_all="$flags_dbg_all -gstabs"
14900     flags_dbg_all="$flags_dbg_all -gstabs+"
14901     flags_dbg_all="$flags_dbg_all -gcoff"
14902     flags_dbg_all="$flags_dbg_all -gxcoff"
14903     flags_dbg_all="$flags_dbg_all -gdwarf-2"
14904     flags_dbg_all="$flags_dbg_all -gvms"
14905     flags_dbg_yes="-g"
14906     flags_dbg_off="-g0"
14907     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14908     flags_opt_yes="-O2"
14909     flags_opt_off="-O0"
14910
14911       if test -z "$SED"; then
14912     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14913   fi
14914   if test -z "$GREP"; then
14915     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14916   fi
14917
14918   tmp_exp=""
14919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h.  */
14921
14922
14923 #ifdef _WIN32
14924 CURL_DEF_TOKEN _WIN32
14925 #endif
14926
14927
14928 _ACEOF
14929 if ac_fn_c_try_cpp "$LINENO"; then :
14930
14931     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14932       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14933       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14934       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14935     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
14936       tmp_exp=""
14937     fi
14938
14939 fi
14940 rm -f conftest.err conftest.i conftest.$ac_ext
14941   if test -z "$tmp_exp"; then
14942     curl_cv_have_def__WIN32=no
14943
14944   else
14945     curl_cv_have_def__WIN32=yes
14946     curl_cv_def__WIN32=$tmp_exp
14947
14948   fi
14949
14950   else
14951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14953   fi
14954
14955
14956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
14957 $as_echo_n "checking if compiler is LCC... " >&6; }
14958
14959       if test -z "$SED"; then
14960     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14961   fi
14962   if test -z "$GREP"; then
14963     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14964   fi
14965
14966   tmp_exp=""
14967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h.  */
14969
14970
14971 #ifdef __LCC__
14972 CURL_DEF_TOKEN __LCC__
14973 #endif
14974
14975
14976 _ACEOF
14977 if ac_fn_c_try_cpp "$LINENO"; then :
14978
14979     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14980       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14981       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
14982       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14983     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
14984       tmp_exp=""
14985     fi
14986
14987 fi
14988 rm -f conftest.err conftest.i conftest.$ac_ext
14989   if test -z "$tmp_exp"; then
14990     curl_cv_have_def___LCC__=no
14991
14992   else
14993     curl_cv_have_def___LCC__=yes
14994     curl_cv_def___LCC__=$tmp_exp
14995
14996   fi
14997
14998   if test "$curl_cv_have_def___LCC__" = "yes"; then
14999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15000 $as_echo "yes" >&6; }
15001     compiler_id="LCC"
15002     flags_dbg_all="-g"
15003     flags_dbg_yes="-g"
15004     flags_dbg_off=""
15005     flags_opt_all=""
15006     flags_opt_yes=""
15007     flags_opt_off=""
15008   else
15009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15011   fi
15012
15013
15014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
15015 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
15016
15017       if test -z "$SED"; then
15018     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15019   fi
15020   if test -z "$GREP"; then
15021     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15022   fi
15023
15024   tmp_exp=""
15025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h.  */
15027
15028
15029 #ifdef __GNUC__
15030 CURL_DEF_TOKEN __GNUC__
15031 #endif
15032
15033
15034 _ACEOF
15035 if ac_fn_c_try_cpp "$LINENO"; then :
15036
15037     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15038       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15039       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15040       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15041     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15042       tmp_exp=""
15043     fi
15044
15045 fi
15046 rm -f conftest.err conftest.i conftest.$ac_ext
15047   if test -z "$tmp_exp"; then
15048     curl_cv_have_def___GNUC__=no
15049
15050   else
15051     curl_cv_have_def___GNUC__=yes
15052     curl_cv_def___GNUC__=$tmp_exp
15053
15054   fi
15055
15056
15057       if test -z "$SED"; then
15058     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15059   fi
15060   if test -z "$GREP"; then
15061     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15062   fi
15063
15064   tmp_exp=""
15065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h.  */
15067
15068
15069 #ifdef _COMPILER_VERSION
15070 CURL_DEF_TOKEN _COMPILER_VERSION
15071 #endif
15072
15073
15074 _ACEOF
15075 if ac_fn_c_try_cpp "$LINENO"; then :
15076
15077     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15078       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15079       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15080       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15081     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
15082       tmp_exp=""
15083     fi
15084
15085 fi
15086 rm -f conftest.err conftest.i conftest.$ac_ext
15087   if test -z "$tmp_exp"; then
15088     curl_cv_have_def__COMPILER_VERSION=no
15089
15090   else
15091     curl_cv_have_def__COMPILER_VERSION=yes
15092     curl_cv_def__COMPILER_VERSION=$tmp_exp
15093
15094   fi
15095
15096
15097       if test -z "$SED"; then
15098     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15099   fi
15100   if test -z "$GREP"; then
15101     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15102   fi
15103
15104   tmp_exp=""
15105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h.  */
15107
15108
15109 #ifdef _SGI_COMPILER_VERSION
15110 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
15111 #endif
15112
15113
15114 _ACEOF
15115 if ac_fn_c_try_cpp "$LINENO"; then :
15116
15117     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15118       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15119       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15120       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15121     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
15122       tmp_exp=""
15123     fi
15124
15125 fi
15126 rm -f conftest.err conftest.i conftest.$ac_ext
15127   if test -z "$tmp_exp"; then
15128     curl_cv_have_def__SGI_COMPILER_VERSION=no
15129
15130   else
15131     curl_cv_have_def__SGI_COMPILER_VERSION=yes
15132     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
15133
15134   fi
15135
15136   if test "$curl_cv_have_def___GNUC__" = "no" &&
15137     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
15138      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
15139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15140 $as_echo "yes" >&6; }
15141     compiler_id="SGI_MIPSPRO_C"
15142     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15143     flags_dbg_yes="-g"
15144     flags_dbg_off="-g0"
15145     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
15146     flags_opt_yes="-O2"
15147     flags_opt_off="-O0"
15148   else
15149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15151   fi
15152
15153
15154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
15155 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
15156
15157       if test -z "$SED"; then
15158     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15159   fi
15160   if test -z "$GREP"; then
15161     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15162   fi
15163
15164   tmp_exp=""
15165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h.  */
15167
15168
15169 #ifdef __GNUC__
15170 CURL_DEF_TOKEN __GNUC__
15171 #endif
15172
15173
15174 _ACEOF
15175 if ac_fn_c_try_cpp "$LINENO"; then :
15176
15177     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15178       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15179       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15180       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15181     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15182       tmp_exp=""
15183     fi
15184
15185 fi
15186 rm -f conftest.err conftest.i conftest.$ac_ext
15187   if test -z "$tmp_exp"; then
15188     curl_cv_have_def___GNUC__=no
15189
15190   else
15191     curl_cv_have_def___GNUC__=yes
15192     curl_cv_def___GNUC__=$tmp_exp
15193
15194   fi
15195
15196
15197       if test -z "$SED"; then
15198     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15199   fi
15200   if test -z "$GREP"; then
15201     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15202   fi
15203
15204   tmp_exp=""
15205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h.  */
15207
15208
15209 #ifdef __sgi
15210 CURL_DEF_TOKEN __sgi
15211 #endif
15212
15213
15214 _ACEOF
15215 if ac_fn_c_try_cpp "$LINENO"; then :
15216
15217     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15218       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15219       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15220       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15221     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
15222       tmp_exp=""
15223     fi
15224
15225 fi
15226 rm -f conftest.err conftest.i conftest.$ac_ext
15227   if test -z "$tmp_exp"; then
15228     curl_cv_have_def___sgi=no
15229
15230   else
15231     curl_cv_have_def___sgi=yes
15232     curl_cv_def___sgi=$tmp_exp
15233
15234   fi
15235
15236   if test "$curl_cv_have_def___GNUC__" = "no" &&
15237     test "$curl_cv_have_def___sgi" = "yes" &&
15238     test "$compiler_id" = "unknown"; then
15239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240 $as_echo "yes" >&6; }
15241     compiler_id="SGI_MIPS_C"
15242     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15243     flags_dbg_yes="-g"
15244     flags_dbg_off="-g0"
15245     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
15246     flags_opt_yes="-O2"
15247     flags_opt_off="-O0"
15248   else
15249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250 $as_echo "no" >&6; }
15251   fi
15252
15253
15254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
15255 $as_echo_n "checking if compiler is SunPro C... " >&6; }
15256
15257       if test -z "$SED"; then
15258     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15259   fi
15260   if test -z "$GREP"; then
15261     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15262   fi
15263
15264   tmp_exp=""
15265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h.  */
15267
15268
15269 #ifdef __SUNPRO_C
15270 CURL_DEF_TOKEN __SUNPRO_C
15271 #endif
15272
15273
15274 _ACEOF
15275 if ac_fn_c_try_cpp "$LINENO"; then :
15276
15277     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15278       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15279       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15280       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15281     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
15282       tmp_exp=""
15283     fi
15284
15285 fi
15286 rm -f conftest.err conftest.i conftest.$ac_ext
15287   if test -z "$tmp_exp"; then
15288     curl_cv_have_def___SUNPRO_C=no
15289
15290   else
15291     curl_cv_have_def___SUNPRO_C=yes
15292     curl_cv_def___SUNPRO_C=$tmp_exp
15293
15294   fi
15295
15296   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
15297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15298 $as_echo "yes" >&6; }
15299     compiler_id="SUNPRO_C"
15300     flags_dbg_all="-g -s"
15301     flags_dbg_yes="-g"
15302     flags_dbg_off="-s"
15303     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
15304     flags_opt_yes="-xO2"
15305     flags_opt_off=""
15306   else
15307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15309   fi
15310
15311
15312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
15313 $as_echo_n "checking if compiler is Tiny C... " >&6; }
15314
15315       if test -z "$SED"; then
15316     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15317   fi
15318   if test -z "$GREP"; then
15319     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15320   fi
15321
15322   tmp_exp=""
15323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h.  */
15325
15326
15327 #ifdef __TINYC__
15328 CURL_DEF_TOKEN __TINYC__
15329 #endif
15330
15331
15332 _ACEOF
15333 if ac_fn_c_try_cpp "$LINENO"; then :
15334
15335     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15336       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15337       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15338       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15339     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
15340       tmp_exp=""
15341     fi
15342
15343 fi
15344 rm -f conftest.err conftest.i conftest.$ac_ext
15345   if test -z "$tmp_exp"; then
15346     curl_cv_have_def___TINYC__=no
15347
15348   else
15349     curl_cv_have_def___TINYC__=yes
15350     curl_cv_def___TINYC__=$tmp_exp
15351
15352   fi
15353
15354   if test "$curl_cv_have_def___TINYC__" = "yes"; then
15355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 $as_echo "yes" >&6; }
15357     compiler_id="TINY_C"
15358     flags_dbg_all="-g -b"
15359     flags_dbg_yes="-g"
15360     flags_dbg_off=""
15361     flags_opt_all=""
15362     flags_opt_yes=""
15363     flags_opt_off=""
15364   else
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367   fi
15368
15369
15370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
15371 $as_echo_n "checking if compiler is Watcom C... " >&6; }
15372
15373       if test -z "$SED"; then
15374     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15375   fi
15376   if test -z "$GREP"; then
15377     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15378   fi
15379
15380   tmp_exp=""
15381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h.  */
15383
15384
15385 #ifdef __WATCOMC__
15386 CURL_DEF_TOKEN __WATCOMC__
15387 #endif
15388
15389
15390 _ACEOF
15391 if ac_fn_c_try_cpp "$LINENO"; then :
15392
15393     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15394       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15395       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15396       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15397     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
15398       tmp_exp=""
15399     fi
15400
15401 fi
15402 rm -f conftest.err conftest.i conftest.$ac_ext
15403   if test -z "$tmp_exp"; then
15404     curl_cv_have_def___WATCOMC__=no
15405
15406   else
15407     curl_cv_have_def___WATCOMC__=yes
15408     curl_cv_def___WATCOMC__=$tmp_exp
15409
15410   fi
15411
15412   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
15413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414 $as_echo "yes" >&6; }
15415
15416       if test -z "$SED"; then
15417     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15418   fi
15419   if test -z "$GREP"; then
15420     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15421   fi
15422
15423   tmp_exp=""
15424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h.  */
15426
15427
15428 #ifdef __UNIX__
15429 CURL_DEF_TOKEN __UNIX__
15430 #endif
15431
15432
15433 _ACEOF
15434 if ac_fn_c_try_cpp "$LINENO"; then :
15435
15436     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15437       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15438       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15439       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15440     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
15441       tmp_exp=""
15442     fi
15443
15444 fi
15445 rm -f conftest.err conftest.i conftest.$ac_ext
15446   if test -z "$tmp_exp"; then
15447     curl_cv_have_def___UNIX__=no
15448
15449   else
15450     curl_cv_have_def___UNIX__=yes
15451     curl_cv_def___UNIX__=$tmp_exp
15452
15453   fi
15454
15455     if test "$curl_cv_have_def___UNIX__" = "yes"; then
15456       compiler_id="WATCOM_UNIX_C"
15457       flags_dbg_all="-g1 -g1+ -g2 -g3"
15458       flags_dbg_yes="-g2"
15459       flags_dbg_off=""
15460       flags_opt_all="-O0 -O1 -O2 -O3"
15461       flags_opt_yes="-O2"
15462       flags_opt_off="-O0"
15463     else
15464       compiler_id="WATCOM_WINDOWS_C"
15465       flags_dbg_all=""
15466       flags_dbg_yes=""
15467       flags_dbg_off=""
15468       flags_opt_all=""
15469       flags_opt_yes=""
15470       flags_opt_off=""
15471     fi
15472   else
15473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15475   fi
15476
15477   #
15478   if test "$compiler_id" = "unknown"; then
15479   cat <<_EOF 1>&2
15480 ***
15481 *** Warning: This configure script does not have information about the
15482 *** compiler you are using, relative to the flags required to enable or
15483 *** disable generation of debug info, optimization options or warnings.
15484 ***
15485 *** Whatever settings are present in CFLAGS will be used for this run.
15486 ***
15487 *** If you wish to help the c-ares project to better support your compiler
15488 *** you can report this and the required info on the c-ares development
15489 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
15490 ***
15491 _EOF
15492   fi
15493
15494
15495 squeeze() {
15496   _sqz_result=""
15497   eval _sqz_input=\$$1
15498   for _sqz_token in $_sqz_input; do
15499     if test -z "$_sqz_result"; then
15500       _sqz_result="$_sqz_token"
15501     else
15502       _sqz_result="$_sqz_result $_sqz_token"
15503     fi
15504   done
15505   eval $1=\$_sqz_result
15506   return 0
15507 }
15508
15509
15510       #
15511   if test "$compiler_id" != "unknown"; then
15512     #
15513     if test "$compiler_id" = "GNU_C" ||
15514       test "$compiler_id" = "CLANG"; then
15515
15516       if test "$compiler_id" = "GNU_C" ||
15517     test "$compiler_id" = "CLANG"; then
15518     tmp_has_include="no"
15519     tmp_chg_FLAGS="$CFLAGS"
15520     for word1 in $tmp_chg_FLAGS; do
15521       case "$word1" in
15522         -I*)
15523           tmp_has_include="yes"
15524           ;;
15525       esac
15526     done
15527     if test "$tmp_has_include" = "yes"; then
15528       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15529       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15530       CFLAGS="$tmp_chg_FLAGS"
15531       squeeze CFLAGS
15532     fi
15533     tmp_has_include="no"
15534     tmp_chg_FLAGS="$CPPFLAGS"
15535     for word1 in $tmp_chg_FLAGS; do
15536       case "$word1" in
15537         -I*)
15538           tmp_has_include="yes"
15539           ;;
15540       esac
15541     done
15542     if test "$tmp_has_include" = "yes"; then
15543       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15544       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15545       CPPFLAGS="$tmp_chg_FLAGS"
15546       squeeze CPPFLAGS
15547     fi
15548   fi
15549
15550     fi
15551     #
15552     tmp_save_CPPFLAGS="$CPPFLAGS"
15553     tmp_save_CFLAGS="$CFLAGS"
15554     tmp_CPPFLAGS=""
15555     tmp_CFLAGS=""
15556     #
15557     case "$compiler_id" in
15558         #
15559       CLANG)
15560         #
15561                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
15562         ;;
15563         #
15564       DEC_C)
15565         #
15566                 tmp_CFLAGS="$tmp_CFLAGS -std1"
15567                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
15568                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
15569                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
15570         ;;
15571         #
15572       GNU_C)
15573         #
15574                 tmp_CFLAGS="$tmp_CFLAGS"
15575         ;;
15576         #
15577       HP_UX_C)
15578         #
15579                 tmp_CFLAGS="$tmp_CFLAGS -z"
15580                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
15581         ;;
15582         #
15583       IBM_C)
15584         #
15585                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
15586                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
15587                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
15588         ;;
15589         #
15590       INTEL_UNIX_C)
15591         #
15592                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
15593                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
15594                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
15595         ;;
15596         #
15597       INTEL_WINDOWS_C)
15598         #
15599                 tmp_CFLAGS="$tmp_CFLAGS"
15600         ;;
15601         #
15602       LCC)
15603         #
15604                 tmp_CFLAGS="$tmp_CFLAGS -n"
15605         ;;
15606         #
15607       SGI_MIPS_C)
15608         #
15609                 tmp_CFLAGS="$tmp_CFLAGS"
15610         ;;
15611         #
15612       SGI_MIPSPRO_C)
15613         #
15614                 tmp_CFLAGS="$tmp_CFLAGS"
15615         ;;
15616         #
15617       SUNPRO_C)
15618         #
15619                 tmp_CFLAGS="$tmp_CFLAGS"
15620         ;;
15621         #
15622       TINY_C)
15623         #
15624                 tmp_CFLAGS="$tmp_CFLAGS"
15625         ;;
15626         #
15627       WATCOM_UNIX_C)
15628         #
15629                 tmp_CFLAGS="$tmp_CFLAGS"
15630         ;;
15631         #
15632       WATCOM_WINDOWS_C)
15633         #
15634                 tmp_CFLAGS="$tmp_CFLAGS"
15635         ;;
15636         #
15637     esac
15638     #
15639     squeeze tmp_CPPFLAGS
15640     squeeze tmp_CFLAGS
15641     #
15642     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
15643       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
15644 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
15645       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
15646       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15647       squeeze CPPFLAGS
15648       squeeze CFLAGS
15649
15650     tmp_compiler_works="unknown"
15651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h.  */
15653
15654
15655
15656 int main (void)
15657 {
15658
15659       int i = 1;
15660       return i;
15661
15662  ;
15663  return 0;
15664 }
15665
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668
15669     tmp_compiler_works="yes"
15670
15671 else
15672
15673     tmp_compiler_works="no"
15674     echo " " >&6
15675     sed 's/^/cc-fail: /' conftest.err >&6
15676     echo " " >&6
15677
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680     if test "$tmp_compiler_works" = "yes"; then
15681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h.  */
15683
15684
15685
15686 int main (void)
15687 {
15688
15689         int i = 1;
15690         return i;
15691
15692  ;
15693  return 0;
15694 }
15695
15696 _ACEOF
15697 if ac_fn_c_try_link "$LINENO"; then :
15698
15699       tmp_compiler_works="yes"
15700
15701 else
15702
15703       tmp_compiler_works="no"
15704       echo " " >&6
15705       sed 's/^/link-fail: /' conftest.err >&6
15706       echo " " >&6
15707
15708 fi
15709 rm -f core conftest.err conftest.$ac_objext \
15710     conftest$ac_exeext conftest.$ac_ext
15711   fi
15712     if test "x$cross_compiling" != "xyes" &&
15713     test "$tmp_compiler_works" = "yes"; then
15714     if test "$cross_compiling" = yes; then :
15715   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15717 as_fn_error $? "cannot run test program while cross compiling
15718 See \`config.log' for more details" "$LINENO" 5; }
15719 else
15720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h.  */
15722
15723
15724 #       ifdef __STDC__
15725 #         include <stdlib.h>
15726 #       endif
15727
15728 int main (void)
15729 {
15730
15731         int i = 0;
15732         exit(i);
15733
15734  ;
15735  return 0;
15736 }
15737
15738 _ACEOF
15739 if ac_fn_c_try_run "$LINENO"; then :
15740
15741       tmp_compiler_works="yes"
15742
15743 else
15744
15745       tmp_compiler_works="no"
15746       echo " " >&6
15747       echo "run-fail: test program exited with status $ac_status" >&6
15748       echo " " >&6
15749
15750 fi
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752   conftest.$ac_objext conftest.beam conftest.$ac_ext
15753 fi
15754
15755   fi
15756     if test "$tmp_compiler_works" = "yes"; then
15757
15758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15759 $as_echo "yes" >&6; }
15760         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15761 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15762
15763   else
15764
15765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15768 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15769                 CPPFLAGS="$tmp_save_CPPFLAGS"
15770         CFLAGS="$tmp_save_CFLAGS"
15771
15772   fi
15773
15774     fi
15775     #
15776   fi
15777
15778
15779         #
15780   if test "$compiler_id" != "unknown"; then
15781     #
15782     tmp_save_CFLAGS="$CFLAGS"
15783     tmp_save_CPPFLAGS="$CPPFLAGS"
15784     #
15785     tmp_options=""
15786     tmp_CFLAGS="$CFLAGS"
15787     tmp_CPPFLAGS="$CPPFLAGS"
15788
15789     ac_var_stripped=""
15790   for word1 in $tmp_CFLAGS; do
15791     ac_var_strip_word="no"
15792     for word2 in $flags_dbg_all; do
15793       if test "$word1" = "$word2"; then
15794         ac_var_strip_word="yes"
15795       fi
15796     done
15797     if test "$ac_var_strip_word" = "no"; then
15798       ac_var_stripped="$ac_var_stripped $word1"
15799     fi
15800   done
15801     tmp_CFLAGS="$ac_var_stripped"
15802   squeeze tmp_CFLAGS
15803
15804
15805     ac_var_stripped=""
15806   for word1 in $tmp_CPPFLAGS; do
15807     ac_var_strip_word="no"
15808     for word2 in $flags_dbg_all; do
15809       if test "$word1" = "$word2"; then
15810         ac_var_strip_word="yes"
15811       fi
15812     done
15813     if test "$ac_var_strip_word" = "no"; then
15814       ac_var_stripped="$ac_var_stripped $word1"
15815     fi
15816   done
15817     tmp_CPPFLAGS="$ac_var_stripped"
15818   squeeze tmp_CPPFLAGS
15819
15820     #
15821     if test "$want_debug" = "yes"; then
15822       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
15823 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
15824       tmp_options="$flags_dbg_yes"
15825     fi
15826     if test "$want_debug" = "no"; then
15827       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
15828 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
15829       tmp_options="$flags_dbg_off"
15830     fi
15831     #
15832     if test "$flags_prefer_cppflags" = "yes"; then
15833       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
15834       CFLAGS="$tmp_CFLAGS"
15835     else
15836       CPPFLAGS="$tmp_CPPFLAGS"
15837       CFLAGS="$tmp_CFLAGS $tmp_options"
15838     fi
15839     squeeze CPPFLAGS
15840     squeeze CFLAGS
15841
15842     tmp_compiler_works="unknown"
15843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h.  */
15845
15846
15847
15848 int main (void)
15849 {
15850
15851       int i = 1;
15852       return i;
15853
15854  ;
15855  return 0;
15856 }
15857
15858 _ACEOF
15859 if ac_fn_c_try_compile "$LINENO"; then :
15860
15861     tmp_compiler_works="yes"
15862
15863 else
15864
15865     tmp_compiler_works="no"
15866     echo " " >&6
15867     sed 's/^/cc-fail: /' conftest.err >&6
15868     echo " " >&6
15869
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872     if test "$tmp_compiler_works" = "yes"; then
15873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h.  */
15875
15876
15877
15878 int main (void)
15879 {
15880
15881         int i = 1;
15882         return i;
15883
15884  ;
15885  return 0;
15886 }
15887
15888 _ACEOF
15889 if ac_fn_c_try_link "$LINENO"; then :
15890
15891       tmp_compiler_works="yes"
15892
15893 else
15894
15895       tmp_compiler_works="no"
15896       echo " " >&6
15897       sed 's/^/link-fail: /' conftest.err >&6
15898       echo " " >&6
15899
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext \
15902     conftest$ac_exeext conftest.$ac_ext
15903   fi
15904     if test "x$cross_compiling" != "xyes" &&
15905     test "$tmp_compiler_works" = "yes"; then
15906     if test "$cross_compiling" = yes; then :
15907   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15909 as_fn_error $? "cannot run test program while cross compiling
15910 See \`config.log' for more details" "$LINENO" 5; }
15911 else
15912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h.  */
15914
15915
15916 #       ifdef __STDC__
15917 #         include <stdlib.h>
15918 #       endif
15919
15920 int main (void)
15921 {
15922
15923         int i = 0;
15924         exit(i);
15925
15926  ;
15927  return 0;
15928 }
15929
15930 _ACEOF
15931 if ac_fn_c_try_run "$LINENO"; then :
15932
15933       tmp_compiler_works="yes"
15934
15935 else
15936
15937       tmp_compiler_works="no"
15938       echo " " >&6
15939       echo "run-fail: test program exited with status $ac_status" >&6
15940       echo " " >&6
15941
15942 fi
15943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15944   conftest.$ac_objext conftest.beam conftest.$ac_ext
15945 fi
15946
15947   fi
15948     if test "$tmp_compiler_works" = "yes"; then
15949
15950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951 $as_echo "yes" >&6; }
15952       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15953 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15954
15955   else
15956
15957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15959       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15960 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15961             CPPFLAGS="$tmp_save_CPPFLAGS"
15962       CFLAGS="$tmp_save_CFLAGS"
15963
15964   fi
15965
15966     #
15967   fi
15968
15969
15970         #
15971   if test "$compiler_id" != "unknown"; then
15972     #
15973     tmp_save_CFLAGS="$CFLAGS"
15974     tmp_save_CPPFLAGS="$CPPFLAGS"
15975     #
15976     tmp_options=""
15977     tmp_CFLAGS="$CFLAGS"
15978     tmp_CPPFLAGS="$CPPFLAGS"
15979     honor_optimize_option="yes"
15980     #
15981                         #
15982     if test "$want_optimize" = "assume_no" ||
15983        test "$want_optimize" = "assume_yes"; then
15984       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
15985 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
15986
15987
15988   ac_var_match_word="no"
15989   for word1 in $tmp_CFLAGS; do
15990     for word2 in $flags_opt_all; do
15991       if test "$word1" = "$word2"; then
15992         ac_var_match_word="yes"
15993       fi
15994     done
15995   done
15996
15997   if test "$ac_var_match_word" = "yes"; then
15998
15999         honor_optimize_option="no"
16000
16001
16002   fi
16003
16004
16005
16006   ac_var_match_word="no"
16007   for word1 in $tmp_CPPFLAGS; do
16008     for word2 in $flags_opt_all; do
16009       if test "$word1" = "$word2"; then
16010         ac_var_match_word="yes"
16011       fi
16012     done
16013   done
16014
16015   if test "$ac_var_match_word" = "yes"; then
16016
16017         honor_optimize_option="no"
16018
16019
16020   fi
16021
16022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
16023 $as_echo "$honor_optimize_option" >&6; }
16024       if test "$honor_optimize_option" = "yes"; then
16025         if test "$want_optimize" = "assume_yes"; then
16026           want_optimize="yes"
16027         fi
16028         if test "$want_optimize" = "assume_no"; then
16029           want_optimize="no"
16030         fi
16031       fi
16032     fi
16033     #
16034     if test "$honor_optimize_option" = "yes"; then
16035
16036     ac_var_stripped=""
16037   for word1 in $tmp_CFLAGS; do
16038     ac_var_strip_word="no"
16039     for word2 in $flags_opt_all; do
16040       if test "$word1" = "$word2"; then
16041         ac_var_strip_word="yes"
16042       fi
16043     done
16044     if test "$ac_var_strip_word" = "no"; then
16045       ac_var_stripped="$ac_var_stripped $word1"
16046     fi
16047   done
16048     tmp_CFLAGS="$ac_var_stripped"
16049   squeeze tmp_CFLAGS
16050
16051
16052     ac_var_stripped=""
16053   for word1 in $tmp_CPPFLAGS; do
16054     ac_var_strip_word="no"
16055     for word2 in $flags_opt_all; do
16056       if test "$word1" = "$word2"; then
16057         ac_var_strip_word="yes"
16058       fi
16059     done
16060     if test "$ac_var_strip_word" = "no"; then
16061       ac_var_stripped="$ac_var_stripped $word1"
16062     fi
16063   done
16064     tmp_CPPFLAGS="$ac_var_stripped"
16065   squeeze tmp_CPPFLAGS
16066
16067       if test "$want_optimize" = "yes"; then
16068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
16069 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
16070         tmp_options="$flags_opt_yes"
16071       fi
16072       if test "$want_optimize" = "no"; then
16073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
16074 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
16075         tmp_options="$flags_opt_off"
16076       fi
16077       if test "$flags_prefer_cppflags" = "yes"; then
16078         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16079         CFLAGS="$tmp_CFLAGS"
16080       else
16081         CPPFLAGS="$tmp_CPPFLAGS"
16082         CFLAGS="$tmp_CFLAGS $tmp_options"
16083       fi
16084       squeeze CPPFLAGS
16085       squeeze CFLAGS
16086
16087     tmp_compiler_works="unknown"
16088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h.  */
16090
16091
16092
16093 int main (void)
16094 {
16095
16096       int i = 1;
16097       return i;
16098
16099  ;
16100  return 0;
16101 }
16102
16103 _ACEOF
16104 if ac_fn_c_try_compile "$LINENO"; then :
16105
16106     tmp_compiler_works="yes"
16107
16108 else
16109
16110     tmp_compiler_works="no"
16111     echo " " >&6
16112     sed 's/^/cc-fail: /' conftest.err >&6
16113     echo " " >&6
16114
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117     if test "$tmp_compiler_works" = "yes"; then
16118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h.  */
16120
16121
16122
16123 int main (void)
16124 {
16125
16126         int i = 1;
16127         return i;
16128
16129  ;
16130  return 0;
16131 }
16132
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135
16136       tmp_compiler_works="yes"
16137
16138 else
16139
16140       tmp_compiler_works="no"
16141       echo " " >&6
16142       sed 's/^/link-fail: /' conftest.err >&6
16143       echo " " >&6
16144
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext \
16147     conftest$ac_exeext conftest.$ac_ext
16148   fi
16149     if test "x$cross_compiling" != "xyes" &&
16150     test "$tmp_compiler_works" = "yes"; then
16151     if test "$cross_compiling" = yes; then :
16152   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16154 as_fn_error $? "cannot run test program while cross compiling
16155 See \`config.log' for more details" "$LINENO" 5; }
16156 else
16157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159
16160
16161 #       ifdef __STDC__
16162 #         include <stdlib.h>
16163 #       endif
16164
16165 int main (void)
16166 {
16167
16168         int i = 0;
16169         exit(i);
16170
16171  ;
16172  return 0;
16173 }
16174
16175 _ACEOF
16176 if ac_fn_c_try_run "$LINENO"; then :
16177
16178       tmp_compiler_works="yes"
16179
16180 else
16181
16182       tmp_compiler_works="no"
16183       echo " " >&6
16184       echo "run-fail: test program exited with status $ac_status" >&6
16185       echo " " >&6
16186
16187 fi
16188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16189   conftest.$ac_objext conftest.beam conftest.$ac_ext
16190 fi
16191
16192   fi
16193     if test "$tmp_compiler_works" = "yes"; then
16194
16195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16196 $as_echo "yes" >&6; }
16197         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
16198 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
16199
16200   else
16201
16202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
16205 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
16206                 CPPFLAGS="$tmp_save_CPPFLAGS"
16207         CFLAGS="$tmp_save_CFLAGS"
16208
16209   fi
16210
16211     fi
16212     #
16213   fi
16214
16215
16216         #
16217   if test "$compiler_id" != "unknown"; then
16218     #
16219     tmp_save_CPPFLAGS="$CPPFLAGS"
16220     tmp_save_CFLAGS="$CFLAGS"
16221     tmp_CPPFLAGS=""
16222     tmp_CFLAGS=""
16223     #
16224     case "$compiler_id" in
16225         #
16226       CLANG)
16227         #
16228         if test "$want_warnings" = "yes"; then
16229           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
16230           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
16231           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
16232           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
16233           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
16234           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
16235           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
16236           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
16237           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
16238           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
16239           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
16240           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
16241           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
16242           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
16243           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
16244           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
16245           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
16246           #
16247                     if test "$compiler_num" -ge "101"; then
16248             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
16249           fi
16250         fi
16251         ;;
16252         #
16253       DEC_C)
16254         #
16255         if test "$want_warnings" = "yes"; then
16256                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
16257         fi
16258         ;;
16259         #
16260       GNU_C)
16261         #
16262         if test "$want_warnings" = "yes"; then
16263           #
16264                               if test "x$cross_compiling" != "xyes" ||
16265             test "$compiler_num" -ge "300"; then
16266             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
16267           fi
16268           #
16269                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
16270           #
16271                     if test "$compiler_num" -ge "104"; then
16272             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
16273                         if test "x$cross_compiling" != "xyes" ||
16274               test "$compiler_num" -ge "300"; then
16275               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
16276             fi
16277           fi
16278           #
16279                     if test "$compiler_num" -ge "207"; then
16280             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
16281                         if test "x$cross_compiling" != "xyes" ||
16282               test "$compiler_num" -ge "300"; then
16283               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
16284               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
16285             fi
16286           fi
16287           #
16288                     if test "$compiler_num" -ge "295"; then
16289             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
16290           fi
16291           #
16292                     if test "$compiler_num" -ge "296"; then
16293             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
16294             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
16295                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
16296           fi
16297           #
16298                     if test "$compiler_num" -ge "297"; then
16299             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
16300           fi
16301           #
16302                     if test "$compiler_num" -ge "300"; then
16303                                                             tmp_CFLAGS="$tmp_CFLAGS"
16304           fi
16305           #
16306                     if test "$compiler_num" -ge "303"; then
16307             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
16308           fi
16309           #
16310                     if test "$compiler_num" -ge "304"; then
16311             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
16312           fi
16313           #
16314                     if test "$compiler_num" -ge "400"; then
16315             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
16316           fi
16317           #
16318                     if test "$compiler_num" -ge "402"; then
16319             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
16320           fi
16321           #
16322                     if test "$compiler_num" -ge "403"; then
16323             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
16324             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
16325             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
16326             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
16327           fi
16328           #
16329                     if test "$compiler_num" -ge "405"; then
16330                         if test "$curl_cv_have_def__WIN32" = "yes"; then
16331               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
16332             fi
16333           fi
16334           #
16335         fi
16336         #
16337                 if test "$compiler_num" -ge "300"; then
16338           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
16339         else
16340                               if test "x$cross_compiling" = "xyes"; then
16341             if test "$compiler_num" -ge "104"; then
16342                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
16343             fi
16344             if test "$compiler_num" -ge "207"; then
16345                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
16346               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
16347             fi
16348           fi
16349         fi
16350         ;;
16351         #
16352       HP_UX_C)
16353         #
16354         if test "$want_warnings" = "yes"; then
16355                     tmp_CFLAGS="$tmp_CFLAGS +w1"
16356         fi
16357         ;;
16358         #
16359       IBM_C)
16360         #
16361                 tmp_CFLAGS="$tmp_CFLAGS"
16362         ;;
16363         #
16364       INTEL_UNIX_C)
16365         #
16366         if test "$want_warnings" = "yes"; then
16367           if test "$compiler_num" -gt "600"; then
16368                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
16369                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
16370                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
16371                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
16372                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
16373                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
16374                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
16375                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
16376                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
16377                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
16378                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
16379           fi
16380         fi
16381                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
16382                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
16383                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
16384                 if test "$compiler_num" -ge "1000"; then
16385                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
16386         fi
16387         ;;
16388         #
16389       INTEL_WINDOWS_C)
16390         #
16391                 tmp_CFLAGS="$tmp_CFLAGS"
16392         ;;
16393         #
16394       LCC)
16395         #
16396         if test "$want_warnings" = "yes"; then
16397                                                   tmp_CFLAGS="$tmp_CFLAGS"
16398         fi
16399         ;;
16400         #
16401       SGI_MIPS_C)
16402         #
16403         if test "$want_warnings" = "yes"; then
16404                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
16405         fi
16406         ;;
16407         #
16408       SGI_MIPSPRO_C)
16409         #
16410         if test "$want_warnings" = "yes"; then
16411                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
16412                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
16413         fi
16414         ;;
16415         #
16416       SUNPRO_C)
16417         #
16418         if test "$want_warnings" = "yes"; then
16419                     tmp_CFLAGS="$tmp_CFLAGS -v"
16420         fi
16421         ;;
16422         #
16423       TINY_C)
16424         #
16425         if test "$want_warnings" = "yes"; then
16426                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
16427                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
16428                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
16429         fi
16430         ;;
16431         #
16432       WATCOM_UNIX_C)
16433         #
16434         if test "$want_warnings" = "yes"; then
16435                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
16436         fi
16437         ;;
16438         #
16439       WATCOM_WINDOWS_C)
16440         #
16441                 tmp_CFLAGS="$tmp_CFLAGS"
16442         ;;
16443         #
16444     esac
16445     #
16446     squeeze tmp_CPPFLAGS
16447     squeeze tmp_CFLAGS
16448     #
16449     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
16451 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
16452       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16453       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16454       squeeze CPPFLAGS
16455       squeeze CFLAGS
16456
16457     tmp_compiler_works="unknown"
16458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h.  */
16460
16461
16462
16463 int main (void)
16464 {
16465
16466       int i = 1;
16467       return i;
16468
16469  ;
16470  return 0;
16471 }
16472
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475
16476     tmp_compiler_works="yes"
16477
16478 else
16479
16480     tmp_compiler_works="no"
16481     echo " " >&6
16482     sed 's/^/cc-fail: /' conftest.err >&6
16483     echo " " >&6
16484
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487     if test "$tmp_compiler_works" = "yes"; then
16488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h.  */
16490
16491
16492
16493 int main (void)
16494 {
16495
16496         int i = 1;
16497         return i;
16498
16499  ;
16500  return 0;
16501 }
16502
16503 _ACEOF
16504 if ac_fn_c_try_link "$LINENO"; then :
16505
16506       tmp_compiler_works="yes"
16507
16508 else
16509
16510       tmp_compiler_works="no"
16511       echo " " >&6
16512       sed 's/^/link-fail: /' conftest.err >&6
16513       echo " " >&6
16514
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext \
16517     conftest$ac_exeext conftest.$ac_ext
16518   fi
16519     if test "x$cross_compiling" != "xyes" &&
16520     test "$tmp_compiler_works" = "yes"; then
16521     if test "$cross_compiling" = yes; then :
16522   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16524 as_fn_error $? "cannot run test program while cross compiling
16525 See \`config.log' for more details" "$LINENO" 5; }
16526 else
16527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h.  */
16529
16530
16531 #       ifdef __STDC__
16532 #         include <stdlib.h>
16533 #       endif
16534
16535 int main (void)
16536 {
16537
16538         int i = 0;
16539         exit(i);
16540
16541  ;
16542  return 0;
16543 }
16544
16545 _ACEOF
16546 if ac_fn_c_try_run "$LINENO"; then :
16547
16548       tmp_compiler_works="yes"
16549
16550 else
16551
16552       tmp_compiler_works="no"
16553       echo " " >&6
16554       echo "run-fail: test program exited with status $ac_status" >&6
16555       echo " " >&6
16556
16557 fi
16558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16559   conftest.$ac_objext conftest.beam conftest.$ac_ext
16560 fi
16561
16562   fi
16563     if test "$tmp_compiler_works" = "yes"; then
16564
16565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16567         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16568 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16569
16570   else
16571
16572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16575 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16576                 CPPFLAGS="$tmp_save_CPPFLAGS"
16577         CFLAGS="$tmp_save_CFLAGS"
16578
16579   fi
16580
16581     fi
16582     #
16583   fi
16584
16585
16586 if test "$compiler_id" = "INTEL_UNIX_C"; then
16587   #
16588   if test "$compiler_num" -ge "1000"; then
16589         CFLAGS="$CFLAGS -shared-intel"
16590   elif test "$compiler_num" -ge "900"; then
16591         CFLAGS="$CFLAGS -i-dynamic"
16592   fi
16593   #
16594 fi
16595
16596
16597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
16598 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
16599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h.  */
16601
16602
16603
16604 int main (void)
16605 {
16606
16607       force compilation error
16608
16609  ;
16610  return 0;
16611 }
16612
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615
16616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617 $as_echo "no" >&6; }
16618     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
16619
16620 else
16621
16622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623 $as_echo "yes" >&6; }
16624
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627
16628
16629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
16630 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
16631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633
16634
16635       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
16636
16637 int main (void)
16638 {
16639
16640       bad_t dummy;
16641
16642  ;
16643  return 0;
16644 }
16645
16646 _ACEOF
16647 if ac_fn_c_try_compile "$LINENO"; then :
16648
16649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
16652
16653 else
16654
16655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656 $as_echo "yes" >&6; }
16657
16658 fi
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660
16661
16662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
16663 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
16664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h.  */
16666
16667
16668 #     include <stdlib.h>
16669       int rand(int n);
16670       int rand(int n)
16671       {
16672         if(n)
16673           return ++n;
16674         else
16675           return n;
16676       }
16677
16678 int main (void)
16679 {
16680
16681       int i[2];
16682       int j = rand(i[0]);
16683       if(j)
16684         return j;
16685
16686  ;
16687  return 0;
16688 }
16689
16690 _ACEOF
16691 if ac_fn_c_try_compile "$LINENO"; then :
16692
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
16696
16697 else
16698
16699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16701
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704
16705
16706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
16707 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
16708   supports_symbol_hiding="no"
16709   symbol_hiding_CFLAGS=""
16710   symbol_hiding_EXTERN=""
16711   tmp_CFLAGS=""
16712   tmp_EXTERN=""
16713   case "$compiler_id" in
16714     CLANG)
16715             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16716       tmp_CFLAGS="-fvisibility=hidden"
16717       supports_symbol_hiding="yes"
16718       ;;
16719     GNU_C)
16720             if test "$compiler_num" -ge "304"; then
16721         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
16722           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16723           tmp_CFLAGS="-fvisibility=hidden"
16724           supports_symbol_hiding="yes"
16725         fi
16726       fi
16727       ;;
16728     INTEL_UNIX_C)
16729             if test "$compiler_num" -ge "900"; then
16730         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
16731           tmp_save_CFLAGS="$CFLAGS"
16732           CFLAGS="$CFLAGS -fvisibility=hidden"
16733           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735
16736
16737 #             include <stdio.h>
16738
16739 int main (void)
16740 {
16741
16742               printf("icc fvisibility bug test");
16743
16744  ;
16745  return 0;
16746 }
16747
16748 _ACEOF
16749 if ac_fn_c_try_link "$LINENO"; then :
16750
16751             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
16752             tmp_CFLAGS="-fvisibility=hidden"
16753             supports_symbol_hiding="yes"
16754
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext \
16757     conftest$ac_exeext conftest.$ac_ext
16758           CFLAGS="$tmp_save_CFLAGS"
16759         fi
16760       fi
16761       ;;
16762     SUNPRO_C)
16763       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
16764         tmp_EXTERN="__global"
16765         tmp_CFLAGS="-xldscope=hidden"
16766         supports_symbol_hiding="yes"
16767       fi
16768       ;;
16769   esac
16770   if test "$supports_symbol_hiding" = "yes"; then
16771     tmp_save_CFLAGS="$CFLAGS"
16772     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16773     squeeze CFLAGS
16774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h.  */
16776
16777
16778         $tmp_EXTERN char *dummy(char *buff);
16779         char *dummy(char *buff)
16780         {
16781          if(buff)
16782            return ++buff;
16783          else
16784            return buff;
16785         }
16786
16787 int main (void)
16788 {
16789
16790         char b[16];
16791         char *r = dummy(&b[0]);
16792         if(r)
16793           return (int)*r;
16794
16795  ;
16796  return 0;
16797 }
16798
16799 _ACEOF
16800 if ac_fn_c_try_compile "$LINENO"; then :
16801
16802       supports_symbol_hiding="yes"
16803       if test -f conftest.err; then
16804         grep 'visibility' conftest.err >/dev/null
16805         if test "$?" -eq "0"; then
16806           supports_symbol_hiding="no"
16807         fi
16808       fi
16809
16810 else
16811
16812       supports_symbol_hiding="no"
16813       echo " " >&6
16814       sed 's/^/cc-src: /' conftest.$ac_ext >&6
16815       sed 's/^/cc-err: /' conftest.err >&6
16816       echo " " >&6
16817
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820     CFLAGS="$tmp_save_CFLAGS"
16821   fi
16822   if test "$supports_symbol_hiding" = "yes"; then
16823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16825     symbol_hiding_CFLAGS="$tmp_CFLAGS"
16826     symbol_hiding_EXTERN="$tmp_EXTERN"
16827   else
16828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16830   fi
16831
16832
16833
16834       cares_builddir=`pwd`
16835   supports_curldebug="unknown"
16836   if test "$want_curldebug" = "yes"; then
16837     if test "x$enable_shared" != "xno" &&
16838       test "x$enable_shared" != "xyes"; then
16839       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
16840 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
16841       supports_curldebug="no"
16842     fi
16843     if test "x$enable_static" != "xno" &&
16844       test "x$enable_static" != "xyes"; then
16845       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
16846 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
16847       supports_curldebug="no"
16848     fi
16849     if test "$supports_curldebug" != "no"; then
16850       if test "$enable_shared" = "yes" &&
16851         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16852         supports_curldebug="no"
16853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
16854 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
16855       fi
16856       if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
16857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
16858 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
16859         supports_curldebug="no"
16860       elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
16861         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
16862 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
16863         supports_curldebug="no"
16864       elif test ! -f "$cares_builddir/../libcurl.pc" ||
16865         test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
16866         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
16867 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
16868         supports_curldebug="no"
16869       elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
16870         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
16871 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
16872         supports_curldebug="no"
16873       elif test ! -f "$cares_builddir/../config.status"; then
16874         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
16875 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
16876         supports_curldebug="no"
16877       fi
16878       if test "$supports_curldebug" != "no"; then
16879         grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
16880         if test "$?" -ne "0"; then
16881           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
16882 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
16883           supports_curldebug="no"
16884         fi
16885       fi
16886       if test "$supports_curldebug" != "no"; then
16887         grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
16888         if test "$?" -ne "0"; then
16889           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
16890 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
16891           supports_curldebug="no"
16892         fi
16893       fi
16894     fi
16895   fi
16896   #
16897   if test "$want_curldebug" = "yes"; then
16898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
16899 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
16900     test "$supports_curldebug" = "no" || supports_curldebug="yes"
16901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
16902 $as_echo "$supports_curldebug" >&6; }
16903     if test "$supports_curldebug" = "no"; then
16904       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
16905 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
16906       want_curldebug="no"
16907     fi
16908   fi
16909   #
16910   if test "$want_curldebug" = "yes"; then
16911
16912 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
16913
16914     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
16915     squeeze CPPFLAGS
16916   fi
16917   #
16918   if test "$want_debug" = "yes"; then
16919     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
16920     squeeze CPPFLAGS
16921   fi
16922
16923  if test x$want_curldebug = xyes; then
16924   CURLDEBUG_TRUE=
16925   CURLDEBUG_FALSE='#'
16926 else
16927   CURLDEBUG_TRUE='#'
16928   CURLDEBUG_FALSE=
16929 fi
16930
16931
16932
16933
16934
16935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
16936 $as_echo_n "checking for windows.h... " >&6; }
16937 if ${ac_cv_header_windows_h+:} false; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940
16941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h.  */
16943
16944
16945 #undef inline
16946 #ifndef WIN32_LEAN_AND_MEAN
16947 #define WIN32_LEAN_AND_MEAN
16948 #endif
16949 #include <windows.h>
16950
16951 int main (void)
16952 {
16953
16954 #if defined(__CYGWIN__) || defined(__CEGCC__)
16955         HAVE_WINDOWS_H shall not be defined.
16956 #else
16957         int dummy=2*WINVER;
16958 #endif
16959
16960  ;
16961  return 0;
16962 }
16963
16964 _ACEOF
16965 if ac_fn_c_try_compile "$LINENO"; then :
16966
16967       ac_cv_header_windows_h="yes"
16968
16969 else
16970
16971       ac_cv_header_windows_h="no"
16972
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975
16976 fi
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16978 $as_echo "$ac_cv_header_windows_h" >&6; }
16979   case "$ac_cv_header_windows_h" in
16980     yes)
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_WINDOWS_H 1
16984 _ACEOF
16985
16986
16987 cat >>confdefs.h <<_ACEOF
16988 #define WIN32_LEAN_AND_MEAN 1
16989 _ACEOF
16990
16991       ;;
16992   esac
16993
16994
16995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
16996 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
16997 if ${ac_cv_native_windows+:} false; then :
16998   $as_echo_n "(cached) " >&6
16999 else
17000
17001     if test "$ac_cv_header_windows_h" = "no"; then
17002       ac_cv_native_windows="no"
17003     else
17004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h.  */
17006
17007
17008
17009 int main (void)
17010 {
17011
17012 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
17013    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
17014           int dummy=1;
17015 #else
17016           Not a native Windows build target.
17017 #endif
17018
17019  ;
17020  return 0;
17021 }
17022
17023 _ACEOF
17024 if ac_fn_c_try_compile "$LINENO"; then :
17025
17026         ac_cv_native_windows="yes"
17027
17028 else
17029
17030         ac_cv_native_windows="no"
17031
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034     fi
17035
17036 fi
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
17038 $as_echo "$ac_cv_native_windows" >&6; }
17039    if test "x$ac_cv_native_windows" = xyes; then
17040   DOING_NATIVE_WINDOWS_TRUE=
17041   DOING_NATIVE_WINDOWS_FALSE='#'
17042 else
17043   DOING_NATIVE_WINDOWS_TRUE='#'
17044   DOING_NATIVE_WINDOWS_FALSE=
17045 fi
17046
17047
17048 case X-"$ac_cv_native_windows" in
17049   X-yes)
17050
17051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17052 $as_echo_n "checking for winsock.h... " >&6; }
17053 if ${ac_cv_header_winsock_h+:} false; then :
17054   $as_echo_n "(cached) " >&6
17055 else
17056
17057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059
17060
17061 #undef inline
17062 #ifndef WIN32_LEAN_AND_MEAN
17063 #define WIN32_LEAN_AND_MEAN
17064 #endif
17065 #include <windows.h>
17066 #include <winsock.h>
17067
17068 int main (void)
17069 {
17070
17071 #if defined(__CYGWIN__) || defined(__CEGCC__)
17072         HAVE_WINSOCK_H shall not be defined.
17073 #else
17074         int dummy=WSACleanup();
17075 #endif
17076
17077  ;
17078  return 0;
17079 }
17080
17081 _ACEOF
17082 if ac_fn_c_try_compile "$LINENO"; then :
17083
17084       ac_cv_header_winsock_h="yes"
17085
17086 else
17087
17088       ac_cv_header_winsock_h="no"
17089
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092
17093 fi
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17095 $as_echo "$ac_cv_header_winsock_h" >&6; }
17096   case "$ac_cv_header_winsock_h" in
17097     yes)
17098
17099 cat >>confdefs.h <<_ACEOF
17100 #define HAVE_WINSOCK_H 1
17101 _ACEOF
17102
17103       ;;
17104   esac
17105
17106
17107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17108 $as_echo_n "checking for winsock2.h... " >&6; }
17109 if ${ac_cv_header_winsock2_h+:} false; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112
17113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h.  */
17115
17116
17117 #undef inline
17118 #ifndef WIN32_LEAN_AND_MEAN
17119 #define WIN32_LEAN_AND_MEAN
17120 #endif
17121 #include <windows.h>
17122 #include <winsock2.h>
17123
17124 int main (void)
17125 {
17126
17127 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17128         HAVE_WINSOCK2_H shall not be defined.
17129 #else
17130         int dummy=2*IPPROTO_ESP;
17131 #endif
17132
17133  ;
17134  return 0;
17135 }
17136
17137 _ACEOF
17138 if ac_fn_c_try_compile "$LINENO"; then :
17139
17140       ac_cv_header_winsock2_h="yes"
17141
17142 else
17143
17144       ac_cv_header_winsock2_h="no"
17145
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148
17149 fi
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17151 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17152   case "$ac_cv_header_winsock2_h" in
17153     yes)
17154
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_WINSOCK2_H 1
17157 _ACEOF
17158
17159       ;;
17160   esac
17161
17162
17163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
17164 $as_echo_n "checking for ws2tcpip.h... " >&6; }
17165 if ${ac_cv_header_ws2tcpip_h+:} false; then :
17166   $as_echo_n "(cached) " >&6
17167 else
17168
17169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h.  */
17171
17172
17173 #undef inline
17174 #ifndef WIN32_LEAN_AND_MEAN
17175 #define WIN32_LEAN_AND_MEAN
17176 #endif
17177 #include <windows.h>
17178 #include <winsock2.h>
17179 #include <ws2tcpip.h>
17180
17181 int main (void)
17182 {
17183
17184 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17185         HAVE_WS2TCPIP_H shall not be defined.
17186 #else
17187         int dummy=2*IP_PKTINFO;
17188 #endif
17189
17190  ;
17191  return 0;
17192 }
17193
17194 _ACEOF
17195 if ac_fn_c_try_compile "$LINENO"; then :
17196
17197       ac_cv_header_ws2tcpip_h="yes"
17198
17199 else
17200
17201       ac_cv_header_ws2tcpip_h="no"
17202
17203 fi
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205
17206 fi
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
17208 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
17209   case "$ac_cv_header_ws2tcpip_h" in
17210     yes)
17211
17212 cat >>confdefs.h <<_ACEOF
17213 #define HAVE_WS2TCPIP_H 1
17214 _ACEOF
17215
17216       ;;
17217   esac
17218
17219     ;;
17220   *)
17221     ac_cv_header_winsock_h="no"
17222     ac_cv_header_winsock2_h="no"
17223     ac_cv_header_ws2tcpip_h="no"
17224     ;;
17225 esac
17226
17227
17228
17229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
17230 $as_echo_n "checking if X/Open network library is required... " >&6; }
17231   tst_lib_xnet_required="no"
17232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h.  */
17234
17235
17236 int main (void)
17237 {
17238 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
17239   return 0;
17240 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
17241   return 0;
17242 #else
17243   force compilation error
17244 #endif
17245 }
17246
17247
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"; then :
17250
17251     tst_lib_xnet_required="yes"
17252     LIBS="$LIBS -lxnet"
17253
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
17257 $as_echo "$tst_lib_xnet_required" >&6; }
17258
17259
17260 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17261 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17262   HAVE_GETHOSTBYNAME="1"
17263
17264 else
17265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17266 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17267 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17268   $as_echo_n "(cached) " >&6
17269 else
17270   ac_check_lib_save_LIBS=$LIBS
17271 LIBS="-lnsl  $LIBS"
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h.  */
17274
17275
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char gethostbyname ();
17280 int main (void)
17281 {
17282 return gethostbyname ();
17283  ;
17284  return 0;
17285 }
17286 _ACEOF
17287 if ac_fn_c_try_link "$LINENO"; then :
17288   ac_cv_lib_nsl_gethostbyname=yes
17289 else
17290   ac_cv_lib_nsl_gethostbyname=no
17291 fi
17292 rm -f core conftest.err conftest.$ac_objext \
17293     conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17295 fi
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17297 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17298 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17299   HAVE_GETHOSTBYNAME="1"
17300                              LIBS="$LIBS -lnsl"
17301
17302 fi
17303
17304
17305 fi
17306
17307
17308 if test "$HAVE_GETHOSTBYNAME" != "1"
17309 then
17310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
17311 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
17312 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
17313   $as_echo_n "(cached) " >&6
17314 else
17315   ac_check_lib_save_LIBS=$LIBS
17316 LIBS="-lsocket  $LIBS"
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h.  */
17319
17320
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 char gethostbyname ();
17325 int main (void)
17326 {
17327 return gethostbyname ();
17328  ;
17329  return 0;
17330 }
17331 _ACEOF
17332 if ac_fn_c_try_link "$LINENO"; then :
17333   ac_cv_lib_socket_gethostbyname=yes
17334 else
17335   ac_cv_lib_socket_gethostbyname=no
17336 fi
17337 rm -f core conftest.err conftest.$ac_objext \
17338     conftest$ac_exeext conftest.$ac_ext
17339 LIBS=$ac_check_lib_save_LIBS
17340 fi
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
17342 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
17343 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
17344   HAVE_GETHOSTBYNAME="1"
17345                LIBS="$LIBS -lsocket"
17346
17347 fi
17348
17349 fi
17350
17351 if test "$HAVE_GETHOSTBYNAME" != "1"
17352 then
17353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
17354 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
17355   my_ac_save_LIBS=$LIBS
17356   LIBS="-lnsl -lsocket $LIBS"
17357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h.  */
17359
17360
17361
17362 int main (void)
17363 {
17364
17365       gethostbyname();
17366
17367  ;
17368  return 0;
17369 }
17370
17371 _ACEOF
17372 if ac_fn_c_try_link "$LINENO"; then :
17373
17374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 $as_echo "yes" >&6; }
17376     HAVE_GETHOSTBYNAME="1"
17377
17378 else
17379
17380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17382     LIBS=$my_ac_save_LIBS
17383
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext \
17386     conftest$ac_exeext conftest.$ac_ext
17387 fi
17388
17389 if test "$HAVE_GETHOSTBYNAME" != "1"
17390 then
17391     if test "$ac_cv_header_windows_h" = "yes"; then
17392     if test "$ac_cv_header_winsock_h" = "yes"; then
17393       case $host in
17394         *-*-mingw32ce*)
17395           winsock_LIB="-lwinsock"
17396           ;;
17397         *)
17398           winsock_LIB="-lwsock32"
17399           ;;
17400       esac
17401     fi
17402     if test "$ac_cv_header_winsock2_h" = "yes"; then
17403       winsock_LIB="-lws2_32"
17404     fi
17405     if test ! -z "$winsock_LIB"; then
17406       my_ac_save_LIBS=$LIBS
17407       LIBS="$winsock_LIB $LIBS"
17408       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
17409 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
17410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h.  */
17412
17413
17414 #ifdef HAVE_WINDOWS_H
17415 #ifndef WIN32_LEAN_AND_MEAN
17416 #define WIN32_LEAN_AND_MEAN
17417 #endif
17418 #include <windows.h>
17419 #ifdef HAVE_WINSOCK2_H
17420 #include <winsock2.h>
17421 #else
17422 #ifdef HAVE_WINSOCK_H
17423 #include <winsock.h>
17424 #endif
17425 #endif
17426 #endif
17427
17428 int main (void)
17429 {
17430
17431           gethostbyname("www.dummysite.com");
17432
17433  ;
17434  return 0;
17435 }
17436
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"; then :
17439
17440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441 $as_echo "yes" >&6; }
17442         HAVE_GETHOSTBYNAME="1"
17443
17444 else
17445
17446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17448         winsock_LIB=""
17449         LIBS=$my_ac_save_LIBS
17450
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext \
17453     conftest$ac_exeext conftest.$ac_ext
17454     fi
17455   fi
17456 fi
17457
17458 if test "$HAVE_GETHOSTBYNAME" != "1"
17459 then
17460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
17461 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
17462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h.  */
17464
17465
17466 /* Older Minix versions may need <net/gen/netdb.h> here instead */
17467 #include <netdb.h>
17468
17469 int main (void)
17470 {
17471
17472       gethostbyname("www.dummysite.com");
17473
17474  ;
17475  return 0;
17476 }
17477
17478 _ACEOF
17479 if ac_fn_c_try_link "$LINENO"; then :
17480
17481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17482 $as_echo "yes" >&6; }
17483     HAVE_GETHOSTBYNAME="1"
17484
17485 else
17486
17487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17489
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext \
17492     conftest$ac_exeext conftest.$ac_ext
17493 fi
17494
17495 if test "$HAVE_GETHOSTBYNAME" != "1"
17496 then
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
17498 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
17499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h.  */
17501
17502
17503 #include <stdio.h>
17504 #include <netdb.h>
17505
17506 int main (void)
17507 {
17508
17509       gethostbyname("www.dummysite.com");
17510
17511  ;
17512  return 0;
17513 }
17514
17515 _ACEOF
17516 if ac_fn_c_try_link "$LINENO"; then :
17517
17518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17519 $as_echo "yes" >&6; }
17520     HAVE_GETHOSTBYNAME="1"
17521
17522 else
17523
17524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 $as_echo "no" >&6; }
17526
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext \
17529     conftest$ac_exeext conftest.$ac_ext
17530 fi
17531
17532 if test "$HAVE_GETHOSTBYNAME" != "1"
17533 then
17534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
17535 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
17536 if ${ac_cv_lib_net_gethostbyname+:} false; then :
17537   $as_echo_n "(cached) " >&6
17538 else
17539   ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lnet  $LIBS"
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h.  */
17543
17544
17545 #ifdef __cplusplus
17546 extern "C"
17547 #endif
17548 char gethostbyname ();
17549 int main (void)
17550 {
17551 return gethostbyname ();
17552  ;
17553  return 0;
17554 }
17555 _ACEOF
17556 if ac_fn_c_try_link "$LINENO"; then :
17557   ac_cv_lib_net_gethostbyname=yes
17558 else
17559   ac_cv_lib_net_gethostbyname=no
17560 fi
17561 rm -f core conftest.err conftest.$ac_objext \
17562     conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17564 fi
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
17566 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
17567 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
17568   HAVE_GETHOSTBYNAME="1"
17569                LIBS="$LIBS -lnet"
17570
17571 fi
17572
17573 fi
17574
17575
17576 if test "$HAVE_GETHOSTBYNAME" != "1"; then
17577   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
17578 fi
17579
17580 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17581 if test "x$ac_cv_func_strcasecmp" = xyes; then :
17582
17583 else
17584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17585 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17586 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
17587   $as_echo_n "(cached) " >&6
17588 else
17589   ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-lresolve  $LIBS"
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h.  */
17593
17594
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 char strcasecmp ();
17599 int main (void)
17600 {
17601 return strcasecmp ();
17602  ;
17603  return 0;
17604 }
17605 _ACEOF
17606 if ac_fn_c_try_link "$LINENO"; then :
17607   ac_cv_lib_resolve_strcasecmp=yes
17608 else
17609   ac_cv_lib_resolve_strcasecmp=no
17610 fi
17611 rm -f core conftest.err conftest.$ac_objext \
17612     conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17614 fi
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17616 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17617 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
17618   cat >>confdefs.h <<_ACEOF
17619 #define HAVE_LIBRESOLVE 1
17620 _ACEOF
17621
17622   LIBS="-lresolve $LIBS"
17623
17624 fi
17625
17626 fi
17627
17628
17629 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
17630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17631 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17632 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
17633   $as_echo_n "(cached) " >&6
17634 else
17635   ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-lresolve -lnsl $LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h.  */
17639
17640
17641 #ifdef __cplusplus
17642 extern "C"
17643 #endif
17644 char strcasecmp ();
17645 int main (void)
17646 {
17647 return strcasecmp ();
17648  ;
17649  return 0;
17650 }
17651 _ACEOF
17652 if ac_fn_c_try_link "$LINENO"; then :
17653   ac_cv_lib_resolve_strcasecmp=yes
17654 else
17655   ac_cv_lib_resolve_strcasecmp=no
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext \
17658     conftest$ac_exeext conftest.$ac_ext
17659 LIBS=$ac_check_lib_save_LIBS
17660 fi
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17662 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17663 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
17664   LIBS="-lresolve $LIBS"
17665 fi
17666
17667 fi
17668 ac_cv_func_strcasecmp="no"
17669
17670
17671 cares_includes_winsock2="\
17672 /* includes start */
17673 #ifdef HAVE_WINDOWS_H
17674 #  ifndef WIN32_LEAN_AND_MEAN
17675 #    define WIN32_LEAN_AND_MEAN
17676 #  endif
17677 #  include <windows.h>
17678 #  ifdef HAVE_WINSOCK2_H
17679 #    include <winsock2.h>
17680 #  else
17681 #    ifdef HAVE_WINSOCK_H
17682 #      include <winsock.h>
17683 #    endif
17684 #  endif
17685 #endif
17686 /* includes end */"
17687
17688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17689 $as_echo_n "checking for windows.h... " >&6; }
17690 if ${ac_cv_header_windows_h+:} false; then :
17691   $as_echo_n "(cached) " >&6
17692 else
17693
17694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h.  */
17696
17697
17698 #undef inline
17699 #ifndef WIN32_LEAN_AND_MEAN
17700 #define WIN32_LEAN_AND_MEAN
17701 #endif
17702 #include <windows.h>
17703
17704 int main (void)
17705 {
17706
17707 #if defined(__CYGWIN__) || defined(__CEGCC__)
17708         HAVE_WINDOWS_H shall not be defined.
17709 #else
17710         int dummy=2*WINVER;
17711 #endif
17712
17713  ;
17714  return 0;
17715 }
17716
17717 _ACEOF
17718 if ac_fn_c_try_compile "$LINENO"; then :
17719
17720       ac_cv_header_windows_h="yes"
17721
17722 else
17723
17724       ac_cv_header_windows_h="no"
17725
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
17731 $as_echo "$ac_cv_header_windows_h" >&6; }
17732   case "$ac_cv_header_windows_h" in
17733     yes)
17734
17735 cat >>confdefs.h <<_ACEOF
17736 #define HAVE_WINDOWS_H 1
17737 _ACEOF
17738
17739
17740 cat >>confdefs.h <<_ACEOF
17741 #define WIN32_LEAN_AND_MEAN 1
17742 _ACEOF
17743
17744       ;;
17745   esac
17746
17747
17748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17749 $as_echo_n "checking for winsock.h... " >&6; }
17750 if ${ac_cv_header_winsock_h+:} false; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753
17754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h.  */
17756
17757
17758 #undef inline
17759 #ifndef WIN32_LEAN_AND_MEAN
17760 #define WIN32_LEAN_AND_MEAN
17761 #endif
17762 #include <windows.h>
17763 #include <winsock.h>
17764
17765 int main (void)
17766 {
17767
17768 #if defined(__CYGWIN__) || defined(__CEGCC__)
17769         HAVE_WINSOCK_H shall not be defined.
17770 #else
17771         int dummy=WSACleanup();
17772 #endif
17773
17774  ;
17775  return 0;
17776 }
17777
17778 _ACEOF
17779 if ac_fn_c_try_compile "$LINENO"; then :
17780
17781       ac_cv_header_winsock_h="yes"
17782
17783 else
17784
17785       ac_cv_header_winsock_h="no"
17786
17787 fi
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789
17790 fi
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17792 $as_echo "$ac_cv_header_winsock_h" >&6; }
17793   case "$ac_cv_header_winsock_h" in
17794     yes)
17795
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_WINSOCK_H 1
17798 _ACEOF
17799
17800       ;;
17801   esac
17802
17803
17804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17805 $as_echo_n "checking for winsock2.h... " >&6; }
17806 if ${ac_cv_header_winsock2_h+:} false; then :
17807   $as_echo_n "(cached) " >&6
17808 else
17809
17810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h.  */
17812
17813
17814 #undef inline
17815 #ifndef WIN32_LEAN_AND_MEAN
17816 #define WIN32_LEAN_AND_MEAN
17817 #endif
17818 #include <windows.h>
17819 #include <winsock2.h>
17820
17821 int main (void)
17822 {
17823
17824 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17825         HAVE_WINSOCK2_H shall not be defined.
17826 #else
17827         int dummy=2*IPPROTO_ESP;
17828 #endif
17829
17830  ;
17831  return 0;
17832 }
17833
17834 _ACEOF
17835 if ac_fn_c_try_compile "$LINENO"; then :
17836
17837       ac_cv_header_winsock2_h="yes"
17838
17839 else
17840
17841       ac_cv_header_winsock2_h="no"
17842
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17848 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17849   case "$ac_cv_header_winsock2_h" in
17850     yes)
17851
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_WINSOCK2_H 1
17854 _ACEOF
17855
17856       ;;
17857   esac
17858
17859
17860
17861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
17862 $as_echo_n "checking for connect in libraries... " >&6; }
17863   tst_connect_save_LIBS="$LIBS"
17864   tst_connect_need_LIBS="unknown"
17865   for tst_lib in '' '-lsocket' ; do
17866     if test "$tst_connect_need_LIBS" = "unknown"; then
17867       LIBS="$tst_lib $tst_connect_save_LIBS"
17868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h.  */
17870
17871
17872           $cares_includes_winsock2
17873           #ifndef HAVE_WINDOWS_H
17874             int connect(int, void*, int);
17875           #endif
17876
17877 int main (void)
17878 {
17879
17880           if(0 != connect(0, 0, 0))
17881             return 1;
17882
17883  ;
17884  return 0;
17885 }
17886
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"; then :
17889
17890         tst_connect_need_LIBS="$tst_lib"
17891
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894     conftest$ac_exeext conftest.$ac_ext
17895     fi
17896   done
17897   LIBS="$tst_connect_save_LIBS"
17898   #
17899   case X-"$tst_connect_need_LIBS" in
17900     X-unknown)
17901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
17902 $as_echo "cannot find connect" >&6; }
17903       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
17904       ;;
17905     X-)
17906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17907 $as_echo "yes" >&6; }
17908       ;;
17909     *)
17910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
17911 $as_echo "$tst_connect_need_LIBS" >&6; }
17912       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
17913       ;;
17914   esac
17915
17916
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17918 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17919 if ${ac_cv_header_time+:} false; then :
17920   $as_echo_n "(cached) " >&6
17921 else
17922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h.  */
17924 #include <sys/types.h>
17925 #include <sys/time.h>
17926 #include <time.h>
17927
17928 int main (void)
17929 {
17930 if ((struct tm *) 0)
17931 return 0;
17932  ;
17933  return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937   ac_cv_header_time=yes
17938 else
17939   ac_cv_header_time=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942 fi
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17944 $as_echo "$ac_cv_header_time" >&6; }
17945 if test $ac_cv_header_time = yes; then
17946
17947 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17948
17949 fi
17950
17951
17952     for ac_header in sys/types.h sys/time.h time.h
17953 do :
17954   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17955 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17956 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17957   cat >>confdefs.h <<_ACEOF
17958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17959 _ACEOF
17960
17961 fi
17962
17963 done
17964
17965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
17966 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
17967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h.  */
17969
17970
17971 #ifdef HAVE_SYS_TYPES_H
17972 #include <sys/types.h>
17973 #endif
17974 #ifdef HAVE_SYS_TIME_H
17975 #include <sys/time.h>
17976 #ifdef TIME_WITH_SYS_TIME
17977 #include <time.h>
17978 #endif
17979 #else
17980 #ifdef HAVE_TIME_H
17981 #include <time.h>
17982 #endif
17983 #endif
17984
17985 int main (void)
17986 {
17987
17988       struct timespec ts;
17989       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17990
17991  ;
17992  return 0;
17993 }
17994
17995 _ACEOF
17996 if ac_fn_c_try_compile "$LINENO"; then :
17997
17998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999 $as_echo "yes" >&6; }
18000     ac_cv_func_clock_gettime="yes"
18001
18002 else
18003
18004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006     ac_cv_func_clock_gettime="no"
18007
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010
18011
18012     #
18013   if test "$ac_cv_func_clock_gettime" = "yes"; then
18014     #
18015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
18016 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
18017     #
18018     curl_cv_save_LIBS="$LIBS"
18019     curl_cv_gclk_LIBS="unknown"
18020     #
18021     for x_xlibs in '' '-lrt' '-lposix4' ; do
18022       if test "$curl_cv_gclk_LIBS" = "unknown"; then
18023         if test -z "$x_xlibs"; then
18024           LIBS="$curl_cv_save_LIBS"
18025         else
18026           LIBS="$x_xlibs $curl_cv_save_LIBS"
18027         fi
18028         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h.  */
18030
18031
18032 #ifdef HAVE_SYS_TYPES_H
18033 #include <sys/types.h>
18034 #endif
18035 #ifdef HAVE_SYS_TIME_H
18036 #include <sys/time.h>
18037 #ifdef TIME_WITH_SYS_TIME
18038 #include <time.h>
18039 #endif
18040 #else
18041 #ifdef HAVE_TIME_H
18042 #include <time.h>
18043 #endif
18044 #endif
18045
18046 int main (void)
18047 {
18048
18049             struct timespec ts;
18050             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
18051
18052  ;
18053  return 0;
18054 }
18055
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"; then :
18058
18059           curl_cv_gclk_LIBS="$x_xlibs"
18060
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext \
18063     conftest$ac_exeext conftest.$ac_ext
18064       fi
18065     done
18066     #
18067     LIBS="$curl_cv_save_LIBS"
18068     #
18069     case X-"$curl_cv_gclk_LIBS" in
18070       X-unknown)
18071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
18072 $as_echo "cannot find clock_gettime" >&6; }
18073         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
18074 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
18075         ac_cv_func_clock_gettime="no"
18076         ;;
18077       X-)
18078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
18079 $as_echo "no additional lib required" >&6; }
18080         ac_cv_func_clock_gettime="yes"
18081         ;;
18082       *)
18083         if test -z "$curl_cv_save_LIBS"; then
18084           LIBS="$curl_cv_gclk_LIBS"
18085         else
18086           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
18087         fi
18088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
18089 $as_echo "$curl_cv_gclk_LIBS" >&6; }
18090         ac_cv_func_clock_gettime="yes"
18091         ;;
18092     esac
18093     #
18094         if test "x$cross_compiling" != "xyes" &&
18095       test "$ac_cv_func_clock_gettime" = "yes"; then
18096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
18097 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
18098       if test "$cross_compiling" = yes; then :
18099   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18101 as_fn_error $? "cannot run test program while cross compiling
18102 See \`config.log' for more details" "$LINENO" 5; }
18103 else
18104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h.  */
18106
18107
18108 #ifdef HAVE_STDLIB_H
18109 #include <stdlib.h>
18110 #endif
18111 #ifdef HAVE_SYS_TYPES_H
18112 #include <sys/types.h>
18113 #endif
18114 #ifdef HAVE_SYS_TIME_H
18115 #include <sys/time.h>
18116 #ifdef TIME_WITH_SYS_TIME
18117 #include <time.h>
18118 #endif
18119 #else
18120 #ifdef HAVE_TIME_H
18121 #include <time.h>
18122 #endif
18123 #endif
18124
18125 int main (void)
18126 {
18127
18128           struct timespec ts;
18129           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
18130             exit(0);
18131           else
18132             exit(1);
18133
18134  ;
18135  return 0;
18136 }
18137
18138 _ACEOF
18139 if ac_fn_c_try_run "$LINENO"; then :
18140
18141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18142 $as_echo "yes" >&6; }
18143
18144 else
18145
18146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18148         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
18149 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
18150         ac_cv_func_clock_gettime="no"
18151         LIBS="$curl_cv_save_LIBS"
18152
18153 fi
18154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18155   conftest.$ac_objext conftest.beam conftest.$ac_ext
18156 fi
18157
18158     fi
18159     #
18160     case "$ac_cv_func_clock_gettime" in
18161       yes)
18162
18163 cat >>confdefs.h <<_ACEOF
18164 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
18165 _ACEOF
18166
18167         ;;
18168     esac
18169     #
18170   fi
18171   #
18172
18173
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
18175 $as_echo_n "checking whether to use libgcc... " >&6; }
18176 # Check whether --enable-libgcc was given.
18177 if test "${enable_libgcc+set}" = set; then :
18178   enableval=$enable_libgcc;  case "$enableval" in
18179   yes)
18180         LIBS="$LIBS -lgcc"
18181        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18182 $as_echo "yes" >&6; }
18183        ;;
18184   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185 $as_echo "no" >&6; }
18186        ;;
18187   esac
18188 else
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18191
18192 fi
18193
18194
18195
18196
18197
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18200 $as_echo_n "checking for ANSI C header files... " >&6; }
18201 if ${ac_cv_header_stdc+:} false; then :
18202   $as_echo_n "(cached) " >&6
18203 else
18204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h.  */
18206 #include <stdlib.h>
18207 #include <stdarg.h>
18208 #include <string.h>
18209 #include <float.h>
18210
18211 int main (void)
18212 {
18213
18214  ;
18215  return 0;
18216 }
18217 _ACEOF
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219   ac_cv_header_stdc=yes
18220 else
18221   ac_cv_header_stdc=no
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224
18225 if test $ac_cv_header_stdc = yes; then
18226   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h.  */
18229 #include <string.h>
18230
18231 _ACEOF
18232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18233   $EGREP "memchr" >/dev/null 2>&1; then :
18234
18235 else
18236   ac_cv_header_stdc=no
18237 fi
18238 rm -f conftest*
18239
18240 fi
18241
18242 if test $ac_cv_header_stdc = yes; then
18243   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h.  */
18246 #include <stdlib.h>
18247
18248 _ACEOF
18249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18250   $EGREP "free" >/dev/null 2>&1; then :
18251
18252 else
18253   ac_cv_header_stdc=no
18254 fi
18255 rm -f conftest*
18256
18257 fi
18258
18259 if test $ac_cv_header_stdc = yes; then
18260   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18261   if test "$cross_compiling" = yes; then :
18262   :
18263 else
18264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h.  */
18266 #include <ctype.h>
18267 #include <stdlib.h>
18268 #if ((' ' & 0x0FF) == 0x020)
18269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18271 #else
18272 # define ISLOWER(c) \
18273                    (('a' <= (c) && (c) <= 'i') \
18274                      || ('j' <= (c) && (c) <= 'r') \
18275                      || ('s' <= (c) && (c) <= 'z'))
18276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18277 #endif
18278
18279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18280 int
18281 main ()
18282 {
18283   int i;
18284   for (i = 0; i < 256; i++)
18285     if (XOR (islower (i), ISLOWER (i))
18286         || toupper (i) != TOUPPER (i))
18287       return 2;
18288   return 0;
18289 }
18290 _ACEOF
18291 if ac_fn_c_try_run "$LINENO"; then :
18292
18293 else
18294   ac_cv_header_stdc=no
18295 fi
18296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18297   conftest.$ac_objext conftest.beam conftest.$ac_ext
18298 fi
18299
18300 fi
18301 fi
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18303 $as_echo "$ac_cv_header_stdc" >&6; }
18304 if test $ac_cv_header_stdc = yes; then
18305
18306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18307
18308 fi
18309
18310
18311
18312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
18313 $as_echo_n "checking for malloc.h... " >&6; }
18314 if ${ac_cv_header_malloc_h+:} false; then :
18315   $as_echo_n "(cached) " >&6
18316 else
18317
18318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h.  */
18320
18321
18322 #include <malloc.h>
18323
18324 int main (void)
18325 {
18326
18327         void *p = malloc(10);
18328         void *q = calloc(10,10);
18329         free(p);
18330         free(q);
18331
18332  ;
18333  return 0;
18334 }
18335
18336 _ACEOF
18337 if ac_fn_c_try_compile "$LINENO"; then :
18338
18339       ac_cv_header_malloc_h="yes"
18340
18341 else
18342
18343       ac_cv_header_malloc_h="no"
18344
18345 fi
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347
18348 fi
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
18350 $as_echo "$ac_cv_header_malloc_h" >&6; }
18351   if test "$ac_cv_header_malloc_h" = "yes"; then
18352
18353 cat >>confdefs.h <<_ACEOF
18354 #define HAVE_MALLOC_H 1
18355 _ACEOF
18356
18357     #
18358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h.  */
18360
18361
18362 #include <stdlib.h>
18363
18364 int main (void)
18365 {
18366
18367         void *p = malloc(10);
18368         void *q = calloc(10,10);
18369         free(p);
18370         free(q);
18371
18372  ;
18373  return 0;
18374 }
18375
18376 _ACEOF
18377 if ac_fn_c_try_compile "$LINENO"; then :
18378
18379       curl_cv_need_header_malloc_h="no"
18380
18381 else
18382
18383       curl_cv_need_header_malloc_h="yes"
18384
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387     #
18388     case "$curl_cv_need_header_malloc_h" in
18389       yes)
18390
18391 cat >>confdefs.h <<_ACEOF
18392 #define NEED_MALLOC_H 1
18393 _ACEOF
18394
18395         ;;
18396     esac
18397   fi
18398
18399
18400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
18401 $as_echo_n "checking for memory.h... " >&6; }
18402 if ${ac_cv_header_memory_h+:} false; then :
18403   $as_echo_n "(cached) " >&6
18404 else
18405
18406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h.  */
18408
18409
18410 #include <memory.h>
18411
18412 int main (void)
18413 {
18414
18415         void *p = malloc(10);
18416         void *q = calloc(10,10);
18417         free(p);
18418         free(q);
18419
18420  ;
18421  return 0;
18422 }
18423
18424 _ACEOF
18425 if ac_fn_c_try_compile "$LINENO"; then :
18426
18427       ac_cv_header_memory_h="yes"
18428
18429 else
18430
18431       ac_cv_header_memory_h="no"
18432
18433 fi
18434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435
18436 fi
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
18438 $as_echo "$ac_cv_header_memory_h" >&6; }
18439   if test "$ac_cv_header_memory_h" = "yes"; then
18440
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_MEMORY_H 1
18443 _ACEOF
18444
18445     #
18446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h.  */
18448
18449
18450 #include <stdlib.h>
18451
18452 int main (void)
18453 {
18454
18455         void *p = malloc(10);
18456         void *q = calloc(10,10);
18457         free(p);
18458         free(q);
18459
18460  ;
18461  return 0;
18462 }
18463
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"; then :
18466
18467       curl_cv_need_header_memory_h="no"
18468
18469 else
18470
18471       curl_cv_need_header_memory_h="yes"
18472
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475     #
18476     case "$curl_cv_need_header_memory_h" in
18477       yes)
18478
18479 cat >>confdefs.h <<_ACEOF
18480 #define NEED_MEMORY_H 1
18481 _ACEOF
18482
18483         ;;
18484     esac
18485   fi
18486
18487
18488 for ac_header in sys/types.h \
18489        sys/time.h \
18490        sys/select.h \
18491        sys/socket.h \
18492        sys/ioctl.h \
18493        sys/param.h \
18494        sys/uio.h \
18495        assert.h \
18496        netdb.h \
18497        netinet/in.h \
18498        netinet/tcp.h \
18499        net/if.h \
18500        errno.h \
18501        socket.h \
18502        strings.h \
18503        stdbool.h \
18504        time.h \
18505        limits.h \
18506        arpa/nameser.h \
18507        arpa/nameser_compat.h \
18508        arpa/inet.h
18509 do :
18510   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18511 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18512 #ifdef HAVE_SYS_TYPES_H
18513 #include <sys/types.h>
18514 #endif
18515 #ifdef HAVE_SYS_TIME_H
18516 #include <sys/time.h>
18517 #endif
18518 #ifdef HAVE_ARPA_NAMESER_H
18519 #include <arpa/nameser.h>
18520 #endif
18521
18522 #ifdef HAVE_SYS_SOCKET_H
18523 #include <sys/socket.h>
18524 #endif
18525 #ifdef HAVE_NETINET_IN_H
18526 #include <netinet/in.h>
18527 #endif
18528
18529
18530 "
18531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18532   cat >>confdefs.h <<_ACEOF
18533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18534 _ACEOF
18535
18536 fi
18537
18538 done
18539
18540
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18542 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18543 if ${ac_cv_c_const+:} false; then :
18544   $as_echo_n "(cached) " >&6
18545 else
18546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h.  */
18548
18549 int main (void)
18550 {
18551
18552 #ifndef __cplusplus
18553   /* Ultrix mips cc rejects this sort of thing.  */
18554   typedef int charset[2];
18555   const charset cs = { 0, 0 };
18556   /* SunOS 4.1.1 cc rejects this.  */
18557   char const *const *pcpcc;
18558   char **ppc;
18559   /* NEC SVR4.0.2 mips cc rejects this.  */
18560   struct point {int x, y;};
18561   static struct point const zero = {0,0};
18562   /* AIX XL C 1.02.0.0 rejects this.
18563      It does not let you subtract one const X* pointer from another in
18564      an arm of an if-expression whose if-part is not a constant
18565      expression */
18566   const char *g = "string";
18567   pcpcc = &g + (g ? g-g : 0);
18568   /* HPUX 7.0 cc rejects these. */
18569   ++pcpcc;
18570   ppc = (char**) pcpcc;
18571   pcpcc = (char const *const *) ppc;
18572   { /* SCO 3.2v4 cc rejects this sort of thing.  */
18573     char tx;
18574     char *t = &tx;
18575     char const *s = 0 ? (char *) 0 : (char const *) 0;
18576
18577     *t++ = 0;
18578     if (s) return 0;
18579   }
18580   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18581     int x[] = {25, 17};
18582     const int *foo = &x[0];
18583     ++foo;
18584   }
18585   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18586     typedef const int *iptr;
18587     iptr p = 0;
18588     ++p;
18589   }
18590   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18591        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18592     struct s { int j; const int *ap[3]; } bx;
18593     struct s *b = &bx; b->j = 5;
18594   }
18595   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18596     const int foo = 10;
18597     if (!foo) return 0;
18598   }
18599   return !cs[0] && !zero.x;
18600 #endif
18601
18602  ;
18603  return 0;
18604 }
18605 _ACEOF
18606 if ac_fn_c_try_compile "$LINENO"; then :
18607   ac_cv_c_const=yes
18608 else
18609   ac_cv_c_const=no
18610 fi
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612 fi
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18614 $as_echo "$ac_cv_c_const" >&6; }
18615 if test $ac_cv_c_const = no; then
18616
18617 $as_echo "#define const /**/" >>confdefs.h
18618
18619 fi
18620
18621 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18622 if test "x$ac_cv_type_size_t" = xyes; then :
18623
18624 else
18625
18626 cat >>confdefs.h <<_ACEOF
18627 #define size_t unsigned int
18628 _ACEOF
18629
18630 fi
18631
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18633 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18634 if ${ac_cv_header_time+:} false; then :
18635   $as_echo_n "(cached) " >&6
18636 else
18637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h.  */
18639 #include <sys/types.h>
18640 #include <sys/time.h>
18641 #include <time.h>
18642
18643 int main (void)
18644 {
18645 if ((struct tm *) 0)
18646 return 0;
18647  ;
18648  return 0;
18649 }
18650 _ACEOF
18651 if ac_fn_c_try_compile "$LINENO"; then :
18652   ac_cv_header_time=yes
18653 else
18654   ac_cv_header_time=no
18655 fi
18656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18657 fi
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18659 $as_echo "$ac_cv_header_time" >&6; }
18660 if test $ac_cv_header_time = yes; then
18661
18662 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18663
18664 fi
18665
18666
18667         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
18668 do :
18669   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18672   cat >>confdefs.h <<_ACEOF
18673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18674 _ACEOF
18675
18676 fi
18677
18678 done
18679
18680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18681 $as_echo_n "checking for struct timeval... " >&6; }
18682 if ${ac_cv_struct_timeval+:} false; then :
18683   $as_echo_n "(cached) " >&6
18684 else
18685
18686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h.  */
18688
18689
18690 #undef inline
18691 #ifdef HAVE_WINDOWS_H
18692 #ifndef WIN32_LEAN_AND_MEAN
18693 #define WIN32_LEAN_AND_MEAN
18694 #endif
18695 #include <windows.h>
18696 #ifdef HAVE_WINSOCK2_H
18697 #include <winsock2.h>
18698 #else
18699 #ifdef HAVE_WINSOCK_H
18700 #include <winsock.h>
18701 #endif
18702 #endif
18703 #endif
18704 #ifdef HAVE_SYS_TYPES_H
18705 #include <sys/types.h>
18706 #endif
18707 #ifdef HAVE_SYS_TIME_H
18708 #include <sys/time.h>
18709 #ifdef TIME_WITH_SYS_TIME
18710 #include <time.h>
18711 #endif
18712 #else
18713 #ifdef HAVE_TIME_H
18714 #include <time.h>
18715 #endif
18716 #endif
18717 #ifdef HAVE_SYS_SOCKET_H
18718 #include <sys/socket.h>
18719 #endif
18720
18721 int main (void)
18722 {
18723
18724         struct timeval ts;
18725         ts.tv_sec  = 0;
18726         ts.tv_usec = 0;
18727
18728  ;
18729  return 0;
18730 }
18731
18732 _ACEOF
18733 if ac_fn_c_try_compile "$LINENO"; then :
18734
18735       ac_cv_struct_timeval="yes"
18736
18737 else
18738
18739       ac_cv_struct_timeval="no"
18740
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
18746 $as_echo "$ac_cv_struct_timeval" >&6; }
18747   case "$ac_cv_struct_timeval" in
18748     yes)
18749
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_STRUCT_TIMEVAL 1
18752 _ACEOF
18753
18754       ;;
18755   esac
18756
18757
18758 # The cast to long int works around a bug in the HP C Compiler
18759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18761 # This bug is HP SR number 8606223364.
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
18763 $as_echo_n "checking size of size_t... " >&6; }
18764 if ${ac_cv_sizeof_size_t+:} false; then :
18765   $as_echo_n "(cached) " >&6
18766 else
18767   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
18768
18769 else
18770   if test "$ac_cv_type_size_t" = yes; then
18771      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18773 as_fn_error 77 "cannot compute sizeof (size_t)
18774 See \`config.log' for more details" "$LINENO" 5; }
18775    else
18776      ac_cv_sizeof_size_t=0
18777    fi
18778 fi
18779
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
18782 $as_echo "$ac_cv_sizeof_size_t" >&6; }
18783
18784
18785
18786 cat >>confdefs.h <<_ACEOF
18787 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18788 _ACEOF
18789
18790
18791 # The cast to long int works around a bug in the HP C Compiler
18792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18794 # This bug is HP SR number 8606223364.
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18796 $as_echo_n "checking size of long... " >&6; }
18797 if ${ac_cv_sizeof_long+:} false; then :
18798   $as_echo_n "(cached) " >&6
18799 else
18800   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18801
18802 else
18803   if test "$ac_cv_type_long" = yes; then
18804      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18806 as_fn_error 77 "cannot compute sizeof (long)
18807 See \`config.log' for more details" "$LINENO" 5; }
18808    else
18809      ac_cv_sizeof_long=0
18810    fi
18811 fi
18812
18813 fi
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18815 $as_echo "$ac_cv_sizeof_long" >&6; }
18816
18817
18818
18819 cat >>confdefs.h <<_ACEOF
18820 #define SIZEOF_LONG $ac_cv_sizeof_long
18821 _ACEOF
18822
18823
18824 # The cast to long int works around a bug in the HP C Compiler
18825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18827 # This bug is HP SR number 8606223364.
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18829 $as_echo_n "checking size of int... " >&6; }
18830 if ${ac_cv_sizeof_int+:} false; then :
18831   $as_echo_n "(cached) " >&6
18832 else
18833   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18834
18835 else
18836   if test "$ac_cv_type_int" = yes; then
18837      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18839 as_fn_error 77 "cannot compute sizeof (int)
18840 See \`config.log' for more details" "$LINENO" 5; }
18841    else
18842      ac_cv_sizeof_int=0
18843    fi
18844 fi
18845
18846 fi
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18848 $as_echo "$ac_cv_sizeof_int" >&6; }
18849
18850
18851
18852 cat >>confdefs.h <<_ACEOF
18853 #define SIZEOF_INT $ac_cv_sizeof_int
18854 _ACEOF
18855
18856
18857 # The cast to long int works around a bug in the HP C Compiler
18858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18860 # This bug is HP SR number 8606223364.
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18862 $as_echo_n "checking size of short... " >&6; }
18863 if ${ac_cv_sizeof_short+:} false; then :
18864   $as_echo_n "(cached) " >&6
18865 else
18866   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
18867
18868 else
18869   if test "$ac_cv_type_short" = yes; then
18870      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18872 as_fn_error 77 "cannot compute sizeof (short)
18873 See \`config.log' for more details" "$LINENO" 5; }
18874    else
18875      ac_cv_sizeof_short=0
18876    fi
18877 fi
18878
18879 fi
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18881 $as_echo "$ac_cv_sizeof_short" >&6; }
18882
18883
18884
18885 cat >>confdefs.h <<_ACEOF
18886 #define SIZEOF_SHORT $ac_cv_sizeof_short
18887 _ACEOF
18888
18889
18890
18891   if test -z "$ac_cv_sizeof_long" ||
18892     test "$ac_cv_sizeof_long" -eq "0"; then
18893     as_fn_error $? "cannot find out size of long." "$LINENO" 5
18894   fi
18895
18896 cat >>confdefs.h <<_EOF
18897 #define CARES_SIZEOF_LONG $ac_cv_sizeof_long
18898 _EOF
18899
18900
18901 # The cast to long int works around a bug in the HP C Compiler
18902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18904 # This bug is HP SR number 8606223364.
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18906 $as_echo_n "checking size of time_t... " >&6; }
18907 if ${ac_cv_sizeof_time_t+:} false; then :
18908   $as_echo_n "(cached) " >&6
18909 else
18910   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
18911
18912 else
18913   if test "$ac_cv_type_time_t" = yes; then
18914      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18916 as_fn_error 77 "cannot compute sizeof (time_t)
18917 See \`config.log' for more details" "$LINENO" 5; }
18918    else
18919      ac_cv_sizeof_time_t=0
18920    fi
18921 fi
18922
18923 fi
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18925 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18926
18927
18928
18929 cat >>confdefs.h <<_ACEOF
18930 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18931 _ACEOF
18932
18933
18934
18935 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18936 if test "x$ac_cv_type_long_long" = xyes; then :
18937
18938 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
18939
18940    longlong="yes"
18941
18942 fi
18943
18944
18945 if test "xyes" = "x$longlong"; then
18946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
18947 $as_echo_n "checking if numberLL works... " >&6; }
18948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h.  */
18950
18951
18952
18953 int main (void)
18954 {
18955
18956       long long val = 1000LL;
18957
18958  ;
18959  return 0;
18960 }
18961
18962 _ACEOF
18963 if ac_fn_c_try_compile "$LINENO"; then :
18964
18965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 $as_echo "yes" >&6; }
18967
18968 $as_echo "#define HAVE_LL 1" >>confdefs.h
18969
18970
18971 else
18972
18973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18975
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 fi
18979
18980
18981 # check for ssize_t
18982 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18983 if test "x$ac_cv_type_ssize_t" = xyes; then :
18984
18985 else
18986
18987 $as_echo "#define ssize_t int" >>confdefs.h
18988
18989 fi
18990
18991
18992 # check for bool type
18993 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
18994 #ifdef HAVE_SYS_TYPES_H
18995 #include <sys/types.h>
18996 #endif
18997 #ifdef HAVE_STDBOOL_H
18998 #include <stdbool.h>
18999 #endif
19000
19001 "
19002 if test "x$ac_cv_type_bool" = xyes; then :
19003
19004
19005 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
19006
19007
19008 fi
19009
19010
19011
19012 cares_includes_ws2tcpip="\
19013 /* includes start */
19014 #ifdef HAVE_WINDOWS_H
19015 #  ifndef WIN32_LEAN_AND_MEAN
19016 #    define WIN32_LEAN_AND_MEAN
19017 #  endif
19018 #  include <windows.h>
19019 #  ifdef HAVE_WINSOCK2_H
19020 #    include <winsock2.h>
19021 #    ifdef HAVE_WS2TCPIP_H
19022 #       include <ws2tcpip.h>
19023 #    endif
19024 #  endif
19025 #endif
19026 /* includes end */"
19027
19028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19029 $as_echo_n "checking for windows.h... " >&6; }
19030 if ${ac_cv_header_windows_h+:} false; then :
19031   $as_echo_n "(cached) " >&6
19032 else
19033
19034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h.  */
19036
19037
19038 #undef inline
19039 #ifndef WIN32_LEAN_AND_MEAN
19040 #define WIN32_LEAN_AND_MEAN
19041 #endif
19042 #include <windows.h>
19043
19044 int main (void)
19045 {
19046
19047 #if defined(__CYGWIN__) || defined(__CEGCC__)
19048         HAVE_WINDOWS_H shall not be defined.
19049 #else
19050         int dummy=2*WINVER;
19051 #endif
19052
19053  ;
19054  return 0;
19055 }
19056
19057 _ACEOF
19058 if ac_fn_c_try_compile "$LINENO"; then :
19059
19060       ac_cv_header_windows_h="yes"
19061
19062 else
19063
19064       ac_cv_header_windows_h="no"
19065
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068
19069 fi
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19071 $as_echo "$ac_cv_header_windows_h" >&6; }
19072   case "$ac_cv_header_windows_h" in
19073     yes)
19074
19075 cat >>confdefs.h <<_ACEOF
19076 #define HAVE_WINDOWS_H 1
19077 _ACEOF
19078
19079
19080 cat >>confdefs.h <<_ACEOF
19081 #define WIN32_LEAN_AND_MEAN 1
19082 _ACEOF
19083
19084       ;;
19085   esac
19086
19087
19088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19089 $as_echo_n "checking for winsock2.h... " >&6; }
19090 if ${ac_cv_header_winsock2_h+:} false; then :
19091   $as_echo_n "(cached) " >&6
19092 else
19093
19094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h.  */
19096
19097
19098 #undef inline
19099 #ifndef WIN32_LEAN_AND_MEAN
19100 #define WIN32_LEAN_AND_MEAN
19101 #endif
19102 #include <windows.h>
19103 #include <winsock2.h>
19104
19105 int main (void)
19106 {
19107
19108 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19109         HAVE_WINSOCK2_H shall not be defined.
19110 #else
19111         int dummy=2*IPPROTO_ESP;
19112 #endif
19113
19114  ;
19115  return 0;
19116 }
19117
19118 _ACEOF
19119 if ac_fn_c_try_compile "$LINENO"; then :
19120
19121       ac_cv_header_winsock2_h="yes"
19122
19123 else
19124
19125       ac_cv_header_winsock2_h="no"
19126
19127 fi
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129
19130 fi
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19132 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19133   case "$ac_cv_header_winsock2_h" in
19134     yes)
19135
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_WINSOCK2_H 1
19138 _ACEOF
19139
19140       ;;
19141   esac
19142
19143
19144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
19145 $as_echo_n "checking for ws2tcpip.h... " >&6; }
19146 if ${ac_cv_header_ws2tcpip_h+:} false; then :
19147   $as_echo_n "(cached) " >&6
19148 else
19149
19150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h.  */
19152
19153
19154 #undef inline
19155 #ifndef WIN32_LEAN_AND_MEAN
19156 #define WIN32_LEAN_AND_MEAN
19157 #endif
19158 #include <windows.h>
19159 #include <winsock2.h>
19160 #include <ws2tcpip.h>
19161
19162 int main (void)
19163 {
19164
19165 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19166         HAVE_WS2TCPIP_H shall not be defined.
19167 #else
19168         int dummy=2*IP_PKTINFO;
19169 #endif
19170
19171  ;
19172  return 0;
19173 }
19174
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177
19178       ac_cv_header_ws2tcpip_h="yes"
19179
19180 else
19181
19182       ac_cv_header_ws2tcpip_h="no"
19183
19184 fi
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186
19187 fi
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
19189 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
19190   case "$ac_cv_header_ws2tcpip_h" in
19191     yes)
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define HAVE_WS2TCPIP_H 1
19195 _ACEOF
19196
19197       ;;
19198   esac
19199
19200
19201
19202 cares_includes_sys_socket="\
19203 /* includes start */
19204 #ifdef HAVE_SYS_TYPES_H
19205 #  include <sys/types.h>
19206 #endif
19207 #ifdef HAVE_SYS_SOCKET_H
19208 #  include <sys/socket.h>
19209 #endif
19210 /* includes end */"
19211   for ac_header in sys/types.h sys/socket.h
19212 do :
19213   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
19215 "
19216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19217   cat >>confdefs.h <<_ACEOF
19218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19219 _ACEOF
19220
19221 fi
19222
19223 done
19224
19225
19226
19227 cares_preprocess_callconv="\
19228 /* preprocess start */
19229 #ifdef HAVE_WINDOWS_H
19230 #  define FUNCALLCONV __stdcall
19231 #else
19232 #  define FUNCALLCONV
19233 #endif
19234 /* preprocess end */"
19235
19236
19237         #
19238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
19239 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
19240   cares_typeof_ares_socklen_t="unknown"
19241   for arg1 in int SOCKET; do
19242     for arg2 in 'struct sockaddr' void; do
19243       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
19244         if test "$cares_typeof_ares_socklen_t" = "unknown"; then
19245           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246 /* end confdefs.h.  */
19247
19248
19249               $cares_includes_ws2tcpip
19250               $cares_includes_sys_socket
19251               $cares_preprocess_callconv
19252               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
19253
19254 int main (void)
19255 {
19256
19257               $t *lenptr = 0;
19258               if(0 != getpeername(0, 0, lenptr))
19259                 return 1;
19260
19261  ;
19262  return 0;
19263 }
19264
19265 _ACEOF
19266 if ac_fn_c_try_compile "$LINENO"; then :
19267
19268             cares_typeof_ares_socklen_t="$t"
19269
19270 fi
19271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272         fi
19273       done
19274     done
19275   done
19276   for t in socklen_t int; do
19277     if test "$cares_typeof_ares_socklen_t" = "void"; then
19278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h.  */
19280
19281
19282           $cares_includes_sys_socket
19283           typedef $t ares_socklen_t;
19284
19285 int main (void)
19286 {
19287
19288           ares_socklen_t dummy;
19289
19290  ;
19291  return 0;
19292 }
19293
19294 _ACEOF
19295 if ac_fn_c_try_compile "$LINENO"; then :
19296
19297         cares_typeof_ares_socklen_t="$t"
19298
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301     fi
19302   done
19303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
19304 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
19305   if test "$cares_typeof_ares_socklen_t" = "void" ||
19306     test "$cares_typeof_ares_socklen_t" = "unknown"; then
19307     as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
19308   fi
19309   #
19310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
19311 $as_echo_n "checking size of ares_socklen_t... " >&6; }
19312   cares_sizeof_ares_socklen_t="unknown"
19313   cares_pull_headers_socklen_t="unknown"
19314   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
19315     tst_pull_header_checks='none ws2tcpip'
19316     tst_size_checks='4'
19317   else
19318     tst_pull_header_checks='none systypes syssocket'
19319     tst_size_checks='4 8 2'
19320   fi
19321   for tst_size in $tst_size_checks; do
19322     for tst_pull_headers in $tst_pull_header_checks; do
19323       if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
19324         case $tst_pull_headers in
19325           ws2tcpip)
19326             tmp_includes="$cares_includes_ws2tcpip"
19327             ;;
19328           systypes)
19329             tmp_includes="$cares_includes_sys_types"
19330             ;;
19331           syssocket)
19332             tmp_includes="$cares_includes_sys_socket"
19333             ;;
19334           *)
19335             tmp_includes=""
19336             ;;
19337         esac
19338         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h.  */
19340
19341
19342             $tmp_includes
19343             typedef $cares_typeof_ares_socklen_t ares_socklen_t;
19344             typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
19345
19346 int main (void)
19347 {
19348
19349             ares_socklen_t dummy;
19350
19351  ;
19352  return 0;
19353 }
19354
19355 _ACEOF
19356 if ac_fn_c_try_compile "$LINENO"; then :
19357
19358           cares_sizeof_ares_socklen_t="$tst_size"
19359           cares_pull_headers_socklen_t="$tst_pull_headers"
19360
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363       fi
19364     done
19365   done
19366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
19367 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
19368   if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
19369     as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
19370   fi
19371   #
19372   case $cares_pull_headers_socklen_t in
19373     ws2tcpip)
19374
19375 cat >>confdefs.h <<_EOF
19376 #define CARES_PULL_WS2TCPIP_H 1
19377 _EOF
19378
19379       ;;
19380     systypes)
19381
19382 cat >>confdefs.h <<_EOF
19383 #define CARES_PULL_SYS_TYPES_H 1
19384 _EOF
19385
19386       ;;
19387     syssocket)
19388
19389 cat >>confdefs.h <<_EOF
19390 #define CARES_PULL_SYS_TYPES_H 1
19391 _EOF
19392
19393
19394 cat >>confdefs.h <<_EOF
19395 #define CARES_PULL_SYS_SOCKET_H 1
19396 _EOF
19397
19398       ;;
19399   esac
19400
19401 cat >>confdefs.h <<_EOF
19402 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
19403 _EOF
19404
19405
19406 cat >>confdefs.h <<_EOF
19407 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
19408 _EOF
19409
19410
19411
19412
19413   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
19414 #undef inline
19415 #ifdef HAVE_WINDOWS_H
19416 #ifndef WIN32_LEAN_AND_MEAN
19417 #define WIN32_LEAN_AND_MEAN
19418 #endif
19419 #include <windows.h>
19420 #ifdef HAVE_WINSOCK2_H
19421 #include <winsock2.h>
19422 #else
19423 #ifdef HAVE_WINSOCK_H
19424 #include <winsock.h>
19425 #endif
19426 #endif
19427 #else
19428 #ifdef HAVE_SYS_TYPES_H
19429 #include <sys/types.h>
19430 #endif
19431 #ifdef HAVE_SYS_SOCKET_H
19432 #include <sys/socket.h>
19433 #endif
19434 #ifdef HAVE_NETINET_IN_H
19435 #include <netinet/in.h>
19436 #endif
19437 #ifdef HAVE_ARPA_INET_H
19438 #include <arpa/inet.h>
19439 #endif
19440 #endif
19441
19442 "
19443 if test "x$ac_cv_type_in_addr_t" = xyes; then :
19444
19445 else
19446
19447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
19448 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
19449 if ${curl_cv_in_addr_t_equiv+:} false; then :
19450   $as_echo_n "(cached) " >&6
19451 else
19452
19453       curl_cv_in_addr_t_equiv="unknown"
19454       for t in "unsigned long" int size_t unsigned long; do
19455         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
19456           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h.  */
19458
19459
19460 #undef inline
19461 #ifdef HAVE_WINDOWS_H
19462 #ifndef WIN32_LEAN_AND_MEAN
19463 #define WIN32_LEAN_AND_MEAN
19464 #endif
19465 #include <windows.h>
19466 #ifdef HAVE_WINSOCK2_H
19467 #include <winsock2.h>
19468 #else
19469 #ifdef HAVE_WINSOCK_H
19470 #include <winsock.h>
19471 #endif
19472 #endif
19473 #else
19474 #ifdef HAVE_SYS_TYPES_H
19475 #include <sys/types.h>
19476 #endif
19477 #ifdef HAVE_SYS_SOCKET_H
19478 #include <sys/socket.h>
19479 #endif
19480 #ifdef HAVE_NETINET_IN_H
19481 #include <netinet/in.h>
19482 #endif
19483 #ifdef HAVE_ARPA_INET_H
19484 #include <arpa/inet.h>
19485 #endif
19486 #endif
19487
19488 int main (void)
19489 {
19490
19491               $t data = inet_addr ("1.2.3.4");
19492
19493  ;
19494  return 0;
19495 }
19496
19497 _ACEOF
19498 if ac_fn_c_try_link "$LINENO"; then :
19499
19500             curl_cv_in_addr_t_equiv="$t"
19501
19502 fi
19503 rm -f core conftest.err conftest.$ac_objext \
19504     conftest$ac_exeext conftest.$ac_ext
19505         fi
19506       done
19507
19508 fi
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
19510 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
19511     case "$curl_cv_in_addr_t_equiv" in
19512       unknown)
19513         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
19514         ;;
19515       *)
19516
19517 cat >>confdefs.h <<_ACEOF
19518 #define in_addr_t $curl_cv_in_addr_t_equiv
19519 _ACEOF
19520
19521         ;;
19522     esac
19523
19524 fi
19525
19526
19527
19528
19529    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
19530 #undef inline
19531 #ifdef HAVE_WINDOWS_H
19532 #ifndef WIN32_LEAN_AND_MEAN
19533 #define WIN32_LEAN_AND_MEAN
19534 #endif
19535 #include <windows.h>
19536 #ifdef HAVE_WINSOCK2_H
19537 #include <winsock2.h>
19538 #endif
19539 #else
19540 #ifdef HAVE_SYS_TYPES_H
19541 #include <sys/types.h>
19542 #endif
19543 #ifdef HAVE_SYS_SOCKET_H
19544 #include <sys/socket.h>
19545 #endif
19546 #ifdef HAVE_NETINET_IN_H
19547 #include <netinet/in.h>
19548 #endif
19549 #ifdef HAVE_ARPA_INET_H
19550 #include <arpa/inet.h>
19551 #endif
19552 #endif
19553
19554 "
19555 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
19556
19557 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
19558
19559 fi
19560
19561
19562
19563
19564   for ac_header in signal.h
19565 do :
19566   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
19567 if test "x$ac_cv_header_signal_h" = xyes; then :
19568   cat >>confdefs.h <<_ACEOF
19569 #define HAVE_SIGNAL_H 1
19570 _ACEOF
19571
19572 fi
19573
19574 done
19575
19576   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
19577 #ifdef HAVE_SIGNAL_H
19578 #include <signal.h>
19579 #endif
19580
19581 "
19582 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
19583
19584
19585 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
19586
19587
19588 fi
19589
19590   case "$ac_cv_type_sig_atomic_t" in
19591     yes)
19592       #
19593       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
19594 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
19595       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h.  */
19597
19598
19599 #ifdef HAVE_SIGNAL_H
19600 #include <signal.h>
19601 #endif
19602
19603 int main (void)
19604 {
19605
19606           static volatile sig_atomic_t dummy = 0;
19607
19608  ;
19609  return 0;
19610 }
19611
19612 _ACEOF
19613 if ac_fn_c_try_link "$LINENO"; then :
19614
19615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19617         ac_cv_sig_atomic_t_volatile="no"
19618
19619 else
19620
19621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19622 $as_echo "yes" >&6; }
19623         ac_cv_sig_atomic_t_volatile="yes"
19624
19625 fi
19626 rm -f core conftest.err conftest.$ac_objext \
19627     conftest$ac_exeext conftest.$ac_ext
19628       #
19629       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
19630
19631 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
19632
19633       fi
19634       ;;
19635   esac
19636
19637
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19639 $as_echo_n "checking return type of signal handlers... " >&6; }
19640 if ${ac_cv_type_signal+:} false; then :
19641   $as_echo_n "(cached) " >&6
19642 else
19643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h.  */
19645 #include <sys/types.h>
19646 #include <signal.h>
19647
19648 int main (void)
19649 {
19650 return *(signal (0, 0)) (0) == 1;
19651  ;
19652  return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_compile "$LINENO"; then :
19656   ac_cv_type_signal=int
19657 else
19658   ac_cv_type_signal=void
19659 fi
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 fi
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19663 $as_echo "$ac_cv_type_signal" >&6; }
19664
19665 cat >>confdefs.h <<_ACEOF
19666 #define RETSIGTYPE $ac_cv_type_signal
19667 _ACEOF
19668
19669
19670
19671
19672       for ac_header in sys/types.h sys/socket.h
19673 do :
19674   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19675 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19677   cat >>confdefs.h <<_ACEOF
19678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 _ACEOF
19680
19681 fi
19682
19683 done
19684
19685   #
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
19687 $as_echo_n "checking for recv... " >&6; }
19688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h.  */
19690
19691
19692 #undef inline
19693 #ifdef HAVE_WINDOWS_H
19694 #ifndef WIN32_LEAN_AND_MEAN
19695 #define WIN32_LEAN_AND_MEAN
19696 #endif
19697 #include <windows.h>
19698 #ifdef HAVE_WINSOCK2_H
19699 #include <winsock2.h>
19700 #else
19701 #ifdef HAVE_WINSOCK_H
19702 #include <winsock.h>
19703 #endif
19704 #endif
19705 #else
19706 #ifdef HAVE_SYS_TYPES_H
19707 #include <sys/types.h>
19708 #endif
19709 #ifdef HAVE_SYS_SOCKET_H
19710 #include <sys/socket.h>
19711 #endif
19712 #endif
19713
19714 int main (void)
19715 {
19716
19717       recv(0, 0, 0, 0);
19718
19719  ;
19720  return 0;
19721 }
19722
19723 _ACEOF
19724 if ac_fn_c_try_link "$LINENO"; then :
19725
19726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19728     curl_cv_recv="yes"
19729
19730 else
19731
19732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19733 $as_echo "no" >&6; }
19734     curl_cv_recv="no"
19735
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext \
19738     conftest$ac_exeext conftest.$ac_ext
19739   #
19740   if test "$curl_cv_recv" = "yes"; then
19741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
19742 $as_echo_n "checking types of args and return type for recv... " >&6; }
19743 if ${curl_cv_func_recv_args+:} false; then :
19744   $as_echo_n "(cached) " >&6
19745 else
19746
19747       curl_cv_func_recv_args="unknown"
19748       for recv_retv in 'int' 'ssize_t'; do
19749         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19750           for recv_arg2 in 'char *' 'void *'; do
19751             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19752               for recv_arg4 in 'int' 'unsigned int'; do
19753                 if test "$curl_cv_func_recv_args" = "unknown"; then
19754                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h.  */
19756
19757
19758 #undef inline
19759 #ifdef HAVE_WINDOWS_H
19760 #ifndef WIN32_LEAN_AND_MEAN
19761 #define WIN32_LEAN_AND_MEAN
19762 #endif
19763 #include <windows.h>
19764 #ifdef HAVE_WINSOCK2_H
19765 #include <winsock2.h>
19766 #else
19767 #ifdef HAVE_WINSOCK_H
19768 #include <winsock.h>
19769 #endif
19770 #endif
19771 #define RECVCALLCONV PASCAL
19772 #else
19773 #ifdef HAVE_SYS_TYPES_H
19774 #include <sys/types.h>
19775 #endif
19776 #ifdef HAVE_SYS_SOCKET_H
19777 #include <sys/socket.h>
19778 #endif
19779 #define RECVCALLCONV
19780 #endif
19781                       extern $recv_retv RECVCALLCONV
19782                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
19783
19784 int main (void)
19785 {
19786
19787                       $recv_arg1 s=0;
19788                       $recv_arg2 buf=0;
19789                       $recv_arg3 len=0;
19790                       $recv_arg4 flags=0;
19791                       $recv_retv res = recv(s, buf, len, flags);
19792
19793  ;
19794  return 0;
19795 }
19796
19797 _ACEOF
19798 if ac_fn_c_try_compile "$LINENO"; then :
19799
19800                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
19801
19802 fi
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804                 fi
19805               done
19806             done
19807           done
19808         done
19809       done
19810
19811 fi
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
19813 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
19814     if test "$curl_cv_func_recv_args" = "unknown"; then
19815       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
19816     else
19817       recv_prev_IFS=$IFS; IFS=','
19818       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
19819       IFS=$recv_prev_IFS
19820       shift
19821       #
19822
19823 cat >>confdefs.h <<_ACEOF
19824 #define RECV_TYPE_ARG1 $1
19825 _ACEOF
19826
19827
19828 cat >>confdefs.h <<_ACEOF
19829 #define RECV_TYPE_ARG2 $2
19830 _ACEOF
19831
19832
19833 cat >>confdefs.h <<_ACEOF
19834 #define RECV_TYPE_ARG3 $3
19835 _ACEOF
19836
19837
19838 cat >>confdefs.h <<_ACEOF
19839 #define RECV_TYPE_ARG4 $4
19840 _ACEOF
19841
19842
19843 cat >>confdefs.h <<_ACEOF
19844 #define RECV_TYPE_RETV $5
19845 _ACEOF
19846
19847       #
19848
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_RECV 1
19851 _ACEOF
19852
19853       ac_cv_func_recv="yes"
19854     fi
19855   else
19856     as_fn_error $? "Unable to link function recv" "$LINENO" 5
19857   fi
19858
19859
19860       for ac_header in sys/types.h sys/socket.h
19861 do :
19862   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19865   cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 _ACEOF
19868
19869 fi
19870
19871 done
19872
19873   #
19874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
19875 $as_echo_n "checking for recvfrom... " >&6; }
19876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h.  */
19878
19879
19880 #undef inline
19881 #ifdef HAVE_WINDOWS_H
19882 #ifndef WIN32_LEAN_AND_MEAN
19883 #define WIN32_LEAN_AND_MEAN
19884 #endif
19885 #include <windows.h>
19886 #ifdef HAVE_WINSOCK2_H
19887 #include <winsock2.h>
19888 #else
19889 #ifdef HAVE_WINSOCK_H
19890 #include <winsock.h>
19891 #endif
19892 #endif
19893 #else
19894 #ifdef HAVE_SYS_TYPES_H
19895 #include <sys/types.h>
19896 #endif
19897 #ifdef HAVE_SYS_SOCKET_H
19898 #include <sys/socket.h>
19899 #endif
19900 #endif
19901
19902 int main (void)
19903 {
19904
19905       recvfrom(0, 0, 0, 0, 0, 0);
19906
19907  ;
19908  return 0;
19909 }
19910
19911 _ACEOF
19912 if ac_fn_c_try_link "$LINENO"; then :
19913
19914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19915 $as_echo "yes" >&6; }
19916     curl_cv_recvfrom="yes"
19917
19918 else
19919
19920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921 $as_echo "no" >&6; }
19922     curl_cv_recvfrom="no"
19923
19924 fi
19925 rm -f core conftest.err conftest.$ac_objext \
19926     conftest$ac_exeext conftest.$ac_ext
19927   #
19928   if test "$curl_cv_recvfrom" = "yes"; then
19929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
19930 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
19931 if ${curl_cv_func_recvfrom_args+:} false; then :
19932   $as_echo_n "(cached) " >&6
19933 else
19934
19935       curl_cv_func_recvfrom_args="unknown"
19936       for recvfrom_retv in 'int' 'ssize_t'; do
19937         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19938           for recvfrom_arg2 in 'char *' 'void *'; do
19939             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19940               for recvfrom_arg4 in 'int' 'unsigned int'; do
19941                 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
19942                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
19943                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
19944                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h.  */
19946
19947
19948 #undef inline
19949 #ifdef HAVE_WINDOWS_H
19950 #ifndef WIN32_LEAN_AND_MEAN
19951 #define WIN32_LEAN_AND_MEAN
19952 #endif
19953 #include <windows.h>
19954 #ifdef HAVE_WINSOCK2_H
19955 #include <winsock2.h>
19956 #else
19957 #ifdef HAVE_WINSOCK_H
19958 #include <winsock.h>
19959 #endif
19960 #endif
19961 #define RECVFROMCALLCONV PASCAL
19962 #else
19963 #ifdef HAVE_SYS_TYPES_H
19964 #include <sys/types.h>
19965 #endif
19966 #ifdef HAVE_SYS_SOCKET_H
19967 #include <sys/socket.h>
19968 #endif
19969 #define RECVFROMCALLCONV
19970 #endif
19971                           extern $recvfrom_retv RECVFROMCALLCONV
19972                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
19973                                    $recvfrom_arg3, $recvfrom_arg4,
19974                                    $recvfrom_arg5, $recvfrom_arg6);
19975
19976 int main (void)
19977 {
19978
19979                           $recvfrom_arg1 s=0;
19980                           $recvfrom_arg2 buf=0;
19981                           $recvfrom_arg3 len=0;
19982                           $recvfrom_arg4 flags=0;
19983                           $recvfrom_arg5 addr=0;
19984                           $recvfrom_arg6 addrlen=0;
19985                           $recvfrom_retv res=0;
19986                           res = recvfrom(s, buf, len, flags, addr, addrlen);
19987
19988  ;
19989  return 0;
19990 }
19991
19992 _ACEOF
19993 if ac_fn_c_try_compile "$LINENO"; then :
19994
19995                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
19996
19997 fi
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19999                     fi
20000                   done
20001                 done
20002               done
20003             done
20004           done
20005         done
20006       done
20007
20008 fi
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
20010 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
20011     # Nearly last minute change for this release starts here
20012
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_RECVFROM 1
20015 _ACEOF
20016
20017     ac_cv_func_recvfrom="yes"
20018     # Nearly last minute change for this release ends here
20019     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
20020       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
20021 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
20022     else
20023       recvfrom_prev_IFS=$IFS; IFS=','
20024       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
20025       IFS=$recvfrom_prev_IFS
20026       shift
20027       #
20028       recvfrom_ptrt_arg2=$2
20029       recvfrom_qual_ptrt_arg5=$5
20030       recvfrom_ptrt_arg6=$6
20031       #
20032
20033 cat >>confdefs.h <<_ACEOF
20034 #define RECVFROM_TYPE_ARG1 $1
20035 _ACEOF
20036
20037
20038 cat >>confdefs.h <<_ACEOF
20039 #define RECVFROM_TYPE_ARG3 $3
20040 _ACEOF
20041
20042
20043 cat >>confdefs.h <<_ACEOF
20044 #define RECVFROM_TYPE_ARG4 $4
20045 _ACEOF
20046
20047
20048 cat >>confdefs.h <<_ACEOF
20049 #define RECVFROM_TYPE_RETV $7
20050 _ACEOF
20051
20052       #
20053       prev_sh_opts=$-
20054       #
20055       case $prev_sh_opts in
20056         *f*)
20057           ;;
20058         *)
20059           set -f
20060           ;;
20061       esac
20062       #
20063       case "$recvfrom_qual_ptrt_arg5" in
20064         const*)
20065           recvfrom_qual_arg5=const
20066           recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
20067         ;;
20068         *)
20069           recvfrom_qual_arg5=
20070           recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
20071         ;;
20072       esac
20073       #
20074       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
20075       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
20076       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
20077       #
20078
20079 cat >>confdefs.h <<_ACEOF
20080 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
20081 _ACEOF
20082
20083
20084 cat >>confdefs.h <<_ACEOF
20085 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
20086 _ACEOF
20087
20088
20089 cat >>confdefs.h <<_ACEOF
20090 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
20091 _ACEOF
20092
20093
20094 cat >>confdefs.h <<_ACEOF
20095 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
20096 _ACEOF
20097
20098       #
20099       if test "$recvfrom_type_arg2" = "void"; then
20100
20101 cat >>confdefs.h <<_ACEOF
20102 #define RECVFROM_TYPE_ARG2_IS_VOID 1
20103 _ACEOF
20104
20105       fi
20106       if test "$recvfrom_type_arg5" = "void"; then
20107
20108 cat >>confdefs.h <<_ACEOF
20109 #define RECVFROM_TYPE_ARG5_IS_VOID 1
20110 _ACEOF
20111
20112       fi
20113       if test "$recvfrom_type_arg6" = "void"; then
20114
20115 cat >>confdefs.h <<_ACEOF
20116 #define RECVFROM_TYPE_ARG6_IS_VOID 1
20117 _ACEOF
20118
20119       fi
20120       #
20121       case $prev_sh_opts in
20122         *f*)
20123           ;;
20124         *)
20125           set +f
20126           ;;
20127       esac
20128       #
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_RECVFROM 1
20132 _ACEOF
20133
20134       ac_cv_func_recvfrom="yes"
20135     fi
20136   else
20137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
20138 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
20140 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
20141   fi
20142
20143
20144       for ac_header in sys/types.h sys/socket.h
20145 do :
20146   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20149   cat >>confdefs.h <<_ACEOF
20150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20151 _ACEOF
20152
20153 fi
20154
20155 done
20156
20157   #
20158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
20159 $as_echo_n "checking for send... " >&6; }
20160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h.  */
20162
20163
20164 #undef inline
20165 #ifdef HAVE_WINDOWS_H
20166 #ifndef WIN32_LEAN_AND_MEAN
20167 #define WIN32_LEAN_AND_MEAN
20168 #endif
20169 #include <windows.h>
20170 #ifdef HAVE_WINSOCK2_H
20171 #include <winsock2.h>
20172 #else
20173 #ifdef HAVE_WINSOCK_H
20174 #include <winsock.h>
20175 #endif
20176 #endif
20177 #else
20178 #ifdef HAVE_SYS_TYPES_H
20179 #include <sys/types.h>
20180 #endif
20181 #ifdef HAVE_SYS_SOCKET_H
20182 #include <sys/socket.h>
20183 #endif
20184 #endif
20185
20186 int main (void)
20187 {
20188
20189       send(0, 0, 0, 0);
20190
20191  ;
20192  return 0;
20193 }
20194
20195 _ACEOF
20196 if ac_fn_c_try_link "$LINENO"; then :
20197
20198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20199 $as_echo "yes" >&6; }
20200     curl_cv_send="yes"
20201
20202 else
20203
20204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20205 $as_echo "no" >&6; }
20206     curl_cv_send="no"
20207
20208 fi
20209 rm -f core conftest.err conftest.$ac_objext \
20210     conftest$ac_exeext conftest.$ac_ext
20211   #
20212   if test "$curl_cv_send" = "yes"; then
20213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
20214 $as_echo_n "checking types of args and return type for send... " >&6; }
20215 if ${curl_cv_func_send_args+:} false; then :
20216   $as_echo_n "(cached) " >&6
20217 else
20218
20219       curl_cv_func_send_args="unknown"
20220       for send_retv in 'int' 'ssize_t'; do
20221         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
20222           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
20223             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
20224               for send_arg4 in 'int' 'unsigned int'; do
20225                 if test "$curl_cv_func_send_args" = "unknown"; then
20226                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h.  */
20228
20229
20230 #undef inline
20231 #ifdef HAVE_WINDOWS_H
20232 #ifndef WIN32_LEAN_AND_MEAN
20233 #define WIN32_LEAN_AND_MEAN
20234 #endif
20235 #include <windows.h>
20236 #ifdef HAVE_WINSOCK2_H
20237 #include <winsock2.h>
20238 #else
20239 #ifdef HAVE_WINSOCK_H
20240 #include <winsock.h>
20241 #endif
20242 #endif
20243 #define SENDCALLCONV PASCAL
20244 #else
20245 #ifdef HAVE_SYS_TYPES_H
20246 #include <sys/types.h>
20247 #endif
20248 #ifdef HAVE_SYS_SOCKET_H
20249 #include <sys/socket.h>
20250 #endif
20251 #define SENDCALLCONV
20252 #endif
20253                       extern $send_retv SENDCALLCONV
20254                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
20255
20256 int main (void)
20257 {
20258
20259                       $send_arg1 s=0;
20260                       $send_arg3 len=0;
20261                       $send_arg4 flags=0;
20262                       $send_retv res = send(s, 0, len, flags);
20263
20264  ;
20265  return 0;
20266 }
20267
20268 _ACEOF
20269 if ac_fn_c_try_compile "$LINENO"; then :
20270
20271                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
20272
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275                 fi
20276               done
20277             done
20278           done
20279         done
20280       done
20281
20282 fi
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
20284 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
20285     if test "$curl_cv_func_send_args" = "unknown"; then
20286       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
20287     else
20288       send_prev_IFS=$IFS; IFS=','
20289       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
20290       IFS=$send_prev_IFS
20291       shift
20292       #
20293       send_qual_type_arg2=$2
20294       #
20295
20296 cat >>confdefs.h <<_ACEOF
20297 #define SEND_TYPE_ARG1 $1
20298 _ACEOF
20299
20300
20301 cat >>confdefs.h <<_ACEOF
20302 #define SEND_TYPE_ARG3 $3
20303 _ACEOF
20304
20305
20306 cat >>confdefs.h <<_ACEOF
20307 #define SEND_TYPE_ARG4 $4
20308 _ACEOF
20309
20310
20311 cat >>confdefs.h <<_ACEOF
20312 #define SEND_TYPE_RETV $5
20313 _ACEOF
20314
20315       #
20316       prev_sh_opts=$-
20317       #
20318       case $prev_sh_opts in
20319         *f*)
20320           ;;
20321         *)
20322           set -f
20323           ;;
20324       esac
20325       #
20326       case "$send_qual_type_arg2" in
20327         const*)
20328           send_qual_arg2=const
20329           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
20330         ;;
20331         *)
20332           send_qual_arg2=
20333           send_type_arg2=$send_qual_type_arg2
20334         ;;
20335       esac
20336       #
20337
20338 cat >>confdefs.h <<_ACEOF
20339 #define SEND_QUAL_ARG2 $send_qual_arg2
20340 _ACEOF
20341
20342
20343 cat >>confdefs.h <<_ACEOF
20344 #define SEND_TYPE_ARG2 $send_type_arg2
20345 _ACEOF
20346
20347       #
20348       case $prev_sh_opts in
20349         *f*)
20350           ;;
20351         *)
20352           set +f
20353           ;;
20354       esac
20355       #
20356
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_SEND 1
20359 _ACEOF
20360
20361       ac_cv_func_send="yes"
20362     fi
20363   else
20364     as_fn_error $? "Unable to link function send" "$LINENO" 5
20365   fi
20366
20367
20368   for ac_header in sys/types.h sys/socket.h
20369 do :
20370   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20373   cat >>confdefs.h <<_ACEOF
20374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20375 _ACEOF
20376
20377 fi
20378
20379 done
20380
20381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20382 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20383 if ${ac_cv_msg_nosignal+:} false; then :
20384   $as_echo_n "(cached) " >&6
20385 else
20386
20387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h.  */
20389
20390
20391 #undef inline
20392 #ifdef HAVE_WINDOWS_H
20393 #ifndef WIN32_LEAN_AND_MEAN
20394 #define WIN32_LEAN_AND_MEAN
20395 #endif
20396 #include <windows.h>
20397 #ifdef HAVE_WINSOCK2_H
20398 #include <winsock2.h>
20399 #else
20400 #ifdef HAVE_WINSOCK_H
20401 #include <winsock.h>
20402 #endif
20403 #endif
20404 #else
20405 #ifdef HAVE_SYS_TYPES_H
20406 #include <sys/types.h>
20407 #endif
20408 #ifdef HAVE_SYS_SOCKET_H
20409 #include <sys/socket.h>
20410 #endif
20411 #endif
20412
20413 int main (void)
20414 {
20415
20416         int flag=MSG_NOSIGNAL;
20417
20418  ;
20419  return 0;
20420 }
20421
20422 _ACEOF
20423 if ac_fn_c_try_compile "$LINENO"; then :
20424
20425       ac_cv_msg_nosignal="yes"
20426
20427 else
20428
20429       ac_cv_msg_nosignal="no"
20430
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433
20434 fi
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
20436 $as_echo "$ac_cv_msg_nosignal" >&6; }
20437   case "$ac_cv_msg_nosignal" in
20438     yes)
20439
20440 cat >>confdefs.h <<_ACEOF
20441 #define HAVE_MSG_NOSIGNAL 1
20442 _ACEOF
20443
20444       ;;
20445   esac
20446
20447
20448
20449 cares_includes_socket="\
20450 /* includes start */
20451 #ifdef HAVE_SYS_TYPES_H
20452 #  include <sys/types.h>
20453 #endif
20454 #ifdef HAVE_SOCKET_H
20455 #  include <socket.h>
20456 #endif
20457 /* includes end */"
20458   for ac_header in sys/types.h socket.h
20459 do :
20460   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
20462 "
20463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20464   cat >>confdefs.h <<_ACEOF
20465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20466 _ACEOF
20467
20468 fi
20469
20470 done
20471
20472
20473
20474       #
20475   tst_links_closesocket="unknown"
20476   tst_proto_closesocket="unknown"
20477   tst_compi_closesocket="unknown"
20478   tst_allow_closesocket="unknown"
20479   #
20480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
20481 $as_echo_n "checking if closesocket can be linked... " >&6; }
20482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h.  */
20484
20485
20486       $cares_includes_winsock2
20487       $cares_includes_socket
20488
20489 int main (void)
20490 {
20491
20492       if(0 != closesocket(0))
20493         return 1;
20494
20495  ;
20496  return 0;
20497 }
20498
20499 _ACEOF
20500 if ac_fn_c_try_link "$LINENO"; then :
20501
20502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20503 $as_echo "yes" >&6; }
20504     tst_links_closesocket="yes"
20505
20506 else
20507
20508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509 $as_echo "no" >&6; }
20510     tst_links_closesocket="no"
20511
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext \
20514     conftest$ac_exeext conftest.$ac_ext
20515   #
20516   if test "$tst_links_closesocket" = "yes"; then
20517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
20518 $as_echo_n "checking if closesocket is prototyped... " >&6; }
20519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 /* end confdefs.h.  */
20521
20522       $cares_includes_winsock2
20523       $cares_includes_socket
20524
20525 _ACEOF
20526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527   $EGREP "closesocket" >/dev/null 2>&1; then :
20528
20529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20530 $as_echo "yes" >&6; }
20531       tst_proto_closesocket="yes"
20532
20533 else
20534
20535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20536 $as_echo "no" >&6; }
20537       tst_proto_closesocket="no"
20538
20539 fi
20540 rm -f conftest*
20541
20542   fi
20543   #
20544   if test "$tst_proto_closesocket" = "yes"; then
20545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
20546 $as_echo_n "checking if closesocket is compilable... " >&6; }
20547     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h.  */
20549
20550
20551         $cares_includes_winsock2
20552         $cares_includes_socket
20553
20554 int main (void)
20555 {
20556
20557         if(0 != closesocket(0))
20558           return 1;
20559
20560  ;
20561  return 0;
20562 }
20563
20564 _ACEOF
20565 if ac_fn_c_try_compile "$LINENO"; then :
20566
20567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20568 $as_echo "yes" >&6; }
20569       tst_compi_closesocket="yes"
20570
20571 else
20572
20573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20574 $as_echo "no" >&6; }
20575       tst_compi_closesocket="no"
20576
20577 fi
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579   fi
20580   #
20581   if test "$tst_compi_closesocket" = "yes"; then
20582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
20583 $as_echo_n "checking if closesocket usage allowed... " >&6; }
20584     if test "x$cares_disallow_closesocket" != "xyes"; then
20585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20586 $as_echo "yes" >&6; }
20587       tst_allow_closesocket="yes"
20588     else
20589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590 $as_echo "no" >&6; }
20591       tst_allow_closesocket="no"
20592     fi
20593   fi
20594   #
20595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
20596 $as_echo_n "checking if closesocket might be used... " >&6; }
20597   if test "$tst_links_closesocket" = "yes" &&
20598      test "$tst_proto_closesocket" = "yes" &&
20599      test "$tst_compi_closesocket" = "yes" &&
20600      test "$tst_allow_closesocket" = "yes"; then
20601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20602 $as_echo "yes" >&6; }
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_CLOSESOCKET 1
20606 _ACEOF
20607
20608     ac_cv_func_closesocket="yes"
20609   else
20610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20611 $as_echo "no" >&6; }
20612     ac_cv_func_closesocket="no"
20613   fi
20614
20615
20616     #
20617   tst_links_closesocket_camel="unknown"
20618   tst_proto_closesocket_camel="unknown"
20619   tst_compi_closesocket_camel="unknown"
20620   tst_allow_closesocket_camel="unknown"
20621   #
20622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
20623 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
20624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625 /* end confdefs.h.  */
20626
20627
20628       $cares_includes_sys_socket
20629
20630 int main (void)
20631 {
20632
20633       if(0 != CloseSocket(0))
20634         return 1;
20635
20636  ;
20637  return 0;
20638 }
20639
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642
20643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20644 $as_echo "yes" >&6; }
20645     tst_links_closesocket_camel="yes"
20646
20647 else
20648
20649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20650 $as_echo "no" >&6; }
20651     tst_links_closesocket_camel="no"
20652
20653 fi
20654 rm -f core conftest.err conftest.$ac_objext \
20655     conftest$ac_exeext conftest.$ac_ext
20656   #
20657   if test "$tst_links_closesocket_camel" = "yes"; then
20658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
20659 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
20660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h.  */
20662
20663       $cares_includes_sys_socket
20664
20665 _ACEOF
20666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20667   $EGREP "CloseSocket" >/dev/null 2>&1; then :
20668
20669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20670 $as_echo "yes" >&6; }
20671       tst_proto_closesocket_camel="yes"
20672
20673 else
20674
20675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676 $as_echo "no" >&6; }
20677       tst_proto_closesocket_camel="no"
20678
20679 fi
20680 rm -f conftest*
20681
20682   fi
20683   #
20684   if test "$tst_proto_closesocket_camel" = "yes"; then
20685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
20686 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
20687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h.  */
20689
20690
20691         $cares_includes_sys_socket
20692
20693 int main (void)
20694 {
20695
20696         if(0 != CloseSocket(0))
20697           return 1;
20698
20699  ;
20700  return 0;
20701 }
20702
20703 _ACEOF
20704 if ac_fn_c_try_compile "$LINENO"; then :
20705
20706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20707 $as_echo "yes" >&6; }
20708       tst_compi_closesocket_camel="yes"
20709
20710 else
20711
20712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20713 $as_echo "no" >&6; }
20714       tst_compi_closesocket_camel="no"
20715
20716 fi
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718   fi
20719   #
20720   if test "$tst_compi_closesocket_camel" = "yes"; then
20721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
20722 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
20723     if test "x$cares_disallow_closesocket_camel" != "xyes"; then
20724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20725 $as_echo "yes" >&6; }
20726       tst_allow_closesocket_camel="yes"
20727     else
20728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 $as_echo "no" >&6; }
20730       tst_allow_closesocket_camel="no"
20731     fi
20732   fi
20733   #
20734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
20735 $as_echo_n "checking if CloseSocket might be used... " >&6; }
20736   if test "$tst_links_closesocket_camel" = "yes" &&
20737      test "$tst_proto_closesocket_camel" = "yes" &&
20738      test "$tst_compi_closesocket_camel" = "yes" &&
20739      test "$tst_allow_closesocket_camel" = "yes"; then
20740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20741 $as_echo "yes" >&6; }
20742
20743 cat >>confdefs.h <<_ACEOF
20744 #define HAVE_CLOSESOCKET_CAMEL 1
20745 _ACEOF
20746
20747     ac_cv_func_closesocket_camel="yes"
20748   else
20749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20750 $as_echo "no" >&6; }
20751     ac_cv_func_closesocket_camel="no"
20752   fi
20753
20754
20755         #
20756   tst_links_connect="unknown"
20757   tst_proto_connect="unknown"
20758   tst_compi_connect="unknown"
20759   tst_allow_connect="unknown"
20760   #
20761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
20762 $as_echo_n "checking if connect can be linked... " >&6; }
20763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h.  */
20765
20766
20767       $cares_includes_winsock2
20768       $cares_includes_sys_socket
20769       $cares_includes_socket
20770
20771 int main (void)
20772 {
20773
20774       if(0 != connect(0, 0, 0))
20775         return 1;
20776
20777  ;
20778  return 0;
20779 }
20780
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783
20784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20785 $as_echo "yes" >&6; }
20786     tst_links_connect="yes"
20787
20788 else
20789
20790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 $as_echo "no" >&6; }
20792     tst_links_connect="no"
20793
20794 fi
20795 rm -f core conftest.err conftest.$ac_objext \
20796     conftest$ac_exeext conftest.$ac_ext
20797   #
20798   if test "$tst_links_connect" = "yes"; then
20799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
20800 $as_echo_n "checking if connect is prototyped... " >&6; }
20801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h.  */
20803
20804       $cares_includes_winsock2
20805       $cares_includes_sys_socket
20806       $cares_includes_socket
20807
20808 _ACEOF
20809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20810   $EGREP "connect" >/dev/null 2>&1; then :
20811
20812       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20813 $as_echo "yes" >&6; }
20814       tst_proto_connect="yes"
20815
20816 else
20817
20818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20819 $as_echo "no" >&6; }
20820       tst_proto_connect="no"
20821
20822 fi
20823 rm -f conftest*
20824
20825   fi
20826   #
20827   if test "$tst_proto_connect" = "yes"; then
20828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
20829 $as_echo_n "checking if connect is compilable... " >&6; }
20830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h.  */
20832
20833
20834         $cares_includes_winsock2
20835         $cares_includes_sys_socket
20836         $cares_includes_socket
20837
20838 int main (void)
20839 {
20840
20841         if(0 != connect(0, 0, 0))
20842           return 1;
20843
20844  ;
20845  return 0;
20846 }
20847
20848 _ACEOF
20849 if ac_fn_c_try_compile "$LINENO"; then :
20850
20851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20852 $as_echo "yes" >&6; }
20853       tst_compi_connect="yes"
20854
20855 else
20856
20857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20858 $as_echo "no" >&6; }
20859       tst_compi_connect="no"
20860
20861 fi
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863   fi
20864   #
20865   if test "$tst_compi_connect" = "yes"; then
20866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
20867 $as_echo_n "checking if connect usage allowed... " >&6; }
20868     if test "x$cares_disallow_connect" != "xyes"; then
20869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870 $as_echo "yes" >&6; }
20871       tst_allow_connect="yes"
20872     else
20873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20875       tst_allow_connect="no"
20876     fi
20877   fi
20878   #
20879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
20880 $as_echo_n "checking if connect might be used... " >&6; }
20881   if test "$tst_links_connect" = "yes" &&
20882      test "$tst_proto_connect" = "yes" &&
20883      test "$tst_compi_connect" = "yes" &&
20884      test "$tst_allow_connect" = "yes"; then
20885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886 $as_echo "yes" >&6; }
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_CONNECT 1
20890 _ACEOF
20891
20892     ac_cv_func_connect="yes"
20893   else
20894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20895 $as_echo "no" >&6; }
20896     ac_cv_func_connect="no"
20897   fi
20898
20899
20900 cares_includes_fcntl="\
20901 /* includes start */
20902 #ifdef HAVE_SYS_TYPES_H
20903 #  include <sys/types.h>
20904 #endif
20905 #ifdef HAVE_UNISTD_H
20906 #  include <unistd.h>
20907 #endif
20908 #ifdef HAVE_FCNTL_H
20909 #  include <fcntl.h>
20910 #endif
20911 /* includes end */"
20912   for ac_header in sys/types.h unistd.h fcntl.h
20913 do :
20914   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
20916 "
20917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20918   cat >>confdefs.h <<_ACEOF
20919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20920 _ACEOF
20921
20922 fi
20923
20924 done
20925
20926
20927
20928     #
20929   tst_links_fcntl="unknown"
20930   tst_proto_fcntl="unknown"
20931   tst_compi_fcntl="unknown"
20932   tst_allow_fcntl="unknown"
20933   #
20934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
20935 $as_echo_n "checking if fcntl can be linked... " >&6; }
20936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h.  */
20938
20939
20940 #define fcntl innocuous_fcntl
20941 #ifdef __STDC__
20942 # include <limits.h>
20943 #else
20944 # include <assert.h>
20945 #endif
20946 #undef fcntl
20947 #ifdef __cplusplus
20948 extern "C"
20949 #endif
20950 char fcntl ();
20951 #if defined __stub_fcntl || defined __stub___fcntl
20952 choke me
20953 #endif
20954
20955 int main (void)
20956 {
20957 return fcntl ();
20958  ;
20959  return 0;
20960 }
20961
20962 _ACEOF
20963 if ac_fn_c_try_link "$LINENO"; then :
20964
20965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20966 $as_echo "yes" >&6; }
20967     tst_links_fcntl="yes"
20968
20969 else
20970
20971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20972 $as_echo "no" >&6; }
20973     tst_links_fcntl="no"
20974
20975 fi
20976 rm -f core conftest.err conftest.$ac_objext \
20977     conftest$ac_exeext conftest.$ac_ext
20978   #
20979   if test "$tst_links_fcntl" = "yes"; then
20980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
20981 $as_echo_n "checking if fcntl is prototyped... " >&6; }
20982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h.  */
20984
20985       $cares_includes_fcntl
20986
20987 _ACEOF
20988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20989   $EGREP "fcntl" >/dev/null 2>&1; then :
20990
20991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20992 $as_echo "yes" >&6; }
20993       tst_proto_fcntl="yes"
20994
20995 else
20996
20997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20998 $as_echo "no" >&6; }
20999       tst_proto_fcntl="no"
21000
21001 fi
21002 rm -f conftest*
21003
21004   fi
21005   #
21006   if test "$tst_proto_fcntl" = "yes"; then
21007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
21008 $as_echo_n "checking if fcntl is compilable... " >&6; }
21009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h.  */
21011
21012
21013         $cares_includes_fcntl
21014
21015 int main (void)
21016 {
21017
21018         if(0 != fcntl(0, 0, 0))
21019           return 1;
21020
21021  ;
21022  return 0;
21023 }
21024
21025 _ACEOF
21026 if ac_fn_c_try_compile "$LINENO"; then :
21027
21028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21029 $as_echo "yes" >&6; }
21030       tst_compi_fcntl="yes"
21031
21032 else
21033
21034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21035 $as_echo "no" >&6; }
21036       tst_compi_fcntl="no"
21037
21038 fi
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040   fi
21041   #
21042   if test "$tst_compi_fcntl" = "yes"; then
21043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
21044 $as_echo_n "checking if fcntl usage allowed... " >&6; }
21045     if test "x$cares_disallow_fcntl" != "xyes"; then
21046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21047 $as_echo "yes" >&6; }
21048       tst_allow_fcntl="yes"
21049     else
21050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052       tst_allow_fcntl="no"
21053     fi
21054   fi
21055   #
21056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
21057 $as_echo_n "checking if fcntl might be used... " >&6; }
21058   if test "$tst_links_fcntl" = "yes" &&
21059      test "$tst_proto_fcntl" = "yes" &&
21060      test "$tst_compi_fcntl" = "yes" &&
21061      test "$tst_allow_fcntl" = "yes"; then
21062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21063 $as_echo "yes" >&6; }
21064
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE_FCNTL 1
21067 _ACEOF
21068
21069     ac_cv_func_fcntl="yes"
21070
21071   #
21072   tst_compi_fcntl_o_nonblock="unknown"
21073   tst_allow_fcntl_o_nonblock="unknown"
21074   #
21075   case $host_os in
21076     sunos4* | aix3* | beos*)
21077             cares_disallow_fcntl_o_nonblock="yes"
21078       ;;
21079   esac
21080   #
21081   if test "$ac_cv_func_fcntl" = "yes"; then
21082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
21083 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
21084     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h.  */
21086
21087
21088         $cares_includes_fcntl
21089
21090 int main (void)
21091 {
21092
21093         int flags = 0;
21094         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
21095           return 1;
21096
21097  ;
21098  return 0;
21099 }
21100
21101 _ACEOF
21102 if ac_fn_c_try_compile "$LINENO"; then :
21103
21104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21105 $as_echo "yes" >&6; }
21106       tst_compi_fcntl_o_nonblock="yes"
21107
21108 else
21109
21110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111 $as_echo "no" >&6; }
21112       tst_compi_fcntl_o_nonblock="no"
21113
21114 fi
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116   fi
21117   #
21118   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
21119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
21120 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
21121     if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
21122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21123 $as_echo "yes" >&6; }
21124       tst_allow_fcntl_o_nonblock="yes"
21125     else
21126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127 $as_echo "no" >&6; }
21128       tst_allow_fcntl_o_nonblock="no"
21129     fi
21130   fi
21131   #
21132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
21133 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
21134   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
21135      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
21136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21137 $as_echo "yes" >&6; }
21138
21139 cat >>confdefs.h <<_ACEOF
21140 #define HAVE_FCNTL_O_NONBLOCK 1
21141 _ACEOF
21142
21143     ac_cv_func_fcntl_o_nonblock="yes"
21144   else
21145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21146 $as_echo "no" >&6; }
21147     ac_cv_func_fcntl_o_nonblock="no"
21148   fi
21149
21150   else
21151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21152 $as_echo "no" >&6; }
21153     ac_cv_func_fcntl="no"
21154   fi
21155
21156
21157 cares_includes_netdb="\
21158 /* includes start */
21159 #ifdef HAVE_SYS_TYPES_H
21160 #  include <sys/types.h>
21161 #endif
21162 #ifdef HAVE_NETDB_H
21163 #  include <netdb.h>
21164 #endif
21165 /* includes end */"
21166   for ac_header in sys/types.h netdb.h
21167 do :
21168   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
21170 "
21171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21172   cat >>confdefs.h <<_ACEOF
21173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 _ACEOF
21175
21176 fi
21177
21178 done
21179
21180
21181
21182         #
21183   tst_links_freeaddrinfo="unknown"
21184   tst_proto_freeaddrinfo="unknown"
21185   tst_compi_freeaddrinfo="unknown"
21186   tst_allow_freeaddrinfo="unknown"
21187   #
21188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
21189 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
21190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h.  */
21192
21193
21194       $cares_includes_ws2tcpip
21195       $cares_includes_sys_socket
21196       $cares_includes_netdb
21197
21198 int main (void)
21199 {
21200
21201       freeaddrinfo(0);
21202
21203  ;
21204  return 0;
21205 }
21206
21207 _ACEOF
21208 if ac_fn_c_try_link "$LINENO"; then :
21209
21210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21211 $as_echo "yes" >&6; }
21212     tst_links_freeaddrinfo="yes"
21213
21214 else
21215
21216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 $as_echo "no" >&6; }
21218     tst_links_freeaddrinfo="no"
21219
21220 fi
21221 rm -f core conftest.err conftest.$ac_objext \
21222     conftest$ac_exeext conftest.$ac_ext
21223   #
21224   if test "$tst_links_freeaddrinfo" = "yes"; then
21225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
21226 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
21227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h.  */
21229
21230       $cares_includes_ws2tcpip
21231       $cares_includes_sys_socket
21232       $cares_includes_netdb
21233
21234 _ACEOF
21235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21236   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
21237
21238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21239 $as_echo "yes" >&6; }
21240       tst_proto_freeaddrinfo="yes"
21241
21242 else
21243
21244       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21246       tst_proto_freeaddrinfo="no"
21247
21248 fi
21249 rm -f conftest*
21250
21251   fi
21252   #
21253   if test "$tst_proto_freeaddrinfo" = "yes"; then
21254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
21255 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
21256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h.  */
21258
21259
21260         $cares_includes_ws2tcpip
21261         $cares_includes_sys_socket
21262         $cares_includes_netdb
21263
21264 int main (void)
21265 {
21266
21267         freeaddrinfo(0);
21268
21269  ;
21270  return 0;
21271 }
21272
21273 _ACEOF
21274 if ac_fn_c_try_compile "$LINENO"; then :
21275
21276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21277 $as_echo "yes" >&6; }
21278       tst_compi_freeaddrinfo="yes"
21279
21280 else
21281
21282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21283 $as_echo "no" >&6; }
21284       tst_compi_freeaddrinfo="no"
21285
21286 fi
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288   fi
21289   #
21290   if test "$tst_compi_freeaddrinfo" = "yes"; then
21291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
21292 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
21293     if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
21294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21295 $as_echo "yes" >&6; }
21296       tst_allow_freeaddrinfo="yes"
21297     else
21298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21300       tst_allow_freeaddrinfo="no"
21301     fi
21302   fi
21303   #
21304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
21305 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
21306   if test "$tst_links_freeaddrinfo" = "yes" &&
21307      test "$tst_proto_freeaddrinfo" = "yes" &&
21308      test "$tst_compi_freeaddrinfo" = "yes" &&
21309      test "$tst_allow_freeaddrinfo" = "yes"; then
21310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21311 $as_echo "yes" >&6; }
21312
21313 cat >>confdefs.h <<_ACEOF
21314 #define HAVE_FREEADDRINFO 1
21315 _ACEOF
21316
21317     ac_cv_func_freeaddrinfo="yes"
21318   else
21319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21320 $as_echo "no" >&6; }
21321     ac_cv_func_freeaddrinfo="no"
21322   fi
21323
21324
21325 cares_includes_stdlib="\
21326 /* includes start */
21327 #ifdef HAVE_SYS_TYPES_H
21328 #  include <sys/types.h>
21329 #endif
21330 #ifdef HAVE_STDLIB_H
21331 #  include <stdlib.h>
21332 #endif
21333 /* includes end */"
21334   for ac_header in sys/types.h stdlib.h
21335 do :
21336   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
21338 "
21339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21340   cat >>confdefs.h <<_ACEOF
21341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21342 _ACEOF
21343
21344 fi
21345
21346 done
21347
21348
21349
21350 cares_includes_string="\
21351 /* includes start */
21352 #ifdef HAVE_SYS_TYPES_H
21353 #  include <sys/types.h>
21354 #endif
21355 #ifdef HAVE_STRING_H
21356 #  include <string.h>
21357 #endif
21358 #ifdef HAVE_STRINGS_H
21359 #  include <strings.h>
21360 #endif
21361 /* includes end */"
21362   for ac_header in sys/types.h string.h strings.h
21363 do :
21364   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21365 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
21366 "
21367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21368   cat >>confdefs.h <<_ACEOF
21369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21370 _ACEOF
21371
21372 fi
21373
21374 done
21375
21376
21377
21378               #
21379   tst_links_getaddrinfo="unknown"
21380   tst_proto_getaddrinfo="unknown"
21381   tst_compi_getaddrinfo="unknown"
21382   tst_works_getaddrinfo="unknown"
21383   tst_allow_getaddrinfo="unknown"
21384   tst_tsafe_getaddrinfo="unknown"
21385   #
21386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
21387 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
21388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21389 /* end confdefs.h.  */
21390
21391
21392       $cares_includes_ws2tcpip
21393       $cares_includes_sys_socket
21394       $cares_includes_netdb
21395
21396 int main (void)
21397 {
21398
21399       if(0 != getaddrinfo(0, 0, 0, 0))
21400         return 1;
21401
21402  ;
21403  return 0;
21404 }
21405
21406 _ACEOF
21407 if ac_fn_c_try_link "$LINENO"; then :
21408
21409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21410 $as_echo "yes" >&6; }
21411     tst_links_getaddrinfo="yes"
21412
21413 else
21414
21415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417     tst_links_getaddrinfo="no"
21418
21419 fi
21420 rm -f core conftest.err conftest.$ac_objext \
21421     conftest$ac_exeext conftest.$ac_ext
21422   #
21423   if test "$tst_links_getaddrinfo" = "yes"; then
21424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
21425 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
21426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h.  */
21428
21429       $cares_includes_ws2tcpip
21430       $cares_includes_sys_socket
21431       $cares_includes_netdb
21432
21433 _ACEOF
21434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
21436
21437       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21438 $as_echo "yes" >&6; }
21439       tst_proto_getaddrinfo="yes"
21440
21441 else
21442
21443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21445       tst_proto_getaddrinfo="no"
21446
21447 fi
21448 rm -f conftest*
21449
21450   fi
21451   #
21452   if test "$tst_proto_getaddrinfo" = "yes"; then
21453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
21454 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
21455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h.  */
21457
21458
21459         $cares_includes_ws2tcpip
21460         $cares_includes_sys_socket
21461         $cares_includes_netdb
21462
21463 int main (void)
21464 {
21465
21466         if(0 != getaddrinfo(0, 0, 0, 0))
21467           return 1;
21468
21469  ;
21470  return 0;
21471 }
21472
21473 _ACEOF
21474 if ac_fn_c_try_compile "$LINENO"; then :
21475
21476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477 $as_echo "yes" >&6; }
21478       tst_compi_getaddrinfo="yes"
21479
21480 else
21481
21482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21483 $as_echo "no" >&6; }
21484       tst_compi_getaddrinfo="no"
21485
21486 fi
21487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488   fi
21489   #
21490     if test "x$cross_compiling" != "xyes" &&
21491     test "$tst_compi_getaddrinfo" = "yes"; then
21492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
21493 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
21494     if test "$cross_compiling" = yes; then :
21495   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21497 as_fn_error $? "cannot run test program while cross compiling
21498 See \`config.log' for more details" "$LINENO" 5; }
21499 else
21500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h.  */
21502
21503
21504         $cares_includes_ws2tcpip
21505         $cares_includes_stdlib
21506         $cares_includes_string
21507         $cares_includes_sys_socket
21508         $cares_includes_netdb
21509
21510 int main (void)
21511 {
21512
21513         struct addrinfo hints;
21514         struct addrinfo *ai = 0;
21515         int error;
21516
21517         memset(&hints, 0, sizeof(hints));
21518         hints.ai_flags = AI_NUMERICHOST;
21519         hints.ai_family = AF_UNSPEC;
21520         hints.ai_socktype = SOCK_STREAM;
21521         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
21522         if(error || !ai)
21523           exit(1); /* fail */
21524         else
21525           exit(0);
21526
21527  ;
21528  return 0;
21529 }
21530
21531 _ACEOF
21532 if ac_fn_c_try_run "$LINENO"; then :
21533
21534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21535 $as_echo "yes" >&6; }
21536       tst_works_getaddrinfo="yes"
21537
21538 else
21539
21540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541 $as_echo "no" >&6; }
21542       tst_works_getaddrinfo="no"
21543
21544 fi
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21546   conftest.$ac_objext conftest.beam conftest.$ac_ext
21547 fi
21548
21549   fi
21550   #
21551   if test "$tst_compi_getaddrinfo" = "yes" &&
21552     test "$tst_works_getaddrinfo" != "no"; then
21553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
21554 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
21555     if test "x$cares_disallow_getaddrinfo" != "xyes"; then
21556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21557 $as_echo "yes" >&6; }
21558       tst_allow_getaddrinfo="yes"
21559     else
21560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21562       tst_allow_getaddrinfo="no"
21563     fi
21564   fi
21565   #
21566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
21567 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
21568   if test "$tst_links_getaddrinfo" = "yes" &&
21569      test "$tst_proto_getaddrinfo" = "yes" &&
21570      test "$tst_compi_getaddrinfo" = "yes" &&
21571      test "$tst_allow_getaddrinfo" = "yes" &&
21572      test "$tst_works_getaddrinfo" != "no"; then
21573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21574 $as_echo "yes" >&6; }
21575
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_GETADDRINFO 1
21578 _ACEOF
21579
21580     ac_cv_func_getaddrinfo="yes"
21581   else
21582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21584     ac_cv_func_getaddrinfo="no"
21585     ac_cv_func_getaddrinfo_threadsafe="no"
21586   fi
21587   #
21588   if test "$ac_cv_func_getaddrinfo" = "yes"; then
21589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
21590 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
21591     case $host_os in
21592       aix[1234].* | aix5.[01].*)
21593                 tst_tsafe_getaddrinfo="no"
21594         ;;
21595       aix*)
21596                 tst_tsafe_getaddrinfo="yes"
21597         ;;
21598       darwin[12345].*)
21599                 tst_tsafe_getaddrinfo="no"
21600         ;;
21601       darwin*)
21602                 tst_tsafe_getaddrinfo="yes"
21603         ;;
21604       freebsd[1234].* | freebsd5.[1234]*)
21605                 tst_tsafe_getaddrinfo="no"
21606         ;;
21607       freebsd*)
21608                 tst_tsafe_getaddrinfo="yes"
21609         ;;
21610       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
21611                 tst_tsafe_getaddrinfo="no"
21612         ;;
21613       hpux*)
21614                 tst_tsafe_getaddrinfo="yes"
21615         ;;
21616       netbsd[123].*)
21617                 tst_tsafe_getaddrinfo="no"
21618         ;;
21619       netbsd*)
21620                 tst_tsafe_getaddrinfo="yes"
21621         ;;
21622       *bsd*)
21623                 tst_tsafe_getaddrinfo="no"
21624         ;;
21625       solaris2*)
21626                 tst_tsafe_getaddrinfo="yes"
21627         ;;
21628     esac
21629     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
21630        test "$ac_cv_native_windows" = "yes"; then
21631       tst_tsafe_getaddrinfo="yes"
21632     fi
21633     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
21634
21635
21636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h.  */
21638
21639
21640         $cares_includes_sys_socket
21641         $cares_includes_netdb
21642
21643 int main (void)
21644 {
21645 #ifdef h_errno
21646   return 0;
21647 #else
21648   force compilation error
21649 #endif
21650 }
21651
21652
21653 _ACEOF
21654 if ac_fn_c_try_compile "$LINENO"; then :
21655
21656     tst_symbol_defined="yes"
21657
21658 else
21659
21660     tst_symbol_defined="no"
21661
21662 fi
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664   if test "$tst_symbol_defined" = "yes"; then
21665     curl_cv_have_def_h_errno=yes
21666
21667   else
21668     curl_cv_have_def_h_errno=no
21669
21670   fi
21671
21672       if test "$curl_cv_have_def_h_errno" = "yes"; then
21673         tst_h_errno_macro="yes"
21674       else
21675         tst_h_errno_macro="no"
21676       fi
21677       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h.  */
21679
21680
21681           $cares_includes_sys_socket
21682           $cares_includes_netdb
21683
21684 int main (void)
21685 {
21686
21687           h_errno = 2;
21688           if(0 != h_errno)
21689             return 1;
21690
21691  ;
21692  return 0;
21693 }
21694
21695 _ACEOF
21696 if ac_fn_c_try_compile "$LINENO"; then :
21697
21698         tst_h_errno_modifiable_lvalue="yes"
21699
21700 else
21701
21702         tst_h_errno_modifiable_lvalue="no"
21703
21704 fi
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h.  */
21708
21709
21710
21711 int main (void)
21712 {
21713
21714 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
21715           return 0;
21716 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
21717           return 0;
21718 #else
21719           force compilation error
21720 #endif
21721
21722  ;
21723  return 0;
21724 }
21725
21726 _ACEOF
21727 if ac_fn_c_try_compile "$LINENO"; then :
21728
21729         tst_h_errno_sbs_issue_7="yes"
21730
21731 else
21732
21733         tst_h_errno_sbs_issue_7="no"
21734
21735 fi
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737       if test "$tst_h_errno_macro" = "no" &&
21738          test "$tst_h_errno_modifiable_lvalue" = "no" &&
21739          test "$tst_h_errno_sbs_issue_7" = "no"; then
21740         tst_tsafe_getaddrinfo="no"
21741       else
21742         tst_tsafe_getaddrinfo="yes"
21743       fi
21744     fi
21745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
21746 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
21747     if test "$tst_tsafe_getaddrinfo" = "yes"; then
21748
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_GETADDRINFO_THREADSAFE 1
21751 _ACEOF
21752
21753       ac_cv_func_getaddrinfo_threadsafe="yes"
21754     else
21755       ac_cv_func_getaddrinfo_threadsafe="no"
21756     fi
21757   fi
21758
21759
21760     #
21761   tst_links_getenv="unknown"
21762   tst_proto_getenv="unknown"
21763   tst_compi_getenv="unknown"
21764   tst_allow_getenv="unknown"
21765   #
21766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
21767 $as_echo_n "checking if getenv can be linked... " >&6; }
21768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h.  */
21770
21771
21772 #define getenv innocuous_getenv
21773 #ifdef __STDC__
21774 # include <limits.h>
21775 #else
21776 # include <assert.h>
21777 #endif
21778 #undef getenv
21779 #ifdef __cplusplus
21780 extern "C"
21781 #endif
21782 char getenv ();
21783 #if defined __stub_getenv || defined __stub___getenv
21784 choke me
21785 #endif
21786
21787 int main (void)
21788 {
21789 return getenv ();
21790  ;
21791  return 0;
21792 }
21793
21794 _ACEOF
21795 if ac_fn_c_try_link "$LINENO"; then :
21796
21797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21798 $as_echo "yes" >&6; }
21799     tst_links_getenv="yes"
21800
21801 else
21802
21803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 $as_echo "no" >&6; }
21805     tst_links_getenv="no"
21806
21807 fi
21808 rm -f core conftest.err conftest.$ac_objext \
21809     conftest$ac_exeext conftest.$ac_ext
21810   #
21811   if test "$tst_links_getenv" = "yes"; then
21812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
21813 $as_echo_n "checking if getenv is prototyped... " >&6; }
21814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h.  */
21816
21817       $cares_includes_stdlib
21818
21819 _ACEOF
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821   $EGREP "getenv" >/dev/null 2>&1; then :
21822
21823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21825       tst_proto_getenv="yes"
21826
21827 else
21828
21829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21831       tst_proto_getenv="no"
21832
21833 fi
21834 rm -f conftest*
21835
21836   fi
21837   #
21838   if test "$tst_proto_getenv" = "yes"; then
21839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
21840 $as_echo_n "checking if getenv is compilable... " >&6; }
21841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h.  */
21843
21844
21845         $cares_includes_stdlib
21846
21847 int main (void)
21848 {
21849
21850         if(0 != getenv(0))
21851           return 1;
21852
21853  ;
21854  return 0;
21855 }
21856
21857 _ACEOF
21858 if ac_fn_c_try_compile "$LINENO"; then :
21859
21860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21861 $as_echo "yes" >&6; }
21862       tst_compi_getenv="yes"
21863
21864 else
21865
21866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21867 $as_echo "no" >&6; }
21868       tst_compi_getenv="no"
21869
21870 fi
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872   fi
21873   #
21874   if test "$tst_compi_getenv" = "yes"; then
21875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
21876 $as_echo_n "checking if getenv usage allowed... " >&6; }
21877     if test "x$cares_disallow_getenv" != "xyes"; then
21878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21879 $as_echo "yes" >&6; }
21880       tst_allow_getenv="yes"
21881     else
21882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21883 $as_echo "no" >&6; }
21884       tst_allow_getenv="no"
21885     fi
21886   fi
21887   #
21888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
21889 $as_echo_n "checking if getenv might be used... " >&6; }
21890   if test "$tst_links_getenv" = "yes" &&
21891      test "$tst_proto_getenv" = "yes" &&
21892      test "$tst_compi_getenv" = "yes" &&
21893      test "$tst_allow_getenv" = "yes"; then
21894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895 $as_echo "yes" >&6; }
21896
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_GETENV 1
21899 _ACEOF
21900
21901     ac_cv_func_getenv="yes"
21902   else
21903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21904 $as_echo "no" >&6; }
21905     ac_cv_func_getenv="no"
21906   fi
21907
21908
21909       #
21910   tst_links_gethostbyaddr="unknown"
21911   tst_proto_gethostbyaddr="unknown"
21912   tst_compi_gethostbyaddr="unknown"
21913   tst_allow_gethostbyaddr="unknown"
21914   #
21915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
21916 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
21917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h.  */
21919
21920
21921       $cares_includes_winsock2
21922       $cares_includes_netdb
21923
21924 int main (void)
21925 {
21926
21927       if(0 != gethostbyaddr(0, 0, 0))
21928         return 1;
21929
21930  ;
21931  return 0;
21932 }
21933
21934 _ACEOF
21935 if ac_fn_c_try_link "$LINENO"; then :
21936
21937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21939     tst_links_gethostbyaddr="yes"
21940
21941 else
21942
21943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 $as_echo "no" >&6; }
21945     tst_links_gethostbyaddr="no"
21946
21947 fi
21948 rm -f core conftest.err conftest.$ac_objext \
21949     conftest$ac_exeext conftest.$ac_ext
21950   #
21951   if test "$tst_links_gethostbyaddr" = "yes"; then
21952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
21953 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
21954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h.  */
21956
21957       $cares_includes_winsock2
21958       $cares_includes_netdb
21959
21960 _ACEOF
21961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21962   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
21963
21964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21965 $as_echo "yes" >&6; }
21966       tst_proto_gethostbyaddr="yes"
21967
21968 else
21969
21970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21972       tst_proto_gethostbyaddr="no"
21973
21974 fi
21975 rm -f conftest*
21976
21977   fi
21978   #
21979   if test "$tst_proto_gethostbyaddr" = "yes"; then
21980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
21981 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
21982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h.  */
21984
21985
21986         $cares_includes_winsock2
21987         $cares_includes_netdb
21988
21989 int main (void)
21990 {
21991
21992         if(0 != gethostbyaddr(0, 0, 0))
21993           return 1;
21994
21995  ;
21996  return 0;
21997 }
21998
21999 _ACEOF
22000 if ac_fn_c_try_compile "$LINENO"; then :
22001
22002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22003 $as_echo "yes" >&6; }
22004       tst_compi_gethostbyaddr="yes"
22005
22006 else
22007
22008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22010       tst_compi_gethostbyaddr="no"
22011
22012 fi
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014   fi
22015   #
22016   if test "$tst_compi_gethostbyaddr" = "yes"; then
22017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
22018 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
22019     if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
22020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22021 $as_echo "yes" >&6; }
22022       tst_allow_gethostbyaddr="yes"
22023     else
22024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22025 $as_echo "no" >&6; }
22026       tst_allow_gethostbyaddr="no"
22027     fi
22028   fi
22029   #
22030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
22031 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
22032   if test "$tst_links_gethostbyaddr" = "yes" &&
22033      test "$tst_proto_gethostbyaddr" = "yes" &&
22034      test "$tst_compi_gethostbyaddr" = "yes" &&
22035      test "$tst_allow_gethostbyaddr" = "yes"; then
22036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037 $as_echo "yes" >&6; }
22038
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_GETHOSTBYADDR 1
22041 _ACEOF
22042
22043     ac_cv_func_gethostbyaddr="yes"
22044   else
22045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22046 $as_echo "no" >&6; }
22047     ac_cv_func_gethostbyaddr="no"
22048   fi
22049
22050
22051       #
22052   tst_links_gethostbyname="unknown"
22053   tst_proto_gethostbyname="unknown"
22054   tst_compi_gethostbyname="unknown"
22055   tst_allow_gethostbyname="unknown"
22056   #
22057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
22058 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
22059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h.  */
22061
22062
22063       $cares_includes_winsock2
22064       $cares_includes_netdb
22065
22066 int main (void)
22067 {
22068
22069       if(0 != gethostbyname(0))
22070         return 1;
22071
22072  ;
22073  return 0;
22074 }
22075
22076 _ACEOF
22077 if ac_fn_c_try_link "$LINENO"; then :
22078
22079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22080 $as_echo "yes" >&6; }
22081     tst_links_gethostbyname="yes"
22082
22083 else
22084
22085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22086 $as_echo "no" >&6; }
22087     tst_links_gethostbyname="no"
22088
22089 fi
22090 rm -f core conftest.err conftest.$ac_objext \
22091     conftest$ac_exeext conftest.$ac_ext
22092   #
22093   if test "$tst_links_gethostbyname" = "yes"; then
22094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
22095 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
22096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h.  */
22098
22099       $cares_includes_winsock2
22100       $cares_includes_netdb
22101
22102 _ACEOF
22103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22104   $EGREP "gethostbyname" >/dev/null 2>&1; then :
22105
22106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22107 $as_echo "yes" >&6; }
22108       tst_proto_gethostbyname="yes"
22109
22110 else
22111
22112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22114       tst_proto_gethostbyname="no"
22115
22116 fi
22117 rm -f conftest*
22118
22119   fi
22120   #
22121   if test "$tst_proto_gethostbyname" = "yes"; then
22122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
22123 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
22124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h.  */
22126
22127
22128         $cares_includes_winsock2
22129         $cares_includes_netdb
22130
22131 int main (void)
22132 {
22133
22134         if(0 != gethostbyname(0))
22135           return 1;
22136
22137  ;
22138  return 0;
22139 }
22140
22141 _ACEOF
22142 if ac_fn_c_try_compile "$LINENO"; then :
22143
22144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22145 $as_echo "yes" >&6; }
22146       tst_compi_gethostbyname="yes"
22147
22148 else
22149
22150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22151 $as_echo "no" >&6; }
22152       tst_compi_gethostbyname="no"
22153
22154 fi
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156   fi
22157   #
22158   if test "$tst_compi_gethostbyname" = "yes"; then
22159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
22160 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
22161     if test "x$cares_disallow_gethostbyname" != "xyes"; then
22162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163 $as_echo "yes" >&6; }
22164       tst_allow_gethostbyname="yes"
22165     else
22166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22167 $as_echo "no" >&6; }
22168       tst_allow_gethostbyname="no"
22169     fi
22170   fi
22171   #
22172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
22173 $as_echo_n "checking if gethostbyname might be used... " >&6; }
22174   if test "$tst_links_gethostbyname" = "yes" &&
22175      test "$tst_proto_gethostbyname" = "yes" &&
22176      test "$tst_compi_gethostbyname" = "yes" &&
22177      test "$tst_allow_gethostbyname" = "yes"; then
22178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22179 $as_echo "yes" >&6; }
22180
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_GETHOSTBYNAME 1
22183 _ACEOF
22184
22185     ac_cv_func_gethostbyname="yes"
22186   else
22187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188 $as_echo "no" >&6; }
22189     ac_cv_func_gethostbyname="no"
22190   fi
22191
22192
22193 cares_includes_unistd="\
22194 /* includes start */
22195 #ifdef HAVE_SYS_TYPES_H
22196 #  include <sys/types.h>
22197 #endif
22198 #ifdef HAVE_UNISTD_H
22199 #  include <unistd.h>
22200 #endif
22201 /* includes end */"
22202   for ac_header in sys/types.h unistd.h
22203 do :
22204   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
22206 "
22207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22208   cat >>confdefs.h <<_ACEOF
22209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22210 _ACEOF
22211
22212 fi
22213
22214 done
22215
22216
22217
22218         #
22219   tst_links_gethostname="unknown"
22220   tst_proto_gethostname="unknown"
22221   tst_compi_gethostname="unknown"
22222   tst_allow_gethostname="unknown"
22223   #
22224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
22225 $as_echo_n "checking if gethostname can be linked... " >&6; }
22226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h.  */
22228
22229
22230       $cares_includes_winsock2
22231       $cares_includes_unistd
22232
22233 int main (void)
22234 {
22235
22236       if(0 != gethostname(0, 0))
22237         return 1;
22238
22239  ;
22240  return 0;
22241 }
22242
22243 _ACEOF
22244 if ac_fn_c_try_link "$LINENO"; then :
22245
22246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22247 $as_echo "yes" >&6; }
22248     tst_links_gethostname="yes"
22249
22250 else
22251
22252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22253 $as_echo "no" >&6; }
22254     tst_links_gethostname="no"
22255
22256 fi
22257 rm -f core conftest.err conftest.$ac_objext \
22258     conftest$ac_exeext conftest.$ac_ext
22259   #
22260   if test "$tst_links_gethostname" = "yes"; then
22261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
22262 $as_echo_n "checking if gethostname is prototyped... " >&6; }
22263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h.  */
22265
22266       $cares_includes_winsock2
22267       $cares_includes_unistd
22268
22269 _ACEOF
22270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22271   $EGREP "gethostname" >/dev/null 2>&1; then :
22272
22273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 $as_echo "yes" >&6; }
22275       tst_proto_gethostname="yes"
22276
22277 else
22278
22279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280 $as_echo "no" >&6; }
22281       tst_proto_gethostname="no"
22282
22283 fi
22284 rm -f conftest*
22285
22286   fi
22287   #
22288   if test "$tst_proto_gethostname" = "yes"; then
22289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
22290 $as_echo_n "checking if gethostname is compilable... " >&6; }
22291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h.  */
22293
22294
22295         $cares_includes_winsock2
22296         $cares_includes_unistd
22297
22298 int main (void)
22299 {
22300
22301         if(0 != gethostname(0, 0))
22302           return 1;
22303
22304  ;
22305  return 0;
22306 }
22307
22308 _ACEOF
22309 if ac_fn_c_try_compile "$LINENO"; then :
22310
22311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22312 $as_echo "yes" >&6; }
22313       tst_compi_gethostname="yes"
22314
22315 else
22316
22317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319       tst_compi_gethostname="no"
22320
22321 fi
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22323   fi
22324   #
22325   if test "$tst_compi_gethostname" = "yes"; then
22326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
22327 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
22328     tst_gethostname_type_arg2="unknown"
22329     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
22330       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
22331         if test "$tst_gethostname_type_arg2" = "unknown"; then
22332           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h.  */
22334
22335
22336               $cares_includes_winsock2
22337               $cares_includes_unistd
22338               $cares_preprocess_callconv
22339               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
22340
22341 int main (void)
22342 {
22343
22344               if(0 != gethostname(0, 0))
22345                 return 1;
22346
22347  ;
22348  return 0;
22349 }
22350
22351 _ACEOF
22352 if ac_fn_c_try_compile "$LINENO"; then :
22353
22354             tst_gethostname_type_arg2="$tst_arg2"
22355
22356 fi
22357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358         fi
22359       done
22360     done
22361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
22362 $as_echo "$tst_gethostname_type_arg2" >&6; }
22363     if test "$tst_gethostname_type_arg2" != "unknown"; then
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
22367 _ACEOF
22368
22369     fi
22370   fi
22371   #
22372   if test "$tst_compi_gethostname" = "yes"; then
22373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
22374 $as_echo_n "checking if gethostname usage allowed... " >&6; }
22375     if test "x$cares_disallow_gethostname" != "xyes"; then
22376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22377 $as_echo "yes" >&6; }
22378       tst_allow_gethostname="yes"
22379     else
22380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22382       tst_allow_gethostname="no"
22383     fi
22384   fi
22385   #
22386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
22387 $as_echo_n "checking if gethostname might be used... " >&6; }
22388   if test "$tst_links_gethostname" = "yes" &&
22389      test "$tst_proto_gethostname" = "yes" &&
22390      test "$tst_compi_gethostname" = "yes" &&
22391      test "$tst_allow_gethostname" = "yes"; then
22392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22393 $as_echo "yes" >&6; }
22394
22395 cat >>confdefs.h <<_ACEOF
22396 #define HAVE_GETHOSTNAME 1
22397 _ACEOF
22398
22399     ac_cv_func_gethostname="yes"
22400   else
22401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22402 $as_echo "no" >&6; }
22403     ac_cv_func_gethostname="no"
22404   fi
22405
22406
22407     #
22408   tst_links_getservbyport_r="unknown"
22409   tst_proto_getservbyport_r="unknown"
22410   tst_compi_getservbyport_r="unknown"
22411   tst_allow_getservbyport_r="unknown"
22412   tst_nargs_getservbyport_r="unknown"
22413   #
22414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
22415 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
22416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h.  */
22418
22419
22420 #define getservbyport_r innocuous_getservbyport_r
22421 #ifdef __STDC__
22422 # include <limits.h>
22423 #else
22424 # include <assert.h>
22425 #endif
22426 #undef getservbyport_r
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char getservbyport_r ();
22431 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
22432 choke me
22433 #endif
22434
22435 int main (void)
22436 {
22437 return getservbyport_r ();
22438  ;
22439  return 0;
22440 }
22441
22442 _ACEOF
22443 if ac_fn_c_try_link "$LINENO"; then :
22444
22445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22446 $as_echo "yes" >&6; }
22447     tst_links_getservbyport_r="yes"
22448
22449 else
22450
22451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22452 $as_echo "no" >&6; }
22453     tst_links_getservbyport_r="no"
22454
22455 fi
22456 rm -f core conftest.err conftest.$ac_objext \
22457     conftest$ac_exeext conftest.$ac_ext
22458   #
22459   if test "$tst_links_getservbyport_r" = "yes"; then
22460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
22461 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
22462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h.  */
22464
22465       $cares_includes_netdb
22466
22467 _ACEOF
22468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22469   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
22470
22471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22472 $as_echo "yes" >&6; }
22473       tst_proto_getservbyport_r="yes"
22474
22475 else
22476
22477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22478 $as_echo "no" >&6; }
22479       tst_proto_getservbyport_r="no"
22480
22481 fi
22482 rm -f conftest*
22483
22484   fi
22485   #
22486   if test "$tst_proto_getservbyport_r" = "yes"; then
22487     if test "$tst_nargs_getservbyport_r" = "unknown"; then
22488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
22489 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
22490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h.  */
22492
22493
22494           $cares_includes_netdb
22495
22496 int main (void)
22497 {
22498
22499           if(0 != getservbyport_r(0, 0, 0, 0))
22500             return 1;
22501
22502  ;
22503  return 0;
22504 }
22505
22506 _ACEOF
22507 if ac_fn_c_try_compile "$LINENO"; then :
22508
22509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22510 $as_echo "yes" >&6; }
22511         tst_compi_getservbyport_r="yes"
22512         tst_nargs_getservbyport_r="4"
22513
22514 else
22515
22516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517 $as_echo "no" >&6; }
22518         tst_compi_getservbyport_r="no"
22519
22520 fi
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522     fi
22523     if test "$tst_nargs_getservbyport_r" = "unknown"; then
22524       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
22525 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
22526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h.  */
22528
22529
22530           $cares_includes_netdb
22531
22532 int main (void)
22533 {
22534
22535           if(0 != getservbyport_r(0, 0, 0, 0, 0))
22536             return 1;
22537
22538  ;
22539  return 0;
22540 }
22541
22542 _ACEOF
22543 if ac_fn_c_try_compile "$LINENO"; then :
22544
22545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22546 $as_echo "yes" >&6; }
22547         tst_compi_getservbyport_r="yes"
22548         tst_nargs_getservbyport_r="5"
22549
22550 else
22551
22552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554         tst_compi_getservbyport_r="no"
22555
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558     fi
22559     if test "$tst_nargs_getservbyport_r" = "unknown"; then
22560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
22561 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
22562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h.  */
22564
22565
22566           $cares_includes_netdb
22567
22568 int main (void)
22569 {
22570
22571           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
22572             return 1;
22573
22574  ;
22575  return 0;
22576 }
22577
22578 _ACEOF
22579 if ac_fn_c_try_compile "$LINENO"; then :
22580
22581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22582 $as_echo "yes" >&6; }
22583         tst_compi_getservbyport_r="yes"
22584         tst_nargs_getservbyport_r="6"
22585
22586 else
22587
22588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22589 $as_echo "no" >&6; }
22590         tst_compi_getservbyport_r="no"
22591
22592 fi
22593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594     fi
22595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
22596 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
22597     if test "$tst_compi_getservbyport_r" = "yes"; then
22598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22599 $as_echo "yes" >&6; }
22600     else
22601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22602 $as_echo "no" >&6; }
22603     fi
22604   fi
22605   #
22606   if test "$tst_compi_getservbyport_r" = "yes"; then
22607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
22608 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
22609     if test "x$cares_disallow_getservbyport_r" != "xyes"; then
22610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22611 $as_echo "yes" >&6; }
22612       tst_allow_getservbyport_r="yes"
22613     else
22614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22615 $as_echo "no" >&6; }
22616       tst_allow_getservbyport_r="no"
22617     fi
22618   fi
22619   #
22620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
22621 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
22622   if test "$tst_links_getservbyport_r" = "yes" &&
22623      test "$tst_proto_getservbyport_r" = "yes" &&
22624      test "$tst_compi_getservbyport_r" = "yes" &&
22625      test "$tst_allow_getservbyport_r" = "yes"; then
22626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22627 $as_echo "yes" >&6; }
22628
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_GETSERVBYPORT_R 1
22631 _ACEOF
22632
22633
22634 cat >>confdefs.h <<_ACEOF
22635 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
22636 _ACEOF
22637
22638     if test "$tst_nargs_getservbyport_r" -eq "4"; then
22639
22640 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
22641
22642     else
22643
22644 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
22645
22646     fi
22647     ac_cv_func_getservbyport_r="yes"
22648   else
22649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22650 $as_echo "no" >&6; }
22651     ac_cv_func_getservbyport_r="no"
22652   fi
22653
22654
22655 cares_includes_arpa_inet="\
22656 /* includes start */
22657 #ifdef HAVE_SYS_TYPES_H
22658 #  include <sys/types.h>
22659 #endif
22660 #ifdef HAVE_SYS_SOCKET_H
22661 #  include <sys/socket.h>
22662 #endif
22663 #ifdef HAVE_NETINET_IN_H
22664 #  include <netinet/in.h>
22665 #endif
22666 #ifdef HAVE_ARPA_INET_H
22667 #  include <arpa/inet.h>
22668 #endif
22669 /* includes end */"
22670   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
22671 do :
22672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
22674 "
22675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22676   cat >>confdefs.h <<_ACEOF
22677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22678 _ACEOF
22679
22680 fi
22681
22682 done
22683
22684
22685
22686         #
22687   tst_links_inet_net_pton="unknown"
22688   tst_proto_inet_net_pton="unknown"
22689   tst_compi_inet_net_pton="unknown"
22690   tst_works_inet_net_pton="unknown"
22691   tst_allow_inet_net_pton="unknown"
22692   #
22693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
22694 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
22695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22696 /* end confdefs.h.  */
22697
22698
22699 #define inet_net_pton innocuous_inet_net_pton
22700 #ifdef __STDC__
22701 # include <limits.h>
22702 #else
22703 # include <assert.h>
22704 #endif
22705 #undef inet_net_pton
22706 #ifdef __cplusplus
22707 extern "C"
22708 #endif
22709 char inet_net_pton ();
22710 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
22711 choke me
22712 #endif
22713
22714 int main (void)
22715 {
22716 return inet_net_pton ();
22717  ;
22718  return 0;
22719 }
22720
22721 _ACEOF
22722 if ac_fn_c_try_link "$LINENO"; then :
22723
22724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22725 $as_echo "yes" >&6; }
22726     tst_links_inet_net_pton="yes"
22727
22728 else
22729
22730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22731 $as_echo "no" >&6; }
22732     tst_links_inet_net_pton="no"
22733
22734 fi
22735 rm -f core conftest.err conftest.$ac_objext \
22736     conftest$ac_exeext conftest.$ac_ext
22737   #
22738   if test "$tst_links_inet_net_pton" = "yes"; then
22739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
22740 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
22741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22742 /* end confdefs.h.  */
22743
22744       $cares_includes_arpa_inet
22745
22746 _ACEOF
22747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22748   $EGREP "inet_net_pton" >/dev/null 2>&1; then :
22749
22750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22751 $as_echo "yes" >&6; }
22752       tst_proto_inet_net_pton="yes"
22753
22754 else
22755
22756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22757 $as_echo "no" >&6; }
22758       tst_proto_inet_net_pton="no"
22759
22760 fi
22761 rm -f conftest*
22762
22763   fi
22764   #
22765   if test "$tst_proto_inet_net_pton" = "yes"; then
22766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
22767 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
22768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h.  */
22770
22771
22772         $cares_includes_arpa_inet
22773
22774 int main (void)
22775 {
22776
22777         if(0 != inet_net_pton(0, 0, 0, 0))
22778           return 1;
22779
22780  ;
22781  return 0;
22782 }
22783
22784 _ACEOF
22785 if ac_fn_c_try_compile "$LINENO"; then :
22786
22787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22788 $as_echo "yes" >&6; }
22789       tst_compi_inet_net_pton="yes"
22790
22791 else
22792
22793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22794 $as_echo "no" >&6; }
22795       tst_compi_inet_net_pton="no"
22796
22797 fi
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799   fi
22800   #
22801     if test "x$cross_compiling" != "xyes" &&
22802     test "$tst_compi_inet_net_pton" = "yes"; then
22803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
22804 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
22805     if test "$cross_compiling" = yes; then :
22806   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22808 as_fn_error $? "cannot run test program while cross compiling
22809 See \`config.log' for more details" "$LINENO" 5; }
22810 else
22811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h.  */
22813
22814
22815         $cares_includes_stdlib
22816         $cares_includes_arpa_inet
22817         $cares_includes_string
22818
22819 int main (void)
22820 {
22821
22822         unsigned char ipv6a[16+1];
22823         unsigned char ipv4a[4+1];
22824         const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
22825         const char *ipv6net2 = "::fffe:7f00:1";
22826         const char *ipv6net3 = "7f20:1::/64";
22827         const char *ipv6net4 = "7f20:1::/2147483649";
22828         const char *ipv4net1 = "192.168.100.1";
22829         const char *ipv4net2 = "192.168.100/32";
22830         const char *ipv4net3 = "192.168.100.1/2147483649";
22831         /* - */
22832         memset(ipv4a, 1, sizeof(ipv4a));
22833         if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
22834           exit(1); /* fail */
22835         /* - */
22836         if( (ipv4a[0x00] != 0xc0) ||
22837             (ipv4a[0x01] != 0xa8) ||
22838             (ipv4a[0x02] != 0x64) ||
22839             (ipv4a[0x03] != 0x01) ||
22840             (ipv4a[0x04] != 0x01) )
22841           exit(1); /* fail */
22842         /* - */
22843         memset(ipv4a, 1, sizeof(ipv4a));
22844         if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
22845           exit(1); /* fail */
22846         /* - */
22847         if( (ipv4a[0x00] != 0xc0) ||
22848             (ipv4a[0x01] != 0xa8) ||
22849             (ipv4a[0x02] != 0x64) ||
22850             (ipv4a[0x03] != 0x00) ||
22851             (ipv4a[0x04] != 0x01) )
22852           exit(1); /* fail */
22853         /* - */
22854         memset(ipv4a, 1, sizeof(ipv4a));
22855         if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
22856           exit(1); /* fail */
22857         /* - */
22858         memset(ipv6a, 1, sizeof(ipv6a));
22859         if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
22860           exit(1); /* fail */
22861         /* - */
22862         if( (ipv6a[0x00] != 0xfe) ||
22863             (ipv6a[0x01] != 0x80) ||
22864             (ipv6a[0x08] != 0x02) ||
22865             (ipv6a[0x09] != 0x14) ||
22866             (ipv6a[0x0a] != 0x4f) ||
22867             (ipv6a[0x0b] != 0xff) ||
22868             (ipv6a[0x0c] != 0xfe) ||
22869             (ipv6a[0x0d] != 0x0b) ||
22870             (ipv6a[0x0e] != 0x76) ||
22871             (ipv6a[0x0f] != 0xc8) ||
22872             (ipv6a[0x10] != 0x01) )
22873           exit(1); /* fail */
22874         /* - */
22875         if( (ipv6a[0x02] != 0x0) ||
22876             (ipv6a[0x03] != 0x0) ||
22877             (ipv6a[0x04] != 0x0) ||
22878             (ipv6a[0x05] != 0x0) ||
22879             (ipv6a[0x06] != 0x0) ||
22880             (ipv6a[0x07] != 0x0) )
22881           exit(1); /* fail */
22882         /* - */
22883         memset(ipv6a, 0, sizeof(ipv6a));
22884         ipv6a[0x10] = 0x01;
22885         if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
22886           exit(1); /* fail */
22887         /* - */
22888         if( (ipv6a[0x0a] != 0xff) ||
22889             (ipv6a[0x0b] != 0xfe) ||
22890             (ipv6a[0x0c] != 0x7f) ||
22891             (ipv6a[0x0f] != 0x01) ||
22892             (ipv6a[0x10] != 0x01) )
22893           exit(1); /* fail */
22894         /* - */
22895         if( (ipv6a[0x00] != 0x0) ||
22896             (ipv6a[0x01] != 0x0) ||
22897             (ipv6a[0x02] != 0x0) ||
22898             (ipv6a[0x03] != 0x0) ||
22899             (ipv6a[0x04] != 0x0) ||
22900             (ipv6a[0x05] != 0x0) ||
22901             (ipv6a[0x06] != 0x0) ||
22902             (ipv6a[0x07] != 0x0) ||
22903             (ipv6a[0x08] != 0x0) ||
22904             (ipv6a[0x09] != 0x0) ||
22905             (ipv6a[0x0d] != 0x0) ||
22906             (ipv6a[0x0e] != 0x0) )
22907           exit(1); /* fail */
22908         /* - */
22909         memset(ipv6a, 1, sizeof(ipv6a));
22910         if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
22911           exit(1); /* fail */
22912         if( (ipv6a[0x00] != 0x7f) ||
22913             (ipv6a[0x01] != 0x20) ||
22914             (ipv6a[0x03] != 0x01) ||
22915             (ipv6a[0x08] != 0x01) ||
22916             (ipv6a[0x09] != 0x01) ||
22917             (ipv6a[0x0a] != 0x01) ||
22918             (ipv6a[0x0b] != 0x01) ||
22919             (ipv6a[0x0c] != 0x01) ||
22920             (ipv6a[0x0d] != 0x01) ||
22921             (ipv6a[0x0e] != 0x01) ||
22922             (ipv6a[0x0f] != 0x01) ||
22923             (ipv6a[0x10] != 0x01) )
22924           exit(1); /* fail */
22925         if( (ipv6a[0x02] != 0x0) ||
22926             (ipv6a[0x04] != 0x0) ||
22927             (ipv6a[0x05] != 0x0) ||
22928             (ipv6a[0x06] != 0x0) ||
22929             (ipv6a[0x07] != 0x0) ||
22930             (ipv6a[0x07] != 0x0) )
22931           exit(1); /* fail */
22932         /* - */
22933         memset(ipv6a, 1, sizeof(ipv6a));
22934         if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
22935           exit(1); /* fail */
22936         /* - */
22937         exit(0);
22938
22939  ;
22940  return 0;
22941 }
22942
22943 _ACEOF
22944 if ac_fn_c_try_run "$LINENO"; then :
22945
22946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22947 $as_echo "yes" >&6; }
22948       tst_works_inet_net_pton="yes"
22949
22950 else
22951
22952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22954       tst_works_inet_net_pton="no"
22955
22956 fi
22957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22958   conftest.$ac_objext conftest.beam conftest.$ac_ext
22959 fi
22960
22961   fi
22962   #
22963   if test "$tst_compi_inet_net_pton" = "yes" &&
22964     test "$tst_works_inet_net_pton" != "no"; then
22965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
22966 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
22967     if test "x$cares_disallow_inet_net_pton" != "xyes"; then
22968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969 $as_echo "yes" >&6; }
22970       tst_allow_inet_net_pton="yes"
22971     else
22972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22974       tst_allow_inet_net_pton="no"
22975     fi
22976   fi
22977   #
22978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
22979 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
22980   if test "$tst_links_inet_net_pton" = "yes" &&
22981      test "$tst_proto_inet_net_pton" = "yes" &&
22982      test "$tst_compi_inet_net_pton" = "yes" &&
22983      test "$tst_allow_inet_net_pton" = "yes" &&
22984      test "$tst_works_inet_net_pton" != "no"; then
22985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22986 $as_echo "yes" >&6; }
22987
22988 cat >>confdefs.h <<_ACEOF
22989 #define HAVE_INET_NET_PTON 1
22990 _ACEOF
22991
22992     ac_cv_func_inet_net_pton="yes"
22993   else
22994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995 $as_echo "no" >&6; }
22996     ac_cv_func_inet_net_pton="no"
22997   fi
22998
22999
23000         #
23001   tst_links_inet_ntop="unknown"
23002   tst_proto_inet_ntop="unknown"
23003   tst_compi_inet_ntop="unknown"
23004   tst_works_inet_ntop="unknown"
23005   tst_allow_inet_ntop="unknown"
23006   #
23007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
23008 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
23009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h.  */
23011
23012
23013 #define inet_ntop innocuous_inet_ntop
23014 #ifdef __STDC__
23015 # include <limits.h>
23016 #else
23017 # include <assert.h>
23018 #endif
23019 #undef inet_ntop
23020 #ifdef __cplusplus
23021 extern "C"
23022 #endif
23023 char inet_ntop ();
23024 #if defined __stub_inet_ntop || defined __stub___inet_ntop
23025 choke me
23026 #endif
23027
23028 int main (void)
23029 {
23030 return inet_ntop ();
23031  ;
23032  return 0;
23033 }
23034
23035 _ACEOF
23036 if ac_fn_c_try_link "$LINENO"; then :
23037
23038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23039 $as_echo "yes" >&6; }
23040     tst_links_inet_ntop="yes"
23041
23042 else
23043
23044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23045 $as_echo "no" >&6; }
23046     tst_links_inet_ntop="no"
23047
23048 fi
23049 rm -f core conftest.err conftest.$ac_objext \
23050     conftest$ac_exeext conftest.$ac_ext
23051   #
23052   if test "$tst_links_inet_ntop" = "yes"; then
23053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
23054 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
23055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058       $cares_includes_arpa_inet
23059
23060 _ACEOF
23061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23062   $EGREP "inet_ntop" >/dev/null 2>&1; then :
23063
23064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23065 $as_echo "yes" >&6; }
23066       tst_proto_inet_ntop="yes"
23067
23068 else
23069
23070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 $as_echo "no" >&6; }
23072       tst_proto_inet_ntop="no"
23073
23074 fi
23075 rm -f conftest*
23076
23077   fi
23078   #
23079   if test "$tst_proto_inet_ntop" = "yes"; then
23080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
23081 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
23082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h.  */
23084
23085
23086         $cares_includes_arpa_inet
23087
23088 int main (void)
23089 {
23090
23091         if(0 != inet_ntop(0, 0, 0, 0))
23092           return 1;
23093
23094  ;
23095  return 0;
23096 }
23097
23098 _ACEOF
23099 if ac_fn_c_try_compile "$LINENO"; then :
23100
23101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23102 $as_echo "yes" >&6; }
23103       tst_compi_inet_ntop="yes"
23104
23105 else
23106
23107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23108 $as_echo "no" >&6; }
23109       tst_compi_inet_ntop="no"
23110
23111 fi
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113   fi
23114   #
23115     if test "x$cross_compiling" != "xyes" &&
23116     test "$tst_compi_inet_ntop" = "yes"; then
23117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
23118 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
23119     if test "$cross_compiling" = yes; then :
23120   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23122 as_fn_error $? "cannot run test program while cross compiling
23123 See \`config.log' for more details" "$LINENO" 5; }
23124 else
23125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23126 /* end confdefs.h.  */
23127
23128
23129         $cares_includes_stdlib
23130         $cares_includes_arpa_inet
23131         $cares_includes_string
23132
23133 int main (void)
23134 {
23135
23136         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
23137         char ipv4res[sizeof "255.255.255.255"];
23138         unsigned char ipv6a[26];
23139         unsigned char ipv4a[5];
23140         char *ipv6ptr = 0;
23141         char *ipv4ptr = 0;
23142         /* - */
23143         ipv4res[0] = '\0';
23144         ipv4a[0] = 0xc0;
23145         ipv4a[1] = 0xa8;
23146         ipv4a[2] = 0x64;
23147         ipv4a[3] = 0x01;
23148         ipv4a[4] = 0x01;
23149         /* - */
23150         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
23151         if(!ipv4ptr)
23152           exit(1); /* fail */
23153         if(ipv4ptr != ipv4res)
23154           exit(1); /* fail */
23155         if(!ipv4ptr[0])
23156           exit(1); /* fail */
23157         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
23158           exit(1); /* fail */
23159         /* - */
23160         ipv6res[0] = '\0';
23161         memset(ipv6a, 0, sizeof(ipv6a));
23162         ipv6a[0] = 0xfe;
23163         ipv6a[1] = 0x80;
23164         ipv6a[8] = 0x02;
23165         ipv6a[9] = 0x14;
23166         ipv6a[10] = 0x4f;
23167         ipv6a[11] = 0xff;
23168         ipv6a[12] = 0xfe;
23169         ipv6a[13] = 0x0b;
23170         ipv6a[14] = 0x76;
23171         ipv6a[15] = 0xc8;
23172         ipv6a[25] = 0x01;
23173         /* - */
23174         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
23175         if(!ipv6ptr)
23176           exit(1); /* fail */
23177         if(ipv6ptr != ipv6res)
23178           exit(1); /* fail */
23179         if(!ipv6ptr[0])
23180           exit(1); /* fail */
23181         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
23182           exit(1); /* fail */
23183         /* - */
23184         exit(0);
23185
23186  ;
23187  return 0;
23188 }
23189
23190 _ACEOF
23191 if ac_fn_c_try_run "$LINENO"; then :
23192
23193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23194 $as_echo "yes" >&6; }
23195       tst_works_inet_ntop="yes"
23196
23197 else
23198
23199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200 $as_echo "no" >&6; }
23201       tst_works_inet_ntop="no"
23202
23203 fi
23204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23205   conftest.$ac_objext conftest.beam conftest.$ac_ext
23206 fi
23207
23208   fi
23209   #
23210   if test "$tst_compi_inet_ntop" = "yes" &&
23211     test "$tst_works_inet_ntop" != "no"; then
23212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
23213 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
23214     if test "x$cares_disallow_inet_ntop" != "xyes"; then
23215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23216 $as_echo "yes" >&6; }
23217       tst_allow_inet_ntop="yes"
23218     else
23219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23220 $as_echo "no" >&6; }
23221       tst_allow_inet_ntop="no"
23222     fi
23223   fi
23224   #
23225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
23226 $as_echo_n "checking if inet_ntop might be used... " >&6; }
23227   if test "$tst_links_inet_ntop" = "yes" &&
23228      test "$tst_proto_inet_ntop" = "yes" &&
23229      test "$tst_compi_inet_ntop" = "yes" &&
23230      test "$tst_allow_inet_ntop" = "yes" &&
23231      test "$tst_works_inet_ntop" != "no"; then
23232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23233 $as_echo "yes" >&6; }
23234
23235 cat >>confdefs.h <<_ACEOF
23236 #define HAVE_INET_NTOP 1
23237 _ACEOF
23238
23239     ac_cv_func_inet_ntop="yes"
23240   else
23241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23242 $as_echo "no" >&6; }
23243     ac_cv_func_inet_ntop="no"
23244   fi
23245
23246
23247         #
23248   tst_links_inet_pton="unknown"
23249   tst_proto_inet_pton="unknown"
23250   tst_compi_inet_pton="unknown"
23251   tst_works_inet_pton="unknown"
23252   tst_allow_inet_pton="unknown"
23253   #
23254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
23255 $as_echo_n "checking if inet_pton can be linked... " >&6; }
23256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h.  */
23258
23259
23260 #define inet_pton innocuous_inet_pton
23261 #ifdef __STDC__
23262 # include <limits.h>
23263 #else
23264 # include <assert.h>
23265 #endif
23266 #undef inet_pton
23267 #ifdef __cplusplus
23268 extern "C"
23269 #endif
23270 char inet_pton ();
23271 #if defined __stub_inet_pton || defined __stub___inet_pton
23272 choke me
23273 #endif
23274
23275 int main (void)
23276 {
23277 return inet_pton ();
23278  ;
23279  return 0;
23280 }
23281
23282 _ACEOF
23283 if ac_fn_c_try_link "$LINENO"; then :
23284
23285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23286 $as_echo "yes" >&6; }
23287     tst_links_inet_pton="yes"
23288
23289 else
23290
23291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23292 $as_echo "no" >&6; }
23293     tst_links_inet_pton="no"
23294
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext \
23297     conftest$ac_exeext conftest.$ac_ext
23298   #
23299   if test "$tst_links_inet_pton" = "yes"; then
23300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
23301 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
23302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23303 /* end confdefs.h.  */
23304
23305       $cares_includes_arpa_inet
23306
23307 _ACEOF
23308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23309   $EGREP "inet_pton" >/dev/null 2>&1; then :
23310
23311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23312 $as_echo "yes" >&6; }
23313       tst_proto_inet_pton="yes"
23314
23315 else
23316
23317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23318 $as_echo "no" >&6; }
23319       tst_proto_inet_pton="no"
23320
23321 fi
23322 rm -f conftest*
23323
23324   fi
23325   #
23326   if test "$tst_proto_inet_pton" = "yes"; then
23327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
23328 $as_echo_n "checking if inet_pton is compilable... " >&6; }
23329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h.  */
23331
23332
23333         $cares_includes_arpa_inet
23334
23335 int main (void)
23336 {
23337
23338         if(0 != inet_pton(0, 0, 0))
23339           return 1;
23340
23341  ;
23342  return 0;
23343 }
23344
23345 _ACEOF
23346 if ac_fn_c_try_compile "$LINENO"; then :
23347
23348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23349 $as_echo "yes" >&6; }
23350       tst_compi_inet_pton="yes"
23351
23352 else
23353
23354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23355 $as_echo "no" >&6; }
23356       tst_compi_inet_pton="no"
23357
23358 fi
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360   fi
23361   #
23362     if test "x$cross_compiling" != "xyes" &&
23363     test "$tst_compi_inet_pton" = "yes"; then
23364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
23365 $as_echo_n "checking if inet_pton seems to work... " >&6; }
23366     if test "$cross_compiling" = yes; then :
23367   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23369 as_fn_error $? "cannot run test program while cross compiling
23370 See \`config.log' for more details" "$LINENO" 5; }
23371 else
23372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23373 /* end confdefs.h.  */
23374
23375
23376         $cares_includes_stdlib
23377         $cares_includes_arpa_inet
23378         $cares_includes_string
23379
23380 int main (void)
23381 {
23382
23383         unsigned char ipv6a[16+1];
23384         unsigned char ipv4a[4+1];
23385         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
23386         const char *ipv4src = "192.168.100.1";
23387         /* - */
23388         memset(ipv4a, 1, sizeof(ipv4a));
23389         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
23390           exit(1); /* fail */
23391         /* - */
23392         if( (ipv4a[0] != 0xc0) ||
23393             (ipv4a[1] != 0xa8) ||
23394             (ipv4a[2] != 0x64) ||
23395             (ipv4a[3] != 0x01) ||
23396             (ipv4a[4] != 0x01) )
23397           exit(1); /* fail */
23398         /* - */
23399         memset(ipv6a, 1, sizeof(ipv6a));
23400         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
23401           exit(1); /* fail */
23402         /* - */
23403         if( (ipv6a[0]  != 0xfe) ||
23404             (ipv6a[1]  != 0x80) ||
23405             (ipv6a[8]  != 0x02) ||
23406             (ipv6a[9]  != 0x14) ||
23407             (ipv6a[10] != 0x4f) ||
23408             (ipv6a[11] != 0xff) ||
23409             (ipv6a[12] != 0xfe) ||
23410             (ipv6a[13] != 0x0b) ||
23411             (ipv6a[14] != 0x76) ||
23412             (ipv6a[15] != 0xc8) ||
23413             (ipv6a[16] != 0x01) )
23414           exit(1); /* fail */
23415         /* - */
23416         if( (ipv6a[2]  != 0x0) ||
23417             (ipv6a[3]  != 0x0) ||
23418             (ipv6a[4]  != 0x0) ||
23419             (ipv6a[5]  != 0x0) ||
23420             (ipv6a[6]  != 0x0) ||
23421             (ipv6a[7]  != 0x0) )
23422           exit(1); /* fail */
23423         /* - */
23424         exit(0);
23425
23426  ;
23427  return 0;
23428 }
23429
23430 _ACEOF
23431 if ac_fn_c_try_run "$LINENO"; then :
23432
23433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23434 $as_echo "yes" >&6; }
23435       tst_works_inet_pton="yes"
23436
23437 else
23438
23439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23440 $as_echo "no" >&6; }
23441       tst_works_inet_pton="no"
23442
23443 fi
23444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23445   conftest.$ac_objext conftest.beam conftest.$ac_ext
23446 fi
23447
23448   fi
23449   #
23450   if test "$tst_compi_inet_pton" = "yes" &&
23451     test "$tst_works_inet_pton" != "no"; then
23452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
23453 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
23454     if test "x$cares_disallow_inet_pton" != "xyes"; then
23455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23456 $as_echo "yes" >&6; }
23457       tst_allow_inet_pton="yes"
23458     else
23459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23460 $as_echo "no" >&6; }
23461       tst_allow_inet_pton="no"
23462     fi
23463   fi
23464   #
23465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
23466 $as_echo_n "checking if inet_pton might be used... " >&6; }
23467   if test "$tst_links_inet_pton" = "yes" &&
23468      test "$tst_proto_inet_pton" = "yes" &&
23469      test "$tst_compi_inet_pton" = "yes" &&
23470      test "$tst_allow_inet_pton" = "yes" &&
23471      test "$tst_works_inet_pton" != "no"; then
23472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23473 $as_echo "yes" >&6; }
23474
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_INET_PTON 1
23477 _ACEOF
23478
23479     ac_cv_func_inet_pton="yes"
23480   else
23481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 $as_echo "no" >&6; }
23483     ac_cv_func_inet_pton="no"
23484   fi
23485
23486
23487 cares_includes_stropts="\
23488 /* includes start */
23489 #ifdef HAVE_SYS_TYPES_H
23490 #  include <sys/types.h>
23491 #endif
23492 #ifdef HAVE_UNISTD_H
23493 #  include <unistd.h>
23494 #endif
23495 #ifdef HAVE_SYS_SOCKET_H
23496 #  include <sys/socket.h>
23497 #endif
23498 #ifdef HAVE_SYS_IOCTL_H
23499 #  include <sys/ioctl.h>
23500 #endif
23501 #ifdef HAVE_STROPTS_H
23502 #  include <stropts.h>
23503 #endif
23504 /* includes end */"
23505   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
23506 do :
23507   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
23509 "
23510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23511   cat >>confdefs.h <<_ACEOF
23512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23513 _ACEOF
23514
23515 fi
23516
23517 done
23518
23519
23520
23521     #
23522   tst_links_ioctl="unknown"
23523   tst_proto_ioctl="unknown"
23524   tst_compi_ioctl="unknown"
23525   tst_allow_ioctl="unknown"
23526   #
23527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
23528 $as_echo_n "checking if ioctl can be linked... " >&6; }
23529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23530 /* end confdefs.h.  */
23531
23532
23533 #define ioctl innocuous_ioctl
23534 #ifdef __STDC__
23535 # include <limits.h>
23536 #else
23537 # include <assert.h>
23538 #endif
23539 #undef ioctl
23540 #ifdef __cplusplus
23541 extern "C"
23542 #endif
23543 char ioctl ();
23544 #if defined __stub_ioctl || defined __stub___ioctl
23545 choke me
23546 #endif
23547
23548 int main (void)
23549 {
23550 return ioctl ();
23551  ;
23552  return 0;
23553 }
23554
23555 _ACEOF
23556 if ac_fn_c_try_link "$LINENO"; then :
23557
23558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23559 $as_echo "yes" >&6; }
23560     tst_links_ioctl="yes"
23561
23562 else
23563
23564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23565 $as_echo "no" >&6; }
23566     tst_links_ioctl="no"
23567
23568 fi
23569 rm -f core conftest.err conftest.$ac_objext \
23570     conftest$ac_exeext conftest.$ac_ext
23571   #
23572   if test "$tst_links_ioctl" = "yes"; then
23573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
23574 $as_echo_n "checking if ioctl is prototyped... " >&6; }
23575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h.  */
23577
23578       $cares_includes_stropts
23579
23580 _ACEOF
23581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23582   $EGREP "ioctl" >/dev/null 2>&1; then :
23583
23584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585 $as_echo "yes" >&6; }
23586       tst_proto_ioctl="yes"
23587
23588 else
23589
23590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23592       tst_proto_ioctl="no"
23593
23594 fi
23595 rm -f conftest*
23596
23597   fi
23598   #
23599   if test "$tst_proto_ioctl" = "yes"; then
23600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
23601 $as_echo_n "checking if ioctl is compilable... " >&6; }
23602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23603 /* end confdefs.h.  */
23604
23605
23606         $cares_includes_stropts
23607
23608 int main (void)
23609 {
23610
23611         if(0 != ioctl(0, 0, 0))
23612           return 1;
23613
23614  ;
23615  return 0;
23616 }
23617
23618 _ACEOF
23619 if ac_fn_c_try_compile "$LINENO"; then :
23620
23621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23622 $as_echo "yes" >&6; }
23623       tst_compi_ioctl="yes"
23624
23625 else
23626
23627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628 $as_echo "no" >&6; }
23629       tst_compi_ioctl="no"
23630
23631 fi
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633   fi
23634   #
23635   if test "$tst_compi_ioctl" = "yes"; then
23636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
23637 $as_echo_n "checking if ioctl usage allowed... " >&6; }
23638     if test "x$cares_disallow_ioctl" != "xyes"; then
23639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23640 $as_echo "yes" >&6; }
23641       tst_allow_ioctl="yes"
23642     else
23643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23644 $as_echo "no" >&6; }
23645       tst_allow_ioctl="no"
23646     fi
23647   fi
23648   #
23649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
23650 $as_echo_n "checking if ioctl might be used... " >&6; }
23651   if test "$tst_links_ioctl" = "yes" &&
23652      test "$tst_proto_ioctl" = "yes" &&
23653      test "$tst_compi_ioctl" = "yes" &&
23654      test "$tst_allow_ioctl" = "yes"; then
23655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23656 $as_echo "yes" >&6; }
23657
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_IOCTL 1
23660 _ACEOF
23661
23662     ac_cv_func_ioctl="yes"
23663
23664   #
23665   tst_compi_ioctl_fionbio="unknown"
23666   tst_allow_ioctl_fionbio="unknown"
23667   #
23668   if test "$ac_cv_func_ioctl" = "yes"; then
23669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
23670 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
23671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h.  */
23673
23674
23675         $cares_includes_stropts
23676
23677 int main (void)
23678 {
23679
23680         int flags = 0;
23681         if(0 != ioctl(0, FIONBIO, &flags))
23682           return 1;
23683
23684  ;
23685  return 0;
23686 }
23687
23688 _ACEOF
23689 if ac_fn_c_try_compile "$LINENO"; then :
23690
23691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692 $as_echo "yes" >&6; }
23693       tst_compi_ioctl_fionbio="yes"
23694
23695 else
23696
23697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23698 $as_echo "no" >&6; }
23699       tst_compi_ioctl_fionbio="no"
23700
23701 fi
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703   fi
23704   #
23705   if test "$tst_compi_ioctl_fionbio" = "yes"; then
23706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
23707 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
23708     if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
23709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23710 $as_echo "yes" >&6; }
23711       tst_allow_ioctl_fionbio="yes"
23712     else
23713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715       tst_allow_ioctl_fionbio="no"
23716     fi
23717   fi
23718   #
23719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
23720 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
23721   if test "$tst_compi_ioctl_fionbio" = "yes" &&
23722      test "$tst_allow_ioctl_fionbio" = "yes"; then
23723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23725
23726 cat >>confdefs.h <<_ACEOF
23727 #define HAVE_IOCTL_FIONBIO 1
23728 _ACEOF
23729
23730     ac_cv_func_ioctl_fionbio="yes"
23731   else
23732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23733 $as_echo "no" >&6; }
23734     ac_cv_func_ioctl_fionbio="no"
23735   fi
23736
23737
23738   #
23739   tst_compi_ioctl_siocgifaddr="unknown"
23740   tst_allow_ioctl_siocgifaddr="unknown"
23741   #
23742   if test "$ac_cv_func_ioctl" = "yes"; then
23743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
23744 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
23745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h.  */
23747
23748
23749         $cares_includes_stropts
23750         #include <net/if.h>
23751
23752 int main (void)
23753 {
23754
23755         struct ifreq ifr;
23756         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
23757           return 1;
23758
23759  ;
23760  return 0;
23761 }
23762
23763 _ACEOF
23764 if ac_fn_c_try_compile "$LINENO"; then :
23765
23766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23767 $as_echo "yes" >&6; }
23768       tst_compi_ioctl_siocgifaddr="yes"
23769
23770 else
23771
23772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23774       tst_compi_ioctl_siocgifaddr="no"
23775
23776 fi
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778   fi
23779   #
23780   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
23781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
23782 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
23783     if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
23784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23785 $as_echo "yes" >&6; }
23786       tst_allow_ioctl_siocgifaddr="yes"
23787     else
23788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23790       tst_allow_ioctl_siocgifaddr="no"
23791     fi
23792   fi
23793   #
23794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
23795 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
23796   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
23797      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
23798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23799 $as_echo "yes" >&6; }
23800
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_IOCTL_SIOCGIFADDR 1
23803 _ACEOF
23804
23805     ac_cv_func_ioctl_siocgifaddr="yes"
23806   else
23807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23808 $as_echo "no" >&6; }
23809     ac_cv_func_ioctl_siocgifaddr="no"
23810   fi
23811
23812   else
23813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23814 $as_echo "no" >&6; }
23815     ac_cv_func_ioctl="no"
23816   fi
23817
23818
23819     #
23820   tst_links_ioctlsocket="unknown"
23821   tst_proto_ioctlsocket="unknown"
23822   tst_compi_ioctlsocket="unknown"
23823   tst_allow_ioctlsocket="unknown"
23824   #
23825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
23826 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
23827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h.  */
23829
23830
23831       $cares_includes_winsock2
23832
23833 int main (void)
23834 {
23835
23836       if(0 != ioctlsocket(0, 0, 0))
23837         return 1;
23838
23839  ;
23840  return 0;
23841 }
23842
23843 _ACEOF
23844 if ac_fn_c_try_link "$LINENO"; then :
23845
23846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23847 $as_echo "yes" >&6; }
23848     tst_links_ioctlsocket="yes"
23849
23850 else
23851
23852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23853 $as_echo "no" >&6; }
23854     tst_links_ioctlsocket="no"
23855
23856 fi
23857 rm -f core conftest.err conftest.$ac_objext \
23858     conftest$ac_exeext conftest.$ac_ext
23859   #
23860   if test "$tst_links_ioctlsocket" = "yes"; then
23861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
23862 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
23863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865
23866       $cares_includes_winsock2
23867
23868 _ACEOF
23869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23870   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
23871
23872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23873 $as_echo "yes" >&6; }
23874       tst_proto_ioctlsocket="yes"
23875
23876 else
23877
23878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23879 $as_echo "no" >&6; }
23880       tst_proto_ioctlsocket="no"
23881
23882 fi
23883 rm -f conftest*
23884
23885   fi
23886   #
23887   if test "$tst_proto_ioctlsocket" = "yes"; then
23888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
23889 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
23890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h.  */
23892
23893
23894         $cares_includes_winsock2
23895
23896 int main (void)
23897 {
23898
23899         if(0 != ioctlsocket(0, 0, 0))
23900           return 1;
23901
23902  ;
23903  return 0;
23904 }
23905
23906 _ACEOF
23907 if ac_fn_c_try_compile "$LINENO"; then :
23908
23909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23910 $as_echo "yes" >&6; }
23911       tst_compi_ioctlsocket="yes"
23912
23913 else
23914
23915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23917       tst_compi_ioctlsocket="no"
23918
23919 fi
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921   fi
23922   #
23923   if test "$tst_compi_ioctlsocket" = "yes"; then
23924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
23925 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
23926     if test "x$cares_disallow_ioctlsocket" != "xyes"; then
23927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23928 $as_echo "yes" >&6; }
23929       tst_allow_ioctlsocket="yes"
23930     else
23931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23932 $as_echo "no" >&6; }
23933       tst_allow_ioctlsocket="no"
23934     fi
23935   fi
23936   #
23937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
23938 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
23939   if test "$tst_links_ioctlsocket" = "yes" &&
23940      test "$tst_proto_ioctlsocket" = "yes" &&
23941      test "$tst_compi_ioctlsocket" = "yes" &&
23942      test "$tst_allow_ioctlsocket" = "yes"; then
23943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }
23945
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_IOCTLSOCKET 1
23948 _ACEOF
23949
23950     ac_cv_func_ioctlsocket="yes"
23951
23952   #
23953   tst_compi_ioctlsocket_fionbio="unknown"
23954   tst_allow_ioctlsocket_fionbio="unknown"
23955   #
23956   if test "$ac_cv_func_ioctlsocket" = "yes"; then
23957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
23958 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
23959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h.  */
23961
23962
23963         $cares_includes_winsock2
23964
23965 int main (void)
23966 {
23967
23968         int flags = 0;
23969         if(0 != ioctlsocket(0, FIONBIO, &flags))
23970           return 1;
23971
23972  ;
23973  return 0;
23974 }
23975
23976 _ACEOF
23977 if ac_fn_c_try_compile "$LINENO"; then :
23978
23979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23980 $as_echo "yes" >&6; }
23981       tst_compi_ioctlsocket_fionbio="yes"
23982
23983 else
23984
23985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23986 $as_echo "no" >&6; }
23987       tst_compi_ioctlsocket_fionbio="no"
23988
23989 fi
23990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23991   fi
23992   #
23993   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
23994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
23995 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
23996     if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
23997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23998 $as_echo "yes" >&6; }
23999       tst_allow_ioctlsocket_fionbio="yes"
24000     else
24001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002 $as_echo "no" >&6; }
24003       tst_allow_ioctlsocket_fionbio="no"
24004     fi
24005   fi
24006   #
24007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
24008 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
24009   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
24010      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
24011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012 $as_echo "yes" >&6; }
24013
24014 cat >>confdefs.h <<_ACEOF
24015 #define HAVE_IOCTLSOCKET_FIONBIO 1
24016 _ACEOF
24017
24018     ac_cv_func_ioctlsocket_fionbio="yes"
24019   else
24020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021 $as_echo "no" >&6; }
24022     ac_cv_func_ioctlsocket_fionbio="no"
24023   fi
24024
24025   else
24026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24027 $as_echo "no" >&6; }
24028     ac_cv_func_ioctlsocket="no"
24029   fi
24030
24031
24032     #
24033   tst_links_ioctlsocket_camel="unknown"
24034   tst_proto_ioctlsocket_camel="unknown"
24035   tst_compi_ioctlsocket_camel="unknown"
24036   tst_allow_ioctlsocket_camel="unknown"
24037   #
24038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
24039 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
24040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h.  */
24042
24043
24044 #define IoctlSocket innocuous_IoctlSocket
24045 #ifdef __STDC__
24046 # include <limits.h>
24047 #else
24048 # include <assert.h>
24049 #endif
24050 #undef IoctlSocket
24051 #ifdef __cplusplus
24052 extern "C"
24053 #endif
24054 char IoctlSocket ();
24055 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
24056 choke me
24057 #endif
24058
24059 int main (void)
24060 {
24061 return IoctlSocket ();
24062  ;
24063  return 0;
24064 }
24065
24066 _ACEOF
24067 if ac_fn_c_try_link "$LINENO"; then :
24068
24069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24070 $as_echo "yes" >&6; }
24071     tst_links_ioctlsocket_camel="yes"
24072
24073 else
24074
24075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077     tst_links_ioctlsocket_camel="no"
24078
24079 fi
24080 rm -f core conftest.err conftest.$ac_objext \
24081     conftest$ac_exeext conftest.$ac_ext
24082   #
24083   if test "$tst_links_ioctlsocket_camel" = "yes"; then
24084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
24085 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
24086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h.  */
24088
24089       $cares_includes_stropts
24090
24091 _ACEOF
24092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24093   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
24094
24095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096 $as_echo "yes" >&6; }
24097       tst_proto_ioctlsocket_camel="yes"
24098
24099 else
24100
24101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24102 $as_echo "no" >&6; }
24103       tst_proto_ioctlsocket_camel="no"
24104
24105 fi
24106 rm -f conftest*
24107
24108   fi
24109   #
24110   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
24111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
24112 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
24113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h.  */
24115
24116
24117         $cares_includes_stropts
24118
24119 int main (void)
24120 {
24121
24122         if(0 != IoctlSocket(0, 0, 0))
24123           return 1;
24124
24125  ;
24126  return 0;
24127 }
24128
24129 _ACEOF
24130 if ac_fn_c_try_compile "$LINENO"; then :
24131
24132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24133 $as_echo "yes" >&6; }
24134       tst_compi_ioctlsocket_camel="yes"
24135
24136 else
24137
24138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140       tst_compi_ioctlsocket_camel="no"
24141
24142 fi
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24144   fi
24145   #
24146   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
24147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
24148 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
24149     if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
24150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24151 $as_echo "yes" >&6; }
24152       tst_allow_ioctlsocket_camel="yes"
24153     else
24154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 $as_echo "no" >&6; }
24156       tst_allow_ioctlsocket_camel="no"
24157     fi
24158   fi
24159   #
24160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
24161 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
24162   if test "$tst_links_ioctlsocket_camel" = "yes" &&
24163      test "$tst_proto_ioctlsocket_camel" = "yes" &&
24164      test "$tst_compi_ioctlsocket_camel" = "yes" &&
24165      test "$tst_allow_ioctlsocket_camel" = "yes"; then
24166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24167 $as_echo "yes" >&6; }
24168
24169 cat >>confdefs.h <<_ACEOF
24170 #define HAVE_IOCTLSOCKET_CAMEL 1
24171 _ACEOF
24172
24173     ac_cv_func_ioctlsocket_camel="yes"
24174
24175   #
24176   tst_compi_ioctlsocket_camel_fionbio="unknown"
24177   tst_allow_ioctlsocket_camel_fionbio="unknown"
24178   #
24179   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
24180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
24181 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
24182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183 /* end confdefs.h.  */
24184
24185
24186         $cares_includes_stropts
24187
24188 int main (void)
24189 {
24190
24191         long flags = 0;
24192         if(0 != ioctlsocket(0, FIONBIO, &flags))
24193           return 1;
24194
24195  ;
24196  return 0;
24197 }
24198
24199 _ACEOF
24200 if ac_fn_c_try_compile "$LINENO"; then :
24201
24202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24203 $as_echo "yes" >&6; }
24204       tst_compi_ioctlsocket_camel_fionbio="yes"
24205
24206 else
24207
24208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209 $as_echo "no" >&6; }
24210       tst_compi_ioctlsocket_camel_fionbio="no"
24211
24212 fi
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214   fi
24215   #
24216   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
24217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
24218 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
24219     if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
24220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24221 $as_echo "yes" >&6; }
24222       tst_allow_ioctlsocket_camel_fionbio="yes"
24223     else
24224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24225 $as_echo "no" >&6; }
24226       tst_allow_ioctlsocket_camel_fionbio="no"
24227     fi
24228   fi
24229   #
24230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
24231 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
24232   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
24233      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
24234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24235 $as_echo "yes" >&6; }
24236
24237 cat >>confdefs.h <<_ACEOF
24238 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
24239 _ACEOF
24240
24241     ac_cv_func_ioctlsocket_camel_fionbio="yes"
24242   else
24243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24244 $as_echo "no" >&6; }
24245     ac_cv_func_ioctlsocket_camel_fionbio="no"
24246   fi
24247
24248   else
24249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24250 $as_echo "no" >&6; }
24251     ac_cv_func_ioctlsocket_camel="no"
24252   fi
24253
24254
24255       #
24256   tst_links_setsockopt="unknown"
24257   tst_proto_setsockopt="unknown"
24258   tst_compi_setsockopt="unknown"
24259   tst_allow_setsockopt="unknown"
24260   #
24261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
24262 $as_echo_n "checking if setsockopt can be linked... " >&6; }
24263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h.  */
24265
24266
24267       $cares_includes_winsock2
24268       $cares_includes_sys_socket
24269
24270 int main (void)
24271 {
24272
24273       if(0 != setsockopt(0, 0, 0, 0, 0))
24274         return 1;
24275
24276  ;
24277  return 0;
24278 }
24279
24280 _ACEOF
24281 if ac_fn_c_try_link "$LINENO"; then :
24282
24283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24284 $as_echo "yes" >&6; }
24285     tst_links_setsockopt="yes"
24286
24287 else
24288
24289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24290 $as_echo "no" >&6; }
24291     tst_links_setsockopt="no"
24292
24293 fi
24294 rm -f core conftest.err conftest.$ac_objext \
24295     conftest$ac_exeext conftest.$ac_ext
24296   #
24297   if test "$tst_links_setsockopt" = "yes"; then
24298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
24299 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
24300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h.  */
24302
24303       $cares_includes_winsock2
24304       $cares_includes_sys_socket
24305
24306 _ACEOF
24307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24308   $EGREP "setsockopt" >/dev/null 2>&1; then :
24309
24310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24311 $as_echo "yes" >&6; }
24312       tst_proto_setsockopt="yes"
24313
24314 else
24315
24316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24318       tst_proto_setsockopt="no"
24319
24320 fi
24321 rm -f conftest*
24322
24323   fi
24324   #
24325   if test "$tst_proto_setsockopt" = "yes"; then
24326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
24327 $as_echo_n "checking if setsockopt is compilable... " >&6; }
24328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h.  */
24330
24331
24332         $cares_includes_winsock2
24333         $cares_includes_sys_socket
24334
24335 int main (void)
24336 {
24337
24338         if(0 != setsockopt(0, 0, 0, 0, 0))
24339           return 1;
24340
24341  ;
24342  return 0;
24343 }
24344
24345 _ACEOF
24346 if ac_fn_c_try_compile "$LINENO"; then :
24347
24348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24349 $as_echo "yes" >&6; }
24350       tst_compi_setsockopt="yes"
24351
24352 else
24353
24354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24355 $as_echo "no" >&6; }
24356       tst_compi_setsockopt="no"
24357
24358 fi
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24360   fi
24361   #
24362   if test "$tst_compi_setsockopt" = "yes"; then
24363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
24364 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
24365     if test "x$cares_disallow_setsockopt" != "xyes"; then
24366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24367 $as_echo "yes" >&6; }
24368       tst_allow_setsockopt="yes"
24369     else
24370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24371 $as_echo "no" >&6; }
24372       tst_allow_setsockopt="no"
24373     fi
24374   fi
24375   #
24376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
24377 $as_echo_n "checking if setsockopt might be used... " >&6; }
24378   if test "$tst_links_setsockopt" = "yes" &&
24379      test "$tst_proto_setsockopt" = "yes" &&
24380      test "$tst_compi_setsockopt" = "yes" &&
24381      test "$tst_allow_setsockopt" = "yes"; then
24382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24383 $as_echo "yes" >&6; }
24384
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_SETSOCKOPT 1
24387 _ACEOF
24388
24389     ac_cv_func_setsockopt="yes"
24390
24391   #
24392   tst_compi_setsockopt_so_nonblock="unknown"
24393   tst_allow_setsockopt_so_nonblock="unknown"
24394   #
24395   if test "$ac_cv_func_setsockopt" = "yes"; then
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
24397 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
24398     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h.  */
24400
24401
24402         $cares_includes_winsock2
24403         $cares_includes_sys_socket
24404
24405 int main (void)
24406 {
24407
24408         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 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_setsockopt_so_nonblock="yes"
24421
24422 else
24423
24424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24425 $as_echo "no" >&6; }
24426       tst_compi_setsockopt_so_nonblock="no"
24427
24428 fi
24429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24430   fi
24431   #
24432   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
24433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
24434 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
24435     if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
24436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437 $as_echo "yes" >&6; }
24438       tst_allow_setsockopt_so_nonblock="yes"
24439     else
24440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442       tst_allow_setsockopt_so_nonblock="no"
24443     fi
24444   fi
24445   #
24446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
24447 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
24448   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
24449      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
24450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24451 $as_echo "yes" >&6; }
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
24455 _ACEOF
24456
24457     ac_cv_func_setsockopt_so_nonblock="yes"
24458   else
24459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24460 $as_echo "no" >&6; }
24461     ac_cv_func_setsockopt_so_nonblock="no"
24462   fi
24463
24464   else
24465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24466 $as_echo "no" >&6; }
24467     ac_cv_func_setsockopt="no"
24468   fi
24469
24470
24471         #
24472   tst_links_socket="unknown"
24473   tst_proto_socket="unknown"
24474   tst_compi_socket="unknown"
24475   tst_allow_socket="unknown"
24476   #
24477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
24478 $as_echo_n "checking if socket can be linked... " >&6; }
24479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h.  */
24481
24482
24483       $cares_includes_winsock2
24484       $cares_includes_sys_socket
24485       $cares_includes_socket
24486
24487 int main (void)
24488 {
24489
24490       if(0 != socket(0, 0, 0))
24491         return 1;
24492
24493  ;
24494  return 0;
24495 }
24496
24497 _ACEOF
24498 if ac_fn_c_try_link "$LINENO"; then :
24499
24500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24501 $as_echo "yes" >&6; }
24502     tst_links_socket="yes"
24503
24504 else
24505
24506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508     tst_links_socket="no"
24509
24510 fi
24511 rm -f core conftest.err conftest.$ac_objext \
24512     conftest$ac_exeext conftest.$ac_ext
24513   #
24514   if test "$tst_links_socket" = "yes"; then
24515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
24516 $as_echo_n "checking if socket is prototyped... " >&6; }
24517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h.  */
24519
24520       $cares_includes_winsock2
24521       $cares_includes_sys_socket
24522       $cares_includes_socket
24523
24524 _ACEOF
24525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24526   $EGREP "socket" >/dev/null 2>&1; then :
24527
24528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24529 $as_echo "yes" >&6; }
24530       tst_proto_socket="yes"
24531
24532 else
24533
24534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24535 $as_echo "no" >&6; }
24536       tst_proto_socket="no"
24537
24538 fi
24539 rm -f conftest*
24540
24541   fi
24542   #
24543   if test "$tst_proto_socket" = "yes"; then
24544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
24545 $as_echo_n "checking if socket is compilable... " >&6; }
24546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547 /* end confdefs.h.  */
24548
24549
24550         $cares_includes_winsock2
24551         $cares_includes_sys_socket
24552         $cares_includes_socket
24553
24554 int main (void)
24555 {
24556
24557         if(0 != socket(0, 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_socket="yes"
24570
24571 else
24572
24573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24574 $as_echo "no" >&6; }
24575       tst_compi_socket="no"
24576
24577 fi
24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579   fi
24580   #
24581   if test "$tst_compi_socket" = "yes"; then
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
24583 $as_echo_n "checking if socket usage allowed... " >&6; }
24584     if test "x$cares_disallow_socket" != "xyes"; then
24585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24586 $as_echo "yes" >&6; }
24587       tst_allow_socket="yes"
24588     else
24589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 $as_echo "no" >&6; }
24591       tst_allow_socket="no"
24592     fi
24593   fi
24594   #
24595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
24596 $as_echo_n "checking if socket might be used... " >&6; }
24597   if test "$tst_links_socket" = "yes" &&
24598      test "$tst_proto_socket" = "yes" &&
24599      test "$tst_compi_socket" = "yes" &&
24600      test "$tst_allow_socket" = "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_SOCKET 1
24606 _ACEOF
24607
24608     ac_cv_func_socket="yes"
24609   else
24610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611 $as_echo "no" >&6; }
24612     ac_cv_func_socket="no"
24613   fi
24614
24615
24616     #
24617   tst_links_strcasecmp="unknown"
24618   tst_proto_strcasecmp="unknown"
24619   tst_compi_strcasecmp="unknown"
24620   tst_allow_strcasecmp="unknown"
24621   #
24622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
24623 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
24624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 /* end confdefs.h.  */
24626
24627
24628 #define strcasecmp innocuous_strcasecmp
24629 #ifdef __STDC__
24630 # include <limits.h>
24631 #else
24632 # include <assert.h>
24633 #endif
24634 #undef strcasecmp
24635 #ifdef __cplusplus
24636 extern "C"
24637 #endif
24638 char strcasecmp ();
24639 #if defined __stub_strcasecmp || defined __stub___strcasecmp
24640 choke me
24641 #endif
24642
24643 int main (void)
24644 {
24645 return strcasecmp ();
24646  ;
24647  return 0;
24648 }
24649
24650 _ACEOF
24651 if ac_fn_c_try_link "$LINENO"; then :
24652
24653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24654 $as_echo "yes" >&6; }
24655     tst_links_strcasecmp="yes"
24656
24657 else
24658
24659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24660 $as_echo "no" >&6; }
24661     tst_links_strcasecmp="no"
24662
24663 fi
24664 rm -f core conftest.err conftest.$ac_objext \
24665     conftest$ac_exeext conftest.$ac_ext
24666   #
24667   if test "$tst_links_strcasecmp" = "yes"; then
24668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
24669 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
24670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h.  */
24672
24673       $cares_includes_string
24674
24675 _ACEOF
24676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24677   $EGREP "strcasecmp" >/dev/null 2>&1; then :
24678
24679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24680 $as_echo "yes" >&6; }
24681       tst_proto_strcasecmp="yes"
24682
24683 else
24684
24685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24687       tst_proto_strcasecmp="no"
24688
24689 fi
24690 rm -f conftest*
24691
24692   fi
24693   #
24694   if test "$tst_proto_strcasecmp" = "yes"; then
24695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
24696 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
24697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h.  */
24699
24700
24701         $cares_includes_string
24702
24703 int main (void)
24704 {
24705
24706         if(0 != strcasecmp(0, 0))
24707           return 1;
24708
24709  ;
24710  return 0;
24711 }
24712
24713 _ACEOF
24714 if ac_fn_c_try_compile "$LINENO"; then :
24715
24716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24717 $as_echo "yes" >&6; }
24718       tst_compi_strcasecmp="yes"
24719
24720 else
24721
24722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24723 $as_echo "no" >&6; }
24724       tst_compi_strcasecmp="no"
24725
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728   fi
24729   #
24730   if test "$tst_compi_strcasecmp" = "yes"; then
24731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
24732 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
24733     if test "x$cares_disallow_strcasecmp" != "xyes"; then
24734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24735 $as_echo "yes" >&6; }
24736       tst_allow_strcasecmp="yes"
24737     else
24738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24739 $as_echo "no" >&6; }
24740       tst_allow_strcasecmp="no"
24741     fi
24742   fi
24743   #
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
24745 $as_echo_n "checking if strcasecmp might be used... " >&6; }
24746   if test "$tst_links_strcasecmp" = "yes" &&
24747      test "$tst_proto_strcasecmp" = "yes" &&
24748      test "$tst_compi_strcasecmp" = "yes" &&
24749      test "$tst_allow_strcasecmp" = "yes"; then
24750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24751 $as_echo "yes" >&6; }
24752
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_STRCASECMP 1
24755 _ACEOF
24756
24757     ac_cv_func_strcasecmp="yes"
24758   else
24759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24760 $as_echo "no" >&6; }
24761     ac_cv_func_strcasecmp="no"
24762   fi
24763
24764
24765     #
24766   tst_links_strcmpi="unknown"
24767   tst_proto_strcmpi="unknown"
24768   tst_compi_strcmpi="unknown"
24769   tst_allow_strcmpi="unknown"
24770   #
24771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
24772 $as_echo_n "checking if strcmpi can be linked... " >&6; }
24773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774 /* end confdefs.h.  */
24775
24776
24777 #define strcmpi innocuous_strcmpi
24778 #ifdef __STDC__
24779 # include <limits.h>
24780 #else
24781 # include <assert.h>
24782 #endif
24783 #undef strcmpi
24784 #ifdef __cplusplus
24785 extern "C"
24786 #endif
24787 char strcmpi ();
24788 #if defined __stub_strcmpi || defined __stub___strcmpi
24789 choke me
24790 #endif
24791
24792 int main (void)
24793 {
24794 return strcmpi ();
24795  ;
24796  return 0;
24797 }
24798
24799 _ACEOF
24800 if ac_fn_c_try_link "$LINENO"; then :
24801
24802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803 $as_echo "yes" >&6; }
24804     tst_links_strcmpi="yes"
24805
24806 else
24807
24808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24809 $as_echo "no" >&6; }
24810     tst_links_strcmpi="no"
24811
24812 fi
24813 rm -f core conftest.err conftest.$ac_objext \
24814     conftest$ac_exeext conftest.$ac_ext
24815   #
24816   if test "$tst_links_strcmpi" = "yes"; then
24817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
24818 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
24819     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24820 /* end confdefs.h.  */
24821
24822       $cares_includes_string
24823
24824 _ACEOF
24825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24826   $EGREP "strcmpi" >/dev/null 2>&1; then :
24827
24828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24829 $as_echo "yes" >&6; }
24830       tst_proto_strcmpi="yes"
24831
24832 else
24833
24834       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24835 $as_echo "no" >&6; }
24836       tst_proto_strcmpi="no"
24837
24838 fi
24839 rm -f conftest*
24840
24841   fi
24842   #
24843   if test "$tst_proto_strcmpi" = "yes"; then
24844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
24845 $as_echo_n "checking if strcmpi is compilable... " >&6; }
24846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847 /* end confdefs.h.  */
24848
24849
24850         $cares_includes_string
24851
24852 int main (void)
24853 {
24854
24855         if(0 != strcmpi(0, 0))
24856           return 1;
24857
24858  ;
24859  return 0;
24860 }
24861
24862 _ACEOF
24863 if ac_fn_c_try_compile "$LINENO"; then :
24864
24865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24866 $as_echo "yes" >&6; }
24867       tst_compi_strcmpi="yes"
24868
24869 else
24870
24871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873       tst_compi_strcmpi="no"
24874
24875 fi
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877   fi
24878   #
24879   if test "$tst_compi_strcmpi" = "yes"; then
24880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
24881 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
24882     if test "x$cares_disallow_strcmpi" != "xyes"; then
24883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884 $as_echo "yes" >&6; }
24885       tst_allow_strcmpi="yes"
24886     else
24887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 $as_echo "no" >&6; }
24889       tst_allow_strcmpi="no"
24890     fi
24891   fi
24892   #
24893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
24894 $as_echo_n "checking if strcmpi might be used... " >&6; }
24895   if test "$tst_links_strcmpi" = "yes" &&
24896      test "$tst_proto_strcmpi" = "yes" &&
24897      test "$tst_compi_strcmpi" = "yes" &&
24898      test "$tst_allow_strcmpi" = "yes"; then
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24900 $as_echo "yes" >&6; }
24901
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_STRCMPI 1
24904 _ACEOF
24905
24906     ac_cv_func_strcmpi="yes"
24907   else
24908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24909 $as_echo "no" >&6; }
24910     ac_cv_func_strcmpi="no"
24911   fi
24912
24913
24914     #
24915   tst_links_strdup="unknown"
24916   tst_proto_strdup="unknown"
24917   tst_compi_strdup="unknown"
24918   tst_allow_strdup="unknown"
24919   #
24920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
24921 $as_echo_n "checking if strdup can be linked... " >&6; }
24922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h.  */
24924
24925
24926 #define strdup innocuous_strdup
24927 #ifdef __STDC__
24928 # include <limits.h>
24929 #else
24930 # include <assert.h>
24931 #endif
24932 #undef strdup
24933 #ifdef __cplusplus
24934 extern "C"
24935 #endif
24936 char strdup ();
24937 #if defined __stub_strdup || defined __stub___strdup
24938 choke me
24939 #endif
24940
24941 int main (void)
24942 {
24943 return strdup ();
24944  ;
24945  return 0;
24946 }
24947
24948 _ACEOF
24949 if ac_fn_c_try_link "$LINENO"; then :
24950
24951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24952 $as_echo "yes" >&6; }
24953     tst_links_strdup="yes"
24954
24955 else
24956
24957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24958 $as_echo "no" >&6; }
24959     tst_links_strdup="no"
24960
24961 fi
24962 rm -f core conftest.err conftest.$ac_objext \
24963     conftest$ac_exeext conftest.$ac_ext
24964   #
24965   if test "$tst_links_strdup" = "yes"; then
24966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
24967 $as_echo_n "checking if strdup is prototyped... " >&6; }
24968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h.  */
24970
24971       $cares_includes_string
24972
24973 _ACEOF
24974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24975   $EGREP "strdup" >/dev/null 2>&1; then :
24976
24977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24978 $as_echo "yes" >&6; }
24979       tst_proto_strdup="yes"
24980
24981 else
24982
24983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24984 $as_echo "no" >&6; }
24985       tst_proto_strdup="no"
24986
24987 fi
24988 rm -f conftest*
24989
24990   fi
24991   #
24992   if test "$tst_proto_strdup" = "yes"; then
24993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
24994 $as_echo_n "checking if strdup is compilable... " >&6; }
24995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996 /* end confdefs.h.  */
24997
24998
24999         $cares_includes_string
25000
25001 int main (void)
25002 {
25003
25004         if(0 != strdup(0))
25005           return 1;
25006
25007  ;
25008  return 0;
25009 }
25010
25011 _ACEOF
25012 if ac_fn_c_try_compile "$LINENO"; then :
25013
25014       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25015 $as_echo "yes" >&6; }
25016       tst_compi_strdup="yes"
25017
25018 else
25019
25020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25022       tst_compi_strdup="no"
25023
25024 fi
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026   fi
25027   #
25028   if test "$tst_compi_strdup" = "yes"; then
25029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
25030 $as_echo_n "checking if strdup usage allowed... " >&6; }
25031     if test "x$cares_disallow_strdup" != "xyes"; then
25032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25033 $as_echo "yes" >&6; }
25034       tst_allow_strdup="yes"
25035     else
25036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25037 $as_echo "no" >&6; }
25038       tst_allow_strdup="no"
25039     fi
25040   fi
25041   #
25042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
25043 $as_echo_n "checking if strdup might be used... " >&6; }
25044   if test "$tst_links_strdup" = "yes" &&
25045      test "$tst_proto_strdup" = "yes" &&
25046      test "$tst_compi_strdup" = "yes" &&
25047      test "$tst_allow_strdup" = "yes"; then
25048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25049 $as_echo "yes" >&6; }
25050
25051 cat >>confdefs.h <<_ACEOF
25052 #define HAVE_STRDUP 1
25053 _ACEOF
25054
25055     ac_cv_func_strdup="yes"
25056   else
25057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25058 $as_echo "no" >&6; }
25059     ac_cv_func_strdup="no"
25060   fi
25061
25062
25063     #
25064   tst_links_stricmp="unknown"
25065   tst_proto_stricmp="unknown"
25066   tst_compi_stricmp="unknown"
25067   tst_allow_stricmp="unknown"
25068   #
25069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
25070 $as_echo_n "checking if stricmp can be linked... " >&6; }
25071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25072 /* end confdefs.h.  */
25073
25074
25075 #define stricmp innocuous_stricmp
25076 #ifdef __STDC__
25077 # include <limits.h>
25078 #else
25079 # include <assert.h>
25080 #endif
25081 #undef stricmp
25082 #ifdef __cplusplus
25083 extern "C"
25084 #endif
25085 char stricmp ();
25086 #if defined __stub_stricmp || defined __stub___stricmp
25087 choke me
25088 #endif
25089
25090 int main (void)
25091 {
25092 return stricmp ();
25093  ;
25094  return 0;
25095 }
25096
25097 _ACEOF
25098 if ac_fn_c_try_link "$LINENO"; then :
25099
25100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25101 $as_echo "yes" >&6; }
25102     tst_links_stricmp="yes"
25103
25104 else
25105
25106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25107 $as_echo "no" >&6; }
25108     tst_links_stricmp="no"
25109
25110 fi
25111 rm -f core conftest.err conftest.$ac_objext \
25112     conftest$ac_exeext conftest.$ac_ext
25113   #
25114   if test "$tst_links_stricmp" = "yes"; then
25115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
25116 $as_echo_n "checking if stricmp is prototyped... " >&6; }
25117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h.  */
25119
25120       $cares_includes_string
25121
25122 _ACEOF
25123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25124   $EGREP "stricmp" >/dev/null 2>&1; then :
25125
25126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25127 $as_echo "yes" >&6; }
25128       tst_proto_stricmp="yes"
25129
25130 else
25131
25132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133 $as_echo "no" >&6; }
25134       tst_proto_stricmp="no"
25135
25136 fi
25137 rm -f conftest*
25138
25139   fi
25140   #
25141   if test "$tst_proto_stricmp" = "yes"; then
25142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
25143 $as_echo_n "checking if stricmp is compilable... " >&6; }
25144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h.  */
25146
25147
25148         $cares_includes_string
25149
25150 int main (void)
25151 {
25152
25153         if(0 != stricmp(0, 0))
25154           return 1;
25155
25156  ;
25157  return 0;
25158 }
25159
25160 _ACEOF
25161 if ac_fn_c_try_compile "$LINENO"; then :
25162
25163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25164 $as_echo "yes" >&6; }
25165       tst_compi_stricmp="yes"
25166
25167 else
25168
25169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25170 $as_echo "no" >&6; }
25171       tst_compi_stricmp="no"
25172
25173 fi
25174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25175   fi
25176   #
25177   if test "$tst_compi_stricmp" = "yes"; then
25178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
25179 $as_echo_n "checking if stricmp usage allowed... " >&6; }
25180     if test "x$cares_disallow_stricmp" != "xyes"; then
25181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25182 $as_echo "yes" >&6; }
25183       tst_allow_stricmp="yes"
25184     else
25185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25187       tst_allow_stricmp="no"
25188     fi
25189   fi
25190   #
25191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
25192 $as_echo_n "checking if stricmp might be used... " >&6; }
25193   if test "$tst_links_stricmp" = "yes" &&
25194      test "$tst_proto_stricmp" = "yes" &&
25195      test "$tst_compi_stricmp" = "yes" &&
25196      test "$tst_allow_stricmp" = "yes"; then
25197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25198 $as_echo "yes" >&6; }
25199
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_STRICMP 1
25202 _ACEOF
25203
25204     ac_cv_func_stricmp="yes"
25205   else
25206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25207 $as_echo "no" >&6; }
25208     ac_cv_func_stricmp="no"
25209   fi
25210
25211
25212     #
25213   tst_links_strncasecmp="unknown"
25214   tst_proto_strncasecmp="unknown"
25215   tst_compi_strncasecmp="unknown"
25216   tst_allow_strncasecmp="unknown"
25217   #
25218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
25219 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
25220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h.  */
25222
25223
25224 #define strncasecmp innocuous_strncasecmp
25225 #ifdef __STDC__
25226 # include <limits.h>
25227 #else
25228 # include <assert.h>
25229 #endif
25230 #undef strncasecmp
25231 #ifdef __cplusplus
25232 extern "C"
25233 #endif
25234 char strncasecmp ();
25235 #if defined __stub_strncasecmp || defined __stub___strncasecmp
25236 choke me
25237 #endif
25238
25239 int main (void)
25240 {
25241 return strncasecmp ();
25242  ;
25243  return 0;
25244 }
25245
25246 _ACEOF
25247 if ac_fn_c_try_link "$LINENO"; then :
25248
25249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25250 $as_echo "yes" >&6; }
25251     tst_links_strncasecmp="yes"
25252
25253 else
25254
25255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25256 $as_echo "no" >&6; }
25257     tst_links_strncasecmp="no"
25258
25259 fi
25260 rm -f core conftest.err conftest.$ac_objext \
25261     conftest$ac_exeext conftest.$ac_ext
25262   #
25263   if test "$tst_links_strncasecmp" = "yes"; then
25264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
25265 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
25266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267 /* end confdefs.h.  */
25268
25269       $cares_includes_string
25270
25271 _ACEOF
25272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25273   $EGREP "strncasecmp" >/dev/null 2>&1; then :
25274
25275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25276 $as_echo "yes" >&6; }
25277       tst_proto_strncasecmp="yes"
25278
25279 else
25280
25281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283       tst_proto_strncasecmp="no"
25284
25285 fi
25286 rm -f conftest*
25287
25288   fi
25289   #
25290   if test "$tst_proto_strncasecmp" = "yes"; then
25291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
25292 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
25293     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h.  */
25295
25296
25297         $cares_includes_string
25298
25299 int main (void)
25300 {
25301
25302         if(0 != strncasecmp(0, 0, 0))
25303           return 1;
25304
25305  ;
25306  return 0;
25307 }
25308
25309 _ACEOF
25310 if ac_fn_c_try_compile "$LINENO"; then :
25311
25312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25313 $as_echo "yes" >&6; }
25314       tst_compi_strncasecmp="yes"
25315
25316 else
25317
25318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25319 $as_echo "no" >&6; }
25320       tst_compi_strncasecmp="no"
25321
25322 fi
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324   fi
25325   #
25326   if test "$tst_compi_strncasecmp" = "yes"; then
25327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
25328 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
25329     if test "x$cares_disallow_strncasecmp" != "xyes"; then
25330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25331 $as_echo "yes" >&6; }
25332       tst_allow_strncasecmp="yes"
25333     else
25334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25335 $as_echo "no" >&6; }
25336       tst_allow_strncasecmp="no"
25337     fi
25338   fi
25339   #
25340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
25341 $as_echo_n "checking if strncasecmp might be used... " >&6; }
25342   if test "$tst_links_strncasecmp" = "yes" &&
25343      test "$tst_proto_strncasecmp" = "yes" &&
25344      test "$tst_compi_strncasecmp" = "yes" &&
25345      test "$tst_allow_strncasecmp" = "yes"; then
25346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25347 $as_echo "yes" >&6; }
25348
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_STRNCASECMP 1
25351 _ACEOF
25352
25353     ac_cv_func_strncasecmp="yes"
25354   else
25355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25356 $as_echo "no" >&6; }
25357     ac_cv_func_strncasecmp="no"
25358   fi
25359
25360
25361     #
25362   tst_links_strncmpi="unknown"
25363   tst_proto_strncmpi="unknown"
25364   tst_compi_strncmpi="unknown"
25365   tst_allow_strncmpi="unknown"
25366   #
25367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
25368 $as_echo_n "checking if strncmpi can be linked... " >&6; }
25369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370 /* end confdefs.h.  */
25371
25372
25373 #define strncmpi innocuous_strncmpi
25374 #ifdef __STDC__
25375 # include <limits.h>
25376 #else
25377 # include <assert.h>
25378 #endif
25379 #undef strncmpi
25380 #ifdef __cplusplus
25381 extern "C"
25382 #endif
25383 char strncmpi ();
25384 #if defined __stub_strncmpi || defined __stub___strncmpi
25385 choke me
25386 #endif
25387
25388 int main (void)
25389 {
25390 return strncmpi ();
25391  ;
25392  return 0;
25393 }
25394
25395 _ACEOF
25396 if ac_fn_c_try_link "$LINENO"; then :
25397
25398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25399 $as_echo "yes" >&6; }
25400     tst_links_strncmpi="yes"
25401
25402 else
25403
25404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25405 $as_echo "no" >&6; }
25406     tst_links_strncmpi="no"
25407
25408 fi
25409 rm -f core conftest.err conftest.$ac_objext \
25410     conftest$ac_exeext conftest.$ac_ext
25411   #
25412   if test "$tst_links_strncmpi" = "yes"; then
25413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
25414 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
25415     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h.  */
25417
25418       $cares_includes_string
25419
25420 _ACEOF
25421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25422   $EGREP "strncmpi" >/dev/null 2>&1; then :
25423
25424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25425 $as_echo "yes" >&6; }
25426       tst_proto_strncmpi="yes"
25427
25428 else
25429
25430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25431 $as_echo "no" >&6; }
25432       tst_proto_strncmpi="no"
25433
25434 fi
25435 rm -f conftest*
25436
25437   fi
25438   #
25439   if test "$tst_proto_strncmpi" = "yes"; then
25440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
25441 $as_echo_n "checking if strncmpi is compilable... " >&6; }
25442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443 /* end confdefs.h.  */
25444
25445
25446         $cares_includes_string
25447
25448 int main (void)
25449 {
25450
25451         if(0 != strncmpi(0, 0))
25452           return 1;
25453
25454  ;
25455  return 0;
25456 }
25457
25458 _ACEOF
25459 if ac_fn_c_try_compile "$LINENO"; then :
25460
25461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25462 $as_echo "yes" >&6; }
25463       tst_compi_strncmpi="yes"
25464
25465 else
25466
25467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25468 $as_echo "no" >&6; }
25469       tst_compi_strncmpi="no"
25470
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473   fi
25474   #
25475   if test "$tst_compi_strncmpi" = "yes"; then
25476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
25477 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
25478     if test "x$cares_disallow_strncmpi" != "xyes"; then
25479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25480 $as_echo "yes" >&6; }
25481       tst_allow_strncmpi="yes"
25482     else
25483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25484 $as_echo "no" >&6; }
25485       tst_allow_strncmpi="no"
25486     fi
25487   fi
25488   #
25489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
25490 $as_echo_n "checking if strncmpi might be used... " >&6; }
25491   if test "$tst_links_strncmpi" = "yes" &&
25492      test "$tst_proto_strncmpi" = "yes" &&
25493      test "$tst_compi_strncmpi" = "yes" &&
25494      test "$tst_allow_strncmpi" = "yes"; then
25495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25496 $as_echo "yes" >&6; }
25497
25498 cat >>confdefs.h <<_ACEOF
25499 #define HAVE_STRNCMPI 1
25500 _ACEOF
25501
25502     ac_cv_func_strncmpi="yes"
25503   else
25504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25505 $as_echo "no" >&6; }
25506     ac_cv_func_strncmpi="no"
25507   fi
25508
25509
25510     #
25511   tst_links_strnicmp="unknown"
25512   tst_proto_strnicmp="unknown"
25513   tst_compi_strnicmp="unknown"
25514   tst_allow_strnicmp="unknown"
25515   #
25516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
25517 $as_echo_n "checking if strnicmp can be linked... " >&6; }
25518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h.  */
25520
25521
25522 #define strnicmp innocuous_strnicmp
25523 #ifdef __STDC__
25524 # include <limits.h>
25525 #else
25526 # include <assert.h>
25527 #endif
25528 #undef strnicmp
25529 #ifdef __cplusplus
25530 extern "C"
25531 #endif
25532 char strnicmp ();
25533 #if defined __stub_strnicmp || defined __stub___strnicmp
25534 choke me
25535 #endif
25536
25537 int main (void)
25538 {
25539 return strnicmp ();
25540  ;
25541  return 0;
25542 }
25543
25544 _ACEOF
25545 if ac_fn_c_try_link "$LINENO"; then :
25546
25547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25548 $as_echo "yes" >&6; }
25549     tst_links_strnicmp="yes"
25550
25551 else
25552
25553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25554 $as_echo "no" >&6; }
25555     tst_links_strnicmp="no"
25556
25557 fi
25558 rm -f core conftest.err conftest.$ac_objext \
25559     conftest$ac_exeext conftest.$ac_ext
25560   #
25561   if test "$tst_links_strnicmp" = "yes"; then
25562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
25563 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
25564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h.  */
25566
25567       $cares_includes_string
25568
25569 _ACEOF
25570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25571   $EGREP "strnicmp" >/dev/null 2>&1; then :
25572
25573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 $as_echo "yes" >&6; }
25575       tst_proto_strnicmp="yes"
25576
25577 else
25578
25579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25580 $as_echo "no" >&6; }
25581       tst_proto_strnicmp="no"
25582
25583 fi
25584 rm -f conftest*
25585
25586   fi
25587   #
25588   if test "$tst_proto_strnicmp" = "yes"; then
25589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
25590 $as_echo_n "checking if strnicmp is compilable... " >&6; }
25591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592 /* end confdefs.h.  */
25593
25594
25595         $cares_includes_string
25596
25597 int main (void)
25598 {
25599
25600         if(0 != strnicmp(0, 0))
25601           return 1;
25602
25603  ;
25604  return 0;
25605 }
25606
25607 _ACEOF
25608 if ac_fn_c_try_compile "$LINENO"; then :
25609
25610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25611 $as_echo "yes" >&6; }
25612       tst_compi_strnicmp="yes"
25613
25614 else
25615
25616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25617 $as_echo "no" >&6; }
25618       tst_compi_strnicmp="no"
25619
25620 fi
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622   fi
25623   #
25624   if test "$tst_compi_strnicmp" = "yes"; then
25625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
25626 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
25627     if test "x$cares_disallow_strnicmp" != "xyes"; then
25628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25629 $as_echo "yes" >&6; }
25630       tst_allow_strnicmp="yes"
25631     else
25632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25633 $as_echo "no" >&6; }
25634       tst_allow_strnicmp="no"
25635     fi
25636   fi
25637   #
25638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
25639 $as_echo_n "checking if strnicmp might be used... " >&6; }
25640   if test "$tst_links_strnicmp" = "yes" &&
25641      test "$tst_proto_strnicmp" = "yes" &&
25642      test "$tst_compi_strnicmp" = "yes" &&
25643      test "$tst_allow_strnicmp" = "yes"; then
25644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25645 $as_echo "yes" >&6; }
25646
25647 cat >>confdefs.h <<_ACEOF
25648 #define HAVE_STRNICMP 1
25649 _ACEOF
25650
25651     ac_cv_func_strnicmp="yes"
25652   else
25653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25654 $as_echo "no" >&6; }
25655     ac_cv_func_strnicmp="no"
25656   fi
25657
25658
25659 cares_includes_sys_uio="\
25660 /* includes start */
25661 #ifdef HAVE_SYS_TYPES_H
25662 #  include <sys/types.h>
25663 #endif
25664 #ifdef HAVE_SYS_UIO_H
25665 #  include <sys/uio.h>
25666 #endif
25667 /* includes end */"
25668   for ac_header in sys/types.h sys/uio.h
25669 do :
25670   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25671 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
25672 "
25673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25674   cat >>confdefs.h <<_ACEOF
25675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25676 _ACEOF
25677
25678 fi
25679
25680 done
25681
25682
25683
25684     #
25685   tst_links_writev="unknown"
25686   tst_proto_writev="unknown"
25687   tst_compi_writev="unknown"
25688   tst_allow_writev="unknown"
25689   #
25690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
25691 $as_echo_n "checking if writev can be linked... " >&6; }
25692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h.  */
25694
25695
25696 #define writev innocuous_writev
25697 #ifdef __STDC__
25698 # include <limits.h>
25699 #else
25700 # include <assert.h>
25701 #endif
25702 #undef writev
25703 #ifdef __cplusplus
25704 extern "C"
25705 #endif
25706 char writev ();
25707 #if defined __stub_writev || defined __stub___writev
25708 choke me
25709 #endif
25710
25711 int main (void)
25712 {
25713 return writev ();
25714  ;
25715  return 0;
25716 }
25717
25718 _ACEOF
25719 if ac_fn_c_try_link "$LINENO"; then :
25720
25721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25722 $as_echo "yes" >&6; }
25723     tst_links_writev="yes"
25724
25725 else
25726
25727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25728 $as_echo "no" >&6; }
25729     tst_links_writev="no"
25730
25731 fi
25732 rm -f core conftest.err conftest.$ac_objext \
25733     conftest$ac_exeext conftest.$ac_ext
25734   #
25735   if test "$tst_links_writev" = "yes"; then
25736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
25737 $as_echo_n "checking if writev is prototyped... " >&6; }
25738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h.  */
25740
25741       $cares_includes_sys_uio
25742
25743 _ACEOF
25744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25745   $EGREP "writev" >/dev/null 2>&1; then :
25746
25747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25748 $as_echo "yes" >&6; }
25749       tst_proto_writev="yes"
25750
25751 else
25752
25753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25754 $as_echo "no" >&6; }
25755       tst_proto_writev="no"
25756
25757 fi
25758 rm -f conftest*
25759
25760   fi
25761   #
25762   if test "$tst_proto_writev" = "yes"; then
25763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
25764 $as_echo_n "checking if writev is compilable... " >&6; }
25765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h.  */
25767
25768
25769         $cares_includes_sys_uio
25770
25771 int main (void)
25772 {
25773
25774         if(0 != writev(0, 0, 0))
25775           return 1;
25776
25777  ;
25778  return 0;
25779 }
25780
25781 _ACEOF
25782 if ac_fn_c_try_compile "$LINENO"; then :
25783
25784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25785 $as_echo "yes" >&6; }
25786       tst_compi_writev="yes"
25787
25788 else
25789
25790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }
25792       tst_compi_writev="no"
25793
25794 fi
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25796   fi
25797   #
25798   if test "$tst_compi_writev" = "yes"; then
25799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
25800 $as_echo_n "checking if writev usage allowed... " >&6; }
25801     if test "x$cares_disallow_writev" != "xyes"; then
25802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25803 $as_echo "yes" >&6; }
25804       tst_allow_writev="yes"
25805     else
25806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807 $as_echo "no" >&6; }
25808       tst_allow_writev="no"
25809     fi
25810   fi
25811   #
25812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
25813 $as_echo_n "checking if writev might be used... " >&6; }
25814   if test "$tst_links_writev" = "yes" &&
25815      test "$tst_proto_writev" = "yes" &&
25816      test "$tst_compi_writev" = "yes" &&
25817      test "$tst_allow_writev" = "yes"; then
25818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25819 $as_echo "yes" >&6; }
25820
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_WRITEV 1
25823 _ACEOF
25824
25825     ac_cv_func_writev="yes"
25826   else
25827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25828 $as_echo "no" >&6; }
25829     ac_cv_func_writev="no"
25830   fi
25831
25832
25833
25834
25835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
25836 $as_echo_n "checking for PF_INET6... " >&6; }
25837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h.  */
25839
25840
25841 #undef inline
25842 #ifdef HAVE_WINDOWS_H
25843 #ifndef WIN32_LEAN_AND_MEAN
25844 #define WIN32_LEAN_AND_MEAN
25845 #endif
25846 #include <windows.h>
25847 #ifdef HAVE_WINSOCK2_H
25848 #include <winsock2.h>
25849 #endif
25850 #else
25851 #ifdef HAVE_SYS_TYPES_H
25852 #include <sys/types.h>
25853 #endif
25854 #ifdef HAVE_SYS_SOCKET_H
25855 #include <sys/socket.h>
25856 #endif
25857 #endif
25858
25859
25860       #ifdef PF_INET6
25861         VARIABLEWASDEFINED
25862       #else
25863         NJET
25864       #endif
25865
25866 _ACEOF
25867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25868   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
25869   ac_constant="yes"
25870 else
25871   ac_constant="no"
25872
25873 fi
25874 rm -f conftest*
25875
25876   if test "$ac_constant" = "yes" ; then
25877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25878 $as_echo "yes" >&6; }
25879
25880 cat >>confdefs.h <<_ACEOF
25881 #define HAVE_PF_INET6 1
25882 _ACEOF
25883
25884
25885   else
25886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887 $as_echo "no" >&6; }
25888
25889   fi
25890
25891
25892
25893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
25894 $as_echo_n "checking for AF_INET6... " >&6; }
25895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25896 /* end confdefs.h.  */
25897
25898
25899 #undef inline
25900 #ifdef HAVE_WINDOWS_H
25901 #ifndef WIN32_LEAN_AND_MEAN
25902 #define WIN32_LEAN_AND_MEAN
25903 #endif
25904 #include <windows.h>
25905 #ifdef HAVE_WINSOCK2_H
25906 #include <winsock2.h>
25907 #endif
25908 #else
25909 #ifdef HAVE_SYS_TYPES_H
25910 #include <sys/types.h>
25911 #endif
25912 #ifdef HAVE_SYS_SOCKET_H
25913 #include <sys/socket.h>
25914 #endif
25915 #endif
25916
25917
25918       #ifdef AF_INET6
25919         VARIABLEWASDEFINED
25920       #else
25921         NJET
25922       #endif
25923
25924 _ACEOF
25925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25926   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
25927   ac_constant="yes"
25928 else
25929   ac_constant="no"
25930
25931 fi
25932 rm -f conftest*
25933
25934   if test "$ac_constant" = "yes" ; then
25935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936 $as_echo "yes" >&6; }
25937
25938 cat >>confdefs.h <<_ACEOF
25939 #define HAVE_AF_INET6 1
25940 _ACEOF
25941
25942
25943   else
25944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25945 $as_echo "no" >&6; }
25946
25947   fi
25948
25949
25950
25951
25952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
25953 $as_echo_n "checking for struct in6_addr... " >&6; }
25954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955 /* end confdefs.h.  */
25956
25957 #undef inline
25958 #ifdef HAVE_WINDOWS_H
25959 #ifndef WIN32_LEAN_AND_MEAN
25960 #define WIN32_LEAN_AND_MEAN
25961 #endif
25962 #include <windows.h>
25963 #ifdef HAVE_WINSOCK2_H
25964 #include <winsock2.h>
25965 #ifdef HAVE_WS2TCPIP_H
25966 #include <ws2tcpip.h>
25967 #endif
25968 #endif
25969 #else
25970 #ifdef HAVE_SYS_TYPES_H
25971 #include <sys/types.h>
25972 #endif
25973 #ifdef HAVE_NETINET_IN_H
25974 #include <netinet/in.h>
25975 #endif
25976 #endif
25977
25978 int main (void)
25979 {
25980
25981       struct in6_addr struct_instance;
25982
25983  ;
25984  return 0;
25985 }
25986 _ACEOF
25987 if ac_fn_c_try_compile "$LINENO"; then :
25988   ac_struct="yes"
25989 else
25990   ac_found="no"
25991 fi
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993   if test "$ac_struct" = "yes" ; then
25994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25995 $as_echo "yes" >&6; }
25996
25997 cat >>confdefs.h <<_ACEOF
25998 #define HAVE_STRUCT_IN6_ADDR 1
25999 _ACEOF
26000
26001
26002   else
26003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26004 $as_echo "no" >&6; }
26005
26006   fi
26007
26008
26009
26010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
26011 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
26012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26013 /* end confdefs.h.  */
26014
26015 #undef inline
26016 #ifdef HAVE_WINDOWS_H
26017 #ifndef WIN32_LEAN_AND_MEAN
26018 #define WIN32_LEAN_AND_MEAN
26019 #endif
26020 #include <windows.h>
26021 #ifdef HAVE_WINSOCK2_H
26022 #include <winsock2.h>
26023 #ifdef HAVE_WS2TCPIP_H
26024 #include <ws2tcpip.h>
26025 #endif
26026 #endif
26027 #else
26028 #ifdef HAVE_SYS_TYPES_H
26029 #include <sys/types.h>
26030 #endif
26031 #ifdef HAVE_NETINET_IN_H
26032 #include <netinet/in.h>
26033 #endif
26034 #endif
26035
26036 int main (void)
26037 {
26038
26039       struct sockaddr_in6 struct_instance;
26040
26041  ;
26042  return 0;
26043 }
26044 _ACEOF
26045 if ac_fn_c_try_compile "$LINENO"; then :
26046   ac_struct="yes"
26047 else
26048   ac_found="no"
26049 fi
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051   if test "$ac_struct" = "yes" ; then
26052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26053 $as_echo "yes" >&6; }
26054
26055 cat >>confdefs.h <<_ACEOF
26056 #define HAVE_STRUCT_SOCKADDR_IN6 1
26057 _ACEOF
26058  ac_have_sockaddr_in6=yes
26059
26060   else
26061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26062 $as_echo "no" >&6; }
26063
26064   fi
26065
26066
26067 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
26068 #undef inline
26069 #ifdef HAVE_WINDOWS_H
26070 #ifndef WIN32_LEAN_AND_MEAN
26071 #define WIN32_LEAN_AND_MEAN
26072 #endif
26073 #include <windows.h>
26074 #ifdef HAVE_WINSOCK2_H
26075 #include <winsock2.h>
26076 #ifdef HAVE_WS2TCPIP_H
26077 #include <ws2tcpip.h>
26078 #endif
26079 #endif
26080 #else
26081 #ifdef HAVE_SYS_TYPES_H
26082 #include <sys/types.h>
26083 #endif
26084 #ifdef HAVE_NETINET_IN_H
26085 #include <netinet/in.h>
26086 #endif
26087 #endif
26088
26089 "
26090 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
26091
26092 cat >>confdefs.h <<_ACEOF
26093 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
26094 _ACEOF
26095
26096
26097 fi
26098
26099
26100 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
26101 #undef inline
26102 #ifdef HAVE_WINDOWS_H
26103 #ifndef WIN32_LEAN_AND_MEAN
26104 #define WIN32_LEAN_AND_MEAN
26105 #endif
26106 #include <windows.h>
26107 #ifdef HAVE_WINSOCK2_H
26108 #include <winsock2.h>
26109 #ifdef HAVE_WS2TCPIP_H
26110 #include <ws2tcpip.h>
26111 #endif
26112 #endif
26113 #else
26114 #ifdef HAVE_SYS_TYPES_H
26115 #include <sys/types.h>
26116 #endif
26117 #ifdef HAVE_NETINET_IN_H
26118 #include <netinet/in.h>
26119 #endif
26120 #ifdef HAVE_SYS_SOCKET_H
26121 #include <sys/socket.h>
26122 #endif
26123 #ifdef HAVE_NETDB_H
26124 #include <netdb.h>
26125 #endif
26126 #endif
26127
26128
26129 "
26130 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
26131
26132 cat >>confdefs.h <<_ACEOF
26133 #define HAVE_STRUCT_ADDRINFO 1
26134 _ACEOF
26135
26136 fi
26137
26138
26139
26140 for ac_func in bitncmp \
26141   gettimeofday \
26142   if_indextoname
26143
26144 do :
26145   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26148   cat >>confdefs.h <<_ACEOF
26149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26150 _ACEOF
26151
26152
26153 else
26154
26155   func="$ac_func"
26156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
26157 $as_echo_n "checking deeper for $func... " >&6; }
26158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26159 /* end confdefs.h.  */
26160
26161
26162
26163 int main (void)
26164 {
26165
26166       $func ();
26167
26168  ;
26169  return 0;
26170 }
26171
26172 _ACEOF
26173 if ac_fn_c_try_link "$LINENO"; then :
26174
26175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26176 $as_echo "yes" >&6; }
26177     eval "ac_cv_func_$func=yes"
26178
26179 cat >>confdefs.h <<_ACEOF
26180 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
26181 _ACEOF
26182
26183
26184 else
26185
26186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26187 $as_echo "but still no" >&6; }
26188
26189 fi
26190 rm -f core conftest.err conftest.$ac_objext \
26191     conftest$ac_exeext conftest.$ac_ext
26192
26193 fi
26194 done
26195
26196
26197
26198 # The cast to long int works around a bug in the HP C Compiler
26199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26201 # This bug is HP SR number 8606223364.
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
26203 $as_echo_n "checking size of struct in6_addr... " >&6; }
26204 if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
26205   $as_echo_n "(cached) " >&6
26206 else
26207   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr"        "
26208 #undef inline
26209 #ifdef HAVE_WINDOWS_H
26210 #ifndef WIN32_LEAN_AND_MEAN
26211 #define WIN32_LEAN_AND_MEAN
26212 #endif
26213 #include <windows.h>
26214 #ifdef HAVE_WINSOCK2_H
26215 #include <winsock2.h>
26216 #ifdef HAVE_WS2TCPIP_H
26217 #include <ws2tcpip.h>
26218 #endif
26219 #endif
26220 #else
26221 #ifdef HAVE_SYS_TYPES_H
26222 #include <sys/types.h>
26223 #endif
26224 #ifdef HAVE_SYS_SOCKET_H
26225 #include <sys/socket.h>
26226 #endif
26227 #ifdef HAVE_NETINET_IN_H
26228 #include <netinet/in.h>
26229 #endif
26230 #endif
26231
26232
26233 "; then :
26234
26235 else
26236   if test "$ac_cv_type_struct_in6_addr" = yes; then
26237      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26239 as_fn_error 77 "cannot compute sizeof (struct in6_addr)
26240 See \`config.log' for more details" "$LINENO" 5; }
26241    else
26242      ac_cv_sizeof_struct_in6_addr=0
26243    fi
26244 fi
26245
26246 fi
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
26248 $as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
26249
26250
26251
26252 cat >>confdefs.h <<_ACEOF
26253 #define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
26254 _ACEOF
26255
26256
26257
26258 # The cast to long int works around a bug in the HP C Compiler
26259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26261 # This bug is HP SR number 8606223364.
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
26263 $as_echo_n "checking size of struct in_addr... " >&6; }
26264 if ${ac_cv_sizeof_struct_in_addr+:} false; then :
26265   $as_echo_n "(cached) " >&6
26266 else
26267   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr"        "
26268 #undef inline
26269 #ifdef HAVE_WINDOWS_H
26270 #ifndef WIN32_LEAN_AND_MEAN
26271 #define WIN32_LEAN_AND_MEAN
26272 #endif
26273 #include <windows.h>
26274 #ifdef HAVE_WINSOCK2_H
26275 #include <winsock2.h>
26276 #ifdef HAVE_WS2TCPIP_H
26277 #include <ws2tcpip.h>
26278 #endif
26279 #endif
26280 #else
26281 #ifdef HAVE_SYS_TYPES_H
26282 #include <sys/types.h>
26283 #endif
26284 #ifdef HAVE_SYS_SOCKET_H
26285 #include <sys/socket.h>
26286 #endif
26287 #ifdef HAVE_NETINET_IN_H
26288 #include <netinet/in.h>
26289 #endif
26290 #endif
26291
26292
26293 "; then :
26294
26295 else
26296   if test "$ac_cv_type_struct_in_addr" = yes; then
26297      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26299 as_fn_error 77 "cannot compute sizeof (struct in_addr)
26300 See \`config.log' for more details" "$LINENO" 5; }
26301    else
26302      ac_cv_sizeof_struct_in_addr=0
26303    fi
26304 fi
26305
26306 fi
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
26308 $as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
26309
26310
26311
26312 cat >>confdefs.h <<_ACEOF
26313 #define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
26314 _ACEOF
26315
26316
26317
26318
26319
26320     for ac_header in sys/types.h sys/socket.h netdb.h
26321 do :
26322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26325   cat >>confdefs.h <<_ACEOF
26326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26327 _ACEOF
26328
26329 fi
26330
26331 done
26332
26333   #
26334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
26335 $as_echo_n "checking for getnameinfo... " >&6; }
26336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h.  */
26338
26339
26340 #define getnameinfo innocuous_getnameinfo
26341 #ifdef __STDC__
26342 # include <limits.h>
26343 #else
26344 # include <assert.h>
26345 #endif
26346 #undef getnameinfo
26347 #ifdef __cplusplus
26348 extern "C"
26349 #endif
26350 char getnameinfo ();
26351 #if defined __stub_getnameinfo || defined __stub___getnameinfo
26352 choke me
26353 #endif
26354
26355 int main (void)
26356 {
26357 return getnameinfo ();
26358  ;
26359  return 0;
26360 }
26361
26362 _ACEOF
26363 if ac_fn_c_try_link "$LINENO"; then :
26364
26365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26366 $as_echo "yes" >&6; }
26367     curl_cv_getnameinfo="yes"
26368
26369 else
26370
26371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26372 $as_echo "no" >&6; }
26373     curl_cv_getnameinfo="no"
26374
26375 fi
26376 rm -f core conftest.err conftest.$ac_objext \
26377     conftest$ac_exeext conftest.$ac_ext
26378   #
26379   if test "$curl_cv_getnameinfo" != "yes"; then
26380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
26381 $as_echo_n "checking deeper for getnameinfo... " >&6; }
26382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h.  */
26384
26385
26386
26387 int main (void)
26388 {
26389
26390         getnameinfo();
26391
26392  ;
26393  return 0;
26394 }
26395
26396 _ACEOF
26397 if ac_fn_c_try_link "$LINENO"; then :
26398
26399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26400 $as_echo "yes" >&6; }
26401       curl_cv_getnameinfo="yes"
26402
26403 else
26404
26405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26406 $as_echo "but still no" >&6; }
26407       curl_cv_getnameinfo="no"
26408
26409 fi
26410 rm -f core conftest.err conftest.$ac_objext \
26411     conftest$ac_exeext conftest.$ac_ext
26412   fi
26413   #
26414   if test "$curl_cv_getnameinfo" != "yes"; then
26415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
26416 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
26417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418 /* end confdefs.h.  */
26419
26420
26421 #undef inline
26422 #ifdef HAVE_WINDOWS_H
26423 #ifndef WIN32_LEAN_AND_MEAN
26424 #define WIN32_LEAN_AND_MEAN
26425 #endif
26426 #include <windows.h>
26427 #ifdef HAVE_WINSOCK2_H
26428 #include <winsock2.h>
26429 #ifdef HAVE_WS2TCPIP_H
26430 #include <ws2tcpip.h>
26431 #endif
26432 #endif
26433 #else
26434 #ifdef HAVE_SYS_TYPES_H
26435 #include <sys/types.h>
26436 #endif
26437 #ifdef HAVE_SYS_SOCKET_H
26438 #include <sys/socket.h>
26439 #endif
26440 #ifdef HAVE_NETDB_H
26441 #include <netdb.h>
26442 #endif
26443 #endif
26444
26445 int main (void)
26446 {
26447
26448         getnameinfo(0, 0, 0, 0, 0, 0, 0);
26449
26450  ;
26451  return 0;
26452 }
26453
26454 _ACEOF
26455 if ac_fn_c_try_link "$LINENO"; then :
26456
26457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26458 $as_echo "yes" >&6; }
26459       curl_cv_getnameinfo="yes"
26460
26461 else
26462
26463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
26464 $as_echo "but still no" >&6; }
26465       curl_cv_getnameinfo="no"
26466
26467 fi
26468 rm -f core conftest.err conftest.$ac_objext \
26469     conftest$ac_exeext conftest.$ac_ext
26470   fi
26471   #
26472   if test "$curl_cv_getnameinfo" = "yes"; then
26473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
26474 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
26475 if ${curl_cv_func_getnameinfo_args+:} false; then :
26476   $as_echo_n "(cached) " >&6
26477 else
26478
26479       curl_cv_func_getnameinfo_args="unknown"
26480       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
26481         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
26482           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
26483             for gni_arg7 in 'int' 'unsigned int'; do
26484               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
26485                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h.  */
26487
26488
26489 #undef inline
26490 #ifdef HAVE_WINDOWS_H
26491 #ifndef WIN32_LEAN_AND_MEAN
26492 #define WIN32_LEAN_AND_MEAN
26493 #endif
26494 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
26495 #undef _WIN32_WINNT
26496 #define _WIN32_WINNT 0x0501
26497 #endif
26498 #include <windows.h>
26499 #ifdef HAVE_WINSOCK2_H
26500 #include <winsock2.h>
26501 #ifdef HAVE_WS2TCPIP_H
26502 #include <ws2tcpip.h>
26503 #endif
26504 #endif
26505 #define GNICALLCONV WSAAPI
26506 #else
26507 #ifdef HAVE_SYS_TYPES_H
26508 #include <sys/types.h>
26509 #endif
26510 #ifdef HAVE_SYS_SOCKET_H
26511 #include <sys/socket.h>
26512 #endif
26513 #ifdef HAVE_NETDB_H
26514 #include <netdb.h>
26515 #endif
26516 #define GNICALLCONV
26517 #endif
26518                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
26519                                            char *, $gni_arg46,
26520                                            char *, $gni_arg46,
26521                                            $gni_arg7);
26522
26523 int main (void)
26524 {
26525
26526                     $gni_arg2 salen=0;
26527                     $gni_arg46 hostlen=0;
26528                     $gni_arg46 servlen=0;
26529                     $gni_arg7 flags=0;
26530                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
26531
26532  ;
26533  return 0;
26534 }
26535
26536 _ACEOF
26537 if ac_fn_c_try_compile "$LINENO"; then :
26538
26539                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
26540
26541 fi
26542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26543               fi
26544             done
26545           done
26546         done
26547       done
26548
26549 fi
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
26551 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
26552     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
26553       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
26554 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
26555       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
26556 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
26557     else
26558       gni_prev_IFS=$IFS; IFS=','
26559       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
26560       IFS=$gni_prev_IFS
26561       shift
26562       #
26563       gni_qual_type_arg1=$1
26564       #
26565
26566 cat >>confdefs.h <<_ACEOF
26567 #define GETNAMEINFO_TYPE_ARG2 $2
26568 _ACEOF
26569
26570
26571 cat >>confdefs.h <<_ACEOF
26572 #define GETNAMEINFO_TYPE_ARG46 $3
26573 _ACEOF
26574
26575
26576 cat >>confdefs.h <<_ACEOF
26577 #define GETNAMEINFO_TYPE_ARG7 $4
26578 _ACEOF
26579
26580       #
26581       prev_sh_opts=$-
26582       #
26583       case $prev_sh_opts in
26584         *f*)
26585           ;;
26586         *)
26587           set -f
26588           ;;
26589       esac
26590       #
26591       case "$gni_qual_type_arg1" in
26592         const*)
26593           gni_qual_arg1=const
26594           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
26595         ;;
26596         *)
26597           gni_qual_arg1=
26598           gni_type_arg1=$gni_qual_type_arg1
26599         ;;
26600       esac
26601       #
26602
26603 cat >>confdefs.h <<_ACEOF
26604 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
26605 _ACEOF
26606
26607
26608 cat >>confdefs.h <<_ACEOF
26609 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
26610 _ACEOF
26611
26612       #
26613       case $prev_sh_opts in
26614         *f*)
26615           ;;
26616         *)
26617           set +f
26618           ;;
26619       esac
26620       #
26621
26622 cat >>confdefs.h <<_ACEOF
26623 #define HAVE_GETNAMEINFO 1
26624 _ACEOF
26625
26626       ac_cv_func_getnameinfo="yes"
26627     fi
26628   fi
26629
26630
26631
26632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26633 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26634 if ${ac_cv_c_bigendian+:} false; then :
26635   $as_echo_n "(cached) " >&6
26636 else
26637   ac_cv_c_bigendian=unknown
26638     # See if we're dealing with a universal compiler.
26639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640 /* end confdefs.h.  */
26641 #ifndef __APPLE_CC__
26642                not a universal capable compiler
26643              #endif
26644              typedef int dummy;
26645
26646 _ACEOF
26647 if ac_fn_c_try_compile "$LINENO"; then :
26648
26649         # Check for potential -arch flags.  It is not universal unless
26650         # there are at least two -arch flags with different values.
26651         ac_arch=
26652         ac_prev=
26653         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26654          if test -n "$ac_prev"; then
26655            case $ac_word in
26656              i?86 | x86_64 | ppc | ppc64)
26657                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26658                  ac_arch=$ac_word
26659                else
26660                  ac_cv_c_bigendian=universal
26661                  break
26662                fi
26663                ;;
26664            esac
26665            ac_prev=
26666          elif test "x$ac_word" = "x-arch"; then
26667            ac_prev=arch
26668          fi
26669        done
26670 fi
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672     if test $ac_cv_c_bigendian = unknown; then
26673       # See if sys/param.h defines the BYTE_ORDER macro.
26674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h.  */
26676 #include <sys/types.h>
26677              #include <sys/param.h>
26678
26679 int main (void)
26680 {
26681 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26682                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26683                      && LITTLE_ENDIAN)
26684               bogus endian macros
26685              #endif
26686
26687  ;
26688  return 0;
26689 }
26690 _ACEOF
26691 if ac_fn_c_try_compile "$LINENO"; then :
26692   # It does; now see whether it defined to BIG_ENDIAN or not.
26693          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h.  */
26695 #include <sys/types.h>
26696                 #include <sys/param.h>
26697
26698 int main (void)
26699 {
26700 #if BYTE_ORDER != BIG_ENDIAN
26701                  not big endian
26702                 #endif
26703
26704  ;
26705  return 0;
26706 }
26707 _ACEOF
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709   ac_cv_c_bigendian=yes
26710 else
26711   ac_cv_c_bigendian=no
26712 fi
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 fi
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716     fi
26717     if test $ac_cv_c_bigendian = unknown; then
26718       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26720 /* end confdefs.h.  */
26721 #include <limits.h>
26722
26723 int main (void)
26724 {
26725 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26726               bogus endian macros
26727              #endif
26728
26729  ;
26730  return 0;
26731 }
26732 _ACEOF
26733 if ac_fn_c_try_compile "$LINENO"; then :
26734   # It does; now see whether it defined to _BIG_ENDIAN or not.
26735          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h.  */
26737 #include <limits.h>
26738
26739 int main (void)
26740 {
26741 #ifndef _BIG_ENDIAN
26742                  not big endian
26743                 #endif
26744
26745  ;
26746  return 0;
26747 }
26748 _ACEOF
26749 if ac_fn_c_try_compile "$LINENO"; then :
26750   ac_cv_c_bigendian=yes
26751 else
26752   ac_cv_c_bigendian=no
26753 fi
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755 fi
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757     fi
26758     if test $ac_cv_c_bigendian = unknown; then
26759       # Compile a test program.
26760       if test "$cross_compiling" = yes; then :
26761   # Try to guess by grepping values from an object file.
26762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h.  */
26764 short int ascii_mm[] =
26765                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26766                 short int ascii_ii[] =
26767                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26768                 int use_ascii (int i) {
26769                   return ascii_mm[i] + ascii_ii[i];
26770                 }
26771                 short int ebcdic_ii[] =
26772                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26773                 short int ebcdic_mm[] =
26774                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26775                 int use_ebcdic (int i) {
26776                   return ebcdic_mm[i] + ebcdic_ii[i];
26777                 }
26778                 extern int foo;
26779
26780 int main (void)
26781 {
26782 return use_ascii (foo) == use_ebcdic (foo);
26783  ;
26784  return 0;
26785 }
26786 _ACEOF
26787 if ac_fn_c_try_compile "$LINENO"; then :
26788   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26789               ac_cv_c_bigendian=yes
26790             fi
26791             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26792               if test "$ac_cv_c_bigendian" = unknown; then
26793                 ac_cv_c_bigendian=no
26794               else
26795                 # finding both strings is unlikely to happen, but who knows?
26796                 ac_cv_c_bigendian=unknown
26797               fi
26798             fi
26799 fi
26800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801 else
26802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h.  */
26804 $ac_includes_default
26805 int main (void)
26806 {
26807
26808              /* Are we little or big endian?  From Harbison&Steele.  */
26809              union
26810              {
26811                long int l;
26812                char c[sizeof (long int)];
26813              } u;
26814              u.l = 1;
26815              return u.c[sizeof (long int) - 1] == 1;
26816
26817  ;
26818  return 0;
26819 }
26820 _ACEOF
26821 if ac_fn_c_try_run "$LINENO"; then :
26822   ac_cv_c_bigendian=no
26823 else
26824   ac_cv_c_bigendian=yes
26825 fi
26826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26827   conftest.$ac_objext conftest.beam conftest.$ac_ext
26828 fi
26829
26830     fi
26831 fi
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26833 $as_echo "$ac_cv_c_bigendian" >&6; }
26834  case $ac_cv_c_bigendian in #(
26835    yes)
26836
26837 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
26838 ;; #(
26839    no)
26840       ;; #(
26841    universal)
26842
26843 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26844
26845      ;; #(
26846    *)
26847      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
26848 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
26849  ;;
26850  esac
26851
26852
26853
26854 # Check whether --with-random was given.
26855 if test "${with_random+set}" = set; then :
26856   withval=$with_random;  RANDOM_FILE="$withval"
26857 else
26858
26859                                 if test "$cross_compiling" = "no"; then
26860           as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26862 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
26863 if eval \${$as_ac_File+:} false; then :
26864   $as_echo_n "(cached) " >&6
26865 else
26866   test "$cross_compiling" = yes &&
26867   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26868 if test -r ""/dev/urandom""; then
26869   eval "$as_ac_File=yes"
26870 else
26871   eval "$as_ac_File=no"
26872 fi
26873 fi
26874 eval ac_res=\$$as_ac_File
26875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26876 $as_echo "$ac_res" >&6; }
26877 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
26878    RANDOM_FILE="/dev/urandom"
26879 fi
26880
26881         else
26882           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
26883 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
26884         fi
26885
26886
26887
26888 fi
26889
26890 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26891
26892
26893 cat >>confdefs.h <<_ACEOF
26894 #define RANDOM_FILE "$RANDOM_FILE"
26895 _ACEOF
26896
26897 fi
26898
26899
26900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
26901 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
26902   OPT_NONBLOCKING="default"
26903   # Check whether --enable-nonblocking was given.
26904 if test "${enable_nonblocking+set}" = set; then :
26905   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
26906 fi
26907
26908   case "$OPT_NONBLOCKING" in
26909     no)
26910             want_nonblocking="no"
26911       ;;
26912     default)
26913             want_nonblocking="yes"
26914       ;;
26915     *)
26916             want_nonblocking="yes"
26917       ;;
26918   esac
26919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
26920 $as_echo "$want_nonblocking" >&6; }
26921
26922
26923               #
26924   tst_method="unknown"
26925   if test "$want_nonblocking" = "yes"; then
26926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
26927 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
26928     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
26929       tst_method="fcntl O_NONBLOCK"
26930     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
26931       tst_method="ioctl FIONBIO"
26932     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
26933       tst_method="ioctlsocket FIONBIO"
26934     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
26935       tst_method="IoctlSocket FIONBIO"
26936     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
26937       tst_method="setsockopt SO_NONBLOCK"
26938     fi
26939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
26940 $as_echo "$tst_method" >&6; }
26941     if test "$tst_method" = "unknown"; then
26942       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
26943 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
26944     fi
26945   fi
26946   if test "$tst_method" = "unknown"; then
26947
26948 cat >>confdefs.h <<_ACEOF
26949 #define USE_BLOCKING_SOCKETS 1
26950 _ACEOF
26951
26952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
26953 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
26954   fi
26955
26956
26957
26958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
26959 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
26960   CFLAG_CARES_SYMBOL_HIDING=""
26961   doing_symbol_hiding="no"
26962   if test x"$ac_cv_native_windows" != "xyes" &&
26963     test "$want_symbol_hiding" = "yes" &&
26964     test "$supports_symbol_hiding" = "yes"; then
26965     doing_symbol_hiding="yes"
26966     CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
26967
26968 cat >>confdefs.h <<_ACEOF
26969 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
26970 _ACEOF
26971
26972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26973 $as_echo "yes" >&6; }
26974   else
26975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976 $as_echo "no" >&6; }
26977   fi
26978    if test x$doing_symbol_hiding = xyes; then
26979   DOING_CARES_SYMBOL_HIDING_TRUE=
26980   DOING_CARES_SYMBOL_HIDING_FALSE='#'
26981 else
26982   DOING_CARES_SYMBOL_HIDING_TRUE='#'
26983   DOING_CARES_SYMBOL_HIDING_FALSE=
26984 fi
26985
26986
26987
26988
26989 CARES_PRIVATE_LIBS="$LIBS"
26990
26991
26992 CARES_CFLAG_EXTRAS=""
26993 if test X"$want_werror" = Xyes; then
26994   CARES_CFLAG_EXTRAS="-Werror"
26995 fi
26996
26997
26998
26999 squeeze CFLAGS
27000 squeeze CPPFLAGS
27001 squeeze DEFS
27002 squeeze LDFLAGS
27003 squeeze LIBS
27004
27005 squeeze CARES_PRIVATE_LIBS
27006
27007
27008
27009   xc_bad_var_libs=no
27010   for xc_word in $LIBS; do
27011     case "$xc_word" in
27012       -l* | --library=*)
27013         :
27014         ;;
27015       *)
27016         xc_bad_var_libs=yes
27017         ;;
27018     esac
27019   done
27020   if test $xc_bad_var_libs = yes; then
27021     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
27022 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
27023     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
27024 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
27025   fi
27026
27027
27028   xc_bad_var_ldflags=no
27029   for xc_word in $LDFLAGS; do
27030     case "$xc_word" in
27031       -D*)
27032         xc_bad_var_ldflags=yes
27033         ;;
27034       -U*)
27035         xc_bad_var_ldflags=yes
27036         ;;
27037       -I*)
27038         xc_bad_var_ldflags=yes
27039         ;;
27040       -l* | --library=*)
27041         xc_bad_var_ldflags=yes
27042         ;;
27043     esac
27044   done
27045   if test $xc_bad_var_ldflags = yes; then
27046     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
27047 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
27048     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
27049     for xc_word in $LDFLAGS; do
27050       case "$xc_word" in
27051         -D*)
27052           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
27053 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
27054           ;;
27055         -U*)
27056           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
27057 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
27058           ;;
27059         -I*)
27060           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
27061 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
27062           ;;
27063         -l* | --library=*)
27064           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27065 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27066           ;;
27067       esac
27068     done
27069   fi
27070
27071
27072   xc_bad_var_cppflags=no
27073   for xc_word in $CPPFLAGS; do
27074     case "$xc_word" in
27075       -rpath*)
27076         xc_bad_var_cppflags=yes
27077         ;;
27078       -L* | --library-path=*)
27079         xc_bad_var_cppflags=yes
27080         ;;
27081       -l* | --library=*)
27082         xc_bad_var_cppflags=yes
27083         ;;
27084     esac
27085   done
27086   if test $xc_bad_var_cppflags = yes; then
27087     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
27088 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
27089     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
27090     for xc_word in $CPPFLAGS; do
27091       case "$xc_word" in
27092         -rpath*)
27093           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
27094 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
27095           ;;
27096         -L* | --library-path=*)
27097           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
27098 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
27099           ;;
27100         -l* | --library=*)
27101           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27102 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27103           ;;
27104       esac
27105     done
27106   fi
27107
27108
27109   xc_bad_var_cflags=no
27110   for xc_word in $CFLAGS; do
27111     case "$xc_word" in
27112       -D*)
27113         xc_bad_var_cflags=yes
27114         ;;
27115       -U*)
27116         xc_bad_var_cflags=yes
27117         ;;
27118       -I*)
27119         xc_bad_var_cflags=yes
27120         ;;
27121       -rpath*)
27122         xc_bad_var_cflags=yes
27123         ;;
27124       -L* | --library-path=*)
27125         xc_bad_var_cflags=yes
27126         ;;
27127       -l* | --library=*)
27128         xc_bad_var_cflags=yes
27129         ;;
27130     esac
27131   done
27132   if test $xc_bad_var_cflags = yes; then
27133     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
27134 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
27135     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
27136     for xc_word in $CFLAGS; do
27137       case "$xc_word" in
27138         -D*)
27139           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
27140 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
27141           ;;
27142         -U*)
27143           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
27144 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
27145           ;;
27146         -I*)
27147           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
27148 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
27149           ;;
27150         -rpath*)
27151           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
27152 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
27153           ;;
27154         -L* | --library-path=*)
27155           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
27156 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
27157           ;;
27158         -l* | --library=*)
27159           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
27160 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
27161           ;;
27162       esac
27163     done
27164   fi
27165
27166   if test $xc_bad_var_libs = yes ||
27167      test $xc_bad_var_cflags = yes ||
27168      test $xc_bad_var_ldflags = yes ||
27169      test $xc_bad_var_cppflags = yes; then
27170      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
27171 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
27172   fi
27173
27174
27175 ac_config_files="$ac_config_files Makefile libcares.pc"
27176
27177 cat >confcache <<\_ACEOF
27178 # This file is a shell script that caches the results of configure
27179 # tests run on this system so they can be shared between configure
27180 # scripts and configure runs, see configure's option --config-cache.
27181 # It is not useful on other systems.  If it contains results you don't
27182 # want to keep, you may remove or edit it.
27183 #
27184 # config.status only pays attention to the cache file if you give it
27185 # the --recheck option to rerun configure.
27186 #
27187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27189 # following values.
27190
27191 _ACEOF
27192
27193 # The following way of writing the cache mishandles newlines in values,
27194 # but we know of no workaround that is simple, portable, and efficient.
27195 # So, we kill variables containing newlines.
27196 # Ultrix sh set writes to stderr and can't be redirected directly,
27197 # and sets the high bit in the cache file unless we assign to the vars.
27198 (
27199   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27200     eval ac_val=\$$ac_var
27201     case $ac_val in #(
27202     *${as_nl}*)
27203       case $ac_var in #(
27204       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27206       esac
27207       case $ac_var in #(
27208       _ | IFS | as_nl) ;; #(
27209       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27210       *) { eval $ac_var=; unset $ac_var;} ;;
27211       esac ;;
27212     esac
27213   done
27214
27215   (set) 2>&1 |
27216     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27217     *${as_nl}ac_space=\ *)
27218       # `set' does not quote correctly, so add quotes: double-quote
27219       # substitution turns \\\\ into \\, and sed turns \\ into \.
27220       sed -n \
27221         "s/'/'\\\\''/g;
27222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27223       ;; #(
27224     *)
27225       # `set' quotes correctly as required by POSIX, so do not add quotes.
27226       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27227       ;;
27228     esac |
27229     sort
27230 ) |
27231   sed '
27232      /^ac_cv_env_/b end
27233      t clear
27234      :clear
27235      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27236      t end
27237      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27238      :end' >>confcache
27239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27240   if test -w "$cache_file"; then
27241     if test "x$cache_file" != "x/dev/null"; then
27242       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27243 $as_echo "$as_me: updating cache $cache_file" >&6;}
27244       if test ! -f "$cache_file" || test -h "$cache_file"; then
27245         cat confcache >"$cache_file"
27246       else
27247         case $cache_file in #(
27248         */* | ?:*)
27249           mv -f confcache "$cache_file"$$ &&
27250           mv -f "$cache_file"$$ "$cache_file" ;; #(
27251         *)
27252           mv -f confcache "$cache_file" ;;
27253         esac
27254       fi
27255     fi
27256   else
27257     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27259   fi
27260 fi
27261 rm -f confcache
27262
27263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27264 # Let make expand exec_prefix.
27265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27266
27267 DEFS=-DHAVE_CONFIG_H
27268
27269 ac_libobjs=
27270 ac_ltlibobjs=
27271 U=
27272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27273   # 1. Remove the extension, and $U if already installed.
27274   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27275   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27276   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27277   #    will be set to the directory where LIBOBJS objects are built.
27278   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27279   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27280 done
27281 LIBOBJS=$ac_libobjs
27282
27283 LTLIBOBJS=$ac_ltlibobjs
27284
27285
27286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27287   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27289 fi
27290 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27291   as_fn_error $? "conditional \"AMDEP\" was never defined.
27292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27293 fi
27294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27295   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27297 fi
27298  if test -n "$EXEEXT"; then
27299   am__EXEEXT_TRUE=
27300   am__EXEEXT_FALSE='#'
27301 else
27302   am__EXEEXT_TRUE='#'
27303   am__EXEEXT_FALSE=
27304 fi
27305
27306 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
27307   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
27308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27309 fi
27310 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
27311   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
27312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27313 fi
27314 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
27315   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
27316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27317 fi
27318 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
27319   as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
27320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27321 fi
27322 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
27323   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
27324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27325 fi
27326 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
27327   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
27328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27329 fi
27330
27331 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
27332   as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
27333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27334 fi
27335
27336 : "${CONFIG_STATUS=./config.status}"
27337 ac_write_fail=0
27338 ac_clean_files_save=$ac_clean_files
27339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27341 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27342 as_write_fail=0
27343 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27344 #! $SHELL
27345 # Generated by $as_me.
27346 # Run this file to recreate the current configuration.
27347 # Compiler output produced by configure, useful for debugging
27348 # configure, is in config.log if it exists.
27349
27350 debug=false
27351 ac_cs_recheck=false
27352 ac_cs_silent=false
27353
27354 SHELL=\${CONFIG_SHELL-$SHELL}
27355 export SHELL
27356 _ASEOF
27357 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27358 ## -------------------- ##
27359 ## M4sh Initialization. ##
27360 ## -------------------- ##
27361
27362 # Be more Bourne compatible
27363 DUALCASE=1; export DUALCASE # for MKS sh
27364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27365   emulate sh
27366   NULLCMD=:
27367   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27368   # is contrary to our usage.  Disable this feature.
27369   alias -g '${1+"$@"}'='"$@"'
27370   setopt NO_GLOB_SUBST
27371 else
27372   case `(set -o) 2>/dev/null` in #(
27373   *posix*) :
27374     set -o posix ;; #(
27375   *) :
27376      ;;
27377 esac
27378 fi
27379
27380
27381 as_nl='
27382 '
27383 export as_nl
27384 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27385 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27388 # Prefer a ksh shell builtin over an external printf program on Solaris,
27389 # but without wasting forks for bash or zsh.
27390 if test -z "$BASH_VERSION$ZSH_VERSION" \
27391     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27392   as_echo='print -r --'
27393   as_echo_n='print -rn --'
27394 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27395   as_echo='printf %s\n'
27396   as_echo_n='printf %s'
27397 else
27398   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27399     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27400     as_echo_n='/usr/ucb/echo -n'
27401   else
27402     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27403     as_echo_n_body='eval
27404       arg=$1;
27405       case $arg in #(
27406       *"$as_nl"*)
27407         expr "X$arg" : "X\\(.*\\)$as_nl";
27408         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27409       esac;
27410       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27411     '
27412     export as_echo_n_body
27413     as_echo_n='sh -c $as_echo_n_body as_echo'
27414   fi
27415   export as_echo_body
27416   as_echo='sh -c $as_echo_body as_echo'
27417 fi
27418
27419
27420
27421 # IFS
27422 # We need space, tab and new line, in precisely that order.  Quoting is
27423 # there to prevent editors from complaining about space-tab.
27424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27425 # splitting by setting IFS to empty value.)
27426 IFS=" ""        $as_nl"
27427
27428 # Find who we are.  Look in the path if we contain no directory separator.
27429 as_myself=
27430 case $0 in #((
27431   *[\\/]* ) as_myself=$0 ;;
27432   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433 for as_dir in $PATH
27434 do
27435   IFS=$as_save_IFS
27436   test -z "$as_dir" && as_dir=.
27437     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27438   done
27439 IFS=$as_save_IFS
27440
27441      ;;
27442 esac
27443 # We did not find ourselves, most probably we were run as `sh COMMAND'
27444 # in which case we are not to be found in the path.
27445 if test "x$as_myself" = x; then
27446   as_myself=$0
27447 fi
27448 if test ! -f "$as_myself"; then
27449   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27450   exit 1
27451 fi
27452
27453 # Unset variables that we do not need and which cause bugs (e.g. in
27454 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27455 # suppresses any "Segmentation fault" message there.  '((' could
27456 # trigger a bug in pdksh 5.2.14.
27457 for as_var in BASH_ENV ENV MAIL MAILPATH
27458 do eval test x\${$as_var+set} = xset \
27459   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27460 done
27461 PS1='$ '
27462 PS2='> '
27463 PS4='+ '
27464
27465 # NLS nuisances.
27466 LC_ALL=C
27467 export LC_ALL
27468 LANGUAGE=C
27469 export LANGUAGE
27470
27471 # CDPATH.
27472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27473
27474
27475 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27476 # ----------------------------------------
27477 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27478 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27479 # script with STATUS, using 1 if that was 0.
27480 as_fn_error ()
27481 {
27482   as_status=$1; test $as_status -eq 0 && as_status=1
27483   if test "$4"; then
27484     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27485     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27486   fi
27487   $as_echo "$as_me: error: $2" >&2
27488   as_fn_exit $as_status
27489 } # as_fn_error
27490
27491
27492 # as_fn_set_status STATUS
27493 # -----------------------
27494 # Set $? to STATUS, without forking.
27495 as_fn_set_status ()
27496 {
27497   return $1
27498 } # as_fn_set_status
27499
27500 # as_fn_exit STATUS
27501 # -----------------
27502 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27503 as_fn_exit ()
27504 {
27505   set +e
27506   as_fn_set_status $1
27507   exit $1
27508 } # as_fn_exit
27509
27510 # as_fn_unset VAR
27511 # ---------------
27512 # Portably unset VAR.
27513 as_fn_unset ()
27514 {
27515   { eval $1=; unset $1;}
27516 }
27517 as_unset=as_fn_unset
27518 # as_fn_append VAR VALUE
27519 # ----------------------
27520 # Append the text in VALUE to the end of the definition contained in VAR. Take
27521 # advantage of any shell optimizations that allow amortized linear growth over
27522 # repeated appends, instead of the typical quadratic growth present in naive
27523 # implementations.
27524 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27525   eval 'as_fn_append ()
27526   {
27527     eval $1+=\$2
27528   }'
27529 else
27530   as_fn_append ()
27531   {
27532     eval $1=\$$1\$2
27533   }
27534 fi # as_fn_append
27535
27536 # as_fn_arith ARG...
27537 # ------------------
27538 # Perform arithmetic evaluation on the ARGs, and store the result in the
27539 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27540 # must be portable across $(()) and expr.
27541 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27542   eval 'as_fn_arith ()
27543   {
27544     as_val=$(( $* ))
27545   }'
27546 else
27547   as_fn_arith ()
27548   {
27549     as_val=`expr "$@" || test $? -eq 1`
27550   }
27551 fi # as_fn_arith
27552
27553
27554 if expr a : '\(a\)' >/dev/null 2>&1 &&
27555    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27556   as_expr=expr
27557 else
27558   as_expr=false
27559 fi
27560
27561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27562   as_basename=basename
27563 else
27564   as_basename=false
27565 fi
27566
27567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27568   as_dirname=dirname
27569 else
27570   as_dirname=false
27571 fi
27572
27573 as_me=`$as_basename -- "$0" ||
27574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27575          X"$0" : 'X\(//\)$' \| \
27576          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27577 $as_echo X/"$0" |
27578     sed '/^.*\/\([^/][^/]*\)\/*$/{
27579             s//\1/
27580             q
27581           }
27582           /^X\/\(\/\/\)$/{
27583             s//\1/
27584             q
27585           }
27586           /^X\/\(\/\).*/{
27587             s//\1/
27588             q
27589           }
27590           s/.*/./; q'`
27591
27592 # Avoid depending upon Character Ranges.
27593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27596 as_cr_digits='0123456789'
27597 as_cr_alnum=$as_cr_Letters$as_cr_digits
27598
27599 ECHO_C= ECHO_N= ECHO_T=
27600 case `echo -n x` in #(((((
27601 -n*)
27602   case `echo 'xy\c'` in
27603   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27604   xy)  ECHO_C='\c';;
27605   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27606        ECHO_T=' ';;
27607   esac;;
27608 *)
27609   ECHO_N='-n';;
27610 esac
27611
27612 rm -f conf$$ conf$$.exe conf$$.file
27613 if test -d conf$$.dir; then
27614   rm -f conf$$.dir/conf$$.file
27615 else
27616   rm -f conf$$.dir
27617   mkdir conf$$.dir 2>/dev/null
27618 fi
27619 if (echo >conf$$.file) 2>/dev/null; then
27620   if ln -s conf$$.file conf$$ 2>/dev/null; then
27621     as_ln_s='ln -s'
27622     # ... but there are two gotchas:
27623     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27624     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27625     # In both cases, we have to default to `cp -pR'.
27626     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27627       as_ln_s='cp -pR'
27628   elif ln conf$$.file conf$$ 2>/dev/null; then
27629     as_ln_s=ln
27630   else
27631     as_ln_s='cp -pR'
27632   fi
27633 else
27634   as_ln_s='cp -pR'
27635 fi
27636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27637 rmdir conf$$.dir 2>/dev/null
27638
27639
27640 # as_fn_mkdir_p
27641 # -------------
27642 # Create "$as_dir" as a directory, including parents if necessary.
27643 as_fn_mkdir_p ()
27644 {
27645
27646   case $as_dir in #(
27647   -*) as_dir=./$as_dir;;
27648   esac
27649   test -d "$as_dir" || eval $as_mkdir_p || {
27650     as_dirs=
27651     while :; do
27652       case $as_dir in #(
27653       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27654       *) as_qdir=$as_dir;;
27655       esac
27656       as_dirs="'$as_qdir' $as_dirs"
27657       as_dir=`$as_dirname -- "$as_dir" ||
27658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27659          X"$as_dir" : 'X\(//\)[^/]' \| \
27660          X"$as_dir" : 'X\(//\)$' \| \
27661          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27662 $as_echo X"$as_dir" |
27663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27664             s//\1/
27665             q
27666           }
27667           /^X\(\/\/\)[^/].*/{
27668             s//\1/
27669             q
27670           }
27671           /^X\(\/\/\)$/{
27672             s//\1/
27673             q
27674           }
27675           /^X\(\/\).*/{
27676             s//\1/
27677             q
27678           }
27679           s/.*/./; q'`
27680       test -d "$as_dir" && break
27681     done
27682     test -z "$as_dirs" || eval "mkdir $as_dirs"
27683   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27684
27685
27686 } # as_fn_mkdir_p
27687 if mkdir -p . 2>/dev/null; then
27688   as_mkdir_p='mkdir -p "$as_dir"'
27689 else
27690   test -d ./-p && rmdir ./-p
27691   as_mkdir_p=false
27692 fi
27693
27694
27695 # as_fn_executable_p FILE
27696 # -----------------------
27697 # Test if FILE is an executable regular file.
27698 as_fn_executable_p ()
27699 {
27700   test -f "$1" && test -x "$1"
27701 } # as_fn_executable_p
27702 as_test_x='test -x'
27703 as_executable_p=as_fn_executable_p
27704
27705 # Sed expression to map a string onto a valid CPP name.
27706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27707
27708 # Sed expression to map a string onto a valid variable name.
27709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27710
27711
27712 exec 6>&1
27713 ## ----------------------------------- ##
27714 ## Main body of $CONFIG_STATUS script. ##
27715 ## ----------------------------------- ##
27716 _ASEOF
27717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27718
27719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27720 # Save the log message, to keep $0 and so on meaningful, and to
27721 # report actual input values of CONFIG_FILES etc. instead of their
27722 # values after options handling.
27723 ac_log="
27724 This file was extended by c-ares $as_me 1.10.0, which was
27725 generated by GNU Autoconf 2.69.  Invocation command line was
27726
27727   CONFIG_FILES    = $CONFIG_FILES
27728   CONFIG_HEADERS  = $CONFIG_HEADERS
27729   CONFIG_LINKS    = $CONFIG_LINKS
27730   CONFIG_COMMANDS = $CONFIG_COMMANDS
27731   $ $0 $@
27732
27733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27734 "
27735
27736 _ACEOF
27737
27738 case $ac_config_files in *"
27739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27740 esac
27741
27742 case $ac_config_headers in *"
27743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27744 esac
27745
27746
27747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27748 # Files that config.status was made for.
27749 config_files="$ac_config_files"
27750 config_headers="$ac_config_headers"
27751 config_commands="$ac_config_commands"
27752
27753 _ACEOF
27754
27755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27756 ac_cs_usage="\
27757 \`$as_me' instantiates files and other configuration actions
27758 from templates according to the current configuration.  Unless the files
27759 and actions are specified as TAGs, all are instantiated by default.
27760
27761 Usage: $0 [OPTION]... [TAG]...
27762
27763   -h, --help       print this help, then exit
27764   -V, --version    print version number and configuration settings, then exit
27765       --config     print configuration, then exit
27766   -q, --quiet, --silent
27767                    do not print progress messages
27768   -d, --debug      don't remove temporary files
27769       --recheck    update $as_me by reconfiguring in the same conditions
27770       --file=FILE[:TEMPLATE]
27771                    instantiate the configuration file FILE
27772       --header=FILE[:TEMPLATE]
27773                    instantiate the configuration header FILE
27774
27775 Configuration files:
27776 $config_files
27777
27778 Configuration headers:
27779 $config_headers
27780
27781 Configuration commands:
27782 $config_commands
27783
27784 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
27785
27786 _ACEOF
27787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27789 ac_cs_version="\\
27790 c-ares config.status 1.10.0
27791 configured by $0, generated by GNU Autoconf 2.69,
27792   with options \\"\$ac_cs_config\\"
27793
27794 Copyright (C) 2012 Free Software Foundation, Inc.
27795 This config.status script is free software; the Free Software Foundation
27796 gives unlimited permission to copy, distribute and modify it."
27797
27798 ac_pwd='$ac_pwd'
27799 srcdir='$srcdir'
27800 INSTALL='$INSTALL'
27801 MKDIR_P='$MKDIR_P'
27802 AWK='$AWK'
27803 test -n "\$AWK" || AWK=awk
27804 _ACEOF
27805
27806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27807 # The default lists apply if the user does not specify any file.
27808 ac_need_defaults=:
27809 while test $# != 0
27810 do
27811   case $1 in
27812   --*=?*)
27813     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27814     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27815     ac_shift=:
27816     ;;
27817   --*=)
27818     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27819     ac_optarg=
27820     ac_shift=:
27821     ;;
27822   *)
27823     ac_option=$1
27824     ac_optarg=$2
27825     ac_shift=shift
27826     ;;
27827   esac
27828
27829   case $ac_option in
27830   # Handling of the options.
27831   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27832     ac_cs_recheck=: ;;
27833   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27834     $as_echo "$ac_cs_version"; exit ;;
27835   --config | --confi | --conf | --con | --co | --c )
27836     $as_echo "$ac_cs_config"; exit ;;
27837   --debug | --debu | --deb | --de | --d | -d )
27838     debug=: ;;
27839   --file | --fil | --fi | --f )
27840     $ac_shift
27841     case $ac_optarg in
27842     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27843     '') as_fn_error $? "missing file argument" ;;
27844     esac
27845     as_fn_append CONFIG_FILES " '$ac_optarg'"
27846     ac_need_defaults=false;;
27847   --header | --heade | --head | --hea )
27848     $ac_shift
27849     case $ac_optarg in
27850     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27851     esac
27852     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27853     ac_need_defaults=false;;
27854   --he | --h)
27855     # Conflict between --help and --header
27856     as_fn_error $? "ambiguous option: \`$1'
27857 Try \`$0 --help' for more information.";;
27858   --help | --hel | -h )
27859     $as_echo "$ac_cs_usage"; exit ;;
27860   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27861   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27862     ac_cs_silent=: ;;
27863
27864   # This is an error.
27865   -*) as_fn_error $? "unrecognized option: \`$1'
27866 Try \`$0 --help' for more information." ;;
27867
27868   *) as_fn_append ac_config_targets " $1"
27869      ac_need_defaults=false ;;
27870
27871   esac
27872   shift
27873 done
27874
27875 ac_configure_extra_args=
27876
27877 if $ac_cs_silent; then
27878   exec 6>/dev/null
27879   ac_configure_extra_args="$ac_configure_extra_args --silent"
27880 fi
27881
27882 _ACEOF
27883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27884 if \$ac_cs_recheck; then
27885   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27886   shift
27887   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27888   CONFIG_SHELL='$SHELL'
27889   export CONFIG_SHELL
27890   exec "\$@"
27891 fi
27892
27893 _ACEOF
27894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27895 exec 5>>config.log
27896 {
27897   echo
27898   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27899 ## Running $as_me. ##
27900 _ASBOX
27901   $as_echo "$ac_log"
27902 } >&5
27903
27904 _ACEOF
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 #
27907 # INIT-COMMANDS
27908 #
27909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27910
27911
27912 # The HP-UX ksh and POSIX shell print the target directory to stdout
27913 # if CDPATH is set.
27914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27915
27916 sed_quote_subst='$sed_quote_subst'
27917 double_quote_subst='$double_quote_subst'
27918 delay_variable_subst='$delay_variable_subst'
27919 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27920 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27921 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27922 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27923 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27924 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27925 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27926 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27927 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27928 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27929 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27930 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27931 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27932 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27933 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27934 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27935 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27936 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27937 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27938 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27939 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27940 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27941 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27942 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27943 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27944 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27945 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27946 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27947 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27948 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27949 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27950 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27951 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27952 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27953 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27954 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27955 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27956 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27957 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27958 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27959 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27960 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27961 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27962 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27963 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27964 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27965 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27966 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27967 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27968 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27969 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27970 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27971 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27972 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27973 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27974 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27975 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27976 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"`'
27977 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27978 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27979 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27980 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27981 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27982 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27984 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27985 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27986 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27987 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28011 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28012 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28013 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28014 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28015 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28016 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28017 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28018 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28019 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28020 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28021 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28022 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28023 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28024 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28025 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28026 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28027 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28028 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28029 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28030 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28031 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28032 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28033 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28034 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28035 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28036 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28037 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28038 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28039 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28040 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28041 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28042 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28043 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28044 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28045 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28046 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28047 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28048 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28049 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28050
28051 LTCC='$LTCC'
28052 LTCFLAGS='$LTCFLAGS'
28053 compiler='$compiler_DEFAULT'
28054
28055 # A function that is used when there is no print builtin or printf.
28056 func_fallback_echo ()
28057 {
28058   eval 'cat <<_LTECHO_EOF
28059 \$1
28060 _LTECHO_EOF'
28061 }
28062
28063 # Quote evaled strings.
28064 for var in AS \
28065 DLLTOOL \
28066 OBJDUMP \
28067 SHELL \
28068 ECHO \
28069 PATH_SEPARATOR \
28070 SED \
28071 GREP \
28072 EGREP \
28073 FGREP \
28074 LD \
28075 NM \
28076 LN_S \
28077 lt_SP2NL \
28078 lt_NL2SP \
28079 reload_flag \
28080 deplibs_check_method \
28081 file_magic_cmd \
28082 file_magic_glob \
28083 want_nocaseglob \
28084 sharedlib_from_linklib_cmd \
28085 AR \
28086 AR_FLAGS \
28087 archiver_list_spec \
28088 STRIP \
28089 RANLIB \
28090 CC \
28091 CFLAGS \
28092 compiler \
28093 lt_cv_sys_global_symbol_pipe \
28094 lt_cv_sys_global_symbol_to_cdecl \
28095 lt_cv_sys_global_symbol_to_c_name_address \
28096 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28097 nm_file_list_spec \
28098 lt_prog_compiler_no_builtin_flag \
28099 lt_prog_compiler_pic \
28100 lt_prog_compiler_wl \
28101 lt_prog_compiler_static \
28102 lt_cv_prog_compiler_c_o \
28103 need_locks \
28104 MANIFEST_TOOL \
28105 DSYMUTIL \
28106 NMEDIT \
28107 LIPO \
28108 OTOOL \
28109 OTOOL64 \
28110 shrext_cmds \
28111 export_dynamic_flag_spec \
28112 whole_archive_flag_spec \
28113 compiler_needs_object \
28114 with_gnu_ld \
28115 allow_undefined_flag \
28116 no_undefined_flag \
28117 hardcode_libdir_flag_spec \
28118 hardcode_libdir_separator \
28119 exclude_expsyms \
28120 include_expsyms \
28121 file_list_spec \
28122 variables_saved_for_relink \
28123 libname_spec \
28124 library_names_spec \
28125 soname_spec \
28126 install_override_mode \
28127 finish_eval \
28128 old_striplib \
28129 striplib; do
28130     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28131     *[\\\\\\\`\\"\\\$]*)
28132       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28133       ;;
28134     *)
28135       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28136       ;;
28137     esac
28138 done
28139
28140 # Double-quote double-evaled strings.
28141 for var in reload_cmds \
28142 old_postinstall_cmds \
28143 old_postuninstall_cmds \
28144 old_archive_cmds \
28145 extract_expsyms_cmds \
28146 old_archive_from_new_cmds \
28147 old_archive_from_expsyms_cmds \
28148 archive_cmds \
28149 archive_expsym_cmds \
28150 module_cmds \
28151 module_expsym_cmds \
28152 export_symbols_cmds \
28153 prelink_cmds \
28154 postlink_cmds \
28155 postinstall_cmds \
28156 postuninstall_cmds \
28157 finish_cmds \
28158 sys_lib_search_path_spec \
28159 sys_lib_dlsearch_path_spec; do
28160     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28161     *[\\\\\\\`\\"\\\$]*)
28162       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28163       ;;
28164     *)
28165       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28166       ;;
28167     esac
28168 done
28169
28170 ac_aux_dir='$ac_aux_dir'
28171 xsi_shell='$xsi_shell'
28172 lt_shell_append='$lt_shell_append'
28173
28174 # See if we are running on zsh, and set the options which allow our
28175 # commands through without removal of \ escapes INIT.
28176 if test -n "\${ZSH_VERSION+set}" ; then
28177    setopt NO_GLOB_SUBST
28178 fi
28179
28180
28181     PACKAGE='$PACKAGE'
28182     VERSION='$VERSION'
28183     TIMESTAMP='$TIMESTAMP'
28184     RM='$RM'
28185     ofile='$ofile'
28186
28187
28188
28189
28190 _ACEOF
28191
28192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28193
28194 # Handling of arguments.
28195 for ac_config_target in $ac_config_targets
28196 do
28197   case $ac_config_target in
28198     "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
28199     "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
28200     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28201     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28202     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28203     "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
28204
28205   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28206   esac
28207 done
28208
28209
28210 # If the user did not use the arguments to specify the items to instantiate,
28211 # then the envvar interface is used.  Set only those that are not.
28212 # We use the long form for the default assignment because of an extremely
28213 # bizarre bug on SunOS 4.1.3.
28214 if $ac_need_defaults; then
28215   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28216   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28217   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28218 fi
28219
28220 # Have a temporary directory for convenience.  Make it in the build tree
28221 # simply because there is no reason against having it here, and in addition,
28222 # creating and moving files from /tmp can sometimes cause problems.
28223 # Hook for its removal unless debugging.
28224 # Note that there is a small window in which the directory will not be cleaned:
28225 # after its creation but before its name has been assigned to `$tmp'.
28226 $debug ||
28227 {
28228   tmp= ac_tmp=
28229   trap 'exit_status=$?
28230   : "${ac_tmp:=$tmp}"
28231   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28232 ' 0
28233   trap 'as_fn_exit 1' 1 2 13 15
28234 }
28235 # Create a (secure) tmp directory for tmp files.
28236
28237 {
28238   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28239   test -d "$tmp"
28240 }  ||
28241 {
28242   tmp=./conf$$-$RANDOM
28243   (umask 077 && mkdir "$tmp")
28244 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28245 ac_tmp=$tmp
28246
28247 # Set up the scripts for CONFIG_FILES section.
28248 # No need to generate them if there are no CONFIG_FILES.
28249 # This happens for instance with `./config.status config.h'.
28250 if test -n "$CONFIG_FILES"; then
28251
28252
28253 ac_cr=`echo X | tr X '\015'`
28254 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28255 # But we know of no other shell where ac_cr would be empty at this
28256 # point, so we can use a bashism as a fallback.
28257 if test "x$ac_cr" = x; then
28258   eval ac_cr=\$\'\\r\'
28259 fi
28260 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28261 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28262   ac_cs_awk_cr='\\r'
28263 else
28264   ac_cs_awk_cr=$ac_cr
28265 fi
28266
28267 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28268 _ACEOF
28269
28270
28271 {
28272   echo "cat >conf$$subs.awk <<_ACEOF" &&
28273   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28274   echo "_ACEOF"
28275 } >conf$$subs.sh ||
28276   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28277 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28278 ac_delim='%!_!# '
28279 for ac_last_try in false false false false false :; do
28280   . ./conf$$subs.sh ||
28281     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28282
28283   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28284   if test $ac_delim_n = $ac_delim_num; then
28285     break
28286   elif $ac_last_try; then
28287     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28288   else
28289     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28290   fi
28291 done
28292 rm -f conf$$subs.sh
28293
28294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28295 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28296 _ACEOF
28297 sed -n '
28298 h
28299 s/^/S["/; s/!.*/"]=/
28300 p
28301 g
28302 s/^[^!]*!//
28303 :repl
28304 t repl
28305 s/'"$ac_delim"'$//
28306 t delim
28307 :nl
28308 h
28309 s/\(.\{148\}\)..*/\1/
28310 t more1
28311 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28312 p
28313 n
28314 b repl
28315 :more1
28316 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28317 p
28318 g
28319 s/.\{148\}//
28320 t nl
28321 :delim
28322 h
28323 s/\(.\{148\}\)..*/\1/
28324 t more2
28325 s/["\\]/\\&/g; s/^/"/; s/$/"/
28326 p
28327 b
28328 :more2
28329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28330 p
28331 g
28332 s/.\{148\}//
28333 t delim
28334 ' <conf$$subs.awk | sed '
28335 /^[^""]/{
28336   N
28337   s/\n//
28338 }
28339 ' >>$CONFIG_STATUS || ac_write_fail=1
28340 rm -f conf$$subs.awk
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28342 _ACAWK
28343 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28344   for (key in S) S_is_set[key] = 1
28345   FS = "\a"
28346
28347 }
28348 {
28349   line = $ 0
28350   nfields = split(line, field, "@")
28351   substed = 0
28352   len = length(field[1])
28353   for (i = 2; i < nfields; i++) {
28354     key = field[i]
28355     keylen = length(key)
28356     if (S_is_set[key]) {
28357       value = S[key]
28358       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28359       len += length(value) + length(field[++i])
28360       substed = 1
28361     } else
28362       len += 1 + keylen
28363   }
28364
28365   print line
28366 }
28367
28368 _ACAWK
28369 _ACEOF
28370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28371 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28372   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28373 else
28374   cat
28375 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28376   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28377 _ACEOF
28378
28379 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28380 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28381 # trailing colons and then remove the whole line if VPATH becomes empty
28382 # (actually we leave an empty line to preserve line numbers).
28383 if test "x$srcdir" = x.; then
28384   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28385 h
28386 s///
28387 s/^/:/
28388 s/[      ]*$/:/
28389 s/:\$(srcdir):/:/g
28390 s/:\${srcdir}:/:/g
28391 s/:@srcdir@:/:/g
28392 s/^:*//
28393 s/:*$//
28394 x
28395 s/\(=[   ]*\).*/\1/
28396 G
28397 s/\n//
28398 s/^[^=]*=[       ]*$//
28399 }'
28400 fi
28401
28402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28403 fi # test -n "$CONFIG_FILES"
28404
28405 # Set up the scripts for CONFIG_HEADERS section.
28406 # No need to generate them if there are no CONFIG_HEADERS.
28407 # This happens for instance with `./config.status Makefile'.
28408 if test -n "$CONFIG_HEADERS"; then
28409 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28410 BEGIN {
28411 _ACEOF
28412
28413 # Transform confdefs.h into an awk script `defines.awk', embedded as
28414 # here-document in config.status, that substitutes the proper values into
28415 # config.h.in to produce config.h.
28416
28417 # Create a delimiter string that does not exist in confdefs.h, to ease
28418 # handling of long lines.
28419 ac_delim='%!_!# '
28420 for ac_last_try in false false :; do
28421   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28422   if test -z "$ac_tt"; then
28423     break
28424   elif $ac_last_try; then
28425     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28426   else
28427     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28428   fi
28429 done
28430
28431 # For the awk script, D is an array of macro values keyed by name,
28432 # likewise P contains macro parameters if any.  Preserve backslash
28433 # newline sequences.
28434
28435 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28436 sed -n '
28437 s/.\{148\}/&'"$ac_delim"'/g
28438 t rset
28439 :rset
28440 s/^[     ]*#[    ]*define[       ][      ]*/ /
28441 t def
28442 d
28443 :def
28444 s/\\$//
28445 t bsnl
28446 s/["\\]/\\&/g
28447 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28448 D["\1"]=" \3"/p
28449 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28450 d
28451 :bsnl
28452 s/["\\]/\\&/g
28453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28454 D["\1"]=" \3\\\\\\n"\\/p
28455 t cont
28456 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28457 t cont
28458 d
28459 :cont
28460 n
28461 s/.\{148\}/&'"$ac_delim"'/g
28462 t clear
28463 :clear
28464 s/\\$//
28465 t bsnlc
28466 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28467 d
28468 :bsnlc
28469 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28470 b cont
28471 ' <confdefs.h | sed '
28472 s/'"$ac_delim"'/"\\\
28473 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28474
28475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28476   for (key in D) D_is_set[key] = 1
28477   FS = "\a"
28478 }
28479 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28480   line = \$ 0
28481   split(line, arg, " ")
28482   if (arg[1] == "#") {
28483     defundef = arg[2]
28484     mac1 = arg[3]
28485   } else {
28486     defundef = substr(arg[1], 2)
28487     mac1 = arg[2]
28488   }
28489   split(mac1, mac2, "(") #)
28490   macro = mac2[1]
28491   prefix = substr(line, 1, index(line, defundef) - 1)
28492   if (D_is_set[macro]) {
28493     # Preserve the white space surrounding the "#".
28494     print prefix "define", macro P[macro] D[macro]
28495     next
28496   } else {
28497     # Replace #undef with comments.  This is necessary, for example,
28498     # in the case of _POSIX_SOURCE, which is predefined and required
28499     # on some systems where configure will not decide to define it.
28500     if (defundef == "undef") {
28501       print "/*", prefix defundef, macro, "*/"
28502       next
28503     }
28504   }
28505 }
28506 { print }
28507 _ACAWK
28508 _ACEOF
28509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28510   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28511 fi # test -n "$CONFIG_HEADERS"
28512
28513
28514 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28515 shift
28516 for ac_tag
28517 do
28518   case $ac_tag in
28519   :[FHLC]) ac_mode=$ac_tag; continue;;
28520   esac
28521   case $ac_mode$ac_tag in
28522   :[FHL]*:*);;
28523   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28524   :[FH]-) ac_tag=-:-;;
28525   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28526   esac
28527   ac_save_IFS=$IFS
28528   IFS=:
28529   set x $ac_tag
28530   IFS=$ac_save_IFS
28531   shift
28532   ac_file=$1
28533   shift
28534
28535   case $ac_mode in
28536   :L) ac_source=$1;;
28537   :[FH])
28538     ac_file_inputs=
28539     for ac_f
28540     do
28541       case $ac_f in
28542       -) ac_f="$ac_tmp/stdin";;
28543       *) # Look for the file first in the build tree, then in the source tree
28544          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28545          # because $ac_f cannot contain `:'.
28546          test -f "$ac_f" ||
28547            case $ac_f in
28548            [\\/$]*) false;;
28549            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28550            esac ||
28551            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28552       esac
28553       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28554       as_fn_append ac_file_inputs " '$ac_f'"
28555     done
28556
28557     # Let's still pretend it is `configure' which instantiates (i.e., don't
28558     # use $as_me), people would be surprised to read:
28559     #    /* config.h.  Generated by config.status.  */
28560     configure_input='Generated from '`
28561           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28562         `' by configure.'
28563     if test x"$ac_file" != x-; then
28564       configure_input="$ac_file.  $configure_input"
28565       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28566 $as_echo "$as_me: creating $ac_file" >&6;}
28567     fi
28568     # Neutralize special characters interpreted by sed in replacement strings.
28569     case $configure_input in #(
28570     *\&* | *\|* | *\\* )
28571        ac_sed_conf_input=`$as_echo "$configure_input" |
28572        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28573     *) ac_sed_conf_input=$configure_input;;
28574     esac
28575
28576     case $ac_tag in
28577     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28578       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28579     esac
28580     ;;
28581   esac
28582
28583   ac_dir=`$as_dirname -- "$ac_file" ||
28584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28585          X"$ac_file" : 'X\(//\)[^/]' \| \
28586          X"$ac_file" : 'X\(//\)$' \| \
28587          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28588 $as_echo X"$ac_file" |
28589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28590             s//\1/
28591             q
28592           }
28593           /^X\(\/\/\)[^/].*/{
28594             s//\1/
28595             q
28596           }
28597           /^X\(\/\/\)$/{
28598             s//\1/
28599             q
28600           }
28601           /^X\(\/\).*/{
28602             s//\1/
28603             q
28604           }
28605           s/.*/./; q'`
28606   as_dir="$ac_dir"; as_fn_mkdir_p
28607   ac_builddir=.
28608
28609 case "$ac_dir" in
28610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28611 *)
28612   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28613   # A ".." for each directory in $ac_dir_suffix.
28614   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28615   case $ac_top_builddir_sub in
28616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28618   esac ;;
28619 esac
28620 ac_abs_top_builddir=$ac_pwd
28621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28622 # for backward compatibility:
28623 ac_top_builddir=$ac_top_build_prefix
28624
28625 case $srcdir in
28626   .)  # We are building in place.
28627     ac_srcdir=.
28628     ac_top_srcdir=$ac_top_builddir_sub
28629     ac_abs_top_srcdir=$ac_pwd ;;
28630   [\\/]* | ?:[\\/]* )  # Absolute name.
28631     ac_srcdir=$srcdir$ac_dir_suffix;
28632     ac_top_srcdir=$srcdir
28633     ac_abs_top_srcdir=$srcdir ;;
28634   *) # Relative name.
28635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28636     ac_top_srcdir=$ac_top_build_prefix$srcdir
28637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28638 esac
28639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28640
28641
28642   case $ac_mode in
28643   :F)
28644   #
28645   # CONFIG_FILE
28646   #
28647
28648   case $INSTALL in
28649   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28650   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28651   esac
28652   ac_MKDIR_P=$MKDIR_P
28653   case $MKDIR_P in
28654   [\\/$]* | ?:[\\/]* ) ;;
28655   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28656   esac
28657 _ACEOF
28658
28659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28660 # If the template does not know about datarootdir, expand it.
28661 # FIXME: This hack should be removed a few years after 2.60.
28662 ac_datarootdir_hack=; ac_datarootdir_seen=
28663 ac_sed_dataroot='
28664 /datarootdir/ {
28665   p
28666   q
28667 }
28668 /@datadir@/p
28669 /@docdir@/p
28670 /@infodir@/p
28671 /@localedir@/p
28672 /@mandir@/p'
28673 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28674 *datarootdir*) ac_datarootdir_seen=yes;;
28675 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28677 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28678 _ACEOF
28679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28680   ac_datarootdir_hack='
28681   s&@datadir@&$datadir&g
28682   s&@docdir@&$docdir&g
28683   s&@infodir@&$infodir&g
28684   s&@localedir@&$localedir&g
28685   s&@mandir@&$mandir&g
28686   s&\\\${datarootdir}&$datarootdir&g' ;;
28687 esac
28688 _ACEOF
28689
28690 # Neutralize VPATH when `$srcdir' = `.'.
28691 # Shell code in configure.ac might set extrasub.
28692 # FIXME: do we really want to maintain this feature?
28693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28694 ac_sed_extra="$ac_vpsub
28695 $extrasub
28696 _ACEOF
28697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28698 :t
28699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28700 s|@configure_input@|$ac_sed_conf_input|;t t
28701 s&@top_builddir@&$ac_top_builddir_sub&;t t
28702 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28703 s&@srcdir@&$ac_srcdir&;t t
28704 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28705 s&@top_srcdir@&$ac_top_srcdir&;t t
28706 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28707 s&@builddir@&$ac_builddir&;t t
28708 s&@abs_builddir@&$ac_abs_builddir&;t t
28709 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28710 s&@INSTALL@&$ac_INSTALL&;t t
28711 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28712 $ac_datarootdir_hack
28713 "
28714 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28715   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28716
28717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28718   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28719   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28720       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28722 which seems to be undefined.  Please make sure it is defined" >&5
28723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28724 which seems to be undefined.  Please make sure it is defined" >&2;}
28725
28726   rm -f "$ac_tmp/stdin"
28727   case $ac_file in
28728   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28729   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28730   esac \
28731   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28732  ;;
28733   :H)
28734   #
28735   # CONFIG_HEADER
28736   #
28737   if test x"$ac_file" != x-; then
28738     {
28739       $as_echo "/* $configure_input  */" \
28740       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28741     } >"$ac_tmp/config.h" \
28742       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28743     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28744       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28746     else
28747       rm -f "$ac_file"
28748       mv "$ac_tmp/config.h" "$ac_file" \
28749         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28750     fi
28751   else
28752     $as_echo "/* $configure_input  */" \
28753       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28754       || as_fn_error $? "could not create -" "$LINENO" 5
28755   fi
28756 # Compute "$ac_file"'s index in $config_headers.
28757 _am_arg="$ac_file"
28758 _am_stamp_count=1
28759 for _am_header in $config_headers :; do
28760   case $_am_header in
28761     $_am_arg | $_am_arg:* )
28762       break ;;
28763     * )
28764       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28765   esac
28766 done
28767 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28768 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28769          X"$_am_arg" : 'X\(//\)[^/]' \| \
28770          X"$_am_arg" : 'X\(//\)$' \| \
28771          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28772 $as_echo X"$_am_arg" |
28773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28774             s//\1/
28775             q
28776           }
28777           /^X\(\/\/\)[^/].*/{
28778             s//\1/
28779             q
28780           }
28781           /^X\(\/\/\)$/{
28782             s//\1/
28783             q
28784           }
28785           /^X\(\/\).*/{
28786             s//\1/
28787             q
28788           }
28789           s/.*/./; q'`/stamp-h$_am_stamp_count
28790  ;;
28791
28792   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28793 $as_echo "$as_me: executing $ac_file commands" >&6;}
28794  ;;
28795   esac
28796
28797
28798   case $ac_file$ac_mode in
28799     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28800   # Autoconf 2.62 quotes --file arguments for eval, but not when files
28801   # are listed without --file.  Let's play safe and only enable the eval
28802   # if we detect the quoting.
28803   case $CONFIG_FILES in
28804   *\'*) eval set x "$CONFIG_FILES" ;;
28805   *)   set x $CONFIG_FILES ;;
28806   esac
28807   shift
28808   for mf
28809   do
28810     # Strip MF so we end up with the name of the file.
28811     mf=`echo "$mf" | sed -e 's/:.*$//'`
28812     # Check whether this is an Automake generated Makefile or not.
28813     # We used to match only the files named `Makefile.in', but
28814     # some people rename them; so instead we look at the file content.
28815     # Grep'ing the first line is not enough: some people post-process
28816     # each Makefile.in and add a new line on top of each file to say so.
28817     # Grep'ing the whole file is not good either: AIX grep has a line
28818     # limit of 2048, but all sed's we know have understand at least 4000.
28819     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28820       dirpart=`$as_dirname -- "$mf" ||
28821 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28822          X"$mf" : 'X\(//\)[^/]' \| \
28823          X"$mf" : 'X\(//\)$' \| \
28824          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28825 $as_echo X"$mf" |
28826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28827             s//\1/
28828             q
28829           }
28830           /^X\(\/\/\)[^/].*/{
28831             s//\1/
28832             q
28833           }
28834           /^X\(\/\/\)$/{
28835             s//\1/
28836             q
28837           }
28838           /^X\(\/\).*/{
28839             s//\1/
28840             q
28841           }
28842           s/.*/./; q'`
28843     else
28844       continue
28845     fi
28846     # Extract the definition of DEPDIR, am__include, and am__quote
28847     # from the Makefile without running `make'.
28848     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28849     test -z "$DEPDIR" && continue
28850     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28851     test -z "am__include" && continue
28852     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28853     # When using ansi2knr, U may be empty or an underscore; expand it
28854     U=`sed -n 's/^U = //p' < "$mf"`
28855     # Find all dependency output files, they are included files with
28856     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28857     # simplest approach to changing $(DEPDIR) to its actual value in the
28858     # expansion.
28859     for file in `sed -n "
28860       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28861          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28862       # Make sure the directory exists.
28863       test -f "$dirpart/$file" && continue
28864       fdir=`$as_dirname -- "$file" ||
28865 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28866          X"$file" : 'X\(//\)[^/]' \| \
28867          X"$file" : 'X\(//\)$' \| \
28868          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28869 $as_echo X"$file" |
28870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28871             s//\1/
28872             q
28873           }
28874           /^X\(\/\/\)[^/].*/{
28875             s//\1/
28876             q
28877           }
28878           /^X\(\/\/\)$/{
28879             s//\1/
28880             q
28881           }
28882           /^X\(\/\).*/{
28883             s//\1/
28884             q
28885           }
28886           s/.*/./; q'`
28887       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28888       # echo "creating $dirpart/$file"
28889       echo '# dummy' > "$dirpart/$file"
28890     done
28891   done
28892 }
28893  ;;
28894     "libtool":C)
28895
28896     # See if we are running on zsh, and set the options which allow our
28897     # commands through without removal of \ escapes.
28898     if test -n "${ZSH_VERSION+set}" ; then
28899       setopt NO_GLOB_SUBST
28900     fi
28901
28902     cfgfile="${ofile}T"
28903     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28904     $RM "$cfgfile"
28905
28906     cat <<_LT_EOF >> "$cfgfile"
28907 #! $SHELL
28908
28909 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28910 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28912 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28913 #
28914 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28915 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28916 #                 Foundation, Inc.
28917 #   Written by Gordon Matzigkeit, 1996
28918 #
28919 #   This file is part of GNU Libtool.
28920 #
28921 # GNU Libtool is free software; you can redistribute it and/or
28922 # modify it under the terms of the GNU General Public License as
28923 # published by the Free Software Foundation; either version 2 of
28924 # the License, or (at your option) any later version.
28925 #
28926 # As a special exception to the GNU General Public License,
28927 # if you distribute this file as part of a program or library that
28928 # is built using GNU Libtool, you may include this file under the
28929 # same distribution terms that you use for the rest of that program.
28930 #
28931 # GNU Libtool is distributed in the hope that it will be useful,
28932 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28934 # GNU General Public License for more details.
28935 #
28936 # You should have received a copy of the GNU General Public License
28937 # along with GNU Libtool; see the file COPYING.  If not, a copy
28938 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28939 # obtained by writing to the Free Software Foundation, Inc.,
28940 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28941
28942
28943 # The names of the tagged configurations supported by this script.
28944 available_tags=""
28945
28946 # ### BEGIN LIBTOOL CONFIG
28947
28948 # Which release of libtool.m4 was used?
28949 macro_version=$macro_version
28950 macro_revision=$macro_revision
28951
28952 # Assembler program.
28953 AS=$lt_AS
28954
28955 # DLL creation program.
28956 DLLTOOL=$lt_DLLTOOL
28957
28958 # Object dumper program.
28959 OBJDUMP=$lt_OBJDUMP
28960
28961 # Whether or not to build shared libraries.
28962 build_libtool_libs=$enable_shared
28963
28964 # Whether or not to build static libraries.
28965 build_old_libs=$enable_static
28966
28967 # What type of objects to build.
28968 pic_mode=$pic_mode
28969
28970 # Whether or not to optimize for fast installation.
28971 fast_install=$enable_fast_install
28972
28973 # Shell to use when invoking shell scripts.
28974 SHELL=$lt_SHELL
28975
28976 # An echo program that protects backslashes.
28977 ECHO=$lt_ECHO
28978
28979 # The PATH separator for the build system.
28980 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28981
28982 # The host system.
28983 host_alias=$host_alias
28984 host=$host
28985 host_os=$host_os
28986
28987 # The build system.
28988 build_alias=$build_alias
28989 build=$build
28990 build_os=$build_os
28991
28992 # A sed program that does not truncate output.
28993 SED=$lt_SED
28994
28995 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28996 Xsed="\$SED -e 1s/^X//"
28997
28998 # A grep program that handles long lines.
28999 GREP=$lt_GREP
29000
29001 # An ERE matcher.
29002 EGREP=$lt_EGREP
29003
29004 # A literal string matcher.
29005 FGREP=$lt_FGREP
29006
29007 # A BSD- or MS-compatible name lister.
29008 NM=$lt_NM
29009
29010 # Whether we need soft or hard links.
29011 LN_S=$lt_LN_S
29012
29013 # What is the maximum length of a command?
29014 max_cmd_len=$max_cmd_len
29015
29016 # Object file suffix (normally "o").
29017 objext=$ac_objext
29018
29019 # Executable file suffix (normally "").
29020 exeext=$exeext
29021
29022 # whether the shell understands "unset".
29023 lt_unset=$lt_unset
29024
29025 # turn spaces into newlines.
29026 SP2NL=$lt_lt_SP2NL
29027
29028 # turn newlines into spaces.
29029 NL2SP=$lt_lt_NL2SP
29030
29031 # convert \$build file names to \$host format.
29032 to_host_file_cmd=$lt_cv_to_host_file_cmd
29033
29034 # convert \$build files to toolchain format.
29035 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29036
29037 # Method to check whether dependent libraries are shared objects.
29038 deplibs_check_method=$lt_deplibs_check_method
29039
29040 # Command to use when deplibs_check_method = "file_magic".
29041 file_magic_cmd=$lt_file_magic_cmd
29042
29043 # How to find potential files when deplibs_check_method = "file_magic".
29044 file_magic_glob=$lt_file_magic_glob
29045
29046 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29047 want_nocaseglob=$lt_want_nocaseglob
29048
29049 # Command to associate shared and link libraries.
29050 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29051
29052 # The archiver.
29053 AR=$lt_AR
29054
29055 # Flags to create an archive.
29056 AR_FLAGS=$lt_AR_FLAGS
29057
29058 # How to feed a file listing to the archiver.
29059 archiver_list_spec=$lt_archiver_list_spec
29060
29061 # A symbol stripping program.
29062 STRIP=$lt_STRIP
29063
29064 # Commands used to install an old-style archive.
29065 RANLIB=$lt_RANLIB
29066 old_postinstall_cmds=$lt_old_postinstall_cmds
29067 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29068
29069 # Whether to use a lock for old archive extraction.
29070 lock_old_archive_extraction=$lock_old_archive_extraction
29071
29072 # A C compiler.
29073 LTCC=$lt_CC
29074
29075 # LTCC compiler flags.
29076 LTCFLAGS=$lt_CFLAGS
29077
29078 # Take the output of nm and produce a listing of raw symbols and C names.
29079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29080
29081 # Transform the output of nm in a proper C declaration.
29082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29083
29084 # Transform the output of nm in a C name address pair.
29085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29086
29087 # Transform the output of nm in a C name address pair when lib prefix is needed.
29088 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29089
29090 # Specify filename containing input files for \$NM.
29091 nm_file_list_spec=$lt_nm_file_list_spec
29092
29093 # The root where to search for dependent libraries,and in which our libraries should be installed.
29094 lt_sysroot=$lt_sysroot
29095
29096 # The name of the directory that contains temporary libtool files.
29097 objdir=$objdir
29098
29099 # Used to examine libraries when file_magic_cmd begins with "file".
29100 MAGIC_CMD=$MAGIC_CMD
29101
29102 # Must we lock files when doing compilation?
29103 need_locks=$lt_need_locks
29104
29105 # Manifest tool.
29106 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29107
29108 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29109 DSYMUTIL=$lt_DSYMUTIL
29110
29111 # Tool to change global to local symbols on Mac OS X.
29112 NMEDIT=$lt_NMEDIT
29113
29114 # Tool to manipulate fat objects and archives on Mac OS X.
29115 LIPO=$lt_LIPO
29116
29117 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29118 OTOOL=$lt_OTOOL
29119
29120 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29121 OTOOL64=$lt_OTOOL64
29122
29123 # Old archive suffix (normally "a").
29124 libext=$libext
29125
29126 # Shared library suffix (normally ".so").
29127 shrext_cmds=$lt_shrext_cmds
29128
29129 # The commands to extract the exported symbol list from a shared archive.
29130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29131
29132 # Variables whose values should be saved in libtool wrapper scripts and
29133 # restored at link time.
29134 variables_saved_for_relink=$lt_variables_saved_for_relink
29135
29136 # Do we need the "lib" prefix for modules?
29137 need_lib_prefix=$need_lib_prefix
29138
29139 # Do we need a version for libraries?
29140 need_version=$need_version
29141
29142 # Library versioning type.
29143 version_type=$version_type
29144
29145 # Shared library runtime path variable.
29146 runpath_var=$runpath_var
29147
29148 # Shared library path variable.
29149 shlibpath_var=$shlibpath_var
29150
29151 # Is shlibpath searched before the hard-coded library search path?
29152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29153
29154 # Format of library name prefix.
29155 libname_spec=$lt_libname_spec
29156
29157 # List of archive names.  First name is the real one, the rest are links.
29158 # The last name is the one that the linker finds with -lNAME
29159 library_names_spec=$lt_library_names_spec
29160
29161 # The coded name of the library, if different from the real name.
29162 soname_spec=$lt_soname_spec
29163
29164 # Permission mode override for installation of shared libraries.
29165 install_override_mode=$lt_install_override_mode
29166
29167 # Command to use after installation of a shared archive.
29168 postinstall_cmds=$lt_postinstall_cmds
29169
29170 # Command to use after uninstallation of a shared archive.
29171 postuninstall_cmds=$lt_postuninstall_cmds
29172
29173 # Commands used to finish a libtool library installation in a directory.
29174 finish_cmds=$lt_finish_cmds
29175
29176 # As "finish_cmds", except a single script fragment to be evaled but
29177 # not shown.
29178 finish_eval=$lt_finish_eval
29179
29180 # Whether we should hardcode library paths into libraries.
29181 hardcode_into_libs=$hardcode_into_libs
29182
29183 # Compile-time system search path for libraries.
29184 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29185
29186 # Run-time system search path for libraries.
29187 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29188
29189 # Whether dlopen is supported.
29190 dlopen_support=$enable_dlopen
29191
29192 # Whether dlopen of programs is supported.
29193 dlopen_self=$enable_dlopen_self
29194
29195 # Whether dlopen of statically linked programs is supported.
29196 dlopen_self_static=$enable_dlopen_self_static
29197
29198 # Commands to strip libraries.
29199 old_striplib=$lt_old_striplib
29200 striplib=$lt_striplib
29201
29202
29203 # The linker used to build libraries.
29204 LD=$lt_LD
29205
29206 # How to create reloadable object files.
29207 reload_flag=$lt_reload_flag
29208 reload_cmds=$lt_reload_cmds
29209
29210 # Commands used to build an old-style archive.
29211 old_archive_cmds=$lt_old_archive_cmds
29212
29213 # A language specific compiler.
29214 CC=$lt_compiler
29215
29216 # Is the compiler the GNU compiler?
29217 with_gcc=$GCC
29218
29219 # Compiler flag to turn off builtin functions.
29220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29221
29222 # Additional compiler flags for building library objects.
29223 pic_flag=$lt_lt_prog_compiler_pic
29224
29225 # How to pass a linker flag through the compiler.
29226 wl=$lt_lt_prog_compiler_wl
29227
29228 # Compiler flag to prevent dynamic linking.
29229 link_static_flag=$lt_lt_prog_compiler_static
29230
29231 # Does compiler simultaneously support -c and -o options?
29232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29233
29234 # Whether or not to add -lc for building shared libraries.
29235 build_libtool_need_lc=$archive_cmds_need_lc
29236
29237 # Whether or not to disallow shared libs when runtime libs are static.
29238 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29239
29240 # Compiler flag to allow reflexive dlopens.
29241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29242
29243 # Compiler flag to generate shared objects directly from archives.
29244 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29245
29246 # Whether the compiler copes with passing no objects directly.
29247 compiler_needs_object=$lt_compiler_needs_object
29248
29249 # Create an old-style archive from a shared archive.
29250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29251
29252 # Create a temporary old-style archive to link instead of a shared archive.
29253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29254
29255 # Commands used to build a shared archive.
29256 archive_cmds=$lt_archive_cmds
29257 archive_expsym_cmds=$lt_archive_expsym_cmds
29258
29259 # Commands used to build a loadable module if different from building
29260 # a shared archive.
29261 module_cmds=$lt_module_cmds
29262 module_expsym_cmds=$lt_module_expsym_cmds
29263
29264 # Whether we are building with GNU ld or not.
29265 with_gnu_ld=$lt_with_gnu_ld
29266
29267 # Flag that allows shared libraries with undefined symbols to be built.
29268 allow_undefined_flag=$lt_allow_undefined_flag
29269
29270 # Flag that enforces no undefined symbols.
29271 no_undefined_flag=$lt_no_undefined_flag
29272
29273 # Flag to hardcode \$libdir into a binary during linking.
29274 # This must work even if \$libdir does not exist
29275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29276
29277 # Whether we need a single "-rpath" flag with a separated argument.
29278 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29279
29280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29281 # DIR into the resulting binary.
29282 hardcode_direct=$hardcode_direct
29283
29284 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29285 # DIR into the resulting binary and the resulting library dependency is
29286 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29287 # library is relocated.
29288 hardcode_direct_absolute=$hardcode_direct_absolute
29289
29290 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29291 # into the resulting binary.
29292 hardcode_minus_L=$hardcode_minus_L
29293
29294 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29295 # into the resulting binary.
29296 hardcode_shlibpath_var=$hardcode_shlibpath_var
29297
29298 # Set to "yes" if building a shared library automatically hardcodes DIR
29299 # into the library and all subsequent libraries and executables linked
29300 # against it.
29301 hardcode_automatic=$hardcode_automatic
29302
29303 # Set to yes if linker adds runtime paths of dependent libraries
29304 # to runtime path list.
29305 inherit_rpath=$inherit_rpath
29306
29307 # Whether libtool must link a program against all its dependency libraries.
29308 link_all_deplibs=$link_all_deplibs
29309
29310 # Set to "yes" if exported symbols are required.
29311 always_export_symbols=$always_export_symbols
29312
29313 # The commands to list exported symbols.
29314 export_symbols_cmds=$lt_export_symbols_cmds
29315
29316 # Symbols that should not be listed in the preloaded symbols.
29317 exclude_expsyms=$lt_exclude_expsyms
29318
29319 # Symbols that must always be exported.
29320 include_expsyms=$lt_include_expsyms
29321
29322 # Commands necessary for linking programs (against libraries) with templates.
29323 prelink_cmds=$lt_prelink_cmds
29324
29325 # Commands necessary for finishing linking programs.
29326 postlink_cmds=$lt_postlink_cmds
29327
29328 # Specify filename containing input files.
29329 file_list_spec=$lt_file_list_spec
29330
29331 # How to hardcode a shared library path into an executable.
29332 hardcode_action=$hardcode_action
29333
29334 # ### END LIBTOOL CONFIG
29335
29336 _LT_EOF
29337
29338   case $host_os in
29339   aix3*)
29340     cat <<\_LT_EOF >> "$cfgfile"
29341 # AIX sometimes has problems with the GCC collect2 program.  For some
29342 # reason, if we set the COLLECT_NAMES environment variable, the problems
29343 # vanish in a puff of smoke.
29344 if test "X${COLLECT_NAMES+set}" != Xset; then
29345   COLLECT_NAMES=
29346   export COLLECT_NAMES
29347 fi
29348 _LT_EOF
29349     ;;
29350   esac
29351
29352
29353 ltmain="$ac_aux_dir/ltmain.sh"
29354
29355
29356   # We use sed instead of cat because bash on DJGPP gets confused if
29357   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29358   # text mode, it properly converts lines to CR/LF.  This bash problem
29359   # is reportedly fixed, but why not run on old versions too?
29360   sed '$q' "$ltmain" >> "$cfgfile" \
29361      || (rm -f "$cfgfile"; exit 1)
29362
29363   if test x"$xsi_shell" = xyes; then
29364   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29365 func_dirname ()\
29366 {\
29367 \    case ${1} in\
29368 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29369 \      *  ) func_dirname_result="${3}" ;;\
29370 \    esac\
29371 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29372   && mv -f "$cfgfile.tmp" "$cfgfile" \
29373     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29374 test 0 -eq $? || _lt_function_replace_fail=:
29375
29376
29377   sed -e '/^func_basename ()$/,/^} # func_basename /c\
29378 func_basename ()\
29379 {\
29380 \    func_basename_result="${1##*/}"\
29381 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29382   && mv -f "$cfgfile.tmp" "$cfgfile" \
29383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29384 test 0 -eq $? || _lt_function_replace_fail=:
29385
29386
29387   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29388 func_dirname_and_basename ()\
29389 {\
29390 \    case ${1} in\
29391 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29392 \      *  ) func_dirname_result="${3}" ;;\
29393 \    esac\
29394 \    func_basename_result="${1##*/}"\
29395 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29396   && mv -f "$cfgfile.tmp" "$cfgfile" \
29397     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29398 test 0 -eq $? || _lt_function_replace_fail=:
29399
29400
29401   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29402 func_stripname ()\
29403 {\
29404 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29405 \    # positional parameters, so assign one to ordinary parameter first.\
29406 \    func_stripname_result=${3}\
29407 \    func_stripname_result=${func_stripname_result#"${1}"}\
29408 \    func_stripname_result=${func_stripname_result%"${2}"}\
29409 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29410   && mv -f "$cfgfile.tmp" "$cfgfile" \
29411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29412 test 0 -eq $? || _lt_function_replace_fail=:
29413
29414
29415   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29416 func_split_long_opt ()\
29417 {\
29418 \    func_split_long_opt_name=${1%%=*}\
29419 \    func_split_long_opt_arg=${1#*=}\
29420 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29421   && mv -f "$cfgfile.tmp" "$cfgfile" \
29422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29423 test 0 -eq $? || _lt_function_replace_fail=:
29424
29425
29426   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29427 func_split_short_opt ()\
29428 {\
29429 \    func_split_short_opt_arg=${1#??}\
29430 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29431 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29432   && mv -f "$cfgfile.tmp" "$cfgfile" \
29433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29434 test 0 -eq $? || _lt_function_replace_fail=:
29435
29436
29437   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29438 func_lo2o ()\
29439 {\
29440 \    case ${1} in\
29441 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29442 \      *)    func_lo2o_result=${1} ;;\
29443 \    esac\
29444 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29445   && mv -f "$cfgfile.tmp" "$cfgfile" \
29446     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29447 test 0 -eq $? || _lt_function_replace_fail=:
29448
29449
29450   sed -e '/^func_xform ()$/,/^} # func_xform /c\
29451 func_xform ()\
29452 {\
29453     func_xform_result=${1%.*}.lo\
29454 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29455   && mv -f "$cfgfile.tmp" "$cfgfile" \
29456     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29457 test 0 -eq $? || _lt_function_replace_fail=:
29458
29459
29460   sed -e '/^func_arith ()$/,/^} # func_arith /c\
29461 func_arith ()\
29462 {\
29463     func_arith_result=$(( $* ))\
29464 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29465   && mv -f "$cfgfile.tmp" "$cfgfile" \
29466     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29467 test 0 -eq $? || _lt_function_replace_fail=:
29468
29469
29470   sed -e '/^func_len ()$/,/^} # func_len /c\
29471 func_len ()\
29472 {\
29473     func_len_result=${#1}\
29474 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29475   && mv -f "$cfgfile.tmp" "$cfgfile" \
29476     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29477 test 0 -eq $? || _lt_function_replace_fail=:
29478
29479 fi
29480
29481 if test x"$lt_shell_append" = xyes; then
29482   sed -e '/^func_append ()$/,/^} # func_append /c\
29483 func_append ()\
29484 {\
29485     eval "${1}+=\\${2}"\
29486 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29487   && mv -f "$cfgfile.tmp" "$cfgfile" \
29488     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29489 test 0 -eq $? || _lt_function_replace_fail=:
29490
29491
29492   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29493 func_append_quoted ()\
29494 {\
29495 \    func_quote_for_eval "${2}"\
29496 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29497 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29498   && mv -f "$cfgfile.tmp" "$cfgfile" \
29499     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29500 test 0 -eq $? || _lt_function_replace_fail=:
29501
29502
29503   # Save a `func_append' function call where possible by direct use of '+='
29504   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29505     && mv -f "$cfgfile.tmp" "$cfgfile" \
29506       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29507   test 0 -eq $? || _lt_function_replace_fail=:
29508 else
29509   # Save a `func_append' function call even when '+=' is not available
29510   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29511     && mv -f "$cfgfile.tmp" "$cfgfile" \
29512       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29513   test 0 -eq $? || _lt_function_replace_fail=:
29514 fi
29515
29516 if test x"$_lt_function_replace_fail" = x":"; then
29517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29518 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29519 fi
29520
29521
29522    mv -f "$cfgfile" "$ofile" ||
29523     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29524   chmod +x "$ofile"
29525
29526  ;;
29527
29528   esac
29529 done # for ac_tag
29530
29531
29532 as_fn_exit 0
29533 _ACEOF
29534 ac_clean_files=$ac_clean_files_save
29535
29536 test $ac_write_fail = 0 ||
29537   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29538
29539
29540 # configure is writing to config.log, and then calls config.status.
29541 # config.status does its own redirection, appending to config.log.
29542 # Unfortunately, on DOS this fails, as config.log is still kept open
29543 # by configure, so config.status won't be able to write to it; its
29544 # output is simply discarded.  So we exec the FD to /dev/null,
29545 # effectively closing config.log, so it can be properly (re)opened and
29546 # appended to by config.status.  When coming back to configure, we
29547 # need to make the FD available again.
29548 if test "$no_create" != yes; then
29549   ac_cs_success=:
29550   ac_config_status_args=
29551   test "$silent" = yes &&
29552     ac_config_status_args="$ac_config_status_args --quiet"
29553   exec 5>/dev/null
29554   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29555   exec 5>>config.log
29556   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29557   # would make configure fail if this is the last instruction.
29558   $ac_cs_success || as_fn_exit 1
29559 fi
29560 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29562 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29563 fi
29564