96aa0c039aaa0e7099392016fd3770c4b183bf2a
[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.11.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.11.0'
828 PACKAGE_STRING='c-ares 1.11.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 enable_option_checking=no
870 ac_subst_vars='am__EXEEXT_FALSE
871 am__EXEEXT_TRUE
872 LTLIBOBJS
873 LIBOBJS
874 subdirs
875 CARES_CFLAG_EXTRAS
876 CARES_PRIVATE_LIBS
877 CFLAG_CARES_SYMBOL_HIDING
878 DOING_CARES_SYMBOL_HIDING_FALSE
879 DOING_CARES_SYMBOL_HIDING_TRUE
880 RANDOM_FILE
881 DOING_NATIVE_WINDOWS_FALSE
882 DOING_NATIVE_WINDOWS_TRUE
883 CURLDEBUG_FALSE
884 CURLDEBUG_TRUE
885 CPPFLAG_CARES_STATICLIB
886 USE_CPPFLAG_CARES_STATICLIB_FALSE
887 USE_CPPFLAG_CARES_STATICLIB_TRUE
888 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
889 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
890 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
891 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
892 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
893 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
894 LT_SYS_LIBRARY_PATH
895 OTOOL64
896 OTOOL
897 LIPO
898 NMEDIT
899 DSYMUTIL
900 MANIFEST_TOOL
901 RANLIB
902 ac_ct_AR
903 LN_S
904 NM
905 ac_ct_DUMPBIN
906 DUMPBIN
907 LD
908 FGREP
909 LIBTOOL
910 OBJDUMP
911 DLLTOOL
912 AS
913 am__fastdepCC_FALSE
914 am__fastdepCC_TRUE
915 CCDEPMODE
916 am__nodep
917 AMDEPBACKSLASH
918 AMDEP_FALSE
919 AMDEP_TRUE
920 am__quote
921 am__include
922 DEPDIR
923 am__untar
924 am__tar
925 AMTAR
926 am__leading_dot
927 SET_MAKE
928 AWK
929 mkdir_p
930 MKDIR_P
931 INSTALL_STRIP_PROGRAM
932 STRIP
933 install_sh
934 MAKEINFO
935 AUTOHEADER
936 AUTOMAKE
937 AUTOCONF
938 ACLOCAL
939 VERSION
940 PACKAGE
941 CYGPATH_W
942 am__isrc
943 CPP
944 OBJEXT
945 EXEEXT
946 ac_ct_CC
947 CPPFLAGS
948 LDFLAGS
949 CFLAGS
950 CC
951 INSTALL_DATA
952 INSTALL_SCRIPT
953 INSTALL_PROGRAM
954 host_os
955 host_vendor
956 host_cpu
957 host
958 build_os
959 build_vendor
960 build_cpu
961 build
962 CODE_COVERAGE_RULES
963 CODE_COVERAGE_LDFLAGS
964 CODE_COVERAGE_CFLAGS
965 GENHTML
966 LCOV
967 GCOV
968 CODE_COVERAGE_ENABLED
969 CODE_COVERAGE_ENABLED_FALSE
970 CODE_COVERAGE_ENABLED_TRUE
971 AR
972 EGREP
973 GREP
974 SED
975 AM_BACKSLASH
976 AM_DEFAULT_VERBOSITY
977 AM_DEFAULT_V
978 AM_V
979 MAINT
980 MAINTAINER_MODE_FALSE
981 MAINTAINER_MODE_TRUE
982 target_alias
983 host_alias
984 build_alias
985 LIBS
986 ECHO_T
987 ECHO_N
988 ECHO_C
989 DEFS
990 mandir
991 localedir
992 libdir
993 psdir
994 pdfdir
995 dvidir
996 htmldir
997 infodir
998 docdir
999 oldincludedir
1000 includedir
1001 runstatedir
1002 localstatedir
1003 sharedstatedir
1004 sysconfdir
1005 datadir
1006 datarootdir
1007 libexecdir
1008 sbindir
1009 bindir
1010 program_transform_name
1011 prefix
1012 exec_prefix
1013 PACKAGE_URL
1014 PACKAGE_BUGREPORT
1015 PACKAGE_STRING
1016 PACKAGE_VERSION
1017 PACKAGE_TARNAME
1018 PACKAGE_NAME
1019 SHELL
1020 PATH_SEPARATOR'
1021 ac_subst_files=''
1022 ac_user_opts='
1023 enable_option_checking
1024 enable_maintainer_mode
1025 enable_silent_rules
1026 enable_debug
1027 enable_optimize
1028 enable_warnings
1029 enable_werror
1030 enable_curldebug
1031 enable_symbol_hiding
1032 enable_expose_statics
1033 with_gcov
1034 enable_code_coverage
1035 enable_dependency_tracking
1036 enable_largefile
1037 enable_shared
1038 enable_static
1039 with_pic
1040 enable_fast_install
1041 with_aix_soname
1042 with_gnu_ld
1043 with_sysroot
1044 enable_libtool_lock
1045 enable_libgcc
1046 with_random
1047 enable_nonblocking
1048 '
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CPP
1058 LT_SYS_LIBRARY_PATH'
1059 ac_subdirs_all='test'
1060
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1069 exec_prefix=NONE
1070 no_create=
1071 no_recursion=
1072 prefix=NONE
1073 program_prefix=NONE
1074 program_suffix=NONE
1075 program_transform_name=s,x,x,
1076 silent=
1077 site=
1078 srcdir=
1079 verbose=
1080 x_includes=NONE
1081 x_libraries=NONE
1082
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 runstatedir='${localstatedir}/run'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *=)   ac_optarg= ;;
1124   *)    ac_optarg=yes ;;
1125   esac
1126
1127   # Accept the important Cygnus configure options, so we can diagnose typos.
1128
1129   case $ac_dashdash$ac_option in
1130   --)
1131     ac_dashdash=yes ;;
1132
1133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134     ac_prev=bindir ;;
1135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1136     bindir=$ac_optarg ;;
1137
1138   -build | --build | --buil | --bui | --bu)
1139     ac_prev=build_alias ;;
1140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1141     build_alias=$ac_optarg ;;
1142
1143   -cache-file | --cache-file | --cache-fil | --cache-fi \
1144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1145     ac_prev=cache_file ;;
1146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1148     cache_file=$ac_optarg ;;
1149
1150   --config-cache | -C)
1151     cache_file=config.cache ;;
1152
1153   -datadir | --datadir | --datadi | --datad)
1154     ac_prev=datadir ;;
1155   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1156     datadir=$ac_optarg ;;
1157
1158   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1159   | --dataroo | --dataro | --datar)
1160     ac_prev=datarootdir ;;
1161   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1162   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1163     datarootdir=$ac_optarg ;;
1164
1165   -disable-* | --disable-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid feature name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "enable_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval enable_$ac_useropt=no ;;
1180
1181   -docdir | --docdir | --docdi | --doc | --do)
1182     ac_prev=docdir ;;
1183   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1184     docdir=$ac_optarg ;;
1185
1186   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187     ac_prev=dvidir ;;
1188   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1189     dvidir=$ac_optarg ;;
1190
1191   -enable-* | --enable-*)
1192     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195       as_fn_error $? "invalid feature name: $ac_useropt"
1196     ac_useropt_orig=$ac_useropt
1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198     case $ac_user_opts in
1199       *"
1200 "enable_$ac_useropt"
1201 "*) ;;
1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1203          ac_unrecognized_sep=', ';;
1204     esac
1205     eval enable_$ac_useropt=\$ac_optarg ;;
1206
1207   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1208   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1209   | --exec | --exe | --ex)
1210     ac_prev=exec_prefix ;;
1211   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1212   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1213   | --exec=* | --exe=* | --ex=*)
1214     exec_prefix=$ac_optarg ;;
1215
1216   -gas | --gas | --ga | --g)
1217     # Obsolete; use --with-gas.
1218     with_gas=yes ;;
1219
1220   -help | --help | --hel | --he | -h)
1221     ac_init_help=long ;;
1222   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1223     ac_init_help=recursive ;;
1224   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1225     ac_init_help=short ;;
1226
1227   -host | --host | --hos | --ho)
1228     ac_prev=host_alias ;;
1229   -host=* | --host=* | --hos=* | --ho=*)
1230     host_alias=$ac_optarg ;;
1231
1232   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1233     ac_prev=htmldir ;;
1234   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1235   | --ht=*)
1236     htmldir=$ac_optarg ;;
1237
1238   -includedir | --includedir | --includedi | --included | --include \
1239   | --includ | --inclu | --incl | --inc)
1240     ac_prev=includedir ;;
1241   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1242   | --includ=* | --inclu=* | --incl=* | --inc=*)
1243     includedir=$ac_optarg ;;
1244
1245   -infodir | --infodir | --infodi | --infod | --info | --inf)
1246     ac_prev=infodir ;;
1247   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1248     infodir=$ac_optarg ;;
1249
1250   -libdir | --libdir | --libdi | --libd)
1251     ac_prev=libdir ;;
1252   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1253     libdir=$ac_optarg ;;
1254
1255   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1256   | --libexe | --libex | --libe)
1257     ac_prev=libexecdir ;;
1258   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1259   | --libexe=* | --libex=* | --libe=*)
1260     libexecdir=$ac_optarg ;;
1261
1262   -localedir | --localedir | --localedi | --localed | --locale)
1263     ac_prev=localedir ;;
1264   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1265     localedir=$ac_optarg ;;
1266
1267   -localstatedir | --localstatedir | --localstatedi | --localstated \
1268   | --localstate | --localstat | --localsta | --localst | --locals)
1269     ac_prev=localstatedir ;;
1270   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1271   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1272     localstatedir=$ac_optarg ;;
1273
1274   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1275     ac_prev=mandir ;;
1276   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1277     mandir=$ac_optarg ;;
1278
1279   -nfp | --nfp | --nf)
1280     # Obsolete; use --without-fp.
1281     with_fp=no ;;
1282
1283   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1284   | --no-cr | --no-c | -n)
1285     no_create=yes ;;
1286
1287   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1288   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1289     no_recursion=yes ;;
1290
1291   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1292   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1293   | --oldin | --oldi | --old | --ol | --o)
1294     ac_prev=oldincludedir ;;
1295   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1296   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1297   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1298     oldincludedir=$ac_optarg ;;
1299
1300   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1301     ac_prev=prefix ;;
1302   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1303     prefix=$ac_optarg ;;
1304
1305   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1306   | --program-pre | --program-pr | --program-p)
1307     ac_prev=program_prefix ;;
1308   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1309   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1310     program_prefix=$ac_optarg ;;
1311
1312   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1313   | --program-suf | --program-su | --program-s)
1314     ac_prev=program_suffix ;;
1315   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1316   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1317     program_suffix=$ac_optarg ;;
1318
1319   -program-transform-name | --program-transform-name \
1320   | --program-transform-nam | --program-transform-na \
1321   | --program-transform-n | --program-transform- \
1322   | --program-transform | --program-transfor \
1323   | --program-transfo | --program-transf \
1324   | --program-trans | --program-tran \
1325   | --progr-tra | --program-tr | --program-t)
1326     ac_prev=program_transform_name ;;
1327   -program-transform-name=* | --program-transform-name=* \
1328   | --program-transform-nam=* | --program-transform-na=* \
1329   | --program-transform-n=* | --program-transform-=* \
1330   | --program-transform=* | --program-transfor=* \
1331   | --program-transfo=* | --program-transf=* \
1332   | --program-trans=* | --program-tran=* \
1333   | --progr-tra=* | --program-tr=* | --program-t=*)
1334     program_transform_name=$ac_optarg ;;
1335
1336   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1337     ac_prev=pdfdir ;;
1338   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1339     pdfdir=$ac_optarg ;;
1340
1341   -psdir | --psdir | --psdi | --psd | --ps)
1342     ac_prev=psdir ;;
1343   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1344     psdir=$ac_optarg ;;
1345
1346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347   | -silent | --silent | --silen | --sile | --sil)
1348     silent=yes ;;
1349
1350   -runstatedir | --runstatedir | --runstatedi | --runstated \
1351   | --runstate | --runstat | --runsta | --runst | --runs \
1352   | --run | --ru | --r)
1353     ac_prev=runstatedir ;;
1354   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1355   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1356   | --run=* | --ru=* | --r=*)
1357     runstatedir=$ac_optarg ;;
1358
1359   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360     ac_prev=sbindir ;;
1361   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362   | --sbi=* | --sb=*)
1363     sbindir=$ac_optarg ;;
1364
1365   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367   | --sharedst | --shareds | --shared | --share | --shar \
1368   | --sha | --sh)
1369     ac_prev=sharedstatedir ;;
1370   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373   | --sha=* | --sh=*)
1374     sharedstatedir=$ac_optarg ;;
1375
1376   -site | --site | --sit)
1377     ac_prev=site ;;
1378   -site=* | --site=* | --sit=*)
1379     site=$ac_optarg ;;
1380
1381   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382     ac_prev=srcdir ;;
1383   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384     srcdir=$ac_optarg ;;
1385
1386   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387   | --syscon | --sysco | --sysc | --sys | --sy)
1388     ac_prev=sysconfdir ;;
1389   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391     sysconfdir=$ac_optarg ;;
1392
1393   -target | --target | --targe | --targ | --tar | --ta | --t)
1394     ac_prev=target_alias ;;
1395   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396     target_alias=$ac_optarg ;;
1397
1398   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399     verbose=yes ;;
1400
1401   -version | --version | --versio | --versi | --vers | -V)
1402     ac_init_version=: ;;
1403
1404   -with-* | --with-*)
1405     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406     # Reject names that are not valid shell variable names.
1407     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408       as_fn_error $? "invalid package name: $ac_useropt"
1409     ac_useropt_orig=$ac_useropt
1410     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411     case $ac_user_opts in
1412       *"
1413 "with_$ac_useropt"
1414 "*) ;;
1415       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416          ac_unrecognized_sep=', ';;
1417     esac
1418     eval with_$ac_useropt=\$ac_optarg ;;
1419
1420   -without-* | --without-*)
1421     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422     # Reject names that are not valid shell variable names.
1423     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424       as_fn_error $? "invalid package name: $ac_useropt"
1425     ac_useropt_orig=$ac_useropt
1426     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427     case $ac_user_opts in
1428       *"
1429 "with_$ac_useropt"
1430 "*) ;;
1431       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432          ac_unrecognized_sep=', ';;
1433     esac
1434     eval with_$ac_useropt=no ;;
1435
1436   --x)
1437     # Obsolete; use --with-x.
1438     with_x=yes ;;
1439
1440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441   | --x-incl | --x-inc | --x-in | --x-i)
1442     ac_prev=x_includes ;;
1443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445     x_includes=$ac_optarg ;;
1446
1447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449     ac_prev=x_libraries ;;
1450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452     x_libraries=$ac_optarg ;;
1453
1454   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1455 Try \`$0 --help' for more information"
1456     ;;
1457
1458   *=*)
1459     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460     # Reject names that are not valid shell variable names.
1461     case $ac_envvar in #(
1462       '' | [0-9]* | *[!_$as_cr_alnum]* )
1463       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1464     esac
1465     eval $ac_envvar=\$ac_optarg
1466     export $ac_envvar ;;
1467
1468   *)
1469     # FIXME: should be removed in autoconf 3.0.
1470     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1474     ;;
1475
1476   esac
1477 done
1478
1479 if test -n "$ac_prev"; then
1480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481   as_fn_error $? "missing argument to $ac_option"
1482 fi
1483
1484 if test -n "$ac_unrecognized_opts"; then
1485   case $enable_option_checking in
1486     no) ;;
1487     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1488     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1489   esac
1490 fi
1491
1492 # Check all directory arguments for consistency.
1493 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494                 datadir sysconfdir sharedstatedir localstatedir includedir \
1495                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496                 libdir localedir mandir runstatedir
1497 do
1498   eval ac_val=\$$ac_var
1499   # Remove trailing slashes.
1500   case $ac_val in
1501     */ )
1502       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503       eval $ac_var=\$ac_val;;
1504   esac
1505   # Be sure to have absolute directory names.
1506   case $ac_val in
1507     [\\/$]* | ?:[\\/]* )  continue;;
1508     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1509   esac
1510   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1511 done
1512
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1516 build=$build_alias
1517 host=$host_alias
1518 target=$target_alias
1519
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x; then
1522   if test "x$build_alias" = x; then
1523     cross_compiling=maybe
1524   elif test "x$build_alias" != "x$host_alias"; then
1525     cross_compiling=yes
1526   fi
1527 fi
1528
1529 ac_tool_prefix=
1530 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531
1532 test "$silent" = yes && exec 6>/dev/null
1533
1534
1535 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536 ac_ls_di=`ls -di .` &&
1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538   as_fn_error $? "working directory cannot be determined"
1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540   as_fn_error $? "pwd does not report name of working directory"
1541
1542
1543 # Find the source files, if location was not specified.
1544 if test -z "$srcdir"; then
1545   ac_srcdir_defaulted=yes
1546   # Try the directory containing this script, then the parent directory.
1547   ac_confdir=`$as_dirname -- "$as_myself" ||
1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549          X"$as_myself" : 'X\(//\)[^/]' \| \
1550          X"$as_myself" : 'X\(//\)$' \| \
1551          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552 $as_echo X"$as_myself" |
1553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1554             s//\1/
1555             q
1556           }
1557           /^X\(\/\/\)[^/].*/{
1558             s//\1/
1559             q
1560           }
1561           /^X\(\/\/\)$/{
1562             s//\1/
1563             q
1564           }
1565           /^X\(\/\).*/{
1566             s//\1/
1567             q
1568           }
1569           s/.*/./; q'`
1570   srcdir=$ac_confdir
1571   if test ! -r "$srcdir/$ac_unique_file"; then
1572     srcdir=..
1573   fi
1574 else
1575   ac_srcdir_defaulted=no
1576 fi
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1580 fi
1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1582 ac_abs_confdir=`(
1583         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1584         pwd)`
1585 # When building in place, set srcdir=.
1586 if test "$ac_abs_confdir" = "$ac_pwd"; then
1587   srcdir=.
1588 fi
1589 # Remove unnecessary trailing slashes from srcdir.
1590 # Double slashes in file names in object file debugging info
1591 # mess up M-x gdb in Emacs.
1592 case $srcdir in
1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594 esac
1595 for ac_var in $ac_precious_vars; do
1596   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597   eval ac_env_${ac_var}_value=\$${ac_var}
1598   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1600 done
1601
1602 #
1603 # Report the --help message.
1604 #
1605 if test "$ac_init_help" = "long"; then
1606   # Omit some internal or obsolete options to make the list less imposing.
1607   # This message is too long to be a string in the A/UX 3.1 sh.
1608   cat <<_ACEOF
1609 \`configure' configures c-ares 1.11.0 to adapt to many kinds of systems.
1610
1611 Usage: $0 [OPTION]... [VAR=VALUE]...
1612
1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614 VAR=VALUE.  See below for descriptions of some of the useful variables.
1615
1616 Defaults for the options are specified in brackets.
1617
1618 Configuration:
1619   -h, --help              display this help and exit
1620       --help=short        display options specific to this package
1621       --help=recursive    display the short help of all the included packages
1622   -V, --version           display version information and exit
1623   -q, --quiet, --silent   do not print \`checking ...' messages
1624       --cache-file=FILE   cache test results in FILE [disabled]
1625   -C, --config-cache      alias for \`--cache-file=config.cache'
1626   -n, --no-create         do not create output files
1627       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1628
1629 Installation directories:
1630   --prefix=PREFIX         install architecture-independent files in PREFIX
1631                           [$ac_default_prefix]
1632   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1633                           [PREFIX]
1634
1635 By default, \`make install' will install all the files in
1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638 for instance \`--prefix=\$HOME'.
1639
1640 For better control, use the options below.
1641
1642 Fine tuning of the installation directories:
1643   --bindir=DIR            user executables [EPREFIX/bin]
1644   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1645   --libexecdir=DIR        program executables [EPREFIX/libexec]
1646   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1647   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1648   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1649   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1650   --libdir=DIR            object code libraries [EPREFIX/lib]
1651   --includedir=DIR        C header files [PREFIX/include]
1652   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1653   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1654   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1655   --infodir=DIR           info documentation [DATAROOTDIR/info]
1656   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1657   --mandir=DIR            man documentation [DATAROOTDIR/man]
1658   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1659   --htmldir=DIR           html documentation [DOCDIR]
1660   --dvidir=DIR            dvi documentation [DOCDIR]
1661   --pdfdir=DIR            pdf documentation [DOCDIR]
1662   --psdir=DIR             ps documentation [DOCDIR]
1663 _ACEOF
1664
1665   cat <<\_ACEOF
1666
1667 Program names:
1668   --program-prefix=PREFIX            prepend PREFIX to installed program names
1669   --program-suffix=SUFFIX            append SUFFIX to installed program names
1670   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1671
1672 System types:
1673   --build=BUILD     configure for building on BUILD [guessed]
1674   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1675 _ACEOF
1676 fi
1677
1678 if test -n "$ac_init_help"; then
1679   case $ac_init_help in
1680      short | recursive ) echo "Configuration of c-ares 1.11.0:";;
1681    esac
1682   cat <<\_ACEOF
1683
1684 Optional Features:
1685   --disable-option-checking  ignore unrecognized --enable/--with options
1686   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1687   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1688   --enable-maintainer-mode
1689                           enable make rules and dependencies not useful (and
1690                           sometimes confusing) to the casual installer
1691   --enable-silent-rules   less verbose build output (undo: "make V=1")
1692   --disable-silent-rules  verbose build output (undo: "make V=0")
1693   --enable-debug          Enable debug build options
1694   --disable-debug         Disable debug build options
1695   --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1696   --disable-optimize      Disable compiler optimizations
1697   --enable-warnings       Enable strict compiler warnings
1698   --disable-warnings      Disable strict compiler warnings
1699   --enable-werror         Enable compiler warnings as errors
1700   --disable-werror        Disable compiler warnings as errors
1701   --enable-curldebug      Enable curl debug memory tracking
1702   --disable-curldebug     Disable curl debug memory tracking
1703   --enable-symbol-hiding  Enable hiding of library internal symbols
1704   --disable-symbol-hiding Disable hiding of library internal symbols
1705   --enable-expose-statics Enable exposure of internal static functions for
1706                           testing
1707   --disable-expose-statics
1708                           Disable exposure of internal static functions for
1709                           testing
1710   --enable-code-coverage  Whether to enable code coverage support
1711   --enable-dependency-tracking
1712                           do not reject slow dependency extractors
1713   --disable-dependency-tracking
1714                           speeds up one-time build
1715   --disable-largefile     omit support for large files
1716   --enable-shared[=PKGS]  build shared libraries [default=yes]
1717   --enable-static[=PKGS]  build static libraries [default=yes]
1718   --enable-fast-install[=PKGS]
1719                           optimize for fast installation [default=yes]
1720   --disable-libtool-lock  avoid locking (might break parallel builds)
1721   --enable-libgcc         use libgcc when linking
1722   --enable-nonblocking    Enable non-blocking communications
1723   --disable-nonblocking   Disable non-blocking communications
1724
1725 Optional Packages:
1726   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1727   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1728   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1729   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1730                           both]
1731   --with-aix-soname=aix|svr4|both
1732                           shared library versioning (aka "SONAME") variant to
1733                           provide on AIX, [default=aix].
1734   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1735   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1736                           compiler's sysroot if not specified).
1737   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1738
1739 Some influential environment variables:
1740   CC          C compiler command
1741   CFLAGS      C compiler flags
1742   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743               nonstandard directory <lib dir>
1744   LIBS        libraries to pass to the linker, e.g. -l<library>
1745   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746               you have headers in a nonstandard directory <include dir>
1747   CPP         C preprocessor
1748   LT_SYS_LIBRARY_PATH
1749               User-defined run-time library search path.
1750
1751 Use these variables to override the choices made by `configure' or to help
1752 it to find libraries and programs with nonstandard names/locations.
1753
1754 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1755 _ACEOF
1756 ac_status=$?
1757 fi
1758
1759 if test "$ac_init_help" = "recursive"; then
1760   # If there are subdirs, report their specific --help.
1761   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1762     test -d "$ac_dir" ||
1763       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1764       continue
1765     ac_builddir=.
1766
1767 case "$ac_dir" in
1768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769 *)
1770   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1771   # A ".." for each directory in $ac_dir_suffix.
1772   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1773   case $ac_top_builddir_sub in
1774   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1776   esac ;;
1777 esac
1778 ac_abs_top_builddir=$ac_pwd
1779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1780 # for backward compatibility:
1781 ac_top_builddir=$ac_top_build_prefix
1782
1783 case $srcdir in
1784   .)  # We are building in place.
1785     ac_srcdir=.
1786     ac_top_srcdir=$ac_top_builddir_sub
1787     ac_abs_top_srcdir=$ac_pwd ;;
1788   [\\/]* | ?:[\\/]* )  # Absolute name.
1789     ac_srcdir=$srcdir$ac_dir_suffix;
1790     ac_top_srcdir=$srcdir
1791     ac_abs_top_srcdir=$srcdir ;;
1792   *) # Relative name.
1793     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1794     ac_top_srcdir=$ac_top_build_prefix$srcdir
1795     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1796 esac
1797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1798
1799     cd "$ac_dir" || { ac_status=$?; continue; }
1800     # Check for guested configure.
1801     if test -f "$ac_srcdir/configure.gnu"; then
1802       echo &&
1803       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1804     elif test -f "$ac_srcdir/configure"; then
1805       echo &&
1806       $SHELL "$ac_srcdir/configure" --help=recursive
1807     else
1808       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1809     fi || ac_status=$?
1810     cd "$ac_pwd" || { ac_status=$?; break; }
1811   done
1812 fi
1813
1814 test -n "$ac_init_help" && exit $ac_status
1815 if $ac_init_version; then
1816   cat <<\_ACEOF
1817 c-ares configure 1.11.0
1818 generated by GNU Autoconf 2.69
1819
1820 Copyright (C) 2012 Free Software Foundation, Inc.
1821 This configure script is free software; the Free Software Foundation
1822 gives unlimited permission to copy, distribute and modify it.
1823 _ACEOF
1824   exit
1825 fi
1826
1827 ## ------------------------ ##
1828 ## Autoconf initialization. ##
1829 ## ------------------------ ##
1830
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   rm -f conftest.$ac_objext
1838   if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_compile") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && {
1854          test -z "$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        } && test -s conftest.$ac_objext; then :
1857   ac_retval=0
1858 else
1859   $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862         ac_retval=1
1863 fi
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865   as_fn_set_status $ac_retval
1866
1867 } # ac_fn_c_try_compile
1868
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883   ac_status=$?
1884   if test -s conftest.err; then
1885     grep -v '^ *+' conftest.err >conftest.er1
1886     cat conftest.er1 >&5
1887     mv -f conftest.er1 conftest.err
1888   fi
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } > conftest.i && {
1891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892          test ! -s conftest.err
1893        }; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899     ac_retval=1
1900 fi
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_cpp
1905
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   rm -f conftest.$ac_objext conftest$ac_exeext
1913   if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_link") 2>conftest.err
1921   ac_status=$?
1922   if test -s conftest.err; then
1923     grep -v '^ *+' conftest.err >conftest.er1
1924     cat conftest.er1 >&5
1925     mv -f conftest.er1 conftest.err
1926   fi
1927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928   test $ac_status = 0; } && {
1929          test -z "$ac_c_werror_flag" ||
1930          test ! -s conftest.err
1931        } && test -s conftest$ac_exeext && {
1932          test "$cross_compiling" = yes ||
1933          test -x conftest$ac_exeext
1934        }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940         ac_retval=1
1941 fi
1942   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944   # interfere with the next link command; also delete a directory that is
1945   # left behind by Apple's compiler.  We do this before executing the actions.
1946   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948   as_fn_set_status $ac_retval
1949
1950 } # ac_fn_c_try_link
1951
1952 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists and can be compiled using the include files in
1955 # INCLUDES, setting the cache variable VAR accordingly.
1956 ac_fn_c_check_header_compile ()
1957 {
1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962   $as_echo_n "(cached) " >&6
1963 else
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981 } # ac_fn_c_check_header_compile
1982
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1987 ac_fn_c_try_run ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_link") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001   { { case "(($ac_try" in
2002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003   *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007   (eval "$ac_try") 2>&5
2008   ac_status=$?
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; }; }; then :
2011   ac_retval=0
2012 else
2013   $as_echo "$as_me: program exited with status $ac_status" >&5
2014        $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017        ac_retval=$ac_status
2018 fi
2019   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021   as_fn_set_status $ac_retval
2022
2023 } # ac_fn_c_try_run
2024
2025 # ac_fn_c_check_func LINENO FUNC VAR
2026 # ----------------------------------
2027 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2028 ac_fn_c_check_func ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034   $as_echo_n "(cached) " >&6
2035 else
2036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038
2039 #define $2 innocuous_$2
2040 #ifdef __STDC__
2041 # include <limits.h>
2042 #else
2043 # include <assert.h>
2044 #endif
2045 #undef $2
2046 #ifdef __cplusplus
2047 extern "C"
2048 #endif
2049 char $2 ();
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2053
2054 int main (void)
2055 {
2056 return $2 ();
2057  ;
2058  return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_link "$LINENO"; then :
2062   eval "$3=yes"
2063 else
2064   eval "$3=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext \
2067     conftest$ac_exeext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_func
2075
2076 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2079 # the include files in INCLUDES and setting the cache variable VAR
2080 # accordingly.
2081 ac_fn_c_check_header_mongrel ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   if eval \${$3+:} false; then :
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088   $as_echo_n "(cached) " >&6
2089 fi
2090 eval ac_res=\$$3
2091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 else
2094   # Is the header compilable?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2096 $as_echo_n "checking $2 usability... " >&6; }
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 $4
2100 #include <$2>
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_header_compiler=yes
2104 else
2105   ac_header_compiler=no
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2109 $as_echo "$ac_header_compiler" >&6; }
2110
2111 # Is the header present?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2113 $as_echo_n "checking $2 presence... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_c_try_cpp "$LINENO"; then :
2119   ac_header_preproc=yes
2120 else
2121   ac_header_preproc=no
2122 fi
2123 rm -f conftest.err conftest.i conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2125 $as_echo "$ac_header_preproc" >&6; }
2126
2127 # So?  What about this header?
2128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2129   yes:no: )
2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2131 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2133 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2134     ;;
2135   no:yes:* )
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2137 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2139 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2141 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2143 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 ( $as_echo "## ------------------------------------------------------------------------------- ##
2147 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2148 ## ------------------------------------------------------------------------------- ##"
2149      ) | sed "s/^/$as_me: WARNING:     /" >&2
2150     ;;
2151 esac
2152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155   $as_echo_n "(cached) " >&6
2156 else
2157   eval "$3=\$ac_header_compiler"
2158 fi
2159 eval ac_res=\$$3
2160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 fi
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_check_header_mongrel
2166
2167 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168 # -------------------------------------------
2169 # Tests whether TYPE exists after having included INCLUDES, setting cache
2170 # variable VAR accordingly.
2171 ac_fn_c_check_type ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177   $as_echo_n "(cached) " >&6
2178 else
2179   eval "$3=no"
2180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $4
2183 int main (void)
2184 {
2185 if (sizeof ($2))
2186          return 0;
2187  ;
2188  return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 int main (void)
2196 {
2197 if (sizeof (($2)))
2198             return 0;
2199  ;
2200  return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204
2205 else
2206   eval "$3=yes"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_type
2218
2219 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2220 # --------------------------------------------
2221 # Tries to find the compile-time value of EXPR in a program that includes
2222 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2223 # computed
2224 ac_fn_c_compute_int ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if test "$cross_compiling" = yes; then
2228     # Depending upon the size, compute the lo and hi bounds.
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int main (void)
2233 {
2234 static int test_array [1 - 2 * !(($2) >= 0)];
2235 test_array [0] = 0;
2236 return test_array [0];
2237
2238  ;
2239  return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   ac_lo=0 ac_mid=0
2244   while :; do
2245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int main (void)
2249 {
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 test_array [0] = 0;
2252 return test_array [0];
2253
2254  ;
2255  return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259   ac_hi=$ac_mid; break
2260 else
2261   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2262                         if test $ac_lo -le $ac_mid; then
2263                           ac_lo= ac_hi=
2264                           break
2265                         fi
2266                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269   done
2270 else
2271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h.  */
2273 $4
2274 int main (void)
2275 {
2276 static int test_array [1 - 2 * !(($2) < 0)];
2277 test_array [0] = 0;
2278 return test_array [0];
2279
2280  ;
2281  return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   ac_hi=-1 ac_mid=-1
2286   while :; do
2287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int main (void)
2291 {
2292 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2295
2296  ;
2297  return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   ac_lo=$ac_mid; break
2302 else
2303   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2304                         if test $ac_mid -le $ac_hi; then
2305                           ac_lo= ac_hi=
2306                           break
2307                         fi
2308                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311   done
2312 else
2313   ac_lo= ac_hi=
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 # Binary search between lo and hi bounds.
2319 while test "x$ac_lo" != "x$ac_hi"; do
2320   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h.  */
2323 $4
2324 int main (void)
2325 {
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 test_array [0] = 0;
2328 return test_array [0];
2329
2330  ;
2331  return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   ac_hi=$ac_mid
2336 else
2337   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 case $ac_lo in #((
2342 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2343 '') ac_retval=1 ;;
2344 esac
2345   else
2346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 $4
2349 static long int longval () { return $2; }
2350 static unsigned long int ulongval () { return $2; }
2351 #include <stdio.h>
2352 #include <stdlib.h>
2353 int main (void)
2354 {
2355
2356   FILE *f = fopen ("conftest.val", "w");
2357   if (! f)
2358     return 1;
2359   if (($2) < 0)
2360     {
2361       long int i = longval ();
2362       if (i != ($2))
2363         return 1;
2364       fprintf (f, "%ld", i);
2365     }
2366   else
2367     {
2368       unsigned long int i = ulongval ();
2369       if (i != ($2))
2370         return 1;
2371       fprintf (f, "%lu", i);
2372     }
2373   /* Do not output a trailing newline, as this causes \r\n confusion
2374      on some platforms.  */
2375   return ferror (f) || fclose (f) != 0;
2376
2377  ;
2378  return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_run "$LINENO"; then :
2382   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2383 else
2384   ac_retval=1
2385 fi
2386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2387   conftest.$ac_objext conftest.beam conftest.$ac_ext
2388 rm -f conftest.val
2389
2390   fi
2391   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392   as_fn_set_status $ac_retval
2393
2394 } # ac_fn_c_compute_int
2395
2396 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2397 # ----------------------------------------------------
2398 # Tries to find if the field MEMBER exists in type AGGR, after including
2399 # INCLUDES, setting cache variable VAR accordingly.
2400 ac_fn_c_check_member ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2404 $as_echo_n "checking for $2.$3... " >&6; }
2405 if eval \${$4+:} false; then :
2406   $as_echo_n "(cached) " >&6
2407 else
2408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 $5
2411 int main (void)
2412 {
2413 static $2 ac_aggr;
2414 if (ac_aggr.$3)
2415 return 0;
2416  ;
2417  return 0;
2418 }
2419 _ACEOF
2420 if ac_fn_c_try_compile "$LINENO"; then :
2421   eval "$4=yes"
2422 else
2423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $5
2426 int main (void)
2427 {
2428 static $2 ac_aggr;
2429 if (sizeof ac_aggr.$3)
2430 return 0;
2431  ;
2432  return 0;
2433 }
2434 _ACEOF
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436   eval "$4=yes"
2437 else
2438   eval "$4=no"
2439 fi
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 fi
2444 eval ac_res=\$$4
2445                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2448
2449 } # ac_fn_c_check_member
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2453
2454 It was created by c-ares $as_me 1.11.0, which was
2455 generated by GNU Autoconf 2.69.  Invocation command line was
2456
2457   $ $0 $@
2458
2459 _ACEOF
2460 exec 5>>config.log
2461 {
2462 cat <<_ASUNAME
2463 ## --------- ##
2464 ## Platform. ##
2465 ## --------- ##
2466
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2472
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2475
2476 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2477 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2480 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2481 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2482 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2483
2484 _ASUNAME
2485
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     $as_echo "PATH: $as_dir"
2492   done
2493 IFS=$as_save_IFS
2494
2495 } >&5
2496
2497 cat >&5 <<_ACEOF
2498
2499
2500 ## ----------- ##
2501 ## Core tests. ##
2502 ## ----------- ##
2503
2504 _ACEOF
2505
2506
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2512 ac_configure_args=
2513 ac_configure_args0=
2514 ac_configure_args1=
2515 ac_must_keep_next=false
2516 for ac_pass in 1 2
2517 do
2518   for ac_arg
2519   do
2520     case $ac_arg in
2521     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523     | -silent | --silent | --silen | --sile | --sil)
2524       continue ;;
2525     *\'*)
2526       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     esac
2528     case $ac_pass in
2529     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2530     2)
2531       as_fn_append ac_configure_args1 " '$ac_arg'"
2532       if test $ac_must_keep_next = true; then
2533         ac_must_keep_next=false # Got value, back to normal.
2534       else
2535         case $ac_arg in
2536           *=* | --config-cache | -C | -disable-* | --disable-* \
2537           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539           | -with-* | --with-* | -without-* | --without-* | --x)
2540             case "$ac_configure_args0 " in
2541               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2542             esac
2543             ;;
2544           -* ) ac_must_keep_next=true ;;
2545         esac
2546       fi
2547       as_fn_append ac_configure_args " '$ac_arg'"
2548       ;;
2549     esac
2550   done
2551 done
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2554
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log.  We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561   # Save into config.log some information that might help in debugging.
2562   {
2563     echo
2564
2565     $as_echo "## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##"
2568     echo
2569     # The following way of writing the cache mishandles newlines in values,
2570 (
2571   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2572     eval ac_val=\$$ac_var
2573     case $ac_val in #(
2574     *${as_nl}*)
2575       case $ac_var in #(
2576       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2578       esac
2579       case $ac_var in #(
2580       _ | IFS | as_nl) ;; #(
2581       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2582       *) { eval $ac_var=; unset $ac_var;} ;;
2583       esac ;;
2584     esac
2585   done
2586   (set) 2>&1 |
2587     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2588     *${as_nl}ac_space=\ *)
2589       sed -n \
2590         "s/'\''/'\''\\\\'\'''\''/g;
2591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2592       ;; #(
2593     *)
2594       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2595       ;;
2596     esac |
2597     sort
2598 )
2599     echo
2600
2601     $as_echo "## ----------------- ##
2602 ## Output variables. ##
2603 ## ----------------- ##"
2604     echo
2605     for ac_var in $ac_subst_vars
2606     do
2607       eval ac_val=\$$ac_var
2608       case $ac_val in
2609       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610       esac
2611       $as_echo "$ac_var='\''$ac_val'\''"
2612     done | sort
2613     echo
2614
2615     if test -n "$ac_subst_files"; then
2616       $as_echo "## ------------------- ##
2617 ## File substitutions. ##
2618 ## ------------------- ##"
2619       echo
2620       for ac_var in $ac_subst_files
2621       do
2622         eval ac_val=\$$ac_var
2623         case $ac_val in
2624         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2625         esac
2626         $as_echo "$ac_var='\''$ac_val'\''"
2627       done | sort
2628       echo
2629     fi
2630
2631     if test -s confdefs.h; then
2632       $as_echo "## ----------- ##
2633 ## confdefs.h. ##
2634 ## ----------- ##"
2635       echo
2636       cat confdefs.h
2637       echo
2638     fi
2639     test "$ac_signal" != 0 &&
2640       $as_echo "$as_me: caught signal $ac_signal"
2641     $as_echo "$as_me: exit $exit_status"
2642   } >&5
2643   rm -f core *.core core.conftest.* &&
2644     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2645     exit $exit_status
2646 ' 0
2647 for ac_signal in 1 2 13 15; do
2648   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2649 done
2650 ac_signal=0
2651
2652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2653 rm -f -r conftest* confdefs.h
2654
2655 $as_echo "/* confdefs.h */" > confdefs.h
2656
2657 # Predefined preprocessor variables.
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_NAME "$PACKAGE_NAME"
2661 _ACEOF
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2665 _ACEOF
2666
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2669 _ACEOF
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_STRING "$PACKAGE_STRING"
2673 _ACEOF
2674
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2677 _ACEOF
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_URL "$PACKAGE_URL"
2681 _ACEOF
2682
2683
2684 # Let the site file select an alternate cache file if it wants to.
2685 # Prefer an explicitly selected file to automatically selected ones.
2686 ac_site_file1=NONE
2687 ac_site_file2=NONE
2688 if test -n "$CONFIG_SITE"; then
2689   # We do not want a PATH search for config.site.
2690   case $CONFIG_SITE in #((
2691     -*)  ac_site_file1=./$CONFIG_SITE;;
2692     */*) ac_site_file1=$CONFIG_SITE;;
2693     *)   ac_site_file1=./$CONFIG_SITE;;
2694   esac
2695 elif test "x$prefix" != xNONE; then
2696   ac_site_file1=$prefix/share/config.site
2697   ac_site_file2=$prefix/etc/config.site
2698 else
2699   ac_site_file1=$ac_default_prefix/share/config.site
2700   ac_site_file2=$ac_default_prefix/etc/config.site
2701 fi
2702 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2703 do
2704   test "x$ac_site_file" = xNONE && continue
2705   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2706     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2707 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2708     sed 's/^/| /' "$ac_site_file" >&5
2709     . "$ac_site_file" \
2710       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "failed to load site script $ac_site_file
2713 See \`config.log' for more details" "$LINENO" 5; }
2714   fi
2715 done
2716
2717 if test -r "$cache_file"; then
2718   # Some versions of bash will fail to source /dev/null (special files
2719   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2720   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2721     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2722 $as_echo "$as_me: loading cache $cache_file" >&6;}
2723     case $cache_file in
2724       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2725       *)                      . "./$cache_file";;
2726     esac
2727   fi
2728 else
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2730 $as_echo "$as_me: creating cache $cache_file" >&6;}
2731   >$cache_file
2732 fi
2733
2734 # Check that the precious variables saved in the cache have kept the same
2735 # value.
2736 ac_cache_corrupted=false
2737 for ac_var in $ac_precious_vars; do
2738   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2739   eval ac_new_set=\$ac_env_${ac_var}_set
2740   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2741   eval ac_new_val=\$ac_env_${ac_var}_value
2742   case $ac_old_set,$ac_new_set in
2743     set,)
2744       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2745 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2746       ac_cache_corrupted=: ;;
2747     ,set)
2748       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2749 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2750       ac_cache_corrupted=: ;;
2751     ,);;
2752     *)
2753       if test "x$ac_old_val" != "x$ac_new_val"; then
2754         # differences in whitespace do not lead to failure.
2755         ac_old_val_w=`echo x $ac_old_val`
2756         ac_new_val_w=`echo x $ac_new_val`
2757         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2758           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2759 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2760           ac_cache_corrupted=:
2761         else
2762           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2763 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2764           eval $ac_var=\$ac_old_val
2765         fi
2766         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2767 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2768         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2769 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2770       fi;;
2771   esac
2772   # Pass precious variables to config.status.
2773   if test "$ac_new_set" = set; then
2774     case $ac_new_val in
2775     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2776     *) ac_arg=$ac_var=$ac_new_val ;;
2777     esac
2778     case " $ac_configure_args " in
2779       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2780       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2781     esac
2782   fi
2783 done
2784 if $ac_cache_corrupted; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2788 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2789   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2790 fi
2791 ## -------------------- ##
2792 ## Main body of script. ##
2793 ## -------------------- ##
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801
2802
2803
2804
2805
2806
2807 # using cares-override.m4
2808
2809
2810
2811 ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2812
2813
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2816 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2817     # Check whether --enable-maintainer-mode was given.
2818 if test "${enable_maintainer_mode+set}" = set; then :
2819   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2820 else
2821   USE_MAINTAINER_MODE=no
2822 fi
2823
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2825 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2826    if test $USE_MAINTAINER_MODE = yes; then
2827   MAINTAINER_MODE_TRUE=
2828   MAINTAINER_MODE_FALSE='#'
2829 else
2830   MAINTAINER_MODE_TRUE='#'
2831   MAINTAINER_MODE_FALSE=
2832 fi
2833
2834   MAINT=$MAINTAINER_MODE_TRUE
2835
2836
2837 # Check whether --enable-silent-rules was given.
2838 if test "${enable_silent_rules+set}" = set; then :
2839   enableval=$enable_silent_rules;
2840 fi
2841
2842 case $enable_silent_rules in # (((
2843   yes) AM_DEFAULT_VERBOSITY=0;;
2844    no) AM_DEFAULT_VERBOSITY=1;;
2845     *) AM_DEFAULT_VERBOSITY=0;;
2846 esac
2847 am_make=${MAKE-make}
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2849 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2850 if ${am_cv_make_support_nested_variables+:} false; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   if $as_echo 'TRUE=$(BAR$(V))
2854 BAR0=false
2855 BAR1=true
2856 V=1
2857 am__doit:
2858         @$(TRUE)
2859 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2860   am_cv_make_support_nested_variables=yes
2861 else
2862   am_cv_make_support_nested_variables=no
2863 fi
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2866 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2867 if test $am_cv_make_support_nested_variables = yes; then
2868     AM_V='$(V)'
2869   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2870 else
2871   AM_V=$AM_DEFAULT_VERBOSITY
2872   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2873 fi
2874 AM_BACKSLASH='\'
2875
2876
2877
2878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2879 $as_echo_n "checking whether to enable debug build options... " >&6; }
2880   OPT_DEBUG_BUILD="default"
2881   # Check whether --enable-debug was given.
2882 if test "${enable_debug+set}" = set; then :
2883   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2884 fi
2885
2886   case "$OPT_DEBUG_BUILD" in
2887     no)
2888             want_debug="no"
2889       ;;
2890     default)
2891             want_debug="no"
2892       ;;
2893     *)
2894             want_debug="yes"
2895       ;;
2896   esac
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2898 $as_echo "$want_debug" >&6; }
2899
2900
2901       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2902 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2903   OPT_COMPILER_OPTIMIZE="default"
2904   # Check whether --enable-optimize was given.
2905 if test "${enable_optimize+set}" = set; then :
2906   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2907 fi
2908
2909   case "$OPT_COMPILER_OPTIMIZE" in
2910     no)
2911                               want_optimize="no"
2912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914       ;;
2915     default)
2916                                                                         if test "$want_debug" = "yes"; then
2917         want_optimize="assume_no"
2918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2919 $as_echo "not specified (assuming no)" >&6; }
2920       else
2921         want_optimize="assume_yes"
2922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2923 $as_echo "not specified (assuming yes)" >&6; }
2924       fi
2925       ;;
2926     *)
2927                               want_optimize="yes"
2928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2929 $as_echo "yes" >&6; }
2930       ;;
2931   esac
2932
2933
2934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2935 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2936   OPT_COMPILER_WARNINGS="default"
2937   # Check whether --enable-warnings was given.
2938 if test "${enable_warnings+set}" = set; then :
2939   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2940 fi
2941
2942   case "$OPT_COMPILER_WARNINGS" in
2943     no)
2944             want_warnings="no"
2945       ;;
2946     default)
2947                   want_warnings="$want_debug"
2948       ;;
2949     *)
2950             want_warnings="yes"
2951       ;;
2952   esac
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2954 $as_echo "$want_warnings" >&6; }
2955
2956
2957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2958 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2959   OPT_COMPILER_WERROR="default"
2960   # Check whether --enable-werror was given.
2961 if test "${enable_werror+set}" = set; then :
2962   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2963 fi
2964
2965   case "$OPT_COMPILER_WERROR" in
2966     no)
2967             want_werror="no"
2968       ;;
2969     default)
2970             want_werror="no"
2971       ;;
2972     *)
2973             want_werror="yes"
2974       ;;
2975   esac
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2977 $as_echo "$want_werror" >&6; }
2978
2979
2980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2981 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2982   OPT_CURLDEBUG_BUILD="default"
2983   # Check whether --enable-curldebug was given.
2984 if test "${enable_curldebug+set}" = set; then :
2985   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2986 fi
2987
2988   case "$OPT_CURLDEBUG_BUILD" in
2989     no)
2990             want_curldebug="no"
2991       ;;
2992     default)
2993             want_curldebug="no"
2994       ;;
2995     *)
2996                                                       want_curldebug="yes"
2997       ;;
2998   esac
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
3000 $as_echo "$want_curldebug" >&6; }
3001
3002
3003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3004 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3005   OPT_SYMBOL_HIDING="default"
3006   # Check whether --enable-symbol-hiding was given.
3007 if test "${enable_symbol_hiding+set}" = set; then :
3008   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3009 fi
3010
3011   case "$OPT_SYMBOL_HIDING" in
3012     no)
3013                               want_symbol_hiding="no"
3014       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016       ;;
3017     default)
3018                   want_symbol_hiding="yes"
3019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3020 $as_echo "yes" >&6; }
3021       ;;
3022     *)
3023                         want_symbol_hiding="yes"
3024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3026       ;;
3027   esac
3028
3029
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
3031 $as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
3032   OPT_EXPOSE_STATICS="default"
3033   # Check whether --enable-expose-statics was given.
3034 if test "${enable_expose_statics+set}" = set; then :
3035   enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
3036 fi
3037
3038   case "$OPT_EXPOSE_STATICS" in
3039     no)
3040             want_expose_statics="no"
3041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043       ;;
3044     default)
3045                   want_expose_statics="no"
3046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048       ;;
3049     *)
3050             want_expose_statics="yes"
3051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3053       ;;
3054   esac
3055   if test "$want_expose_statics" = "yes"; then
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define CARES_EXPOSE_STATICS 1
3059 _ACEOF
3060
3061   fi
3062
3063
3064 #
3065 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3066 #
3067
3068 if test -z "$xc_configure_preamble_result"; then
3069   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3070 fi
3071
3072 #
3073 # Check that 'PATH_SEPARATOR' has already been set.
3074 #
3075
3076 if test -z "$xc_PATH_SEPARATOR"; then
3077   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3078 fi
3079 if test -z "$PATH_SEPARATOR"; then
3080   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3083 $as_echo_n "checking for path separator... " >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3085 $as_echo "$PATH_SEPARATOR" >&6; }
3086 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3088 $as_echo_n "checking for initial path separator... " >&6; }
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3090 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3091   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3092 fi
3093
3094
3095 # Extract the first word of "sed", so it can be a program name with args.
3096 set dummy sed; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_path_SED+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   case $SED in
3103   [\\/]* | ?:[\\/]*)
3104   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3105   ;;
3106   *)
3107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3109 for as_dir in $as_dummy
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120   done
3121 IFS=$as_save_IFS
3122
3123   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3124   ;;
3125 esac
3126 fi
3127 SED=$ac_cv_path_SED
3128 if test -n "$SED"; then
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3130 $as_echo "$SED" >&6; }
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 if test -z "$SED" || test "$SED" = "not_found"; then
3138   as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3139 fi
3140
3141
3142 # Extract the first word of "grep", so it can be a program name with args.
3143 set dummy grep; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_path_GREP+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   case $GREP in
3150   [\\/]* | ?:[\\/]*)
3151   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3152   ;;
3153   *)
3154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3156 for as_dir in $as_dummy
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160     for ac_exec_ext in '' $ac_executable_extensions; do
3161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164     break 2
3165   fi
3166 done
3167   done
3168 IFS=$as_save_IFS
3169
3170   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3171   ;;
3172 esac
3173 fi
3174 GREP=$ac_cv_path_GREP
3175 if test -n "$GREP"; then
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3177 $as_echo "$GREP" >&6; }
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 if test -z "$GREP" || test "$GREP" = "not_found"; then
3185   as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3186 fi
3187
3188
3189 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3191 $as_echo_n "checking for egrep... " >&6; }
3192   EGREP="$GREP -E"
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3194 $as_echo "$EGREP" >&6; }
3195 else
3196   # Extract the first word of "egrep", so it can be a program name with args.
3197 set dummy egrep; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_path_EGREP+:} false; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   case $EGREP in
3204   [\\/]* | ?:[\\/]*)
3205   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3206   ;;
3207   *)
3208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3210 for as_dir in $as_dummy
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3225   ;;
3226 esac
3227 fi
3228 EGREP=$ac_cv_path_EGREP
3229 if test -n "$EGREP"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3231 $as_echo "$EGREP" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3240   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3241 fi
3242
3243
3244 if test -n "$ac_tool_prefix"; then
3245   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}ar; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_path_AR+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   case $AR in
3253   [\\/]* | ?:[\\/]*)
3254   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3255   ;;
3256   *)
3257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3259 for as_dir in $as_dummy
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273   ;;
3274 esac
3275 fi
3276 AR=$ac_cv_path_AR
3277 if test -n "$AR"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3279 $as_echo "$AR" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$ac_cv_path_AR"; then
3288   ac_pt_AR=$AR
3289   # Extract the first word of "ar", so it can be a program name with args.
3290 set dummy ar; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_path_ac_pt_AR+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   case $ac_pt_AR in
3297   [\\/]* | ?:[\\/]*)
3298   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3299   ;;
3300   *)
3301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3303 for as_dir in $as_dummy
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317   ;;
3318 esac
3319 fi
3320 ac_pt_AR=$ac_cv_path_ac_pt_AR
3321 if test -n "$ac_pt_AR"; then
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3323 $as_echo "$ac_pt_AR" >&6; }
3324 else
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329   if test "x$ac_pt_AR" = x; then
3330     AR="not_found"
3331   else
3332     case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338     AR=$ac_pt_AR
3339   fi
3340 else
3341   AR="$ac_cv_path_AR"
3342 fi
3343
3344 if test -z "$AR" || test "$AR" = "not_found"; then
3345   as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3346 fi
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3351 if ${ac_cv_path_SED+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3355      for ac_i in 1 2 3 4 5 6 7; do
3356        ac_script="$ac_script$as_nl$ac_script"
3357      done
3358      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3359      { ac_script=; unset ac_script;}
3360      if test -z "$SED"; then
3361   ac_path_SED_found=false
3362   # Loop through the user's path and test for each of PROGNAME-LIST
3363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_prog in sed gsed; do
3369     for ac_exec_ext in '' $ac_executable_extensions; do
3370       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3371       as_fn_executable_p "$ac_path_SED" || continue
3372 # Check for GNU ac_path_SED and select it if it is found.
3373   # Check for GNU $ac_path_SED
3374 case `"$ac_path_SED" --version 2>&1` in
3375 *GNU*)
3376   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3377 *)
3378   ac_count=0
3379   $as_echo_n 0123456789 >"conftest.in"
3380   while :
3381   do
3382     cat "conftest.in" "conftest.in" >"conftest.tmp"
3383     mv "conftest.tmp" "conftest.in"
3384     cp "conftest.in" "conftest.nl"
3385     $as_echo '' >> "conftest.nl"
3386     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388     as_fn_arith $ac_count + 1 && ac_count=$as_val
3389     if test $ac_count -gt ${ac_path_SED_max-0}; then
3390       # Best one so far, save it but keep looking for a better one
3391       ac_cv_path_SED="$ac_path_SED"
3392       ac_path_SED_max=$ac_count
3393     fi
3394     # 10*(2^10) chars as input seems more than enough
3395     test $ac_count -gt 10 && break
3396   done
3397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398 esac
3399
3400       $ac_path_SED_found && break 3
3401     done
3402   done
3403   done
3404 IFS=$as_save_IFS
3405   if test -z "$ac_cv_path_SED"; then
3406     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3407   fi
3408 else
3409   ac_cv_path_SED=$SED
3410 fi
3411
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3414 $as_echo "$ac_cv_path_SED" >&6; }
3415  SED="$ac_cv_path_SED"
3416   rm -f conftest.sed
3417
3418
3419
3420
3421         # allow to override gcov location
3422
3423 # Check whether --with-gcov was given.
3424 if test "${with_gcov+set}" = set; then :
3425   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3426 else
3427   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3428 fi
3429
3430
3431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3432 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3433         # Check whether --enable-code-coverage was given.
3434 if test "${enable_code_coverage+set}" = set; then :
3435   enableval=$enable_code_coverage;
3436 else
3437   enable_code_coverage=no
3438 fi
3439
3440
3441          if test x$enable_code_coverage = xyes; then
3442   CODE_COVERAGE_ENABLED_TRUE=
3443   CODE_COVERAGE_ENABLED_FALSE='#'
3444 else
3445   CODE_COVERAGE_ENABLED_TRUE='#'
3446   CODE_COVERAGE_ENABLED_FALSE=
3447 fi
3448
3449         CODE_COVERAGE_ENABLED=$enable_code_coverage
3450
3451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3452 $as_echo "$enable_code_coverage" >&6; }
3453
3454         if  test "$enable_code_coverage" = "yes" ; then :
3455
3456                 # check for gcov
3457                 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_GCOV+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$GCOV"; then
3466   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 GCOV=$ac_cv_prog_GCOV
3486 if test -n "$GCOV"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3488 $as_echo "$GCOV" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_GCOV"; then
3497   ac_ct_GCOV=$GCOV
3498   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3499 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_GCOV"; then
3506   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3526 if test -n "$ac_ct_GCOV"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3528 $as_echo "$ac_ct_GCOV" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534   if test "x$ac_ct_GCOV" = x; then
3535     GCOV=":"
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     GCOV=$ac_ct_GCOV
3544   fi
3545 else
3546   GCOV="$ac_cv_prog_GCOV"
3547 fi
3548
3549                 if test "X$GCOV" = "X:"; then :
3550   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3551 fi
3552
3553
3554                                 if  test "$GCC" = "no" ; then :
3555
3556                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3557
3558 fi
3559
3560                 # List of supported lcov versions.
3561                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
3562
3563                 # Extract the first word of "lcov", so it can be a program name with args.
3564 set dummy lcov; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_LCOV+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   if test -n "$LCOV"; then
3571   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578     for ac_exec_ext in '' $ac_executable_extensions; do
3579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_prog_LCOV="lcov"
3581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585   done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 LCOV=$ac_cv_prog_LCOV
3591 if test -n "$LCOV"; then
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3593 $as_echo "$LCOV" >&6; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600                 # Extract the first word of "genhtml", so it can be a program name with args.
3601 set dummy genhtml; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_GENHTML+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   if test -n "$GENHTML"; then
3608   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617     ac_cv_prog_GENHTML="genhtml"
3618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 GENHTML=$ac_cv_prog_GENHTML
3628 if test -n "$GENHTML"; then
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3630 $as_echo "$GENHTML" >&6; }
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3635
3636
3637
3638                 if  test "$LCOV" ; then :
3639
3640                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3641 $as_echo_n "checking for lcov version... " >&6; }
3642 if ${ax_cv_lcov_version+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645
3646                                 ax_cv_lcov_version=invalid
3647                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3648                                 for lcov_check_version in $lcov_version_list; do
3649                                         if test "$lcov_version" = "$lcov_check_version"; then
3650                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
3651                                         fi
3652                                 done
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3656 $as_echo "$ax_cv_lcov_version" >&6; }
3657
3658 else
3659
3660                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3661                         as_fn_error $? "$lcov_msg" "$LINENO" 5
3662
3663 fi
3664
3665                 case $ax_cv_lcov_version in
3666                         ""|invalid)
3667                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3668                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
3669                                 LCOV="exit 0;"
3670                         ;;
3671                 esac
3672
3673                 if  test -z "$GENHTML" ; then :
3674
3675                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3676
3677 fi
3678
3679                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3680                 CODE_COVERAGE_LDFLAGS="-lgcov"
3681
3682
3683
3684
3685 CODE_COVERAGE_RULES='
3686 # Code coverage
3687 #
3688 # Optional:
3689 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3690 #    (Default: $(top_builddir))
3691 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3692 #    by lcov for code coverage. (Default:
3693 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3694 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3695 #    reports to be created. (Default:
3696 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3697 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3698 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3699 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3700 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3701 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3702 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3703 #    instance. (Default: empty)
3704 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3705 #
3706 # The generated report will be titled using the $(PACKAGE_NAME) and
3707 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3708 # use the git-version-gen script, available online.
3709
3710 # Optional variables
3711 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3712 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3713 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3714 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3715 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3716 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3717 CODE_COVERAGE_GENHTML_OPTIONS ?=
3718 CODE_COVERAGE_IGNORE_PATTERN ?=
3719
3720 code_coverage_quiet = $(code_coverage_quiet_$(V))
3721 code_coverage_quiet_ =
3722 code_coverage_quiet_0 = --quiet
3723
3724 # Use recursive makes in order to ignore errors during check
3725 check-code-coverage:
3726         -$(MAKE) $(AM_MAKEFLAGS) -k check
3727         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3728
3729 # Capture code coverage data
3730 code-coverage-capture: code-coverage-capture-hook
3731         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
3732         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
3733         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3734         LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3735         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3736
3737 # Hook rule executed before code-coverage-capture, overridable by the user
3738 code-coverage-capture-hook:
3739
3740 clean: code-coverage-clean
3741 code-coverage-clean:
3742         -$(LCOV) --directory $(top_builddir) -z
3743         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3744         -find . -name "*.gcda" -o -name "*.gcov" -delete
3745
3746 GITIGNOREFILES ?=
3747 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3748
3749 DISTCHECK_CONFIGURE_FLAGS ?=
3750 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3751
3752 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3753 '
3754
3755
3756 fi
3757
3758
3759
3760
3761 if test -f ${srcdir}/ares_build.h; then
3762   rm -f ${srcdir}/ares_build.h
3763 fi
3764
3765
3766 ac_aux_dir=
3767 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3768   if test -f "$ac_dir/install-sh"; then
3769     ac_aux_dir=$ac_dir
3770     ac_install_sh="$ac_aux_dir/install-sh -c"
3771     break
3772   elif test -f "$ac_dir/install.sh"; then
3773     ac_aux_dir=$ac_dir
3774     ac_install_sh="$ac_aux_dir/install.sh -c"
3775     break
3776   elif test -f "$ac_dir/shtool"; then
3777     ac_aux_dir=$ac_dir
3778     ac_install_sh="$ac_aux_dir/shtool install -c"
3779     break
3780   fi
3781 done
3782 if test -z "$ac_aux_dir"; then
3783   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3784 fi
3785
3786 # These three variables are undocumented and unsupported,
3787 # and are intended to be withdrawn in a future Autoconf release.
3788 # They can cause serious problems if a builder's source tree is in a directory
3789 # whose full name contains unusual characters.
3790 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3791 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3792 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3793
3794
3795 # Make sure we can run config.sub.
3796 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3797   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3800 $as_echo_n "checking build system type... " >&6; }
3801 if ${ac_cv_build+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   ac_build_alias=$build_alias
3805 test "x$ac_build_alias" = x &&
3806   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807 test "x$ac_build_alias" = x &&
3808   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3810   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3811
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3814 $as_echo "$ac_cv_build" >&6; }
3815 case $ac_cv_build in
3816 *-*-*) ;;
3817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3818 esac
3819 build=$ac_cv_build
3820 ac_save_IFS=$IFS; IFS='-'
3821 set x $ac_cv_build
3822 shift
3823 build_cpu=$1
3824 build_vendor=$2
3825 shift; shift
3826 # Remember, the first character of IFS is used to create $*,
3827 # except with old shells:
3828 build_os=$*
3829 IFS=$ac_save_IFS
3830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3834 $as_echo_n "checking host system type... " >&6; }
3835 if ${ac_cv_host+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test "x$host_alias" = x; then
3839   ac_cv_host=$ac_cv_build
3840 else
3841   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3842     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3843 fi
3844
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3847 $as_echo "$ac_cv_host" >&6; }
3848 case $ac_cv_host in
3849 *-*-*) ;;
3850 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3851 esac
3852 host=$ac_cv_host
3853 ac_save_IFS=$IFS; IFS='-'
3854 set x $ac_cv_host
3855 shift
3856 host_cpu=$1
3857 host_vendor=$2
3858 shift; shift
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3861 host_os=$*
3862 IFS=$ac_save_IFS
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864
3865
3866
3867 cat >>confdefs.h <<_ACEOF
3868 #define OS "${host}"
3869 _ACEOF
3870
3871
3872
3873   xc_prog_cc_prev_IFS=$IFS
3874   xc_prog_cc_prev_LIBS=$LIBS
3875   xc_prog_cc_prev_CFLAGS=$CFLAGS
3876   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3877   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3878
3879
3880
3881   xc_bad_var_libs=no
3882   for xc_word in $LIBS; do
3883     case "$xc_word" in
3884       -l* | --library=*)
3885         :
3886         ;;
3887       *)
3888         xc_bad_var_libs=yes
3889         ;;
3890     esac
3891   done
3892   if test $xc_bad_var_libs = yes; then
3893     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3894 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3895     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3896 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3897   fi
3898
3899
3900   xc_bad_var_ldflags=no
3901   for xc_word in $LDFLAGS; do
3902     case "$xc_word" in
3903       -D*)
3904         xc_bad_var_ldflags=yes
3905         ;;
3906       -U*)
3907         xc_bad_var_ldflags=yes
3908         ;;
3909       -I*)
3910         xc_bad_var_ldflags=yes
3911         ;;
3912       -l* | --library=*)
3913         xc_bad_var_ldflags=yes
3914         ;;
3915     esac
3916   done
3917   if test $xc_bad_var_ldflags = yes; then
3918     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3919 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3920     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3921     for xc_word in $LDFLAGS; do
3922       case "$xc_word" in
3923         -D*)
3924           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3925 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3926           ;;
3927         -U*)
3928           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3929 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3930           ;;
3931         -I*)
3932           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3933 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3934           ;;
3935         -l* | --library=*)
3936           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3937 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3938           ;;
3939       esac
3940     done
3941   fi
3942
3943
3944   xc_bad_var_cppflags=no
3945   for xc_word in $CPPFLAGS; do
3946     case "$xc_word" in
3947       -rpath*)
3948         xc_bad_var_cppflags=yes
3949         ;;
3950       -L* | --library-path=*)
3951         xc_bad_var_cppflags=yes
3952         ;;
3953       -l* | --library=*)
3954         xc_bad_var_cppflags=yes
3955         ;;
3956     esac
3957   done
3958   if test $xc_bad_var_cppflags = yes; then
3959     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3960 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3961     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3962     for xc_word in $CPPFLAGS; do
3963       case "$xc_word" in
3964         -rpath*)
3965           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3966 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3967           ;;
3968         -L* | --library-path=*)
3969           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3970 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3971           ;;
3972         -l* | --library=*)
3973           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3974 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3975           ;;
3976       esac
3977     done
3978   fi
3979
3980
3981   xc_bad_var_cflags=no
3982   for xc_word in $CFLAGS; do
3983     case "$xc_word" in
3984       -D*)
3985         xc_bad_var_cflags=yes
3986         ;;
3987       -U*)
3988         xc_bad_var_cflags=yes
3989         ;;
3990       -I*)
3991         xc_bad_var_cflags=yes
3992         ;;
3993       -rpath*)
3994         xc_bad_var_cflags=yes
3995         ;;
3996       -L* | --library-path=*)
3997         xc_bad_var_cflags=yes
3998         ;;
3999       -l* | --library=*)
4000         xc_bad_var_cflags=yes
4001         ;;
4002     esac
4003   done
4004   if test $xc_bad_var_cflags = yes; then
4005     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4006 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4007     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
4008     for xc_word in $CFLAGS; do
4009       case "$xc_word" in
4010         -D*)
4011           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4012 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4013           ;;
4014         -U*)
4015           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4016 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4017           ;;
4018         -I*)
4019           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4020 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4021           ;;
4022         -rpath*)
4023           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4024 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4025           ;;
4026         -L* | --library-path=*)
4027           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4028 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4029           ;;
4030         -l* | --library=*)
4031           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4032 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4033           ;;
4034       esac
4035     done
4036   fi
4037
4038   if test $xc_bad_var_libs = yes ||
4039      test $xc_bad_var_cflags = yes ||
4040      test $xc_bad_var_ldflags = yes ||
4041      test $xc_bad_var_cppflags = yes; then
4042      as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
4043   fi
4044
4045 # Find a good install program.  We prefer a C program (faster),
4046 # so one script is as good as another.  But avoid the broken or
4047 # incompatible versions:
4048 # SysV /etc/install, /usr/sbin/install
4049 # SunOS /usr/etc/install
4050 # IRIX /sbin/install
4051 # AIX /bin/install
4052 # AmigaOS /C/install, which installs bootblocks on floppy discs
4053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4056 # OS/2's system install, which has a completely different semantic
4057 # ./install, which can be erroneously created by make from ./install.sh.
4058 # Reject install programs that cannot install multiple files.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4061 if test -z "$INSTALL"; then
4062 if ${ac_cv_path_install+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070     # Account for people who put trailing slashes in PATH elements.
4071 case $as_dir/ in #((
4072   ./ | .// | /[cC]/* | \
4073   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4074   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4075   /usr/ucb/* ) ;;
4076   *)
4077     # OSF1 and SCO ODT 3.0 have their own names for install.
4078     # Don't use installbsd from OSF since it installs stuff as root
4079     # by default.
4080     for ac_prog in ginstall scoinst install; do
4081       for ac_exec_ext in '' $ac_executable_extensions; do
4082         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4083           if test $ac_prog = install &&
4084             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4085             # AIX install.  It has an incompatible calling convention.
4086             :
4087           elif test $ac_prog = install &&
4088             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4089             # program-specific install script used by HP pwplus--don't use.
4090             :
4091           else
4092             rm -rf conftest.one conftest.two conftest.dir
4093             echo one > conftest.one
4094             echo two > conftest.two
4095             mkdir conftest.dir
4096             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4097               test -s conftest.one && test -s conftest.two &&
4098               test -s conftest.dir/conftest.one &&
4099               test -s conftest.dir/conftest.two
4100             then
4101               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4102               break 3
4103             fi
4104           fi
4105         fi
4106       done
4107     done
4108     ;;
4109 esac
4110
4111   done
4112 IFS=$as_save_IFS
4113
4114 rm -rf conftest.one conftest.two conftest.dir
4115
4116 fi
4117   if test "${ac_cv_path_install+set}" = set; then
4118     INSTALL=$ac_cv_path_install
4119   else
4120     # As a last resort, use the slow shell script.  Don't cache a
4121     # value for INSTALL within a source directory, because that will
4122     # break other packages using the cache if that directory is
4123     # removed, or if the value is a relative name.
4124     INSTALL=$ac_install_sh
4125   fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4128 $as_echo "$INSTALL" >&6; }
4129
4130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4131 # It thinks the first close brace ends the variable substitution.
4132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4133
4134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4135
4136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4137
4138 # Expand $ac_aux_dir to an absolute path.
4139 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 if test -n "$ac_tool_prefix"; then
4147   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_CC+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -n "$CC"; then
4155   ac_cv_prog_CC="$CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 if test -z "$ac_cv_prog_CC"; then
4186   ac_ct_CC=$CC
4187   # Extract the first word of "gcc", so it can be a program name with args.
4188 set dummy gcc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -n "$ac_ct_CC"; then
4195   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_prog_ac_ct_CC="gcc"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215 if test -n "$ac_ct_CC"; then
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217 $as_echo "$ac_ct_CC" >&6; }
4218 else
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223   if test "x$ac_ct_CC" = x; then
4224     CC=""
4225   else
4226     case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232     CC=$ac_ct_CC
4233   fi
4234 else
4235   CC="$ac_cv_prog_CC"
4236 fi
4237
4238 if test -z "$CC"; then
4239           if test -n "$ac_tool_prefix"; then
4240     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}cc; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_CC+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   if test -n "$CC"; then
4248   ac_cv_prog_CC="$CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255     for ac_exec_ext in '' $ac_executable_extensions; do
4256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_prog_CC="${ac_tool_prefix}cc"
4258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262   done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 CC=$ac_cv_prog_CC
4268 if test -n "$CC"; then
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4270 $as_echo "$CC" >&6; }
4271 else
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276
4277   fi
4278 fi
4279 if test -z "$CC"; then
4280   # Extract the first word of "cc", so it can be a program name with args.
4281 set dummy cc; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_CC+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if test -n "$CC"; then
4288   ac_cv_prog_CC="$CC" # Let the user override the test.
4289 else
4290   ac_prog_rejected=no
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4299        ac_prog_rejected=yes
4300        continue
4301      fi
4302     ac_cv_prog_CC="cc"
4303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307   done
4308 IFS=$as_save_IFS
4309
4310 if test $ac_prog_rejected = yes; then
4311   # We found a bogon in the path, so make sure we never use it.
4312   set dummy $ac_cv_prog_CC
4313   shift
4314   if test $# != 0; then
4315     # We chose a different compiler from the bogus one.
4316     # However, it has the same basename, so the bogon will be chosen
4317     # first if we set CC to just the basename; use the full file name.
4318     shift
4319     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4320   fi
4321 fi
4322 fi
4323 fi
4324 CC=$ac_cv_prog_CC
4325 if test -n "$CC"; then
4326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4327 $as_echo "$CC" >&6; }
4328 else
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331 fi
4332
4333
4334 fi
4335 if test -z "$CC"; then
4336   if test -n "$ac_tool_prefix"; then
4337   for ac_prog in cl.exe
4338   do
4339     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_CC+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   if test -n "$CC"; then
4347   ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354     for ac_exec_ext in '' $ac_executable_extensions; do
4355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361   done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 CC=$ac_cv_prog_CC
4367 if test -n "$CC"; then
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4370 else
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376     test -n "$CC" && break
4377   done
4378 fi
4379 if test -z "$CC"; then
4380   ac_ct_CC=$CC
4381   for ac_prog in cl.exe
4382 do
4383   # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   if test -n "$ac_ct_CC"; then
4391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400     ac_cv_prog_ac_ct_CC="$ac_prog"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4411 if test -n "$ac_ct_CC"; then
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4413 $as_echo "$ac_ct_CC" >&6; }
4414 else
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420   test -n "$ac_ct_CC" && break
4421 done
4422
4423   if test "x$ac_ct_CC" = x; then
4424     CC=""
4425   else
4426     case $cross_compiling:$ac_tool_warned in
4427 yes:)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430 ac_tool_warned=yes ;;
4431 esac
4432     CC=$ac_ct_CC
4433   fi
4434 fi
4435
4436 fi
4437
4438
4439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "no acceptable C compiler found in \$PATH
4442 See \`config.log' for more details" "$LINENO" 5; }
4443
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4446 set X $ac_compile
4447 ac_compiler=$2
4448 for ac_option in --version -v -V -qversion; do
4449   { { ac_try="$ac_compiler $ac_option >&5"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4457   ac_status=$?
4458   if test -s conftest.err; then
4459     sed '10a\
4460 ... rest of stderr output deleted ...
4461          10q' conftest.err >conftest.er1
4462     cat conftest.er1 >&5
4463   fi
4464   rm -f conftest.er1 conftest.err
4465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466   test $ac_status = 0; }
4467 done
4468
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471
4472 int main (void)
4473 {
4474
4475  ;
4476  return 0;
4477 }
4478 _ACEOF
4479 ac_clean_files_save=$ac_clean_files
4480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4481 # Try to create an executable without -o first, disregard a.out.
4482 # It will help us diagnose broken compilers, and finding out an intuition
4483 # of exeext.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4485 $as_echo_n "checking whether the C compiler works... " >&6; }
4486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4487
4488 # The possible output files:
4489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4490
4491 ac_rmfiles=
4492 for ac_file in $ac_files
4493 do
4494   case $ac_file in
4495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4496     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4497   esac
4498 done
4499 rm -f $ac_rmfiles
4500
4501 if { { ac_try="$ac_link_default"
4502 case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508   (eval "$ac_link_default") 2>&5
4509   ac_status=$?
4510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511   test $ac_status = 0; }; then :
4512   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4514 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4515 # so that the user can short-circuit this test for compilers unknown to
4516 # Autoconf.
4517 for ac_file in $ac_files ''
4518 do
4519   test -f "$ac_file" || continue
4520   case $ac_file in
4521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4522         ;;
4523     [ab].out )
4524         # We found the default executable, but exeext='' is most
4525         # certainly right.
4526         break;;
4527     *.* )
4528         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4529         then :; else
4530            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4531         fi
4532         # We set ac_cv_exeext here because the later test for it is not
4533         # safe: cross compilers may not add the suffix if given an `-o'
4534         # argument, so we may need to know it at that point already.
4535         # Even if this section looks crufty: it has the advantage of
4536         # actually working.
4537         break;;
4538     * )
4539         break;;
4540   esac
4541 done
4542 test "$ac_cv_exeext" = no && ac_cv_exeext=
4543
4544 else
4545   ac_file=''
4546 fi
4547 if test -z "$ac_file"; then :
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error 77 "C compiler cannot create executables
4556 See \`config.log' for more details" "$LINENO" 5; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559 $as_echo "yes" >&6; }
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4562 $as_echo_n "checking for C compiler default output file name... " >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4564 $as_echo "$ac_file" >&6; }
4565 ac_exeext=$ac_cv_exeext
4566
4567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4568 ac_clean_files=$ac_clean_files_save
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4570 $as_echo_n "checking for suffix of executables... " >&6; }
4571 if { { ac_try="$ac_link"
4572 case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578   (eval "$ac_link") 2>&5
4579   ac_status=$?
4580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581   test $ac_status = 0; }; then :
4582   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4583 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4584 # work properly (i.e., refer to `conftest.exe'), while it won't with
4585 # `rm'.
4586 for ac_file in conftest.exe conftest conftest.*; do
4587   test -f "$ac_file" || continue
4588   case $ac_file in
4589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4590     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591           break;;
4592     * ) break;;
4593   esac
4594 done
4595 else
4596   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4599 See \`config.log' for more details" "$LINENO" 5; }
4600 fi
4601 rm -f conftest conftest$ac_cv_exeext
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4603 $as_echo "$ac_cv_exeext" >&6; }
4604
4605 rm -f conftest.$ac_ext
4606 EXEEXT=$ac_cv_exeext
4607 ac_exeext=$EXEEXT
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h.  */
4610 #include <stdio.h>
4611 int main (void)
4612 {
4613 FILE *f = fopen ("conftest.out", "w");
4614  return ferror (f) || fclose (f) != 0;
4615
4616  ;
4617  return 0;
4618 }
4619 _ACEOF
4620 ac_clean_files="$ac_clean_files conftest.out"
4621 # Check that the compiler produces executables we can run.  If not, either
4622 # the compiler is broken, or we cross compile.
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4624 $as_echo_n "checking whether we are cross compiling... " >&6; }
4625 if test "$cross_compiling" != yes; then
4626   { { ac_try="$ac_link"
4627 case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633   (eval "$ac_link") 2>&5
4634   ac_status=$?
4635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636   test $ac_status = 0; }
4637   if { ac_try='./conftest$ac_cv_exeext'
4638   { { case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644   (eval "$ac_try") 2>&5
4645   ac_status=$?
4646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647   test $ac_status = 0; }; }; then
4648     cross_compiling=no
4649   else
4650     if test "$cross_compiling" = maybe; then
4651         cross_compiling=yes
4652     else
4653         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655 as_fn_error $? "cannot run C compiled programs.
4656 If you meant to cross compile, use \`--host'.
4657 See \`config.log' for more details" "$LINENO" 5; }
4658     fi
4659   fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4662 $as_echo "$cross_compiling" >&6; }
4663
4664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4665 ac_clean_files=$ac_clean_files_save
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4667 $as_echo_n "checking for suffix of object files... " >&6; }
4668 if ${ac_cv_objext+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int main (void)
4675 {
4676
4677  ;
4678  return 0;
4679 }
4680 _ACEOF
4681 rm -f conftest.o conftest.obj
4682 if { { ac_try="$ac_compile"
4683 case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689   (eval "$ac_compile") 2>&5
4690   ac_status=$?
4691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692   test $ac_status = 0; }; then :
4693   for ac_file in conftest.o conftest.obj conftest.*; do
4694   test -f "$ac_file" || continue;
4695   case $ac_file in
4696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4698        break;;
4699   esac
4700 done
4701 else
4702   $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error $? "cannot compute suffix of object files: cannot compile
4708 See \`config.log' for more details" "$LINENO" 5; }
4709 fi
4710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4713 $as_echo "$ac_cv_objext" >&6; }
4714 OBJEXT=$ac_cv_objext
4715 ac_objext=$OBJEXT
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718 if ${ac_cv_c_compiler_gnu+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int main (void)
4725 {
4726 #ifndef __GNUC__
4727        choke me
4728 #endif
4729
4730  ;
4731  return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735   ac_compiler_gnu=yes
4736 else
4737   ac_compiler_gnu=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4745 if test $ac_compiler_gnu = yes; then
4746   GCC=yes
4747 else
4748   GCC=
4749 fi
4750 ac_test_CFLAGS=${CFLAGS+set}
4751 ac_save_CFLAGS=$CFLAGS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4754 if ${ac_cv_prog_cc_g+:} false; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   ac_save_c_werror_flag=$ac_c_werror_flag
4758    ac_c_werror_flag=yes
4759    ac_cv_prog_cc_g=no
4760    CFLAGS="-g"
4761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763
4764 int main (void)
4765 {
4766
4767  ;
4768  return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772   ac_cv_prog_cc_g=yes
4773 else
4774   CFLAGS=""
4775       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h.  */
4777
4778 int main (void)
4779 {
4780
4781  ;
4782  return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786
4787 else
4788   ac_c_werror_flag=$ac_save_c_werror_flag
4789          CFLAGS="-g"
4790          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h.  */
4792
4793 int main (void)
4794 {
4795
4796  ;
4797  return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801   ac_cv_prog_cc_g=yes
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808    ac_c_werror_flag=$ac_save_c_werror_flag
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811 $as_echo "$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813   CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815   if test "$GCC" = yes; then
4816     CFLAGS="-g -O2"
4817   else
4818     CFLAGS="-g"
4819   fi
4820 else
4821   if test "$GCC" = yes; then
4822     CFLAGS="-O2"
4823   else
4824     CFLAGS=
4825   fi
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4829 if ${ac_cv_prog_cc_c89+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   ac_cv_prog_cc_c89=no
4833 ac_save_CC=$CC
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836 #include <stdarg.h>
4837 #include <stdio.h>
4838 struct stat;
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4843      char **p;
4844      int i;
4845 {
4846   return p[i];
4847 }
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4849 {
4850   char *s;
4851   va_list v;
4852   va_start (v,p);
4853   s = g (p, va_arg (v,int));
4854   va_end (v);
4855   return s;
4856 }
4857
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4859    function prototypes and stuff, but not '\xHH' hex character constants.
4860    These don't provoke an error unfortunately, instead are silently treated
4861    as 'x'.  The following induces an error, until -std is added to get
4862    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4863    array size at least.  It's necessary to write '\x00'==0 to get something
4864    that's true only with -std.  */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868    inside strings and character constants.  */
4869 #define FOO(x) 'x'
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 int argc;
4877 char **argv;
4878 int main (void)
4879 {
4880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4881  ;
4882  return 0;
4883 }
4884 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 do
4888   CC="$ac_save_CC $ac_arg"
4889   if ac_fn_c_try_compile "$LINENO"; then :
4890   ac_cv_prog_cc_c89=$ac_arg
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext
4893   test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4897
4898 fi
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4901   x)
4902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904   xno)
4905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4907   *)
4908     CC="$CC $ac_cv_prog_cc_c89"
4909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4913
4914 fi
4915
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4929 if ${am_cv_prog_cc_c_o+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934
4935 int main (void)
4936 {
4937
4938  ;
4939  return 0;
4940 }
4941 _ACEOF
4942   # Make sure it works both with $CC and with simple cc.
4943   # Following AC_PROG_CC_C_O, we do the test twice because some
4944   # compilers refuse to overwrite an existing .o file with -o,
4945   # though they will create one.
4946   am_cv_prog_cc_c_o=yes
4947   for am_i in 1 2; do
4948     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4949    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4950    ac_status=$?
4951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952    (exit $ac_status); } \
4953          && test -f conftest2.$ac_objext; then
4954       : OK
4955     else
4956       am_cv_prog_cc_c_o=no
4957       break
4958     fi
4959   done
4960   rm -f core conftest*
4961   unset am_i
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4964 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4965 if test "$am_cv_prog_cc_c_o" != yes; then
4966    # Losing compiler, so override with the script.
4967    # FIXME: It is wrong to rewrite CC.
4968    # But if we don't then we get into trouble of one sort or another.
4969    # A longer-term fix would be to have automake use am__CC in this case,
4970    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4971    CC="$am_aux_dir/compile $CC"
4972 fi
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978
4979
4980
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4988 # On Suns, sometimes $CPP names a directory.
4989 if test -n "$CPP" && test -d "$CPP"; then
4990   CPP=
4991 fi
4992 if test -z "$CPP"; then
4993   if ${ac_cv_prog_CPP+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996       # Double quotes because CPP needs to be expanded
4997     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4998     do
4999       ac_preproc_ok=false
5000 for ac_c_preproc_warn_flag in '' yes
5001 do
5002   # Use a header file that comes with gcc, so configuring glibc
5003   # with a fresh cross-compiler works.
5004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005   # <limits.h> exists even on freestanding compilers.
5006   # On the NeXT, cc -E runs the code through the compiler's parser,
5007   # not just through cpp. "Syntax error" is here to catch this case.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #ifdef __STDC__
5011 # include <limits.h>
5012 #else
5013 # include <assert.h>
5014 #endif
5015                      Syntax error
5016 _ACEOF
5017 if ac_fn_c_try_cpp "$LINENO"; then :
5018
5019 else
5020   # Broken: fails on valid input.
5021 continue
5022 fi
5023 rm -f conftest.err conftest.i conftest.$ac_ext
5024
5025   # OK, works on sane cases.  Now check whether nonexistent headers
5026   # can be detected and how.
5027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5032   # Broken: success on invalid input.
5033 continue
5034 else
5035   # Passes both tests.
5036 ac_preproc_ok=:
5037 break
5038 fi
5039 rm -f conftest.err conftest.i conftest.$ac_ext
5040
5041 done
5042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5043 rm -f conftest.i conftest.err conftest.$ac_ext
5044 if $ac_preproc_ok; then :
5045   break
5046 fi
5047
5048     done
5049     ac_cv_prog_CPP=$CPP
5050
5051 fi
5052   CPP=$ac_cv_prog_CPP
5053 else
5054   ac_cv_prog_CPP=$CPP
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5057 $as_echo "$CPP" >&6; }
5058 ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5060 do
5061   # Use a header file that comes with gcc, so configuring glibc
5062   # with a fresh cross-compiler works.
5063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064   # <limits.h> exists even on freestanding compilers.
5065   # On the NeXT, cc -E runs the code through the compiler's parser,
5066   # not just through cpp. "Syntax error" is here to catch this case.
5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074                      Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5077
5078 else
5079   # Broken: fails on valid input.
5080 continue
5081 fi
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5083
5084   # OK, works on sane cases.  Now check whether nonexistent headers
5085   # can be detected and how.
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091   # Broken: success on invalid input.
5092 continue
5093 else
5094   # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5097 fi
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104
5105 else
5106   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5108 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details" "$LINENO" 5; }
5110 fi
5111
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119   IFS=$xc_prog_cc_prev_IFS
5120   LIBS=$xc_prog_cc_prev_LIBS
5121   CFLAGS=$xc_prog_cc_prev_CFLAGS
5122   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5123   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5124
5125
5126
5127
5128
5129
5130 am__api_version='1.15'
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5133 $as_echo_n "checking whether build environment is sane... " >&6; }
5134 # Reject unsafe characters in $srcdir or the absolute working directory
5135 # name.  Accept space and tab only in the latter.
5136 am_lf='
5137 '
5138 case `pwd` in
5139   *[\\\"\#\$\&\'\`$am_lf]*)
5140     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5141 esac
5142 case $srcdir in
5143   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5144     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5145 esac
5146
5147 # Do 'set' in a subshell so we don't clobber the current shell's
5148 # arguments.  Must try -L first in case configure is actually a
5149 # symlink; some systems play weird games with the mod time of symlinks
5150 # (eg FreeBSD returns the mod time of the symlink's containing
5151 # directory).
5152 if (
5153    am_has_slept=no
5154    for am_try in 1 2; do
5155      echo "timestamp, slept: $am_has_slept" > conftest.file
5156      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5157      if test "$*" = "X"; then
5158         # -L didn't work.
5159         set X `ls -t "$srcdir/configure" conftest.file`
5160      fi
5161      if test "$*" != "X $srcdir/configure conftest.file" \
5162         && test "$*" != "X conftest.file $srcdir/configure"; then
5163
5164         # If neither matched, then we have a broken ls.  This can happen
5165         # if, for instance, CONFIG_SHELL is bash and it inherits a
5166         # broken ls alias from the environment.  This has actually
5167         # happened.  Such a system could not be considered "sane".
5168         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5169   alias in your environment" "$LINENO" 5
5170      fi
5171      if test "$2" = conftest.file || test $am_try -eq 2; then
5172        break
5173      fi
5174      # Just in case.
5175      sleep 1
5176      am_has_slept=yes
5177    done
5178    test "$2" = conftest.file
5179    )
5180 then
5181    # Ok.
5182    :
5183 else
5184    as_fn_error $? "newly created file is older than distributed files!
5185 Check your system clock" "$LINENO" 5
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5189 # If we didn't sleep, we still need to ensure time stamps of config.status and
5190 # generated files are strictly newer.
5191 am_sleep_pid=
5192 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5193   ( sleep 1 ) &
5194   am_sleep_pid=$!
5195 fi
5196
5197 rm -f conftest.file
5198
5199 test "$program_prefix" != NONE &&
5200   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5201 # Use a double $ so make ignores it.
5202 test "$program_suffix" != NONE &&
5203   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5204 # Double any \ or $.
5205 # By default was `s,x,x', remove it if useless.
5206 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5207 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5208
5209 if test x"${MISSING+set}" != xset; then
5210   case $am_aux_dir in
5211   *\ * | *\     *)
5212     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5213   *)
5214     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5215   esac
5216 fi
5217 # Use eval to expand $SHELL
5218 if eval "$MISSING --is-lightweight"; then
5219   am_missing_run="$MISSING "
5220 else
5221   am_missing_run=
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5223 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5224 fi
5225
5226 if test x"${install_sh+set}" != xset; then
5227   case $am_aux_dir in
5228   *\ * | *\     *)
5229     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5230   *)
5231     install_sh="\${SHELL} $am_aux_dir/install-sh"
5232   esac
5233 fi
5234
5235 # Installed binaries are usually stripped using 'strip' when the user
5236 # run "make install-strip".  However 'strip' might not be the right
5237 # tool to use in cross-compilation environments, therefore Automake
5238 # will honor the 'STRIP' environment variable to overrule this program.
5239 if test "$cross_compiling" != no; then
5240   if test -n "$ac_tool_prefix"; then
5241   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}strip; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_STRIP+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   if test -n "$STRIP"; then
5249   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256     for ac_exec_ext in '' $ac_executable_extensions; do
5257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263   done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 STRIP=$ac_cv_prog_STRIP
5269 if test -n "$STRIP"; then
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5271 $as_echo "$STRIP" >&6; }
5272 else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277
5278 fi
5279 if test -z "$ac_cv_prog_STRIP"; then
5280   ac_ct_STRIP=$STRIP
5281   # Extract the first word of "strip", so it can be a program name with args.
5282 set dummy strip; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   if test -n "$ac_ct_STRIP"; then
5289   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298     ac_cv_prog_ac_ct_STRIP="strip"
5299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303   done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5309 if test -n "$ac_ct_STRIP"; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5311 $as_echo "$ac_ct_STRIP" >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317   if test "x$ac_ct_STRIP" = x; then
5318     STRIP=":"
5319   else
5320     case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326     STRIP=$ac_ct_STRIP
5327   fi
5328 else
5329   STRIP="$ac_cv_prog_STRIP"
5330 fi
5331
5332 fi
5333 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5337 if test -z "$MKDIR_P"; then
5338   if ${ac_cv_path_mkdir+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346     for ac_prog in mkdir gmkdir; do
5347          for ac_exec_ext in '' $ac_executable_extensions; do
5348            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5349            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5350              'mkdir (GNU coreutils) '* | \
5351              'mkdir (coreutils) '* | \
5352              'mkdir (fileutils) '4.1*)
5353                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5354                break 3;;
5355            esac
5356          done
5357        done
5358   done
5359 IFS=$as_save_IFS
5360
5361 fi
5362
5363   test -d ./--version && rmdir ./--version
5364   if test "${ac_cv_path_mkdir+set}" = set; then
5365     MKDIR_P="$ac_cv_path_mkdir -p"
5366   else
5367     # As a last resort, use the slow shell script.  Don't cache a
5368     # value for MKDIR_P within a source directory, because that will
5369     # break other packages using the cache if that directory is
5370     # removed, or if the value is a relative name.
5371     MKDIR_P="$ac_install_sh -d"
5372   fi
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5375 $as_echo "$MKDIR_P" >&6; }
5376
5377 for ac_prog in gawk mawk nawk awk
5378 do
5379   # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_AWK+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$AWK"; then
5387   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396     ac_cv_prog_AWK="$ac_prog"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 AWK=$ac_cv_prog_AWK
5407 if test -n "$AWK"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5409 $as_echo "$AWK" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416   test -n "$AWK" && break
5417 done
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5420 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5421 set x ${MAKE-make}
5422 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5423 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   cat >conftest.make <<\_ACEOF
5427 SHELL = /bin/sh
5428 all:
5429         @echo '@@@%%%=$(MAKE)=@@@%%%'
5430 _ACEOF
5431 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5432 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5433   *@@@%%%=?*=@@@%%%*)
5434     eval ac_cv_prog_make_${ac_make}_set=yes;;
5435   *)
5436     eval ac_cv_prog_make_${ac_make}_set=no;;
5437 esac
5438 rm -f conftest.make
5439 fi
5440 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5443   SET_MAKE=
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447   SET_MAKE="MAKE=${MAKE-make}"
5448 fi
5449
5450 rm -rf .tst 2>/dev/null
5451 mkdir .tst 2>/dev/null
5452 if test -d .tst; then
5453   am__leading_dot=.
5454 else
5455   am__leading_dot=_
5456 fi
5457 rmdir .tst 2>/dev/null
5458
5459 DEPDIR="${am__leading_dot}deps"
5460
5461 ac_config_commands="$ac_config_commands depfiles"
5462
5463
5464 am_make=${MAKE-make}
5465 cat > confinc << 'END'
5466 am__doit:
5467         @echo this is the am__doit target
5468 .PHONY: am__doit
5469 END
5470 # If we don't find an include directive, just comment out the code.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5472 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5473 am__include="#"
5474 am__quote=
5475 _am_result=none
5476 # First try GNU make style include.
5477 echo "include confinc" > confmf
5478 # Ignore all kinds of additional output from 'make'.
5479 case `$am_make -s -f confmf 2> /dev/null` in #(
5480 *the\ am__doit\ target*)
5481   am__include=include
5482   am__quote=
5483   _am_result=GNU
5484   ;;
5485 esac
5486 # Now try BSD make style include.
5487 if test "$am__include" = "#"; then
5488    echo '.include "confinc"' > confmf
5489    case `$am_make -s -f confmf 2> /dev/null` in #(
5490    *the\ am__doit\ target*)
5491      am__include=.include
5492      am__quote="\""
5493      _am_result=BSD
5494      ;;
5495    esac
5496 fi
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5500 $as_echo "$_am_result" >&6; }
5501 rm -f confinc confmf
5502
5503 # Check whether --enable-dependency-tracking was given.
5504 if test "${enable_dependency_tracking+set}" = set; then :
5505   enableval=$enable_dependency_tracking;
5506 fi
5507
5508 if test "x$enable_dependency_tracking" != xno; then
5509   am_depcomp="$ac_aux_dir/depcomp"
5510   AMDEPBACKSLASH='\'
5511   am__nodep='_no'
5512 fi
5513  if test "x$enable_dependency_tracking" != xno; then
5514   AMDEP_TRUE=
5515   AMDEP_FALSE='#'
5516 else
5517   AMDEP_TRUE='#'
5518   AMDEP_FALSE=
5519 fi
5520
5521
5522 ## --------------------------------------- ##
5523 ##  Start of automake initialization code  ##
5524 ## --------------------------------------- ##
5525
5526 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5527   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5528   # is not polluted with repeated "-I."
5529   am__isrc=' -I$(srcdir)'
5530   # test to see if srcdir already configured
5531   if test -f $srcdir/config.status; then
5532     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5533   fi
5534 fi
5535
5536 # test whether we have cygpath
5537 if test -z "$CYGPATH_W"; then
5538   if (cygpath --version) >/dev/null 2>/dev/null; then
5539     CYGPATH_W='cygpath -w'
5540   else
5541     CYGPATH_W=echo
5542   fi
5543 fi
5544
5545
5546 # Define the identity of the package.
5547  PACKAGE='c-ares'
5548  VERSION='1.11.0'
5549
5550
5551 cat >>confdefs.h <<_ACEOF
5552 #define PACKAGE "$PACKAGE"
5553 _ACEOF
5554
5555
5556 cat >>confdefs.h <<_ACEOF
5557 #define VERSION "$VERSION"
5558 _ACEOF
5559
5560 # Some tools Automake needs.
5561
5562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5563
5564
5565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5566
5567
5568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5569
5570
5571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5572
5573
5574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5575
5576 # For better backward compatibility.  To be removed once Automake 1.9.x
5577 # dies out for good.  For more background, see:
5578 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5579 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5580 mkdir_p='$(MKDIR_P)'
5581
5582 # We need awk for the "check" target (and possibly the TAP driver).  The
5583 # system "awk" is bad on some platforms.
5584 # Always define AMTAR for backward compatibility.  Yes, it's still used
5585 # in the wild :-(  We should find a proper way to deprecate it ...
5586 AMTAR='$${TAR-tar}'
5587
5588
5589 # We'll loop over all known methods to create a tar archive until one works.
5590 _am_tools='gnutar  pax cpio none'
5591
5592 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5593
5594
5595
5596
5597
5598 depcc="$CC"   am_compiler_list=
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5601 $as_echo_n "checking dependency style of $depcc... " >&6; }
5602 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5606   # We make a subdir and do the tests there.  Otherwise we can end up
5607   # making bogus files that we don't know about and never remove.  For
5608   # instance it was reported that on HP-UX the gcc test will end up
5609   # making a dummy file named 'D' -- because '-MD' means "put the output
5610   # in D".
5611   rm -rf conftest.dir
5612   mkdir conftest.dir
5613   # Copy depcomp to subdir because otherwise we won't find it if we're
5614   # using a relative directory.
5615   cp "$am_depcomp" conftest.dir
5616   cd conftest.dir
5617   # We will build objects and dependencies in a subdirectory because
5618   # it helps to detect inapplicable dependency modes.  For instance
5619   # both Tru64's cc and ICC support -MD to output dependencies as a
5620   # side effect of compilation, but ICC will put the dependencies in
5621   # the current directory while Tru64 will put them in the object
5622   # directory.
5623   mkdir sub
5624
5625   am_cv_CC_dependencies_compiler_type=none
5626   if test "$am_compiler_list" = ""; then
5627      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5628   fi
5629   am__universal=false
5630   case " $depcc " in #(
5631      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5632      esac
5633
5634   for depmode in $am_compiler_list; do
5635     # Setup a source with many dependencies, because some compilers
5636     # like to wrap large dependency lists on column 80 (with \), and
5637     # we should not choose a depcomp mode which is confused by this.
5638     #
5639     # We need to recreate these files for each test, as the compiler may
5640     # overwrite some of them when testing with obscure command lines.
5641     # This happens at least with the AIX C compiler.
5642     : > sub/conftest.c
5643     for i in 1 2 3 4 5 6; do
5644       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5645       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5646       # Solaris 10 /bin/sh.
5647       echo '/* dummy */' > sub/conftst$i.h
5648     done
5649     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5650
5651     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5652     # mode.  It turns out that the SunPro C++ compiler does not properly
5653     # handle '-M -o', and we need to detect this.  Also, some Intel
5654     # versions had trouble with output in subdirs.
5655     am__obj=sub/conftest.${OBJEXT-o}
5656     am__minus_obj="-o $am__obj"
5657     case $depmode in
5658     gcc)
5659       # This depmode causes a compiler race in universal mode.
5660       test "$am__universal" = false || continue
5661       ;;
5662     nosideeffect)
5663       # After this tag, mechanisms are not by side-effect, so they'll
5664       # only be used when explicitly requested.
5665       if test "x$enable_dependency_tracking" = xyes; then
5666         continue
5667       else
5668         break
5669       fi
5670       ;;
5671     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5672       # This compiler won't grok '-c -o', but also, the minuso test has
5673       # not run yet.  These depmodes are late enough in the game, and
5674       # so weak that their functioning should not be impacted.
5675       am__obj=conftest.${OBJEXT-o}
5676       am__minus_obj=
5677       ;;
5678     none) break ;;
5679     esac
5680     if depmode=$depmode \
5681        source=sub/conftest.c object=$am__obj \
5682        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5684          >/dev/null 2>conftest.err &&
5685        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5688        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689       # icc doesn't choke on unknown options, it will just issue warnings
5690       # or remarks (even with -Werror).  So we grep stderr for any message
5691       # that says an option was ignored or not supported.
5692       # When given -MP, icc 7.0 and 7.1 complain thusly:
5693       #   icc: Command line warning: ignoring option '-M'; no argument required
5694       # The diagnosis changed in icc 8.0:
5695       #   icc: Command line remark: option '-MP' not supported
5696       if (grep 'ignoring option' conftest.err ||
5697           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698         am_cv_CC_dependencies_compiler_type=$depmode
5699         break
5700       fi
5701     fi
5702   done
5703
5704   cd ..
5705   rm -rf conftest.dir
5706 else
5707   am_cv_CC_dependencies_compiler_type=none
5708 fi
5709
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5712 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5714
5715  if
5716   test "x$enable_dependency_tracking" != xno \
5717   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5718   am__fastdepCC_TRUE=
5719   am__fastdepCC_FALSE='#'
5720 else
5721   am__fastdepCC_TRUE='#'
5722   am__fastdepCC_FALSE=
5723 fi
5724
5725
5726
5727 # POSIX will say in a future version that running "rm -f" with no argument
5728 # is OK; and we want to be able to make that assumption in our Makefile
5729 # recipes.  So use an aggressive probe to check that the usage we want is
5730 # actually supported "in the wild" to an acceptable degree.
5731 # See automake bug#10828.
5732 # To make any issue more visible, cause the running configure to be aborted
5733 # by default if the 'rm' program in use doesn't match our expectations; the
5734 # user can still override this though.
5735 if rm -f && rm -fr && rm -rf; then : OK; else
5736   cat >&2 <<'END'
5737 Oops!
5738
5739 Your 'rm' program seems unable to run without file operands specified
5740 on the command line, even when the '-f' option is present.  This is contrary
5741 to the behaviour of most rm programs out there, and not conforming with
5742 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5743
5744 Please tell bug-automake@gnu.org about your system, including the value
5745 of your $PATH and any error possibly output before this message.  This
5746 can help us improve future automake versions.
5747
5748 END
5749   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5750     echo 'Configuration will proceed anyway, since you have set the' >&2
5751     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5752     echo >&2
5753   else
5754     cat >&2 <<'END'
5755 Aborting the configuration process, to ensure you take notice of the issue.
5756
5757 You can download and install GNU coreutils to get an 'rm' implementation
5758 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5759
5760 If you want to complete the configuration process using your problematic
5761 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5762 to "yes", and re-run configure.
5763
5764 END
5765     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5766   fi
5767 fi
5768
5769 ## ------------------------------------- ##
5770 ##  End of automake initialization code  ##
5771 ## ------------------------------------- ##
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5778 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5779 if ${ac_cv_path_GREP+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   if test -z "$GREP"; then
5783   ac_path_GREP_found=false
5784   # Loop through the user's path and test for each of PROGNAME-LIST
5785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790     for ac_prog in grep ggrep; do
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5793       as_fn_executable_p "$ac_path_GREP" || continue
5794 # Check for GNU ac_path_GREP and select it if it is found.
5795   # Check for GNU $ac_path_GREP
5796 case `"$ac_path_GREP" --version 2>&1` in
5797 *GNU*)
5798   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5799 *)
5800   ac_count=0
5801   $as_echo_n 0123456789 >"conftest.in"
5802   while :
5803   do
5804     cat "conftest.in" "conftest.in" >"conftest.tmp"
5805     mv "conftest.tmp" "conftest.in"
5806     cp "conftest.in" "conftest.nl"
5807     $as_echo 'GREP' >> "conftest.nl"
5808     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810     as_fn_arith $ac_count + 1 && ac_count=$as_val
5811     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5812       # Best one so far, save it but keep looking for a better one
5813       ac_cv_path_GREP="$ac_path_GREP"
5814       ac_path_GREP_max=$ac_count
5815     fi
5816     # 10*(2^10) chars as input seems more than enough
5817     test $ac_count -gt 10 && break
5818   done
5819   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 esac
5821
5822       $ac_path_GREP_found && break 3
5823     done
5824   done
5825   done
5826 IFS=$as_save_IFS
5827   if test -z "$ac_cv_path_GREP"; then
5828     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5829   fi
5830 else
5831   ac_cv_path_GREP=$GREP
5832 fi
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5836 $as_echo "$ac_cv_path_GREP" >&6; }
5837  GREP="$ac_cv_path_GREP"
5838
5839
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5841 $as_echo_n "checking for egrep... " >&6; }
5842 if ${ac_cv_path_EGREP+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5846    then ac_cv_path_EGREP="$GREP -E"
5847    else
5848      if test -z "$EGREP"; then
5849   ac_path_EGREP_found=false
5850   # Loop through the user's path and test for each of PROGNAME-LIST
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_prog in egrep; do
5857     for ac_exec_ext in '' $ac_executable_extensions; do
5858       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5859       as_fn_executable_p "$ac_path_EGREP" || continue
5860 # Check for GNU ac_path_EGREP and select it if it is found.
5861   # Check for GNU $ac_path_EGREP
5862 case `"$ac_path_EGREP" --version 2>&1` in
5863 *GNU*)
5864   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5865 *)
5866   ac_count=0
5867   $as_echo_n 0123456789 >"conftest.in"
5868   while :
5869   do
5870     cat "conftest.in" "conftest.in" >"conftest.tmp"
5871     mv "conftest.tmp" "conftest.in"
5872     cp "conftest.in" "conftest.nl"
5873     $as_echo 'EGREP' >> "conftest.nl"
5874     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5875     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5876     as_fn_arith $ac_count + 1 && ac_count=$as_val
5877     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5878       # Best one so far, save it but keep looking for a better one
5879       ac_cv_path_EGREP="$ac_path_EGREP"
5880       ac_path_EGREP_max=$ac_count
5881     fi
5882     # 10*(2^10) chars as input seems more than enough
5883     test $ac_count -gt 10 && break
5884   done
5885   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5886 esac
5887
5888       $ac_path_EGREP_found && break 3
5889     done
5890   done
5891   done
5892 IFS=$as_save_IFS
5893   if test -z "$ac_cv_path_EGREP"; then
5894     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5895   fi
5896 else
5897   ac_cv_path_EGREP=$EGREP
5898 fi
5899
5900    fi
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5903 $as_echo "$ac_cv_path_EGREP" >&6; }
5904  EGREP="$ac_cv_path_EGREP"
5905
5906
5907
5908
5909       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5910 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h.  */
5913
5914 #ifdef _AIX
5915    yes_this_is_aix
5916 #endif
5917
5918 _ACEOF
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5921
5922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923 $as_echo "yes" >&6; }
5924     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5925
5926
5927 else
5928
5929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931
5932 fi
5933 rm -f conftest*
5934
5935
5936
5937
5938     #
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5940 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h.  */
5943
5944
5945
5946 int main (void)
5947 {
5948
5949 #ifdef _THREAD_SAFE
5950       int dummy=1;
5951 #else
5952       force compilation error
5953 #endif
5954
5955  ;
5956  return 0;
5957 }
5958
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961
5962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963 $as_echo "yes" >&6; }
5964     tmp_thread_safe_initially_defined="yes"
5965
5966 else
5967
5968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970     tmp_thread_safe_initially_defined="no"
5971
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974   #
5975   if test "$tmp_thread_safe_initially_defined" = "no"; then
5976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5977 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5978
5979   case $host_os in
5980     aix[123].* | aix4.[012].*)
5981             tmp_need_thread_safe="no"
5982       ;;
5983     aix*)
5984             tmp_need_thread_safe="yes"
5985       ;;
5986     *)
5987       tmp_need_thread_safe="no"
5988       ;;
5989   esac
5990
5991     if test "$tmp_need_thread_safe" = "yes"; then
5992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5993 $as_echo "yes" >&6; }
5994     else
5995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997     fi
5998   fi
5999   #
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6001 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6002   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6003     test "$tmp_need_thread_safe" = "yes"; then
6004
6005
6006 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6007
6008 cat >>confdefs.h <<_EOF
6009 #ifndef _THREAD_SAFE
6010 #  define _THREAD_SAFE
6011 #endif
6012 _EOF
6013
6014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015 $as_echo "yes" >&6; }
6016   else
6017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019   fi
6020   #
6021
6022
6023     #
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6025 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028
6029
6030
6031 int main (void)
6032 {
6033
6034 #ifdef _REENTRANT
6035       int dummy=1;
6036 #else
6037       force compilation error
6038 #endif
6039
6040  ;
6041  return 0;
6042 }
6043
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046
6047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6048 $as_echo "yes" >&6; }
6049     tmp_reentrant_initially_defined="yes"
6050
6051 else
6052
6053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055     tmp_reentrant_initially_defined="no"
6056
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059   #
6060   if test "$tmp_reentrant_initially_defined" = "no"; then
6061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6062 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6063
6064   case $host_os in
6065     solaris*)
6066       tmp_need_reentrant="yes"
6067       ;;
6068     *)
6069       tmp_need_reentrant="no"
6070       ;;
6071   esac
6072
6073     if test "$tmp_need_reentrant" = "no"; then
6074
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h.  */
6077
6078
6079 #include <errno.h>
6080
6081 int main (void)
6082 {
6083
6084       if(0 != errno)
6085         return 1;
6086
6087  ;
6088  return 0;
6089 }
6090
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093
6094     tmp_errno="yes"
6095
6096 else
6097
6098     tmp_errno="no"
6099
6100 fi
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102   if test "$tmp_errno" = "yes"; then
6103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105
6106
6107 #include <errno.h>
6108
6109 int main (void)
6110 {
6111
6112 #ifdef errno
6113         int dummy=1;
6114 #else
6115         force compilation error
6116 #endif
6117
6118  ;
6119  return 0;
6120 }
6121
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124
6125       tmp_errno="errno_macro_defined"
6126
6127 else
6128
6129       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h.  */
6131
6132
6133 #define _REENTRANT
6134 #include <errno.h>
6135
6136 int main (void)
6137 {
6138
6139 #ifdef errno
6140           int dummy=1;
6141 #else
6142           force compilation error
6143 #endif
6144
6145  ;
6146  return 0;
6147 }
6148
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151
6152         tmp_errno="errno_macro_needs_reentrant"
6153         tmp_need_reentrant="yes"
6154
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160   fi
6161
6162     fi
6163     if test "$tmp_need_reentrant" = "no"; then
6164
6165   if test "$tmp_need_reentrant" = "no"; then
6166
6167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h.  */
6169
6170
6171 #define gmtime_r innocuous_gmtime_r
6172 #ifdef __STDC__
6173 # include <limits.h>
6174 #else
6175 # include <assert.h>
6176 #endif
6177 #undef gmtime_r
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 char gmtime_r ();
6182 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6183 choke me
6184 #endif
6185
6186 int main (void)
6187 {
6188 return gmtime_r ();
6189  ;
6190  return 0;
6191 }
6192
6193 _ACEOF
6194 if ac_fn_c_try_link "$LINENO"; then :
6195
6196     tmp_gmtime_r="yes"
6197
6198 else
6199
6200     tmp_gmtime_r="no"
6201
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext \
6204     conftest$ac_exeext conftest.$ac_ext
6205   if test "$tmp_gmtime_r" = "yes"; then
6206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h.  */
6208
6209 #include <sys/types.h>
6210 #include <time.h>
6211
6212 _ACEOF
6213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6215
6216       tmp_gmtime_r="proto_declared"
6217
6218 else
6219
6220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h.  */
6222
6223 #define _REENTRANT
6224 #include <sys/types.h>
6225 #include <time.h>
6226
6227 _ACEOF
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6230
6231         tmp_gmtime_r="proto_needs_reentrant"
6232         tmp_need_reentrant="yes"
6233
6234 fi
6235 rm -f conftest*
6236
6237
6238 fi
6239 rm -f conftest*
6240
6241   fi
6242
6243   fi
6244   if test "$tmp_need_reentrant" = "no"; then
6245
6246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h.  */
6248
6249
6250 #define localtime_r innocuous_localtime_r
6251 #ifdef __STDC__
6252 # include <limits.h>
6253 #else
6254 # include <assert.h>
6255 #endif
6256 #undef localtime_r
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 char localtime_r ();
6261 #if defined __stub_localtime_r || defined __stub___localtime_r
6262 choke me
6263 #endif
6264
6265 int main (void)
6266 {
6267 return localtime_r ();
6268  ;
6269  return 0;
6270 }
6271
6272 _ACEOF
6273 if ac_fn_c_try_link "$LINENO"; then :
6274
6275     tmp_localtime_r="yes"
6276
6277 else
6278
6279     tmp_localtime_r="no"
6280
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext \
6283     conftest$ac_exeext conftest.$ac_ext
6284   if test "$tmp_localtime_r" = "yes"; then
6285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h.  */
6287
6288 #include <sys/types.h>
6289 #include <time.h>
6290
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293   $EGREP "localtime_r" >/dev/null 2>&1; then :
6294
6295       tmp_localtime_r="proto_declared"
6296
6297 else
6298
6299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h.  */
6301
6302 #define _REENTRANT
6303 #include <sys/types.h>
6304 #include <time.h>
6305
6306 _ACEOF
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308   $EGREP "localtime_r" >/dev/null 2>&1; then :
6309
6310         tmp_localtime_r="proto_needs_reentrant"
6311         tmp_need_reentrant="yes"
6312
6313 fi
6314 rm -f conftest*
6315
6316
6317 fi
6318 rm -f conftest*
6319
6320   fi
6321
6322   fi
6323   if test "$tmp_need_reentrant" = "no"; then
6324
6325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h.  */
6327
6328
6329 #define strerror_r innocuous_strerror_r
6330 #ifdef __STDC__
6331 # include <limits.h>
6332 #else
6333 # include <assert.h>
6334 #endif
6335 #undef strerror_r
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 char strerror_r ();
6340 #if defined __stub_strerror_r || defined __stub___strerror_r
6341 choke me
6342 #endif
6343
6344 int main (void)
6345 {
6346 return strerror_r ();
6347  ;
6348  return 0;
6349 }
6350
6351 _ACEOF
6352 if ac_fn_c_try_link "$LINENO"; then :
6353
6354     tmp_strerror_r="yes"
6355
6356 else
6357
6358     tmp_strerror_r="no"
6359
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext \
6362     conftest$ac_exeext conftest.$ac_ext
6363   if test "$tmp_strerror_r" = "yes"; then
6364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367 #include <sys/types.h>
6368 #include <string.h>
6369
6370 _ACEOF
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372   $EGREP "strerror_r" >/dev/null 2>&1; then :
6373
6374       tmp_strerror_r="proto_declared"
6375
6376 else
6377
6378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380
6381 #define _REENTRANT
6382 #include <sys/types.h>
6383 #include <string.h>
6384
6385 _ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387   $EGREP "strerror_r" >/dev/null 2>&1; then :
6388
6389         tmp_strerror_r="proto_needs_reentrant"
6390         tmp_need_reentrant="yes"
6391
6392 fi
6393 rm -f conftest*
6394
6395
6396 fi
6397 rm -f conftest*
6398
6399   fi
6400
6401   fi
6402   if test "$tmp_need_reentrant" = "no"; then
6403
6404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h.  */
6406
6407
6408 #define strtok_r innocuous_strtok_r
6409 #ifdef __STDC__
6410 # include <limits.h>
6411 #else
6412 # include <assert.h>
6413 #endif
6414 #undef strtok_r
6415 #ifdef __cplusplus
6416 extern "C"
6417 #endif
6418 char strtok_r ();
6419 #if defined __stub_strtok_r || defined __stub___strtok_r
6420 choke me
6421 #endif
6422
6423 int main (void)
6424 {
6425 return strtok_r ();
6426  ;
6427  return 0;
6428 }
6429
6430 _ACEOF
6431 if ac_fn_c_try_link "$LINENO"; then :
6432
6433     tmp_strtok_r="yes"
6434
6435 else
6436
6437     tmp_strtok_r="no"
6438
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext \
6441     conftest$ac_exeext conftest.$ac_ext
6442   if test "$tmp_strtok_r" = "yes"; then
6443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h.  */
6445
6446 #include <sys/types.h>
6447 #include <string.h>
6448
6449 _ACEOF
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451   $EGREP "strtok_r" >/dev/null 2>&1; then :
6452
6453       tmp_strtok_r="proto_declared"
6454
6455 else
6456
6457       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459
6460 #define _REENTRANT
6461 #include <sys/types.h>
6462 #include <string.h>
6463
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466   $EGREP "strtok_r" >/dev/null 2>&1; then :
6467
6468         tmp_strtok_r="proto_needs_reentrant"
6469         tmp_need_reentrant="yes"
6470
6471 fi
6472 rm -f conftest*
6473
6474
6475 fi
6476 rm -f conftest*
6477
6478   fi
6479
6480   fi
6481   if test "$tmp_need_reentrant" = "no"; then
6482
6483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486
6487 #define inet_ntoa_r innocuous_inet_ntoa_r
6488 #ifdef __STDC__
6489 # include <limits.h>
6490 #else
6491 # include <assert.h>
6492 #endif
6493 #undef inet_ntoa_r
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 char inet_ntoa_r ();
6498 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6499 choke me
6500 #endif
6501
6502 int main (void)
6503 {
6504 return inet_ntoa_r ();
6505  ;
6506  return 0;
6507 }
6508
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511
6512     tmp_inet_ntoa_r="yes"
6513
6514 else
6515
6516     tmp_inet_ntoa_r="no"
6517
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext \
6520     conftest$ac_exeext conftest.$ac_ext
6521   if test "$tmp_inet_ntoa_r" = "yes"; then
6522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h.  */
6524
6525 #include <sys/types.h>
6526 #include <sys/socket.h>
6527 #include <netinet/in.h>
6528 #include <arpa/inet.h>
6529
6530 _ACEOF
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6533
6534       tmp_inet_ntoa_r="proto_declared"
6535
6536 else
6537
6538       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h.  */
6540
6541 #define _REENTRANT
6542 #include <sys/types.h>
6543 #include <sys/socket.h>
6544 #include <netinet/in.h>
6545 #include <arpa/inet.h>
6546
6547 _ACEOF
6548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6549   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6550
6551         tmp_inet_ntoa_r="proto_needs_reentrant"
6552         tmp_need_reentrant="yes"
6553
6554 fi
6555 rm -f conftest*
6556
6557
6558 fi
6559 rm -f conftest*
6560
6561   fi
6562
6563   fi
6564   if test "$tmp_need_reentrant" = "no"; then
6565
6566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569
6570 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6571 #ifdef __STDC__
6572 # include <limits.h>
6573 #else
6574 # include <assert.h>
6575 #endif
6576 #undef gethostbyaddr_r
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 char gethostbyaddr_r ();
6581 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6582 choke me
6583 #endif
6584
6585 int main (void)
6586 {
6587 return gethostbyaddr_r ();
6588  ;
6589  return 0;
6590 }
6591
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594
6595     tmp_gethostbyaddr_r="yes"
6596
6597 else
6598
6599     tmp_gethostbyaddr_r="no"
6600
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext \
6603     conftest$ac_exeext conftest.$ac_ext
6604   if test "$tmp_gethostbyaddr_r" = "yes"; then
6605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h.  */
6607
6608 #include <sys/types.h>
6609 #include <netdb.h>
6610
6611 _ACEOF
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6614
6615       tmp_gethostbyaddr_r="proto_declared"
6616
6617 else
6618
6619       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h.  */
6621
6622 #define _REENTRANT
6623 #include <sys/types.h>
6624 #include <netdb.h>
6625
6626 _ACEOF
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6629
6630         tmp_gethostbyaddr_r="proto_needs_reentrant"
6631         tmp_need_reentrant="yes"
6632
6633 fi
6634 rm -f conftest*
6635
6636
6637 fi
6638 rm -f conftest*
6639
6640   fi
6641
6642   fi
6643   if test "$tmp_need_reentrant" = "no"; then
6644
6645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647
6648
6649 #define gethostbyname_r innocuous_gethostbyname_r
6650 #ifdef __STDC__
6651 # include <limits.h>
6652 #else
6653 # include <assert.h>
6654 #endif
6655 #undef gethostbyname_r
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 char gethostbyname_r ();
6660 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6661 choke me
6662 #endif
6663
6664 int main (void)
6665 {
6666 return gethostbyname_r ();
6667  ;
6668  return 0;
6669 }
6670
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673
6674     tmp_gethostbyname_r="yes"
6675
6676 else
6677
6678     tmp_gethostbyname_r="no"
6679
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext \
6682     conftest$ac_exeext conftest.$ac_ext
6683   if test "$tmp_gethostbyname_r" = "yes"; then
6684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686
6687 #include <sys/types.h>
6688 #include <netdb.h>
6689
6690 _ACEOF
6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6693
6694       tmp_gethostbyname_r="proto_declared"
6695
6696 else
6697
6698       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h.  */
6700
6701 #define _REENTRANT
6702 #include <sys/types.h>
6703 #include <netdb.h>
6704
6705 _ACEOF
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6708
6709         tmp_gethostbyname_r="proto_needs_reentrant"
6710         tmp_need_reentrant="yes"
6711
6712 fi
6713 rm -f conftest*
6714
6715
6716 fi
6717 rm -f conftest*
6718
6719   fi
6720
6721   fi
6722   if test "$tmp_need_reentrant" = "no"; then
6723
6724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726
6727
6728 #define getprotobyname_r innocuous_getprotobyname_r
6729 #ifdef __STDC__
6730 # include <limits.h>
6731 #else
6732 # include <assert.h>
6733 #endif
6734 #undef getprotobyname_r
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 char getprotobyname_r ();
6739 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6740 choke me
6741 #endif
6742
6743 int main (void)
6744 {
6745 return getprotobyname_r ();
6746  ;
6747  return 0;
6748 }
6749
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752
6753     tmp_getprotobyname_r="yes"
6754
6755 else
6756
6757     tmp_getprotobyname_r="no"
6758
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761     conftest$ac_exeext conftest.$ac_ext
6762   if test "$tmp_getprotobyname_r" = "yes"; then
6763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765
6766 #include <sys/types.h>
6767 #include <netdb.h>
6768
6769 _ACEOF
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6772
6773       tmp_getprotobyname_r="proto_declared"
6774
6775 else
6776
6777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779
6780 #define _REENTRANT
6781 #include <sys/types.h>
6782 #include <netdb.h>
6783
6784 _ACEOF
6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6786   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6787
6788         tmp_getprotobyname_r="proto_needs_reentrant"
6789         tmp_need_reentrant="yes"
6790
6791 fi
6792 rm -f conftest*
6793
6794
6795 fi
6796 rm -f conftest*
6797
6798   fi
6799
6800   fi
6801   if test "$tmp_need_reentrant" = "no"; then
6802
6803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h.  */
6805
6806
6807 #define getservbyport_r innocuous_getservbyport_r
6808 #ifdef __STDC__
6809 # include <limits.h>
6810 #else
6811 # include <assert.h>
6812 #endif
6813 #undef getservbyport_r
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 char getservbyport_r ();
6818 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6819 choke me
6820 #endif
6821
6822 int main (void)
6823 {
6824 return getservbyport_r ();
6825  ;
6826  return 0;
6827 }
6828
6829 _ACEOF
6830 if ac_fn_c_try_link "$LINENO"; then :
6831
6832     tmp_getservbyport_r="yes"
6833
6834 else
6835
6836     tmp_getservbyport_r="no"
6837
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840     conftest$ac_exeext conftest.$ac_ext
6841   if test "$tmp_getservbyport_r" = "yes"; then
6842     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844
6845 #include <sys/types.h>
6846 #include <netdb.h>
6847
6848 _ACEOF
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6851
6852       tmp_getservbyport_r="proto_declared"
6853
6854 else
6855
6856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858
6859 #define _REENTRANT
6860 #include <sys/types.h>
6861 #include <netdb.h>
6862
6863 _ACEOF
6864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6866
6867         tmp_getservbyport_r="proto_needs_reentrant"
6868         tmp_need_reentrant="yes"
6869
6870 fi
6871 rm -f conftest*
6872
6873
6874 fi
6875 rm -f conftest*
6876
6877   fi
6878
6879   fi
6880
6881     fi
6882     if test "$tmp_need_reentrant" = "yes"; then
6883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885     else
6886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888     fi
6889   fi
6890   #
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6892 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6893   if test "$tmp_reentrant_initially_defined" = "yes" ||
6894     test "$tmp_need_reentrant" = "yes"; then
6895
6896
6897 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6898
6899 cat >>confdefs.h <<_EOF
6900 #ifndef _REENTRANT
6901 #  define _REENTRANT
6902 #endif
6903 _EOF
6904
6905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6907   else
6908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910   fi
6911   #
6912
6913
6914 # Check whether --enable-largefile was given.
6915 if test "${enable_largefile+set}" = set; then :
6916   enableval=$enable_largefile;
6917 fi
6918
6919 if test "$enable_largefile" != no; then
6920
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6922 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6923 if ${ac_cv_sys_largefile_CC+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   ac_cv_sys_largefile_CC=no
6927      if test "$GCC" != yes; then
6928        ac_save_CC=$CC
6929        while :; do
6930          # IRIX 6.2 and later do not support large files by default,
6931          # so use the C compiler's -n32 option if that helps.
6932          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934 #include <sys/types.h>
6935  /* Check that off_t can represent 2**63 - 1 correctly.
6936     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6937     since some C++ compilers masquerading as C compilers
6938     incorrectly reject 9223372036854775807.  */
6939 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6940   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6941                        && LARGE_OFF_T % 2147483647 == 1)
6942                       ? 1 : -1];
6943 int main (void)
6944 {
6945
6946  ;
6947  return 0;
6948 }
6949 _ACEOF
6950          if ac_fn_c_try_compile "$LINENO"; then :
6951   break
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext
6954          CC="$CC -n32"
6955          if ac_fn_c_try_compile "$LINENO"; then :
6956   ac_cv_sys_largefile_CC=' -n32'; break
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext
6959          break
6960        done
6961        CC=$ac_save_CC
6962        rm -f conftest.$ac_ext
6963     fi
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6966 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6967   if test "$ac_cv_sys_largefile_CC" != no; then
6968     CC=$CC$ac_cv_sys_largefile_CC
6969   fi
6970
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6972 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6973 if ${ac_cv_sys_file_offset_bits+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   while :; do
6977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h.  */
6979 #include <sys/types.h>
6980  /* Check that off_t can represent 2**63 - 1 correctly.
6981     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6982     since some C++ compilers masquerading as C compilers
6983     incorrectly reject 9223372036854775807.  */
6984 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6985   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6986                        && LARGE_OFF_T % 2147483647 == 1)
6987                       ? 1 : -1];
6988 int main (void)
6989 {
6990
6991  ;
6992  return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996   ac_cv_sys_file_offset_bits=no; break
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h.  */
7001 #define _FILE_OFFSET_BITS 64
7002 #include <sys/types.h>
7003  /* Check that off_t can represent 2**63 - 1 correctly.
7004     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7005     since some C++ compilers masquerading as C compilers
7006     incorrectly reject 9223372036854775807.  */
7007 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7008   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7009                        && LARGE_OFF_T % 2147483647 == 1)
7010                       ? 1 : -1];
7011 int main (void)
7012 {
7013
7014  ;
7015  return 0;
7016 }
7017 _ACEOF
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019   ac_cv_sys_file_offset_bits=64; break
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022   ac_cv_sys_file_offset_bits=unknown
7023   break
7024 done
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7027 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7028 case $ac_cv_sys_file_offset_bits in #(
7029   no | unknown) ;;
7030   *)
7031 cat >>confdefs.h <<_ACEOF
7032 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7033 _ACEOF
7034 ;;
7035 esac
7036 rm -rf conftest*
7037   if test $ac_cv_sys_file_offset_bits = unknown; then
7038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7039 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7040 if ${ac_cv_sys_large_files+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   while :; do
7044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h.  */
7046 #include <sys/types.h>
7047  /* Check that off_t can represent 2**63 - 1 correctly.
7048     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7049     since some C++ compilers masquerading as C compilers
7050     incorrectly reject 9223372036854775807.  */
7051 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7052   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7053                        && LARGE_OFF_T % 2147483647 == 1)
7054                       ? 1 : -1];
7055 int main (void)
7056 {
7057
7058  ;
7059  return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063   ac_cv_sys_large_files=no; break
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 #define _LARGE_FILES 1
7069 #include <sys/types.h>
7070  /* Check that off_t can represent 2**63 - 1 correctly.
7071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072     since some C++ compilers masquerading as C compilers
7073     incorrectly reject 9223372036854775807.  */
7074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076                        && LARGE_OFF_T % 2147483647 == 1)
7077                       ? 1 : -1];
7078 int main (void)
7079 {
7080
7081  ;
7082  return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086   ac_cv_sys_large_files=1; break
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089   ac_cv_sys_large_files=unknown
7090   break
7091 done
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7094 $as_echo "$ac_cv_sys_large_files" >&6; }
7095 case $ac_cv_sys_large_files in #(
7096   no | unknown) ;;
7097   *)
7098 cat >>confdefs.h <<_ACEOF
7099 #define _LARGE_FILES $ac_cv_sys_large_files
7100 _ACEOF
7101 ;;
7102 esac
7103 rm -rf conftest*
7104   fi
7105
7106
7107 fi
7108
7109
7110 case $host_os in
7111   solaris*)
7112
7113 $as_echo "#define ETC_INET 1" >>confdefs.h
7114
7115     ;;
7116 esac
7117
7118 case `pwd` in
7119   *\ * | *\     *)
7120     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7121 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7122 esac
7123
7124
7125
7126 macro_version='2.4.6'
7127 macro_revision='2.4.6'
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 ltmain=$ac_aux_dir/ltmain.sh
7142
7143 # Backslashify metacharacters that are still active within
7144 # double-quoted strings.
7145 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7146
7147 # Same as above, but do not quote variable references.
7148 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7149
7150 # Sed substitution to delay expansion of an escaped shell variable in a
7151 # double_quote_subst'ed string.
7152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7153
7154 # Sed substitution to delay expansion of an escaped single quote.
7155 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7156
7157 # Sed substitution to avoid accidental globbing in evaled expressions
7158 no_glob_subst='s/\*/\\\*/g'
7159
7160 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7161 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7162 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7165 $as_echo_n "checking how to print strings... " >&6; }
7166 # Test print first, because it will be a builtin if present.
7167 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7168    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7169   ECHO='print -r --'
7170 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7171   ECHO='printf %s\n'
7172 else
7173   # Use this function as a fallback that always works.
7174   func_fallback_echo ()
7175   {
7176     eval 'cat <<_LTECHO_EOF
7177 $1
7178 _LTECHO_EOF'
7179   }
7180   ECHO='func_fallback_echo'
7181 fi
7182
7183 # func_echo_all arg...
7184 # Invoke $ECHO with all args, space-separated.
7185 func_echo_all ()
7186 {
7187     $ECHO ""
7188 }
7189
7190 case $ECHO in
7191   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7192 $as_echo "printf" >&6; } ;;
7193   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7194 $as_echo "print -r" >&6; } ;;
7195   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7196 $as_echo "cat" >&6; } ;;
7197 esac
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7213 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7214 if ${ac_cv_path_SED+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7218      for ac_i in 1 2 3 4 5 6 7; do
7219        ac_script="$ac_script$as_nl$ac_script"
7220      done
7221      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7222      { ac_script=; unset ac_script;}
7223      if test -z "$SED"; then
7224   ac_path_SED_found=false
7225   # Loop through the user's path and test for each of PROGNAME-LIST
7226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231     for ac_prog in sed gsed; do
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7234       as_fn_executable_p "$ac_path_SED" || continue
7235 # Check for GNU ac_path_SED and select it if it is found.
7236   # Check for GNU $ac_path_SED
7237 case `"$ac_path_SED" --version 2>&1` in
7238 *GNU*)
7239   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7240 *)
7241   ac_count=0
7242   $as_echo_n 0123456789 >"conftest.in"
7243   while :
7244   do
7245     cat "conftest.in" "conftest.in" >"conftest.tmp"
7246     mv "conftest.tmp" "conftest.in"
7247     cp "conftest.in" "conftest.nl"
7248     $as_echo '' >> "conftest.nl"
7249     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7251     as_fn_arith $ac_count + 1 && ac_count=$as_val
7252     if test $ac_count -gt ${ac_path_SED_max-0}; then
7253       # Best one so far, save it but keep looking for a better one
7254       ac_cv_path_SED="$ac_path_SED"
7255       ac_path_SED_max=$ac_count
7256     fi
7257     # 10*(2^10) chars as input seems more than enough
7258     test $ac_count -gt 10 && break
7259   done
7260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7261 esac
7262
7263       $ac_path_SED_found && break 3
7264     done
7265   done
7266   done
7267 IFS=$as_save_IFS
7268   if test -z "$ac_cv_path_SED"; then
7269     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7270   fi
7271 else
7272   ac_cv_path_SED=$SED
7273 fi
7274
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7277 $as_echo "$ac_cv_path_SED" >&6; }
7278  SED="$ac_cv_path_SED"
7279   rm -f conftest.sed
7280
7281 test -z "$SED" && SED=sed
7282 Xsed="$SED -e 1s/^X//"
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7295 $as_echo_n "checking for fgrep... " >&6; }
7296 if ${ac_cv_path_FGREP+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7300    then ac_cv_path_FGREP="$GREP -F"
7301    else
7302      if test -z "$FGREP"; then
7303   ac_path_FGREP_found=false
7304   # Loop through the user's path and test for each of PROGNAME-LIST
7305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_prog in fgrep; do
7311     for ac_exec_ext in '' $ac_executable_extensions; do
7312       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7313       as_fn_executable_p "$ac_path_FGREP" || continue
7314 # Check for GNU ac_path_FGREP and select it if it is found.
7315   # Check for GNU $ac_path_FGREP
7316 case `"$ac_path_FGREP" --version 2>&1` in
7317 *GNU*)
7318   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7319 *)
7320   ac_count=0
7321   $as_echo_n 0123456789 >"conftest.in"
7322   while :
7323   do
7324     cat "conftest.in" "conftest.in" >"conftest.tmp"
7325     mv "conftest.tmp" "conftest.in"
7326     cp "conftest.in" "conftest.nl"
7327     $as_echo 'FGREP' >> "conftest.nl"
7328     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7329     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7330     as_fn_arith $ac_count + 1 && ac_count=$as_val
7331     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7332       # Best one so far, save it but keep looking for a better one
7333       ac_cv_path_FGREP="$ac_path_FGREP"
7334       ac_path_FGREP_max=$ac_count
7335     fi
7336     # 10*(2^10) chars as input seems more than enough
7337     test $ac_count -gt 10 && break
7338   done
7339   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7340 esac
7341
7342       $ac_path_FGREP_found && break 3
7343     done
7344   done
7345   done
7346 IFS=$as_save_IFS
7347   if test -z "$ac_cv_path_FGREP"; then
7348     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7349   fi
7350 else
7351   ac_cv_path_FGREP=$FGREP
7352 fi
7353
7354    fi
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7357 $as_echo "$ac_cv_path_FGREP" >&6; }
7358  FGREP="$ac_cv_path_FGREP"
7359
7360
7361 test -z "$GREP" && GREP=grep
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 # Check whether --with-gnu-ld was given.
7382 if test "${with_gnu_ld+set}" = set; then :
7383   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7384 else
7385   with_gnu_ld=no
7386 fi
7387
7388 ac_prog=ld
7389 if test yes = "$GCC"; then
7390   # Check if gcc -print-prog-name=ld gives a path.
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7392 $as_echo_n "checking for ld used by $CC... " >&6; }
7393   case $host in
7394   *-*-mingw*)
7395     # gcc leaves a trailing carriage return, which upsets mingw
7396     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7397   *)
7398     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7399   esac
7400   case $ac_prog in
7401     # Accept absolute paths.
7402     [\\/]* | ?:[\\/]*)
7403       re_direlt='/[^/][^/]*/\.\./'
7404       # Canonicalize the pathname of ld
7405       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7406       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7407         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7408       done
7409       test -z "$LD" && LD=$ac_prog
7410       ;;
7411   "")
7412     # If it fails, then pretend we aren't using GCC.
7413     ac_prog=ld
7414     ;;
7415   *)
7416     # If it is relative, then search for the first ld in PATH.
7417     with_gnu_ld=unknown
7418     ;;
7419   esac
7420 elif test yes = "$with_gnu_ld"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7422 $as_echo_n "checking for GNU ld... " >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7425 $as_echo_n "checking for non-GNU ld... " >&6; }
7426 fi
7427 if ${lt_cv_path_LD+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   if test -z "$LD"; then
7431   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7432   for ac_dir in $PATH; do
7433     IFS=$lt_save_ifs
7434     test -z "$ac_dir" && ac_dir=.
7435     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7436       lt_cv_path_LD=$ac_dir/$ac_prog
7437       # Check to see if the program is GNU ld.  I'd rather use --version,
7438       # but apparently some variants of GNU ld only accept -v.
7439       # Break only if it was the GNU/non-GNU ld that we prefer.
7440       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7441       *GNU* | *'with BFD'*)
7442         test no != "$with_gnu_ld" && break
7443         ;;
7444       *)
7445         test yes != "$with_gnu_ld" && break
7446         ;;
7447       esac
7448     fi
7449   done
7450   IFS=$lt_save_ifs
7451 else
7452   lt_cv_path_LD=$LD # Let the user override the test with a path.
7453 fi
7454 fi
7455
7456 LD=$lt_cv_path_LD
7457 if test -n "$LD"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7459 $as_echo "$LD" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7467 if ${lt_cv_prog_gnu_ld+:} false; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7471 case `$LD -v 2>&1 </dev/null` in
7472 *GNU* | *'with BFD'*)
7473   lt_cv_prog_gnu_ld=yes
7474   ;;
7475 *)
7476   lt_cv_prog_gnu_ld=no
7477   ;;
7478 esac
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7482 with_gnu_ld=$lt_cv_prog_gnu_ld
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7493 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7494 if ${lt_cv_path_NM+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   if test -n "$NM"; then
7498   # Let the user override the test.
7499   lt_cv_path_NM=$NM
7500 else
7501   lt_nm_to_check=${ac_tool_prefix}nm
7502   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7503     lt_nm_to_check="$lt_nm_to_check nm"
7504   fi
7505   for lt_tmp_nm in $lt_nm_to_check; do
7506     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7507     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7508       IFS=$lt_save_ifs
7509       test -z "$ac_dir" && ac_dir=.
7510       tmp_nm=$ac_dir/$lt_tmp_nm
7511       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7512         # Check to see if the nm accepts a BSD-compat flag.
7513         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7514         #   nm: unknown option "B" ignored
7515         # Tru64's nm complains that /dev/null is an invalid object file
7516         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7517         case $build_os in
7518         mingw*) lt_bad_file=conftest.nm/nofile ;;
7519         *) lt_bad_file=/dev/null ;;
7520         esac
7521         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7522         *$lt_bad_file* | *'Invalid file or object type'*)
7523           lt_cv_path_NM="$tmp_nm -B"
7524           break 2
7525           ;;
7526         *)
7527           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7528           */dev/null*)
7529             lt_cv_path_NM="$tmp_nm -p"
7530             break 2
7531             ;;
7532           *)
7533             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7534             continue # so that we can try to find one that supports BSD flags
7535             ;;
7536           esac
7537           ;;
7538         esac
7539       fi
7540     done
7541     IFS=$lt_save_ifs
7542   done
7543   : ${lt_cv_path_NM=no}
7544 fi
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7547 $as_echo "$lt_cv_path_NM" >&6; }
7548 if test no != "$lt_cv_path_NM"; then
7549   NM=$lt_cv_path_NM
7550 else
7551   # Didn't find any BSD compatible name lister, look for dumpbin.
7552   if test -n "$DUMPBIN"; then :
7553     # Let the user override the test.
7554   else
7555     if test -n "$ac_tool_prefix"; then
7556   for ac_prog in dumpbin "link -dump"
7557   do
7558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_DUMPBIN+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   if test -n "$DUMPBIN"; then
7566   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571   IFS=$as_save_IFS
7572   test -z "$as_dir" && as_dir=.
7573     for ac_exec_ext in '' $ac_executable_extensions; do
7574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577     break 2
7578   fi
7579 done
7580   done
7581 IFS=$as_save_IFS
7582
7583 fi
7584 fi
7585 DUMPBIN=$ac_cv_prog_DUMPBIN
7586 if test -n "$DUMPBIN"; then
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7588 $as_echo "$DUMPBIN" >&6; }
7589 else
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595     test -n "$DUMPBIN" && break
7596   done
7597 fi
7598 if test -z "$DUMPBIN"; then
7599   ac_ct_DUMPBIN=$DUMPBIN
7600   for ac_prog in dumpbin "link -dump"
7601 do
7602   # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   if test -n "$ac_ct_DUMPBIN"; then
7610   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7630 if test -n "$ac_ct_DUMPBIN"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7632 $as_echo "$ac_ct_DUMPBIN" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639   test -n "$ac_ct_DUMPBIN" && break
7640 done
7641
7642   if test "x$ac_ct_DUMPBIN" = x; then
7643     DUMPBIN=":"
7644   else
7645     case $cross_compiling:$ac_tool_warned in
7646 yes:)
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7650 esac
7651     DUMPBIN=$ac_ct_DUMPBIN
7652   fi
7653 fi
7654
7655     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7656     *COFF*)
7657       DUMPBIN="$DUMPBIN -symbols -headers"
7658       ;;
7659     *)
7660       DUMPBIN=:
7661       ;;
7662     esac
7663   fi
7664
7665   if test : != "$DUMPBIN"; then
7666     NM=$DUMPBIN
7667   fi
7668 fi
7669 test -z "$NM" && NM=nm
7670
7671
7672
7673
7674
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7677 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7678 if ${lt_cv_nm_interface+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   lt_cv_nm_interface="BSD nm"
7682   echo "int some_variable = 0;" > conftest.$ac_ext
7683   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7684   (eval "$ac_compile" 2>conftest.err)
7685   cat conftest.err >&5
7686   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7687   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7688   cat conftest.err >&5
7689   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7690   cat conftest.out >&5
7691   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7692     lt_cv_nm_interface="MS dumpbin"
7693   fi
7694   rm -f conftest*
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7697 $as_echo "$lt_cv_nm_interface" >&6; }
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7700 $as_echo_n "checking whether ln -s works... " >&6; }
7701 LN_S=$as_ln_s
7702 if test "$LN_S" = "ln -s"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7707 $as_echo "no, using $LN_S" >&6; }
7708 fi
7709
7710 # find the maximum length of command line arguments
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7712 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7713 if ${lt_cv_sys_max_cmd_len+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716     i=0
7717   teststring=ABCD
7718
7719   case $build_os in
7720   msdosdjgpp*)
7721     # On DJGPP, this test can blow up pretty badly due to problems in libc
7722     # (any single argument exceeding 2000 bytes causes a buffer overrun
7723     # during glob expansion).  Even if it were fixed, the result of this
7724     # check would be larger than it should be.
7725     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7726     ;;
7727
7728   gnu*)
7729     # Under GNU Hurd, this test is not required because there is
7730     # no limit to the length of command line arguments.
7731     # Libtool will interpret -1 as no limit whatsoever
7732     lt_cv_sys_max_cmd_len=-1;
7733     ;;
7734
7735   cygwin* | mingw* | cegcc*)
7736     # On Win9x/ME, this test blows up -- it succeeds, but takes
7737     # about 5 minutes as the teststring grows exponentially.
7738     # Worse, since 9x/ME are not pre-emptively multitasking,
7739     # you end up with a "frozen" computer, even though with patience
7740     # the test eventually succeeds (with a max line length of 256k).
7741     # Instead, let's just punt: use the minimum linelength reported by
7742     # all of the supported platforms: 8192 (on NT/2K/XP).
7743     lt_cv_sys_max_cmd_len=8192;
7744     ;;
7745
7746   mint*)
7747     # On MiNT this can take a long time and run out of memory.
7748     lt_cv_sys_max_cmd_len=8192;
7749     ;;
7750
7751   amigaos*)
7752     # On AmigaOS with pdksh, this test takes hours, literally.
7753     # So we just punt and use a minimum line length of 8192.
7754     lt_cv_sys_max_cmd_len=8192;
7755     ;;
7756
7757   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7758     # This has been around since 386BSD, at least.  Likely further.
7759     if test -x /sbin/sysctl; then
7760       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7761     elif test -x /usr/sbin/sysctl; then
7762       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7763     else
7764       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7765     fi
7766     # And add a safety zone
7767     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7768     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7769     ;;
7770
7771   interix*)
7772     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7773     lt_cv_sys_max_cmd_len=196608
7774     ;;
7775
7776   os2*)
7777     # The test takes a long time on OS/2.
7778     lt_cv_sys_max_cmd_len=8192
7779     ;;
7780
7781   osf*)
7782     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7783     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7784     # nice to cause kernel panics so lets avoid the loop below.
7785     # First set a reasonable default.
7786     lt_cv_sys_max_cmd_len=16384
7787     #
7788     if test -x /sbin/sysconfig; then
7789       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7790         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7791       esac
7792     fi
7793     ;;
7794   sco3.2v5*)
7795     lt_cv_sys_max_cmd_len=102400
7796     ;;
7797   sysv5* | sco5v6* | sysv4.2uw2*)
7798     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7799     if test -n "$kargmax"; then
7800       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7801     else
7802       lt_cv_sys_max_cmd_len=32768
7803     fi
7804     ;;
7805   *)
7806     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7807     if test -n "$lt_cv_sys_max_cmd_len" && \
7808        test undefined != "$lt_cv_sys_max_cmd_len"; then
7809       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7810       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7811     else
7812       # Make teststring a little bigger before we do anything with it.
7813       # a 1K string should be a reasonable start.
7814       for i in 1 2 3 4 5 6 7 8; do
7815         teststring=$teststring$teststring
7816       done
7817       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7818       # If test is not a shell built-in, we'll probably end up computing a
7819       # maximum length that is only half of the actual maximum length, but
7820       # we can't tell.
7821       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7822                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7823               test 17 != "$i" # 1/2 MB should be enough
7824       do
7825         i=`expr $i + 1`
7826         teststring=$teststring$teststring
7827       done
7828       # Only check the string length outside the loop.
7829       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7830       teststring=
7831       # Add a significant safety factor because C++ compilers can tack on
7832       # massive amounts of additional arguments before passing them to the
7833       # linker.  It appears as though 1/2 is a usable value.
7834       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7835     fi
7836     ;;
7837   esac
7838
7839 fi
7840
7841 if test -n "$lt_cv_sys_max_cmd_len"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7843 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7846 $as_echo "none" >&6; }
7847 fi
7848 max_cmd_len=$lt_cv_sys_max_cmd_len
7849
7850
7851
7852
7853
7854
7855 : ${CP="cp -f"}
7856 : ${MV="mv -f"}
7857 : ${RM="rm -f"}
7858
7859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7860   lt_unset=unset
7861 else
7862   lt_unset=false
7863 fi
7864
7865
7866
7867
7868
7869 # test EBCDIC or ASCII
7870 case `echo X|tr X '\101'` in
7871  A) # ASCII based system
7872     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7873   lt_SP2NL='tr \040 \012'
7874   lt_NL2SP='tr \015\012 \040\040'
7875   ;;
7876  *) # EBCDIC based system
7877   lt_SP2NL='tr \100 \n'
7878   lt_NL2SP='tr \r\n \100\100'
7879   ;;
7880 esac
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7891 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7892 if ${lt_cv_to_host_file_cmd+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   case $host in
7896   *-*-mingw* )
7897     case $build in
7898       *-*-mingw* ) # actually msys
7899         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7900         ;;
7901       *-*-cygwin* )
7902         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7903         ;;
7904       * ) # otherwise, assume *nix
7905         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7906         ;;
7907     esac
7908     ;;
7909   *-*-cygwin* )
7910     case $build in
7911       *-*-mingw* ) # actually msys
7912         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7913         ;;
7914       *-*-cygwin* )
7915         lt_cv_to_host_file_cmd=func_convert_file_noop
7916         ;;
7917       * ) # otherwise, assume *nix
7918         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7919         ;;
7920     esac
7921     ;;
7922   * ) # unhandled hosts (and "normal" native builds)
7923     lt_cv_to_host_file_cmd=func_convert_file_noop
7924     ;;
7925 esac
7926
7927 fi
7928
7929 to_host_file_cmd=$lt_cv_to_host_file_cmd
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7931 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7932
7933
7934
7935
7936
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7938 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7939 if ${lt_cv_to_tool_file_cmd+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   #assume ordinary cross tools, or native build.
7943 lt_cv_to_tool_file_cmd=func_convert_file_noop
7944 case $host in
7945   *-*-mingw* )
7946     case $build in
7947       *-*-mingw* ) # actually msys
7948         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7949         ;;
7950     esac
7951     ;;
7952 esac
7953
7954 fi
7955
7956 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7958 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7959
7960
7961
7962
7963
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7965 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7966 if ${lt_cv_ld_reload_flag+:} false; then :
7967   $as_echo_n "(cached) " >&6
7968 else
7969   lt_cv_ld_reload_flag='-r'
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7972 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7973 reload_flag=$lt_cv_ld_reload_flag
7974 case $reload_flag in
7975 "" | " "*) ;;
7976 *) reload_flag=" $reload_flag" ;;
7977 esac
7978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7979 case $host_os in
7980   cygwin* | mingw* | pw32* | cegcc*)
7981     if test yes != "$GCC"; then
7982       reload_cmds=false
7983     fi
7984     ;;
7985   darwin*)
7986     if test yes = "$GCC"; then
7987       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7988     else
7989       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7990     fi
7991     ;;
7992 esac
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002 if test -n "$ac_tool_prefix"; then
8003   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8004 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_prog_OBJDUMP+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   if test -n "$OBJDUMP"; then
8011   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016   IFS=$as_save_IFS
8017   test -z "$as_dir" && as_dir=.
8018     for ac_exec_ext in '' $ac_executable_extensions; do
8019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022     break 2
8023   fi
8024 done
8025   done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 OBJDUMP=$ac_cv_prog_OBJDUMP
8031 if test -n "$OBJDUMP"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8033 $as_echo "$OBJDUMP" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 fi
8041 if test -z "$ac_cv_prog_OBJDUMP"; then
8042   ac_ct_OBJDUMP=$OBJDUMP
8043   # Extract the first word of "objdump", so it can be a program name with args.
8044 set dummy objdump; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 $as_echo_n "checking for $ac_word... " >&6; }
8047 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8048   $as_echo_n "(cached) " >&6
8049 else
8050   if test -n "$ac_ct_OBJDUMP"; then
8051   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056   IFS=$as_save_IFS
8057   test -z "$as_dir" && as_dir=.
8058     for ac_exec_ext in '' $ac_executable_extensions; do
8059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062     break 2
8063   fi
8064 done
8065   done
8066 IFS=$as_save_IFS
8067
8068 fi
8069 fi
8070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8071 if test -n "$ac_ct_OBJDUMP"; then
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8073 $as_echo "$ac_ct_OBJDUMP" >&6; }
8074 else
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079   if test "x$ac_ct_OBJDUMP" = x; then
8080     OBJDUMP="false"
8081   else
8082     case $cross_compiling:$ac_tool_warned in
8083 yes:)
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8087 esac
8088     OBJDUMP=$ac_ct_OBJDUMP
8089   fi
8090 else
8091   OBJDUMP="$ac_cv_prog_OBJDUMP"
8092 fi
8093
8094 test -z "$OBJDUMP" && OBJDUMP=objdump
8095
8096
8097
8098
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8102 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8103 if ${lt_cv_deplibs_check_method+:} false; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   lt_cv_file_magic_cmd='$MAGIC_CMD'
8107 lt_cv_file_magic_test_file=
8108 lt_cv_deplibs_check_method='unknown'
8109 # Need to set the preceding variable on all platforms that support
8110 # interlibrary dependencies.
8111 # 'none' -- dependencies not supported.
8112 # 'unknown' -- same as none, but documents that we really don't know.
8113 # 'pass_all' -- all dependencies passed with no checks.
8114 # 'test_compile' -- check by making test program.
8115 # 'file_magic [[regex]]' -- check by looking for files in library path
8116 # that responds to the $file_magic_cmd with a given extended regex.
8117 # If you have 'file' or equivalent on your system and you're not sure
8118 # whether 'pass_all' will *always* work, you probably want this one.
8119
8120 case $host_os in
8121 aix[4-9]*)
8122   lt_cv_deplibs_check_method=pass_all
8123   ;;
8124
8125 beos*)
8126   lt_cv_deplibs_check_method=pass_all
8127   ;;
8128
8129 bsdi[45]*)
8130   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8131   lt_cv_file_magic_cmd='/usr/bin/file -L'
8132   lt_cv_file_magic_test_file=/shlib/libc.so
8133   ;;
8134
8135 cygwin*)
8136   # func_win32_libid is a shell function defined in ltmain.sh
8137   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8138   lt_cv_file_magic_cmd='func_win32_libid'
8139   ;;
8140
8141 mingw* | pw32*)
8142   # Base MSYS/MinGW do not provide the 'file' command needed by
8143   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8144   # unless we find 'file', for example because we are cross-compiling.
8145   if ( file / ) >/dev/null 2>&1; then
8146     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8147     lt_cv_file_magic_cmd='func_win32_libid'
8148   else
8149     # Keep this pattern in sync with the one in func_win32_libid.
8150     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8151     lt_cv_file_magic_cmd='$OBJDUMP -f'
8152   fi
8153   ;;
8154
8155 cegcc*)
8156   # use the weaker test based on 'objdump'. See mingw*.
8157   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8158   lt_cv_file_magic_cmd='$OBJDUMP -f'
8159   ;;
8160
8161 darwin* | rhapsody*)
8162   lt_cv_deplibs_check_method=pass_all
8163   ;;
8164
8165 freebsd* | dragonfly*)
8166   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8167     case $host_cpu in
8168     i*86 )
8169       # Not sure whether the presence of OpenBSD here was a mistake.
8170       # Let's accept both of them until this is cleared up.
8171       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8172       lt_cv_file_magic_cmd=/usr/bin/file
8173       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8174       ;;
8175     esac
8176   else
8177     lt_cv_deplibs_check_method=pass_all
8178   fi
8179   ;;
8180
8181 haiku*)
8182   lt_cv_deplibs_check_method=pass_all
8183   ;;
8184
8185 hpux10.20* | hpux11*)
8186   lt_cv_file_magic_cmd=/usr/bin/file
8187   case $host_cpu in
8188   ia64*)
8189     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8190     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8191     ;;
8192   hppa*64*)
8193     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]'
8194     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8195     ;;
8196   *)
8197     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8198     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8199     ;;
8200   esac
8201   ;;
8202
8203 interix[3-9]*)
8204   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8205   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8206   ;;
8207
8208 irix5* | irix6* | nonstopux*)
8209   case $LD in
8210   *-32|*"-32 ") libmagic=32-bit;;
8211   *-n32|*"-n32 ") libmagic=N32;;
8212   *-64|*"-64 ") libmagic=64-bit;;
8213   *) libmagic=never-match;;
8214   esac
8215   lt_cv_deplibs_check_method=pass_all
8216   ;;
8217
8218 # This must be glibc/ELF.
8219 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8220   lt_cv_deplibs_check_method=pass_all
8221   ;;
8222
8223 netbsd* | netbsdelf*-gnu)
8224   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8225     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8226   else
8227     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8228   fi
8229   ;;
8230
8231 newos6*)
8232   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8233   lt_cv_file_magic_cmd=/usr/bin/file
8234   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8235   ;;
8236
8237 *nto* | *qnx*)
8238   lt_cv_deplibs_check_method=pass_all
8239   ;;
8240
8241 openbsd* | bitrig*)
8242   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8243     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8244   else
8245     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8246   fi
8247   ;;
8248
8249 osf3* | osf4* | osf5*)
8250   lt_cv_deplibs_check_method=pass_all
8251   ;;
8252
8253 rdos*)
8254   lt_cv_deplibs_check_method=pass_all
8255   ;;
8256
8257 solaris*)
8258   lt_cv_deplibs_check_method=pass_all
8259   ;;
8260
8261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8262   lt_cv_deplibs_check_method=pass_all
8263   ;;
8264
8265 sysv4 | sysv4.3*)
8266   case $host_vendor in
8267   motorola)
8268     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]'
8269     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8270     ;;
8271   ncr)
8272     lt_cv_deplibs_check_method=pass_all
8273     ;;
8274   sequent)
8275     lt_cv_file_magic_cmd='/bin/file'
8276     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8277     ;;
8278   sni)
8279     lt_cv_file_magic_cmd='/bin/file'
8280     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8281     lt_cv_file_magic_test_file=/lib/libc.so
8282     ;;
8283   siemens)
8284     lt_cv_deplibs_check_method=pass_all
8285     ;;
8286   pc)
8287     lt_cv_deplibs_check_method=pass_all
8288     ;;
8289   esac
8290   ;;
8291
8292 tpf*)
8293   lt_cv_deplibs_check_method=pass_all
8294   ;;
8295 os2*)
8296   lt_cv_deplibs_check_method=pass_all
8297   ;;
8298 esac
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8302 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8303
8304 file_magic_glob=
8305 want_nocaseglob=no
8306 if test "$build" = "$host"; then
8307   case $host_os in
8308   mingw* | pw32*)
8309     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8310       want_nocaseglob=yes
8311     else
8312       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8313     fi
8314     ;;
8315   esac
8316 fi
8317
8318 file_magic_cmd=$lt_cv_file_magic_cmd
8319 deplibs_check_method=$lt_cv_deplibs_check_method
8320 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343 if test -n "$ac_tool_prefix"; then
8344   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_DLLTOOL+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if test -n "$DLLTOOL"; then
8352   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   test -z "$as_dir" && as_dir=.
8359     for ac_exec_ext in '' $ac_executable_extensions; do
8360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363     break 2
8364   fi
8365 done
8366   done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 DLLTOOL=$ac_cv_prog_DLLTOOL
8372 if test -n "$DLLTOOL"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8374 $as_echo "$DLLTOOL" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_DLLTOOL"; then
8383   ac_ct_DLLTOOL=$DLLTOOL
8384   # Extract the first word of "dlltool", so it can be a program name with args.
8385 set dummy dlltool; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   if test -n "$ac_ct_DLLTOOL"; then
8392   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8412 if test -n "$ac_ct_DLLTOOL"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8414 $as_echo "$ac_ct_DLLTOOL" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420   if test "x$ac_ct_DLLTOOL" = x; then
8421     DLLTOOL="false"
8422   else
8423     case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429     DLLTOOL=$ac_ct_DLLTOOL
8430   fi
8431 else
8432   DLLTOOL="$ac_cv_prog_DLLTOOL"
8433 fi
8434
8435 test -z "$DLLTOOL" && DLLTOOL=dlltool
8436
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8444 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8445 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   lt_cv_sharedlib_from_linklib_cmd='unknown'
8449
8450 case $host_os in
8451 cygwin* | mingw* | pw32* | cegcc*)
8452   # two different shell functions defined in ltmain.sh;
8453   # decide which one to use based on capabilities of $DLLTOOL
8454   case `$DLLTOOL --help 2>&1` in
8455   *--identify-strict*)
8456     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8457     ;;
8458   *)
8459     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8460     ;;
8461   esac
8462   ;;
8463 *)
8464   # fallback: assume linklib IS sharedlib
8465   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8466   ;;
8467 esac
8468
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8471 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8472 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8473 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8474
8475
8476
8477
8478
8479
8480
8481 if test -n "$ac_tool_prefix"; then
8482   for ac_prog in ar
8483   do
8484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_AR+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   if test -n "$AR"; then
8492   ac_cv_prog_AR="$AR" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499     for ac_exec_ext in '' $ac_executable_extensions; do
8500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503     break 2
8504   fi
8505 done
8506   done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 AR=$ac_cv_prog_AR
8512 if test -n "$AR"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8514 $as_echo "$AR" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521     test -n "$AR" && break
8522   done
8523 fi
8524 if test -z "$AR"; then
8525   ac_ct_AR=$AR
8526   for ac_prog in ar
8527 do
8528   # Extract the first word of "$ac_prog", so it can be a program name with args.
8529 set dummy $ac_prog; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8533   $as_echo_n "(cached) " >&6
8534 else
8535   if test -n "$ac_ct_AR"; then
8536   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541   IFS=$as_save_IFS
8542   test -z "$as_dir" && as_dir=.
8543     for ac_exec_ext in '' $ac_executable_extensions; do
8544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545     ac_cv_prog_ac_ct_AR="$ac_prog"
8546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547     break 2
8548   fi
8549 done
8550   done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8556 if test -n "$ac_ct_AR"; then
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8558 $as_echo "$ac_ct_AR" >&6; }
8559 else
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564
8565   test -n "$ac_ct_AR" && break
8566 done
8567
8568   if test "x$ac_ct_AR" = x; then
8569     AR="false"
8570   else
8571     case $cross_compiling:$ac_tool_warned in
8572 yes:)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8576 esac
8577     AR=$ac_ct_AR
8578   fi
8579 fi
8580
8581 : ${AR=ar}
8582 : ${AR_FLAGS=cru}
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8595 $as_echo_n "checking for archiver @FILE support... " >&6; }
8596 if ${lt_cv_ar_at_file+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   lt_cv_ar_at_file=no
8600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602
8603 int main (void)
8604 {
8605
8606  ;
8607  return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611   echo conftest.$ac_objext > conftest.lst
8612       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8613       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8614   (eval $lt_ar_try) 2>&5
8615   ac_status=$?
8616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8617   test $ac_status = 0; }
8618       if test 0 -eq "$ac_status"; then
8619         # Ensure the archiver fails upon bogus file names.
8620         rm -f conftest.$ac_objext libconftest.a
8621         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8622   (eval $lt_ar_try) 2>&5
8623   ac_status=$?
8624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8625   test $ac_status = 0; }
8626         if test 0 -ne "$ac_status"; then
8627           lt_cv_ar_at_file=@
8628         fi
8629       fi
8630       rm -f conftest.* libconftest.a
8631
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8637 $as_echo "$lt_cv_ar_at_file" >&6; }
8638
8639 if test no = "$lt_cv_ar_at_file"; then
8640   archiver_list_spec=
8641 else
8642   archiver_list_spec=$lt_cv_ar_at_file
8643 fi
8644
8645
8646
8647
8648
8649
8650
8651 if test -n "$ac_tool_prefix"; then
8652   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8653 set dummy ${ac_tool_prefix}strip; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_STRIP+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   if test -n "$STRIP"; then
8660   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8664 do
8665   IFS=$as_save_IFS
8666   test -z "$as_dir" && as_dir=.
8667     for ac_exec_ext in '' $ac_executable_extensions; do
8668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671     break 2
8672   fi
8673 done
8674   done
8675 IFS=$as_save_IFS
8676
8677 fi
8678 fi
8679 STRIP=$ac_cv_prog_STRIP
8680 if test -n "$STRIP"; then
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8682 $as_echo "$STRIP" >&6; }
8683 else
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688
8689 fi
8690 if test -z "$ac_cv_prog_STRIP"; then
8691   ac_ct_STRIP=$STRIP
8692   # Extract the first word of "strip", so it can be a program name with args.
8693 set dummy strip; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8697   $as_echo_n "(cached) " >&6
8698 else
8699   if test -n "$ac_ct_STRIP"; then
8700   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705   IFS=$as_save_IFS
8706   test -z "$as_dir" && as_dir=.
8707     for ac_exec_ext in '' $ac_executable_extensions; do
8708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709     ac_cv_prog_ac_ct_STRIP="strip"
8710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711     break 2
8712   fi
8713 done
8714   done
8715 IFS=$as_save_IFS
8716
8717 fi
8718 fi
8719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8720 if test -n "$ac_ct_STRIP"; then
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8722 $as_echo "$ac_ct_STRIP" >&6; }
8723 else
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 fi
8727
8728   if test "x$ac_ct_STRIP" = x; then
8729     STRIP=":"
8730   else
8731     case $cross_compiling:$ac_tool_warned in
8732 yes:)
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8736 esac
8737     STRIP=$ac_ct_STRIP
8738   fi
8739 else
8740   STRIP="$ac_cv_prog_STRIP"
8741 fi
8742
8743 test -z "$STRIP" && STRIP=:
8744
8745
8746
8747
8748
8749
8750 if test -n "$ac_tool_prefix"; then
8751   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if ${ac_cv_prog_RANLIB+:} false; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   if test -n "$RANLIB"; then
8759   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 RANLIB=$ac_cv_prog_RANLIB
8779 if test -n "$RANLIB"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8781 $as_echo "$RANLIB" >&6; }
8782 else
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788 fi
8789 if test -z "$ac_cv_prog_RANLIB"; then
8790   ac_ct_RANLIB=$RANLIB
8791   # Extract the first word of "ranlib", so it can be a program name with args.
8792 set dummy ranlib; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   if test -n "$ac_ct_RANLIB"; then
8799   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808     ac_cv_prog_ac_ct_RANLIB="ranlib"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8819 if test -n "$ac_ct_RANLIB"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8821 $as_echo "$ac_ct_RANLIB" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827   if test "x$ac_ct_RANLIB" = x; then
8828     RANLIB=":"
8829   else
8830     case $cross_compiling:$ac_tool_warned in
8831 yes:)
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8834 ac_tool_warned=yes ;;
8835 esac
8836     RANLIB=$ac_ct_RANLIB
8837   fi
8838 else
8839   RANLIB="$ac_cv_prog_RANLIB"
8840 fi
8841
8842 test -z "$RANLIB" && RANLIB=:
8843
8844
8845
8846
8847
8848
8849 # Determine commands to create old-style static archives.
8850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8851 old_postinstall_cmds='chmod 644 $oldlib'
8852 old_postuninstall_cmds=
8853
8854 if test -n "$RANLIB"; then
8855   case $host_os in
8856   bitrig* | openbsd*)
8857     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8858     ;;
8859   *)
8860     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8861     ;;
8862   esac
8863   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8864 fi
8865
8866 case $host_os in
8867   darwin*)
8868     lock_old_archive_extraction=yes ;;
8869   *)
8870     lock_old_archive_extraction=no ;;
8871 esac
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 # If no C compiler was specified, use CC.
8912 LTCC=${LTCC-"$CC"}
8913
8914 # If no C compiler flags were specified, use CFLAGS.
8915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8916
8917 # Allow CC to be a program name with arguments.
8918 compiler=$CC
8919
8920
8921 # Check for command to grab the raw symbol name followed by C symbol from nm.
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8923 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8924 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927
8928 # These are sane defaults that work on at least a few old systems.
8929 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8930
8931 # Character class describing NM global symbol codes.
8932 symcode='[BCDEGRST]'
8933
8934 # Regexp to match symbols that can be accessed directly from C.
8935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8936
8937 # Define system-specific variables.
8938 case $host_os in
8939 aix*)
8940   symcode='[BCDT]'
8941   ;;
8942 cygwin* | mingw* | pw32* | cegcc*)
8943   symcode='[ABCDGISTW]'
8944   ;;
8945 hpux*)
8946   if test ia64 = "$host_cpu"; then
8947     symcode='[ABCDEGRST]'
8948   fi
8949   ;;
8950 irix* | nonstopux*)
8951   symcode='[BCDEGRST]'
8952   ;;
8953 osf*)
8954   symcode='[BCDEGQRST]'
8955   ;;
8956 solaris*)
8957   symcode='[BDRT]'
8958   ;;
8959 sco3.2v5*)
8960   symcode='[DT]'
8961   ;;
8962 sysv4.2uw2*)
8963   symcode='[DT]'
8964   ;;
8965 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8966   symcode='[ABDT]'
8967   ;;
8968 sysv4)
8969   symcode='[DFNSTU]'
8970   ;;
8971 esac
8972
8973 # If we're using GNU nm, then use its standard symbol codes.
8974 case `$NM -V 2>&1` in
8975 *GNU* | *'with BFD'*)
8976   symcode='[ABCDGIRSTW]' ;;
8977 esac
8978
8979 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8980   # Gets list of data symbols to import.
8981   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8982   # Adjust the below global symbol transforms to fixup imported variables.
8983   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8984   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8985   lt_c_name_lib_hook="\
8986   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8987   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8988 else
8989   # Disable hooks by default.
8990   lt_cv_sys_global_symbol_to_import=
8991   lt_cdecl_hook=
8992   lt_c_name_hook=
8993   lt_c_name_lib_hook=
8994 fi
8995
8996 # Transform an extracted symbol line into a proper C declaration.
8997 # Some systems (esp. on ia64) link data and code symbols differently,
8998 # so use this general approach.
8999 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9000 $lt_cdecl_hook\
9001 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9002 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9003
9004 # Transform an extracted symbol line into symbol name and symbol address
9005 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9006 $lt_c_name_hook\
9007 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9008 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9009
9010 # Transform an extracted symbol line into symbol name with lib prefix and
9011 # symbol address.
9012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9013 $lt_c_name_lib_hook\
9014 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9015 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9016 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9017
9018 # Handle CRLF in mingw tool chain
9019 opt_cr=
9020 case $build_os in
9021 mingw*)
9022   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9023   ;;
9024 esac
9025
9026 # Try without a prefix underscore, then with it.
9027 for ac_symprfx in "" "_"; do
9028
9029   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9030   symxfrm="\\1 $ac_symprfx\\2 \\2"
9031
9032   # Write the raw and C identifiers.
9033   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9034     # Fake it for dumpbin and say T for any non-static function,
9035     # D for any global variable and I for any imported variable.
9036     # Also find C++ and __fastcall symbols from MSVC++,
9037     # which start with @ or ?.
9038     lt_cv_sys_global_symbol_pipe="$AWK '"\
9039 "     {last_section=section; section=\$ 3};"\
9040 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9041 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9042 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9043 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9044 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9045 "     \$ 0!~/External *\|/{next};"\
9046 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9047 "     {if(hide[section]) next};"\
9048 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9049 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9050 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9051 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9052 "     ' prfx=^$ac_symprfx"
9053   else
9054     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9055   fi
9056   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9057
9058   # Check to see that the pipe works correctly.
9059   pipe_works=no
9060
9061   rm -f conftest*
9062   cat > conftest.$ac_ext <<_LT_EOF
9063 #ifdef __cplusplus
9064 extern "C" {
9065 #endif
9066 char nm_test_var;
9067 void nm_test_func(void);
9068 void nm_test_func(void){}
9069 #ifdef __cplusplus
9070 }
9071 #endif
9072 int main(){nm_test_var='a';nm_test_func();return(0);}
9073 _LT_EOF
9074
9075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9076   (eval $ac_compile) 2>&5
9077   ac_status=$?
9078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079   test $ac_status = 0; }; then
9080     # Now try to grab the symbols.
9081     nlist=conftest.nm
9082     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9083   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9084   ac_status=$?
9085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9086   test $ac_status = 0; } && test -s "$nlist"; then
9087       # Try sorting and uniquifying the output.
9088       if sort "$nlist" | uniq > "$nlist"T; then
9089         mv -f "$nlist"T "$nlist"
9090       else
9091         rm -f "$nlist"T
9092       fi
9093
9094       # Make sure that we snagged all the symbols we need.
9095       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9096         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9097           cat <<_LT_EOF > conftest.$ac_ext
9098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9099 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9100 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9101    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9102 # define LT_DLSYM_CONST
9103 #elif defined __osf__
9104 /* This system does not cope well with relocations in const data.  */
9105 # define LT_DLSYM_CONST
9106 #else
9107 # define LT_DLSYM_CONST const
9108 #endif
9109
9110 #ifdef __cplusplus
9111 extern "C" {
9112 #endif
9113
9114 _LT_EOF
9115           # Now generate the symbol file.
9116           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9117
9118           cat <<_LT_EOF >> conftest.$ac_ext
9119
9120 /* The mapping between symbol names and symbols.  */
9121 LT_DLSYM_CONST struct {
9122   const char *name;
9123   void       *address;
9124 }
9125 lt__PROGRAM__LTX_preloaded_symbols[] =
9126 {
9127   { "@PROGRAM@", (void *) 0 },
9128 _LT_EOF
9129           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9130           cat <<\_LT_EOF >> conftest.$ac_ext
9131   {0, (void *) 0}
9132 };
9133
9134 /* This works around a problem in FreeBSD linker */
9135 #ifdef FREEBSD_WORKAROUND
9136 static const void *lt_preloaded_setup() {
9137   return lt__PROGRAM__LTX_preloaded_symbols;
9138 }
9139 #endif
9140
9141 #ifdef __cplusplus
9142 }
9143 #endif
9144 _LT_EOF
9145           # Now try linking the two files.
9146           mv -f conftest.$ac_objext conftstm.$ac_objext
9147           lt_globsym_save_LIBS=$LIBS
9148           lt_globsym_save_CFLAGS=$CFLAGS
9149           LIBS=conftstm.$ac_objext
9150           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9151           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9152   (eval $ac_link) 2>&5
9153   ac_status=$?
9154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9156             pipe_works=yes
9157           fi
9158           LIBS=$lt_globsym_save_LIBS
9159           CFLAGS=$lt_globsym_save_CFLAGS
9160         else
9161           echo "cannot find nm_test_func in $nlist" >&5
9162         fi
9163       else
9164         echo "cannot find nm_test_var in $nlist" >&5
9165       fi
9166     else
9167       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9168     fi
9169   else
9170     echo "$progname: failed program was:" >&5
9171     cat conftest.$ac_ext >&5
9172   fi
9173   rm -rf conftest* conftst*
9174
9175   # Do not use the global_symbol_pipe unless it works.
9176   if test yes = "$pipe_works"; then
9177     break
9178   else
9179     lt_cv_sys_global_symbol_pipe=
9180   fi
9181 done
9182
9183 fi
9184
9185 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9186   lt_cv_sys_global_symbol_to_cdecl=
9187 fi
9188 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9190 $as_echo "failed" >&6; }
9191 else
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9193 $as_echo "ok" >&6; }
9194 fi
9195
9196 # Response file support.
9197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9198   nm_file_list_spec='@'
9199 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9200   nm_file_list_spec='@'
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9240 $as_echo_n "checking for sysroot... " >&6; }
9241
9242 # Check whether --with-sysroot was given.
9243 if test "${with_sysroot+set}" = set; then :
9244   withval=$with_sysroot;
9245 else
9246   with_sysroot=no
9247 fi
9248
9249
9250 lt_sysroot=
9251 case $with_sysroot in #(
9252  yes)
9253    if test yes = "$GCC"; then
9254      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9255    fi
9256    ;; #(
9257  /*)
9258    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9259    ;; #(
9260  no|'')
9261    ;; #(
9262  *)
9263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9264 $as_echo "$with_sysroot" >&6; }
9265    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9266    ;;
9267 esac
9268
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9270 $as_echo "${lt_sysroot:-no}" >&6; }
9271
9272
9273
9274
9275
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9277 $as_echo_n "checking for a working dd... " >&6; }
9278 if ${ac_cv_path_lt_DD+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   printf 0123456789abcdef0123456789abcdef >conftest.i
9282 cat conftest.i conftest.i >conftest2.i
9283 : ${lt_DD:=$DD}
9284 if test -z "$lt_DD"; then
9285   ac_path_lt_DD_found=false
9286   # Loop through the user's path and test for each of PROGNAME-LIST
9287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290   IFS=$as_save_IFS
9291   test -z "$as_dir" && as_dir=.
9292     for ac_prog in dd; do
9293     for ac_exec_ext in '' $ac_executable_extensions; do
9294       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9295       as_fn_executable_p "$ac_path_lt_DD" || continue
9296 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9297   cmp -s conftest.i conftest.out \
9298   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9299 fi
9300       $ac_path_lt_DD_found && break 3
9301     done
9302   done
9303   done
9304 IFS=$as_save_IFS
9305   if test -z "$ac_cv_path_lt_DD"; then
9306     :
9307   fi
9308 else
9309   ac_cv_path_lt_DD=$lt_DD
9310 fi
9311
9312 rm -f conftest.i conftest2.i conftest.out
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9315 $as_echo "$ac_cv_path_lt_DD" >&6; }
9316
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9319 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9320 if ${lt_cv_truncate_bin+:} false; then :
9321   $as_echo_n "(cached) " >&6
9322 else
9323   printf 0123456789abcdef0123456789abcdef >conftest.i
9324 cat conftest.i conftest.i >conftest2.i
9325 lt_cv_truncate_bin=
9326 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9327   cmp -s conftest.i conftest.out \
9328   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9329 fi
9330 rm -f conftest.i conftest2.i conftest.out
9331 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9334 $as_echo "$lt_cv_truncate_bin" >&6; }
9335
9336
9337
9338
9339
9340
9341
9342 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9343 func_cc_basename ()
9344 {
9345     for cc_temp in $*""; do
9346       case $cc_temp in
9347         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9348         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9349         \-*) ;;
9350         *) break;;
9351       esac
9352     done
9353     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9354 }
9355
9356 # Check whether --enable-libtool-lock was given.
9357 if test "${enable_libtool_lock+set}" = set; then :
9358   enableval=$enable_libtool_lock;
9359 fi
9360
9361 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9362
9363 # Some flags need to be propagated to the compiler or linker for good
9364 # libtool support.
9365 case $host in
9366 ia64-*-hpux*)
9367   # Find out what ABI is being produced by ac_compile, and set mode
9368   # options accordingly.
9369   echo 'int i;' > conftest.$ac_ext
9370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9371   (eval $ac_compile) 2>&5
9372   ac_status=$?
9373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9374   test $ac_status = 0; }; then
9375     case `/usr/bin/file conftest.$ac_objext` in
9376       *ELF-32*)
9377         HPUX_IA64_MODE=32
9378         ;;
9379       *ELF-64*)
9380         HPUX_IA64_MODE=64
9381         ;;
9382     esac
9383   fi
9384   rm -rf conftest*
9385   ;;
9386 *-*-irix6*)
9387   # Find out what ABI is being produced by ac_compile, and set linker
9388   # options accordingly.
9389   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9391   (eval $ac_compile) 2>&5
9392   ac_status=$?
9393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9394   test $ac_status = 0; }; then
9395     if test yes = "$lt_cv_prog_gnu_ld"; then
9396       case `/usr/bin/file conftest.$ac_objext` in
9397         *32-bit*)
9398           LD="${LD-ld} -melf32bsmip"
9399           ;;
9400         *N32*)
9401           LD="${LD-ld} -melf32bmipn32"
9402           ;;
9403         *64-bit*)
9404           LD="${LD-ld} -melf64bmip"
9405         ;;
9406       esac
9407     else
9408       case `/usr/bin/file conftest.$ac_objext` in
9409         *32-bit*)
9410           LD="${LD-ld} -32"
9411           ;;
9412         *N32*)
9413           LD="${LD-ld} -n32"
9414           ;;
9415         *64-bit*)
9416           LD="${LD-ld} -64"
9417           ;;
9418       esac
9419     fi
9420   fi
9421   rm -rf conftest*
9422   ;;
9423
9424 mips64*-*linux*)
9425   # Find out what ABI is being produced by ac_compile, and set linker
9426   # options accordingly.
9427   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9428   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9429   (eval $ac_compile) 2>&5
9430   ac_status=$?
9431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9432   test $ac_status = 0; }; then
9433     emul=elf
9434     case `/usr/bin/file conftest.$ac_objext` in
9435       *32-bit*)
9436         emul="${emul}32"
9437         ;;
9438       *64-bit*)
9439         emul="${emul}64"
9440         ;;
9441     esac
9442     case `/usr/bin/file conftest.$ac_objext` in
9443       *MSB*)
9444         emul="${emul}btsmip"
9445         ;;
9446       *LSB*)
9447         emul="${emul}ltsmip"
9448         ;;
9449     esac
9450     case `/usr/bin/file conftest.$ac_objext` in
9451       *N32*)
9452         emul="${emul}n32"
9453         ;;
9454     esac
9455     LD="${LD-ld} -m $emul"
9456   fi
9457   rm -rf conftest*
9458   ;;
9459
9460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9462   # Find out what ABI is being produced by ac_compile, and set linker
9463   # options accordingly.  Note that the listed cases only cover the
9464   # situations where additional linker options are needed (such as when
9465   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9466   # vice versa); the common cases where no linker options are needed do
9467   # not appear in the list.
9468   echo 'int i;' > conftest.$ac_ext
9469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9470   (eval $ac_compile) 2>&5
9471   ac_status=$?
9472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473   test $ac_status = 0; }; then
9474     case `/usr/bin/file conftest.o` in
9475       *32-bit*)
9476         case $host in
9477           x86_64-*kfreebsd*-gnu)
9478             LD="${LD-ld} -m elf_i386_fbsd"
9479             ;;
9480           x86_64-*linux*)
9481             case `/usr/bin/file conftest.o` in
9482               *x86-64*)
9483                 LD="${LD-ld} -m elf32_x86_64"
9484                 ;;
9485               *)
9486                 LD="${LD-ld} -m elf_i386"
9487                 ;;
9488             esac
9489             ;;
9490           powerpc64le-*linux*)
9491             LD="${LD-ld} -m elf32lppclinux"
9492             ;;
9493           powerpc64-*linux*)
9494             LD="${LD-ld} -m elf32ppclinux"
9495             ;;
9496           s390x-*linux*)
9497             LD="${LD-ld} -m elf_s390"
9498             ;;
9499           sparc64-*linux*)
9500             LD="${LD-ld} -m elf32_sparc"
9501             ;;
9502         esac
9503         ;;
9504       *64-bit*)
9505         case $host in
9506           x86_64-*kfreebsd*-gnu)
9507             LD="${LD-ld} -m elf_x86_64_fbsd"
9508             ;;
9509           x86_64-*linux*)
9510             LD="${LD-ld} -m elf_x86_64"
9511             ;;
9512           powerpcle-*linux*)
9513             LD="${LD-ld} -m elf64lppc"
9514             ;;
9515           powerpc-*linux*)
9516             LD="${LD-ld} -m elf64ppc"
9517             ;;
9518           s390*-*linux*|s390*-*tpf*)
9519             LD="${LD-ld} -m elf64_s390"
9520             ;;
9521           sparc*-*linux*)
9522             LD="${LD-ld} -m elf64_sparc"
9523             ;;
9524         esac
9525         ;;
9526     esac
9527   fi
9528   rm -rf conftest*
9529   ;;
9530
9531 *-*-sco3.2v5*)
9532   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9533   SAVE_CFLAGS=$CFLAGS
9534   CFLAGS="$CFLAGS -belf"
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9536 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9537 if ${lt_cv_cc_needs_belf+:} false; then :
9538   $as_echo_n "(cached) " >&6
9539 else
9540   ac_ext=c
9541 ac_cpp='$CPP $CPPFLAGS'
9542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9545
9546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h.  */
9548
9549 int main (void)
9550 {
9551
9552  ;
9553  return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9557   lt_cv_cc_needs_belf=yes
9558 else
9559   lt_cv_cc_needs_belf=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext \
9562     conftest$ac_exeext conftest.$ac_ext
9563      ac_ext=c
9564 ac_cpp='$CPP $CPPFLAGS'
9565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9571 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9572   if test yes != "$lt_cv_cc_needs_belf"; then
9573     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9574     CFLAGS=$SAVE_CFLAGS
9575   fi
9576   ;;
9577 *-*solaris*)
9578   # Find out what ABI is being produced by ac_compile, and set linker
9579   # options accordingly.
9580   echo 'int i;' > conftest.$ac_ext
9581   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9582   (eval $ac_compile) 2>&5
9583   ac_status=$?
9584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585   test $ac_status = 0; }; then
9586     case `/usr/bin/file conftest.o` in
9587     *64-bit*)
9588       case $lt_cv_prog_gnu_ld in
9589       yes*)
9590         case $host in
9591         i?86-*-solaris*|x86_64-*-solaris*)
9592           LD="${LD-ld} -m elf_x86_64"
9593           ;;
9594         sparc*-*-solaris*)
9595           LD="${LD-ld} -m elf64_sparc"
9596           ;;
9597         esac
9598         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9599         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9600           LD=${LD-ld}_sol2
9601         fi
9602         ;;
9603       *)
9604         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9605           LD="${LD-ld} -64"
9606         fi
9607         ;;
9608       esac
9609       ;;
9610     esac
9611   fi
9612   rm -rf conftest*
9613   ;;
9614 esac
9615
9616 need_locks=$enable_libtool_lock
9617
9618 if test -n "$ac_tool_prefix"; then
9619   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9620 set dummy ${ac_tool_prefix}mt; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9624   $as_echo_n "(cached) " >&6
9625 else
9626   if test -n "$MANIFEST_TOOL"; then
9627   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9628 else
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9631 do
9632   IFS=$as_save_IFS
9633   test -z "$as_dir" && as_dir=.
9634     for ac_exec_ext in '' $ac_executable_extensions; do
9635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9636     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638     break 2
9639   fi
9640 done
9641   done
9642 IFS=$as_save_IFS
9643
9644 fi
9645 fi
9646 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9647 if test -n "$MANIFEST_TOOL"; then
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9649 $as_echo "$MANIFEST_TOOL" >&6; }
9650 else
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9653 fi
9654
9655
9656 fi
9657 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9658   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9659   # Extract the first word of "mt", so it can be a program name with args.
9660 set dummy mt; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   if test -n "$ac_ct_MANIFEST_TOOL"; then
9667   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672   IFS=$as_save_IFS
9673   test -z "$as_dir" && as_dir=.
9674     for ac_exec_ext in '' $ac_executable_extensions; do
9675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678     break 2
9679   fi
9680 done
9681   done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9687 if test -n "$ac_ct_MANIFEST_TOOL"; then
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9689 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9690 else
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9696     MANIFEST_TOOL=":"
9697   else
9698     case $cross_compiling:$ac_tool_warned in
9699 yes:)
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9703 esac
9704     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9705   fi
9706 else
9707   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9708 fi
9709
9710 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9712 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9713 if ${lt_cv_path_mainfest_tool+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   lt_cv_path_mainfest_tool=no
9717   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9718   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9719   cat conftest.err >&5
9720   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9721     lt_cv_path_mainfest_tool=yes
9722   fi
9723   rm -f conftest*
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9726 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9727 if test yes != "$lt_cv_path_mainfest_tool"; then
9728   MANIFEST_TOOL=:
9729 fi
9730
9731
9732
9733
9734
9735
9736   case $host_os in
9737     rhapsody* | darwin*)
9738     if test -n "$ac_tool_prefix"; then
9739   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9740 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   if test -n "$DSYMUTIL"; then
9747   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9748 else
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750 for as_dir in $PATH
9751 do
9752   IFS=$as_save_IFS
9753   test -z "$as_dir" && as_dir=.
9754     for ac_exec_ext in '' $ac_executable_extensions; do
9755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758     break 2
9759   fi
9760 done
9761   done
9762 IFS=$as_save_IFS
9763
9764 fi
9765 fi
9766 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9767 if test -n "$DSYMUTIL"; then
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9769 $as_echo "$DSYMUTIL" >&6; }
9770 else
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9773 fi
9774
9775
9776 fi
9777 if test -z "$ac_cv_prog_DSYMUTIL"; then
9778   ac_ct_DSYMUTIL=$DSYMUTIL
9779   # Extract the first word of "dsymutil", so it can be a program name with args.
9780 set dummy dsymutil; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   if test -n "$ac_ct_DSYMUTIL"; then
9787   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9791 do
9792   IFS=$as_save_IFS
9793   test -z "$as_dir" && as_dir=.
9794     for ac_exec_ext in '' $ac_executable_extensions; do
9795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798     break 2
9799   fi
9800 done
9801   done
9802 IFS=$as_save_IFS
9803
9804 fi
9805 fi
9806 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9807 if test -n "$ac_ct_DSYMUTIL"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814
9815   if test "x$ac_ct_DSYMUTIL" = x; then
9816     DSYMUTIL=":"
9817   else
9818     case $cross_compiling:$ac_tool_warned in
9819 yes:)
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822 ac_tool_warned=yes ;;
9823 esac
9824     DSYMUTIL=$ac_ct_DSYMUTIL
9825   fi
9826 else
9827   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9828 fi
9829
9830     if test -n "$ac_tool_prefix"; then
9831   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9832 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_prog_NMEDIT+:} false; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   if test -n "$NMEDIT"; then
9839   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9840 else
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9843 do
9844   IFS=$as_save_IFS
9845   test -z "$as_dir" && as_dir=.
9846     for ac_exec_ext in '' $ac_executable_extensions; do
9847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850     break 2
9851   fi
9852 done
9853   done
9854 IFS=$as_save_IFS
9855
9856 fi
9857 fi
9858 NMEDIT=$ac_cv_prog_NMEDIT
9859 if test -n "$NMEDIT"; then
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9861 $as_echo "$NMEDIT" >&6; }
9862 else
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866
9867
9868 fi
9869 if test -z "$ac_cv_prog_NMEDIT"; then
9870   ac_ct_NMEDIT=$NMEDIT
9871   # Extract the first word of "nmedit", so it can be a program name with args.
9872 set dummy nmedit; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   if test -n "$ac_ct_NMEDIT"; then
9879   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9880 else
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9883 do
9884   IFS=$as_save_IFS
9885   test -z "$as_dir" && as_dir=.
9886     for ac_exec_ext in '' $ac_executable_extensions; do
9887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890     break 2
9891   fi
9892 done
9893   done
9894 IFS=$as_save_IFS
9895
9896 fi
9897 fi
9898 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9899 if test -n "$ac_ct_NMEDIT"; then
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9901 $as_echo "$ac_ct_NMEDIT" >&6; }
9902 else
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905 fi
9906
9907   if test "x$ac_ct_NMEDIT" = x; then
9908     NMEDIT=":"
9909   else
9910     case $cross_compiling:$ac_tool_warned in
9911 yes:)
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned=yes ;;
9915 esac
9916     NMEDIT=$ac_ct_NMEDIT
9917   fi
9918 else
9919   NMEDIT="$ac_cv_prog_NMEDIT"
9920 fi
9921
9922     if test -n "$ac_tool_prefix"; then
9923   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9924 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_prog_LIPO+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   if test -n "$LIPO"; then
9931   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9932 else
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9935 do
9936   IFS=$as_save_IFS
9937   test -z "$as_dir" && as_dir=.
9938     for ac_exec_ext in '' $ac_executable_extensions; do
9939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942     break 2
9943   fi
9944 done
9945   done
9946 IFS=$as_save_IFS
9947
9948 fi
9949 fi
9950 LIPO=$ac_cv_prog_LIPO
9951 if test -n "$LIPO"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9953 $as_echo "$LIPO" >&6; }
9954 else
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958
9959
9960 fi
9961 if test -z "$ac_cv_prog_LIPO"; then
9962   ac_ct_LIPO=$LIPO
9963   # Extract the first word of "lipo", so it can be a program name with args.
9964 set dummy lipo; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   if test -n "$ac_ct_LIPO"; then
9971   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980     ac_cv_prog_ac_ct_LIPO="lipo"
9981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982     break 2
9983   fi
9984 done
9985   done
9986 IFS=$as_save_IFS
9987
9988 fi
9989 fi
9990 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9991 if test -n "$ac_ct_LIPO"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9993 $as_echo "$ac_ct_LIPO" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999   if test "x$ac_ct_LIPO" = x; then
10000     LIPO=":"
10001   else
10002     case $cross_compiling:$ac_tool_warned in
10003 yes:)
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006 ac_tool_warned=yes ;;
10007 esac
10008     LIPO=$ac_ct_LIPO
10009   fi
10010 else
10011   LIPO="$ac_cv_prog_LIPO"
10012 fi
10013
10014     if test -n "$ac_tool_prefix"; then
10015   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10016 set dummy ${ac_tool_prefix}otool; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_prog_OTOOL+:} false; then :
10020   $as_echo_n "(cached) " >&6
10021 else
10022   if test -n "$OTOOL"; then
10023   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10024 else
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10027 do
10028   IFS=$as_save_IFS
10029   test -z "$as_dir" && as_dir=.
10030     for ac_exec_ext in '' $ac_executable_extensions; do
10031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034     break 2
10035   fi
10036 done
10037   done
10038 IFS=$as_save_IFS
10039
10040 fi
10041 fi
10042 OTOOL=$ac_cv_prog_OTOOL
10043 if test -n "$OTOOL"; then
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10045 $as_echo "$OTOOL" >&6; }
10046 else
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10049 fi
10050
10051
10052 fi
10053 if test -z "$ac_cv_prog_OTOOL"; then
10054   ac_ct_OTOOL=$OTOOL
10055   # Extract the first word of "otool", so it can be a program name with args.
10056 set dummy otool; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062   if test -n "$ac_ct_OTOOL"; then
10063   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10067 do
10068   IFS=$as_save_IFS
10069   test -z "$as_dir" && as_dir=.
10070     for ac_exec_ext in '' $ac_executable_extensions; do
10071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072     ac_cv_prog_ac_ct_OTOOL="otool"
10073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074     break 2
10075   fi
10076 done
10077   done
10078 IFS=$as_save_IFS
10079
10080 fi
10081 fi
10082 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10083 if test -n "$ac_ct_OTOOL"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10085 $as_echo "$ac_ct_OTOOL" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091   if test "x$ac_ct_OTOOL" = x; then
10092     OTOOL=":"
10093   else
10094     case $cross_compiling:$ac_tool_warned in
10095 yes:)
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10098 ac_tool_warned=yes ;;
10099 esac
10100     OTOOL=$ac_ct_OTOOL
10101   fi
10102 else
10103   OTOOL="$ac_cv_prog_OTOOL"
10104 fi
10105
10106     if test -n "$ac_tool_prefix"; then
10107   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10108 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_prog_OTOOL64+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   if test -n "$OTOOL64"; then
10115   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10116 else
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120   IFS=$as_save_IFS
10121   test -z "$as_dir" && as_dir=.
10122     for ac_exec_ext in '' $ac_executable_extensions; do
10123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126     break 2
10127   fi
10128 done
10129   done
10130 IFS=$as_save_IFS
10131
10132 fi
10133 fi
10134 OTOOL64=$ac_cv_prog_OTOOL64
10135 if test -n "$OTOOL64"; then
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10137 $as_echo "$OTOOL64" >&6; }
10138 else
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141 fi
10142
10143
10144 fi
10145 if test -z "$ac_cv_prog_OTOOL64"; then
10146   ac_ct_OTOOL64=$OTOOL64
10147   # Extract the first word of "otool64", so it can be a program name with args.
10148 set dummy otool64; ac_word=$2
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 $as_echo_n "checking for $ac_word... " >&6; }
10151 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   if test -n "$ac_ct_OTOOL64"; then
10155   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10156 else
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10159 do
10160   IFS=$as_save_IFS
10161   test -z "$as_dir" && as_dir=.
10162     for ac_exec_ext in '' $ac_executable_extensions; do
10163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164     ac_cv_prog_ac_ct_OTOOL64="otool64"
10165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166     break 2
10167   fi
10168 done
10169   done
10170 IFS=$as_save_IFS
10171
10172 fi
10173 fi
10174 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10175 if test -n "$ac_ct_OTOOL64"; then
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10177 $as_echo "$ac_ct_OTOOL64" >&6; }
10178 else
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182
10183   if test "x$ac_ct_OTOOL64" = x; then
10184     OTOOL64=":"
10185   else
10186     case $cross_compiling:$ac_tool_warned in
10187 yes:)
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10190 ac_tool_warned=yes ;;
10191 esac
10192     OTOOL64=$ac_ct_OTOOL64
10193   fi
10194 else
10195   OTOOL64="$ac_cv_prog_OTOOL64"
10196 fi
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10225 $as_echo_n "checking for -single_module linker flag... " >&6; }
10226 if ${lt_cv_apple_cc_single_mod+:} false; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   lt_cv_apple_cc_single_mod=no
10230       if test -z "$LT_MULTI_MODULE"; then
10231         # By default we will add the -single_module flag. You can override
10232         # by either setting the environment variable LT_MULTI_MODULE
10233         # non-empty at configure time, or by adding -multi_module to the
10234         # link flags.
10235         rm -rf libconftest.dylib*
10236         echo "int foo(void){return 1;}" > conftest.c
10237         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10238 -dynamiclib -Wl,-single_module conftest.c" >&5
10239         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10240           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10241         _lt_result=$?
10242         # If there is a non-empty error log, and "single_module"
10243         # appears in it, assume the flag caused a linker warning
10244         if test -s conftest.err && $GREP single_module conftest.err; then
10245           cat conftest.err >&5
10246         # Otherwise, if the output was created with a 0 exit code from
10247         # the compiler, it worked.
10248         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10249           lt_cv_apple_cc_single_mod=yes
10250         else
10251           cat conftest.err >&5
10252         fi
10253         rm -rf libconftest.dylib*
10254         rm -f conftest.*
10255       fi
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10258 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10259
10260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10261 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10262 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10263   $as_echo_n "(cached) " >&6
10264 else
10265   lt_cv_ld_exported_symbols_list=no
10266       save_LDFLAGS=$LDFLAGS
10267       echo "_main" > conftest.sym
10268       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271
10272 int main (void)
10273 {
10274
10275  ;
10276  return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280   lt_cv_ld_exported_symbols_list=yes
10281 else
10282   lt_cv_ld_exported_symbols_list=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285     conftest$ac_exeext conftest.$ac_ext
10286         LDFLAGS=$save_LDFLAGS
10287
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10290 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10291
10292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10293 $as_echo_n "checking for -force_load linker flag... " >&6; }
10294 if ${lt_cv_ld_force_load+:} false; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   lt_cv_ld_force_load=no
10298       cat > conftest.c << _LT_EOF
10299 int forced_loaded() { return 2;}
10300 _LT_EOF
10301       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10302       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10303       echo "$AR cru libconftest.a conftest.o" >&5
10304       $AR cru libconftest.a conftest.o 2>&5
10305       echo "$RANLIB libconftest.a" >&5
10306       $RANLIB libconftest.a 2>&5
10307       cat > conftest.c << _LT_EOF
10308 int main() { return 0;}
10309 _LT_EOF
10310       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10311       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10312       _lt_result=$?
10313       if test -s conftest.err && $GREP force_load conftest.err; then
10314         cat conftest.err >&5
10315       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10316         lt_cv_ld_force_load=yes
10317       else
10318         cat conftest.err >&5
10319       fi
10320         rm -f conftest.err libconftest.a conftest conftest.c
10321         rm -rf conftest.dSYM
10322
10323 fi
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10325 $as_echo "$lt_cv_ld_force_load" >&6; }
10326     case $host_os in
10327     rhapsody* | darwin1.[012])
10328       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10329     darwin1.*)
10330       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10331     darwin*) # darwin 5.x on
10332       # if running on 10.5 or later, the deployment target defaults
10333       # to the OS version, if on x86, and 10.4, the deployment
10334       # target defaults to 10.4. Don't you love it?
10335       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10336         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10337           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10338         10.[012][,.]*)
10339           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10340         10.*)
10341           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10342       esac
10343     ;;
10344   esac
10345     if test yes = "$lt_cv_apple_cc_single_mod"; then
10346       _lt_dar_single_mod='$single_module'
10347     fi
10348     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10349       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10350     else
10351       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10352     fi
10353     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10354       _lt_dsymutil='~$DSYMUTIL $lib || :'
10355     else
10356       _lt_dsymutil=
10357     fi
10358     ;;
10359   esac
10360
10361 # func_munge_path_list VARIABLE PATH
10362 # -----------------------------------
10363 # VARIABLE is name of variable containing _space_ separated list of
10364 # directories to be munged by the contents of PATH, which is string
10365 # having a format:
10366 # "DIR[:DIR]:"
10367 #       string "DIR[ DIR]" will be prepended to VARIABLE
10368 # ":DIR[:DIR]"
10369 #       string "DIR[ DIR]" will be appended to VARIABLE
10370 # "DIRP[:DIRP]::[DIRA:]DIRA"
10371 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10372 #       "DIRA[ DIRA]" will be appended to VARIABLE
10373 # "DIR[:DIR]"
10374 #       VARIABLE will be replaced by "DIR[ DIR]"
10375 func_munge_path_list ()
10376 {
10377     case x$2 in
10378     x)
10379         ;;
10380     *:)
10381         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10382         ;;
10383     x:*)
10384         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10385         ;;
10386     *::*)
10387         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10388         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10389         ;;
10390     *)
10391         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10392         ;;
10393     esac
10394 }
10395
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10397 $as_echo_n "checking for ANSI C header files... " >&6; }
10398 if ${ac_cv_header_stdc+:} false; then :
10399   $as_echo_n "(cached) " >&6
10400 else
10401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403 #include <stdlib.h>
10404 #include <stdarg.h>
10405 #include <string.h>
10406 #include <float.h>
10407
10408 int main (void)
10409 {
10410
10411  ;
10412  return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_compile "$LINENO"; then :
10416   ac_cv_header_stdc=yes
10417 else
10418   ac_cv_header_stdc=no
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421
10422 if test $ac_cv_header_stdc = yes; then
10423   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h.  */
10426 #include <string.h>
10427
10428 _ACEOF
10429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10430   $EGREP "memchr" >/dev/null 2>&1; then :
10431
10432 else
10433   ac_cv_header_stdc=no
10434 fi
10435 rm -f conftest*
10436
10437 fi
10438
10439 if test $ac_cv_header_stdc = yes; then
10440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h.  */
10443 #include <stdlib.h>
10444
10445 _ACEOF
10446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10447   $EGREP "free" >/dev/null 2>&1; then :
10448
10449 else
10450   ac_cv_header_stdc=no
10451 fi
10452 rm -f conftest*
10453
10454 fi
10455
10456 if test $ac_cv_header_stdc = yes; then
10457   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10458   if test "$cross_compiling" = yes; then :
10459   :
10460 else
10461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h.  */
10463 #include <ctype.h>
10464 #include <stdlib.h>
10465 #if ((' ' & 0x0FF) == 0x020)
10466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10468 #else
10469 # define ISLOWER(c) \
10470                    (('a' <= (c) && (c) <= 'i') \
10471                      || ('j' <= (c) && (c) <= 'r') \
10472                      || ('s' <= (c) && (c) <= 'z'))
10473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10474 #endif
10475
10476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10477 int
10478 main ()
10479 {
10480   int i;
10481   for (i = 0; i < 256; i++)
10482     if (XOR (islower (i), ISLOWER (i))
10483         || toupper (i) != TOUPPER (i))
10484       return 2;
10485   return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_run "$LINENO"; then :
10489
10490 else
10491   ac_cv_header_stdc=no
10492 fi
10493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10494   conftest.$ac_objext conftest.beam conftest.$ac_ext
10495 fi
10496
10497 fi
10498 fi
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10500 $as_echo "$ac_cv_header_stdc" >&6; }
10501 if test $ac_cv_header_stdc = yes; then
10502
10503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10504
10505 fi
10506
10507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10509                   inttypes.h stdint.h unistd.h
10510 do :
10511   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10513 "
10514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10515   cat >>confdefs.h <<_ACEOF
10516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10517 _ACEOF
10518
10519 fi
10520
10521 done
10522
10523
10524 for ac_header in dlfcn.h
10525 do :
10526   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10527 "
10528 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10529   cat >>confdefs.h <<_ACEOF
10530 #define HAVE_DLFCN_H 1
10531 _ACEOF
10532
10533 fi
10534
10535 done
10536
10537 # ------------------------------------ #
10538 #  Determine libtool default behavior  #
10539 # ------------------------------------ #
10540
10541 #
10542 # Default behavior is to enable shared and static libraries on systems
10543 # where libtool knows how to build both library versions, and does not
10544 # require separate configuration and build runs for each flavor.
10545 #
10546
10547 xc_lt_want_enable_shared='yes'
10548 xc_lt_want_enable_static='yes'
10549
10550 #
10551 # User may have disabled shared or static libraries.
10552 #
10553 case "x$enable_shared" in # (
10554   xno)
10555     xc_lt_want_enable_shared='no'
10556     ;;
10557 esac
10558 case "x$enable_static" in # (
10559   xno)
10560     xc_lt_want_enable_static='no'
10561     ;;
10562 esac
10563 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10564   test "x$xc_lt_want_enable_static" = 'xno'; then
10565   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10566 fi
10567
10568 #
10569 # Default behavior on systems that require independent configuration
10570 # and build runs for shared and static is to enable shared libraries
10571 # and disable static ones. On these systems option '--disable-shared'
10572 # must be used in order to build a proper static library.
10573 #
10574
10575 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10576   test "x$xc_lt_want_enable_static" = 'xyes'; then
10577   case $host_os in # (
10578     mingw* | pw32* | cegcc* | os2* | aix*)
10579       xc_lt_want_enable_static='no'
10580       ;;
10581   esac
10582 fi
10583
10584 #
10585 # Make libtool aware of current shared and static library preferences
10586 # taking in account that, depending on host characteristics, libtool
10587 # may modify these option preferences later in this configure script.
10588 #
10589
10590 enable_shared=$xc_lt_want_enable_shared
10591 enable_static=$xc_lt_want_enable_static
10592
10593 #
10594 # Default behavior is to build PIC objects for shared libraries and
10595 # non-PIC objects for static libraries.
10596 #
10597
10598 xc_lt_want_with_pic='default'
10599
10600 #
10601 # User may have specified PIC preference.
10602 #
10603
10604 case "x$with_pic" in # ((
10605   xno)
10606     xc_lt_want_with_pic='no'
10607     ;;
10608   xyes)
10609     xc_lt_want_with_pic='yes'
10610     ;;
10611 esac
10612
10613 #
10614 # Default behavior on some systems where building a shared library out
10615 # of non-PIC compiled objects will fail with following linker error
10616 # "relocation R_X86_64_32 can not be used when making a shared object"
10617 # is to build PIC objects even for static libraries. This behavior may
10618 # be overriden using 'configure --disable-shared --without-pic'.
10619 #
10620
10621 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10622   case $host_cpu in # (
10623     x86_64 | amd64 | ia64)
10624       case $host_os in # (
10625         linux* | freebsd*)
10626           xc_lt_want_with_pic='yes'
10627           ;;
10628       esac
10629       ;;
10630   esac
10631 fi
10632
10633 #
10634 # Make libtool aware of current PIC preference taking in account that,
10635 # depending on host characteristics, libtool may modify PIC default
10636 # behavior to fit host system idiosyncrasies later in this script.
10637 #
10638
10639 with_pic=$xc_lt_want_with_pic
10640
10641 ## ----------------------- ##
10642 ##  Start of libtool code  ##
10643 ## ----------------------- ##
10644
10645
10646
10647
10648 # Set options
10649 enable_win32_dll=yes
10650
10651 case $host in
10652 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10653   if test -n "$ac_tool_prefix"; then
10654   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10655 set dummy ${ac_tool_prefix}as; ac_word=$2
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657 $as_echo_n "checking for $ac_word... " >&6; }
10658 if ${ac_cv_prog_AS+:} false; then :
10659   $as_echo_n "(cached) " >&6
10660 else
10661   if test -n "$AS"; then
10662   ac_cv_prog_AS="$AS" # Let the user override the test.
10663 else
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10666 do
10667   IFS=$as_save_IFS
10668   test -z "$as_dir" && as_dir=.
10669     for ac_exec_ext in '' $ac_executable_extensions; do
10670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671     ac_cv_prog_AS="${ac_tool_prefix}as"
10672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673     break 2
10674   fi
10675 done
10676   done
10677 IFS=$as_save_IFS
10678
10679 fi
10680 fi
10681 AS=$ac_cv_prog_AS
10682 if test -n "$AS"; then
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10684 $as_echo "$AS" >&6; }
10685 else
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10688 fi
10689
10690
10691 fi
10692 if test -z "$ac_cv_prog_AS"; then
10693   ac_ct_AS=$AS
10694   # Extract the first word of "as", so it can be a program name with args.
10695 set dummy as; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   if test -n "$ac_ct_AS"; then
10702   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10703 else
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10706 do
10707   IFS=$as_save_IFS
10708   test -z "$as_dir" && as_dir=.
10709     for ac_exec_ext in '' $ac_executable_extensions; do
10710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711     ac_cv_prog_ac_ct_AS="as"
10712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713     break 2
10714   fi
10715 done
10716   done
10717 IFS=$as_save_IFS
10718
10719 fi
10720 fi
10721 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10722 if test -n "$ac_ct_AS"; then
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10724 $as_echo "$ac_ct_AS" >&6; }
10725 else
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 fi
10729
10730   if test "x$ac_ct_AS" = x; then
10731     AS="false"
10732   else
10733     case $cross_compiling:$ac_tool_warned in
10734 yes:)
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10737 ac_tool_warned=yes ;;
10738 esac
10739     AS=$ac_ct_AS
10740   fi
10741 else
10742   AS="$ac_cv_prog_AS"
10743 fi
10744
10745   if test -n "$ac_tool_prefix"; then
10746   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_DLLTOOL+:} false; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   if test -n "$DLLTOOL"; then
10754   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761     for ac_exec_ext in '' $ac_executable_extensions; do
10762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765     break 2
10766   fi
10767 done
10768   done
10769 IFS=$as_save_IFS
10770
10771 fi
10772 fi
10773 DLLTOOL=$ac_cv_prog_DLLTOOL
10774 if test -n "$DLLTOOL"; then
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10776 $as_echo "$DLLTOOL" >&6; }
10777 else
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10780 fi
10781
10782
10783 fi
10784 if test -z "$ac_cv_prog_DLLTOOL"; then
10785   ac_ct_DLLTOOL=$DLLTOOL
10786   # Extract the first word of "dlltool", so it can be a program name with args.
10787 set dummy dlltool; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10791   $as_echo_n "(cached) " >&6
10792 else
10793   if test -n "$ac_ct_DLLTOOL"; then
10794   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10795 else
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799   IFS=$as_save_IFS
10800   test -z "$as_dir" && as_dir=.
10801     for ac_exec_ext in '' $ac_executable_extensions; do
10802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805     break 2
10806   fi
10807 done
10808   done
10809 IFS=$as_save_IFS
10810
10811 fi
10812 fi
10813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10814 if test -n "$ac_ct_DLLTOOL"; then
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10816 $as_echo "$ac_ct_DLLTOOL" >&6; }
10817 else
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 fi
10821
10822   if test "x$ac_ct_DLLTOOL" = x; then
10823     DLLTOOL="false"
10824   else
10825     case $cross_compiling:$ac_tool_warned in
10826 yes:)
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10829 ac_tool_warned=yes ;;
10830 esac
10831     DLLTOOL=$ac_ct_DLLTOOL
10832   fi
10833 else
10834   DLLTOOL="$ac_cv_prog_DLLTOOL"
10835 fi
10836
10837   if test -n "$ac_tool_prefix"; then
10838   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_prog_OBJDUMP+:} false; then :
10843   $as_echo_n "(cached) " >&6
10844 else
10845   if test -n "$OBJDUMP"; then
10846   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10847 else
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10850 do
10851   IFS=$as_save_IFS
10852   test -z "$as_dir" && as_dir=.
10853     for ac_exec_ext in '' $ac_executable_extensions; do
10854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10855     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857     break 2
10858   fi
10859 done
10860   done
10861 IFS=$as_save_IFS
10862
10863 fi
10864 fi
10865 OBJDUMP=$ac_cv_prog_OBJDUMP
10866 if test -n "$OBJDUMP"; then
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10868 $as_echo "$OBJDUMP" >&6; }
10869 else
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872 fi
10873
10874
10875 fi
10876 if test -z "$ac_cv_prog_OBJDUMP"; then
10877   ac_ct_OBJDUMP=$OBJDUMP
10878   # Extract the first word of "objdump", so it can be a program name with args.
10879 set dummy objdump; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   if test -n "$ac_ct_OBJDUMP"; then
10886   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10887 else
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893     for ac_exec_ext in '' $ac_executable_extensions; do
10894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900   done
10901 IFS=$as_save_IFS
10902
10903 fi
10904 fi
10905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10906 if test -n "$ac_ct_OBJDUMP"; then
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10908 $as_echo "$ac_ct_OBJDUMP" >&6; }
10909 else
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10912 fi
10913
10914   if test "x$ac_ct_OBJDUMP" = x; then
10915     OBJDUMP="false"
10916   else
10917     case $cross_compiling:$ac_tool_warned in
10918 yes:)
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10921 ac_tool_warned=yes ;;
10922 esac
10923     OBJDUMP=$ac_ct_OBJDUMP
10924   fi
10925 else
10926   OBJDUMP="$ac_cv_prog_OBJDUMP"
10927 fi
10928
10929   ;;
10930 esac
10931
10932 test -z "$AS" && AS=as
10933
10934
10935
10936
10937
10938 test -z "$DLLTOOL" && DLLTOOL=dlltool
10939
10940
10941
10942
10943
10944 test -z "$OBJDUMP" && OBJDUMP=objdump
10945
10946
10947
10948
10949
10950
10951
10952         enable_dlopen=no
10953
10954
10955
10956             # Check whether --enable-shared was given.
10957 if test "${enable_shared+set}" = set; then :
10958   enableval=$enable_shared; p=${PACKAGE-default}
10959     case $enableval in
10960     yes) enable_shared=yes ;;
10961     no) enable_shared=no ;;
10962     *)
10963       enable_shared=no
10964       # Look at the argument we got.  We use all the common list separators.
10965       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10966       for pkg in $enableval; do
10967         IFS=$lt_save_ifs
10968         if test "X$pkg" = "X$p"; then
10969           enable_shared=yes
10970         fi
10971       done
10972       IFS=$lt_save_ifs
10973       ;;
10974     esac
10975 else
10976   enable_shared=yes
10977 fi
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987   # Check whether --enable-static was given.
10988 if test "${enable_static+set}" = set; then :
10989   enableval=$enable_static; p=${PACKAGE-default}
10990     case $enableval in
10991     yes) enable_static=yes ;;
10992     no) enable_static=no ;;
10993     *)
10994      enable_static=no
10995       # Look at the argument we got.  We use all the common list separators.
10996       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10997       for pkg in $enableval; do
10998         IFS=$lt_save_ifs
10999         if test "X$pkg" = "X$p"; then
11000           enable_static=yes
11001         fi
11002       done
11003       IFS=$lt_save_ifs
11004       ;;
11005     esac
11006 else
11007   enable_static=yes
11008 fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 # Check whether --with-pic was given.
11020 if test "${with_pic+set}" = set; then :
11021   withval=$with_pic; lt_p=${PACKAGE-default}
11022     case $withval in
11023     yes|no) pic_mode=$withval ;;
11024     *)
11025       pic_mode=default
11026       # Look at the argument we got.  We use all the common list separators.
11027       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11028       for lt_pkg in $withval; do
11029         IFS=$lt_save_ifs
11030         if test "X$lt_pkg" = "X$lt_p"; then
11031           pic_mode=yes
11032         fi
11033       done
11034       IFS=$lt_save_ifs
11035       ;;
11036     esac
11037 else
11038   pic_mode=default
11039 fi
11040
11041
11042
11043
11044
11045
11046
11047
11048   # Check whether --enable-fast-install was given.
11049 if test "${enable_fast_install+set}" = set; then :
11050   enableval=$enable_fast_install; p=${PACKAGE-default}
11051     case $enableval in
11052     yes) enable_fast_install=yes ;;
11053     no) enable_fast_install=no ;;
11054     *)
11055       enable_fast_install=no
11056       # Look at the argument we got.  We use all the common list separators.
11057       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11058       for pkg in $enableval; do
11059         IFS=$lt_save_ifs
11060         if test "X$pkg" = "X$p"; then
11061           enable_fast_install=yes
11062         fi
11063       done
11064       IFS=$lt_save_ifs
11065       ;;
11066     esac
11067 else
11068   enable_fast_install=yes
11069 fi
11070
11071
11072
11073
11074
11075
11076
11077
11078   shared_archive_member_spec=
11079 case $host,$enable_shared in
11080 power*-*-aix[5-9]*,yes)
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11082 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11083
11084 # Check whether --with-aix-soname was given.
11085 if test "${with_aix_soname+set}" = set; then :
11086   withval=$with_aix_soname; case $withval in
11087     aix|svr4|both)
11088       ;;
11089     *)
11090       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11091       ;;
11092     esac
11093     lt_cv_with_aix_soname=$with_aix_soname
11094 else
11095   if ${lt_cv_with_aix_soname+:} false; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098   lt_cv_with_aix_soname=aix
11099 fi
11100
11101     with_aix_soname=$lt_cv_with_aix_soname
11102 fi
11103
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11105 $as_echo "$with_aix_soname" >&6; }
11106   if test aix != "$with_aix_soname"; then
11107     # For the AIX way of multilib, we name the shared archive member
11108     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11109     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11110     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11111     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11112     if test 64 = "${OBJECT_MODE-32}"; then
11113       shared_archive_member_spec=shr_64
11114     else
11115       shared_archive_member_spec=shr
11116     fi
11117   fi
11118   ;;
11119 *)
11120   with_aix_soname=aix
11121   ;;
11122 esac
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133 # This can be used to rebuild libtool when needed
11134 LIBTOOL_DEPS=$ltmain
11135
11136 # Always use our own libtool.
11137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 test -z "$LN_S" && LN_S="ln -s"
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183 if test -n "${ZSH_VERSION+set}"; then
11184    setopt NO_GLOB_SUBST
11185 fi
11186
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11188 $as_echo_n "checking for objdir... " >&6; }
11189 if ${lt_cv_objdir+:} false; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   rm -f .libs 2>/dev/null
11193 mkdir .libs 2>/dev/null
11194 if test -d .libs; then
11195   lt_cv_objdir=.libs
11196 else
11197   # MS-DOS does not allow filenames that begin with a dot.
11198   lt_cv_objdir=_libs
11199 fi
11200 rmdir .libs 2>/dev/null
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11203 $as_echo "$lt_cv_objdir" >&6; }
11204 objdir=$lt_cv_objdir
11205
11206
11207
11208
11209
11210 cat >>confdefs.h <<_ACEOF
11211 #define LT_OBJDIR "$lt_cv_objdir/"
11212 _ACEOF
11213
11214
11215
11216
11217 case $host_os in
11218 aix3*)
11219   # AIX sometimes has problems with the GCC collect2 program.  For some
11220   # reason, if we set the COLLECT_NAMES environment variable, the problems
11221   # vanish in a puff of smoke.
11222   if test set != "${COLLECT_NAMES+set}"; then
11223     COLLECT_NAMES=
11224     export COLLECT_NAMES
11225   fi
11226   ;;
11227 esac
11228
11229 # Global variables:
11230 ofile=libtool
11231 can_build_shared=yes
11232
11233 # All known linkers require a '.a' archive for static linking (except MSVC,
11234 # which needs '.lib').
11235 libext=a
11236
11237 with_gnu_ld=$lt_cv_prog_gnu_ld
11238
11239 old_CC=$CC
11240 old_CFLAGS=$CFLAGS
11241
11242 # Set sane defaults for various variables
11243 test -z "$CC" && CC=cc
11244 test -z "$LTCC" && LTCC=$CC
11245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11246 test -z "$LD" && LD=ld
11247 test -z "$ac_objext" && ac_objext=o
11248
11249 func_cc_basename $compiler
11250 cc_basename=$func_cc_basename_result
11251
11252
11253 # Only perform the check for file, if the check method requires it
11254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11255 case $deplibs_check_method in
11256 file_magic*)
11257   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11259 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11260 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11261   $as_echo_n "(cached) " >&6
11262 else
11263   case $MAGIC_CMD in
11264 [\\/*] |  ?:[\\/]*)
11265   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11266   ;;
11267 *)
11268   lt_save_MAGIC_CMD=$MAGIC_CMD
11269   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11270   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11271   for ac_dir in $ac_dummy; do
11272     IFS=$lt_save_ifs
11273     test -z "$ac_dir" && ac_dir=.
11274     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11275       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11276       if test -n "$file_magic_test_file"; then
11277         case $deplibs_check_method in
11278         "file_magic "*)
11279           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11280           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11281           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11282             $EGREP "$file_magic_regex" > /dev/null; then
11283             :
11284           else
11285             cat <<_LT_EOF 1>&2
11286
11287 *** Warning: the command libtool uses to detect shared libraries,
11288 *** $file_magic_cmd, produces output that libtool cannot recognize.
11289 *** The result is that libtool may fail to recognize shared libraries
11290 *** as such.  This will affect the creation of libtool libraries that
11291 *** depend on shared libraries, but programs linked with such libtool
11292 *** libraries will work regardless of this problem.  Nevertheless, you
11293 *** may want to report the problem to your system manager and/or to
11294 *** bug-libtool@gnu.org
11295
11296 _LT_EOF
11297           fi ;;
11298         esac
11299       fi
11300       break
11301     fi
11302   done
11303   IFS=$lt_save_ifs
11304   MAGIC_CMD=$lt_save_MAGIC_CMD
11305   ;;
11306 esac
11307 fi
11308
11309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11310 if test -n "$MAGIC_CMD"; then
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11312 $as_echo "$MAGIC_CMD" >&6; }
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316 fi
11317
11318
11319
11320
11321
11322 if test -z "$lt_cv_path_MAGIC_CMD"; then
11323   if test -n "$ac_tool_prefix"; then
11324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11325 $as_echo_n "checking for file... " >&6; }
11326 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11327   $as_echo_n "(cached) " >&6
11328 else
11329   case $MAGIC_CMD in
11330 [\\/*] |  ?:[\\/]*)
11331   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11332   ;;
11333 *)
11334   lt_save_MAGIC_CMD=$MAGIC_CMD
11335   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11336   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11337   for ac_dir in $ac_dummy; do
11338     IFS=$lt_save_ifs
11339     test -z "$ac_dir" && ac_dir=.
11340     if test -f "$ac_dir/file"; then
11341       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11342       if test -n "$file_magic_test_file"; then
11343         case $deplibs_check_method in
11344         "file_magic "*)
11345           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11346           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11347           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11348             $EGREP "$file_magic_regex" > /dev/null; then
11349             :
11350           else
11351             cat <<_LT_EOF 1>&2
11352
11353 *** Warning: the command libtool uses to detect shared libraries,
11354 *** $file_magic_cmd, produces output that libtool cannot recognize.
11355 *** The result is that libtool may fail to recognize shared libraries
11356 *** as such.  This will affect the creation of libtool libraries that
11357 *** depend on shared libraries, but programs linked with such libtool
11358 *** libraries will work regardless of this problem.  Nevertheless, you
11359 *** may want to report the problem to your system manager and/or to
11360 *** bug-libtool@gnu.org
11361
11362 _LT_EOF
11363           fi ;;
11364         esac
11365       fi
11366       break
11367     fi
11368   done
11369   IFS=$lt_save_ifs
11370   MAGIC_CMD=$lt_save_MAGIC_CMD
11371   ;;
11372 esac
11373 fi
11374
11375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11376 if test -n "$MAGIC_CMD"; then
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11378 $as_echo "$MAGIC_CMD" >&6; }
11379 else
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383
11384
11385   else
11386     MAGIC_CMD=:
11387   fi
11388 fi
11389
11390   fi
11391   ;;
11392 esac
11393
11394 # Use C for the default configuration in the libtool script
11395
11396 lt_save_CC=$CC
11397 ac_ext=c
11398 ac_cpp='$CPP $CPPFLAGS'
11399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11402
11403
11404 # Source file extension for C test sources.
11405 ac_ext=c
11406
11407 # Object file extension for compiled C test sources.
11408 objext=o
11409 objext=$objext
11410
11411 # Code to be used in simple compile tests
11412 lt_simple_compile_test_code="int some_variable = 0;"
11413
11414 # Code to be used in simple link tests
11415 lt_simple_link_test_code='int main(){return(0);}'
11416
11417
11418
11419
11420
11421
11422
11423 # If no C compiler was specified, use CC.
11424 LTCC=${LTCC-"$CC"}
11425
11426 # If no C compiler flags were specified, use CFLAGS.
11427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11428
11429 # Allow CC to be a program name with arguments.
11430 compiler=$CC
11431
11432 # Save the default compiler, since it gets overwritten when the other
11433 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11434 compiler_DEFAULT=$CC
11435
11436 # save warnings/boilerplate of simple test code
11437 ac_outfile=conftest.$ac_objext
11438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11440 _lt_compiler_boilerplate=`cat conftest.err`
11441 $RM conftest*
11442
11443 ac_outfile=conftest.$ac_objext
11444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11446 _lt_linker_boilerplate=`cat conftest.err`
11447 $RM -r conftest*
11448
11449
11450 ## CAVEAT EMPTOR:
11451 ## There is no encapsulation within the following macros, do not change
11452 ## the running order or otherwise move them around unless you know exactly
11453 ## what you are doing...
11454 if test -n "$compiler"; then
11455
11456 lt_prog_compiler_no_builtin_flag=
11457
11458 if test yes = "$GCC"; then
11459   case $cc_basename in
11460   nvcc*)
11461     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11462   *)
11463     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11464   esac
11465
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11468 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   lt_cv_prog_compiler_rtti_exceptions=no
11472    ac_outfile=conftest.$ac_objext
11473    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11474    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11475    # Insert the option either (1) after the last *FLAGS variable, or
11476    # (2) before a word containing "conftest.", or (3) at the end.
11477    # Note that $ac_compile itself does not contain backslashes and begins
11478    # with a dollar sign (not a hyphen), so the echo should work correctly.
11479    # The option is referenced via a variable to avoid confusing sed.
11480    lt_compile=`echo "$ac_compile" | $SED \
11481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11483    -e 's:$: $lt_compiler_flag:'`
11484    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11485    (eval "$lt_compile" 2>conftest.err)
11486    ac_status=$?
11487    cat conftest.err >&5
11488    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489    if (exit $ac_status) && test -s "$ac_outfile"; then
11490      # The compiler can only warn and ignore the option if not recognized
11491      # So say no if there are warnings other than the usual output.
11492      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11493      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11494      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11495        lt_cv_prog_compiler_rtti_exceptions=yes
11496      fi
11497    fi
11498    $RM conftest*
11499
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11503
11504 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11505     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11506 else
11507     :
11508 fi
11509
11510 fi
11511
11512
11513
11514
11515
11516
11517   lt_prog_compiler_wl=
11518 lt_prog_compiler_pic=
11519 lt_prog_compiler_static=
11520
11521
11522   if test yes = "$GCC"; then
11523     lt_prog_compiler_wl='-Wl,'
11524     lt_prog_compiler_static='-static'
11525
11526     case $host_os in
11527       aix*)
11528       # All AIX code is PIC.
11529       if test ia64 = "$host_cpu"; then
11530         # AIX 5 now supports IA64 processor
11531         lt_prog_compiler_static='-Bstatic'
11532       fi
11533       lt_prog_compiler_pic='-fPIC'
11534       ;;
11535
11536     amigaos*)
11537       case $host_cpu in
11538       powerpc)
11539             # see comment about AmigaOS4 .so support
11540             lt_prog_compiler_pic='-fPIC'
11541         ;;
11542       m68k)
11543             # FIXME: we need at least 68020 code to build shared libraries, but
11544             # adding the '-m68020' flag to GCC prevents building anything better,
11545             # like '-m68040'.
11546             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11547         ;;
11548       esac
11549       ;;
11550
11551     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11552       # PIC is the default for these OSes.
11553       ;;
11554
11555     mingw* | cygwin* | pw32* | os2* | cegcc*)
11556       # This hack is so that the source file can tell whether it is being
11557       # built for inclusion in a dll (and should export symbols for example).
11558       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11559       # (--disable-auto-import) libraries
11560       lt_prog_compiler_pic='-DDLL_EXPORT'
11561       case $host_os in
11562       os2*)
11563         lt_prog_compiler_static='$wl-static'
11564         ;;
11565       esac
11566       ;;
11567
11568     darwin* | rhapsody*)
11569       # PIC is the default on this platform
11570       # Common symbols not allowed in MH_DYLIB files
11571       lt_prog_compiler_pic='-fno-common'
11572       ;;
11573
11574     haiku*)
11575       # PIC is the default for Haiku.
11576       # The "-static" flag exists, but is broken.
11577       lt_prog_compiler_static=
11578       ;;
11579
11580     hpux*)
11581       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11582       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11583       # sets the default TLS model and affects inlining.
11584       case $host_cpu in
11585       hppa*64*)
11586         # +Z the default
11587         ;;
11588       *)
11589         lt_prog_compiler_pic='-fPIC'
11590         ;;
11591       esac
11592       ;;
11593
11594     interix[3-9]*)
11595       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11596       # Instead, we relocate shared libraries at runtime.
11597       ;;
11598
11599     msdosdjgpp*)
11600       # Just because we use GCC doesn't mean we suddenly get shared libraries
11601       # on systems that don't support them.
11602       lt_prog_compiler_can_build_shared=no
11603       enable_shared=no
11604       ;;
11605
11606     *nto* | *qnx*)
11607       # QNX uses GNU C++, but need to define -shared option too, otherwise
11608       # it will coredump.
11609       lt_prog_compiler_pic='-fPIC -shared'
11610       ;;
11611
11612     sysv4*MP*)
11613       if test -d /usr/nec; then
11614         lt_prog_compiler_pic=-Kconform_pic
11615       fi
11616       ;;
11617
11618     *)
11619       lt_prog_compiler_pic='-fPIC'
11620       ;;
11621     esac
11622
11623     case $cc_basename in
11624     nvcc*) # Cuda Compiler Driver 2.2
11625       lt_prog_compiler_wl='-Xlinker '
11626       if test -n "$lt_prog_compiler_pic"; then
11627         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11628       fi
11629       ;;
11630     esac
11631   else
11632     # PORTME Check for flag to pass linker flags through the system compiler.
11633     case $host_os in
11634     aix*)
11635       lt_prog_compiler_wl='-Wl,'
11636       if test ia64 = "$host_cpu"; then
11637         # AIX 5 now supports IA64 processor
11638         lt_prog_compiler_static='-Bstatic'
11639       else
11640         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11641       fi
11642       ;;
11643
11644     darwin* | rhapsody*)
11645       # PIC is the default on this platform
11646       # Common symbols not allowed in MH_DYLIB files
11647       lt_prog_compiler_pic='-fno-common'
11648       case $cc_basename in
11649       nagfor*)
11650         # NAG Fortran compiler
11651         lt_prog_compiler_wl='-Wl,-Wl,,'
11652         lt_prog_compiler_pic='-PIC'
11653         lt_prog_compiler_static='-Bstatic'
11654         ;;
11655       esac
11656       ;;
11657
11658     mingw* | cygwin* | pw32* | os2* | cegcc*)
11659       # This hack is so that the source file can tell whether it is being
11660       # built for inclusion in a dll (and should export symbols for example).
11661       lt_prog_compiler_pic='-DDLL_EXPORT'
11662       case $host_os in
11663       os2*)
11664         lt_prog_compiler_static='$wl-static'
11665         ;;
11666       esac
11667       ;;
11668
11669     hpux9* | hpux10* | hpux11*)
11670       lt_prog_compiler_wl='-Wl,'
11671       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11672       # not for PA HP-UX.
11673       case $host_cpu in
11674       hppa*64*|ia64*)
11675         # +Z the default
11676         ;;
11677       *)
11678         lt_prog_compiler_pic='+Z'
11679         ;;
11680       esac
11681       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11682       lt_prog_compiler_static='$wl-a ${wl}archive'
11683       ;;
11684
11685     irix5* | irix6* | nonstopux*)
11686       lt_prog_compiler_wl='-Wl,'
11687       # PIC (with -KPIC) is the default.
11688       lt_prog_compiler_static='-non_shared'
11689       ;;
11690
11691     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11692       case $cc_basename in
11693       # old Intel for x86_64, which still supported -KPIC.
11694       ecc*)
11695         lt_prog_compiler_wl='-Wl,'
11696         lt_prog_compiler_pic='-KPIC'
11697         lt_prog_compiler_static='-static'
11698         ;;
11699       # icc used to be incompatible with GCC.
11700       # ICC 10 doesn't accept -KPIC any more.
11701       icc* | ifort*)
11702         lt_prog_compiler_wl='-Wl,'
11703         lt_prog_compiler_pic='-fPIC'
11704         lt_prog_compiler_static='-static'
11705         ;;
11706       # Lahey Fortran 8.1.
11707       lf95*)
11708         lt_prog_compiler_wl='-Wl,'
11709         lt_prog_compiler_pic='--shared'
11710         lt_prog_compiler_static='--static'
11711         ;;
11712       nagfor*)
11713         # NAG Fortran compiler
11714         lt_prog_compiler_wl='-Wl,-Wl,,'
11715         lt_prog_compiler_pic='-PIC'
11716         lt_prog_compiler_static='-Bstatic'
11717         ;;
11718       tcc*)
11719         # Fabrice Bellard et al's Tiny C Compiler
11720         lt_prog_compiler_wl='-Wl,'
11721         lt_prog_compiler_pic='-fPIC'
11722         lt_prog_compiler_static='-static'
11723         ;;
11724       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11725         # Portland Group compilers (*not* the Pentium gcc compiler,
11726         # which looks to be a dead project)
11727         lt_prog_compiler_wl='-Wl,'
11728         lt_prog_compiler_pic='-fpic'
11729         lt_prog_compiler_static='-Bstatic'
11730         ;;
11731       ccc*)
11732         lt_prog_compiler_wl='-Wl,'
11733         # All Alpha code is PIC.
11734         lt_prog_compiler_static='-non_shared'
11735         ;;
11736       xl* | bgxl* | bgf* | mpixl*)
11737         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11738         lt_prog_compiler_wl='-Wl,'
11739         lt_prog_compiler_pic='-qpic'
11740         lt_prog_compiler_static='-qstaticlink'
11741         ;;
11742       *)
11743         case `$CC -V 2>&1 | sed 5q` in
11744         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11745           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11746           lt_prog_compiler_pic='-KPIC'
11747           lt_prog_compiler_static='-Bstatic'
11748           lt_prog_compiler_wl=''
11749           ;;
11750         *Sun\ F* | *Sun*Fortran*)
11751           lt_prog_compiler_pic='-KPIC'
11752           lt_prog_compiler_static='-Bstatic'
11753           lt_prog_compiler_wl='-Qoption ld '
11754           ;;
11755         *Sun\ C*)
11756           # Sun C 5.9
11757           lt_prog_compiler_pic='-KPIC'
11758           lt_prog_compiler_static='-Bstatic'
11759           lt_prog_compiler_wl='-Wl,'
11760           ;;
11761         *Intel*\ [CF]*Compiler*)
11762           lt_prog_compiler_wl='-Wl,'
11763           lt_prog_compiler_pic='-fPIC'
11764           lt_prog_compiler_static='-static'
11765           ;;
11766         *Portland\ Group*)
11767           lt_prog_compiler_wl='-Wl,'
11768           lt_prog_compiler_pic='-fpic'
11769           lt_prog_compiler_static='-Bstatic'
11770           ;;
11771         esac
11772         ;;
11773       esac
11774       ;;
11775
11776     newsos6)
11777       lt_prog_compiler_pic='-KPIC'
11778       lt_prog_compiler_static='-Bstatic'
11779       ;;
11780
11781     *nto* | *qnx*)
11782       # QNX uses GNU C++, but need to define -shared option too, otherwise
11783       # it will coredump.
11784       lt_prog_compiler_pic='-fPIC -shared'
11785       ;;
11786
11787     osf3* | osf4* | osf5*)
11788       lt_prog_compiler_wl='-Wl,'
11789       # All OSF/1 code is PIC.
11790       lt_prog_compiler_static='-non_shared'
11791       ;;
11792
11793     rdos*)
11794       lt_prog_compiler_static='-non_shared'
11795       ;;
11796
11797     solaris*)
11798       lt_prog_compiler_pic='-KPIC'
11799       lt_prog_compiler_static='-Bstatic'
11800       case $cc_basename in
11801       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11802         lt_prog_compiler_wl='-Qoption ld ';;
11803       *)
11804         lt_prog_compiler_wl='-Wl,';;
11805       esac
11806       ;;
11807
11808     sunos4*)
11809       lt_prog_compiler_wl='-Qoption ld '
11810       lt_prog_compiler_pic='-PIC'
11811       lt_prog_compiler_static='-Bstatic'
11812       ;;
11813
11814     sysv4 | sysv4.2uw2* | sysv4.3*)
11815       lt_prog_compiler_wl='-Wl,'
11816       lt_prog_compiler_pic='-KPIC'
11817       lt_prog_compiler_static='-Bstatic'
11818       ;;
11819
11820     sysv4*MP*)
11821       if test -d /usr/nec; then
11822         lt_prog_compiler_pic='-Kconform_pic'
11823         lt_prog_compiler_static='-Bstatic'
11824       fi
11825       ;;
11826
11827     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11828       lt_prog_compiler_wl='-Wl,'
11829       lt_prog_compiler_pic='-KPIC'
11830       lt_prog_compiler_static='-Bstatic'
11831       ;;
11832
11833     unicos*)
11834       lt_prog_compiler_wl='-Wl,'
11835       lt_prog_compiler_can_build_shared=no
11836       ;;
11837
11838     uts4*)
11839       lt_prog_compiler_pic='-pic'
11840       lt_prog_compiler_static='-Bstatic'
11841       ;;
11842
11843     *)
11844       lt_prog_compiler_can_build_shared=no
11845       ;;
11846     esac
11847   fi
11848
11849 case $host_os in
11850   # For platforms that do not support PIC, -DPIC is meaningless:
11851   *djgpp*)
11852     lt_prog_compiler_pic=
11853     ;;
11854   *)
11855     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11856     ;;
11857 esac
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11860 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11861 if ${lt_cv_prog_compiler_pic+:} false; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11867 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11868 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11869
11870 #
11871 # Check to make sure the PIC flag actually works.
11872 #
11873 if test -n "$lt_prog_compiler_pic"; then
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11875 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11876 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   lt_cv_prog_compiler_pic_works=no
11880    ac_outfile=conftest.$ac_objext
11881    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11882    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11883    # Insert the option either (1) after the last *FLAGS variable, or
11884    # (2) before a word containing "conftest.", or (3) at the end.
11885    # Note that $ac_compile itself does not contain backslashes and begins
11886    # with a dollar sign (not a hyphen), so the echo should work correctly.
11887    # The option is referenced via a variable to avoid confusing sed.
11888    lt_compile=`echo "$ac_compile" | $SED \
11889    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11891    -e 's:$: $lt_compiler_flag:'`
11892    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11893    (eval "$lt_compile" 2>conftest.err)
11894    ac_status=$?
11895    cat conftest.err >&5
11896    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897    if (exit $ac_status) && test -s "$ac_outfile"; then
11898      # The compiler can only warn and ignore the option if not recognized
11899      # So say no if there are warnings other than the usual output.
11900      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11901      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11902      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11903        lt_cv_prog_compiler_pic_works=yes
11904      fi
11905    fi
11906    $RM conftest*
11907
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11910 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11911
11912 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11913     case $lt_prog_compiler_pic in
11914      "" | " "*) ;;
11915      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11916      esac
11917 else
11918     lt_prog_compiler_pic=
11919      lt_prog_compiler_can_build_shared=no
11920 fi
11921
11922 fi
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934 #
11935 # Check to make sure the static flag actually works.
11936 #
11937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11939 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11940 if ${lt_cv_prog_compiler_static_works+:} false; then :
11941   $as_echo_n "(cached) " >&6
11942 else
11943   lt_cv_prog_compiler_static_works=no
11944    save_LDFLAGS=$LDFLAGS
11945    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11946    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11947    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11948      # The linker can only warn and ignore the option if not recognized
11949      # So say no if there are warnings
11950      if test -s conftest.err; then
11951        # Append any errors to the config.log.
11952        cat conftest.err 1>&5
11953        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11954        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11955        if diff conftest.exp conftest.er2 >/dev/null; then
11956          lt_cv_prog_compiler_static_works=yes
11957        fi
11958      else
11959        lt_cv_prog_compiler_static_works=yes
11960      fi
11961    fi
11962    $RM -r conftest*
11963    LDFLAGS=$save_LDFLAGS
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11967 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11968
11969 if test yes = "$lt_cv_prog_compiler_static_works"; then
11970     :
11971 else
11972     lt_prog_compiler_static=
11973 fi
11974
11975
11976
11977
11978
11979
11980
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11983 if ${lt_cv_prog_compiler_c_o+:} false; then :
11984   $as_echo_n "(cached) " >&6
11985 else
11986   lt_cv_prog_compiler_c_o=no
11987    $RM -r conftest 2>/dev/null
11988    mkdir conftest
11989    cd conftest
11990    mkdir out
11991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11992
11993    lt_compiler_flag="-o out/conftest2.$ac_objext"
11994    # Insert the option either (1) after the last *FLAGS variable, or
11995    # (2) before a word containing "conftest.", or (3) at the end.
11996    # Note that $ac_compile itself does not contain backslashes and begins
11997    # with a dollar sign (not a hyphen), so the echo should work correctly.
11998    lt_compile=`echo "$ac_compile" | $SED \
11999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001    -e 's:$: $lt_compiler_flag:'`
12002    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12003    (eval "$lt_compile" 2>out/conftest.err)
12004    ac_status=$?
12005    cat out/conftest.err >&5
12006    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12008    then
12009      # The compiler can only warn and ignore the option if not recognized
12010      # So say no if there are warnings
12011      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12012      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12013      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12014        lt_cv_prog_compiler_c_o=yes
12015      fi
12016    fi
12017    chmod u+w . 2>&5
12018    $RM conftest*
12019    # SGI C++ compiler will create directory out/ii_files/ for
12020    # template instantiation
12021    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12022    $RM out/* && rmdir out
12023    cd ..
12024    $RM -r conftest
12025    $RM conftest*
12026
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12030
12031
12032
12033
12034
12035
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12038 if ${lt_cv_prog_compiler_c_o+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   lt_cv_prog_compiler_c_o=no
12042    $RM -r conftest 2>/dev/null
12043    mkdir conftest
12044    cd conftest
12045    mkdir out
12046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12047
12048    lt_compiler_flag="-o out/conftest2.$ac_objext"
12049    # Insert the option either (1) after the last *FLAGS variable, or
12050    # (2) before a word containing "conftest.", or (3) at the end.
12051    # Note that $ac_compile itself does not contain backslashes and begins
12052    # with a dollar sign (not a hyphen), so the echo should work correctly.
12053    lt_compile=`echo "$ac_compile" | $SED \
12054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056    -e 's:$: $lt_compiler_flag:'`
12057    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12058    (eval "$lt_compile" 2>out/conftest.err)
12059    ac_status=$?
12060    cat out/conftest.err >&5
12061    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12063    then
12064      # The compiler can only warn and ignore the option if not recognized
12065      # So say no if there are warnings
12066      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12069        lt_cv_prog_compiler_c_o=yes
12070      fi
12071    fi
12072    chmod u+w . 2>&5
12073    $RM conftest*
12074    # SGI C++ compiler will create directory out/ii_files/ for
12075    # template instantiation
12076    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12077    $RM out/* && rmdir out
12078    cd ..
12079    $RM -r conftest
12080    $RM conftest*
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12085
12086
12087
12088
12089 hard_links=nottested
12090 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12091   # do not overwrite the value of need_locks provided by the user
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12093 $as_echo_n "checking if we can lock with hard links... " >&6; }
12094   hard_links=yes
12095   $RM conftest*
12096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12097   touch conftest.a
12098   ln conftest.a conftest.b 2>&5 || hard_links=no
12099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12101 $as_echo "$hard_links" >&6; }
12102   if test no = "$hard_links"; then
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12104 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12105     need_locks=warn
12106   fi
12107 else
12108   need_locks=no
12109 fi
12110
12111
12112
12113
12114
12115
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118
12119   runpath_var=
12120   allow_undefined_flag=
12121   always_export_symbols=no
12122   archive_cmds=
12123   archive_expsym_cmds=
12124   compiler_needs_object=no
12125   enable_shared_with_static_runtimes=no
12126   export_dynamic_flag_spec=
12127   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12128   hardcode_automatic=no
12129   hardcode_direct=no
12130   hardcode_direct_absolute=no
12131   hardcode_libdir_flag_spec=
12132   hardcode_libdir_separator=
12133   hardcode_minus_L=no
12134   hardcode_shlibpath_var=unsupported
12135   inherit_rpath=no
12136   link_all_deplibs=unknown
12137   module_cmds=
12138   module_expsym_cmds=
12139   old_archive_from_new_cmds=
12140   old_archive_from_expsyms_cmds=
12141   thread_safe_flag_spec=
12142   whole_archive_flag_spec=
12143   # include_expsyms should be a list of space-separated symbols to be *always*
12144   # included in the symbol list
12145   include_expsyms=
12146   # exclude_expsyms can be an extended regexp of symbols to exclude
12147   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12148   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12149   # as well as any symbol that contains 'd'.
12150   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152   # platforms (ab)use it in PIC code, but their linkers get confused if
12153   # the symbol is explicitly referenced.  Since portable code cannot
12154   # rely on this symbol name, it's probably fine to never include it in
12155   # preloaded symbol tables.
12156   # Exclude shared library initialization/finalization symbols.
12157   extract_expsyms_cmds=
12158
12159   case $host_os in
12160   cygwin* | mingw* | pw32* | cegcc*)
12161     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162     # When not using gcc, we currently assume that we are using
12163     # Microsoft Visual C++.
12164     if test yes != "$GCC"; then
12165       with_gnu_ld=no
12166     fi
12167     ;;
12168   interix*)
12169     # we just hope/assume this is gcc and not c89 (= MSVC++)
12170     with_gnu_ld=yes
12171     ;;
12172   openbsd* | bitrig*)
12173     with_gnu_ld=no
12174     ;;
12175   linux* | k*bsd*-gnu | gnu*)
12176     link_all_deplibs=no
12177     ;;
12178   esac
12179
12180   ld_shlibs=yes
12181
12182   # On some targets, GNU ld is compatible enough with the native linker
12183   # that we're better off using the native interface for both.
12184   lt_use_gnu_ld_interface=no
12185   if test yes = "$with_gnu_ld"; then
12186     case $host_os in
12187       aix*)
12188         # The AIX port of GNU ld has always aspired to compatibility
12189         # with the native linker.  However, as the warning in the GNU ld
12190         # block says, versions before 2.19.5* couldn't really create working
12191         # shared libraries, regardless of the interface used.
12192         case `$LD -v 2>&1` in
12193           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12194           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12195           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12196           *)
12197             lt_use_gnu_ld_interface=yes
12198             ;;
12199         esac
12200         ;;
12201       *)
12202         lt_use_gnu_ld_interface=yes
12203         ;;
12204     esac
12205   fi
12206
12207   if test yes = "$lt_use_gnu_ld_interface"; then
12208     # If archive_cmds runs LD, not CC, wlarc should be empty
12209     wlarc='$wl'
12210
12211     # Set some defaults for GNU ld with shared library support. These
12212     # are reset later if shared libraries are not supported. Putting them
12213     # here allows them to be overridden if necessary.
12214     runpath_var=LD_RUN_PATH
12215     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12216     export_dynamic_flag_spec='$wl--export-dynamic'
12217     # ancient GNU ld didn't support --whole-archive et. al.
12218     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12219       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12220     else
12221       whole_archive_flag_spec=
12222     fi
12223     supports_anon_versioning=no
12224     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12225       *GNU\ gold*) supports_anon_versioning=yes ;;
12226       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12227       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12228       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12229       *\ 2.11.*) ;; # other 2.11 versions
12230       *) supports_anon_versioning=yes ;;
12231     esac
12232
12233     # See if GNU ld supports shared libraries.
12234     case $host_os in
12235     aix[3-9]*)
12236       # On AIX/PPC, the GNU linker is very broken
12237       if test ia64 != "$host_cpu"; then
12238         ld_shlibs=no
12239         cat <<_LT_EOF 1>&2
12240
12241 *** Warning: the GNU linker, at least up to release 2.19, is reported
12242 *** to be unable to reliably create shared libraries on AIX.
12243 *** Therefore, libtool is disabling shared libraries support.  If you
12244 *** really care for shared libraries, you may want to install binutils
12245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12246 *** You will then need to restart the configuration process.
12247
12248 _LT_EOF
12249       fi
12250       ;;
12251
12252     amigaos*)
12253       case $host_cpu in
12254       powerpc)
12255             # see comment about AmigaOS4 .so support
12256             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12257             archive_expsym_cmds=''
12258         ;;
12259       m68k)
12260             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)'
12261             hardcode_libdir_flag_spec='-L$libdir'
12262             hardcode_minus_L=yes
12263         ;;
12264       esac
12265       ;;
12266
12267     beos*)
12268       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12269         allow_undefined_flag=unsupported
12270         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12271         # support --undefined.  This deserves some investigation.  FIXME
12272         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12273       else
12274         ld_shlibs=no
12275       fi
12276       ;;
12277
12278     cygwin* | mingw* | pw32* | cegcc*)
12279       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12280       # as there is no search path for DLLs.
12281       hardcode_libdir_flag_spec='-L$libdir'
12282       export_dynamic_flag_spec='$wl--export-all-symbols'
12283       allow_undefined_flag=unsupported
12284       always_export_symbols=no
12285       enable_shared_with_static_runtimes=yes
12286       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'
12287       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12288
12289       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12290         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12291         # If the export-symbols file already is a .def file, use it as
12292         # is; otherwise, prepend EXPORTS...
12293         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12294           cp $export_symbols $output_objdir/$soname.def;
12295         else
12296           echo EXPORTS > $output_objdir/$soname.def;
12297           cat $export_symbols >> $output_objdir/$soname.def;
12298         fi~
12299         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12300       else
12301         ld_shlibs=no
12302       fi
12303       ;;
12304
12305     haiku*)
12306       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12307       link_all_deplibs=yes
12308       ;;
12309
12310     os2*)
12311       hardcode_libdir_flag_spec='-L$libdir'
12312       hardcode_minus_L=yes
12313       allow_undefined_flag=unsupported
12314       shrext_cmds=.dll
12315       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12316         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12317         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12318         $ECHO EXPORTS >> $output_objdir/$libname.def~
12319         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12320         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12321         emximp -o $lib $output_objdir/$libname.def'
12322       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12323         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12324         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12325         $ECHO EXPORTS >> $output_objdir/$libname.def~
12326         prefix_cmds="$SED"~
12327         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12328           prefix_cmds="$prefix_cmds -e 1d";
12329         fi~
12330         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12331         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12332         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12333         emximp -o $lib $output_objdir/$libname.def'
12334       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12335       enable_shared_with_static_runtimes=yes
12336       ;;
12337
12338     interix[3-9]*)
12339       hardcode_direct=no
12340       hardcode_shlibpath_var=no
12341       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12342       export_dynamic_flag_spec='$wl-E'
12343       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12344       # Instead, shared libraries are loaded at an image base (0x10000000 by
12345       # default) and relocated if they conflict, which is a slow very memory
12346       # consuming and fragmenting process.  To avoid this, we pick a random,
12347       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12348       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12349       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12350       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'
12351       ;;
12352
12353     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12354       tmp_diet=no
12355       if test linux-dietlibc = "$host_os"; then
12356         case $cc_basename in
12357           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12358         esac
12359       fi
12360       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12361          && test no = "$tmp_diet"
12362       then
12363         tmp_addflag=' $pic_flag'
12364         tmp_sharedflag='-shared'
12365         case $cc_basename,$host_cpu in
12366         pgcc*)                          # Portland Group C compiler
12367           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'
12368           tmp_addflag=' $pic_flag'
12369           ;;
12370         pgf77* | pgf90* | pgf95* | pgfortran*)
12371                                         # Portland Group f77 and f90 compilers
12372           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'
12373           tmp_addflag=' $pic_flag -Mnomain' ;;
12374         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12375           tmp_addflag=' -i_dynamic' ;;
12376         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12377           tmp_addflag=' -i_dynamic -nofor_main' ;;
12378         ifc* | ifort*)                  # Intel Fortran compiler
12379           tmp_addflag=' -nofor_main' ;;
12380         lf95*)                          # Lahey Fortran 8.1
12381           whole_archive_flag_spec=
12382           tmp_sharedflag='--shared' ;;
12383         nagfor*)                        # NAGFOR 5.3
12384           tmp_sharedflag='-Wl,-shared' ;;
12385         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12386           tmp_sharedflag='-qmkshrobj'
12387           tmp_addflag= ;;
12388         nvcc*)  # Cuda Compiler Driver 2.2
12389           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'
12390           compiler_needs_object=yes
12391           ;;
12392         esac
12393         case `$CC -V 2>&1 | sed 5q` in
12394         *Sun\ C*)                       # Sun C 5.9
12395           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'
12396           compiler_needs_object=yes
12397           tmp_sharedflag='-G' ;;
12398         *Sun\ F*)                       # Sun Fortran 8.3
12399           tmp_sharedflag='-G' ;;
12400         esac
12401         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12402
12403         if test yes = "$supports_anon_versioning"; then
12404           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12405             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12406             echo "local: *; };" >> $output_objdir/$libname.ver~
12407             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12408         fi
12409
12410         case $cc_basename in
12411         tcc*)
12412           export_dynamic_flag_spec='-rdynamic'
12413           ;;
12414         xlf* | bgf* | bgxlf* | mpixlf*)
12415           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12416           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12417           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12418           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12419           if test yes = "$supports_anon_versioning"; then
12420             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12421               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12422               echo "local: *; };" >> $output_objdir/$libname.ver~
12423               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12424           fi
12425           ;;
12426         esac
12427       else
12428         ld_shlibs=no
12429       fi
12430       ;;
12431
12432     netbsd* | netbsdelf*-gnu)
12433       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12434         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12435         wlarc=
12436       else
12437         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12438         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12439       fi
12440       ;;
12441
12442     solaris*)
12443       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12444         ld_shlibs=no
12445         cat <<_LT_EOF 1>&2
12446
12447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12448 *** create shared libraries on Solaris systems.  Therefore, libtool
12449 *** is disabling shared libraries support.  We urge you to upgrade GNU
12450 *** binutils to release 2.9.1 or newer.  Another option is to modify
12451 *** your PATH or compiler configuration so that the native linker is
12452 *** used, and then restart.
12453
12454 _LT_EOF
12455       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12456         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12457         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12458       else
12459         ld_shlibs=no
12460       fi
12461       ;;
12462
12463     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12464       case `$LD -v 2>&1` in
12465         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12466         ld_shlibs=no
12467         cat <<_LT_EOF 1>&2
12468
12469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12470 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12471 *** is disabling shared libraries support.  We urge you to upgrade GNU
12472 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12473 *** your PATH or compiler configuration so that the native linker is
12474 *** used, and then restart.
12475
12476 _LT_EOF
12477         ;;
12478         *)
12479           # For security reasons, it is highly recommended that you always
12480           # use absolute paths for naming shared libraries, and exclude the
12481           # DT_RUNPATH tag from executables and libraries.  But doing so
12482           # requires that you compile everything twice, which is a pain.
12483           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12484             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12485             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12486             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12487           else
12488             ld_shlibs=no
12489           fi
12490         ;;
12491       esac
12492       ;;
12493
12494     sunos4*)
12495       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12496       wlarc=
12497       hardcode_direct=yes
12498       hardcode_shlibpath_var=no
12499       ;;
12500
12501     *)
12502       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12503         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12504         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12505       else
12506         ld_shlibs=no
12507       fi
12508       ;;
12509     esac
12510
12511     if test no = "$ld_shlibs"; then
12512       runpath_var=
12513       hardcode_libdir_flag_spec=
12514       export_dynamic_flag_spec=
12515       whole_archive_flag_spec=
12516     fi
12517   else
12518     # PORTME fill in a description of your system's linker (not GNU ld)
12519     case $host_os in
12520     aix3*)
12521       allow_undefined_flag=unsupported
12522       always_export_symbols=yes
12523       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'
12524       # Note: this linker hardcodes the directories in LIBPATH if there
12525       # are no directories specified by -L.
12526       hardcode_minus_L=yes
12527       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12528         # Neither direct hardcoding nor static linking is supported with a
12529         # broken collect2.
12530         hardcode_direct=unsupported
12531       fi
12532       ;;
12533
12534     aix[4-9]*)
12535       if test ia64 = "$host_cpu"; then
12536         # On IA64, the linker does run time linking by default, so we don't
12537         # have to do anything special.
12538         aix_use_runtimelinking=no
12539         exp_sym_flag='-Bexport'
12540         no_entry_flag=
12541       else
12542         # If we're using GNU nm, then we don't want the "-C" option.
12543         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12544         # Without the "-l" option, or with the "-B" option, AIX nm treats
12545         # weak defined symbols like other global defined symbols, whereas
12546         # GNU nm marks them as "W".
12547         # While the 'weak' keyword is ignored in the Export File, we need
12548         # it in the Import File for the 'aix-soname' feature, so we have
12549         # to replace the "-B" option with "-P" for AIX nm.
12550         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12551           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12552         else
12553           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12554         fi
12555         aix_use_runtimelinking=no
12556
12557         # Test if we are trying to use run time linking or normal
12558         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12559         # have runtime linking enabled, and use it for executables.
12560         # For shared libraries, we enable/disable runtime linking
12561         # depending on the kind of the shared library created -
12562         # when "with_aix_soname,aix_use_runtimelinking" is:
12563         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12564         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12565         #            lib.a           static archive
12566         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12567         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12568         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12569         #            lib.a(lib.so.V) shared, rtl:no
12570         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12571         #            lib.a           static archive
12572         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12573           for ld_flag in $LDFLAGS; do
12574           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12575             aix_use_runtimelinking=yes
12576             break
12577           fi
12578           done
12579           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12580             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12581             # so we don't have lib.a shared libs to link our executables.
12582             # We have to force runtime linking in this case.
12583             aix_use_runtimelinking=yes
12584             LDFLAGS="$LDFLAGS -Wl,-brtl"
12585           fi
12586           ;;
12587         esac
12588
12589         exp_sym_flag='-bexport'
12590         no_entry_flag='-bnoentry'
12591       fi
12592
12593       # When large executables or shared objects are built, AIX ld can
12594       # have problems creating the table of contents.  If linking a library
12595       # or program results in "error TOC overflow" add -mminimal-toc to
12596       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12597       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12598
12599       archive_cmds=''
12600       hardcode_direct=yes
12601       hardcode_direct_absolute=yes
12602       hardcode_libdir_separator=':'
12603       link_all_deplibs=yes
12604       file_list_spec='$wl-f,'
12605       case $with_aix_soname,$aix_use_runtimelinking in
12606       aix,*) ;; # traditional, no import file
12607       svr4,* | *,yes) # use import file
12608         # The Import File defines what to hardcode.
12609         hardcode_direct=no
12610         hardcode_direct_absolute=no
12611         ;;
12612       esac
12613
12614       if test yes = "$GCC"; then
12615         case $host_os in aix4.[012]|aix4.[012].*)
12616         # We only want to do this on AIX 4.2 and lower, the check
12617         # below for broken collect2 doesn't work under 4.3+
12618           collect2name=`$CC -print-prog-name=collect2`
12619           if test -f "$collect2name" &&
12620            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12621           then
12622           # We have reworked collect2
12623           :
12624           else
12625           # We have old collect2
12626           hardcode_direct=unsupported
12627           # It fails to find uninstalled libraries when the uninstalled
12628           # path is not listed in the libpath.  Setting hardcode_minus_L
12629           # to unsupported forces relinking
12630           hardcode_minus_L=yes
12631           hardcode_libdir_flag_spec='-L$libdir'
12632           hardcode_libdir_separator=
12633           fi
12634           ;;
12635         esac
12636         shared_flag='-shared'
12637         if test yes = "$aix_use_runtimelinking"; then
12638           shared_flag="$shared_flag "'$wl-G'
12639         fi
12640         # Need to ensure runtime linking is disabled for the traditional
12641         # shared library, or the linker may eventually find shared libraries
12642         # /with/ Import File - we do not want to mix them.
12643         shared_flag_aix='-shared'
12644         shared_flag_svr4='-shared $wl-G'
12645       else
12646         # not using gcc
12647         if test ia64 = "$host_cpu"; then
12648         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12649         # chokes on -Wl,-G. The following line is correct:
12650           shared_flag='-G'
12651         else
12652           if test yes = "$aix_use_runtimelinking"; then
12653             shared_flag='$wl-G'
12654           else
12655             shared_flag='$wl-bM:SRE'
12656           fi
12657           shared_flag_aix='$wl-bM:SRE'
12658           shared_flag_svr4='$wl-G'
12659         fi
12660       fi
12661
12662       export_dynamic_flag_spec='$wl-bexpall'
12663       # It seems that -bexpall does not export symbols beginning with
12664       # underscore (_), so it is better to generate a list of symbols to export.
12665       always_export_symbols=yes
12666       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12667         # Warning - without using the other runtime loading flags (-brtl),
12668         # -berok will link without error, but may produce a broken library.
12669         allow_undefined_flag='-berok'
12670         # Determine the default libpath from the value encoded in an
12671         # empty executable.
12672         if test set = "${lt_cv_aix_libpath+set}"; then
12673   aix_libpath=$lt_cv_aix_libpath
12674 else
12675   if ${lt_cv_aix_libpath_+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680
12681 int main (void)
12682 {
12683
12684  ;
12685  return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689
12690   lt_aix_libpath_sed='
12691       /Import File Strings/,/^$/ {
12692           /^0/ {
12693               s/^0  *\([^ ]*\) *$/\1/
12694               p
12695           }
12696       }'
12697   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12698   # Check for a 64-bit object if we didn't find anything.
12699   if test -z "$lt_cv_aix_libpath_"; then
12700     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12701   fi
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext \
12704     conftest$ac_exeext conftest.$ac_ext
12705   if test -z "$lt_cv_aix_libpath_"; then
12706     lt_cv_aix_libpath_=/usr/lib:/lib
12707   fi
12708
12709 fi
12710
12711   aix_libpath=$lt_cv_aix_libpath_
12712 fi
12713
12714         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12715         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12716       else
12717         if test ia64 = "$host_cpu"; then
12718           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12719           allow_undefined_flag="-z nodefs"
12720           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"
12721         else
12722          # Determine the default libpath from the value encoded in an
12723          # empty executable.
12724          if test set = "${lt_cv_aix_libpath+set}"; then
12725   aix_libpath=$lt_cv_aix_libpath
12726 else
12727   if ${lt_cv_aix_libpath_+:} false; then :
12728   $as_echo_n "(cached) " >&6
12729 else
12730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h.  */
12732
12733 int main (void)
12734 {
12735
12736  ;
12737  return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_link "$LINENO"; then :
12741
12742   lt_aix_libpath_sed='
12743       /Import File Strings/,/^$/ {
12744           /^0/ {
12745               s/^0  *\([^ ]*\) *$/\1/
12746               p
12747           }
12748       }'
12749   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12750   # Check for a 64-bit object if we didn't find anything.
12751   if test -z "$lt_cv_aix_libpath_"; then
12752     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12753   fi
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext \
12756     conftest$ac_exeext conftest.$ac_ext
12757   if test -z "$lt_cv_aix_libpath_"; then
12758     lt_cv_aix_libpath_=/usr/lib:/lib
12759   fi
12760
12761 fi
12762
12763   aix_libpath=$lt_cv_aix_libpath_
12764 fi
12765
12766          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12767           # Warning - without using the other run time loading flags,
12768           # -berok will link without error, but may produce a broken library.
12769           no_undefined_flag=' $wl-bernotok'
12770           allow_undefined_flag=' $wl-berok'
12771           if test yes = "$with_gnu_ld"; then
12772             # We only use this code for GNU lds that support --whole-archive.
12773             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12774           else
12775             # Exported symbols can be pulled into shared objects from archives
12776             whole_archive_flag_spec='$convenience'
12777           fi
12778           archive_cmds_need_lc=yes
12779           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12780           # -brtl affects multiple linker settings, -berok does not and is overridden later
12781           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12782           if test svr4 != "$with_aix_soname"; then
12783             # This is similar to how AIX traditionally builds its shared libraries.
12784             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12785           fi
12786           if test aix != "$with_aix_soname"; then
12787             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12788           else
12789             # used by -dlpreopen to get the symbols
12790             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12791           fi
12792           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12793         fi
12794       fi
12795       ;;
12796
12797     amigaos*)
12798       case $host_cpu in
12799       powerpc)
12800             # see comment about AmigaOS4 .so support
12801             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12802             archive_expsym_cmds=''
12803         ;;
12804       m68k)
12805             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)'
12806             hardcode_libdir_flag_spec='-L$libdir'
12807             hardcode_minus_L=yes
12808         ;;
12809       esac
12810       ;;
12811
12812     bsdi[45]*)
12813       export_dynamic_flag_spec=-rdynamic
12814       ;;
12815
12816     cygwin* | mingw* | pw32* | cegcc*)
12817       # When not using gcc, we currently assume that we are using
12818       # Microsoft Visual C++.
12819       # hardcode_libdir_flag_spec is actually meaningless, as there is
12820       # no search path for DLLs.
12821       case $cc_basename in
12822       cl*)
12823         # Native MSVC
12824         hardcode_libdir_flag_spec=' '
12825         allow_undefined_flag=unsupported
12826         always_export_symbols=yes
12827         file_list_spec='@'
12828         # Tell ltmain to make .lib files, not .a files.
12829         libext=lib
12830         # Tell ltmain to make .dll files, not .so files.
12831         shrext_cmds=.dll
12832         # FIXME: Setting linknames here is a bad hack.
12833         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12834         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12835             cp "$export_symbols" "$output_objdir/$soname.def";
12836             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12837           else
12838             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12839           fi~
12840           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12841           linknames='
12842         # The linker will not automatically build a static lib if we build a DLL.
12843         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12844         enable_shared_with_static_runtimes=yes
12845         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12846         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12847         # Don't use ranlib
12848         old_postinstall_cmds='chmod 644 $oldlib'
12849         postlink_cmds='lt_outputfile="@OUTPUT@"~
12850           lt_tool_outputfile="@TOOL_OUTPUT@"~
12851           case $lt_outputfile in
12852             *.exe|*.EXE) ;;
12853             *)
12854               lt_outputfile=$lt_outputfile.exe
12855               lt_tool_outputfile=$lt_tool_outputfile.exe
12856               ;;
12857           esac~
12858           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12859             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12860             $RM "$lt_outputfile.manifest";
12861           fi'
12862         ;;
12863       *)
12864         # Assume MSVC wrapper
12865         hardcode_libdir_flag_spec=' '
12866         allow_undefined_flag=unsupported
12867         # Tell ltmain to make .lib files, not .a files.
12868         libext=lib
12869         # Tell ltmain to make .dll files, not .so files.
12870         shrext_cmds=.dll
12871         # FIXME: Setting linknames here is a bad hack.
12872         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12873         # The linker will automatically build a .lib file if we build a DLL.
12874         old_archive_from_new_cmds='true'
12875         # FIXME: Should let the user specify the lib program.
12876         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12877         enable_shared_with_static_runtimes=yes
12878         ;;
12879       esac
12880       ;;
12881
12882     darwin* | rhapsody*)
12883
12884
12885   archive_cmds_need_lc=no
12886   hardcode_direct=no
12887   hardcode_automatic=yes
12888   hardcode_shlibpath_var=unsupported
12889   if test yes = "$lt_cv_ld_force_load"; then
12890     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\"`'
12891
12892   else
12893     whole_archive_flag_spec=''
12894   fi
12895   link_all_deplibs=yes
12896   allow_undefined_flag=$_lt_dar_allow_undefined
12897   case $cc_basename in
12898      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12899      *) _lt_dar_can_shared=$GCC ;;
12900   esac
12901   if test yes = "$_lt_dar_can_shared"; then
12902     output_verbose_link_cmd=func_echo_all
12903     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12904     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12905     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"
12906     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"
12907
12908   else
12909   ld_shlibs=no
12910   fi
12911
12912       ;;
12913
12914     dgux*)
12915       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916       hardcode_libdir_flag_spec='-L$libdir'
12917       hardcode_shlibpath_var=no
12918       ;;
12919
12920     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12921     # support.  Future versions do this automatically, but an explicit c++rt0.o
12922     # does not break anything, and helps significantly (at the cost of a little
12923     # extra space).
12924     freebsd2.2*)
12925       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12926       hardcode_libdir_flag_spec='-R$libdir'
12927       hardcode_direct=yes
12928       hardcode_shlibpath_var=no
12929       ;;
12930
12931     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12932     freebsd2.*)
12933       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12934       hardcode_direct=yes
12935       hardcode_minus_L=yes
12936       hardcode_shlibpath_var=no
12937       ;;
12938
12939     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12940     freebsd* | dragonfly*)
12941       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12942       hardcode_libdir_flag_spec='-R$libdir'
12943       hardcode_direct=yes
12944       hardcode_shlibpath_var=no
12945       ;;
12946
12947     hpux9*)
12948       if test yes = "$GCC"; then
12949         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
12950       else
12951         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
12952       fi
12953       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12954       hardcode_libdir_separator=:
12955       hardcode_direct=yes
12956
12957       # hardcode_minus_L: Not really in the search PATH,
12958       # but as the default location of the library.
12959       hardcode_minus_L=yes
12960       export_dynamic_flag_spec='$wl-E'
12961       ;;
12962
12963     hpux10*)
12964       if test yes,no = "$GCC,$with_gnu_ld"; then
12965         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12966       else
12967         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12968       fi
12969       if test no = "$with_gnu_ld"; then
12970         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12971         hardcode_libdir_separator=:
12972         hardcode_direct=yes
12973         hardcode_direct_absolute=yes
12974         export_dynamic_flag_spec='$wl-E'
12975         # hardcode_minus_L: Not really in the search PATH,
12976         # but as the default location of the library.
12977         hardcode_minus_L=yes
12978       fi
12979       ;;
12980
12981     hpux11*)
12982       if test yes,no = "$GCC,$with_gnu_ld"; then
12983         case $host_cpu in
12984         hppa*64*)
12985           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12986           ;;
12987         ia64*)
12988           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12989           ;;
12990         *)
12991           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12992           ;;
12993         esac
12994       else
12995         case $host_cpu in
12996         hppa*64*)
12997           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12998           ;;
12999         ia64*)
13000           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13001           ;;
13002         *)
13003
13004           # Older versions of the 11.00 compiler do not understand -b yet
13005           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13006           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13007 $as_echo_n "checking if $CC understands -b... " >&6; }
13008 if ${lt_cv_prog_compiler__b+:} false; then :
13009   $as_echo_n "(cached) " >&6
13010 else
13011   lt_cv_prog_compiler__b=no
13012    save_LDFLAGS=$LDFLAGS
13013    LDFLAGS="$LDFLAGS -b"
13014    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13015    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13016      # The linker can only warn and ignore the option if not recognized
13017      # So say no if there are warnings
13018      if test -s conftest.err; then
13019        # Append any errors to the config.log.
13020        cat conftest.err 1>&5
13021        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13022        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13023        if diff conftest.exp conftest.er2 >/dev/null; then
13024          lt_cv_prog_compiler__b=yes
13025        fi
13026      else
13027        lt_cv_prog_compiler__b=yes
13028      fi
13029    fi
13030    $RM -r conftest*
13031    LDFLAGS=$save_LDFLAGS
13032
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13035 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13036
13037 if test yes = "$lt_cv_prog_compiler__b"; then
13038     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13039 else
13040     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13041 fi
13042
13043           ;;
13044         esac
13045       fi
13046       if test no = "$with_gnu_ld"; then
13047         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13048         hardcode_libdir_separator=:
13049
13050         case $host_cpu in
13051         hppa*64*|ia64*)
13052           hardcode_direct=no
13053           hardcode_shlibpath_var=no
13054           ;;
13055         *)
13056           hardcode_direct=yes
13057           hardcode_direct_absolute=yes
13058           export_dynamic_flag_spec='$wl-E'
13059
13060           # hardcode_minus_L: Not really in the search PATH,
13061           # but as the default location of the library.
13062           hardcode_minus_L=yes
13063           ;;
13064         esac
13065       fi
13066       ;;
13067
13068     irix5* | irix6* | nonstopux*)
13069       if test yes = "$GCC"; then
13070         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'
13071         # Try to use the -exported_symbol ld option, if it does not
13072         # work, assume that -exports_file does not work either and
13073         # implicitly export all symbols.
13074         # This should be the same for all languages, so no per-tag cache variable.
13075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13076 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13077 if ${lt_cv_irix_exported_symbol+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   save_LDFLAGS=$LDFLAGS
13081            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13082            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084 int foo (void) { return 0; }
13085 _ACEOF
13086 if ac_fn_c_try_link "$LINENO"; then :
13087   lt_cv_irix_exported_symbol=yes
13088 else
13089   lt_cv_irix_exported_symbol=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext \
13092     conftest$ac_exeext conftest.$ac_ext
13093            LDFLAGS=$save_LDFLAGS
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13096 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13097         if test yes = "$lt_cv_irix_exported_symbol"; then
13098           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'
13099         fi
13100         link_all_deplibs=no
13101       else
13102         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'
13103         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'
13104       fi
13105       archive_cmds_need_lc='no'
13106       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13107       hardcode_libdir_separator=:
13108       inherit_rpath=yes
13109       link_all_deplibs=yes
13110       ;;
13111
13112     linux*)
13113       case $cc_basename in
13114       tcc*)
13115         # Fabrice Bellard et al's Tiny C Compiler
13116         ld_shlibs=yes
13117         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13118         ;;
13119       esac
13120       ;;
13121
13122     netbsd* | netbsdelf*-gnu)
13123       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13124         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13125       else
13126         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13127       fi
13128       hardcode_libdir_flag_spec='-R$libdir'
13129       hardcode_direct=yes
13130       hardcode_shlibpath_var=no
13131       ;;
13132
13133     newsos6)
13134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13135       hardcode_direct=yes
13136       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13137       hardcode_libdir_separator=:
13138       hardcode_shlibpath_var=no
13139       ;;
13140
13141     *nto* | *qnx*)
13142       ;;
13143
13144     openbsd* | bitrig*)
13145       if test -f /usr/libexec/ld.so; then
13146         hardcode_direct=yes
13147         hardcode_shlibpath_var=no
13148         hardcode_direct_absolute=yes
13149         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13150           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13151           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13152           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13153           export_dynamic_flag_spec='$wl-E'
13154         else
13155           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13156           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13157         fi
13158       else
13159         ld_shlibs=no
13160       fi
13161       ;;
13162
13163     os2*)
13164       hardcode_libdir_flag_spec='-L$libdir'
13165       hardcode_minus_L=yes
13166       allow_undefined_flag=unsupported
13167       shrext_cmds=.dll
13168       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13169         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13170         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13171         $ECHO EXPORTS >> $output_objdir/$libname.def~
13172         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13173         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13174         emximp -o $lib $output_objdir/$libname.def'
13175       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13176         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13177         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13178         $ECHO EXPORTS >> $output_objdir/$libname.def~
13179         prefix_cmds="$SED"~
13180         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13181           prefix_cmds="$prefix_cmds -e 1d";
13182         fi~
13183         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13184         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13185         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13186         emximp -o $lib $output_objdir/$libname.def'
13187       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13188       enable_shared_with_static_runtimes=yes
13189       ;;
13190
13191     osf3*)
13192       if test yes = "$GCC"; then
13193         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13194         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'
13195       else
13196         allow_undefined_flag=' -expect_unresolved \*'
13197         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'
13198       fi
13199       archive_cmds_need_lc='no'
13200       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13201       hardcode_libdir_separator=:
13202       ;;
13203
13204     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13205       if test yes = "$GCC"; then
13206         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13207         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'
13208         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13209       else
13210         allow_undefined_flag=' -expect_unresolved \*'
13211         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'
13212         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~
13213           $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'
13214
13215         # Both c and cxx compiler support -rpath directly
13216         hardcode_libdir_flag_spec='-rpath $libdir'
13217       fi
13218       archive_cmds_need_lc='no'
13219       hardcode_libdir_separator=:
13220       ;;
13221
13222     solaris*)
13223       no_undefined_flag=' -z defs'
13224       if test yes = "$GCC"; then
13225         wlarc='$wl'
13226         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13227         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13228           $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'
13229       else
13230         case `$CC -V 2>&1` in
13231         *"Compilers 5.0"*)
13232           wlarc=''
13233           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13235             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13236           ;;
13237         *)
13238           wlarc='$wl'
13239           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13240           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13241             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13242           ;;
13243         esac
13244       fi
13245       hardcode_libdir_flag_spec='-R$libdir'
13246       hardcode_shlibpath_var=no
13247       case $host_os in
13248       solaris2.[0-5] | solaris2.[0-5].*) ;;
13249       *)
13250         # The compiler driver will combine and reorder linker options,
13251         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13252         # but is careful enough not to reorder.
13253         # Supported since Solaris 2.6 (maybe 2.5.1?)
13254         if test yes = "$GCC"; then
13255           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13256         else
13257           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13258         fi
13259         ;;
13260       esac
13261       link_all_deplibs=yes
13262       ;;
13263
13264     sunos4*)
13265       if test sequent = "$host_vendor"; then
13266         # Use $CC to link under sequent, because it throws in some extra .o
13267         # files that make .init and .fini sections work.
13268         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13269       else
13270         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13271       fi
13272       hardcode_libdir_flag_spec='-L$libdir'
13273       hardcode_direct=yes
13274       hardcode_minus_L=yes
13275       hardcode_shlibpath_var=no
13276       ;;
13277
13278     sysv4)
13279       case $host_vendor in
13280         sni)
13281           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13282           hardcode_direct=yes # is this really true???
13283         ;;
13284         siemens)
13285           ## LD is ld it makes a PLAMLIB
13286           ## CC just makes a GrossModule.
13287           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13288           reload_cmds='$CC -r -o $output$reload_objs'
13289           hardcode_direct=no
13290         ;;
13291         motorola)
13292           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13293           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13294         ;;
13295       esac
13296       runpath_var='LD_RUN_PATH'
13297       hardcode_shlibpath_var=no
13298       ;;
13299
13300     sysv4.3*)
13301       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13302       hardcode_shlibpath_var=no
13303       export_dynamic_flag_spec='-Bexport'
13304       ;;
13305
13306     sysv4*MP*)
13307       if test -d /usr/nec; then
13308         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13309         hardcode_shlibpath_var=no
13310         runpath_var=LD_RUN_PATH
13311         hardcode_runpath_var=yes
13312         ld_shlibs=yes
13313       fi
13314       ;;
13315
13316     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13317       no_undefined_flag='$wl-z,text'
13318       archive_cmds_need_lc=no
13319       hardcode_shlibpath_var=no
13320       runpath_var='LD_RUN_PATH'
13321
13322       if test yes = "$GCC"; then
13323         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13325       else
13326         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328       fi
13329       ;;
13330
13331     sysv5* | sco3.2v5* | sco5v6*)
13332       # Note: We CANNOT use -z defs as we might desire, because we do not
13333       # link with -lc, and that would cause any symbols used from libc to
13334       # always be unresolved, which means just about no library would
13335       # ever link correctly.  If we're not using GNU ld we use -z text
13336       # though, which does catch some bad symbols but isn't as heavy-handed
13337       # as -z defs.
13338       no_undefined_flag='$wl-z,text'
13339       allow_undefined_flag='$wl-z,nodefs'
13340       archive_cmds_need_lc=no
13341       hardcode_shlibpath_var=no
13342       hardcode_libdir_flag_spec='$wl-R,$libdir'
13343       hardcode_libdir_separator=':'
13344       link_all_deplibs=yes
13345       export_dynamic_flag_spec='$wl-Bexport'
13346       runpath_var='LD_RUN_PATH'
13347
13348       if test yes = "$GCC"; then
13349         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13351       else
13352         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354       fi
13355       ;;
13356
13357     uts4*)
13358       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13359       hardcode_libdir_flag_spec='-L$libdir'
13360       hardcode_shlibpath_var=no
13361       ;;
13362
13363     *)
13364       ld_shlibs=no
13365       ;;
13366     esac
13367
13368     if test sni = "$host_vendor"; then
13369       case $host in
13370       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13371         export_dynamic_flag_spec='$wl-Blargedynsym'
13372         ;;
13373       esac
13374     fi
13375   fi
13376
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13378 $as_echo "$ld_shlibs" >&6; }
13379 test no = "$ld_shlibs" && can_build_shared=no
13380
13381 with_gnu_ld=$with_gnu_ld
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 #
13398 # Do we need to explicitly link libc?
13399 #
13400 case "x$archive_cmds_need_lc" in
13401 x|xyes)
13402   # Assume -lc should be added
13403   archive_cmds_need_lc=yes
13404
13405   if test yes,yes = "$GCC,$enable_shared"; then
13406     case $archive_cmds in
13407     *'~'*)
13408       # FIXME: we may have to deal with multi-command sequences.
13409       ;;
13410     '$CC '*)
13411       # Test whether the compiler implicitly links with -lc since on some
13412       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13413       # to ld, don't add -lc before -lgcc.
13414       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13415 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13416 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13417   $as_echo_n "(cached) " >&6
13418 else
13419   $RM conftest*
13420         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13421
13422         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423   (eval $ac_compile) 2>&5
13424   ac_status=$?
13425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426   test $ac_status = 0; } 2>conftest.err; then
13427           soname=conftest
13428           lib=conftest
13429           libobjs=conftest.$ac_objext
13430           deplibs=
13431           wl=$lt_prog_compiler_wl
13432           pic_flag=$lt_prog_compiler_pic
13433           compiler_flags=-v
13434           linker_flags=-v
13435           verstring=
13436           output_objdir=.
13437           libname=conftest
13438           lt_save_allow_undefined_flag=$allow_undefined_flag
13439           allow_undefined_flag=
13440           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13441   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13442   ac_status=$?
13443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13444   test $ac_status = 0; }
13445           then
13446             lt_cv_archive_cmds_need_lc=no
13447           else
13448             lt_cv_archive_cmds_need_lc=yes
13449           fi
13450           allow_undefined_flag=$lt_save_allow_undefined_flag
13451         else
13452           cat conftest.err 1>&5
13453         fi
13454         $RM conftest*
13455
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13458 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13459       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13460       ;;
13461     esac
13462   fi
13463   ;;
13464 esac
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
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13618 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13619
13620 if test yes = "$GCC"; then
13621   case $host_os in
13622     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13623     *) lt_awk_arg='/^libraries:/' ;;
13624   esac
13625   case $host_os in
13626     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13627     *) lt_sed_strip_eq='s|=/|/|g' ;;
13628   esac
13629   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13630   case $lt_search_path_spec in
13631   *\;*)
13632     # if the path contains ";" then we assume it to be the separator
13633     # otherwise default to the standard path separator (i.e. ":") - it is
13634     # assumed that no part of a normal pathname contains ";" but that should
13635     # okay in the real world where ";" in dirpaths is itself problematic.
13636     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13637     ;;
13638   *)
13639     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13640     ;;
13641   esac
13642   # Ok, now we have the path, separated by spaces, we can step through it
13643   # and add multilib dir if necessary...
13644   lt_tmp_lt_search_path_spec=
13645   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13646   # ...but if some path component already ends with the multilib dir we assume
13647   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13648   case "$lt_multi_os_dir; $lt_search_path_spec " in
13649   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13650     lt_multi_os_dir=
13651     ;;
13652   esac
13653   for lt_sys_path in $lt_search_path_spec; do
13654     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13655       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13656     elif test -n "$lt_multi_os_dir"; then
13657       test -d "$lt_sys_path" && \
13658         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13659     fi
13660   done
13661   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13662 BEGIN {RS = " "; FS = "/|\n";} {
13663   lt_foo = "";
13664   lt_count = 0;
13665   for (lt_i = NF; lt_i > 0; lt_i--) {
13666     if ($lt_i != "" && $lt_i != ".") {
13667       if ($lt_i == "..") {
13668         lt_count++;
13669       } else {
13670         if (lt_count == 0) {
13671           lt_foo = "/" $lt_i lt_foo;
13672         } else {
13673           lt_count--;
13674         }
13675       }
13676     }
13677   }
13678   if (lt_foo != "") { lt_freq[lt_foo]++; }
13679   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13680 }'`
13681   # AWK program above erroneously prepends '/' to C:/dos/paths
13682   # for these hosts.
13683   case $host_os in
13684     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13685       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13686   esac
13687   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13688 else
13689   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13690 fi
13691 library_names_spec=
13692 libname_spec='lib$name'
13693 soname_spec=
13694 shrext_cmds=.so
13695 postinstall_cmds=
13696 postuninstall_cmds=
13697 finish_cmds=
13698 finish_eval=
13699 shlibpath_var=
13700 shlibpath_overrides_runpath=unknown
13701 version_type=none
13702 dynamic_linker="$host_os ld.so"
13703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13706
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13710
13711
13712
13713 case $host_os in
13714 aix3*)
13715   version_type=linux # correct to gnu/linux during the next big refactor
13716   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13717   shlibpath_var=LIBPATH
13718
13719   # AIX 3 has no versioning support, so we append a major version to the name.
13720   soname_spec='$libname$release$shared_ext$major'
13721   ;;
13722
13723 aix[4-9]*)
13724   version_type=linux # correct to gnu/linux during the next big refactor
13725   need_lib_prefix=no
13726   need_version=no
13727   hardcode_into_libs=yes
13728   if test ia64 = "$host_cpu"; then
13729     # AIX 5 supports IA64
13730     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13731     shlibpath_var=LD_LIBRARY_PATH
13732   else
13733     # With GCC up to 2.95.x, collect2 would create an import file
13734     # for dependence libraries.  The import file would start with
13735     # the line '#! .'.  This would cause the generated library to
13736     # depend on '.', always an invalid library.  This was fixed in
13737     # development snapshots of GCC prior to 3.0.
13738     case $host_os in
13739       aix4 | aix4.[01] | aix4.[01].*)
13740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13741            echo ' yes '
13742            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13743         :
13744       else
13745         can_build_shared=no
13746       fi
13747       ;;
13748     esac
13749     # Using Import Files as archive members, it is possible to support
13750     # filename-based versioning of shared library archives on AIX. While
13751     # this would work for both with and without runtime linking, it will
13752     # prevent static linking of such archives. So we do filename-based
13753     # shared library versioning with .so extension only, which is used
13754     # when both runtime linking and shared linking is enabled.
13755     # Unfortunately, runtime linking may impact performance, so we do
13756     # not want this to be the default eventually. Also, we use the
13757     # versioned .so libs for executables only if there is the -brtl
13758     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13759     # To allow for filename-based versioning support, we need to create
13760     # libNAME.so.V as an archive file, containing:
13761     # *) an Import File, referring to the versioned filename of the
13762     #    archive as well as the shared archive member, telling the
13763     #    bitwidth (32 or 64) of that shared object, and providing the
13764     #    list of exported symbols of that shared object, eventually
13765     #    decorated with the 'weak' keyword
13766     # *) the shared object with the F_LOADONLY flag set, to really avoid
13767     #    it being seen by the linker.
13768     # At run time we better use the real file rather than another symlink,
13769     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13770
13771     case $with_aix_soname,$aix_use_runtimelinking in
13772     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13773     # soname into executable. Probably we can add versioning support to
13774     # collect2, so additional links can be useful in future.
13775     aix,yes) # traditional libtool
13776       dynamic_linker='AIX unversionable lib.so'
13777       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13778       # instead of lib<name>.a to let people know that these are not
13779       # typical AIX shared libraries.
13780       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13781       ;;
13782     aix,no) # traditional AIX only
13783       dynamic_linker='AIX lib.a(lib.so.V)'
13784       # We preserve .a as extension for shared libraries through AIX4.2
13785       # and later when we are not doing run time linking.
13786       library_names_spec='$libname$release.a $libname.a'
13787       soname_spec='$libname$release$shared_ext$major'
13788       ;;
13789     svr4,*) # full svr4 only
13790       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13791       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13792       # We do not specify a path in Import Files, so LIBPATH fires.
13793       shlibpath_overrides_runpath=yes
13794       ;;
13795     *,yes) # both, prefer svr4
13796       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13797       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13798       # unpreferred sharedlib libNAME.a needs extra handling
13799       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13800       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13801       # We do not specify a path in Import Files, so LIBPATH fires.
13802       shlibpath_overrides_runpath=yes
13803       ;;
13804     *,no) # both, prefer aix
13805       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13806       library_names_spec='$libname$release.a $libname.a'
13807       soname_spec='$libname$release$shared_ext$major'
13808       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13809       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13810       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13811       ;;
13812     esac
13813     shlibpath_var=LIBPATH
13814   fi
13815   ;;
13816
13817 amigaos*)
13818   case $host_cpu in
13819   powerpc)
13820     # Since July 2007 AmigaOS4 officially supports .so libraries.
13821     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13822     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13823     ;;
13824   m68k)
13825     library_names_spec='$libname.ixlibrary $libname.a'
13826     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13827     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13828     ;;
13829   esac
13830   ;;
13831
13832 beos*)
13833   library_names_spec='$libname$shared_ext'
13834   dynamic_linker="$host_os ld.so"
13835   shlibpath_var=LIBRARY_PATH
13836   ;;
13837
13838 bsdi[45]*)
13839   version_type=linux # correct to gnu/linux during the next big refactor
13840   need_version=no
13841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13842   soname_spec='$libname$release$shared_ext$major'
13843   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13844   shlibpath_var=LD_LIBRARY_PATH
13845   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13846   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13847   # the default ld.so.conf also contains /usr/contrib/lib and
13848   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13849   # libtool to hard-code these into programs
13850   ;;
13851
13852 cygwin* | mingw* | pw32* | cegcc*)
13853   version_type=windows
13854   shrext_cmds=.dll
13855   need_version=no
13856   need_lib_prefix=no
13857
13858   case $GCC,$cc_basename in
13859   yes,*)
13860     # gcc
13861     library_names_spec='$libname.dll.a'
13862     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13863     postinstall_cmds='base_file=`basename \$file`~
13864       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13865       dldir=$destdir/`dirname \$dlpath`~
13866       test -d \$dldir || mkdir -p \$dldir~
13867       $install_prog $dir/$dlname \$dldir/$dlname~
13868       chmod a+x \$dldir/$dlname~
13869       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13870         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13871       fi'
13872     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13873       dlpath=$dir/\$dldll~
13874        $RM \$dlpath'
13875     shlibpath_overrides_runpath=yes
13876
13877     case $host_os in
13878     cygwin*)
13879       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13880       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13881
13882       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13883       ;;
13884     mingw* | cegcc*)
13885       # MinGW DLLs use traditional 'lib' prefix
13886       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13887       ;;
13888     pw32*)
13889       # pw32 DLLs use 'pw' prefix rather than 'lib'
13890       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13891       ;;
13892     esac
13893     dynamic_linker='Win32 ld.exe'
13894     ;;
13895
13896   *,cl*)
13897     # Native MSVC
13898     libname_spec='$name'
13899     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13900     library_names_spec='$libname.dll.lib'
13901
13902     case $build_os in
13903     mingw*)
13904       sys_lib_search_path_spec=
13905       lt_save_ifs=$IFS
13906       IFS=';'
13907       for lt_path in $LIB
13908       do
13909         IFS=$lt_save_ifs
13910         # Let DOS variable expansion print the short 8.3 style file name.
13911         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13912         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13913       done
13914       IFS=$lt_save_ifs
13915       # Convert to MSYS style.
13916       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13917       ;;
13918     cygwin*)
13919       # Convert to unix form, then to dos form, then back to unix form
13920       # but this time dos style (no spaces!) so that the unix form looks
13921       # like /cygdrive/c/PROGRA~1:/cygdr...
13922       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13923       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13924       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13925       ;;
13926     *)
13927       sys_lib_search_path_spec=$LIB
13928       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13929         # It is most probably a Windows format PATH.
13930         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13931       else
13932         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13933       fi
13934       # FIXME: find the short name or the path components, as spaces are
13935       # common. (e.g. "Program Files" -> "PROGRA~1")
13936       ;;
13937     esac
13938
13939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13940     postinstall_cmds='base_file=`basename \$file`~
13941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13942       dldir=$destdir/`dirname \$dlpath`~
13943       test -d \$dldir || mkdir -p \$dldir~
13944       $install_prog $dir/$dlname \$dldir/$dlname'
13945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13946       dlpath=$dir/\$dldll~
13947        $RM \$dlpath'
13948     shlibpath_overrides_runpath=yes
13949     dynamic_linker='Win32 link.exe'
13950     ;;
13951
13952   *)
13953     # Assume MSVC wrapper
13954     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13955     dynamic_linker='Win32 ld.exe'
13956     ;;
13957   esac
13958   # FIXME: first we should search . and the directory the executable is in
13959   shlibpath_var=PATH
13960   ;;
13961
13962 darwin* | rhapsody*)
13963   dynamic_linker="$host_os dyld"
13964   version_type=darwin
13965   need_lib_prefix=no
13966   need_version=no
13967   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13968   soname_spec='$libname$release$major$shared_ext'
13969   shlibpath_overrides_runpath=yes
13970   shlibpath_var=DYLD_LIBRARY_PATH
13971   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13972
13973   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13974   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13975   ;;
13976
13977 dgux*)
13978   version_type=linux # correct to gnu/linux during the next big refactor
13979   need_lib_prefix=no
13980   need_version=no
13981   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13982   soname_spec='$libname$release$shared_ext$major'
13983   shlibpath_var=LD_LIBRARY_PATH
13984   ;;
13985
13986 freebsd* | dragonfly*)
13987   # DragonFly does not have aout.  When/if they implement a new
13988   # versioning mechanism, adjust this.
13989   if test -x /usr/bin/objformat; then
13990     objformat=`/usr/bin/objformat`
13991   else
13992     case $host_os in
13993     freebsd[23].*) objformat=aout ;;
13994     *) objformat=elf ;;
13995     esac
13996   fi
13997   version_type=freebsd-$objformat
13998   case $version_type in
13999     freebsd-elf*)
14000       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14001       soname_spec='$libname$release$shared_ext$major'
14002       need_version=no
14003       need_lib_prefix=no
14004       ;;
14005     freebsd-*)
14006       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14007       need_version=yes
14008       ;;
14009   esac
14010   shlibpath_var=LD_LIBRARY_PATH
14011   case $host_os in
14012   freebsd2.*)
14013     shlibpath_overrides_runpath=yes
14014     ;;
14015   freebsd3.[01]* | freebsdelf3.[01]*)
14016     shlibpath_overrides_runpath=yes
14017     hardcode_into_libs=yes
14018     ;;
14019   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14020   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14021     shlibpath_overrides_runpath=no
14022     hardcode_into_libs=yes
14023     ;;
14024   *) # from 4.6 on, and DragonFly
14025     shlibpath_overrides_runpath=yes
14026     hardcode_into_libs=yes
14027     ;;
14028   esac
14029   ;;
14030
14031 haiku*)
14032   version_type=linux # correct to gnu/linux during the next big refactor
14033   need_lib_prefix=no
14034   need_version=no
14035   dynamic_linker="$host_os runtime_loader"
14036   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14037   soname_spec='$libname$release$shared_ext$major'
14038   shlibpath_var=LIBRARY_PATH
14039   shlibpath_overrides_runpath=no
14040   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14041   hardcode_into_libs=yes
14042   ;;
14043
14044 hpux9* | hpux10* | hpux11*)
14045   # Give a soname corresponding to the major version so that dld.sl refuses to
14046   # link against other versions.
14047   version_type=sunos
14048   need_lib_prefix=no
14049   need_version=no
14050   case $host_cpu in
14051   ia64*)
14052     shrext_cmds='.so'
14053     hardcode_into_libs=yes
14054     dynamic_linker="$host_os dld.so"
14055     shlibpath_var=LD_LIBRARY_PATH
14056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14057     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14058     soname_spec='$libname$release$shared_ext$major'
14059     if test 32 = "$HPUX_IA64_MODE"; then
14060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14061       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14062     else
14063       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14064       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14065     fi
14066     ;;
14067   hppa*64*)
14068     shrext_cmds='.sl'
14069     hardcode_into_libs=yes
14070     dynamic_linker="$host_os dld.sl"
14071     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14073     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14074     soname_spec='$libname$release$shared_ext$major'
14075     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14076     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14077     ;;
14078   *)
14079     shrext_cmds='.sl'
14080     dynamic_linker="$host_os dld.sl"
14081     shlibpath_var=SHLIB_PATH
14082     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14083     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14084     soname_spec='$libname$release$shared_ext$major'
14085     ;;
14086   esac
14087   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14088   postinstall_cmds='chmod 555 $lib'
14089   # or fails outright, so override atomically:
14090   install_override_mode=555
14091   ;;
14092
14093 interix[3-9]*)
14094   version_type=linux # correct to gnu/linux during the next big refactor
14095   need_lib_prefix=no
14096   need_version=no
14097   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14098   soname_spec='$libname$release$shared_ext$major'
14099   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14100   shlibpath_var=LD_LIBRARY_PATH
14101   shlibpath_overrides_runpath=no
14102   hardcode_into_libs=yes
14103   ;;
14104
14105 irix5* | irix6* | nonstopux*)
14106   case $host_os in
14107     nonstopux*) version_type=nonstopux ;;
14108     *)
14109         if test yes = "$lt_cv_prog_gnu_ld"; then
14110                 version_type=linux # correct to gnu/linux during the next big refactor
14111         else
14112                 version_type=irix
14113         fi ;;
14114   esac
14115   need_lib_prefix=no
14116   need_version=no
14117   soname_spec='$libname$release$shared_ext$major'
14118   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14119   case $host_os in
14120   irix5* | nonstopux*)
14121     libsuff= shlibsuff=
14122     ;;
14123   *)
14124     case $LD in # libtool.m4 will add one of these switches to LD
14125     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14126       libsuff= shlibsuff= libmagic=32-bit;;
14127     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14128       libsuff=32 shlibsuff=N32 libmagic=N32;;
14129     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14130       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14131     *) libsuff= shlibsuff= libmagic=never-match;;
14132     esac
14133     ;;
14134   esac
14135   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14136   shlibpath_overrides_runpath=no
14137   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14138   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14139   hardcode_into_libs=yes
14140   ;;
14141
14142 # No shared lib support for Linux oldld, aout, or coff.
14143 linux*oldld* | linux*aout* | linux*coff*)
14144   dynamic_linker=no
14145   ;;
14146
14147 linux*android*)
14148   version_type=none # Android doesn't support versioned libraries.
14149   need_lib_prefix=no
14150   need_version=no
14151   library_names_spec='$libname$release$shared_ext'
14152   soname_spec='$libname$release$shared_ext'
14153   finish_cmds=
14154   shlibpath_var=LD_LIBRARY_PATH
14155   shlibpath_overrides_runpath=yes
14156
14157   # This implies no fast_install, which is unacceptable.
14158   # Some rework will be needed to allow for fast_install
14159   # before this can be enabled.
14160   hardcode_into_libs=yes
14161
14162   dynamic_linker='Android linker'
14163   # Don't embed -rpath directories since the linker doesn't support them.
14164   hardcode_libdir_flag_spec='-L$libdir'
14165   ;;
14166
14167 # This must be glibc/ELF.
14168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14169   version_type=linux # correct to gnu/linux during the next big refactor
14170   need_lib_prefix=no
14171   need_version=no
14172   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14173   soname_spec='$libname$release$shared_ext$major'
14174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14175   shlibpath_var=LD_LIBRARY_PATH
14176   shlibpath_overrides_runpath=no
14177
14178   # Some binutils ld are patched to set DT_RUNPATH
14179   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   lt_cv_shlibpath_overrides_runpath=no
14183     save_LDFLAGS=$LDFLAGS
14184     save_libdir=$libdir
14185     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14186          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h.  */
14189
14190 int main (void)
14191 {
14192
14193  ;
14194  return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_c_try_link "$LINENO"; then :
14198   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14199   lt_cv_shlibpath_overrides_runpath=yes
14200 fi
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext \
14203     conftest$ac_exeext conftest.$ac_ext
14204     LDFLAGS=$save_LDFLAGS
14205     libdir=$save_libdir
14206
14207 fi
14208
14209   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14210
14211   # This implies no fast_install, which is unacceptable.
14212   # Some rework will be needed to allow for fast_install
14213   # before this can be enabled.
14214   hardcode_into_libs=yes
14215
14216   # Ideally, we could use ldconfig to report *all* directores which are
14217   # searched for libraries, however this is still not possible.  Aside from not
14218   # being certain /sbin/ldconfig is available, command
14219   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14220   # even though it is searched at run-time.  Try to do the best guess by
14221   # appending ld.so.conf contents (and includes) to the search path.
14222   if test -f /etc/ld.so.conf; then
14223     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' ' '`
14224     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14225   fi
14226
14227   # We used to test for /lib/ld.so.1 and disable shared libraries on
14228   # powerpc, because MkLinux only supported shared libraries with the
14229   # GNU dynamic linker.  Since this was broken with cross compilers,
14230   # most powerpc-linux boxes support dynamic linking these days and
14231   # people can always --disable-shared, the test was removed, and we
14232   # assume the GNU/Linux dynamic linker is in use.
14233   dynamic_linker='GNU/Linux ld.so'
14234   ;;
14235
14236 netbsdelf*-gnu)
14237   version_type=linux
14238   need_lib_prefix=no
14239   need_version=no
14240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14241   soname_spec='${libname}${release}${shared_ext}$major'
14242   shlibpath_var=LD_LIBRARY_PATH
14243   shlibpath_overrides_runpath=no
14244   hardcode_into_libs=yes
14245   dynamic_linker='NetBSD ld.elf_so'
14246   ;;
14247
14248 netbsd*)
14249   version_type=sunos
14250   need_lib_prefix=no
14251   need_version=no
14252   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14253     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14255     dynamic_linker='NetBSD (a.out) ld.so'
14256   else
14257     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14258     soname_spec='$libname$release$shared_ext$major'
14259     dynamic_linker='NetBSD ld.elf_so'
14260   fi
14261   shlibpath_var=LD_LIBRARY_PATH
14262   shlibpath_overrides_runpath=yes
14263   hardcode_into_libs=yes
14264   ;;
14265
14266 newsos6)
14267   version_type=linux # correct to gnu/linux during the next big refactor
14268   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14269   shlibpath_var=LD_LIBRARY_PATH
14270   shlibpath_overrides_runpath=yes
14271   ;;
14272
14273 *nto* | *qnx*)
14274   version_type=qnx
14275   need_lib_prefix=no
14276   need_version=no
14277   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14278   soname_spec='$libname$release$shared_ext$major'
14279   shlibpath_var=LD_LIBRARY_PATH
14280   shlibpath_overrides_runpath=no
14281   hardcode_into_libs=yes
14282   dynamic_linker='ldqnx.so'
14283   ;;
14284
14285 openbsd* | bitrig*)
14286   version_type=sunos
14287   sys_lib_dlsearch_path_spec=/usr/lib
14288   need_lib_prefix=no
14289   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14290     need_version=no
14291   else
14292     need_version=yes
14293   fi
14294   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14296   shlibpath_var=LD_LIBRARY_PATH
14297   shlibpath_overrides_runpath=yes
14298   ;;
14299
14300 os2*)
14301   libname_spec='$name'
14302   version_type=windows
14303   shrext_cmds=.dll
14304   need_version=no
14305   need_lib_prefix=no
14306   # OS/2 can only load a DLL with a base name of 8 characters or less.
14307   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14308     v=$($ECHO $release$versuffix | tr -d .-);
14309     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14310     $ECHO $n$v`$shared_ext'
14311   library_names_spec='${libname}_dll.$libext'
14312   dynamic_linker='OS/2 ld.exe'
14313   shlibpath_var=BEGINLIBPATH
14314   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14315   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14316   postinstall_cmds='base_file=`basename \$file`~
14317     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14318     dldir=$destdir/`dirname \$dlpath`~
14319     test -d \$dldir || mkdir -p \$dldir~
14320     $install_prog $dir/$dlname \$dldir/$dlname~
14321     chmod a+x \$dldir/$dlname~
14322     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14323       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14324     fi'
14325   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14326     dlpath=$dir/\$dldll~
14327     $RM \$dlpath'
14328   ;;
14329
14330 osf3* | osf4* | osf5*)
14331   version_type=osf
14332   need_lib_prefix=no
14333   need_version=no
14334   soname_spec='$libname$release$shared_ext$major'
14335   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14336   shlibpath_var=LD_LIBRARY_PATH
14337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14338   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339   ;;
14340
14341 rdos*)
14342   dynamic_linker=no
14343   ;;
14344
14345 solaris*)
14346   version_type=linux # correct to gnu/linux during the next big refactor
14347   need_lib_prefix=no
14348   need_version=no
14349   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14350   soname_spec='$libname$release$shared_ext$major'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   shlibpath_overrides_runpath=yes
14353   hardcode_into_libs=yes
14354   # ldd complains unless libraries are executable
14355   postinstall_cmds='chmod +x $lib'
14356   ;;
14357
14358 sunos4*)
14359   version_type=sunos
14360   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14361   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14362   shlibpath_var=LD_LIBRARY_PATH
14363   shlibpath_overrides_runpath=yes
14364   if test yes = "$with_gnu_ld"; then
14365     need_lib_prefix=no
14366   fi
14367   need_version=yes
14368   ;;
14369
14370 sysv4 | sysv4.3*)
14371   version_type=linux # correct to gnu/linux during the next big refactor
14372   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14373   soname_spec='$libname$release$shared_ext$major'
14374   shlibpath_var=LD_LIBRARY_PATH
14375   case $host_vendor in
14376     sni)
14377       shlibpath_overrides_runpath=no
14378       need_lib_prefix=no
14379       runpath_var=LD_RUN_PATH
14380       ;;
14381     siemens)
14382       need_lib_prefix=no
14383       ;;
14384     motorola)
14385       need_lib_prefix=no
14386       need_version=no
14387       shlibpath_overrides_runpath=no
14388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14389       ;;
14390   esac
14391   ;;
14392
14393 sysv4*MP*)
14394   if test -d /usr/nec; then
14395     version_type=linux # correct to gnu/linux during the next big refactor
14396     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14397     soname_spec='$libname$shared_ext.$major'
14398     shlibpath_var=LD_LIBRARY_PATH
14399   fi
14400   ;;
14401
14402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14403   version_type=sco
14404   need_lib_prefix=no
14405   need_version=no
14406   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14407   soname_spec='$libname$release$shared_ext$major'
14408   shlibpath_var=LD_LIBRARY_PATH
14409   shlibpath_overrides_runpath=yes
14410   hardcode_into_libs=yes
14411   if test yes = "$with_gnu_ld"; then
14412     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14413   else
14414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14415     case $host_os in
14416       sco3.2v5*)
14417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14418         ;;
14419     esac
14420   fi
14421   sys_lib_dlsearch_path_spec='/usr/lib'
14422   ;;
14423
14424 tpf*)
14425   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14426   version_type=linux # correct to gnu/linux during the next big refactor
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14430   shlibpath_var=LD_LIBRARY_PATH
14431   shlibpath_overrides_runpath=no
14432   hardcode_into_libs=yes
14433   ;;
14434
14435 uts4*)
14436   version_type=linux # correct to gnu/linux during the next big refactor
14437   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14438   soname_spec='$libname$release$shared_ext$major'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   ;;
14441
14442 *)
14443   dynamic_linker=no
14444   ;;
14445 esac
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14447 $as_echo "$dynamic_linker" >&6; }
14448 test no = "$dynamic_linker" && can_build_shared=no
14449
14450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14451 if test yes = "$GCC"; then
14452   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14453 fi
14454
14455 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14456   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14457 fi
14458
14459 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14460   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14461 fi
14462
14463 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14464 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14465
14466 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14467 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14468
14469 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14470 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14570 hardcode_action=
14571 if test -n "$hardcode_libdir_flag_spec" ||
14572    test -n "$runpath_var" ||
14573    test yes = "$hardcode_automatic"; then
14574
14575   # We can hardcode non-existent directories.
14576   if test no != "$hardcode_direct" &&
14577      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14578      # have to relink, otherwise we might link with an installed library
14579      # when we should be linking with a yet-to-be-installed one
14580      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14581      test no != "$hardcode_minus_L"; then
14582     # Linking always hardcodes the temporary library directory.
14583     hardcode_action=relink
14584   else
14585     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14586     hardcode_action=immediate
14587   fi
14588 else
14589   # We cannot hardcode anything, or else we can only hardcode existing
14590   # directories.
14591   hardcode_action=unsupported
14592 fi
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14594 $as_echo "$hardcode_action" >&6; }
14595
14596 if test relink = "$hardcode_action" ||
14597    test yes = "$inherit_rpath"; then
14598   # Fast installation is not supported
14599   enable_fast_install=no
14600 elif test yes = "$shlibpath_overrides_runpath" ||
14601      test no = "$enable_shared"; then
14602   # Fast installation is not necessary
14603   enable_fast_install=needless
14604 fi
14605
14606
14607
14608
14609
14610
14611   if test yes != "$enable_dlopen"; then
14612   enable_dlopen=unknown
14613   enable_dlopen_self=unknown
14614   enable_dlopen_self_static=unknown
14615 else
14616   lt_cv_dlopen=no
14617   lt_cv_dlopen_libs=
14618
14619   case $host_os in
14620   beos*)
14621     lt_cv_dlopen=load_add_on
14622     lt_cv_dlopen_libs=
14623     lt_cv_dlopen_self=yes
14624     ;;
14625
14626   mingw* | pw32* | cegcc*)
14627     lt_cv_dlopen=LoadLibrary
14628     lt_cv_dlopen_libs=
14629     ;;
14630
14631   cygwin*)
14632     lt_cv_dlopen=dlopen
14633     lt_cv_dlopen_libs=
14634     ;;
14635
14636   darwin*)
14637     # if libdl is installed we need to link against it
14638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14640 if ${ac_cv_lib_dl_dlopen+:} false; then :
14641   $as_echo_n "(cached) " >&6
14642 else
14643   ac_check_lib_save_LIBS=$LIBS
14644 LIBS="-ldl  $LIBS"
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h.  */
14647
14648
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 char dlopen ();
14653 int main (void)
14654 {
14655 return dlopen ();
14656  ;
14657  return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_c_try_link "$LINENO"; then :
14661   ac_cv_lib_dl_dlopen=yes
14662 else
14663   ac_cv_lib_dl_dlopen=no
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext \
14666     conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14672   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14673 else
14674
14675     lt_cv_dlopen=dyld
14676     lt_cv_dlopen_libs=
14677     lt_cv_dlopen_self=yes
14678
14679 fi
14680
14681     ;;
14682
14683   tpf*)
14684     # Don't try to run any link tests for TPF.  We know it's impossible
14685     # because TPF is a cross-compiler, and we know how we open DSOs.
14686     lt_cv_dlopen=dlopen
14687     lt_cv_dlopen_libs=
14688     lt_cv_dlopen_self=no
14689     ;;
14690
14691   *)
14692     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14693 if test "x$ac_cv_func_shl_load" = xyes; then :
14694   lt_cv_dlopen=shl_load
14695 else
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14698 if ${ac_cv_lib_dld_shl_load+:} false; then :
14699   $as_echo_n "(cached) " >&6
14700 else
14701   ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-ldld  $LIBS"
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h.  */
14705
14706
14707 #ifdef __cplusplus
14708 extern "C"
14709 #endif
14710 char shl_load ();
14711 int main (void)
14712 {
14713 return shl_load ();
14714  ;
14715  return 0;
14716 }
14717 _ACEOF
14718 if ac_fn_c_try_link "$LINENO"; then :
14719   ac_cv_lib_dld_shl_load=yes
14720 else
14721   ac_cv_lib_dld_shl_load=no
14722 fi
14723 rm -f core conftest.err conftest.$ac_objext \
14724     conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14728 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14729 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14730   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14731 else
14732   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14733 if test "x$ac_cv_func_dlopen" = xyes; then :
14734   lt_cv_dlopen=dlopen
14735 else
14736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14738 if ${ac_cv_lib_dl_dlopen+:} false; then :
14739   $as_echo_n "(cached) " >&6
14740 else
14741   ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-ldl  $LIBS"
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h.  */
14745
14746
14747 #ifdef __cplusplus
14748 extern "C"
14749 #endif
14750 char dlopen ();
14751 int main (void)
14752 {
14753 return dlopen ();
14754  ;
14755  return 0;
14756 }
14757 _ACEOF
14758 if ac_fn_c_try_link "$LINENO"; then :
14759   ac_cv_lib_dl_dlopen=yes
14760 else
14761   ac_cv_lib_dl_dlopen=no
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext \
14764     conftest$ac_exeext conftest.$ac_ext
14765 LIBS=$ac_check_lib_save_LIBS
14766 fi
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14769 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14770   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14771 else
14772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14774 if ${ac_cv_lib_svld_dlopen+:} false; then :
14775   $as_echo_n "(cached) " >&6
14776 else
14777   ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lsvld  $LIBS"
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781
14782
14783 #ifdef __cplusplus
14784 extern "C"
14785 #endif
14786 char dlopen ();
14787 int main (void)
14788 {
14789 return dlopen ();
14790  ;
14791  return 0;
14792 }
14793 _ACEOF
14794 if ac_fn_c_try_link "$LINENO"; then :
14795   ac_cv_lib_svld_dlopen=yes
14796 else
14797   ac_cv_lib_svld_dlopen=no
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext \
14800     conftest$ac_exeext conftest.$ac_ext
14801 LIBS=$ac_check_lib_save_LIBS
14802 fi
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14806   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14807 else
14808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14810 if ${ac_cv_lib_dld_dld_link+:} false; then :
14811   $as_echo_n "(cached) " >&6
14812 else
14813   ac_check_lib_save_LIBS=$LIBS
14814 LIBS="-ldld  $LIBS"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h.  */
14817
14818
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 char dld_link ();
14823 int main (void)
14824 {
14825 return dld_link ();
14826  ;
14827  return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_c_try_link "$LINENO"; then :
14831   ac_cv_lib_dld_dld_link=yes
14832 else
14833   ac_cv_lib_dld_dld_link=no
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext \
14836     conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14840 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14841 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14842   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14843 fi
14844
14845
14846 fi
14847
14848
14849 fi
14850
14851
14852 fi
14853
14854
14855 fi
14856
14857
14858 fi
14859
14860     ;;
14861   esac
14862
14863   if test no = "$lt_cv_dlopen"; then
14864     enable_dlopen=no
14865   else
14866     enable_dlopen=yes
14867   fi
14868
14869   case $lt_cv_dlopen in
14870   dlopen)
14871     save_CPPFLAGS=$CPPFLAGS
14872     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14873
14874     save_LDFLAGS=$LDFLAGS
14875     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14876
14877     save_LIBS=$LIBS
14878     LIBS="$lt_cv_dlopen_libs $LIBS"
14879
14880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14881 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14882 if ${lt_cv_dlopen_self+:} false; then :
14883   $as_echo_n "(cached) " >&6
14884 else
14885           if test yes = "$cross_compiling"; then :
14886   lt_cv_dlopen_self=cross
14887 else
14888   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14889   lt_status=$lt_dlunknown
14890   cat > conftest.$ac_ext <<_LT_EOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893
14894 #if HAVE_DLFCN_H
14895 #include <dlfcn.h>
14896 #endif
14897
14898 #include <stdio.h>
14899
14900 #ifdef RTLD_GLOBAL
14901 #  define LT_DLGLOBAL           RTLD_GLOBAL
14902 #else
14903 #  ifdef DL_GLOBAL
14904 #    define LT_DLGLOBAL         DL_GLOBAL
14905 #  else
14906 #    define LT_DLGLOBAL         0
14907 #  endif
14908 #endif
14909
14910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14911    find out it does not work in some platform. */
14912 #ifndef LT_DLLAZY_OR_NOW
14913 #  ifdef RTLD_LAZY
14914 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14915 #  else
14916 #    ifdef DL_LAZY
14917 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14918 #    else
14919 #      ifdef RTLD_NOW
14920 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14921 #      else
14922 #        ifdef DL_NOW
14923 #          define LT_DLLAZY_OR_NOW      DL_NOW
14924 #        else
14925 #          define LT_DLLAZY_OR_NOW      0
14926 #        endif
14927 #      endif
14928 #    endif
14929 #  endif
14930 #endif
14931
14932 /* When -fvisibility=hidden is used, assume the code has been annotated
14933    correspondingly for the symbols needed.  */
14934 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14935 int fnord () __attribute__((visibility("default")));
14936 #endif
14937
14938 int fnord () { return 42; }
14939 int main ()
14940 {
14941   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14942   int status = $lt_dlunknown;
14943
14944   if (self)
14945     {
14946       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14947       else
14948         {
14949           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14950           else puts (dlerror ());
14951         }
14952       /* dlclose (self); */
14953     }
14954   else
14955     puts (dlerror ());
14956
14957   return status;
14958 }
14959 _LT_EOF
14960   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14961   (eval $ac_link) 2>&5
14962   ac_status=$?
14963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14964   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14965     (./conftest; exit; ) >&5 2>/dev/null
14966     lt_status=$?
14967     case x$lt_status in
14968       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14969       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14970       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14971     esac
14972   else :
14973     # compilation failed
14974     lt_cv_dlopen_self=no
14975   fi
14976 fi
14977 rm -fr conftest*
14978
14979
14980 fi
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14982 $as_echo "$lt_cv_dlopen_self" >&6; }
14983
14984     if test yes = "$lt_cv_dlopen_self"; then
14985       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14986       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14987 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14988 if ${lt_cv_dlopen_self_static+:} false; then :
14989   $as_echo_n "(cached) " >&6
14990 else
14991           if test yes = "$cross_compiling"; then :
14992   lt_cv_dlopen_self_static=cross
14993 else
14994   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14995   lt_status=$lt_dlunknown
14996   cat > conftest.$ac_ext <<_LT_EOF
14997 #line $LINENO "configure"
14998 #include "confdefs.h"
14999
15000 #if HAVE_DLFCN_H
15001 #include <dlfcn.h>
15002 #endif
15003
15004 #include <stdio.h>
15005
15006 #ifdef RTLD_GLOBAL
15007 #  define LT_DLGLOBAL           RTLD_GLOBAL
15008 #else
15009 #  ifdef DL_GLOBAL
15010 #    define LT_DLGLOBAL         DL_GLOBAL
15011 #  else
15012 #    define LT_DLGLOBAL         0
15013 #  endif
15014 #endif
15015
15016 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15017    find out it does not work in some platform. */
15018 #ifndef LT_DLLAZY_OR_NOW
15019 #  ifdef RTLD_LAZY
15020 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15021 #  else
15022 #    ifdef DL_LAZY
15023 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15024 #    else
15025 #      ifdef RTLD_NOW
15026 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15027 #      else
15028 #        ifdef DL_NOW
15029 #          define LT_DLLAZY_OR_NOW      DL_NOW
15030 #        else
15031 #          define LT_DLLAZY_OR_NOW      0
15032 #        endif
15033 #      endif
15034 #    endif
15035 #  endif
15036 #endif
15037
15038 /* When -fvisibility=hidden is used, assume the code has been annotated
15039    correspondingly for the symbols needed.  */
15040 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15041 int fnord () __attribute__((visibility("default")));
15042 #endif
15043
15044 int fnord () { return 42; }
15045 int main ()
15046 {
15047   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15048   int status = $lt_dlunknown;
15049
15050   if (self)
15051     {
15052       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15053       else
15054         {
15055           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15056           else puts (dlerror ());
15057         }
15058       /* dlclose (self); */
15059     }
15060   else
15061     puts (dlerror ());
15062
15063   return status;
15064 }
15065 _LT_EOF
15066   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15067   (eval $ac_link) 2>&5
15068   ac_status=$?
15069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15071     (./conftest; exit; ) >&5 2>/dev/null
15072     lt_status=$?
15073     case x$lt_status in
15074       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15075       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15076       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15077     esac
15078   else :
15079     # compilation failed
15080     lt_cv_dlopen_self_static=no
15081   fi
15082 fi
15083 rm -fr conftest*
15084
15085
15086 fi
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15088 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15089     fi
15090
15091     CPPFLAGS=$save_CPPFLAGS
15092     LDFLAGS=$save_LDFLAGS
15093     LIBS=$save_LIBS
15094     ;;
15095   esac
15096
15097   case $lt_cv_dlopen_self in
15098   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15099   *) enable_dlopen_self=unknown ;;
15100   esac
15101
15102   case $lt_cv_dlopen_self_static in
15103   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15104   *) enable_dlopen_self_static=unknown ;;
15105   esac
15106 fi
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124 striplib=
15125 old_striplib=
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15127 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15128 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15129   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15130   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132 $as_echo "yes" >&6; }
15133 else
15134 # FIXME - insert some real tests, host_os isn't really good enough
15135   case $host_os in
15136   darwin*)
15137     if test -n "$STRIP"; then
15138       striplib="$STRIP -x"
15139       old_striplib="$STRIP -S"
15140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15141 $as_echo "yes" >&6; }
15142     else
15143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15145     fi
15146     ;;
15147   *)
15148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15150     ;;
15151   esac
15152 fi
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165   # Report what library types will actually be built
15166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15167 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15169 $as_echo "$can_build_shared" >&6; }
15170
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15172 $as_echo_n "checking whether to build shared libraries... " >&6; }
15173   test no = "$can_build_shared" && enable_shared=no
15174
15175   # On AIX, shared libraries and static libraries use the same namespace, and
15176   # are all built from PIC.
15177   case $host_os in
15178   aix3*)
15179     test yes = "$enable_shared" && enable_static=no
15180     if test -n "$RANLIB"; then
15181       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15182       postinstall_cmds='$RANLIB $lib'
15183     fi
15184     ;;
15185
15186   aix[4-9]*)
15187     if test ia64 != "$host_cpu"; then
15188       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15189       yes,aix,yes) ;;                   # shared object as lib.so file only
15190       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15191       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15192       esac
15193     fi
15194     ;;
15195   esac
15196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15197 $as_echo "$enable_shared" >&6; }
15198
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15200 $as_echo_n "checking whether to build static libraries... " >&6; }
15201   # Make sure either enable_shared or enable_static is yes.
15202   test yes = "$enable_shared" || enable_static=yes
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15204 $as_echo "$enable_static" >&6; }
15205
15206
15207
15208
15209 fi
15210 ac_ext=c
15211 ac_cpp='$CPP $CPPFLAGS'
15212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15215
15216 CC=$lt_save_CC
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232         ac_config_commands="$ac_config_commands libtool"
15233
15234
15235
15236
15237 # Only expand once:
15238
15239
15240 ## --------------------- ##
15241 ##  End of libtool code  ##
15242 ## --------------------- ##
15243
15244 #
15245 # Verify if finally libtool shared libraries will be built
15246 #
15247
15248 case "x$enable_shared" in # ((
15249   xyes | xno)
15250     xc_lt_build_shared=$enable_shared
15251     ;;
15252   *)
15253     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15254     ;;
15255 esac
15256
15257 #
15258 # Verify if finally libtool static libraries will be built
15259 #
15260
15261 case "x$enable_static" in # ((
15262   xyes | xno)
15263     xc_lt_build_static=$enable_static
15264     ;;
15265   *)
15266     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15267     ;;
15268 esac
15269
15270 #
15271 # Verify if libtool shared libraries should be linked using flag -version-info
15272 #
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15275 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15276 xc_lt_shlib_use_version_info='yes'
15277 if test "x$version_type" = 'xnone'; then
15278   xc_lt_shlib_use_version_info='no'
15279 fi
15280 case $host_os in # (
15281   amigaos*)
15282     xc_lt_shlib_use_version_info='yes'
15283     ;;
15284 esac
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15286 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15287
15288 #
15289 # Verify if libtool shared libraries should be linked using flag -no-undefined
15290 #
15291
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15293 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15294 xc_lt_shlib_use_no_undefined='no'
15295 if test "x$allow_undefined" = 'xno'; then
15296   xc_lt_shlib_use_no_undefined='yes'
15297 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15298   xc_lt_shlib_use_no_undefined='yes'
15299 fi
15300 case $host_os in # (
15301   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15302     xc_lt_shlib_use_no_undefined='yes'
15303     ;;
15304 esac
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15306 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15307
15308 #
15309 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15310 #
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15313 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15314 xc_lt_shlib_use_mimpure_text='no'
15315 case $host_os in # (
15316   solaris2*)
15317     if test "x$GCC" = 'xyes'; then
15318       xc_lt_shlib_use_mimpure_text='yes'
15319     fi
15320     ;;
15321 esac
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15323 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15324
15325 #
15326 # Find out wether libtool libraries would be built wit PIC
15327 #
15328
15329 case "x$pic_mode" in # ((((
15330   xdefault)
15331     xc_lt_build_shared_with_pic='yes'
15332     xc_lt_build_static_with_pic='no'
15333     ;;
15334   xyes)
15335     xc_lt_build_shared_with_pic='yes'
15336     xc_lt_build_static_with_pic='yes'
15337     ;;
15338   xno)
15339     xc_lt_build_shared_with_pic='no'
15340     xc_lt_build_static_with_pic='no'
15341     ;;
15342   *)
15343     xc_lt_build_shared_with_pic='unknown'
15344     xc_lt_build_static_with_pic='unknown'
15345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15346 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15347     ;;
15348 esac
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15350 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15352 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15354 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15356 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15357
15358 #
15359 # Verify if libtool shared libraries will be built while static not built
15360 #
15361
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15363 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15364 if test "$xc_lt_build_shared" = 'yes' &&
15365   test "$xc_lt_build_static" = 'no'; then
15366   xc_lt_build_shared_only='yes'
15367 else
15368   xc_lt_build_shared_only='no'
15369 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15371 $as_echo "$xc_lt_build_shared_only" >&6; }
15372
15373 #
15374 # Verify if libtool static libraries will be built while shared not built
15375 #
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15378 $as_echo_n "checking whether to build static libraries only... " >&6; }
15379 if test "$xc_lt_build_static" = 'yes' &&
15380   test "$xc_lt_build_shared" = 'no'; then
15381   xc_lt_build_static_only='yes'
15382 else
15383   xc_lt_build_static_only='no'
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15386 $as_echo "$xc_lt_build_static_only" >&6; }
15387
15388
15389
15390
15391 #
15392 # Automake conditionals based on libtool related checks
15393 #
15394
15395  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15396   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
15397   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15398 else
15399   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15400   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
15401 fi
15402
15403  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15404   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15405   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15406 else
15407   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15408   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15409 fi
15410
15411  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15412   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15413   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15414 else
15415   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15416   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15417 fi
15418
15419
15420 #
15421 # Due to libtool and automake machinery limitations of not allowing
15422 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15423 # inclusion of these in shared or static libraries, we are forced to
15424 # build using separate configure runs for shared and static libraries
15425 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15426 # to compile objects for each kind of library. Notice that relying on
15427 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15428 # user might for example choose to build static libraries with PIC.
15429 #
15430
15431 #
15432 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15433 # targeting a static library and not building its shared counterpart.
15434 #
15435
15436  if test "x$xc_lt_build_static_only" = 'xyes'; then
15437   USE_CPPFLAG_CARES_STATICLIB_TRUE=
15438   USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
15439 else
15440   USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
15441   USE_CPPFLAG_CARES_STATICLIB_FALSE=
15442 fi
15443
15444
15445 #
15446 # Make staticlib CPPFLAG variable and its definition visible in output
15447 # files unconditionally, providing an empty definition unless strictly
15448 # targeting a static library and not building its shared counterpart.
15449 #
15450
15451 CPPFLAG_CARES_STATICLIB=
15452 if test "x$xc_lt_build_static_only" = 'xyes'; then
15453   CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
15454 fi
15455
15456
15457
15458
15459   #
15460   compiler_id="unknown"
15461   compiler_num="0"
15462   #
15463   flags_dbg_all="unknown"
15464   flags_dbg_yes="unknown"
15465   flags_dbg_off="unknown"
15466   flags_opt_all="unknown"
15467   flags_opt_yes="unknown"
15468   flags_opt_off="unknown"
15469   #
15470   flags_prefer_cppflags="no"
15471   #
15472
15473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15474 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15475
15476       if test -z "$SED"; then
15477     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15478   fi
15479   if test -z "$GREP"; then
15480     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15481   fi
15482
15483   tmp_exp=""
15484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h.  */
15486
15487
15488 #ifdef __DECC
15489 CURL_DEF_TOKEN __DECC
15490 #endif
15491
15492
15493 _ACEOF
15494 if ac_fn_c_try_cpp "$LINENO"; then :
15495
15496     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15497       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15498       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15499       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15500     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15501       tmp_exp=""
15502     fi
15503
15504 fi
15505 rm -f conftest.err conftest.i conftest.$ac_ext
15506   if test -z "$tmp_exp"; then
15507     curl_cv_have_def___DECC=no
15508
15509   else
15510     curl_cv_have_def___DECC=yes
15511     curl_cv_def___DECC=$tmp_exp
15512
15513   fi
15514
15515
15516       if test -z "$SED"; then
15517     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15518   fi
15519   if test -z "$GREP"; then
15520     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15521   fi
15522
15523   tmp_exp=""
15524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h.  */
15526
15527
15528 #ifdef __DECC_VER
15529 CURL_DEF_TOKEN __DECC_VER
15530 #endif
15531
15532
15533 _ACEOF
15534 if ac_fn_c_try_cpp "$LINENO"; then :
15535
15536     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15537       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15538       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15539       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15540     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15541       tmp_exp=""
15542     fi
15543
15544 fi
15545 rm -f conftest.err conftest.i conftest.$ac_ext
15546   if test -z "$tmp_exp"; then
15547     curl_cv_have_def___DECC_VER=no
15548
15549   else
15550     curl_cv_have_def___DECC_VER=yes
15551     curl_cv_def___DECC_VER=$tmp_exp
15552
15553   fi
15554
15555   if test "$curl_cv_have_def___DECC" = "yes" &&
15556     test "$curl_cv_have_def___DECC_VER" = "yes"; then
15557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15558 $as_echo "yes" >&6; }
15559     compiler_id="DEC_C"
15560     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15561     flags_dbg_yes="-g2"
15562     flags_dbg_off="-g0"
15563     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15564     flags_opt_yes="-O1"
15565     flags_opt_off="-O0"
15566   else
15567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568 $as_echo "no" >&6; }
15569   fi
15570
15571
15572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15573 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15574
15575       if test -z "$SED"; then
15576     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15577   fi
15578   if test -z "$GREP"; then
15579     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15580   fi
15581
15582   tmp_exp=""
15583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h.  */
15585
15586
15587 #ifdef __HP_cc
15588 CURL_DEF_TOKEN __HP_cc
15589 #endif
15590
15591
15592 _ACEOF
15593 if ac_fn_c_try_cpp "$LINENO"; then :
15594
15595     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15596       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15597       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15598       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15599     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15600       tmp_exp=""
15601     fi
15602
15603 fi
15604 rm -f conftest.err conftest.i conftest.$ac_ext
15605   if test -z "$tmp_exp"; then
15606     curl_cv_have_def___HP_cc=no
15607
15608   else
15609     curl_cv_have_def___HP_cc=yes
15610     curl_cv_def___HP_cc=$tmp_exp
15611
15612   fi
15613
15614   if test "$curl_cv_have_def___HP_cc" = "yes"; then
15615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15616 $as_echo "yes" >&6; }
15617     compiler_id="HP_UX_C"
15618     flags_dbg_all="-g -s"
15619     flags_dbg_yes="-g"
15620     flags_dbg_off="-s"
15621     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15622     flags_opt_yes="+O2"
15623     flags_opt_off="+O0"
15624   else
15625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627   fi
15628
15629
15630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15631 $as_echo_n "checking if compiler is IBM C... " >&6; }
15632
15633       if test -z "$SED"; then
15634     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15635   fi
15636   if test -z "$GREP"; then
15637     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15638   fi
15639
15640   tmp_exp=""
15641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h.  */
15643
15644
15645 #ifdef __IBMC__
15646 CURL_DEF_TOKEN __IBMC__
15647 #endif
15648
15649
15650 _ACEOF
15651 if ac_fn_c_try_cpp "$LINENO"; then :
15652
15653     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15654       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15655       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15656       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15657     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15658       tmp_exp=""
15659     fi
15660
15661 fi
15662 rm -f conftest.err conftest.i conftest.$ac_ext
15663   if test -z "$tmp_exp"; then
15664     curl_cv_have_def___IBMC__=no
15665
15666   else
15667     curl_cv_have_def___IBMC__=yes
15668     curl_cv_def___IBMC__=$tmp_exp
15669
15670   fi
15671
15672   if test "$curl_cv_have_def___IBMC__" = "yes"; then
15673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15674 $as_echo "yes" >&6; }
15675     compiler_id="IBM_C"
15676     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15677     flags_dbg_yes="-g"
15678     flags_dbg_off=""
15679     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15680     flags_opt_all="$flags_opt_all -qnooptimize"
15681     flags_opt_all="$flags_opt_all -qoptimize=0"
15682     flags_opt_all="$flags_opt_all -qoptimize=1"
15683     flags_opt_all="$flags_opt_all -qoptimize=2"
15684     flags_opt_all="$flags_opt_all -qoptimize=3"
15685     flags_opt_all="$flags_opt_all -qoptimize=4"
15686     flags_opt_all="$flags_opt_all -qoptimize=5"
15687     flags_opt_yes="-O2"
15688     flags_opt_off="-qnooptimize"
15689     flags_prefer_cppflags="yes"
15690   else
15691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693   fi
15694
15695
15696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15697 $as_echo_n "checking if compiler is Intel C... " >&6; }
15698
15699       if test -z "$SED"; then
15700     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15701   fi
15702   if test -z "$GREP"; then
15703     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15704   fi
15705
15706   tmp_exp=""
15707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h.  */
15709
15710
15711 #ifdef __INTEL_COMPILER
15712 CURL_DEF_TOKEN __INTEL_COMPILER
15713 #endif
15714
15715
15716 _ACEOF
15717 if ac_fn_c_try_cpp "$LINENO"; then :
15718
15719     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15720       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15721       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15722       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15723     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15724       tmp_exp=""
15725     fi
15726
15727 fi
15728 rm -f conftest.err conftest.i conftest.$ac_ext
15729   if test -z "$tmp_exp"; then
15730     curl_cv_have_def___INTEL_COMPILER=no
15731
15732   else
15733     curl_cv_have_def___INTEL_COMPILER=yes
15734     curl_cv_def___INTEL_COMPILER=$tmp_exp
15735
15736   fi
15737
15738   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15740 $as_echo "yes" >&6; }
15741     compiler_num="$curl_cv_def___INTEL_COMPILER"
15742
15743       if test -z "$SED"; then
15744     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15745   fi
15746   if test -z "$GREP"; then
15747     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15748   fi
15749
15750   tmp_exp=""
15751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h.  */
15753
15754
15755 #ifdef __unix__
15756 CURL_DEF_TOKEN __unix__
15757 #endif
15758
15759
15760 _ACEOF
15761 if ac_fn_c_try_cpp "$LINENO"; then :
15762
15763     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15764       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15765       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15766       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15767     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15768       tmp_exp=""
15769     fi
15770
15771 fi
15772 rm -f conftest.err conftest.i conftest.$ac_ext
15773   if test -z "$tmp_exp"; then
15774     curl_cv_have_def___unix__=no
15775
15776   else
15777     curl_cv_have_def___unix__=yes
15778     curl_cv_def___unix__=$tmp_exp
15779
15780   fi
15781
15782     if test "$curl_cv_have_def___unix__" = "yes"; then
15783       compiler_id="INTEL_UNIX_C"
15784       flags_dbg_all="-g -g0"
15785       flags_dbg_yes="-g"
15786       flags_dbg_off="-g0"
15787       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15788       flags_opt_yes="-O2"
15789       flags_opt_off="-O0"
15790     else
15791       compiler_id="INTEL_WINDOWS_C"
15792       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15793       flags_dbg_all="$flags_dbg_all /debug"
15794       flags_dbg_all="$flags_dbg_all /debug:none"
15795       flags_dbg_all="$flags_dbg_all /debug:minimal"
15796       flags_dbg_all="$flags_dbg_all /debug:partial"
15797       flags_dbg_all="$flags_dbg_all /debug:full"
15798       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15799       flags_dbg_all="$flags_dbg_all /debug:extended"
15800       flags_dbg_yes="/Zi /Oy-"
15801       flags_dbg_off="/debug:none /Oy-"
15802       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15803       flags_opt_yes="/O2"
15804       flags_opt_off="/Od"
15805     fi
15806   else
15807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15808 $as_echo "no" >&6; }
15809   fi
15810
15811
15812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15813 $as_echo_n "checking if compiler is clang... " >&6; }
15814
15815       if test -z "$SED"; then
15816     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15817   fi
15818   if test -z "$GREP"; then
15819     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15820   fi
15821
15822   tmp_exp=""
15823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h.  */
15825
15826
15827 #ifdef __clang__
15828 CURL_DEF_TOKEN __clang__
15829 #endif
15830
15831
15832 _ACEOF
15833 if ac_fn_c_try_cpp "$LINENO"; then :
15834
15835     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15836       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15837       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15838       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15839     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15840       tmp_exp=""
15841     fi
15842
15843 fi
15844 rm -f conftest.err conftest.i conftest.$ac_ext
15845   if test -z "$tmp_exp"; then
15846     curl_cv_have_def___clang__=no
15847
15848   else
15849     curl_cv_have_def___clang__=yes
15850     curl_cv_def___clang__=$tmp_exp
15851
15852   fi
15853
15854   if test "$curl_cv_have_def___clang__" = "yes"; then
15855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15856 $as_echo "yes" >&6; }
15857     compiler_id="CLANG"
15858     clangver=`$CC -dumpversion`
15859     clangvhi=`echo $clangver | cut -d . -f1`
15860     clangvlo=`echo $clangver | cut -d . -f2`
15861     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
15862     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15863     flags_dbg_all="$flags_dbg_all -ggdb"
15864     flags_dbg_all="$flags_dbg_all -gstabs"
15865     flags_dbg_all="$flags_dbg_all -gstabs+"
15866     flags_dbg_all="$flags_dbg_all -gcoff"
15867     flags_dbg_all="$flags_dbg_all -gxcoff"
15868     flags_dbg_all="$flags_dbg_all -gdwarf-2"
15869     flags_dbg_all="$flags_dbg_all -gvms"
15870     flags_dbg_yes="-g"
15871     flags_dbg_off="-g0"
15872     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
15873     flags_opt_yes="-Os"
15874     flags_opt_off="-O0"
15875   else
15876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878   fi
15879
15880
15881       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
15882 $as_echo_n "checking if compiler is GNU C... " >&6; }
15883
15884       if test -z "$SED"; then
15885     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15886   fi
15887   if test -z "$GREP"; then
15888     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15889   fi
15890
15891   tmp_exp=""
15892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h.  */
15894
15895
15896 #ifdef __GNUC__
15897 CURL_DEF_TOKEN __GNUC__
15898 #endif
15899
15900
15901 _ACEOF
15902 if ac_fn_c_try_cpp "$LINENO"; then :
15903
15904     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15905       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15906       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15907       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15908     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15909       tmp_exp=""
15910     fi
15911
15912 fi
15913 rm -f conftest.err conftest.i conftest.$ac_ext
15914   if test -z "$tmp_exp"; then
15915     curl_cv_have_def___GNUC__=no
15916
15917   else
15918     curl_cv_have_def___GNUC__=yes
15919     curl_cv_def___GNUC__=$tmp_exp
15920
15921   fi
15922
15923   if test "$curl_cv_have_def___GNUC__" = "yes" &&
15924     test "$compiler_id" = "unknown"; then
15925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926 $as_echo "yes" >&6; }
15927     compiler_id="GNU_C"
15928     gccver=`$CC -dumpversion`
15929     gccvhi=`echo $gccver | cut -d . -f1`
15930     gccvlo=`echo $gccver | cut -d . -f2`
15931     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
15932     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15933     flags_dbg_all="$flags_dbg_all -ggdb"
15934     flags_dbg_all="$flags_dbg_all -gstabs"
15935     flags_dbg_all="$flags_dbg_all -gstabs+"
15936     flags_dbg_all="$flags_dbg_all -gcoff"
15937     flags_dbg_all="$flags_dbg_all -gxcoff"
15938     flags_dbg_all="$flags_dbg_all -gdwarf-2"
15939     flags_dbg_all="$flags_dbg_all -gvms"
15940     flags_dbg_yes="-g"
15941     flags_dbg_off="-g0"
15942     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15943     flags_opt_yes="-O2"
15944     flags_opt_off="-O0"
15945
15946       if test -z "$SED"; then
15947     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15948   fi
15949   if test -z "$GREP"; then
15950     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15951   fi
15952
15953   tmp_exp=""
15954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h.  */
15956
15957
15958 #ifdef _WIN32
15959 CURL_DEF_TOKEN _WIN32
15960 #endif
15961
15962
15963 _ACEOF
15964 if ac_fn_c_try_cpp "$LINENO"; then :
15965
15966     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15967       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15968       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15969       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15970     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
15971       tmp_exp=""
15972     fi
15973
15974 fi
15975 rm -f conftest.err conftest.i conftest.$ac_ext
15976   if test -z "$tmp_exp"; then
15977     curl_cv_have_def__WIN32=no
15978
15979   else
15980     curl_cv_have_def__WIN32=yes
15981     curl_cv_def__WIN32=$tmp_exp
15982
15983   fi
15984
15985   else
15986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15988   fi
15989
15990
15991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
15992 $as_echo_n "checking if compiler is LCC... " >&6; }
15993
15994       if test -z "$SED"; then
15995     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15996   fi
15997   if test -z "$GREP"; then
15998     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15999   fi
16000
16001   tmp_exp=""
16002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h.  */
16004
16005
16006 #ifdef __LCC__
16007 CURL_DEF_TOKEN __LCC__
16008 #endif
16009
16010
16011 _ACEOF
16012 if ac_fn_c_try_cpp "$LINENO"; then :
16013
16014     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16015       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16016       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16017       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16018     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16019       tmp_exp=""
16020     fi
16021
16022 fi
16023 rm -f conftest.err conftest.i conftest.$ac_ext
16024   if test -z "$tmp_exp"; then
16025     curl_cv_have_def___LCC__=no
16026
16027   else
16028     curl_cv_have_def___LCC__=yes
16029     curl_cv_def___LCC__=$tmp_exp
16030
16031   fi
16032
16033   if test "$curl_cv_have_def___LCC__" = "yes"; then
16034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16036     compiler_id="LCC"
16037     flags_dbg_all="-g"
16038     flags_dbg_yes="-g"
16039     flags_dbg_off=""
16040     flags_opt_all=""
16041     flags_opt_yes=""
16042     flags_opt_off=""
16043   else
16044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046   fi
16047
16048
16049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16050 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16051
16052       if test -z "$SED"; then
16053     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16054   fi
16055   if test -z "$GREP"; then
16056     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16057   fi
16058
16059   tmp_exp=""
16060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h.  */
16062
16063
16064 #ifdef __GNUC__
16065 CURL_DEF_TOKEN __GNUC__
16066 #endif
16067
16068
16069 _ACEOF
16070 if ac_fn_c_try_cpp "$LINENO"; then :
16071
16072     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16073       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16074       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16075       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16076     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16077       tmp_exp=""
16078     fi
16079
16080 fi
16081 rm -f conftest.err conftest.i conftest.$ac_ext
16082   if test -z "$tmp_exp"; then
16083     curl_cv_have_def___GNUC__=no
16084
16085   else
16086     curl_cv_have_def___GNUC__=yes
16087     curl_cv_def___GNUC__=$tmp_exp
16088
16089   fi
16090
16091
16092       if test -z "$SED"; then
16093     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16094   fi
16095   if test -z "$GREP"; then
16096     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16097   fi
16098
16099   tmp_exp=""
16100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h.  */
16102
16103
16104 #ifdef _COMPILER_VERSION
16105 CURL_DEF_TOKEN _COMPILER_VERSION
16106 #endif
16107
16108
16109 _ACEOF
16110 if ac_fn_c_try_cpp "$LINENO"; then :
16111
16112     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16113       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16114       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16115       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16116     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16117       tmp_exp=""
16118     fi
16119
16120 fi
16121 rm -f conftest.err conftest.i conftest.$ac_ext
16122   if test -z "$tmp_exp"; then
16123     curl_cv_have_def__COMPILER_VERSION=no
16124
16125   else
16126     curl_cv_have_def__COMPILER_VERSION=yes
16127     curl_cv_def__COMPILER_VERSION=$tmp_exp
16128
16129   fi
16130
16131
16132       if test -z "$SED"; then
16133     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16134   fi
16135   if test -z "$GREP"; then
16136     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16137   fi
16138
16139   tmp_exp=""
16140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h.  */
16142
16143
16144 #ifdef _SGI_COMPILER_VERSION
16145 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16146 #endif
16147
16148
16149 _ACEOF
16150 if ac_fn_c_try_cpp "$LINENO"; then :
16151
16152     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16153       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16154       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16155       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16156     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16157       tmp_exp=""
16158     fi
16159
16160 fi
16161 rm -f conftest.err conftest.i conftest.$ac_ext
16162   if test -z "$tmp_exp"; then
16163     curl_cv_have_def__SGI_COMPILER_VERSION=no
16164
16165   else
16166     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16167     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16168
16169   fi
16170
16171   if test "$curl_cv_have_def___GNUC__" = "no" &&
16172     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16173      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16175 $as_echo "yes" >&6; }
16176     compiler_id="SGI_MIPSPRO_C"
16177     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16178     flags_dbg_yes="-g"
16179     flags_dbg_off="-g0"
16180     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16181     flags_opt_yes="-O2"
16182     flags_opt_off="-O0"
16183   else
16184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185 $as_echo "no" >&6; }
16186   fi
16187
16188
16189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16190 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16191
16192       if test -z "$SED"; then
16193     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16194   fi
16195   if test -z "$GREP"; then
16196     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16197   fi
16198
16199   tmp_exp=""
16200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h.  */
16202
16203
16204 #ifdef __GNUC__
16205 CURL_DEF_TOKEN __GNUC__
16206 #endif
16207
16208
16209 _ACEOF
16210 if ac_fn_c_try_cpp "$LINENO"; then :
16211
16212     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16213       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16214       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16215       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16216     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16217       tmp_exp=""
16218     fi
16219
16220 fi
16221 rm -f conftest.err conftest.i conftest.$ac_ext
16222   if test -z "$tmp_exp"; then
16223     curl_cv_have_def___GNUC__=no
16224
16225   else
16226     curl_cv_have_def___GNUC__=yes
16227     curl_cv_def___GNUC__=$tmp_exp
16228
16229   fi
16230
16231
16232       if test -z "$SED"; then
16233     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16234   fi
16235   if test -z "$GREP"; then
16236     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16237   fi
16238
16239   tmp_exp=""
16240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h.  */
16242
16243
16244 #ifdef __sgi
16245 CURL_DEF_TOKEN __sgi
16246 #endif
16247
16248
16249 _ACEOF
16250 if ac_fn_c_try_cpp "$LINENO"; then :
16251
16252     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16253       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16254       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16255       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16256     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16257       tmp_exp=""
16258     fi
16259
16260 fi
16261 rm -f conftest.err conftest.i conftest.$ac_ext
16262   if test -z "$tmp_exp"; then
16263     curl_cv_have_def___sgi=no
16264
16265   else
16266     curl_cv_have_def___sgi=yes
16267     curl_cv_def___sgi=$tmp_exp
16268
16269   fi
16270
16271   if test "$curl_cv_have_def___GNUC__" = "no" &&
16272     test "$curl_cv_have_def___sgi" = "yes" &&
16273     test "$compiler_id" = "unknown"; then
16274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16276     compiler_id="SGI_MIPS_C"
16277     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16278     flags_dbg_yes="-g"
16279     flags_dbg_off="-g0"
16280     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16281     flags_opt_yes="-O2"
16282     flags_opt_off="-O0"
16283   else
16284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16286   fi
16287
16288
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16290 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16291
16292       if test -z "$SED"; then
16293     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16294   fi
16295   if test -z "$GREP"; then
16296     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16297   fi
16298
16299   tmp_exp=""
16300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h.  */
16302
16303
16304 #ifdef __SUNPRO_C
16305 CURL_DEF_TOKEN __SUNPRO_C
16306 #endif
16307
16308
16309 _ACEOF
16310 if ac_fn_c_try_cpp "$LINENO"; then :
16311
16312     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16313       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16314       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16315       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16316     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16317       tmp_exp=""
16318     fi
16319
16320 fi
16321 rm -f conftest.err conftest.i conftest.$ac_ext
16322   if test -z "$tmp_exp"; then
16323     curl_cv_have_def___SUNPRO_C=no
16324
16325   else
16326     curl_cv_have_def___SUNPRO_C=yes
16327     curl_cv_def___SUNPRO_C=$tmp_exp
16328
16329   fi
16330
16331   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333 $as_echo "yes" >&6; }
16334     compiler_id="SUNPRO_C"
16335     flags_dbg_all="-g -s"
16336     flags_dbg_yes="-g"
16337     flags_dbg_off="-s"
16338     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16339     flags_opt_yes="-xO2"
16340     flags_opt_off=""
16341   else
16342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344   fi
16345
16346
16347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16348 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16349
16350       if test -z "$SED"; then
16351     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16352   fi
16353   if test -z "$GREP"; then
16354     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16355   fi
16356
16357   tmp_exp=""
16358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360
16361
16362 #ifdef __TINYC__
16363 CURL_DEF_TOKEN __TINYC__
16364 #endif
16365
16366
16367 _ACEOF
16368 if ac_fn_c_try_cpp "$LINENO"; then :
16369
16370     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16371       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16372       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16373       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16374     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16375       tmp_exp=""
16376     fi
16377
16378 fi
16379 rm -f conftest.err conftest.i conftest.$ac_ext
16380   if test -z "$tmp_exp"; then
16381     curl_cv_have_def___TINYC__=no
16382
16383   else
16384     curl_cv_have_def___TINYC__=yes
16385     curl_cv_def___TINYC__=$tmp_exp
16386
16387   fi
16388
16389   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16392     compiler_id="TINY_C"
16393     flags_dbg_all="-g -b"
16394     flags_dbg_yes="-g"
16395     flags_dbg_off=""
16396     flags_opt_all=""
16397     flags_opt_yes=""
16398     flags_opt_off=""
16399   else
16400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16402   fi
16403
16404
16405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16406 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16407
16408       if test -z "$SED"; then
16409     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16410   fi
16411   if test -z "$GREP"; then
16412     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16413   fi
16414
16415   tmp_exp=""
16416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h.  */
16418
16419
16420 #ifdef __WATCOMC__
16421 CURL_DEF_TOKEN __WATCOMC__
16422 #endif
16423
16424
16425 _ACEOF
16426 if ac_fn_c_try_cpp "$LINENO"; then :
16427
16428     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16429       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16430       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16431       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16432     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16433       tmp_exp=""
16434     fi
16435
16436 fi
16437 rm -f conftest.err conftest.i conftest.$ac_ext
16438   if test -z "$tmp_exp"; then
16439     curl_cv_have_def___WATCOMC__=no
16440
16441   else
16442     curl_cv_have_def___WATCOMC__=yes
16443     curl_cv_def___WATCOMC__=$tmp_exp
16444
16445   fi
16446
16447   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16449 $as_echo "yes" >&6; }
16450
16451       if test -z "$SED"; then
16452     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16453   fi
16454   if test -z "$GREP"; then
16455     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16456   fi
16457
16458   tmp_exp=""
16459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h.  */
16461
16462
16463 #ifdef __UNIX__
16464 CURL_DEF_TOKEN __UNIX__
16465 #endif
16466
16467
16468 _ACEOF
16469 if ac_fn_c_try_cpp "$LINENO"; then :
16470
16471     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16472       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16473       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16474       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16475     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16476       tmp_exp=""
16477     fi
16478
16479 fi
16480 rm -f conftest.err conftest.i conftest.$ac_ext
16481   if test -z "$tmp_exp"; then
16482     curl_cv_have_def___UNIX__=no
16483
16484   else
16485     curl_cv_have_def___UNIX__=yes
16486     curl_cv_def___UNIX__=$tmp_exp
16487
16488   fi
16489
16490     if test "$curl_cv_have_def___UNIX__" = "yes"; then
16491       compiler_id="WATCOM_UNIX_C"
16492       flags_dbg_all="-g1 -g1+ -g2 -g3"
16493       flags_dbg_yes="-g2"
16494       flags_dbg_off=""
16495       flags_opt_all="-O0 -O1 -O2 -O3"
16496       flags_opt_yes="-O2"
16497       flags_opt_off="-O0"
16498     else
16499       compiler_id="WATCOM_WINDOWS_C"
16500       flags_dbg_all=""
16501       flags_dbg_yes=""
16502       flags_dbg_off=""
16503       flags_opt_all=""
16504       flags_opt_yes=""
16505       flags_opt_off=""
16506     fi
16507   else
16508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16510   fi
16511
16512   #
16513   if test "$compiler_id" = "unknown"; then
16514   cat <<_EOF 1>&2
16515 ***
16516 *** Warning: This configure script does not have information about the
16517 *** compiler you are using, relative to the flags required to enable or
16518 *** disable generation of debug info, optimization options or warnings.
16519 ***
16520 *** Whatever settings are present in CFLAGS will be used for this run.
16521 ***
16522 *** If you wish to help the c-ares project to better support your compiler
16523 *** you can report this and the required info on the c-ares development
16524 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
16525 ***
16526 _EOF
16527   fi
16528
16529
16530 squeeze() {
16531   _sqz_result=""
16532   eval _sqz_input=\$$1
16533   for _sqz_token in $_sqz_input; do
16534     if test -z "$_sqz_result"; then
16535       _sqz_result="$_sqz_token"
16536     else
16537       _sqz_result="$_sqz_result $_sqz_token"
16538     fi
16539   done
16540   eval $1=\$_sqz_result
16541   return 0
16542 }
16543
16544
16545       #
16546   if test "$compiler_id" != "unknown"; then
16547     #
16548     if test "$compiler_id" = "GNU_C" ||
16549       test "$compiler_id" = "CLANG"; then
16550
16551       if test "$compiler_id" = "GNU_C" ||
16552     test "$compiler_id" = "CLANG"; then
16553     tmp_has_include="no"
16554     tmp_chg_FLAGS="$CFLAGS"
16555     for word1 in $tmp_chg_FLAGS; do
16556       case "$word1" in
16557         -I*)
16558           tmp_has_include="yes"
16559           ;;
16560       esac
16561     done
16562     if test "$tmp_has_include" = "yes"; then
16563       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16564       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16565       CFLAGS="$tmp_chg_FLAGS"
16566       squeeze CFLAGS
16567     fi
16568     tmp_has_include="no"
16569     tmp_chg_FLAGS="$CPPFLAGS"
16570     for word1 in $tmp_chg_FLAGS; do
16571       case "$word1" in
16572         -I*)
16573           tmp_has_include="yes"
16574           ;;
16575       esac
16576     done
16577     if test "$tmp_has_include" = "yes"; then
16578       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16579       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16580       CPPFLAGS="$tmp_chg_FLAGS"
16581       squeeze CPPFLAGS
16582     fi
16583   fi
16584
16585     fi
16586     #
16587     tmp_save_CPPFLAGS="$CPPFLAGS"
16588     tmp_save_CFLAGS="$CFLAGS"
16589     tmp_CPPFLAGS=""
16590     tmp_CFLAGS=""
16591     #
16592     case "$compiler_id" in
16593         #
16594       CLANG)
16595         #
16596                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16597         ;;
16598         #
16599       DEC_C)
16600         #
16601                 tmp_CFLAGS="$tmp_CFLAGS -std1"
16602                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16603                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16604                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16605         ;;
16606         #
16607       GNU_C)
16608         #
16609                 tmp_CFLAGS="$tmp_CFLAGS"
16610         ;;
16611         #
16612       HP_UX_C)
16613         #
16614                 tmp_CFLAGS="$tmp_CFLAGS -z"
16615                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16616         ;;
16617         #
16618       IBM_C)
16619         #
16620                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16621                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16622                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16623         ;;
16624         #
16625       INTEL_UNIX_C)
16626         #
16627                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16628                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
16629                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
16630         ;;
16631         #
16632       INTEL_WINDOWS_C)
16633         #
16634                 tmp_CFLAGS="$tmp_CFLAGS"
16635         ;;
16636         #
16637       LCC)
16638         #
16639                 tmp_CFLAGS="$tmp_CFLAGS -n"
16640         ;;
16641         #
16642       SGI_MIPS_C)
16643         #
16644                 tmp_CFLAGS="$tmp_CFLAGS"
16645         ;;
16646         #
16647       SGI_MIPSPRO_C)
16648         #
16649                 tmp_CFLAGS="$tmp_CFLAGS"
16650         ;;
16651         #
16652       SUNPRO_C)
16653         #
16654                 tmp_CFLAGS="$tmp_CFLAGS"
16655         ;;
16656         #
16657       TINY_C)
16658         #
16659                 tmp_CFLAGS="$tmp_CFLAGS"
16660         ;;
16661         #
16662       WATCOM_UNIX_C)
16663         #
16664                 tmp_CFLAGS="$tmp_CFLAGS"
16665         ;;
16666         #
16667       WATCOM_WINDOWS_C)
16668         #
16669                 tmp_CFLAGS="$tmp_CFLAGS"
16670         ;;
16671         #
16672     esac
16673     #
16674     squeeze tmp_CPPFLAGS
16675     squeeze tmp_CFLAGS
16676     #
16677     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16679 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16680       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16681       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16682       squeeze CPPFLAGS
16683       squeeze CFLAGS
16684
16685     tmp_compiler_works="unknown"
16686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h.  */
16688
16689
16690
16691 int main (void)
16692 {
16693
16694       int i = 1;
16695       return i;
16696
16697  ;
16698  return 0;
16699 }
16700
16701 _ACEOF
16702 if ac_fn_c_try_compile "$LINENO"; then :
16703
16704     tmp_compiler_works="yes"
16705
16706 else
16707
16708     tmp_compiler_works="no"
16709     echo " " >&6
16710     sed 's/^/cc-fail: /' conftest.err >&6
16711     echo " " >&6
16712
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715     if test "$tmp_compiler_works" = "yes"; then
16716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h.  */
16718
16719
16720
16721 int main (void)
16722 {
16723
16724         int i = 1;
16725         return i;
16726
16727  ;
16728  return 0;
16729 }
16730
16731 _ACEOF
16732 if ac_fn_c_try_link "$LINENO"; then :
16733
16734       tmp_compiler_works="yes"
16735
16736 else
16737
16738       tmp_compiler_works="no"
16739       echo " " >&6
16740       sed 's/^/link-fail: /' conftest.err >&6
16741       echo " " >&6
16742
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext \
16745     conftest$ac_exeext conftest.$ac_ext
16746   fi
16747     if test "x$cross_compiling" != "xyes" &&
16748     test "$tmp_compiler_works" = "yes"; then
16749     if test "$cross_compiling" = yes; then :
16750   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16752 as_fn_error $? "cannot run test program while cross compiling
16753 See \`config.log' for more details" "$LINENO" 5; }
16754 else
16755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h.  */
16757
16758
16759 #       ifdef __STDC__
16760 #         include <stdlib.h>
16761 #       endif
16762
16763 int main (void)
16764 {
16765
16766         int i = 0;
16767         exit(i);
16768
16769  ;
16770  return 0;
16771 }
16772
16773 _ACEOF
16774 if ac_fn_c_try_run "$LINENO"; then :
16775
16776       tmp_compiler_works="yes"
16777
16778 else
16779
16780       tmp_compiler_works="no"
16781       echo " " >&6
16782       echo "run-fail: test program exited with status $ac_status" >&6
16783       echo " " >&6
16784
16785 fi
16786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16787   conftest.$ac_objext conftest.beam conftest.$ac_ext
16788 fi
16789
16790   fi
16791     if test "$tmp_compiler_works" = "yes"; then
16792
16793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16796 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16797
16798   else
16799
16800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16802         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16803 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16804                 CPPFLAGS="$tmp_save_CPPFLAGS"
16805         CFLAGS="$tmp_save_CFLAGS"
16806
16807   fi
16808
16809     fi
16810     #
16811   fi
16812
16813
16814         #
16815   if test "$compiler_id" != "unknown"; then
16816     #
16817     tmp_save_CFLAGS="$CFLAGS"
16818     tmp_save_CPPFLAGS="$CPPFLAGS"
16819     #
16820     tmp_options=""
16821     tmp_CFLAGS="$CFLAGS"
16822     tmp_CPPFLAGS="$CPPFLAGS"
16823
16824     ac_var_stripped=""
16825   for word1 in $tmp_CFLAGS; do
16826     ac_var_strip_word="no"
16827     for word2 in $flags_dbg_all; do
16828       if test "$word1" = "$word2"; then
16829         ac_var_strip_word="yes"
16830       fi
16831     done
16832     if test "$ac_var_strip_word" = "no"; then
16833       ac_var_stripped="$ac_var_stripped $word1"
16834     fi
16835   done
16836     tmp_CFLAGS="$ac_var_stripped"
16837   squeeze tmp_CFLAGS
16838
16839
16840     ac_var_stripped=""
16841   for word1 in $tmp_CPPFLAGS; do
16842     ac_var_strip_word="no"
16843     for word2 in $flags_dbg_all; do
16844       if test "$word1" = "$word2"; then
16845         ac_var_strip_word="yes"
16846       fi
16847     done
16848     if test "$ac_var_strip_word" = "no"; then
16849       ac_var_stripped="$ac_var_stripped $word1"
16850     fi
16851   done
16852     tmp_CPPFLAGS="$ac_var_stripped"
16853   squeeze tmp_CPPFLAGS
16854
16855     #
16856     if test "$want_debug" = "yes"; then
16857       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16858 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16859       tmp_options="$flags_dbg_yes"
16860     fi
16861     if test "$want_debug" = "no"; then
16862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
16863 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
16864       tmp_options="$flags_dbg_off"
16865     fi
16866     #
16867     if test "$flags_prefer_cppflags" = "yes"; then
16868       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16869       CFLAGS="$tmp_CFLAGS"
16870     else
16871       CPPFLAGS="$tmp_CPPFLAGS"
16872       CFLAGS="$tmp_CFLAGS $tmp_options"
16873     fi
16874     squeeze CPPFLAGS
16875     squeeze CFLAGS
16876
16877     tmp_compiler_works="unknown"
16878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h.  */
16880
16881
16882
16883 int main (void)
16884 {
16885
16886       int i = 1;
16887       return i;
16888
16889  ;
16890  return 0;
16891 }
16892
16893 _ACEOF
16894 if ac_fn_c_try_compile "$LINENO"; then :
16895
16896     tmp_compiler_works="yes"
16897
16898 else
16899
16900     tmp_compiler_works="no"
16901     echo " " >&6
16902     sed 's/^/cc-fail: /' conftest.err >&6
16903     echo " " >&6
16904
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907     if test "$tmp_compiler_works" = "yes"; then
16908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910
16911
16912
16913 int main (void)
16914 {
16915
16916         int i = 1;
16917         return i;
16918
16919  ;
16920  return 0;
16921 }
16922
16923 _ACEOF
16924 if ac_fn_c_try_link "$LINENO"; then :
16925
16926       tmp_compiler_works="yes"
16927
16928 else
16929
16930       tmp_compiler_works="no"
16931       echo " " >&6
16932       sed 's/^/link-fail: /' conftest.err >&6
16933       echo " " >&6
16934
16935 fi
16936 rm -f core conftest.err conftest.$ac_objext \
16937     conftest$ac_exeext conftest.$ac_ext
16938   fi
16939     if test "x$cross_compiling" != "xyes" &&
16940     test "$tmp_compiler_works" = "yes"; then
16941     if test "$cross_compiling" = yes; then :
16942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944 as_fn_error $? "cannot run test program while cross compiling
16945 See \`config.log' for more details" "$LINENO" 5; }
16946 else
16947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h.  */
16949
16950
16951 #       ifdef __STDC__
16952 #         include <stdlib.h>
16953 #       endif
16954
16955 int main (void)
16956 {
16957
16958         int i = 0;
16959         exit(i);
16960
16961  ;
16962  return 0;
16963 }
16964
16965 _ACEOF
16966 if ac_fn_c_try_run "$LINENO"; then :
16967
16968       tmp_compiler_works="yes"
16969
16970 else
16971
16972       tmp_compiler_works="no"
16973       echo " " >&6
16974       echo "run-fail: test program exited with status $ac_status" >&6
16975       echo " " >&6
16976
16977 fi
16978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16979   conftest.$ac_objext conftest.beam conftest.$ac_ext
16980 fi
16981
16982   fi
16983     if test "$tmp_compiler_works" = "yes"; then
16984
16985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16986 $as_echo "yes" >&6; }
16987       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
16988 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
16989
16990   else
16991
16992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993 $as_echo "no" >&6; }
16994       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
16995 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
16996             CPPFLAGS="$tmp_save_CPPFLAGS"
16997       CFLAGS="$tmp_save_CFLAGS"
16998
16999   fi
17000
17001     #
17002   fi
17003
17004
17005         #
17006   if test "$compiler_id" != "unknown"; then
17007     #
17008     tmp_save_CFLAGS="$CFLAGS"
17009     tmp_save_CPPFLAGS="$CPPFLAGS"
17010     #
17011     tmp_options=""
17012     tmp_CFLAGS="$CFLAGS"
17013     tmp_CPPFLAGS="$CPPFLAGS"
17014     honor_optimize_option="yes"
17015     #
17016                         #
17017     if test "$want_optimize" = "assume_no" ||
17018        test "$want_optimize" = "assume_yes"; then
17019       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17020 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17021
17022
17023   ac_var_match_word="no"
17024   for word1 in $tmp_CFLAGS; do
17025     for word2 in $flags_opt_all; do
17026       if test "$word1" = "$word2"; then
17027         ac_var_match_word="yes"
17028       fi
17029     done
17030   done
17031
17032   if test "$ac_var_match_word" = "yes"; then
17033
17034         honor_optimize_option="no"
17035
17036
17037   fi
17038
17039
17040
17041   ac_var_match_word="no"
17042   for word1 in $tmp_CPPFLAGS; do
17043     for word2 in $flags_opt_all; do
17044       if test "$word1" = "$word2"; then
17045         ac_var_match_word="yes"
17046       fi
17047     done
17048   done
17049
17050   if test "$ac_var_match_word" = "yes"; then
17051
17052         honor_optimize_option="no"
17053
17054
17055   fi
17056
17057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17058 $as_echo "$honor_optimize_option" >&6; }
17059       if test "$honor_optimize_option" = "yes"; then
17060         if test "$want_optimize" = "assume_yes"; then
17061           want_optimize="yes"
17062         fi
17063         if test "$want_optimize" = "assume_no"; then
17064           want_optimize="no"
17065         fi
17066       fi
17067     fi
17068     #
17069     if test "$honor_optimize_option" = "yes"; then
17070
17071     ac_var_stripped=""
17072   for word1 in $tmp_CFLAGS; do
17073     ac_var_strip_word="no"
17074     for word2 in $flags_opt_all; do
17075       if test "$word1" = "$word2"; then
17076         ac_var_strip_word="yes"
17077       fi
17078     done
17079     if test "$ac_var_strip_word" = "no"; then
17080       ac_var_stripped="$ac_var_stripped $word1"
17081     fi
17082   done
17083     tmp_CFLAGS="$ac_var_stripped"
17084   squeeze tmp_CFLAGS
17085
17086
17087     ac_var_stripped=""
17088   for word1 in $tmp_CPPFLAGS; do
17089     ac_var_strip_word="no"
17090     for word2 in $flags_opt_all; do
17091       if test "$word1" = "$word2"; then
17092         ac_var_strip_word="yes"
17093       fi
17094     done
17095     if test "$ac_var_strip_word" = "no"; then
17096       ac_var_stripped="$ac_var_stripped $word1"
17097     fi
17098   done
17099     tmp_CPPFLAGS="$ac_var_stripped"
17100   squeeze tmp_CPPFLAGS
17101
17102       if test "$want_optimize" = "yes"; then
17103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17104 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17105         tmp_options="$flags_opt_yes"
17106       fi
17107       if test "$want_optimize" = "no"; then
17108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17109 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17110         tmp_options="$flags_opt_off"
17111       fi
17112       if test "$flags_prefer_cppflags" = "yes"; then
17113         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17114         CFLAGS="$tmp_CFLAGS"
17115       else
17116         CPPFLAGS="$tmp_CPPFLAGS"
17117         CFLAGS="$tmp_CFLAGS $tmp_options"
17118       fi
17119       squeeze CPPFLAGS
17120       squeeze CFLAGS
17121
17122     tmp_compiler_works="unknown"
17123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h.  */
17125
17126
17127
17128 int main (void)
17129 {
17130
17131       int i = 1;
17132       return i;
17133
17134  ;
17135  return 0;
17136 }
17137
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140
17141     tmp_compiler_works="yes"
17142
17143 else
17144
17145     tmp_compiler_works="no"
17146     echo " " >&6
17147     sed 's/^/cc-fail: /' conftest.err >&6
17148     echo " " >&6
17149
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152     if test "$tmp_compiler_works" = "yes"; then
17153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h.  */
17155
17156
17157
17158 int main (void)
17159 {
17160
17161         int i = 1;
17162         return i;
17163
17164  ;
17165  return 0;
17166 }
17167
17168 _ACEOF
17169 if ac_fn_c_try_link "$LINENO"; then :
17170
17171       tmp_compiler_works="yes"
17172
17173 else
17174
17175       tmp_compiler_works="no"
17176       echo " " >&6
17177       sed 's/^/link-fail: /' conftest.err >&6
17178       echo " " >&6
17179
17180 fi
17181 rm -f core conftest.err conftest.$ac_objext \
17182     conftest$ac_exeext conftest.$ac_ext
17183   fi
17184     if test "x$cross_compiling" != "xyes" &&
17185     test "$tmp_compiler_works" = "yes"; then
17186     if test "$cross_compiling" = yes; then :
17187   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17189 as_fn_error $? "cannot run test program while cross compiling
17190 See \`config.log' for more details" "$LINENO" 5; }
17191 else
17192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h.  */
17194
17195
17196 #       ifdef __STDC__
17197 #         include <stdlib.h>
17198 #       endif
17199
17200 int main (void)
17201 {
17202
17203         int i = 0;
17204         exit(i);
17205
17206  ;
17207  return 0;
17208 }
17209
17210 _ACEOF
17211 if ac_fn_c_try_run "$LINENO"; then :
17212
17213       tmp_compiler_works="yes"
17214
17215 else
17216
17217       tmp_compiler_works="no"
17218       echo " " >&6
17219       echo "run-fail: test program exited with status $ac_status" >&6
17220       echo " " >&6
17221
17222 fi
17223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17224   conftest.$ac_objext conftest.beam conftest.$ac_ext
17225 fi
17226
17227   fi
17228     if test "$tmp_compiler_works" = "yes"; then
17229
17230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17231 $as_echo "yes" >&6; }
17232         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17233 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17234
17235   else
17236
17237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17240 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17241                 CPPFLAGS="$tmp_save_CPPFLAGS"
17242         CFLAGS="$tmp_save_CFLAGS"
17243
17244   fi
17245
17246     fi
17247     #
17248   fi
17249
17250
17251         #
17252   if test "$compiler_id" != "unknown"; then
17253     #
17254     tmp_save_CPPFLAGS="$CPPFLAGS"
17255     tmp_save_CFLAGS="$CFLAGS"
17256     tmp_CPPFLAGS=""
17257     tmp_CFLAGS=""
17258     #
17259     case "$compiler_id" in
17260         #
17261       CLANG)
17262         #
17263         if test "$want_warnings" = "yes"; then
17264           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17265           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17266           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17267           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17268           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17269           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17270           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17271           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17272           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17273           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17274           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17275           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17276           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17277           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17278           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17279           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17280           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17281           #
17282                     if test "$compiler_num" -ge "101"; then
17283             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17284           fi
17285         fi
17286         ;;
17287         #
17288       DEC_C)
17289         #
17290         if test "$want_warnings" = "yes"; then
17291                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17292         fi
17293         ;;
17294         #
17295       GNU_C)
17296         #
17297         if test "$want_warnings" = "yes"; then
17298           #
17299                               if test "x$cross_compiling" != "xyes" ||
17300             test "$compiler_num" -ge "300"; then
17301             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17302           fi
17303           #
17304                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17305           #
17306                     if test "$compiler_num" -ge "104"; then
17307             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17308                         if test "x$cross_compiling" != "xyes" ||
17309               test "$compiler_num" -ge "300"; then
17310               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17311             fi
17312           fi
17313           #
17314                     if test "$compiler_num" -ge "207"; then
17315             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17316                         if test "x$cross_compiling" != "xyes" ||
17317               test "$compiler_num" -ge "300"; then
17318               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17319               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17320             fi
17321           fi
17322           #
17323                     if test "$compiler_num" -ge "295"; then
17324             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17325           fi
17326           #
17327                     if test "$compiler_num" -ge "296"; then
17328             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17329             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17330                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17331           fi
17332           #
17333                     if test "$compiler_num" -ge "297"; then
17334             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17335           fi
17336           #
17337                     if test "$compiler_num" -ge "300"; then
17338                                                             tmp_CFLAGS="$tmp_CFLAGS"
17339           fi
17340           #
17341                     if test "$compiler_num" -ge "303"; then
17342             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17343           fi
17344           #
17345                     if test "$compiler_num" -ge "304"; then
17346             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17347           fi
17348           #
17349                     if test "$compiler_num" -ge "400"; then
17350             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17351           fi
17352           #
17353                     if test "$compiler_num" -ge "402"; then
17354             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17355           fi
17356           #
17357                     if test "$compiler_num" -ge "403"; then
17358             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17359             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17360             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17361             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17362           fi
17363           #
17364                     if test "$compiler_num" -ge "405"; then
17365                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17366               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17367             fi
17368           fi
17369           #
17370         fi
17371         #
17372                 if test "$compiler_num" -ge "300"; then
17373           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17374         else
17375                               if test "x$cross_compiling" = "xyes"; then
17376             if test "$compiler_num" -ge "104"; then
17377                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17378             fi
17379             if test "$compiler_num" -ge "207"; then
17380                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17381               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17382             fi
17383           fi
17384         fi
17385         ;;
17386         #
17387       HP_UX_C)
17388         #
17389         if test "$want_warnings" = "yes"; then
17390                     tmp_CFLAGS="$tmp_CFLAGS +w1"
17391         fi
17392         ;;
17393         #
17394       IBM_C)
17395         #
17396                 tmp_CFLAGS="$tmp_CFLAGS"
17397         ;;
17398         #
17399       INTEL_UNIX_C)
17400         #
17401         if test "$want_warnings" = "yes"; then
17402           if test "$compiler_num" -gt "600"; then
17403                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17404                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17405                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17406                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17407                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17408                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17409                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17410                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17411                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17412                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17413                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17414           fi
17415         fi
17416                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17417                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17418                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17419                 if test "$compiler_num" -ge "1000"; then
17420                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17421         fi
17422         ;;
17423         #
17424       INTEL_WINDOWS_C)
17425         #
17426                 tmp_CFLAGS="$tmp_CFLAGS"
17427         ;;
17428         #
17429       LCC)
17430         #
17431         if test "$want_warnings" = "yes"; then
17432                                                   tmp_CFLAGS="$tmp_CFLAGS"
17433         fi
17434         ;;
17435         #
17436       SGI_MIPS_C)
17437         #
17438         if test "$want_warnings" = "yes"; then
17439                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17440         fi
17441         ;;
17442         #
17443       SGI_MIPSPRO_C)
17444         #
17445         if test "$want_warnings" = "yes"; then
17446                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17447                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17448         fi
17449         ;;
17450         #
17451       SUNPRO_C)
17452         #
17453         if test "$want_warnings" = "yes"; then
17454                     tmp_CFLAGS="$tmp_CFLAGS -v"
17455         fi
17456         ;;
17457         #
17458       TINY_C)
17459         #
17460         if test "$want_warnings" = "yes"; then
17461                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
17462                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17463                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17464         fi
17465         ;;
17466         #
17467       WATCOM_UNIX_C)
17468         #
17469         if test "$want_warnings" = "yes"; then
17470                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17471         fi
17472         ;;
17473         #
17474       WATCOM_WINDOWS_C)
17475         #
17476                 tmp_CFLAGS="$tmp_CFLAGS"
17477         ;;
17478         #
17479     esac
17480     #
17481     squeeze tmp_CPPFLAGS
17482     squeeze tmp_CFLAGS
17483     #
17484     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17486 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17487       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17488       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17489       squeeze CPPFLAGS
17490       squeeze CFLAGS
17491
17492     tmp_compiler_works="unknown"
17493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h.  */
17495
17496
17497
17498 int main (void)
17499 {
17500
17501       int i = 1;
17502       return i;
17503
17504  ;
17505  return 0;
17506 }
17507
17508 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"; then :
17510
17511     tmp_compiler_works="yes"
17512
17513 else
17514
17515     tmp_compiler_works="no"
17516     echo " " >&6
17517     sed 's/^/cc-fail: /' conftest.err >&6
17518     echo " " >&6
17519
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522     if test "$tmp_compiler_works" = "yes"; then
17523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h.  */
17525
17526
17527
17528 int main (void)
17529 {
17530
17531         int i = 1;
17532         return i;
17533
17534  ;
17535  return 0;
17536 }
17537
17538 _ACEOF
17539 if ac_fn_c_try_link "$LINENO"; then :
17540
17541       tmp_compiler_works="yes"
17542
17543 else
17544
17545       tmp_compiler_works="no"
17546       echo " " >&6
17547       sed 's/^/link-fail: /' conftest.err >&6
17548       echo " " >&6
17549
17550 fi
17551 rm -f core conftest.err conftest.$ac_objext \
17552     conftest$ac_exeext conftest.$ac_ext
17553   fi
17554     if test "x$cross_compiling" != "xyes" &&
17555     test "$tmp_compiler_works" = "yes"; then
17556     if test "$cross_compiling" = yes; then :
17557   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17559 as_fn_error $? "cannot run test program while cross compiling
17560 See \`config.log' for more details" "$LINENO" 5; }
17561 else
17562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h.  */
17564
17565
17566 #       ifdef __STDC__
17567 #         include <stdlib.h>
17568 #       endif
17569
17570 int main (void)
17571 {
17572
17573         int i = 0;
17574         exit(i);
17575
17576  ;
17577  return 0;
17578 }
17579
17580 _ACEOF
17581 if ac_fn_c_try_run "$LINENO"; then :
17582
17583       tmp_compiler_works="yes"
17584
17585 else
17586
17587       tmp_compiler_works="no"
17588       echo " " >&6
17589       echo "run-fail: test program exited with status $ac_status" >&6
17590       echo " " >&6
17591
17592 fi
17593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17594   conftest.$ac_objext conftest.beam conftest.$ac_ext
17595 fi
17596
17597   fi
17598     if test "$tmp_compiler_works" = "yes"; then
17599
17600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601 $as_echo "yes" >&6; }
17602         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17603 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17604
17605   else
17606
17607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608 $as_echo "no" >&6; }
17609         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17610 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17611                 CPPFLAGS="$tmp_save_CPPFLAGS"
17612         CFLAGS="$tmp_save_CFLAGS"
17613
17614   fi
17615
17616     fi
17617     #
17618   fi
17619
17620
17621 if test "$compiler_id" = "INTEL_UNIX_C"; then
17622   #
17623   if test "$compiler_num" -ge "1000"; then
17624         CFLAGS="$CFLAGS -shared-intel"
17625   elif test "$compiler_num" -ge "900"; then
17626         CFLAGS="$CFLAGS -i-dynamic"
17627   fi
17628   #
17629 fi
17630
17631
17632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17633 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h.  */
17636
17637
17638
17639 int main (void)
17640 {
17641
17642       force compilation error
17643
17644  ;
17645  return 0;
17646 }
17647
17648 _ACEOF
17649 if ac_fn_c_try_compile "$LINENO"; then :
17650
17651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17652 $as_echo "no" >&6; }
17653     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17654
17655 else
17656
17657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17658 $as_echo "yes" >&6; }
17659
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662
17663
17664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17665 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h.  */
17668
17669
17670       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17671
17672 int main (void)
17673 {
17674
17675       bad_t dummy;
17676
17677  ;
17678  return 0;
17679 }
17680
17681 _ACEOF
17682 if ac_fn_c_try_compile "$LINENO"; then :
17683
17684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17685 $as_echo "no" >&6; }
17686     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17687
17688 else
17689
17690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691 $as_echo "yes" >&6; }
17692
17693 fi
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695
17696
17697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17698 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h.  */
17701
17702
17703 #     include <stdlib.h>
17704       int rand(int n);
17705       int rand(int n)
17706       {
17707         if(n)
17708           return ++n;
17709         else
17710           return n;
17711       }
17712
17713 int main (void)
17714 {
17715
17716       int i[2];
17717       int j = rand(i[0]);
17718       if(j)
17719         return j;
17720
17721  ;
17722  return 0;
17723 }
17724
17725 _ACEOF
17726 if ac_fn_c_try_compile "$LINENO"; then :
17727
17728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17730     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17731
17732 else
17733
17734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17735 $as_echo "yes" >&6; }
17736
17737 fi
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739
17740
17741       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17742 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17743   supports_symbol_hiding="no"
17744   symbol_hiding_CFLAGS=""
17745   symbol_hiding_EXTERN=""
17746   tmp_CFLAGS=""
17747   tmp_EXTERN=""
17748   case "$compiler_id" in
17749     CLANG)
17750             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17751       tmp_CFLAGS="-fvisibility=hidden"
17752       supports_symbol_hiding="yes"
17753       ;;
17754     GNU_C)
17755             if test "$compiler_num" -ge "304"; then
17756         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17757           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17758           tmp_CFLAGS="-fvisibility=hidden"
17759           supports_symbol_hiding="yes"
17760         fi
17761       fi
17762       ;;
17763     INTEL_UNIX_C)
17764             if test "$compiler_num" -ge "900"; then
17765         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17766           tmp_save_CFLAGS="$CFLAGS"
17767           CFLAGS="$CFLAGS -fvisibility=hidden"
17768           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h.  */
17770
17771
17772 #             include <stdio.h>
17773
17774 int main (void)
17775 {
17776
17777               printf("icc fvisibility bug test");
17778
17779  ;
17780  return 0;
17781 }
17782
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785
17786             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17787             tmp_CFLAGS="-fvisibility=hidden"
17788             supports_symbol_hiding="yes"
17789
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext \
17792     conftest$ac_exeext conftest.$ac_ext
17793           CFLAGS="$tmp_save_CFLAGS"
17794         fi
17795       fi
17796       ;;
17797     SUNPRO_C)
17798       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17799         tmp_EXTERN="__global"
17800         tmp_CFLAGS="-xldscope=hidden"
17801         supports_symbol_hiding="yes"
17802       fi
17803       ;;
17804   esac
17805   if test "$supports_symbol_hiding" = "yes"; then
17806     tmp_save_CFLAGS="$CFLAGS"
17807     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17808     squeeze CFLAGS
17809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h.  */
17811
17812
17813         $tmp_EXTERN char *dummy(char *buff);
17814         char *dummy(char *buff)
17815         {
17816          if(buff)
17817            return ++buff;
17818          else
17819            return buff;
17820         }
17821
17822 int main (void)
17823 {
17824
17825         char b[16];
17826         char *r = dummy(&b[0]);
17827         if(r)
17828           return (int)*r;
17829
17830  ;
17831  return 0;
17832 }
17833
17834 _ACEOF
17835 if ac_fn_c_try_compile "$LINENO"; then :
17836
17837       supports_symbol_hiding="yes"
17838       if test -f conftest.err; then
17839         grep 'visibility' conftest.err >/dev/null
17840         if test "$?" -eq "0"; then
17841           supports_symbol_hiding="no"
17842         fi
17843       fi
17844
17845 else
17846
17847       supports_symbol_hiding="no"
17848       echo " " >&6
17849       sed 's/^/cc-src: /' conftest.$ac_ext >&6
17850       sed 's/^/cc-err: /' conftest.err >&6
17851       echo " " >&6
17852
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855     CFLAGS="$tmp_save_CFLAGS"
17856   fi
17857   if test "$supports_symbol_hiding" = "yes"; then
17858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859 $as_echo "yes" >&6; }
17860     symbol_hiding_CFLAGS="$tmp_CFLAGS"
17861     symbol_hiding_EXTERN="$tmp_EXTERN"
17862   else
17863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864 $as_echo "no" >&6; }
17865   fi
17866
17867
17868
17869       cares_builddir=`pwd`
17870   supports_curldebug="unknown"
17871   if test "$want_curldebug" = "yes"; then
17872     if test "x$enable_shared" != "xno" &&
17873       test "x$enable_shared" != "xyes"; then
17874       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
17875 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
17876       supports_curldebug="no"
17877     fi
17878     if test "x$enable_static" != "xno" &&
17879       test "x$enable_static" != "xyes"; then
17880       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
17881 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
17882       supports_curldebug="no"
17883     fi
17884     if test "$supports_curldebug" != "no"; then
17885       if test "$enable_shared" = "yes" &&
17886         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17887         supports_curldebug="no"
17888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
17889 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
17890       fi
17891       if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
17892         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
17893 $as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
17894         supports_curldebug="no"
17895       elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
17896         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
17897 $as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
17898         supports_curldebug="no"
17899       elif test ! -f "$cares_builddir/../libcurl.pc" ||
17900         test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
17901         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
17902 $as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
17903         supports_curldebug="no"
17904       elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
17905         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
17906 $as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
17907         supports_curldebug="no"
17908       elif test ! -f "$cares_builddir/../config.status"; then
17909         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
17910 $as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
17911         supports_curldebug="no"
17912       fi
17913       if test "$supports_curldebug" != "no"; then
17914         grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
17915         if test "$?" -ne "0"; then
17916           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
17917 $as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
17918           supports_curldebug="no"
17919         fi
17920       fi
17921       if test "$supports_curldebug" != "no"; then
17922         grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
17923         if test "$?" -ne "0"; then
17924           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
17925 $as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
17926           supports_curldebug="no"
17927         fi
17928       fi
17929     fi
17930   fi
17931   #
17932   if test "$want_curldebug" = "yes"; then
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
17934 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
17935     test "$supports_curldebug" = "no" || supports_curldebug="yes"
17936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
17937 $as_echo "$supports_curldebug" >&6; }
17938     if test "$supports_curldebug" = "no"; then
17939       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
17940 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
17941       want_curldebug="no"
17942     fi
17943   fi
17944   #
17945   if test "$want_curldebug" = "yes"; then
17946
17947 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
17948
17949     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
17950     squeeze CPPFLAGS
17951   fi
17952   #
17953   if test "$want_debug" = "yes"; then
17954     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
17955     squeeze CPPFLAGS
17956   fi
17957
17958  if test x$want_curldebug = xyes; then
17959   CURLDEBUG_TRUE=
17960   CURLDEBUG_FALSE='#'
17961 else
17962   CURLDEBUG_TRUE='#'
17963   CURLDEBUG_FALSE=
17964 fi
17965
17966
17967
17968
17969
17970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17971 $as_echo_n "checking for windows.h... " >&6; }
17972 if ${ac_cv_header_windows_h+:} false; then :
17973   $as_echo_n "(cached) " >&6
17974 else
17975
17976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h.  */
17978
17979
17980 #undef inline
17981 #ifndef WIN32_LEAN_AND_MEAN
17982 #define WIN32_LEAN_AND_MEAN
17983 #endif
17984 #include <windows.h>
17985
17986 int main (void)
17987 {
17988
17989 #if defined(__CYGWIN__) || defined(__CEGCC__)
17990         HAVE_WINDOWS_H shall not be defined.
17991 #else
17992         int dummy=2*WINVER;
17993 #endif
17994
17995  ;
17996  return 0;
17997 }
17998
17999 _ACEOF
18000 if ac_fn_c_try_compile "$LINENO"; then :
18001
18002       ac_cv_header_windows_h="yes"
18003
18004 else
18005
18006       ac_cv_header_windows_h="no"
18007
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010
18011 fi
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18013 $as_echo "$ac_cv_header_windows_h" >&6; }
18014   case "$ac_cv_header_windows_h" in
18015     yes)
18016
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_WINDOWS_H 1
18019 _ACEOF
18020
18021
18022 cat >>confdefs.h <<_ACEOF
18023 #define WIN32_LEAN_AND_MEAN 1
18024 _ACEOF
18025
18026       ;;
18027   esac
18028
18029
18030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18031 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18032 if ${ac_cv_native_windows+:} false; then :
18033   $as_echo_n "(cached) " >&6
18034 else
18035
18036     if test "$ac_cv_header_windows_h" = "no"; then
18037       ac_cv_native_windows="no"
18038     else
18039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h.  */
18041
18042
18043
18044 int main (void)
18045 {
18046
18047 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18048    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18049           int dummy=1;
18050 #else
18051           Not a native Windows build target.
18052 #endif
18053
18054  ;
18055  return 0;
18056 }
18057
18058 _ACEOF
18059 if ac_fn_c_try_compile "$LINENO"; then :
18060
18061         ac_cv_native_windows="yes"
18062
18063 else
18064
18065         ac_cv_native_windows="no"
18066
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069     fi
18070
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18073 $as_echo "$ac_cv_native_windows" >&6; }
18074    if test "x$ac_cv_native_windows" = xyes; then
18075   DOING_NATIVE_WINDOWS_TRUE=
18076   DOING_NATIVE_WINDOWS_FALSE='#'
18077 else
18078   DOING_NATIVE_WINDOWS_TRUE='#'
18079   DOING_NATIVE_WINDOWS_FALSE=
18080 fi
18081
18082
18083 case X-"$ac_cv_native_windows" in
18084   X-yes)
18085
18086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18087 $as_echo_n "checking for winsock.h... " >&6; }
18088 if ${ac_cv_header_winsock_h+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091
18092     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h.  */
18094
18095
18096 #undef inline
18097 #ifndef WIN32_LEAN_AND_MEAN
18098 #define WIN32_LEAN_AND_MEAN
18099 #endif
18100 #include <windows.h>
18101 #include <winsock.h>
18102
18103 int main (void)
18104 {
18105
18106 #if defined(__CYGWIN__) || defined(__CEGCC__)
18107         HAVE_WINSOCK_H shall not be defined.
18108 #else
18109         int dummy=WSACleanup();
18110 #endif
18111
18112  ;
18113  return 0;
18114 }
18115
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"; then :
18118
18119       ac_cv_header_winsock_h="yes"
18120
18121 else
18122
18123       ac_cv_header_winsock_h="no"
18124
18125 fi
18126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127
18128 fi
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18130 $as_echo "$ac_cv_header_winsock_h" >&6; }
18131   case "$ac_cv_header_winsock_h" in
18132     yes)
18133
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_WINSOCK_H 1
18136 _ACEOF
18137
18138       ;;
18139   esac
18140
18141
18142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18143 $as_echo_n "checking for winsock2.h... " >&6; }
18144 if ${ac_cv_header_winsock2_h+:} false; then :
18145   $as_echo_n "(cached) " >&6
18146 else
18147
18148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h.  */
18150
18151
18152 #undef inline
18153 #ifndef WIN32_LEAN_AND_MEAN
18154 #define WIN32_LEAN_AND_MEAN
18155 #endif
18156 #include <windows.h>
18157 #include <winsock2.h>
18158
18159 int main (void)
18160 {
18161
18162 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18163         HAVE_WINSOCK2_H shall not be defined.
18164 #else
18165         int dummy=2*IPPROTO_ESP;
18166 #endif
18167
18168  ;
18169  return 0;
18170 }
18171
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174
18175       ac_cv_header_winsock2_h="yes"
18176
18177 else
18178
18179       ac_cv_header_winsock2_h="no"
18180
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18186 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18187   case "$ac_cv_header_winsock2_h" in
18188     yes)
18189
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_WINSOCK2_H 1
18192 _ACEOF
18193
18194       ;;
18195   esac
18196
18197
18198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18199 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18200 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18201   $as_echo_n "(cached) " >&6
18202 else
18203
18204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h.  */
18206
18207
18208 #undef inline
18209 #ifndef WIN32_LEAN_AND_MEAN
18210 #define WIN32_LEAN_AND_MEAN
18211 #endif
18212 #include <windows.h>
18213 #include <winsock2.h>
18214 #include <ws2tcpip.h>
18215
18216 int main (void)
18217 {
18218
18219 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18220         HAVE_WS2TCPIP_H shall not be defined.
18221 #else
18222         int dummy=2*IP_PKTINFO;
18223 #endif
18224
18225  ;
18226  return 0;
18227 }
18228
18229 _ACEOF
18230 if ac_fn_c_try_compile "$LINENO"; then :
18231
18232       ac_cv_header_ws2tcpip_h="yes"
18233
18234 else
18235
18236       ac_cv_header_ws2tcpip_h="no"
18237
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240
18241 fi
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18243 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18244   case "$ac_cv_header_ws2tcpip_h" in
18245     yes)
18246
18247 cat >>confdefs.h <<_ACEOF
18248 #define HAVE_WS2TCPIP_H 1
18249 _ACEOF
18250
18251       ;;
18252   esac
18253
18254     ;;
18255   *)
18256     ac_cv_header_winsock_h="no"
18257     ac_cv_header_winsock2_h="no"
18258     ac_cv_header_ws2tcpip_h="no"
18259     ;;
18260 esac
18261
18262
18263
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
18265 $as_echo_n "checking if X/Open network library is required... " >&6; }
18266   tst_lib_xnet_required="no"
18267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h.  */
18269
18270
18271 int main (void)
18272 {
18273 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
18274   return 0;
18275 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
18276   return 0;
18277 #else
18278   force compilation error
18279 #endif
18280 }
18281
18282
18283 _ACEOF
18284 if ac_fn_c_try_compile "$LINENO"; then :
18285
18286     tst_lib_xnet_required="yes"
18287     LIBS="$LIBS -lxnet"
18288
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
18292 $as_echo "$tst_lib_xnet_required" >&6; }
18293
18294
18295 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18296 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18297   HAVE_GETHOSTBYNAME="1"
18298
18299 else
18300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18301 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18302 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18303   $as_echo_n "(cached) " >&6
18304 else
18305   ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lnsl  $LIBS"
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h.  */
18309
18310
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char gethostbyname ();
18315 int main (void)
18316 {
18317 return gethostbyname ();
18318  ;
18319  return 0;
18320 }
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323   ac_cv_lib_nsl_gethostbyname=yes
18324 else
18325   ac_cv_lib_nsl_gethostbyname=no
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext \
18328     conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18332 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18333 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18334   HAVE_GETHOSTBYNAME="1"
18335                              LIBS="$LIBS -lnsl"
18336
18337 fi
18338
18339
18340 fi
18341
18342
18343 if test "$HAVE_GETHOSTBYNAME" != "1"
18344 then
18345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
18346 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
18347 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350   ac_check_lib_save_LIBS=$LIBS
18351 LIBS="-lsocket  $LIBS"
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h.  */
18354
18355
18356 #ifdef __cplusplus
18357 extern "C"
18358 #endif
18359 char gethostbyname ();
18360 int main (void)
18361 {
18362 return gethostbyname ();
18363  ;
18364  return 0;
18365 }
18366 _ACEOF
18367 if ac_fn_c_try_link "$LINENO"; then :
18368   ac_cv_lib_socket_gethostbyname=yes
18369 else
18370   ac_cv_lib_socket_gethostbyname=no
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext \
18373     conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18375 fi
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
18377 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
18378 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
18379   HAVE_GETHOSTBYNAME="1"
18380                LIBS="$LIBS -lsocket"
18381
18382 fi
18383
18384 fi
18385
18386 if test "$HAVE_GETHOSTBYNAME" != "1"
18387 then
18388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
18389 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
18390   my_ac_save_LIBS=$LIBS
18391   LIBS="-lnsl -lsocket $LIBS"
18392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h.  */
18394
18395
18396
18397 int main (void)
18398 {
18399
18400       gethostbyname();
18401
18402  ;
18403  return 0;
18404 }
18405
18406 _ACEOF
18407 if ac_fn_c_try_link "$LINENO"; then :
18408
18409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18410 $as_echo "yes" >&6; }
18411     HAVE_GETHOSTBYNAME="1"
18412
18413 else
18414
18415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18417     LIBS=$my_ac_save_LIBS
18418
18419 fi
18420 rm -f core conftest.err conftest.$ac_objext \
18421     conftest$ac_exeext conftest.$ac_ext
18422 fi
18423
18424 if test "$HAVE_GETHOSTBYNAME" != "1"
18425 then
18426     if test "$ac_cv_header_windows_h" = "yes"; then
18427     if test "$ac_cv_header_winsock_h" = "yes"; then
18428       case $host in
18429         *-*-mingw32ce*)
18430           winsock_LIB="-lwinsock"
18431           ;;
18432         *)
18433           winsock_LIB="-lwsock32"
18434           ;;
18435       esac
18436     fi
18437     if test "$ac_cv_header_winsock2_h" = "yes"; then
18438       winsock_LIB="-lws2_32"
18439     fi
18440     if test ! -z "$winsock_LIB"; then
18441       my_ac_save_LIBS=$LIBS
18442       LIBS="$winsock_LIB $LIBS"
18443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
18444 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
18445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h.  */
18447
18448
18449 #ifdef HAVE_WINDOWS_H
18450 #ifndef WIN32_LEAN_AND_MEAN
18451 #define WIN32_LEAN_AND_MEAN
18452 #endif
18453 #include <windows.h>
18454 #ifdef HAVE_WINSOCK2_H
18455 #include <winsock2.h>
18456 #else
18457 #ifdef HAVE_WINSOCK_H
18458 #include <winsock.h>
18459 #endif
18460 #endif
18461 #endif
18462
18463 int main (void)
18464 {
18465
18466           gethostbyname("www.dummysite.com");
18467
18468  ;
18469  return 0;
18470 }
18471
18472 _ACEOF
18473 if ac_fn_c_try_link "$LINENO"; then :
18474
18475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18476 $as_echo "yes" >&6; }
18477         HAVE_GETHOSTBYNAME="1"
18478
18479 else
18480
18481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482 $as_echo "no" >&6; }
18483         winsock_LIB=""
18484         LIBS=$my_ac_save_LIBS
18485
18486 fi
18487 rm -f core conftest.err conftest.$ac_objext \
18488     conftest$ac_exeext conftest.$ac_ext
18489     fi
18490   fi
18491 fi
18492
18493 if test "$HAVE_GETHOSTBYNAME" != "1"
18494 then
18495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
18496 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
18497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h.  */
18499
18500
18501 /* Older Minix versions may need <net/gen/netdb.h> here instead */
18502 #include <netdb.h>
18503
18504 int main (void)
18505 {
18506
18507       gethostbyname("www.dummysite.com");
18508
18509  ;
18510  return 0;
18511 }
18512
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515
18516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18517 $as_echo "yes" >&6; }
18518     HAVE_GETHOSTBYNAME="1"
18519
18520 else
18521
18522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18524
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext \
18527     conftest$ac_exeext conftest.$ac_ext
18528 fi
18529
18530 if test "$HAVE_GETHOSTBYNAME" != "1"
18531 then
18532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
18533 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
18534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h.  */
18536
18537
18538 #include <stdio.h>
18539 #include <netdb.h>
18540
18541 int main (void)
18542 {
18543
18544       gethostbyname("www.dummysite.com");
18545
18546  ;
18547  return 0;
18548 }
18549
18550 _ACEOF
18551 if ac_fn_c_try_link "$LINENO"; then :
18552
18553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18555     HAVE_GETHOSTBYNAME="1"
18556
18557 else
18558
18559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564     conftest$ac_exeext conftest.$ac_ext
18565 fi
18566
18567 if test "$HAVE_GETHOSTBYNAME" != "1"
18568 then
18569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
18570 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
18571 if ${ac_cv_lib_net_gethostbyname+:} false; then :
18572   $as_echo_n "(cached) " >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lnet  $LIBS"
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h.  */
18578
18579
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char gethostbyname ();
18584 int main (void)
18585 {
18586 return gethostbyname ();
18587  ;
18588  return 0;
18589 }
18590 _ACEOF
18591 if ac_fn_c_try_link "$LINENO"; then :
18592   ac_cv_lib_net_gethostbyname=yes
18593 else
18594   ac_cv_lib_net_gethostbyname=no
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext \
18597     conftest$ac_exeext conftest.$ac_ext
18598 LIBS=$ac_check_lib_save_LIBS
18599 fi
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
18601 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
18602 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
18603   HAVE_GETHOSTBYNAME="1"
18604                LIBS="$LIBS -lnet"
18605
18606 fi
18607
18608 fi
18609
18610
18611 if test "$HAVE_GETHOSTBYNAME" != "1"; then
18612   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
18613 fi
18614
18615 if test "x$host_vendor" = "xapple"; then :
18616
18617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iPhone target" >&5
18618 $as_echo_n "checking for iPhone target... " >&6; }
18619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h.  */
18621
18622
18623 #include "TargetConditionals.h"
18624
18625 int main (void)
18626 {
18627
18628 #if TARGET_OS_IPHONE == 0
18629 #error Not an iPhone target
18630 #endif
18631 return 0;
18632
18633  ;
18634  return 0;
18635 }
18636
18637 _ACEOF
18638 if ac_fn_c_try_compile "$LINENO"; then :
18639
18640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
18643 $as_echo_n "checking for library containing res_servicename... " >&6; }
18644 if ${ac_cv_search_res_servicename+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   ac_func_search_save_LIBS=$LIBS
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h.  */
18650
18651
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char res_servicename ();
18656 int main (void)
18657 {
18658 return res_servicename ();
18659  ;
18660  return 0;
18661 }
18662 _ACEOF
18663 for ac_lib in '' resolv; do
18664   if test -z "$ac_lib"; then
18665     ac_res="none required"
18666   else
18667     ac_res=-l$ac_lib
18668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18669   fi
18670   if ac_fn_c_try_link "$LINENO"; then :
18671   ac_cv_search_res_servicename=$ac_res
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext \
18674     conftest$ac_exeext
18675   if ${ac_cv_search_res_servicename+:} false; then :
18676   break
18677 fi
18678 done
18679 if ${ac_cv_search_res_servicename+:} false; then :
18680
18681 else
18682   ac_cv_search_res_servicename=no
18683 fi
18684 rm conftest.$ac_ext
18685 LIBS=$ac_func_search_save_LIBS
18686 fi
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
18688 $as_echo "$ac_cv_search_res_servicename" >&6; }
18689 ac_res=$ac_cv_search_res_servicename
18690 if test "$ac_res" != no; then :
18691   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18692
18693
18694 $as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
18695
18696
18697 else
18698
18699       as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
18700
18701 fi
18702
18703
18704 else
18705
18706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18708
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711
18712 fi
18713
18714 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18715 if test "x$ac_cv_func_strcasecmp" = xyes; then :
18716
18717 else
18718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
18719 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
18720 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
18721   $as_echo_n "(cached) " >&6
18722 else
18723   ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-lresolve  $LIBS"
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h.  */
18727
18728
18729 #ifdef __cplusplus
18730 extern "C"
18731 #endif
18732 char strcasecmp ();
18733 int main (void)
18734 {
18735 return strcasecmp ();
18736  ;
18737  return 0;
18738 }
18739 _ACEOF
18740 if ac_fn_c_try_link "$LINENO"; then :
18741   ac_cv_lib_resolve_strcasecmp=yes
18742 else
18743   ac_cv_lib_resolve_strcasecmp=no
18744 fi
18745 rm -f core conftest.err conftest.$ac_objext \
18746     conftest$ac_exeext conftest.$ac_ext
18747 LIBS=$ac_check_lib_save_LIBS
18748 fi
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
18750 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
18751 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
18752   cat >>confdefs.h <<_ACEOF
18753 #define HAVE_LIBRESOLVE 1
18754 _ACEOF
18755
18756   LIBS="-lresolve $LIBS"
18757
18758 fi
18759
18760 fi
18761
18762
18763 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
18764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
18765 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
18766 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
18767   $as_echo_n "(cached) " >&6
18768 else
18769   ac_check_lib_save_LIBS=$LIBS
18770 LIBS="-lresolve -lnsl $LIBS"
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h.  */
18773
18774
18775 #ifdef __cplusplus
18776 extern "C"
18777 #endif
18778 char strcasecmp ();
18779 int main (void)
18780 {
18781 return strcasecmp ();
18782  ;
18783  return 0;
18784 }
18785 _ACEOF
18786 if ac_fn_c_try_link "$LINENO"; then :
18787   ac_cv_lib_resolve_strcasecmp=yes
18788 else
18789   ac_cv_lib_resolve_strcasecmp=no
18790 fi
18791 rm -f core conftest.err conftest.$ac_objext \
18792     conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
18796 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
18797 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
18798   LIBS="-lresolve $LIBS"
18799 fi
18800
18801 fi
18802 ac_cv_func_strcasecmp="no"
18803
18804
18805 cares_includes_winsock2="\
18806 /* includes start */
18807 #ifdef HAVE_WINDOWS_H
18808 #  ifndef WIN32_LEAN_AND_MEAN
18809 #    define WIN32_LEAN_AND_MEAN
18810 #  endif
18811 #  include <windows.h>
18812 #  ifdef HAVE_WINSOCK2_H
18813 #    include <winsock2.h>
18814 #  else
18815 #    ifdef HAVE_WINSOCK_H
18816 #      include <winsock.h>
18817 #    endif
18818 #  endif
18819 #endif
18820 /* includes end */"
18821
18822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18823 $as_echo_n "checking for windows.h... " >&6; }
18824 if ${ac_cv_header_windows_h+:} false; then :
18825   $as_echo_n "(cached) " >&6
18826 else
18827
18828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h.  */
18830
18831
18832 #undef inline
18833 #ifndef WIN32_LEAN_AND_MEAN
18834 #define WIN32_LEAN_AND_MEAN
18835 #endif
18836 #include <windows.h>
18837
18838 int main (void)
18839 {
18840
18841 #if defined(__CYGWIN__) || defined(__CEGCC__)
18842         HAVE_WINDOWS_H shall not be defined.
18843 #else
18844         int dummy=2*WINVER;
18845 #endif
18846
18847  ;
18848  return 0;
18849 }
18850
18851 _ACEOF
18852 if ac_fn_c_try_compile "$LINENO"; then :
18853
18854       ac_cv_header_windows_h="yes"
18855
18856 else
18857
18858       ac_cv_header_windows_h="no"
18859
18860 fi
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862
18863 fi
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18865 $as_echo "$ac_cv_header_windows_h" >&6; }
18866   case "$ac_cv_header_windows_h" in
18867     yes)
18868
18869 cat >>confdefs.h <<_ACEOF
18870 #define HAVE_WINDOWS_H 1
18871 _ACEOF
18872
18873
18874 cat >>confdefs.h <<_ACEOF
18875 #define WIN32_LEAN_AND_MEAN 1
18876 _ACEOF
18877
18878       ;;
18879   esac
18880
18881
18882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18883 $as_echo_n "checking for winsock.h... " >&6; }
18884 if ${ac_cv_header_winsock_h+:} false; then :
18885   $as_echo_n "(cached) " >&6
18886 else
18887
18888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h.  */
18890
18891
18892 #undef inline
18893 #ifndef WIN32_LEAN_AND_MEAN
18894 #define WIN32_LEAN_AND_MEAN
18895 #endif
18896 #include <windows.h>
18897 #include <winsock.h>
18898
18899 int main (void)
18900 {
18901
18902 #if defined(__CYGWIN__) || defined(__CEGCC__)
18903         HAVE_WINSOCK_H shall not be defined.
18904 #else
18905         int dummy=WSACleanup();
18906 #endif
18907
18908  ;
18909  return 0;
18910 }
18911
18912 _ACEOF
18913 if ac_fn_c_try_compile "$LINENO"; then :
18914
18915       ac_cv_header_winsock_h="yes"
18916
18917 else
18918
18919       ac_cv_header_winsock_h="no"
18920
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923
18924 fi
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18926 $as_echo "$ac_cv_header_winsock_h" >&6; }
18927   case "$ac_cv_header_winsock_h" in
18928     yes)
18929
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_WINSOCK_H 1
18932 _ACEOF
18933
18934       ;;
18935   esac
18936
18937
18938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18939 $as_echo_n "checking for winsock2.h... " >&6; }
18940 if ${ac_cv_header_winsock2_h+:} false; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943
18944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945 /* end confdefs.h.  */
18946
18947
18948 #undef inline
18949 #ifndef WIN32_LEAN_AND_MEAN
18950 #define WIN32_LEAN_AND_MEAN
18951 #endif
18952 #include <windows.h>
18953 #include <winsock2.h>
18954
18955 int main (void)
18956 {
18957
18958 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18959         HAVE_WINSOCK2_H shall not be defined.
18960 #else
18961         int dummy=2*IPPROTO_ESP;
18962 #endif
18963
18964  ;
18965  return 0;
18966 }
18967
18968 _ACEOF
18969 if ac_fn_c_try_compile "$LINENO"; then :
18970
18971       ac_cv_header_winsock2_h="yes"
18972
18973 else
18974
18975       ac_cv_header_winsock2_h="no"
18976
18977 fi
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18982 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18983   case "$ac_cv_header_winsock2_h" in
18984     yes)
18985
18986 cat >>confdefs.h <<_ACEOF
18987 #define HAVE_WINSOCK2_H 1
18988 _ACEOF
18989
18990       ;;
18991   esac
18992
18993
18994
18995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
18996 $as_echo_n "checking for connect in libraries... " >&6; }
18997   tst_connect_save_LIBS="$LIBS"
18998   tst_connect_need_LIBS="unknown"
18999   for tst_lib in '' '-lsocket' ; do
19000     if test "$tst_connect_need_LIBS" = "unknown"; then
19001       LIBS="$tst_lib $tst_connect_save_LIBS"
19002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h.  */
19004
19005
19006           $cares_includes_winsock2
19007           #ifndef HAVE_WINDOWS_H
19008             int connect(int, void*, int);
19009           #endif
19010
19011 int main (void)
19012 {
19013
19014           if(0 != connect(0, 0, 0))
19015             return 1;
19016
19017  ;
19018  return 0;
19019 }
19020
19021 _ACEOF
19022 if ac_fn_c_try_link "$LINENO"; then :
19023
19024         tst_connect_need_LIBS="$tst_lib"
19025
19026 fi
19027 rm -f core conftest.err conftest.$ac_objext \
19028     conftest$ac_exeext conftest.$ac_ext
19029     fi
19030   done
19031   LIBS="$tst_connect_save_LIBS"
19032   #
19033   case X-"$tst_connect_need_LIBS" in
19034     X-unknown)
19035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19036 $as_echo "cannot find connect" >&6; }
19037       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19038       ;;
19039     X-)
19040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19041 $as_echo "yes" >&6; }
19042       ;;
19043     *)
19044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19045 $as_echo "$tst_connect_need_LIBS" >&6; }
19046       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19047       ;;
19048   esac
19049
19050
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19052 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19053 if ${ac_cv_header_time+:} false; then :
19054   $as_echo_n "(cached) " >&6
19055 else
19056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h.  */
19058 #include <sys/types.h>
19059 #include <sys/time.h>
19060 #include <time.h>
19061
19062 int main (void)
19063 {
19064 if ((struct tm *) 0)
19065 return 0;
19066  ;
19067  return 0;
19068 }
19069 _ACEOF
19070 if ac_fn_c_try_compile "$LINENO"; then :
19071   ac_cv_header_time=yes
19072 else
19073   ac_cv_header_time=no
19074 fi
19075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19076 fi
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19078 $as_echo "$ac_cv_header_time" >&6; }
19079 if test $ac_cv_header_time = yes; then
19080
19081 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19082
19083 fi
19084
19085
19086     for ac_header in sys/types.h sys/time.h time.h
19087 do :
19088   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19091   cat >>confdefs.h <<_ACEOF
19092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19093 _ACEOF
19094
19095 fi
19096
19097 done
19098
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19100 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h.  */
19103
19104
19105 #ifdef HAVE_SYS_TYPES_H
19106 #include <sys/types.h>
19107 #endif
19108 #ifdef HAVE_SYS_TIME_H
19109 #include <sys/time.h>
19110 #ifdef TIME_WITH_SYS_TIME
19111 #include <time.h>
19112 #endif
19113 #else
19114 #ifdef HAVE_TIME_H
19115 #include <time.h>
19116 #endif
19117 #endif
19118
19119 int main (void)
19120 {
19121
19122       struct timespec ts;
19123       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19124
19125  ;
19126  return 0;
19127 }
19128
19129 _ACEOF
19130 if ac_fn_c_try_compile "$LINENO"; then :
19131
19132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19133 $as_echo "yes" >&6; }
19134     ac_cv_func_clock_gettime="yes"
19135
19136 else
19137
19138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19140     ac_cv_func_clock_gettime="no"
19141
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19144
19145
19146     #
19147   if test "$ac_cv_func_clock_gettime" = "yes"; then
19148     #
19149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19150 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19151     #
19152     curl_cv_save_LIBS="$LIBS"
19153     curl_cv_gclk_LIBS="unknown"
19154     #
19155     for x_xlibs in '' '-lrt' '-lposix4' ; do
19156       if test "$curl_cv_gclk_LIBS" = "unknown"; then
19157         if test -z "$x_xlibs"; then
19158           LIBS="$curl_cv_save_LIBS"
19159         else
19160           LIBS="$x_xlibs $curl_cv_save_LIBS"
19161         fi
19162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h.  */
19164
19165
19166 #ifdef HAVE_SYS_TYPES_H
19167 #include <sys/types.h>
19168 #endif
19169 #ifdef HAVE_SYS_TIME_H
19170 #include <sys/time.h>
19171 #ifdef TIME_WITH_SYS_TIME
19172 #include <time.h>
19173 #endif
19174 #else
19175 #ifdef HAVE_TIME_H
19176 #include <time.h>
19177 #endif
19178 #endif
19179
19180 int main (void)
19181 {
19182
19183             struct timespec ts;
19184             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19185
19186  ;
19187  return 0;
19188 }
19189
19190 _ACEOF
19191 if ac_fn_c_try_link "$LINENO"; then :
19192
19193           curl_cv_gclk_LIBS="$x_xlibs"
19194
19195 fi
19196 rm -f core conftest.err conftest.$ac_objext \
19197     conftest$ac_exeext conftest.$ac_ext
19198       fi
19199     done
19200     #
19201     LIBS="$curl_cv_save_LIBS"
19202     #
19203     case X-"$curl_cv_gclk_LIBS" in
19204       X-unknown)
19205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
19206 $as_echo "cannot find clock_gettime" >&6; }
19207         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19208 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19209         ac_cv_func_clock_gettime="no"
19210         ;;
19211       X-)
19212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
19213 $as_echo "no additional lib required" >&6; }
19214         ac_cv_func_clock_gettime="yes"
19215         ;;
19216       *)
19217         if test -z "$curl_cv_save_LIBS"; then
19218           LIBS="$curl_cv_gclk_LIBS"
19219         else
19220           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
19221         fi
19222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
19223 $as_echo "$curl_cv_gclk_LIBS" >&6; }
19224         ac_cv_func_clock_gettime="yes"
19225         ;;
19226     esac
19227     #
19228         if test "x$cross_compiling" != "xyes" &&
19229       test "$ac_cv_func_clock_gettime" = "yes"; then
19230       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
19231 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
19232       if test "$cross_compiling" = yes; then :
19233   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19235 as_fn_error $? "cannot run test program while cross compiling
19236 See \`config.log' for more details" "$LINENO" 5; }
19237 else
19238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h.  */
19240
19241
19242 #ifdef HAVE_STDLIB_H
19243 #include <stdlib.h>
19244 #endif
19245 #ifdef HAVE_SYS_TYPES_H
19246 #include <sys/types.h>
19247 #endif
19248 #ifdef HAVE_SYS_TIME_H
19249 #include <sys/time.h>
19250 #ifdef TIME_WITH_SYS_TIME
19251 #include <time.h>
19252 #endif
19253 #else
19254 #ifdef HAVE_TIME_H
19255 #include <time.h>
19256 #endif
19257 #endif
19258
19259 int main (void)
19260 {
19261
19262           struct timespec ts;
19263           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
19264             exit(0);
19265           else
19266             exit(1);
19267
19268  ;
19269  return 0;
19270 }
19271
19272 _ACEOF
19273 if ac_fn_c_try_run "$LINENO"; then :
19274
19275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19276 $as_echo "yes" >&6; }
19277
19278 else
19279
19280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19283 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19284         ac_cv_func_clock_gettime="no"
19285         LIBS="$curl_cv_save_LIBS"
19286
19287 fi
19288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19289   conftest.$ac_objext conftest.beam conftest.$ac_ext
19290 fi
19291
19292     fi
19293     #
19294     case "$ac_cv_func_clock_gettime" in
19295       yes)
19296
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
19299 _ACEOF
19300
19301         ;;
19302     esac
19303     #
19304   fi
19305   #
19306
19307
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19309 $as_echo_n "checking whether to use libgcc... " >&6; }
19310 # Check whether --enable-libgcc was given.
19311 if test "${enable_libgcc+set}" = set; then :
19312   enableval=$enable_libgcc;  case "$enableval" in
19313   yes)
19314         LIBS="$LIBS -lgcc"
19315        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316 $as_echo "yes" >&6; }
19317        ;;
19318   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19320        ;;
19321   esac
19322 else
19323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19325
19326 fi
19327
19328
19329
19330
19331
19332
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19334 $as_echo_n "checking for ANSI C header files... " >&6; }
19335 if ${ac_cv_header_stdc+:} false; then :
19336   $as_echo_n "(cached) " >&6
19337 else
19338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h.  */
19340 #include <stdlib.h>
19341 #include <stdarg.h>
19342 #include <string.h>
19343 #include <float.h>
19344
19345 int main (void)
19346 {
19347
19348  ;
19349  return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_compile "$LINENO"; then :
19353   ac_cv_header_stdc=yes
19354 else
19355   ac_cv_header_stdc=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358
19359 if test $ac_cv_header_stdc = yes; then
19360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h.  */
19363 #include <string.h>
19364
19365 _ACEOF
19366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19367   $EGREP "memchr" >/dev/null 2>&1; then :
19368
19369 else
19370   ac_cv_header_stdc=no
19371 fi
19372 rm -f conftest*
19373
19374 fi
19375
19376 if test $ac_cv_header_stdc = yes; then
19377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h.  */
19380 #include <stdlib.h>
19381
19382 _ACEOF
19383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19384   $EGREP "free" >/dev/null 2>&1; then :
19385
19386 else
19387   ac_cv_header_stdc=no
19388 fi
19389 rm -f conftest*
19390
19391 fi
19392
19393 if test $ac_cv_header_stdc = yes; then
19394   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19395   if test "$cross_compiling" = yes; then :
19396   :
19397 else
19398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h.  */
19400 #include <ctype.h>
19401 #include <stdlib.h>
19402 #if ((' ' & 0x0FF) == 0x020)
19403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19405 #else
19406 # define ISLOWER(c) \
19407                    (('a' <= (c) && (c) <= 'i') \
19408                      || ('j' <= (c) && (c) <= 'r') \
19409                      || ('s' <= (c) && (c) <= 'z'))
19410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19411 #endif
19412
19413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19414 int
19415 main ()
19416 {
19417   int i;
19418   for (i = 0; i < 256; i++)
19419     if (XOR (islower (i), ISLOWER (i))
19420         || toupper (i) != TOUPPER (i))
19421       return 2;
19422   return 0;
19423 }
19424 _ACEOF
19425 if ac_fn_c_try_run "$LINENO"; then :
19426
19427 else
19428   ac_cv_header_stdc=no
19429 fi
19430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19431   conftest.$ac_objext conftest.beam conftest.$ac_ext
19432 fi
19433
19434 fi
19435 fi
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19437 $as_echo "$ac_cv_header_stdc" >&6; }
19438 if test $ac_cv_header_stdc = yes; then
19439
19440 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19441
19442 fi
19443
19444
19445
19446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
19447 $as_echo_n "checking for malloc.h... " >&6; }
19448 if ${ac_cv_header_malloc_h+:} false; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451
19452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h.  */
19454
19455
19456 #include <malloc.h>
19457
19458 int main (void)
19459 {
19460
19461         void *p = malloc(10);
19462         void *q = calloc(10,10);
19463         free(p);
19464         free(q);
19465
19466  ;
19467  return 0;
19468 }
19469
19470 _ACEOF
19471 if ac_fn_c_try_compile "$LINENO"; then :
19472
19473       ac_cv_header_malloc_h="yes"
19474
19475 else
19476
19477       ac_cv_header_malloc_h="no"
19478
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481
19482 fi
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
19484 $as_echo "$ac_cv_header_malloc_h" >&6; }
19485   if test "$ac_cv_header_malloc_h" = "yes"; then
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_MALLOC_H 1
19489 _ACEOF
19490
19491     #
19492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h.  */
19494
19495
19496 #include <stdlib.h>
19497
19498 int main (void)
19499 {
19500
19501         void *p = malloc(10);
19502         void *q = calloc(10,10);
19503         free(p);
19504         free(q);
19505
19506  ;
19507  return 0;
19508 }
19509
19510 _ACEOF
19511 if ac_fn_c_try_compile "$LINENO"; then :
19512
19513       curl_cv_need_header_malloc_h="no"
19514
19515 else
19516
19517       curl_cv_need_header_malloc_h="yes"
19518
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521     #
19522     case "$curl_cv_need_header_malloc_h" in
19523       yes)
19524
19525 cat >>confdefs.h <<_ACEOF
19526 #define NEED_MALLOC_H 1
19527 _ACEOF
19528
19529         ;;
19530     esac
19531   fi
19532
19533
19534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
19535 $as_echo_n "checking for memory.h... " >&6; }
19536 if ${ac_cv_header_memory_h+:} false; then :
19537   $as_echo_n "(cached) " >&6
19538 else
19539
19540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h.  */
19542
19543
19544 #include <memory.h>
19545
19546 int main (void)
19547 {
19548
19549         void *p = malloc(10);
19550         void *q = calloc(10,10);
19551         free(p);
19552         free(q);
19553
19554  ;
19555  return 0;
19556 }
19557
19558 _ACEOF
19559 if ac_fn_c_try_compile "$LINENO"; then :
19560
19561       ac_cv_header_memory_h="yes"
19562
19563 else
19564
19565       ac_cv_header_memory_h="no"
19566
19567 fi
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569
19570 fi
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
19572 $as_echo "$ac_cv_header_memory_h" >&6; }
19573   if test "$ac_cv_header_memory_h" = "yes"; then
19574
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_MEMORY_H 1
19577 _ACEOF
19578
19579     #
19580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h.  */
19582
19583
19584 #include <stdlib.h>
19585
19586 int main (void)
19587 {
19588
19589         void *p = malloc(10);
19590         void *q = calloc(10,10);
19591         free(p);
19592         free(q);
19593
19594  ;
19595  return 0;
19596 }
19597
19598 _ACEOF
19599 if ac_fn_c_try_compile "$LINENO"; then :
19600
19601       curl_cv_need_header_memory_h="no"
19602
19603 else
19604
19605       curl_cv_need_header_memory_h="yes"
19606
19607 fi
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609     #
19610     case "$curl_cv_need_header_memory_h" in
19611       yes)
19612
19613 cat >>confdefs.h <<_ACEOF
19614 #define NEED_MEMORY_H 1
19615 _ACEOF
19616
19617         ;;
19618     esac
19619   fi
19620
19621
19622 for ac_header in sys/types.h \
19623        sys/time.h \
19624        sys/select.h \
19625        sys/socket.h \
19626        sys/ioctl.h \
19627        sys/param.h \
19628        sys/uio.h \
19629        assert.h \
19630        netdb.h \
19631        netinet/in.h \
19632        netinet/tcp.h \
19633        net/if.h \
19634        errno.h \
19635        socket.h \
19636        strings.h \
19637        stdbool.h \
19638        time.h \
19639        limits.h \
19640        arpa/nameser.h \
19641        arpa/nameser_compat.h \
19642        arpa/inet.h
19643 do :
19644   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19646 #ifdef HAVE_SYS_TYPES_H
19647 #include <sys/types.h>
19648 #endif
19649 #ifdef HAVE_SYS_TIME_H
19650 #include <sys/time.h>
19651 #endif
19652 #ifdef HAVE_ARPA_NAMESER_H
19653 #include <arpa/nameser.h>
19654 #endif
19655
19656 #ifdef HAVE_SYS_SOCKET_H
19657 #include <sys/socket.h>
19658 #endif
19659 #ifdef HAVE_NETINET_IN_H
19660 #include <netinet/in.h>
19661 #endif
19662
19663
19664 "
19665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19666   cat >>confdefs.h <<_ACEOF
19667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19668 _ACEOF
19669
19670 fi
19671
19672 done
19673
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19676 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19677 if ${ac_cv_c_const+:} false; then :
19678   $as_echo_n "(cached) " >&6
19679 else
19680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h.  */
19682
19683 int main (void)
19684 {
19685
19686 #ifndef __cplusplus
19687   /* Ultrix mips cc rejects this sort of thing.  */
19688   typedef int charset[2];
19689   const charset cs = { 0, 0 };
19690   /* SunOS 4.1.1 cc rejects this.  */
19691   char const *const *pcpcc;
19692   char **ppc;
19693   /* NEC SVR4.0.2 mips cc rejects this.  */
19694   struct point {int x, y;};
19695   static struct point const zero = {0,0};
19696   /* AIX XL C 1.02.0.0 rejects this.
19697      It does not let you subtract one const X* pointer from another in
19698      an arm of an if-expression whose if-part is not a constant
19699      expression */
19700   const char *g = "string";
19701   pcpcc = &g + (g ? g-g : 0);
19702   /* HPUX 7.0 cc rejects these. */
19703   ++pcpcc;
19704   ppc = (char**) pcpcc;
19705   pcpcc = (char const *const *) ppc;
19706   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19707     char tx;
19708     char *t = &tx;
19709     char const *s = 0 ? (char *) 0 : (char const *) 0;
19710
19711     *t++ = 0;
19712     if (s) return 0;
19713   }
19714   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19715     int x[] = {25, 17};
19716     const int *foo = &x[0];
19717     ++foo;
19718   }
19719   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19720     typedef const int *iptr;
19721     iptr p = 0;
19722     ++p;
19723   }
19724   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19725        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19726     struct s { int j; const int *ap[3]; } bx;
19727     struct s *b = &bx; b->j = 5;
19728   }
19729   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19730     const int foo = 10;
19731     if (!foo) return 0;
19732   }
19733   return !cs[0] && !zero.x;
19734 #endif
19735
19736  ;
19737  return 0;
19738 }
19739 _ACEOF
19740 if ac_fn_c_try_compile "$LINENO"; then :
19741   ac_cv_c_const=yes
19742 else
19743   ac_cv_c_const=no
19744 fi
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746 fi
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19748 $as_echo "$ac_cv_c_const" >&6; }
19749 if test $ac_cv_c_const = no; then
19750
19751 $as_echo "#define const /**/" >>confdefs.h
19752
19753 fi
19754
19755 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19756 if test "x$ac_cv_type_size_t" = xyes; then :
19757
19758 else
19759
19760 cat >>confdefs.h <<_ACEOF
19761 #define size_t unsigned int
19762 _ACEOF
19763
19764 fi
19765
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19767 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19768 if ${ac_cv_header_time+:} false; then :
19769   $as_echo_n "(cached) " >&6
19770 else
19771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h.  */
19773 #include <sys/types.h>
19774 #include <sys/time.h>
19775 #include <time.h>
19776
19777 int main (void)
19778 {
19779 if ((struct tm *) 0)
19780 return 0;
19781  ;
19782  return 0;
19783 }
19784 _ACEOF
19785 if ac_fn_c_try_compile "$LINENO"; then :
19786   ac_cv_header_time=yes
19787 else
19788   ac_cv_header_time=no
19789 fi
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 fi
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19793 $as_echo "$ac_cv_header_time" >&6; }
19794 if test $ac_cv_header_time = yes; then
19795
19796 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19797
19798 fi
19799
19800
19801         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
19802 do :
19803   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19806   cat >>confdefs.h <<_ACEOF
19807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19808 _ACEOF
19809
19810 fi
19811
19812 done
19813
19814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19815 $as_echo_n "checking for struct timeval... " >&6; }
19816 if ${ac_cv_struct_timeval+:} false; then :
19817   $as_echo_n "(cached) " >&6
19818 else
19819
19820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h.  */
19822
19823
19824 #undef inline
19825 #ifdef HAVE_WINDOWS_H
19826 #ifndef WIN32_LEAN_AND_MEAN
19827 #define WIN32_LEAN_AND_MEAN
19828 #endif
19829 #include <windows.h>
19830 #ifdef HAVE_WINSOCK2_H
19831 #include <winsock2.h>
19832 #else
19833 #ifdef HAVE_WINSOCK_H
19834 #include <winsock.h>
19835 #endif
19836 #endif
19837 #endif
19838 #ifdef HAVE_SYS_TYPES_H
19839 #include <sys/types.h>
19840 #endif
19841 #ifdef HAVE_SYS_TIME_H
19842 #include <sys/time.h>
19843 #ifdef TIME_WITH_SYS_TIME
19844 #include <time.h>
19845 #endif
19846 #else
19847 #ifdef HAVE_TIME_H
19848 #include <time.h>
19849 #endif
19850 #endif
19851 #ifdef HAVE_SYS_SOCKET_H
19852 #include <sys/socket.h>
19853 #endif
19854
19855 int main (void)
19856 {
19857
19858         struct timeval ts;
19859         ts.tv_sec  = 0;
19860         ts.tv_usec = 0;
19861
19862  ;
19863  return 0;
19864 }
19865
19866 _ACEOF
19867 if ac_fn_c_try_compile "$LINENO"; then :
19868
19869       ac_cv_struct_timeval="yes"
19870
19871 else
19872
19873       ac_cv_struct_timeval="no"
19874
19875 fi
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877
19878 fi
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
19880 $as_echo "$ac_cv_struct_timeval" >&6; }
19881   case "$ac_cv_struct_timeval" in
19882     yes)
19883
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_STRUCT_TIMEVAL 1
19886 _ACEOF
19887
19888       ;;
19889   esac
19890
19891
19892 # The cast to long int works around a bug in the HP C Compiler
19893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19895 # This bug is HP SR number 8606223364.
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19897 $as_echo_n "checking size of size_t... " >&6; }
19898 if ${ac_cv_sizeof_size_t+:} false; then :
19899   $as_echo_n "(cached) " >&6
19900 else
19901   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
19902
19903 else
19904   if test "$ac_cv_type_size_t" = yes; then
19905      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19907 as_fn_error 77 "cannot compute sizeof (size_t)
19908 See \`config.log' for more details" "$LINENO" 5; }
19909    else
19910      ac_cv_sizeof_size_t=0
19911    fi
19912 fi
19913
19914 fi
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19916 $as_echo "$ac_cv_sizeof_size_t" >&6; }
19917
19918
19919
19920 cat >>confdefs.h <<_ACEOF
19921 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19922 _ACEOF
19923
19924
19925 # The cast to long int works around a bug in the HP C Compiler
19926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19928 # This bug is HP SR number 8606223364.
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19930 $as_echo_n "checking size of long... " >&6; }
19931 if ${ac_cv_sizeof_long+:} false; then :
19932   $as_echo_n "(cached) " >&6
19933 else
19934   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19935
19936 else
19937   if test "$ac_cv_type_long" = yes; then
19938      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19940 as_fn_error 77 "cannot compute sizeof (long)
19941 See \`config.log' for more details" "$LINENO" 5; }
19942    else
19943      ac_cv_sizeof_long=0
19944    fi
19945 fi
19946
19947 fi
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19949 $as_echo "$ac_cv_sizeof_long" >&6; }
19950
19951
19952
19953 cat >>confdefs.h <<_ACEOF
19954 #define SIZEOF_LONG $ac_cv_sizeof_long
19955 _ACEOF
19956
19957
19958 # The cast to long int works around a bug in the HP C Compiler
19959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19961 # This bug is HP SR number 8606223364.
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19963 $as_echo_n "checking size of int... " >&6; }
19964 if ${ac_cv_sizeof_int+:} false; then :
19965   $as_echo_n "(cached) " >&6
19966 else
19967   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19968
19969 else
19970   if test "$ac_cv_type_int" = yes; then
19971      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19973 as_fn_error 77 "cannot compute sizeof (int)
19974 See \`config.log' for more details" "$LINENO" 5; }
19975    else
19976      ac_cv_sizeof_int=0
19977    fi
19978 fi
19979
19980 fi
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19982 $as_echo "$ac_cv_sizeof_int" >&6; }
19983
19984
19985
19986 cat >>confdefs.h <<_ACEOF
19987 #define SIZEOF_INT $ac_cv_sizeof_int
19988 _ACEOF
19989
19990
19991 # The cast to long int works around a bug in the HP C Compiler
19992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19994 # This bug is HP SR number 8606223364.
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19996 $as_echo_n "checking size of short... " >&6; }
19997 if ${ac_cv_sizeof_short+:} false; then :
19998   $as_echo_n "(cached) " >&6
19999 else
20000   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20001
20002 else
20003   if test "$ac_cv_type_short" = yes; then
20004      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20006 as_fn_error 77 "cannot compute sizeof (short)
20007 See \`config.log' for more details" "$LINENO" 5; }
20008    else
20009      ac_cv_sizeof_short=0
20010    fi
20011 fi
20012
20013 fi
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20015 $as_echo "$ac_cv_sizeof_short" >&6; }
20016
20017
20018
20019 cat >>confdefs.h <<_ACEOF
20020 #define SIZEOF_SHORT $ac_cv_sizeof_short
20021 _ACEOF
20022
20023
20024 # The cast to long int works around a bug in the HP C Compiler
20025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20027 # This bug is HP SR number 8606223364.
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20029 $as_echo_n "checking size of time_t... " >&6; }
20030 if ${ac_cv_sizeof_time_t+:} false; then :
20031   $as_echo_n "(cached) " >&6
20032 else
20033   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
20034
20035 else
20036   if test "$ac_cv_type_time_t" = yes; then
20037      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20039 as_fn_error 77 "cannot compute sizeof (time_t)
20040 See \`config.log' for more details" "$LINENO" 5; }
20041    else
20042      ac_cv_sizeof_time_t=0
20043    fi
20044 fi
20045
20046 fi
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20048 $as_echo "$ac_cv_sizeof_time_t" >&6; }
20049
20050
20051
20052 cat >>confdefs.h <<_ACEOF
20053 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20054 _ACEOF
20055
20056
20057
20058 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
20059 if test "x$ac_cv_type_long_long" = xyes; then :
20060
20061 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
20062
20063    longlong="yes"
20064
20065 fi
20066
20067
20068 if test "xyes" = "x$longlong"; then
20069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
20070 $as_echo_n "checking if numberLL works... " >&6; }
20071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h.  */
20073
20074
20075
20076 int main (void)
20077 {
20078
20079       long long val = 1000LL;
20080
20081  ;
20082  return 0;
20083 }
20084
20085 _ACEOF
20086 if ac_fn_c_try_compile "$LINENO"; then :
20087
20088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089 $as_echo "yes" >&6; }
20090
20091 $as_echo "#define HAVE_LL 1" >>confdefs.h
20092
20093
20094 else
20095
20096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 $as_echo "no" >&6; }
20098
20099 fi
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 fi
20102
20103
20104 # check for ssize_t
20105 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20106 if test "x$ac_cv_type_ssize_t" = xyes; then :
20107
20108 else
20109
20110 $as_echo "#define ssize_t int" >>confdefs.h
20111
20112 fi
20113
20114
20115 # check for bool type
20116 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
20117 #ifdef HAVE_SYS_TYPES_H
20118 #include <sys/types.h>
20119 #endif
20120 #ifdef HAVE_STDBOOL_H
20121 #include <stdbool.h>
20122 #endif
20123
20124 "
20125 if test "x$ac_cv_type_bool" = xyes; then :
20126
20127
20128 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
20129
20130
20131 fi
20132
20133
20134
20135 cares_includes_ws2tcpip="\
20136 /* includes start */
20137 #ifdef HAVE_WINDOWS_H
20138 #  ifndef WIN32_LEAN_AND_MEAN
20139 #    define WIN32_LEAN_AND_MEAN
20140 #  endif
20141 #  include <windows.h>
20142 #  ifdef HAVE_WINSOCK2_H
20143 #    include <winsock2.h>
20144 #    ifdef HAVE_WS2TCPIP_H
20145 #       include <ws2tcpip.h>
20146 #    endif
20147 #  endif
20148 #endif
20149 /* includes end */"
20150
20151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20152 $as_echo_n "checking for windows.h... " >&6; }
20153 if ${ac_cv_header_windows_h+:} false; then :
20154   $as_echo_n "(cached) " >&6
20155 else
20156
20157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h.  */
20159
20160
20161 #undef inline
20162 #ifndef WIN32_LEAN_AND_MEAN
20163 #define WIN32_LEAN_AND_MEAN
20164 #endif
20165 #include <windows.h>
20166
20167 int main (void)
20168 {
20169
20170 #if defined(__CYGWIN__) || defined(__CEGCC__)
20171         HAVE_WINDOWS_H shall not be defined.
20172 #else
20173         int dummy=2*WINVER;
20174 #endif
20175
20176  ;
20177  return 0;
20178 }
20179
20180 _ACEOF
20181 if ac_fn_c_try_compile "$LINENO"; then :
20182
20183       ac_cv_header_windows_h="yes"
20184
20185 else
20186
20187       ac_cv_header_windows_h="no"
20188
20189 fi
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191
20192 fi
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
20194 $as_echo "$ac_cv_header_windows_h" >&6; }
20195   case "$ac_cv_header_windows_h" in
20196     yes)
20197
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_WINDOWS_H 1
20200 _ACEOF
20201
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define WIN32_LEAN_AND_MEAN 1
20205 _ACEOF
20206
20207       ;;
20208   esac
20209
20210
20211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20212 $as_echo_n "checking for winsock2.h... " >&6; }
20213 if ${ac_cv_header_winsock2_h+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216
20217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h.  */
20219
20220
20221 #undef inline
20222 #ifndef WIN32_LEAN_AND_MEAN
20223 #define WIN32_LEAN_AND_MEAN
20224 #endif
20225 #include <windows.h>
20226 #include <winsock2.h>
20227
20228 int main (void)
20229 {
20230
20231 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20232         HAVE_WINSOCK2_H shall not be defined.
20233 #else
20234         int dummy=2*IPPROTO_ESP;
20235 #endif
20236
20237  ;
20238  return 0;
20239 }
20240
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243
20244       ac_cv_header_winsock2_h="yes"
20245
20246 else
20247
20248       ac_cv_header_winsock2_h="no"
20249
20250 fi
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252
20253 fi
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
20255 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20256   case "$ac_cv_header_winsock2_h" in
20257     yes)
20258
20259 cat >>confdefs.h <<_ACEOF
20260 #define HAVE_WINSOCK2_H 1
20261 _ACEOF
20262
20263       ;;
20264   esac
20265
20266
20267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20268 $as_echo_n "checking for ws2tcpip.h... " >&6; }
20269 if ${ac_cv_header_ws2tcpip_h+:} false; then :
20270   $as_echo_n "(cached) " >&6
20271 else
20272
20273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274 /* end confdefs.h.  */
20275
20276
20277 #undef inline
20278 #ifndef WIN32_LEAN_AND_MEAN
20279 #define WIN32_LEAN_AND_MEAN
20280 #endif
20281 #include <windows.h>
20282 #include <winsock2.h>
20283 #include <ws2tcpip.h>
20284
20285 int main (void)
20286 {
20287
20288 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20289         HAVE_WS2TCPIP_H shall not be defined.
20290 #else
20291         int dummy=2*IP_PKTINFO;
20292 #endif
20293
20294  ;
20295  return 0;
20296 }
20297
20298 _ACEOF
20299 if ac_fn_c_try_compile "$LINENO"; then :
20300
20301       ac_cv_header_ws2tcpip_h="yes"
20302
20303 else
20304
20305       ac_cv_header_ws2tcpip_h="no"
20306
20307 fi
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309
20310 fi
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
20312 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
20313   case "$ac_cv_header_ws2tcpip_h" in
20314     yes)
20315
20316 cat >>confdefs.h <<_ACEOF
20317 #define HAVE_WS2TCPIP_H 1
20318 _ACEOF
20319
20320       ;;
20321   esac
20322
20323
20324
20325 cares_includes_sys_socket="\
20326 /* includes start */
20327 #ifdef HAVE_SYS_TYPES_H
20328 #  include <sys/types.h>
20329 #endif
20330 #ifdef HAVE_SYS_SOCKET_H
20331 #  include <sys/socket.h>
20332 #endif
20333 /* includes end */"
20334   for ac_header in sys/types.h sys/socket.h
20335 do :
20336   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
20338 "
20339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20340   cat >>confdefs.h <<_ACEOF
20341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20342 _ACEOF
20343
20344 fi
20345
20346 done
20347
20348
20349
20350 cares_preprocess_callconv="\
20351 /* preprocess start */
20352 #ifdef HAVE_WINDOWS_H
20353 #  define FUNCALLCONV __stdcall
20354 #else
20355 #  define FUNCALLCONV
20356 #endif
20357 /* preprocess end */"
20358
20359
20360         #
20361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
20362 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
20363   cares_typeof_ares_socklen_t="unknown"
20364   for arg1 in int SOCKET; do
20365     for arg2 in 'struct sockaddr' void; do
20366       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
20367         if test "$cares_typeof_ares_socklen_t" = "unknown"; then
20368           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h.  */
20370
20371
20372               $cares_includes_ws2tcpip
20373               $cares_includes_sys_socket
20374               $cares_preprocess_callconv
20375               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
20376
20377 int main (void)
20378 {
20379
20380               $t *lenptr = 0;
20381               if(0 != getpeername(0, 0, lenptr))
20382                 return 1;
20383
20384  ;
20385  return 0;
20386 }
20387
20388 _ACEOF
20389 if ac_fn_c_try_compile "$LINENO"; then :
20390
20391             cares_typeof_ares_socklen_t="$t"
20392
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20395         fi
20396       done
20397     done
20398   done
20399   for t in socklen_t int; do
20400     if test "$cares_typeof_ares_socklen_t" = "void"; then
20401       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h.  */
20403
20404
20405           $cares_includes_sys_socket
20406           typedef $t ares_socklen_t;
20407
20408 int main (void)
20409 {
20410
20411           ares_socklen_t dummy;
20412
20413  ;
20414  return 0;
20415 }
20416
20417 _ACEOF
20418 if ac_fn_c_try_compile "$LINENO"; then :
20419
20420         cares_typeof_ares_socklen_t="$t"
20421
20422 fi
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424     fi
20425   done
20426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
20427 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
20428   if test "$cares_typeof_ares_socklen_t" = "void" ||
20429     test "$cares_typeof_ares_socklen_t" = "unknown"; then
20430     as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
20431   fi
20432   #
20433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
20434 $as_echo_n "checking size of ares_socklen_t... " >&6; }
20435   cares_sizeof_ares_socklen_t="unknown"
20436   cares_pull_headers_socklen_t="unknown"
20437   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
20438     tst_pull_header_checks='none ws2tcpip'
20439     tst_size_checks='4'
20440   else
20441     tst_pull_header_checks='none systypes syssocket'
20442     tst_size_checks='4 8 2'
20443   fi
20444   for tst_size in $tst_size_checks; do
20445     for tst_pull_headers in $tst_pull_header_checks; do
20446       if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
20447         case $tst_pull_headers in
20448           ws2tcpip)
20449             tmp_includes="$cares_includes_ws2tcpip"
20450             ;;
20451           systypes)
20452             tmp_includes="$cares_includes_sys_types"
20453             ;;
20454           syssocket)
20455             tmp_includes="$cares_includes_sys_socket"
20456             ;;
20457           *)
20458             tmp_includes=""
20459             ;;
20460         esac
20461         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h.  */
20463
20464
20465             $tmp_includes
20466             typedef $cares_typeof_ares_socklen_t ares_socklen_t;
20467             typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
20468
20469 int main (void)
20470 {
20471
20472             ares_socklen_t dummy;
20473
20474  ;
20475  return 0;
20476 }
20477
20478 _ACEOF
20479 if ac_fn_c_try_compile "$LINENO"; then :
20480
20481           cares_sizeof_ares_socklen_t="$tst_size"
20482           cares_pull_headers_socklen_t="$tst_pull_headers"
20483
20484 fi
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486       fi
20487     done
20488   done
20489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
20490 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
20491   if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
20492     as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
20493   fi
20494   #
20495   case $cares_pull_headers_socklen_t in
20496     ws2tcpip)
20497
20498 cat >>confdefs.h <<_EOF
20499 #define CARES_PULL_WS2TCPIP_H 1
20500 _EOF
20501
20502       ;;
20503     systypes)
20504
20505 cat >>confdefs.h <<_EOF
20506 #define CARES_PULL_SYS_TYPES_H 1
20507 _EOF
20508
20509       ;;
20510     syssocket)
20511
20512 cat >>confdefs.h <<_EOF
20513 #define CARES_PULL_SYS_TYPES_H 1
20514 _EOF
20515
20516
20517 cat >>confdefs.h <<_EOF
20518 #define CARES_PULL_SYS_SOCKET_H 1
20519 _EOF
20520
20521       ;;
20522   esac
20523
20524 cat >>confdefs.h <<_EOF
20525 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
20526 _EOF
20527
20528
20529 cat >>confdefs.h <<_EOF
20530 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
20531 _EOF
20532
20533
20534
20535
20536   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
20537 #undef inline
20538 #ifdef HAVE_WINDOWS_H
20539 #ifndef WIN32_LEAN_AND_MEAN
20540 #define WIN32_LEAN_AND_MEAN
20541 #endif
20542 #include <windows.h>
20543 #ifdef HAVE_WINSOCK2_H
20544 #include <winsock2.h>
20545 #else
20546 #ifdef HAVE_WINSOCK_H
20547 #include <winsock.h>
20548 #endif
20549 #endif
20550 #else
20551 #ifdef HAVE_SYS_TYPES_H
20552 #include <sys/types.h>
20553 #endif
20554 #ifdef HAVE_SYS_SOCKET_H
20555 #include <sys/socket.h>
20556 #endif
20557 #ifdef HAVE_NETINET_IN_H
20558 #include <netinet/in.h>
20559 #endif
20560 #ifdef HAVE_ARPA_INET_H
20561 #include <arpa/inet.h>
20562 #endif
20563 #endif
20564
20565 "
20566 if test "x$ac_cv_type_in_addr_t" = xyes; then :
20567
20568 else
20569
20570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
20571 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
20572 if ${curl_cv_in_addr_t_equiv+:} false; then :
20573   $as_echo_n "(cached) " >&6
20574 else
20575
20576       curl_cv_in_addr_t_equiv="unknown"
20577       for t in "unsigned long" int size_t unsigned long; do
20578         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
20579           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h.  */
20581
20582
20583 #undef inline
20584 #ifdef HAVE_WINDOWS_H
20585 #ifndef WIN32_LEAN_AND_MEAN
20586 #define WIN32_LEAN_AND_MEAN
20587 #endif
20588 #include <windows.h>
20589 #ifdef HAVE_WINSOCK2_H
20590 #include <winsock2.h>
20591 #else
20592 #ifdef HAVE_WINSOCK_H
20593 #include <winsock.h>
20594 #endif
20595 #endif
20596 #else
20597 #ifdef HAVE_SYS_TYPES_H
20598 #include <sys/types.h>
20599 #endif
20600 #ifdef HAVE_SYS_SOCKET_H
20601 #include <sys/socket.h>
20602 #endif
20603 #ifdef HAVE_NETINET_IN_H
20604 #include <netinet/in.h>
20605 #endif
20606 #ifdef HAVE_ARPA_INET_H
20607 #include <arpa/inet.h>
20608 #endif
20609 #endif
20610
20611 int main (void)
20612 {
20613
20614               $t data = inet_addr ("1.2.3.4");
20615
20616  ;
20617  return 0;
20618 }
20619
20620 _ACEOF
20621 if ac_fn_c_try_link "$LINENO"; then :
20622
20623             curl_cv_in_addr_t_equiv="$t"
20624
20625 fi
20626 rm -f core conftest.err conftest.$ac_objext \
20627     conftest$ac_exeext conftest.$ac_ext
20628         fi
20629       done
20630
20631 fi
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
20633 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
20634     case "$curl_cv_in_addr_t_equiv" in
20635       unknown)
20636         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
20637         ;;
20638       *)
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define in_addr_t $curl_cv_in_addr_t_equiv
20642 _ACEOF
20643
20644         ;;
20645     esac
20646
20647 fi
20648
20649
20650
20651
20652    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
20653 #undef inline
20654 #ifdef HAVE_WINDOWS_H
20655 #ifndef WIN32_LEAN_AND_MEAN
20656 #define WIN32_LEAN_AND_MEAN
20657 #endif
20658 #include <windows.h>
20659 #ifdef HAVE_WINSOCK2_H
20660 #include <winsock2.h>
20661 #endif
20662 #else
20663 #ifdef HAVE_SYS_TYPES_H
20664 #include <sys/types.h>
20665 #endif
20666 #ifdef HAVE_SYS_SOCKET_H
20667 #include <sys/socket.h>
20668 #endif
20669 #ifdef HAVE_NETINET_IN_H
20670 #include <netinet/in.h>
20671 #endif
20672 #ifdef HAVE_ARPA_INET_H
20673 #include <arpa/inet.h>
20674 #endif
20675 #endif
20676
20677 "
20678 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
20679
20680 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
20681
20682 fi
20683
20684
20685
20686
20687   for ac_header in signal.h
20688 do :
20689   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
20690 if test "x$ac_cv_header_signal_h" = xyes; then :
20691   cat >>confdefs.h <<_ACEOF
20692 #define HAVE_SIGNAL_H 1
20693 _ACEOF
20694
20695 fi
20696
20697 done
20698
20699   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
20700 #ifdef HAVE_SIGNAL_H
20701 #include <signal.h>
20702 #endif
20703
20704 "
20705 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
20706
20707
20708 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
20709
20710
20711 fi
20712
20713   case "$ac_cv_type_sig_atomic_t" in
20714     yes)
20715       #
20716       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
20717 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
20718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h.  */
20720
20721
20722 #ifdef HAVE_SIGNAL_H
20723 #include <signal.h>
20724 #endif
20725
20726 int main (void)
20727 {
20728
20729           static volatile sig_atomic_t dummy = 0;
20730
20731  ;
20732  return 0;
20733 }
20734
20735 _ACEOF
20736 if ac_fn_c_try_link "$LINENO"; then :
20737
20738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20739 $as_echo "no" >&6; }
20740         ac_cv_sig_atomic_t_volatile="no"
20741
20742 else
20743
20744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20745 $as_echo "yes" >&6; }
20746         ac_cv_sig_atomic_t_volatile="yes"
20747
20748 fi
20749 rm -f core conftest.err conftest.$ac_objext \
20750     conftest$ac_exeext conftest.$ac_ext
20751       #
20752       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
20753
20754 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
20755
20756       fi
20757       ;;
20758   esac
20759
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20762 $as_echo_n "checking return type of signal handlers... " >&6; }
20763 if ${ac_cv_type_signal+:} false; then :
20764   $as_echo_n "(cached) " >&6
20765 else
20766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768 #include <sys/types.h>
20769 #include <signal.h>
20770
20771 int main (void)
20772 {
20773 return *(signal (0, 0)) (0) == 1;
20774  ;
20775  return 0;
20776 }
20777 _ACEOF
20778 if ac_fn_c_try_compile "$LINENO"; then :
20779   ac_cv_type_signal=int
20780 else
20781   ac_cv_type_signal=void
20782 fi
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20786 $as_echo "$ac_cv_type_signal" >&6; }
20787
20788 cat >>confdefs.h <<_ACEOF
20789 #define RETSIGTYPE $ac_cv_type_signal
20790 _ACEOF
20791
20792
20793
20794
20795       for ac_header in sys/types.h sys/socket.h
20796 do :
20797   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20800   cat >>confdefs.h <<_ACEOF
20801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20802 _ACEOF
20803
20804 fi
20805
20806 done
20807
20808   #
20809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
20810 $as_echo_n "checking for recv... " >&6; }
20811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h.  */
20813
20814
20815 #undef inline
20816 #ifdef HAVE_WINDOWS_H
20817 #ifndef WIN32_LEAN_AND_MEAN
20818 #define WIN32_LEAN_AND_MEAN
20819 #endif
20820 #include <windows.h>
20821 #ifdef HAVE_WINSOCK2_H
20822 #include <winsock2.h>
20823 #else
20824 #ifdef HAVE_WINSOCK_H
20825 #include <winsock.h>
20826 #endif
20827 #endif
20828 #else
20829 #ifdef HAVE_SYS_TYPES_H
20830 #include <sys/types.h>
20831 #endif
20832 #ifdef HAVE_SYS_SOCKET_H
20833 #include <sys/socket.h>
20834 #endif
20835 #endif
20836
20837 int main (void)
20838 {
20839
20840       recv(0, 0, 0, 0);
20841
20842  ;
20843  return 0;
20844 }
20845
20846 _ACEOF
20847 if ac_fn_c_try_link "$LINENO"; then :
20848
20849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20850 $as_echo "yes" >&6; }
20851     curl_cv_recv="yes"
20852
20853 else
20854
20855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20856 $as_echo "no" >&6; }
20857     curl_cv_recv="no"
20858
20859 fi
20860 rm -f core conftest.err conftest.$ac_objext \
20861     conftest$ac_exeext conftest.$ac_ext
20862   #
20863   if test "$curl_cv_recv" = "yes"; then
20864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
20865 $as_echo_n "checking types of args and return type for recv... " >&6; }
20866 if ${curl_cv_func_recv_args+:} false; then :
20867   $as_echo_n "(cached) " >&6
20868 else
20869
20870       curl_cv_func_recv_args="unknown"
20871       for recv_retv in 'int' 'ssize_t'; do
20872         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
20873           for recv_arg2 in 'char *' 'void *'; do
20874             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
20875               for recv_arg4 in 'int' 'unsigned int'; do
20876                 if test "$curl_cv_func_recv_args" = "unknown"; then
20877                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h.  */
20879
20880
20881 #undef inline
20882 #ifdef HAVE_WINDOWS_H
20883 #ifndef WIN32_LEAN_AND_MEAN
20884 #define WIN32_LEAN_AND_MEAN
20885 #endif
20886 #include <windows.h>
20887 #ifdef HAVE_WINSOCK2_H
20888 #include <winsock2.h>
20889 #else
20890 #ifdef HAVE_WINSOCK_H
20891 #include <winsock.h>
20892 #endif
20893 #endif
20894 #define RECVCALLCONV PASCAL
20895 #else
20896 #ifdef HAVE_SYS_TYPES_H
20897 #include <sys/types.h>
20898 #endif
20899 #ifdef HAVE_SYS_SOCKET_H
20900 #include <sys/socket.h>
20901 #endif
20902 #define RECVCALLCONV
20903 #endif
20904                       extern $recv_retv RECVCALLCONV
20905                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
20906
20907 int main (void)
20908 {
20909
20910                       $recv_arg1 s=0;
20911                       $recv_arg2 buf=0;
20912                       $recv_arg3 len=0;
20913                       $recv_arg4 flags=0;
20914                       $recv_retv res = recv(s, buf, len, flags);
20915
20916  ;
20917  return 0;
20918 }
20919
20920 _ACEOF
20921 if ac_fn_c_try_compile "$LINENO"; then :
20922
20923                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
20924
20925 fi
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927                 fi
20928               done
20929             done
20930           done
20931         done
20932       done
20933
20934 fi
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
20936 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
20937     if test "$curl_cv_func_recv_args" = "unknown"; then
20938       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
20939     else
20940       recv_prev_IFS=$IFS; IFS=','
20941       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
20942       IFS=$recv_prev_IFS
20943       shift
20944       #
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define RECV_TYPE_ARG1 $1
20948 _ACEOF
20949
20950
20951 cat >>confdefs.h <<_ACEOF
20952 #define RECV_TYPE_ARG2 $2
20953 _ACEOF
20954
20955
20956 cat >>confdefs.h <<_ACEOF
20957 #define RECV_TYPE_ARG3 $3
20958 _ACEOF
20959
20960
20961 cat >>confdefs.h <<_ACEOF
20962 #define RECV_TYPE_ARG4 $4
20963 _ACEOF
20964
20965
20966 cat >>confdefs.h <<_ACEOF
20967 #define RECV_TYPE_RETV $5
20968 _ACEOF
20969
20970       #
20971
20972 cat >>confdefs.h <<_ACEOF
20973 #define HAVE_RECV 1
20974 _ACEOF
20975
20976       ac_cv_func_recv="yes"
20977     fi
20978   else
20979     as_fn_error $? "Unable to link function recv" "$LINENO" 5
20980   fi
20981
20982
20983       for ac_header in sys/types.h sys/socket.h
20984 do :
20985   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20988   cat >>confdefs.h <<_ACEOF
20989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20990 _ACEOF
20991
20992 fi
20993
20994 done
20995
20996   #
20997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
20998 $as_echo_n "checking for recvfrom... " >&6; }
20999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h.  */
21001
21002
21003 #undef inline
21004 #ifdef HAVE_WINDOWS_H
21005 #ifndef WIN32_LEAN_AND_MEAN
21006 #define WIN32_LEAN_AND_MEAN
21007 #endif
21008 #include <windows.h>
21009 #ifdef HAVE_WINSOCK2_H
21010 #include <winsock2.h>
21011 #else
21012 #ifdef HAVE_WINSOCK_H
21013 #include <winsock.h>
21014 #endif
21015 #endif
21016 #else
21017 #ifdef HAVE_SYS_TYPES_H
21018 #include <sys/types.h>
21019 #endif
21020 #ifdef HAVE_SYS_SOCKET_H
21021 #include <sys/socket.h>
21022 #endif
21023 #endif
21024
21025 int main (void)
21026 {
21027
21028       recvfrom(0, 0, 0, 0, 0, 0);
21029
21030  ;
21031  return 0;
21032 }
21033
21034 _ACEOF
21035 if ac_fn_c_try_link "$LINENO"; then :
21036
21037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21038 $as_echo "yes" >&6; }
21039     curl_cv_recvfrom="yes"
21040
21041 else
21042
21043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 $as_echo "no" >&6; }
21045     curl_cv_recvfrom="no"
21046
21047 fi
21048 rm -f core conftest.err conftest.$ac_objext \
21049     conftest$ac_exeext conftest.$ac_ext
21050   #
21051   if test "$curl_cv_recvfrom" = "yes"; then
21052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
21053 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
21054 if ${curl_cv_func_recvfrom_args+:} false; then :
21055   $as_echo_n "(cached) " >&6
21056 else
21057
21058       curl_cv_func_recvfrom_args="unknown"
21059       for recvfrom_retv in 'int' 'ssize_t'; do
21060         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
21061           for recvfrom_arg2 in 'char *' 'void *'; do
21062             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
21063               for recvfrom_arg4 in 'int' 'unsigned int'; do
21064                 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
21065                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
21066                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
21067                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h.  */
21069
21070
21071 #undef inline
21072 #ifdef HAVE_WINDOWS_H
21073 #ifndef WIN32_LEAN_AND_MEAN
21074 #define WIN32_LEAN_AND_MEAN
21075 #endif
21076 #include <windows.h>
21077 #ifdef HAVE_WINSOCK2_H
21078 #include <winsock2.h>
21079 #else
21080 #ifdef HAVE_WINSOCK_H
21081 #include <winsock.h>
21082 #endif
21083 #endif
21084 #define RECVFROMCALLCONV PASCAL
21085 #else
21086 #ifdef HAVE_SYS_TYPES_H
21087 #include <sys/types.h>
21088 #endif
21089 #ifdef HAVE_SYS_SOCKET_H
21090 #include <sys/socket.h>
21091 #endif
21092 #define RECVFROMCALLCONV
21093 #endif
21094                           extern $recvfrom_retv RECVFROMCALLCONV
21095                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
21096                                    $recvfrom_arg3, $recvfrom_arg4,
21097                                    $recvfrom_arg5, $recvfrom_arg6);
21098
21099 int main (void)
21100 {
21101
21102                           $recvfrom_arg1 s=0;
21103                           $recvfrom_arg2 buf=0;
21104                           $recvfrom_arg3 len=0;
21105                           $recvfrom_arg4 flags=0;
21106                           $recvfrom_arg5 addr=0;
21107                           $recvfrom_arg6 addrlen=0;
21108                           $recvfrom_retv res=0;
21109                           res = recvfrom(s, buf, len, flags, addr, addrlen);
21110
21111  ;
21112  return 0;
21113 }
21114
21115 _ACEOF
21116 if ac_fn_c_try_compile "$LINENO"; then :
21117
21118                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
21119
21120 fi
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122                     fi
21123                   done
21124                 done
21125               done
21126             done
21127           done
21128         done
21129       done
21130
21131 fi
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
21133 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
21134     # Nearly last minute change for this release starts here
21135
21136 cat >>confdefs.h <<_ACEOF
21137 #define HAVE_RECVFROM 1
21138 _ACEOF
21139
21140     ac_cv_func_recvfrom="yes"
21141     # Nearly last minute change for this release ends here
21142     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
21143       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
21144 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
21145     else
21146       recvfrom_prev_IFS=$IFS; IFS=','
21147       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
21148       IFS=$recvfrom_prev_IFS
21149       shift
21150       #
21151       recvfrom_ptrt_arg2=$2
21152       recvfrom_qual_ptrt_arg5=$5
21153       recvfrom_ptrt_arg6=$6
21154       #
21155
21156 cat >>confdefs.h <<_ACEOF
21157 #define RECVFROM_TYPE_ARG1 $1
21158 _ACEOF
21159
21160
21161 cat >>confdefs.h <<_ACEOF
21162 #define RECVFROM_TYPE_ARG3 $3
21163 _ACEOF
21164
21165
21166 cat >>confdefs.h <<_ACEOF
21167 #define RECVFROM_TYPE_ARG4 $4
21168 _ACEOF
21169
21170
21171 cat >>confdefs.h <<_ACEOF
21172 #define RECVFROM_TYPE_RETV $7
21173 _ACEOF
21174
21175       #
21176       prev_sh_opts=$-
21177       #
21178       case $prev_sh_opts in
21179         *f*)
21180           ;;
21181         *)
21182           set -f
21183           ;;
21184       esac
21185       #
21186       case "$recvfrom_qual_ptrt_arg5" in
21187         const*)
21188           recvfrom_qual_arg5=const
21189           recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
21190         ;;
21191         *)
21192           recvfrom_qual_arg5=
21193           recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
21194         ;;
21195       esac
21196       #
21197       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
21198       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
21199       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
21200       #
21201
21202 cat >>confdefs.h <<_ACEOF
21203 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
21204 _ACEOF
21205
21206
21207 cat >>confdefs.h <<_ACEOF
21208 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
21209 _ACEOF
21210
21211
21212 cat >>confdefs.h <<_ACEOF
21213 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
21214 _ACEOF
21215
21216
21217 cat >>confdefs.h <<_ACEOF
21218 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
21219 _ACEOF
21220
21221       #
21222       if test "$recvfrom_type_arg2" = "void"; then
21223
21224 cat >>confdefs.h <<_ACEOF
21225 #define RECVFROM_TYPE_ARG2_IS_VOID 1
21226 _ACEOF
21227
21228       fi
21229       if test "$recvfrom_type_arg5" = "void"; then
21230
21231 cat >>confdefs.h <<_ACEOF
21232 #define RECVFROM_TYPE_ARG5_IS_VOID 1
21233 _ACEOF
21234
21235       fi
21236       if test "$recvfrom_type_arg6" = "void"; then
21237
21238 cat >>confdefs.h <<_ACEOF
21239 #define RECVFROM_TYPE_ARG6_IS_VOID 1
21240 _ACEOF
21241
21242       fi
21243       #
21244       case $prev_sh_opts in
21245         *f*)
21246           ;;
21247         *)
21248           set +f
21249           ;;
21250       esac
21251       #
21252
21253 cat >>confdefs.h <<_ACEOF
21254 #define HAVE_RECVFROM 1
21255 _ACEOF
21256
21257       ac_cv_func_recvfrom="yes"
21258     fi
21259   else
21260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
21261 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
21262     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
21263 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
21264   fi
21265
21266
21267       for ac_header in sys/types.h sys/socket.h
21268 do :
21269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21272   cat >>confdefs.h <<_ACEOF
21273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21274 _ACEOF
21275
21276 fi
21277
21278 done
21279
21280   #
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
21282 $as_echo_n "checking for send... " >&6; }
21283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h.  */
21285
21286
21287 #undef inline
21288 #ifdef HAVE_WINDOWS_H
21289 #ifndef WIN32_LEAN_AND_MEAN
21290 #define WIN32_LEAN_AND_MEAN
21291 #endif
21292 #include <windows.h>
21293 #ifdef HAVE_WINSOCK2_H
21294 #include <winsock2.h>
21295 #else
21296 #ifdef HAVE_WINSOCK_H
21297 #include <winsock.h>
21298 #endif
21299 #endif
21300 #else
21301 #ifdef HAVE_SYS_TYPES_H
21302 #include <sys/types.h>
21303 #endif
21304 #ifdef HAVE_SYS_SOCKET_H
21305 #include <sys/socket.h>
21306 #endif
21307 #endif
21308
21309 int main (void)
21310 {
21311
21312       send(0, 0, 0, 0);
21313
21314  ;
21315  return 0;
21316 }
21317
21318 _ACEOF
21319 if ac_fn_c_try_link "$LINENO"; then :
21320
21321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21322 $as_echo "yes" >&6; }
21323     curl_cv_send="yes"
21324
21325 else
21326
21327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21328 $as_echo "no" >&6; }
21329     curl_cv_send="no"
21330
21331 fi
21332 rm -f core conftest.err conftest.$ac_objext \
21333     conftest$ac_exeext conftest.$ac_ext
21334   #
21335   if test "$curl_cv_send" = "yes"; then
21336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
21337 $as_echo_n "checking types of args and return type for send... " >&6; }
21338 if ${curl_cv_func_send_args+:} false; then :
21339   $as_echo_n "(cached) " >&6
21340 else
21341
21342       curl_cv_func_send_args="unknown"
21343       for send_retv in 'int' 'ssize_t'; do
21344         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
21345           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
21346             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
21347               for send_arg4 in 'int' 'unsigned int'; do
21348                 if test "$curl_cv_func_send_args" = "unknown"; then
21349                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h.  */
21351
21352
21353 #undef inline
21354 #ifdef HAVE_WINDOWS_H
21355 #ifndef WIN32_LEAN_AND_MEAN
21356 #define WIN32_LEAN_AND_MEAN
21357 #endif
21358 #include <windows.h>
21359 #ifdef HAVE_WINSOCK2_H
21360 #include <winsock2.h>
21361 #else
21362 #ifdef HAVE_WINSOCK_H
21363 #include <winsock.h>
21364 #endif
21365 #endif
21366 #define SENDCALLCONV PASCAL
21367 #else
21368 #ifdef HAVE_SYS_TYPES_H
21369 #include <sys/types.h>
21370 #endif
21371 #ifdef HAVE_SYS_SOCKET_H
21372 #include <sys/socket.h>
21373 #endif
21374 #define SENDCALLCONV
21375 #endif
21376                       extern $send_retv SENDCALLCONV
21377                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
21378
21379 int main (void)
21380 {
21381
21382                       $send_arg1 s=0;
21383                       $send_arg3 len=0;
21384                       $send_arg4 flags=0;
21385                       $send_retv res = send(s, 0, len, flags);
21386
21387  ;
21388  return 0;
21389 }
21390
21391 _ACEOF
21392 if ac_fn_c_try_compile "$LINENO"; then :
21393
21394                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
21395
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398                 fi
21399               done
21400             done
21401           done
21402         done
21403       done
21404
21405 fi
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
21407 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
21408     if test "$curl_cv_func_send_args" = "unknown"; then
21409       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
21410     else
21411       send_prev_IFS=$IFS; IFS=','
21412       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
21413       IFS=$send_prev_IFS
21414       shift
21415       #
21416       send_qual_type_arg2=$2
21417       #
21418
21419 cat >>confdefs.h <<_ACEOF
21420 #define SEND_TYPE_ARG1 $1
21421 _ACEOF
21422
21423
21424 cat >>confdefs.h <<_ACEOF
21425 #define SEND_TYPE_ARG3 $3
21426 _ACEOF
21427
21428
21429 cat >>confdefs.h <<_ACEOF
21430 #define SEND_TYPE_ARG4 $4
21431 _ACEOF
21432
21433
21434 cat >>confdefs.h <<_ACEOF
21435 #define SEND_TYPE_RETV $5
21436 _ACEOF
21437
21438       #
21439       prev_sh_opts=$-
21440       #
21441       case $prev_sh_opts in
21442         *f*)
21443           ;;
21444         *)
21445           set -f
21446           ;;
21447       esac
21448       #
21449       case "$send_qual_type_arg2" in
21450         const*)
21451           send_qual_arg2=const
21452           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
21453         ;;
21454         *)
21455           send_qual_arg2=
21456           send_type_arg2=$send_qual_type_arg2
21457         ;;
21458       esac
21459       #
21460
21461 cat >>confdefs.h <<_ACEOF
21462 #define SEND_QUAL_ARG2 $send_qual_arg2
21463 _ACEOF
21464
21465
21466 cat >>confdefs.h <<_ACEOF
21467 #define SEND_TYPE_ARG2 $send_type_arg2
21468 _ACEOF
21469
21470       #
21471       case $prev_sh_opts in
21472         *f*)
21473           ;;
21474         *)
21475           set +f
21476           ;;
21477       esac
21478       #
21479
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_SEND 1
21482 _ACEOF
21483
21484       ac_cv_func_send="yes"
21485     fi
21486   else
21487     as_fn_error $? "Unable to link function send" "$LINENO" 5
21488   fi
21489
21490
21491   for ac_header in sys/types.h sys/socket.h
21492 do :
21493   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21496   cat >>confdefs.h <<_ACEOF
21497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21498 _ACEOF
21499
21500 fi
21501
21502 done
21503
21504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21505 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21506 if ${ac_cv_msg_nosignal+:} false; then :
21507   $as_echo_n "(cached) " >&6
21508 else
21509
21510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h.  */
21512
21513
21514 #undef inline
21515 #ifdef HAVE_WINDOWS_H
21516 #ifndef WIN32_LEAN_AND_MEAN
21517 #define WIN32_LEAN_AND_MEAN
21518 #endif
21519 #include <windows.h>
21520 #ifdef HAVE_WINSOCK2_H
21521 #include <winsock2.h>
21522 #else
21523 #ifdef HAVE_WINSOCK_H
21524 #include <winsock.h>
21525 #endif
21526 #endif
21527 #else
21528 #ifdef HAVE_SYS_TYPES_H
21529 #include <sys/types.h>
21530 #endif
21531 #ifdef HAVE_SYS_SOCKET_H
21532 #include <sys/socket.h>
21533 #endif
21534 #endif
21535
21536 int main (void)
21537 {
21538
21539         int flag=MSG_NOSIGNAL;
21540
21541  ;
21542  return 0;
21543 }
21544
21545 _ACEOF
21546 if ac_fn_c_try_compile "$LINENO"; then :
21547
21548       ac_cv_msg_nosignal="yes"
21549
21550 else
21551
21552       ac_cv_msg_nosignal="no"
21553
21554 fi
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556
21557 fi
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
21559 $as_echo "$ac_cv_msg_nosignal" >&6; }
21560   case "$ac_cv_msg_nosignal" in
21561     yes)
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_MSG_NOSIGNAL 1
21565 _ACEOF
21566
21567       ;;
21568   esac
21569
21570
21571
21572 cares_includes_socket="\
21573 /* includes start */
21574 #ifdef HAVE_SYS_TYPES_H
21575 #  include <sys/types.h>
21576 #endif
21577 #ifdef HAVE_SOCKET_H
21578 #  include <socket.h>
21579 #endif
21580 /* includes end */"
21581   for ac_header in sys/types.h socket.h
21582 do :
21583   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21584 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
21585 "
21586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21587   cat >>confdefs.h <<_ACEOF
21588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21589 _ACEOF
21590
21591 fi
21592
21593 done
21594
21595
21596
21597       #
21598   tst_links_closesocket="unknown"
21599   tst_proto_closesocket="unknown"
21600   tst_compi_closesocket="unknown"
21601   tst_allow_closesocket="unknown"
21602   #
21603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
21604 $as_echo_n "checking if closesocket can be linked... " >&6; }
21605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h.  */
21607
21608
21609       $cares_includes_winsock2
21610       $cares_includes_socket
21611
21612 int main (void)
21613 {
21614
21615       if(0 != closesocket(0))
21616         return 1;
21617
21618  ;
21619  return 0;
21620 }
21621
21622 _ACEOF
21623 if ac_fn_c_try_link "$LINENO"; then :
21624
21625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21626 $as_echo "yes" >&6; }
21627     tst_links_closesocket="yes"
21628
21629 else
21630
21631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21632 $as_echo "no" >&6; }
21633     tst_links_closesocket="no"
21634
21635 fi
21636 rm -f core conftest.err conftest.$ac_objext \
21637     conftest$ac_exeext conftest.$ac_ext
21638   #
21639   if test "$tst_links_closesocket" = "yes"; then
21640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
21641 $as_echo_n "checking if closesocket is prototyped... " >&6; }
21642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21643 /* end confdefs.h.  */
21644
21645       $cares_includes_winsock2
21646       $cares_includes_socket
21647
21648 _ACEOF
21649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21650   $EGREP "closesocket" >/dev/null 2>&1; then :
21651
21652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21653 $as_echo "yes" >&6; }
21654       tst_proto_closesocket="yes"
21655
21656 else
21657
21658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21659 $as_echo "no" >&6; }
21660       tst_proto_closesocket="no"
21661
21662 fi
21663 rm -f conftest*
21664
21665   fi
21666   #
21667   if test "$tst_proto_closesocket" = "yes"; then
21668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
21669 $as_echo_n "checking if closesocket is compilable... " >&6; }
21670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21671 /* end confdefs.h.  */
21672
21673
21674         $cares_includes_winsock2
21675         $cares_includes_socket
21676
21677 int main (void)
21678 {
21679
21680         if(0 != closesocket(0))
21681           return 1;
21682
21683  ;
21684  return 0;
21685 }
21686
21687 _ACEOF
21688 if ac_fn_c_try_compile "$LINENO"; then :
21689
21690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21691 $as_echo "yes" >&6; }
21692       tst_compi_closesocket="yes"
21693
21694 else
21695
21696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698       tst_compi_closesocket="no"
21699
21700 fi
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702   fi
21703   #
21704   if test "$tst_compi_closesocket" = "yes"; then
21705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
21706 $as_echo_n "checking if closesocket usage allowed... " >&6; }
21707     if test "x$cares_disallow_closesocket" != "xyes"; then
21708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21710       tst_allow_closesocket="yes"
21711     else
21712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21714       tst_allow_closesocket="no"
21715     fi
21716   fi
21717   #
21718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
21719 $as_echo_n "checking if closesocket might be used... " >&6; }
21720   if test "$tst_links_closesocket" = "yes" &&
21721      test "$tst_proto_closesocket" = "yes" &&
21722      test "$tst_compi_closesocket" = "yes" &&
21723      test "$tst_allow_closesocket" = "yes"; then
21724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21725 $as_echo "yes" >&6; }
21726
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_CLOSESOCKET 1
21729 _ACEOF
21730
21731     ac_cv_func_closesocket="yes"
21732   else
21733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735     ac_cv_func_closesocket="no"
21736   fi
21737
21738
21739     #
21740   tst_links_closesocket_camel="unknown"
21741   tst_proto_closesocket_camel="unknown"
21742   tst_compi_closesocket_camel="unknown"
21743   tst_allow_closesocket_camel="unknown"
21744   #
21745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
21746 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
21747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748 /* end confdefs.h.  */
21749
21750
21751       $cares_includes_sys_socket
21752
21753 int main (void)
21754 {
21755
21756       if(0 != CloseSocket(0))
21757         return 1;
21758
21759  ;
21760  return 0;
21761 }
21762
21763 _ACEOF
21764 if ac_fn_c_try_link "$LINENO"; then :
21765
21766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21767 $as_echo "yes" >&6; }
21768     tst_links_closesocket_camel="yes"
21769
21770 else
21771
21772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21773 $as_echo "no" >&6; }
21774     tst_links_closesocket_camel="no"
21775
21776 fi
21777 rm -f core conftest.err conftest.$ac_objext \
21778     conftest$ac_exeext conftest.$ac_ext
21779   #
21780   if test "$tst_links_closesocket_camel" = "yes"; then
21781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
21782 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
21783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h.  */
21785
21786       $cares_includes_sys_socket
21787
21788 _ACEOF
21789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21790   $EGREP "CloseSocket" >/dev/null 2>&1; then :
21791
21792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21793 $as_echo "yes" >&6; }
21794       tst_proto_closesocket_camel="yes"
21795
21796 else
21797
21798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21799 $as_echo "no" >&6; }
21800       tst_proto_closesocket_camel="no"
21801
21802 fi
21803 rm -f conftest*
21804
21805   fi
21806   #
21807   if test "$tst_proto_closesocket_camel" = "yes"; then
21808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
21809 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
21810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h.  */
21812
21813
21814         $cares_includes_sys_socket
21815
21816 int main (void)
21817 {
21818
21819         if(0 != CloseSocket(0))
21820           return 1;
21821
21822  ;
21823  return 0;
21824 }
21825
21826 _ACEOF
21827 if ac_fn_c_try_compile "$LINENO"; then :
21828
21829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 $as_echo "yes" >&6; }
21831       tst_compi_closesocket_camel="yes"
21832
21833 else
21834
21835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21837       tst_compi_closesocket_camel="no"
21838
21839 fi
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841   fi
21842   #
21843   if test "$tst_compi_closesocket_camel" = "yes"; then
21844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
21845 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
21846     if test "x$cares_disallow_closesocket_camel" != "xyes"; then
21847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21848 $as_echo "yes" >&6; }
21849       tst_allow_closesocket_camel="yes"
21850     else
21851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21852 $as_echo "no" >&6; }
21853       tst_allow_closesocket_camel="no"
21854     fi
21855   fi
21856   #
21857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
21858 $as_echo_n "checking if CloseSocket might be used... " >&6; }
21859   if test "$tst_links_closesocket_camel" = "yes" &&
21860      test "$tst_proto_closesocket_camel" = "yes" &&
21861      test "$tst_compi_closesocket_camel" = "yes" &&
21862      test "$tst_allow_closesocket_camel" = "yes"; then
21863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21864 $as_echo "yes" >&6; }
21865
21866 cat >>confdefs.h <<_ACEOF
21867 #define HAVE_CLOSESOCKET_CAMEL 1
21868 _ACEOF
21869
21870     ac_cv_func_closesocket_camel="yes"
21871   else
21872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21873 $as_echo "no" >&6; }
21874     ac_cv_func_closesocket_camel="no"
21875   fi
21876
21877
21878         #
21879   tst_links_connect="unknown"
21880   tst_proto_connect="unknown"
21881   tst_compi_connect="unknown"
21882   tst_allow_connect="unknown"
21883   #
21884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
21885 $as_echo_n "checking if connect can be linked... " >&6; }
21886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h.  */
21888
21889
21890       $cares_includes_winsock2
21891       $cares_includes_sys_socket
21892       $cares_includes_socket
21893
21894 int main (void)
21895 {
21896
21897       if(0 != connect(0, 0, 0))
21898         return 1;
21899
21900  ;
21901  return 0;
21902 }
21903
21904 _ACEOF
21905 if ac_fn_c_try_link "$LINENO"; then :
21906
21907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21908 $as_echo "yes" >&6; }
21909     tst_links_connect="yes"
21910
21911 else
21912
21913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21914 $as_echo "no" >&6; }
21915     tst_links_connect="no"
21916
21917 fi
21918 rm -f core conftest.err conftest.$ac_objext \
21919     conftest$ac_exeext conftest.$ac_ext
21920   #
21921   if test "$tst_links_connect" = "yes"; then
21922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
21923 $as_echo_n "checking if connect is prototyped... " >&6; }
21924     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h.  */
21926
21927       $cares_includes_winsock2
21928       $cares_includes_sys_socket
21929       $cares_includes_socket
21930
21931 _ACEOF
21932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21933   $EGREP "connect" >/dev/null 2>&1; then :
21934
21935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 $as_echo "yes" >&6; }
21937       tst_proto_connect="yes"
21938
21939 else
21940
21941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943       tst_proto_connect="no"
21944
21945 fi
21946 rm -f conftest*
21947
21948   fi
21949   #
21950   if test "$tst_proto_connect" = "yes"; then
21951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
21952 $as_echo_n "checking if connect is compilable... " >&6; }
21953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h.  */
21955
21956
21957         $cares_includes_winsock2
21958         $cares_includes_sys_socket
21959         $cares_includes_socket
21960
21961 int main (void)
21962 {
21963
21964         if(0 != connect(0, 0, 0))
21965           return 1;
21966
21967  ;
21968  return 0;
21969 }
21970
21971 _ACEOF
21972 if ac_fn_c_try_compile "$LINENO"; then :
21973
21974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21975 $as_echo "yes" >&6; }
21976       tst_compi_connect="yes"
21977
21978 else
21979
21980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 $as_echo "no" >&6; }
21982       tst_compi_connect="no"
21983
21984 fi
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986   fi
21987   #
21988   if test "$tst_compi_connect" = "yes"; then
21989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
21990 $as_echo_n "checking if connect usage allowed... " >&6; }
21991     if test "x$cares_disallow_connect" != "xyes"; then
21992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21993 $as_echo "yes" >&6; }
21994       tst_allow_connect="yes"
21995     else
21996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21997 $as_echo "no" >&6; }
21998       tst_allow_connect="no"
21999     fi
22000   fi
22001   #
22002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
22003 $as_echo_n "checking if connect might be used... " >&6; }
22004   if test "$tst_links_connect" = "yes" &&
22005      test "$tst_proto_connect" = "yes" &&
22006      test "$tst_compi_connect" = "yes" &&
22007      test "$tst_allow_connect" = "yes"; then
22008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22009 $as_echo "yes" >&6; }
22010
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_CONNECT 1
22013 _ACEOF
22014
22015     ac_cv_func_connect="yes"
22016   else
22017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019     ac_cv_func_connect="no"
22020   fi
22021
22022
22023 cares_includes_fcntl="\
22024 /* includes start */
22025 #ifdef HAVE_SYS_TYPES_H
22026 #  include <sys/types.h>
22027 #endif
22028 #ifdef HAVE_UNISTD_H
22029 #  include <unistd.h>
22030 #endif
22031 #ifdef HAVE_FCNTL_H
22032 #  include <fcntl.h>
22033 #endif
22034 /* includes end */"
22035   for ac_header in sys/types.h unistd.h fcntl.h
22036 do :
22037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
22039 "
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041   cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043 _ACEOF
22044
22045 fi
22046
22047 done
22048
22049
22050
22051     #
22052   tst_links_fcntl="unknown"
22053   tst_proto_fcntl="unknown"
22054   tst_compi_fcntl="unknown"
22055   tst_allow_fcntl="unknown"
22056   #
22057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
22058 $as_echo_n "checking if fcntl can be linked... " >&6; }
22059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h.  */
22061
22062
22063 #define fcntl innocuous_fcntl
22064 #ifdef __STDC__
22065 # include <limits.h>
22066 #else
22067 # include <assert.h>
22068 #endif
22069 #undef fcntl
22070 #ifdef __cplusplus
22071 extern "C"
22072 #endif
22073 char fcntl ();
22074 #if defined __stub_fcntl || defined __stub___fcntl
22075 choke me
22076 #endif
22077
22078 int main (void)
22079 {
22080 return fcntl ();
22081  ;
22082  return 0;
22083 }
22084
22085 _ACEOF
22086 if ac_fn_c_try_link "$LINENO"; then :
22087
22088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22089 $as_echo "yes" >&6; }
22090     tst_links_fcntl="yes"
22091
22092 else
22093
22094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22096     tst_links_fcntl="no"
22097
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext \
22100     conftest$ac_exeext conftest.$ac_ext
22101   #
22102   if test "$tst_links_fcntl" = "yes"; then
22103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
22104 $as_echo_n "checking if fcntl is prototyped... " >&6; }
22105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h.  */
22107
22108       $cares_includes_fcntl
22109
22110 _ACEOF
22111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22112   $EGREP "fcntl" >/dev/null 2>&1; then :
22113
22114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22115 $as_echo "yes" >&6; }
22116       tst_proto_fcntl="yes"
22117
22118 else
22119
22120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22121 $as_echo "no" >&6; }
22122       tst_proto_fcntl="no"
22123
22124 fi
22125 rm -f conftest*
22126
22127   fi
22128   #
22129   if test "$tst_proto_fcntl" = "yes"; then
22130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
22131 $as_echo_n "checking if fcntl is compilable... " >&6; }
22132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22133 /* end confdefs.h.  */
22134
22135
22136         $cares_includes_fcntl
22137
22138 int main (void)
22139 {
22140
22141         if(0 != fcntl(0, 0, 0))
22142           return 1;
22143
22144  ;
22145  return 0;
22146 }
22147
22148 _ACEOF
22149 if ac_fn_c_try_compile "$LINENO"; then :
22150
22151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22152 $as_echo "yes" >&6; }
22153       tst_compi_fcntl="yes"
22154
22155 else
22156
22157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22159       tst_compi_fcntl="no"
22160
22161 fi
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163   fi
22164   #
22165   if test "$tst_compi_fcntl" = "yes"; then
22166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
22167 $as_echo_n "checking if fcntl usage allowed... " >&6; }
22168     if test "x$cares_disallow_fcntl" != "xyes"; then
22169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22170 $as_echo "yes" >&6; }
22171       tst_allow_fcntl="yes"
22172     else
22173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175       tst_allow_fcntl="no"
22176     fi
22177   fi
22178   #
22179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
22180 $as_echo_n "checking if fcntl might be used... " >&6; }
22181   if test "$tst_links_fcntl" = "yes" &&
22182      test "$tst_proto_fcntl" = "yes" &&
22183      test "$tst_compi_fcntl" = "yes" &&
22184      test "$tst_allow_fcntl" = "yes"; then
22185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22186 $as_echo "yes" >&6; }
22187
22188 cat >>confdefs.h <<_ACEOF
22189 #define HAVE_FCNTL 1
22190 _ACEOF
22191
22192     ac_cv_func_fcntl="yes"
22193
22194   #
22195   tst_compi_fcntl_o_nonblock="unknown"
22196   tst_allow_fcntl_o_nonblock="unknown"
22197   #
22198   case $host_os in
22199     sunos4* | aix3* | beos*)
22200             cares_disallow_fcntl_o_nonblock="yes"
22201       ;;
22202   esac
22203   #
22204   if test "$ac_cv_func_fcntl" = "yes"; then
22205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
22206 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
22207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h.  */
22209
22210
22211         $cares_includes_fcntl
22212
22213 int main (void)
22214 {
22215
22216         int flags = 0;
22217         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
22218           return 1;
22219
22220  ;
22221  return 0;
22222 }
22223
22224 _ACEOF
22225 if ac_fn_c_try_compile "$LINENO"; then :
22226
22227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22228 $as_echo "yes" >&6; }
22229       tst_compi_fcntl_o_nonblock="yes"
22230
22231 else
22232
22233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234 $as_echo "no" >&6; }
22235       tst_compi_fcntl_o_nonblock="no"
22236
22237 fi
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239   fi
22240   #
22241   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
22242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
22243 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
22244     if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
22245       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22246 $as_echo "yes" >&6; }
22247       tst_allow_fcntl_o_nonblock="yes"
22248     else
22249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22250 $as_echo "no" >&6; }
22251       tst_allow_fcntl_o_nonblock="no"
22252     fi
22253   fi
22254   #
22255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
22256 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
22257   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
22258      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
22259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22260 $as_echo "yes" >&6; }
22261
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_FCNTL_O_NONBLOCK 1
22264 _ACEOF
22265
22266     ac_cv_func_fcntl_o_nonblock="yes"
22267   else
22268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270     ac_cv_func_fcntl_o_nonblock="no"
22271   fi
22272
22273   else
22274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22276     ac_cv_func_fcntl="no"
22277   fi
22278
22279
22280 cares_includes_netdb="\
22281 /* includes start */
22282 #ifdef HAVE_SYS_TYPES_H
22283 #  include <sys/types.h>
22284 #endif
22285 #ifdef HAVE_NETDB_H
22286 #  include <netdb.h>
22287 #endif
22288 /* includes end */"
22289   for ac_header in sys/types.h netdb.h
22290 do :
22291   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22292 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
22293 "
22294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22295   cat >>confdefs.h <<_ACEOF
22296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22297 _ACEOF
22298
22299 fi
22300
22301 done
22302
22303
22304
22305         #
22306   tst_links_freeaddrinfo="unknown"
22307   tst_proto_freeaddrinfo="unknown"
22308   tst_compi_freeaddrinfo="unknown"
22309   tst_allow_freeaddrinfo="unknown"
22310   #
22311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
22312 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
22313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h.  */
22315
22316
22317       $cares_includes_ws2tcpip
22318       $cares_includes_sys_socket
22319       $cares_includes_netdb
22320
22321 int main (void)
22322 {
22323
22324       freeaddrinfo(0);
22325
22326  ;
22327  return 0;
22328 }
22329
22330 _ACEOF
22331 if ac_fn_c_try_link "$LINENO"; then :
22332
22333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22334 $as_echo "yes" >&6; }
22335     tst_links_freeaddrinfo="yes"
22336
22337 else
22338
22339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 $as_echo "no" >&6; }
22341     tst_links_freeaddrinfo="no"
22342
22343 fi
22344 rm -f core conftest.err conftest.$ac_objext \
22345     conftest$ac_exeext conftest.$ac_ext
22346   #
22347   if test "$tst_links_freeaddrinfo" = "yes"; then
22348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
22349 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
22350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351 /* end confdefs.h.  */
22352
22353       $cares_includes_ws2tcpip
22354       $cares_includes_sys_socket
22355       $cares_includes_netdb
22356
22357 _ACEOF
22358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22359   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
22360
22361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22362 $as_echo "yes" >&6; }
22363       tst_proto_freeaddrinfo="yes"
22364
22365 else
22366
22367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22369       tst_proto_freeaddrinfo="no"
22370
22371 fi
22372 rm -f conftest*
22373
22374   fi
22375   #
22376   if test "$tst_proto_freeaddrinfo" = "yes"; then
22377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
22378 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
22379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h.  */
22381
22382
22383         $cares_includes_ws2tcpip
22384         $cares_includes_sys_socket
22385         $cares_includes_netdb
22386
22387 int main (void)
22388 {
22389
22390         freeaddrinfo(0);
22391
22392  ;
22393  return 0;
22394 }
22395
22396 _ACEOF
22397 if ac_fn_c_try_compile "$LINENO"; then :
22398
22399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22400 $as_echo "yes" >&6; }
22401       tst_compi_freeaddrinfo="yes"
22402
22403 else
22404
22405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22406 $as_echo "no" >&6; }
22407       tst_compi_freeaddrinfo="no"
22408
22409 fi
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411   fi
22412   #
22413   if test "$tst_compi_freeaddrinfo" = "yes"; then
22414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
22415 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
22416     if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
22417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22418 $as_echo "yes" >&6; }
22419       tst_allow_freeaddrinfo="yes"
22420     else
22421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423       tst_allow_freeaddrinfo="no"
22424     fi
22425   fi
22426   #
22427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
22428 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
22429   if test "$tst_links_freeaddrinfo" = "yes" &&
22430      test "$tst_proto_freeaddrinfo" = "yes" &&
22431      test "$tst_compi_freeaddrinfo" = "yes" &&
22432      test "$tst_allow_freeaddrinfo" = "yes"; then
22433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434 $as_echo "yes" >&6; }
22435
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_FREEADDRINFO 1
22438 _ACEOF
22439
22440     ac_cv_func_freeaddrinfo="yes"
22441   else
22442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22443 $as_echo "no" >&6; }
22444     ac_cv_func_freeaddrinfo="no"
22445   fi
22446
22447
22448 cares_includes_stdlib="\
22449 /* includes start */
22450 #ifdef HAVE_SYS_TYPES_H
22451 #  include <sys/types.h>
22452 #endif
22453 #ifdef HAVE_STDLIB_H
22454 #  include <stdlib.h>
22455 #endif
22456 /* includes end */"
22457   for ac_header in sys/types.h stdlib.h
22458 do :
22459   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
22461 "
22462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22463   cat >>confdefs.h <<_ACEOF
22464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22465 _ACEOF
22466
22467 fi
22468
22469 done
22470
22471
22472
22473 cares_includes_string="\
22474 /* includes start */
22475 #ifdef HAVE_SYS_TYPES_H
22476 #  include <sys/types.h>
22477 #endif
22478 #ifdef HAVE_STRING_H
22479 #  include <string.h>
22480 #endif
22481 #ifdef HAVE_STRINGS_H
22482 #  include <strings.h>
22483 #endif
22484 /* includes end */"
22485   for ac_header in sys/types.h string.h strings.h
22486 do :
22487   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
22489 "
22490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22491   cat >>confdefs.h <<_ACEOF
22492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22493 _ACEOF
22494
22495 fi
22496
22497 done
22498
22499
22500
22501               #
22502   tst_links_getaddrinfo="unknown"
22503   tst_proto_getaddrinfo="unknown"
22504   tst_compi_getaddrinfo="unknown"
22505   tst_works_getaddrinfo="unknown"
22506   tst_allow_getaddrinfo="unknown"
22507   tst_tsafe_getaddrinfo="unknown"
22508   #
22509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
22510 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
22511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22512 /* end confdefs.h.  */
22513
22514
22515       $cares_includes_ws2tcpip
22516       $cares_includes_sys_socket
22517       $cares_includes_netdb
22518
22519 int main (void)
22520 {
22521
22522       if(0 != getaddrinfo(0, 0, 0, 0))
22523         return 1;
22524
22525  ;
22526  return 0;
22527 }
22528
22529 _ACEOF
22530 if ac_fn_c_try_link "$LINENO"; then :
22531
22532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22533 $as_echo "yes" >&6; }
22534     tst_links_getaddrinfo="yes"
22535
22536 else
22537
22538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22539 $as_echo "no" >&6; }
22540     tst_links_getaddrinfo="no"
22541
22542 fi
22543 rm -f core conftest.err conftest.$ac_objext \
22544     conftest$ac_exeext conftest.$ac_ext
22545   #
22546   if test "$tst_links_getaddrinfo" = "yes"; then
22547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
22548 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
22549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550 /* end confdefs.h.  */
22551
22552       $cares_includes_ws2tcpip
22553       $cares_includes_sys_socket
22554       $cares_includes_netdb
22555
22556 _ACEOF
22557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22558   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
22559
22560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22561 $as_echo "yes" >&6; }
22562       tst_proto_getaddrinfo="yes"
22563
22564 else
22565
22566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22567 $as_echo "no" >&6; }
22568       tst_proto_getaddrinfo="no"
22569
22570 fi
22571 rm -f conftest*
22572
22573   fi
22574   #
22575   if test "$tst_proto_getaddrinfo" = "yes"; then
22576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
22577 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
22578     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h.  */
22580
22581
22582         $cares_includes_ws2tcpip
22583         $cares_includes_sys_socket
22584         $cares_includes_netdb
22585
22586 int main (void)
22587 {
22588
22589         if(0 != getaddrinfo(0, 0, 0, 0))
22590           return 1;
22591
22592  ;
22593  return 0;
22594 }
22595
22596 _ACEOF
22597 if ac_fn_c_try_compile "$LINENO"; then :
22598
22599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22600 $as_echo "yes" >&6; }
22601       tst_compi_getaddrinfo="yes"
22602
22603 else
22604
22605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22606 $as_echo "no" >&6; }
22607       tst_compi_getaddrinfo="no"
22608
22609 fi
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611   fi
22612   #
22613     if test "x$cross_compiling" != "xyes" &&
22614     test "$tst_compi_getaddrinfo" = "yes"; then
22615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
22616 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
22617     if test "$cross_compiling" = yes; then :
22618   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22620 as_fn_error $? "cannot run test program while cross compiling
22621 See \`config.log' for more details" "$LINENO" 5; }
22622 else
22623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h.  */
22625
22626
22627         $cares_includes_ws2tcpip
22628         $cares_includes_stdlib
22629         $cares_includes_string
22630         $cares_includes_sys_socket
22631         $cares_includes_netdb
22632
22633 int main (void)
22634 {
22635
22636         struct addrinfo hints;
22637         struct addrinfo *ai = 0;
22638         int error;
22639
22640         memset(&hints, 0, sizeof(hints));
22641         hints.ai_flags = AI_NUMERICHOST;
22642         hints.ai_family = AF_UNSPEC;
22643         hints.ai_socktype = SOCK_STREAM;
22644         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
22645         if(error || !ai)
22646           exit(1); /* fail */
22647         else
22648           exit(0);
22649
22650  ;
22651  return 0;
22652 }
22653
22654 _ACEOF
22655 if ac_fn_c_try_run "$LINENO"; then :
22656
22657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22658 $as_echo "yes" >&6; }
22659       tst_works_getaddrinfo="yes"
22660
22661 else
22662
22663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664 $as_echo "no" >&6; }
22665       tst_works_getaddrinfo="no"
22666
22667 fi
22668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22669   conftest.$ac_objext conftest.beam conftest.$ac_ext
22670 fi
22671
22672   fi
22673   #
22674   if test "$tst_compi_getaddrinfo" = "yes" &&
22675     test "$tst_works_getaddrinfo" != "no"; then
22676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
22677 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
22678     if test "x$cares_disallow_getaddrinfo" != "xyes"; then
22679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22680 $as_echo "yes" >&6; }
22681       tst_allow_getaddrinfo="yes"
22682     else
22683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685       tst_allow_getaddrinfo="no"
22686     fi
22687   fi
22688   #
22689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
22690 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
22691   if test "$tst_links_getaddrinfo" = "yes" &&
22692      test "$tst_proto_getaddrinfo" = "yes" &&
22693      test "$tst_compi_getaddrinfo" = "yes" &&
22694      test "$tst_allow_getaddrinfo" = "yes" &&
22695      test "$tst_works_getaddrinfo" != "no"; then
22696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22697 $as_echo "yes" >&6; }
22698
22699 cat >>confdefs.h <<_ACEOF
22700 #define HAVE_GETADDRINFO 1
22701 _ACEOF
22702
22703     ac_cv_func_getaddrinfo="yes"
22704   else
22705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706 $as_echo "no" >&6; }
22707     ac_cv_func_getaddrinfo="no"
22708     ac_cv_func_getaddrinfo_threadsafe="no"
22709   fi
22710   #
22711   if test "$ac_cv_func_getaddrinfo" = "yes"; then
22712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
22713 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
22714     case $host_os in
22715       aix[1234].* | aix5.[01].*)
22716                 tst_tsafe_getaddrinfo="no"
22717         ;;
22718       aix*)
22719                 tst_tsafe_getaddrinfo="yes"
22720         ;;
22721       darwin[12345].*)
22722                 tst_tsafe_getaddrinfo="no"
22723         ;;
22724       darwin*)
22725                 tst_tsafe_getaddrinfo="yes"
22726         ;;
22727       freebsd[1234].* | freebsd5.[1234]*)
22728                 tst_tsafe_getaddrinfo="no"
22729         ;;
22730       freebsd*)
22731                 tst_tsafe_getaddrinfo="yes"
22732         ;;
22733       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
22734                 tst_tsafe_getaddrinfo="no"
22735         ;;
22736       hpux*)
22737                 tst_tsafe_getaddrinfo="yes"
22738         ;;
22739       netbsd[123].*)
22740                 tst_tsafe_getaddrinfo="no"
22741         ;;
22742       netbsd*)
22743                 tst_tsafe_getaddrinfo="yes"
22744         ;;
22745       *bsd*)
22746                 tst_tsafe_getaddrinfo="no"
22747         ;;
22748       solaris2*)
22749                 tst_tsafe_getaddrinfo="yes"
22750         ;;
22751     esac
22752     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
22753        test "$ac_cv_native_windows" = "yes"; then
22754       tst_tsafe_getaddrinfo="yes"
22755     fi
22756     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
22757
22758
22759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760 /* end confdefs.h.  */
22761
22762
22763         $cares_includes_sys_socket
22764         $cares_includes_netdb
22765
22766 int main (void)
22767 {
22768 #ifdef h_errno
22769   return 0;
22770 #else
22771   force compilation error
22772 #endif
22773 }
22774
22775
22776 _ACEOF
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778
22779     tst_symbol_defined="yes"
22780
22781 else
22782
22783     tst_symbol_defined="no"
22784
22785 fi
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787   if test "$tst_symbol_defined" = "yes"; then
22788     curl_cv_have_def_h_errno=yes
22789
22790   else
22791     curl_cv_have_def_h_errno=no
22792
22793   fi
22794
22795       if test "$curl_cv_have_def_h_errno" = "yes"; then
22796         tst_h_errno_macro="yes"
22797       else
22798         tst_h_errno_macro="no"
22799       fi
22800       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h.  */
22802
22803
22804           $cares_includes_sys_socket
22805           $cares_includes_netdb
22806
22807 int main (void)
22808 {
22809
22810           h_errno = 2;
22811           if(0 != h_errno)
22812             return 1;
22813
22814  ;
22815  return 0;
22816 }
22817
22818 _ACEOF
22819 if ac_fn_c_try_compile "$LINENO"; then :
22820
22821         tst_h_errno_modifiable_lvalue="yes"
22822
22823 else
22824
22825         tst_h_errno_modifiable_lvalue="no"
22826
22827 fi
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h.  */
22831
22832
22833
22834 int main (void)
22835 {
22836
22837 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
22838           return 0;
22839 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
22840           return 0;
22841 #else
22842           force compilation error
22843 #endif
22844
22845  ;
22846  return 0;
22847 }
22848
22849 _ACEOF
22850 if ac_fn_c_try_compile "$LINENO"; then :
22851
22852         tst_h_errno_sbs_issue_7="yes"
22853
22854 else
22855
22856         tst_h_errno_sbs_issue_7="no"
22857
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860       if test "$tst_h_errno_macro" = "no" &&
22861          test "$tst_h_errno_modifiable_lvalue" = "no" &&
22862          test "$tst_h_errno_sbs_issue_7" = "no"; then
22863         tst_tsafe_getaddrinfo="no"
22864       else
22865         tst_tsafe_getaddrinfo="yes"
22866       fi
22867     fi
22868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
22869 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
22870     if test "$tst_tsafe_getaddrinfo" = "yes"; then
22871
22872 cat >>confdefs.h <<_ACEOF
22873 #define HAVE_GETADDRINFO_THREADSAFE 1
22874 _ACEOF
22875
22876       ac_cv_func_getaddrinfo_threadsafe="yes"
22877     else
22878       ac_cv_func_getaddrinfo_threadsafe="no"
22879     fi
22880   fi
22881
22882
22883     #
22884   tst_links_getenv="unknown"
22885   tst_proto_getenv="unknown"
22886   tst_compi_getenv="unknown"
22887   tst_allow_getenv="unknown"
22888   #
22889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
22890 $as_echo_n "checking if getenv can be linked... " >&6; }
22891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h.  */
22893
22894
22895 #define getenv innocuous_getenv
22896 #ifdef __STDC__
22897 # include <limits.h>
22898 #else
22899 # include <assert.h>
22900 #endif
22901 #undef getenv
22902 #ifdef __cplusplus
22903 extern "C"
22904 #endif
22905 char getenv ();
22906 #if defined __stub_getenv || defined __stub___getenv
22907 choke me
22908 #endif
22909
22910 int main (void)
22911 {
22912 return getenv ();
22913  ;
22914  return 0;
22915 }
22916
22917 _ACEOF
22918 if ac_fn_c_try_link "$LINENO"; then :
22919
22920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22921 $as_echo "yes" >&6; }
22922     tst_links_getenv="yes"
22923
22924 else
22925
22926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22927 $as_echo "no" >&6; }
22928     tst_links_getenv="no"
22929
22930 fi
22931 rm -f core conftest.err conftest.$ac_objext \
22932     conftest$ac_exeext conftest.$ac_ext
22933   #
22934   if test "$tst_links_getenv" = "yes"; then
22935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
22936 $as_echo_n "checking if getenv is prototyped... " >&6; }
22937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h.  */
22939
22940       $cares_includes_stdlib
22941
22942 _ACEOF
22943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22944   $EGREP "getenv" >/dev/null 2>&1; then :
22945
22946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22947 $as_echo "yes" >&6; }
22948       tst_proto_getenv="yes"
22949
22950 else
22951
22952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22954       tst_proto_getenv="no"
22955
22956 fi
22957 rm -f conftest*
22958
22959   fi
22960   #
22961   if test "$tst_proto_getenv" = "yes"; then
22962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
22963 $as_echo_n "checking if getenv is compilable... " >&6; }
22964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965 /* end confdefs.h.  */
22966
22967
22968         $cares_includes_stdlib
22969
22970 int main (void)
22971 {
22972
22973         if(0 != getenv(0))
22974           return 1;
22975
22976  ;
22977  return 0;
22978 }
22979
22980 _ACEOF
22981 if ac_fn_c_try_compile "$LINENO"; then :
22982
22983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22984 $as_echo "yes" >&6; }
22985       tst_compi_getenv="yes"
22986
22987 else
22988
22989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22990 $as_echo "no" >&6; }
22991       tst_compi_getenv="no"
22992
22993 fi
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995   fi
22996   #
22997   if test "$tst_compi_getenv" = "yes"; then
22998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
22999 $as_echo_n "checking if getenv usage allowed... " >&6; }
23000     if test "x$cares_disallow_getenv" != "xyes"; then
23001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23002 $as_echo "yes" >&6; }
23003       tst_allow_getenv="yes"
23004     else
23005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23006 $as_echo "no" >&6; }
23007       tst_allow_getenv="no"
23008     fi
23009   fi
23010   #
23011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
23012 $as_echo_n "checking if getenv might be used... " >&6; }
23013   if test "$tst_links_getenv" = "yes" &&
23014      test "$tst_proto_getenv" = "yes" &&
23015      test "$tst_compi_getenv" = "yes" &&
23016      test "$tst_allow_getenv" = "yes"; then
23017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23018 $as_echo "yes" >&6; }
23019
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_GETENV 1
23022 _ACEOF
23023
23024     ac_cv_func_getenv="yes"
23025   else
23026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23027 $as_echo "no" >&6; }
23028     ac_cv_func_getenv="no"
23029   fi
23030
23031
23032       #
23033   tst_links_gethostbyaddr="unknown"
23034   tst_proto_gethostbyaddr="unknown"
23035   tst_compi_gethostbyaddr="unknown"
23036   tst_allow_gethostbyaddr="unknown"
23037   #
23038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
23039 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
23040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h.  */
23042
23043
23044       $cares_includes_winsock2
23045       $cares_includes_netdb
23046
23047 int main (void)
23048 {
23049
23050       if(0 != gethostbyaddr(0, 0, 0))
23051         return 1;
23052
23053  ;
23054  return 0;
23055 }
23056
23057 _ACEOF
23058 if ac_fn_c_try_link "$LINENO"; then :
23059
23060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23061 $as_echo "yes" >&6; }
23062     tst_links_gethostbyaddr="yes"
23063
23064 else
23065
23066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23067 $as_echo "no" >&6; }
23068     tst_links_gethostbyaddr="no"
23069
23070 fi
23071 rm -f core conftest.err conftest.$ac_objext \
23072     conftest$ac_exeext conftest.$ac_ext
23073   #
23074   if test "$tst_links_gethostbyaddr" = "yes"; then
23075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
23076 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
23077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h.  */
23079
23080       $cares_includes_winsock2
23081       $cares_includes_netdb
23082
23083 _ACEOF
23084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23085   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
23086
23087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23088 $as_echo "yes" >&6; }
23089       tst_proto_gethostbyaddr="yes"
23090
23091 else
23092
23093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 $as_echo "no" >&6; }
23095       tst_proto_gethostbyaddr="no"
23096
23097 fi
23098 rm -f conftest*
23099
23100   fi
23101   #
23102   if test "$tst_proto_gethostbyaddr" = "yes"; then
23103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
23104 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
23105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h.  */
23107
23108
23109         $cares_includes_winsock2
23110         $cares_includes_netdb
23111
23112 int main (void)
23113 {
23114
23115         if(0 != gethostbyaddr(0, 0, 0))
23116           return 1;
23117
23118  ;
23119  return 0;
23120 }
23121
23122 _ACEOF
23123 if ac_fn_c_try_compile "$LINENO"; then :
23124
23125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23126 $as_echo "yes" >&6; }
23127       tst_compi_gethostbyaddr="yes"
23128
23129 else
23130
23131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132 $as_echo "no" >&6; }
23133       tst_compi_gethostbyaddr="no"
23134
23135 fi
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137   fi
23138   #
23139   if test "$tst_compi_gethostbyaddr" = "yes"; then
23140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
23141 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
23142     if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
23143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23144 $as_echo "yes" >&6; }
23145       tst_allow_gethostbyaddr="yes"
23146     else
23147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23148 $as_echo "no" >&6; }
23149       tst_allow_gethostbyaddr="no"
23150     fi
23151   fi
23152   #
23153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
23154 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
23155   if test "$tst_links_gethostbyaddr" = "yes" &&
23156      test "$tst_proto_gethostbyaddr" = "yes" &&
23157      test "$tst_compi_gethostbyaddr" = "yes" &&
23158      test "$tst_allow_gethostbyaddr" = "yes"; then
23159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160 $as_echo "yes" >&6; }
23161
23162 cat >>confdefs.h <<_ACEOF
23163 #define HAVE_GETHOSTBYADDR 1
23164 _ACEOF
23165
23166     ac_cv_func_gethostbyaddr="yes"
23167   else
23168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23170     ac_cv_func_gethostbyaddr="no"
23171   fi
23172
23173
23174       #
23175   tst_links_gethostbyname="unknown"
23176   tst_proto_gethostbyname="unknown"
23177   tst_compi_gethostbyname="unknown"
23178   tst_allow_gethostbyname="unknown"
23179   #
23180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
23181 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
23182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h.  */
23184
23185
23186       $cares_includes_winsock2
23187       $cares_includes_netdb
23188
23189 int main (void)
23190 {
23191
23192       if(0 != gethostbyname(0))
23193         return 1;
23194
23195  ;
23196  return 0;
23197 }
23198
23199 _ACEOF
23200 if ac_fn_c_try_link "$LINENO"; then :
23201
23202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23203 $as_echo "yes" >&6; }
23204     tst_links_gethostbyname="yes"
23205
23206 else
23207
23208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23209 $as_echo "no" >&6; }
23210     tst_links_gethostbyname="no"
23211
23212 fi
23213 rm -f core conftest.err conftest.$ac_objext \
23214     conftest$ac_exeext conftest.$ac_ext
23215   #
23216   if test "$tst_links_gethostbyname" = "yes"; then
23217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
23218 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
23219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23220 /* end confdefs.h.  */
23221
23222       $cares_includes_winsock2
23223       $cares_includes_netdb
23224
23225 _ACEOF
23226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23227   $EGREP "gethostbyname" >/dev/null 2>&1; then :
23228
23229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230 $as_echo "yes" >&6; }
23231       tst_proto_gethostbyname="yes"
23232
23233 else
23234
23235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23236 $as_echo "no" >&6; }
23237       tst_proto_gethostbyname="no"
23238
23239 fi
23240 rm -f conftest*
23241
23242   fi
23243   #
23244   if test "$tst_proto_gethostbyname" = "yes"; then
23245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
23246 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
23247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h.  */
23249
23250
23251         $cares_includes_winsock2
23252         $cares_includes_netdb
23253
23254 int main (void)
23255 {
23256
23257         if(0 != gethostbyname(0))
23258           return 1;
23259
23260  ;
23261  return 0;
23262 }
23263
23264 _ACEOF
23265 if ac_fn_c_try_compile "$LINENO"; then :
23266
23267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23268 $as_echo "yes" >&6; }
23269       tst_compi_gethostbyname="yes"
23270
23271 else
23272
23273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23274 $as_echo "no" >&6; }
23275       tst_compi_gethostbyname="no"
23276
23277 fi
23278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279   fi
23280   #
23281   if test "$tst_compi_gethostbyname" = "yes"; then
23282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
23283 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
23284     if test "x$cares_disallow_gethostbyname" != "xyes"; then
23285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23286 $as_echo "yes" >&6; }
23287       tst_allow_gethostbyname="yes"
23288     else
23289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23290 $as_echo "no" >&6; }
23291       tst_allow_gethostbyname="no"
23292     fi
23293   fi
23294   #
23295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
23296 $as_echo_n "checking if gethostbyname might be used... " >&6; }
23297   if test "$tst_links_gethostbyname" = "yes" &&
23298      test "$tst_proto_gethostbyname" = "yes" &&
23299      test "$tst_compi_gethostbyname" = "yes" &&
23300      test "$tst_allow_gethostbyname" = "yes"; then
23301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23302 $as_echo "yes" >&6; }
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_GETHOSTBYNAME 1
23306 _ACEOF
23307
23308     ac_cv_func_gethostbyname="yes"
23309   else
23310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23312     ac_cv_func_gethostbyname="no"
23313   fi
23314
23315
23316 cares_includes_unistd="\
23317 /* includes start */
23318 #ifdef HAVE_SYS_TYPES_H
23319 #  include <sys/types.h>
23320 #endif
23321 #ifdef HAVE_UNISTD_H
23322 #  include <unistd.h>
23323 #endif
23324 /* includes end */"
23325   for ac_header in sys/types.h unistd.h
23326 do :
23327   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23328 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
23329 "
23330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23331   cat >>confdefs.h <<_ACEOF
23332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23333 _ACEOF
23334
23335 fi
23336
23337 done
23338
23339
23340
23341         #
23342   tst_links_gethostname="unknown"
23343   tst_proto_gethostname="unknown"
23344   tst_compi_gethostname="unknown"
23345   tst_allow_gethostname="unknown"
23346   #
23347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
23348 $as_echo_n "checking if gethostname can be linked... " >&6; }
23349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h.  */
23351
23352
23353       $cares_includes_winsock2
23354       $cares_includes_unistd
23355
23356 int main (void)
23357 {
23358
23359       if(0 != gethostname(0, 0))
23360         return 1;
23361
23362  ;
23363  return 0;
23364 }
23365
23366 _ACEOF
23367 if ac_fn_c_try_link "$LINENO"; then :
23368
23369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23370 $as_echo "yes" >&6; }
23371     tst_links_gethostname="yes"
23372
23373 else
23374
23375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377     tst_links_gethostname="no"
23378
23379 fi
23380 rm -f core conftest.err conftest.$ac_objext \
23381     conftest$ac_exeext conftest.$ac_ext
23382   #
23383   if test "$tst_links_gethostname" = "yes"; then
23384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
23385 $as_echo_n "checking if gethostname is prototyped... " >&6; }
23386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23387 /* end confdefs.h.  */
23388
23389       $cares_includes_winsock2
23390       $cares_includes_unistd
23391
23392 _ACEOF
23393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23394   $EGREP "gethostname" >/dev/null 2>&1; then :
23395
23396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23397 $as_echo "yes" >&6; }
23398       tst_proto_gethostname="yes"
23399
23400 else
23401
23402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23404       tst_proto_gethostname="no"
23405
23406 fi
23407 rm -f conftest*
23408
23409   fi
23410   #
23411   if test "$tst_proto_gethostname" = "yes"; then
23412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
23413 $as_echo_n "checking if gethostname is compilable... " >&6; }
23414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h.  */
23416
23417
23418         $cares_includes_winsock2
23419         $cares_includes_unistd
23420
23421 int main (void)
23422 {
23423
23424         if(0 != gethostname(0, 0))
23425           return 1;
23426
23427  ;
23428  return 0;
23429 }
23430
23431 _ACEOF
23432 if ac_fn_c_try_compile "$LINENO"; then :
23433
23434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23435 $as_echo "yes" >&6; }
23436       tst_compi_gethostname="yes"
23437
23438 else
23439
23440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23441 $as_echo "no" >&6; }
23442       tst_compi_gethostname="no"
23443
23444 fi
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446   fi
23447   #
23448   if test "$tst_compi_gethostname" = "yes"; then
23449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
23450 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
23451     tst_gethostname_type_arg2="unknown"
23452     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
23453       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
23454         if test "$tst_gethostname_type_arg2" = "unknown"; then
23455           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h.  */
23457
23458
23459               $cares_includes_winsock2
23460               $cares_includes_unistd
23461               $cares_preprocess_callconv
23462               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
23463
23464 int main (void)
23465 {
23466
23467               if(0 != gethostname(0, 0))
23468                 return 1;
23469
23470  ;
23471  return 0;
23472 }
23473
23474 _ACEOF
23475 if ac_fn_c_try_compile "$LINENO"; then :
23476
23477             tst_gethostname_type_arg2="$tst_arg2"
23478
23479 fi
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481         fi
23482       done
23483     done
23484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
23485 $as_echo "$tst_gethostname_type_arg2" >&6; }
23486     if test "$tst_gethostname_type_arg2" != "unknown"; then
23487
23488 cat >>confdefs.h <<_ACEOF
23489 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
23490 _ACEOF
23491
23492     fi
23493   fi
23494   #
23495   if test "$tst_compi_gethostname" = "yes"; then
23496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
23497 $as_echo_n "checking if gethostname usage allowed... " >&6; }
23498     if test "x$cares_disallow_gethostname" != "xyes"; then
23499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23500 $as_echo "yes" >&6; }
23501       tst_allow_gethostname="yes"
23502     else
23503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23505       tst_allow_gethostname="no"
23506     fi
23507   fi
23508   #
23509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
23510 $as_echo_n "checking if gethostname might be used... " >&6; }
23511   if test "$tst_links_gethostname" = "yes" &&
23512      test "$tst_proto_gethostname" = "yes" &&
23513      test "$tst_compi_gethostname" = "yes" &&
23514      test "$tst_allow_gethostname" = "yes"; then
23515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23516 $as_echo "yes" >&6; }
23517
23518 cat >>confdefs.h <<_ACEOF
23519 #define HAVE_GETHOSTNAME 1
23520 _ACEOF
23521
23522     ac_cv_func_gethostname="yes"
23523   else
23524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526     ac_cv_func_gethostname="no"
23527   fi
23528
23529
23530     #
23531   tst_links_getservbyport_r="unknown"
23532   tst_proto_getservbyport_r="unknown"
23533   tst_compi_getservbyport_r="unknown"
23534   tst_allow_getservbyport_r="unknown"
23535   tst_nargs_getservbyport_r="unknown"
23536   #
23537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
23538 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
23539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h.  */
23541
23542
23543 #define getservbyport_r innocuous_getservbyport_r
23544 #ifdef __STDC__
23545 # include <limits.h>
23546 #else
23547 # include <assert.h>
23548 #endif
23549 #undef getservbyport_r
23550 #ifdef __cplusplus
23551 extern "C"
23552 #endif
23553 char getservbyport_r ();
23554 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
23555 choke me
23556 #endif
23557
23558 int main (void)
23559 {
23560 return getservbyport_r ();
23561  ;
23562  return 0;
23563 }
23564
23565 _ACEOF
23566 if ac_fn_c_try_link "$LINENO"; then :
23567
23568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23569 $as_echo "yes" >&6; }
23570     tst_links_getservbyport_r="yes"
23571
23572 else
23573
23574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576     tst_links_getservbyport_r="no"
23577
23578 fi
23579 rm -f core conftest.err conftest.$ac_objext \
23580     conftest$ac_exeext conftest.$ac_ext
23581   #
23582   if test "$tst_links_getservbyport_r" = "yes"; then
23583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
23584 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
23585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h.  */
23587
23588       $cares_includes_netdb
23589
23590 _ACEOF
23591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23592   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
23593
23594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23595 $as_echo "yes" >&6; }
23596       tst_proto_getservbyport_r="yes"
23597
23598 else
23599
23600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602       tst_proto_getservbyport_r="no"
23603
23604 fi
23605 rm -f conftest*
23606
23607   fi
23608   #
23609   if test "$tst_proto_getservbyport_r" = "yes"; then
23610     if test "$tst_nargs_getservbyport_r" = "unknown"; then
23611       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
23612 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
23613       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h.  */
23615
23616
23617           $cares_includes_netdb
23618
23619 int main (void)
23620 {
23621
23622           if(0 != getservbyport_r(0, 0, 0, 0))
23623             return 1;
23624
23625  ;
23626  return 0;
23627 }
23628
23629 _ACEOF
23630 if ac_fn_c_try_compile "$LINENO"; then :
23631
23632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23633 $as_echo "yes" >&6; }
23634         tst_compi_getservbyport_r="yes"
23635         tst_nargs_getservbyport_r="4"
23636
23637 else
23638
23639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23640 $as_echo "no" >&6; }
23641         tst_compi_getservbyport_r="no"
23642
23643 fi
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645     fi
23646     if test "$tst_nargs_getservbyport_r" = "unknown"; then
23647       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
23648 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
23649       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h.  */
23651
23652
23653           $cares_includes_netdb
23654
23655 int main (void)
23656 {
23657
23658           if(0 != getservbyport_r(0, 0, 0, 0, 0))
23659             return 1;
23660
23661  ;
23662  return 0;
23663 }
23664
23665 _ACEOF
23666 if ac_fn_c_try_compile "$LINENO"; then :
23667
23668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23669 $as_echo "yes" >&6; }
23670         tst_compi_getservbyport_r="yes"
23671         tst_nargs_getservbyport_r="5"
23672
23673 else
23674
23675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23676 $as_echo "no" >&6; }
23677         tst_compi_getservbyport_r="no"
23678
23679 fi
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681     fi
23682     if test "$tst_nargs_getservbyport_r" = "unknown"; then
23683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
23684 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
23685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h.  */
23687
23688
23689           $cares_includes_netdb
23690
23691 int main (void)
23692 {
23693
23694           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
23695             return 1;
23696
23697  ;
23698  return 0;
23699 }
23700
23701 _ACEOF
23702 if ac_fn_c_try_compile "$LINENO"; then :
23703
23704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706         tst_compi_getservbyport_r="yes"
23707         tst_nargs_getservbyport_r="6"
23708
23709 else
23710
23711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712 $as_echo "no" >&6; }
23713         tst_compi_getservbyport_r="no"
23714
23715 fi
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717     fi
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
23719 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
23720     if test "$tst_compi_getservbyport_r" = "yes"; then
23721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23722 $as_echo "yes" >&6; }
23723     else
23724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23725 $as_echo "no" >&6; }
23726     fi
23727   fi
23728   #
23729   if test "$tst_compi_getservbyport_r" = "yes"; then
23730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
23731 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
23732     if test "x$cares_disallow_getservbyport_r" != "xyes"; then
23733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23734 $as_echo "yes" >&6; }
23735       tst_allow_getservbyport_r="yes"
23736     else
23737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23738 $as_echo "no" >&6; }
23739       tst_allow_getservbyport_r="no"
23740     fi
23741   fi
23742   #
23743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
23744 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
23745   if test "$tst_links_getservbyport_r" = "yes" &&
23746      test "$tst_proto_getservbyport_r" = "yes" &&
23747      test "$tst_compi_getservbyport_r" = "yes" &&
23748      test "$tst_allow_getservbyport_r" = "yes"; then
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23750 $as_echo "yes" >&6; }
23751
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_GETSERVBYPORT_R 1
23754 _ACEOF
23755
23756
23757 cat >>confdefs.h <<_ACEOF
23758 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
23759 _ACEOF
23760
23761     if test "$tst_nargs_getservbyport_r" -eq "4"; then
23762
23763 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
23764
23765     else
23766
23767 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
23768
23769     fi
23770     ac_cv_func_getservbyport_r="yes"
23771   else
23772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23774     ac_cv_func_getservbyport_r="no"
23775   fi
23776
23777
23778 cares_includes_arpa_inet="\
23779 /* includes start */
23780 #ifdef HAVE_SYS_TYPES_H
23781 #  include <sys/types.h>
23782 #endif
23783 #ifdef HAVE_SYS_SOCKET_H
23784 #  include <sys/socket.h>
23785 #endif
23786 #ifdef HAVE_NETINET_IN_H
23787 #  include <netinet/in.h>
23788 #endif
23789 #ifdef HAVE_ARPA_INET_H
23790 #  include <arpa/inet.h>
23791 #endif
23792 /* includes end */"
23793   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
23794 do :
23795   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
23797 "
23798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23799   cat >>confdefs.h <<_ACEOF
23800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23801 _ACEOF
23802
23803 fi
23804
23805 done
23806
23807
23808
23809         #
23810   tst_links_inet_net_pton="unknown"
23811   tst_proto_inet_net_pton="unknown"
23812   tst_compi_inet_net_pton="unknown"
23813   tst_works_inet_net_pton="unknown"
23814   tst_allow_inet_net_pton="unknown"
23815   #
23816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
23817 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
23818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h.  */
23820
23821
23822 #define inet_net_pton innocuous_inet_net_pton
23823 #ifdef __STDC__
23824 # include <limits.h>
23825 #else
23826 # include <assert.h>
23827 #endif
23828 #undef inet_net_pton
23829 #ifdef __cplusplus
23830 extern "C"
23831 #endif
23832 char inet_net_pton ();
23833 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
23834 choke me
23835 #endif
23836
23837 int main (void)
23838 {
23839 return inet_net_pton ();
23840  ;
23841  return 0;
23842 }
23843
23844 _ACEOF
23845 if ac_fn_c_try_link "$LINENO"; then :
23846
23847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23848 $as_echo "yes" >&6; }
23849     tst_links_inet_net_pton="yes"
23850
23851 else
23852
23853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23854 $as_echo "no" >&6; }
23855     tst_links_inet_net_pton="no"
23856
23857 fi
23858 rm -f core conftest.err conftest.$ac_objext \
23859     conftest$ac_exeext conftest.$ac_ext
23860   #
23861   if test "$tst_links_inet_net_pton" = "yes"; then
23862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
23863 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
23864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h.  */
23866
23867       $cares_includes_arpa_inet
23868
23869 _ACEOF
23870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23871   $EGREP "inet_net_pton" >/dev/null 2>&1; then :
23872
23873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23874 $as_echo "yes" >&6; }
23875       tst_proto_inet_net_pton="yes"
23876
23877 else
23878
23879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23881       tst_proto_inet_net_pton="no"
23882
23883 fi
23884 rm -f conftest*
23885
23886   fi
23887   #
23888   if test "$tst_proto_inet_net_pton" = "yes"; then
23889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
23890 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
23891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h.  */
23893
23894
23895         $cares_includes_arpa_inet
23896
23897 int main (void)
23898 {
23899
23900         if(0 != inet_net_pton(0, 0, 0, 0))
23901           return 1;
23902
23903  ;
23904  return 0;
23905 }
23906
23907 _ACEOF
23908 if ac_fn_c_try_compile "$LINENO"; then :
23909
23910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23911 $as_echo "yes" >&6; }
23912       tst_compi_inet_net_pton="yes"
23913
23914 else
23915
23916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23917 $as_echo "no" >&6; }
23918       tst_compi_inet_net_pton="no"
23919
23920 fi
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922   fi
23923   #
23924     if test "x$cross_compiling" != "xyes" &&
23925     test "$tst_compi_inet_net_pton" = "yes"; then
23926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
23927 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
23928     if test "$cross_compiling" = yes; then :
23929   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23931 as_fn_error $? "cannot run test program while cross compiling
23932 See \`config.log' for more details" "$LINENO" 5; }
23933 else
23934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h.  */
23936
23937
23938         $cares_includes_stdlib
23939         $cares_includes_arpa_inet
23940         $cares_includes_string
23941
23942 int main (void)
23943 {
23944
23945         unsigned char ipv6a[16+1];
23946         unsigned char ipv4a[4+1];
23947         const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
23948         const char *ipv6net2 = "::fffe:7f00:1";
23949         const char *ipv6net3 = "7f20:1::/64";
23950         const char *ipv6net4 = "7f20:1::/2147483649";
23951         const char *ipv4net1 = "192.168.100.1";
23952         const char *ipv4net2 = "192.168.100/32";
23953         const char *ipv4net3 = "192.168.100.1/2147483649";
23954         /* - */
23955         memset(ipv4a, 1, sizeof(ipv4a));
23956         if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
23957           exit(1); /* fail */
23958         /* - */
23959         if( (ipv4a[0x00] != 0xc0) ||
23960             (ipv4a[0x01] != 0xa8) ||
23961             (ipv4a[0x02] != 0x64) ||
23962             (ipv4a[0x03] != 0x01) ||
23963             (ipv4a[0x04] != 0x01) )
23964           exit(1); /* fail */
23965         /* - */
23966         memset(ipv4a, 1, sizeof(ipv4a));
23967         if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
23968           exit(1); /* fail */
23969         /* - */
23970         if( (ipv4a[0x00] != 0xc0) ||
23971             (ipv4a[0x01] != 0xa8) ||
23972             (ipv4a[0x02] != 0x64) ||
23973             (ipv4a[0x03] != 0x00) ||
23974             (ipv4a[0x04] != 0x01) )
23975           exit(1); /* fail */
23976         /* - */
23977         memset(ipv4a, 1, sizeof(ipv4a));
23978         if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
23979           exit(1); /* fail */
23980         /* - */
23981         memset(ipv6a, 1, sizeof(ipv6a));
23982         if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
23983           exit(1); /* fail */
23984         /* - */
23985         if( (ipv6a[0x00] != 0xfe) ||
23986             (ipv6a[0x01] != 0x80) ||
23987             (ipv6a[0x08] != 0x02) ||
23988             (ipv6a[0x09] != 0x14) ||
23989             (ipv6a[0x0a] != 0x4f) ||
23990             (ipv6a[0x0b] != 0xff) ||
23991             (ipv6a[0x0c] != 0xfe) ||
23992             (ipv6a[0x0d] != 0x0b) ||
23993             (ipv6a[0x0e] != 0x76) ||
23994             (ipv6a[0x0f] != 0xc8) ||
23995             (ipv6a[0x10] != 0x01) )
23996           exit(1); /* fail */
23997         /* - */
23998         if( (ipv6a[0x02] != 0x0) ||
23999             (ipv6a[0x03] != 0x0) ||
24000             (ipv6a[0x04] != 0x0) ||
24001             (ipv6a[0x05] != 0x0) ||
24002             (ipv6a[0x06] != 0x0) ||
24003             (ipv6a[0x07] != 0x0) )
24004           exit(1); /* fail */
24005         /* - */
24006         memset(ipv6a, 0, sizeof(ipv6a));
24007         ipv6a[0x10] = 0x01;
24008         if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
24009           exit(1); /* fail */
24010         /* - */
24011         if( (ipv6a[0x0a] != 0xff) ||
24012             (ipv6a[0x0b] != 0xfe) ||
24013             (ipv6a[0x0c] != 0x7f) ||
24014             (ipv6a[0x0f] != 0x01) ||
24015             (ipv6a[0x10] != 0x01) )
24016           exit(1); /* fail */
24017         /* - */
24018         if( (ipv6a[0x00] != 0x0) ||
24019             (ipv6a[0x01] != 0x0) ||
24020             (ipv6a[0x02] != 0x0) ||
24021             (ipv6a[0x03] != 0x0) ||
24022             (ipv6a[0x04] != 0x0) ||
24023             (ipv6a[0x05] != 0x0) ||
24024             (ipv6a[0x06] != 0x0) ||
24025             (ipv6a[0x07] != 0x0) ||
24026             (ipv6a[0x08] != 0x0) ||
24027             (ipv6a[0x09] != 0x0) ||
24028             (ipv6a[0x0d] != 0x0) ||
24029             (ipv6a[0x0e] != 0x0) )
24030           exit(1); /* fail */
24031         /* - */
24032         memset(ipv6a, 1, sizeof(ipv6a));
24033         if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
24034           exit(1); /* fail */
24035         if( (ipv6a[0x00] != 0x7f) ||
24036             (ipv6a[0x01] != 0x20) ||
24037             (ipv6a[0x03] != 0x01) ||
24038             (ipv6a[0x08] != 0x01) ||
24039             (ipv6a[0x09] != 0x01) ||
24040             (ipv6a[0x0a] != 0x01) ||
24041             (ipv6a[0x0b] != 0x01) ||
24042             (ipv6a[0x0c] != 0x01) ||
24043             (ipv6a[0x0d] != 0x01) ||
24044             (ipv6a[0x0e] != 0x01) ||
24045             (ipv6a[0x0f] != 0x01) ||
24046             (ipv6a[0x10] != 0x01) )
24047           exit(1); /* fail */
24048         if( (ipv6a[0x02] != 0x0) ||
24049             (ipv6a[0x04] != 0x0) ||
24050             (ipv6a[0x05] != 0x0) ||
24051             (ipv6a[0x06] != 0x0) ||
24052             (ipv6a[0x07] != 0x0) ||
24053             (ipv6a[0x07] != 0x0) )
24054           exit(1); /* fail */
24055         /* - */
24056         memset(ipv6a, 1, sizeof(ipv6a));
24057         if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
24058           exit(1); /* fail */
24059         /* - */
24060         exit(0);
24061
24062  ;
24063  return 0;
24064 }
24065
24066 _ACEOF
24067 if ac_fn_c_try_run "$LINENO"; then :
24068
24069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24070 $as_echo "yes" >&6; }
24071       tst_works_inet_net_pton="yes"
24072
24073 else
24074
24075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077       tst_works_inet_net_pton="no"
24078
24079 fi
24080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24081   conftest.$ac_objext conftest.beam conftest.$ac_ext
24082 fi
24083
24084   fi
24085   #
24086   if test "$tst_compi_inet_net_pton" = "yes" &&
24087     test "$tst_works_inet_net_pton" != "no"; then
24088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
24089 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
24090     if test "x$cares_disallow_inet_net_pton" != "xyes"; then
24091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24092 $as_echo "yes" >&6; }
24093       tst_allow_inet_net_pton="yes"
24094     else
24095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24096 $as_echo "no" >&6; }
24097       tst_allow_inet_net_pton="no"
24098     fi
24099   fi
24100   #
24101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
24102 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
24103   if test "$tst_links_inet_net_pton" = "yes" &&
24104      test "$tst_proto_inet_net_pton" = "yes" &&
24105      test "$tst_compi_inet_net_pton" = "yes" &&
24106      test "$tst_allow_inet_net_pton" = "yes" &&
24107      test "$tst_works_inet_net_pton" != "no"; then
24108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24109 $as_echo "yes" >&6; }
24110
24111 cat >>confdefs.h <<_ACEOF
24112 #define HAVE_INET_NET_PTON 1
24113 _ACEOF
24114
24115     ac_cv_func_inet_net_pton="yes"
24116   else
24117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119     ac_cv_func_inet_net_pton="no"
24120   fi
24121
24122
24123         #
24124   tst_links_inet_ntop="unknown"
24125   tst_proto_inet_ntop="unknown"
24126   tst_compi_inet_ntop="unknown"
24127   tst_works_inet_ntop="unknown"
24128   tst_allow_inet_ntop="unknown"
24129   #
24130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
24131 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
24132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h.  */
24134
24135
24136 #define inet_ntop innocuous_inet_ntop
24137 #ifdef __STDC__
24138 # include <limits.h>
24139 #else
24140 # include <assert.h>
24141 #endif
24142 #undef inet_ntop
24143 #ifdef __cplusplus
24144 extern "C"
24145 #endif
24146 char inet_ntop ();
24147 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24148 choke me
24149 #endif
24150
24151 int main (void)
24152 {
24153 return inet_ntop ();
24154  ;
24155  return 0;
24156 }
24157
24158 _ACEOF
24159 if ac_fn_c_try_link "$LINENO"; then :
24160
24161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24162 $as_echo "yes" >&6; }
24163     tst_links_inet_ntop="yes"
24164
24165 else
24166
24167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 $as_echo "no" >&6; }
24169     tst_links_inet_ntop="no"
24170
24171 fi
24172 rm -f core conftest.err conftest.$ac_objext \
24173     conftest$ac_exeext conftest.$ac_ext
24174   #
24175   if test "$tst_links_inet_ntop" = "yes"; then
24176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
24177 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
24178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179 /* end confdefs.h.  */
24180
24181       $cares_includes_arpa_inet
24182
24183 _ACEOF
24184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24185   $EGREP "inet_ntop" >/dev/null 2>&1; then :
24186
24187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24188 $as_echo "yes" >&6; }
24189       tst_proto_inet_ntop="yes"
24190
24191 else
24192
24193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24194 $as_echo "no" >&6; }
24195       tst_proto_inet_ntop="no"
24196
24197 fi
24198 rm -f conftest*
24199
24200   fi
24201   #
24202   if test "$tst_proto_inet_ntop" = "yes"; then
24203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
24204 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
24205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h.  */
24207
24208
24209         $cares_includes_arpa_inet
24210
24211 int main (void)
24212 {
24213
24214         if(0 != inet_ntop(0, 0, 0, 0))
24215           return 1;
24216
24217  ;
24218  return 0;
24219 }
24220
24221 _ACEOF
24222 if ac_fn_c_try_compile "$LINENO"; then :
24223
24224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24225 $as_echo "yes" >&6; }
24226       tst_compi_inet_ntop="yes"
24227
24228 else
24229
24230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232       tst_compi_inet_ntop="no"
24233
24234 fi
24235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24236   fi
24237   #
24238     if test "x$cross_compiling" != "xyes" &&
24239     test "$tst_compi_inet_ntop" = "yes"; then
24240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
24241 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
24242     if test "$cross_compiling" = yes; then :
24243   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24245 as_fn_error $? "cannot run test program while cross compiling
24246 See \`config.log' for more details" "$LINENO" 5; }
24247 else
24248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h.  */
24250
24251
24252         $cares_includes_stdlib
24253         $cares_includes_arpa_inet
24254         $cares_includes_string
24255
24256 int main (void)
24257 {
24258
24259         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
24260         char ipv4res[sizeof "255.255.255.255"];
24261         unsigned char ipv6a[26];
24262         unsigned char ipv4a[5];
24263         char *ipv6ptr = 0;
24264         char *ipv4ptr = 0;
24265         /* - */
24266         ipv4res[0] = '\0';
24267         ipv4a[0] = 0xc0;
24268         ipv4a[1] = 0xa8;
24269         ipv4a[2] = 0x64;
24270         ipv4a[3] = 0x01;
24271         ipv4a[4] = 0x01;
24272         /* - */
24273         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
24274         if(!ipv4ptr)
24275           exit(1); /* fail */
24276         if(ipv4ptr != ipv4res)
24277           exit(1); /* fail */
24278         if(!ipv4ptr[0])
24279           exit(1); /* fail */
24280         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
24281           exit(1); /* fail */
24282         /* - */
24283         ipv6res[0] = '\0';
24284         memset(ipv6a, 0, sizeof(ipv6a));
24285         ipv6a[0] = 0xfe;
24286         ipv6a[1] = 0x80;
24287         ipv6a[8] = 0x02;
24288         ipv6a[9] = 0x14;
24289         ipv6a[10] = 0x4f;
24290         ipv6a[11] = 0xff;
24291         ipv6a[12] = 0xfe;
24292         ipv6a[13] = 0x0b;
24293         ipv6a[14] = 0x76;
24294         ipv6a[15] = 0xc8;
24295         ipv6a[25] = 0x01;
24296         /* - */
24297         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
24298         if(!ipv6ptr)
24299           exit(1); /* fail */
24300         if(ipv6ptr != ipv6res)
24301           exit(1); /* fail */
24302         if(!ipv6ptr[0])
24303           exit(1); /* fail */
24304         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
24305           exit(1); /* fail */
24306         /* - */
24307         exit(0);
24308
24309  ;
24310  return 0;
24311 }
24312
24313 _ACEOF
24314 if ac_fn_c_try_run "$LINENO"; then :
24315
24316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317 $as_echo "yes" >&6; }
24318       tst_works_inet_ntop="yes"
24319
24320 else
24321
24322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24324       tst_works_inet_ntop="no"
24325
24326 fi
24327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24328   conftest.$ac_objext conftest.beam conftest.$ac_ext
24329 fi
24330
24331   fi
24332   #
24333   if test "$tst_compi_inet_ntop" = "yes" &&
24334     test "$tst_works_inet_ntop" != "no"; then
24335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
24336 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
24337     if test "x$cares_disallow_inet_ntop" != "xyes"; then
24338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24339 $as_echo "yes" >&6; }
24340       tst_allow_inet_ntop="yes"
24341     else
24342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24343 $as_echo "no" >&6; }
24344       tst_allow_inet_ntop="no"
24345     fi
24346   fi
24347   #
24348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
24349 $as_echo_n "checking if inet_ntop might be used... " >&6; }
24350   if test "$tst_links_inet_ntop" = "yes" &&
24351      test "$tst_proto_inet_ntop" = "yes" &&
24352      test "$tst_compi_inet_ntop" = "yes" &&
24353      test "$tst_allow_inet_ntop" = "yes" &&
24354      test "$tst_works_inet_ntop" != "no"; then
24355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24356 $as_echo "yes" >&6; }
24357
24358 cat >>confdefs.h <<_ACEOF
24359 #define HAVE_INET_NTOP 1
24360 _ACEOF
24361
24362     ac_cv_func_inet_ntop="yes"
24363   else
24364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24365 $as_echo "no" >&6; }
24366     ac_cv_func_inet_ntop="no"
24367   fi
24368
24369
24370         #
24371   tst_links_inet_pton="unknown"
24372   tst_proto_inet_pton="unknown"
24373   tst_compi_inet_pton="unknown"
24374   tst_works_inet_pton="unknown"
24375   tst_allow_inet_pton="unknown"
24376   #
24377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
24378 $as_echo_n "checking if inet_pton can be linked... " >&6; }
24379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24380 /* end confdefs.h.  */
24381
24382
24383 #define inet_pton innocuous_inet_pton
24384 #ifdef __STDC__
24385 # include <limits.h>
24386 #else
24387 # include <assert.h>
24388 #endif
24389 #undef inet_pton
24390 #ifdef __cplusplus
24391 extern "C"
24392 #endif
24393 char inet_pton ();
24394 #if defined __stub_inet_pton || defined __stub___inet_pton
24395 choke me
24396 #endif
24397
24398 int main (void)
24399 {
24400 return inet_pton ();
24401  ;
24402  return 0;
24403 }
24404
24405 _ACEOF
24406 if ac_fn_c_try_link "$LINENO"; then :
24407
24408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24409 $as_echo "yes" >&6; }
24410     tst_links_inet_pton="yes"
24411
24412 else
24413
24414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24415 $as_echo "no" >&6; }
24416     tst_links_inet_pton="no"
24417
24418 fi
24419 rm -f core conftest.err conftest.$ac_objext \
24420     conftest$ac_exeext conftest.$ac_ext
24421   #
24422   if test "$tst_links_inet_pton" = "yes"; then
24423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
24424 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
24425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426 /* end confdefs.h.  */
24427
24428       $cares_includes_arpa_inet
24429
24430 _ACEOF
24431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24432   $EGREP "inet_pton" >/dev/null 2>&1; then :
24433
24434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24435 $as_echo "yes" >&6; }
24436       tst_proto_inet_pton="yes"
24437
24438 else
24439
24440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442       tst_proto_inet_pton="no"
24443
24444 fi
24445 rm -f conftest*
24446
24447   fi
24448   #
24449   if test "$tst_proto_inet_pton" = "yes"; then
24450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
24451 $as_echo_n "checking if inet_pton is compilable... " >&6; }
24452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h.  */
24454
24455
24456         $cares_includes_arpa_inet
24457
24458 int main (void)
24459 {
24460
24461         if(0 != inet_pton(0, 0, 0))
24462           return 1;
24463
24464  ;
24465  return 0;
24466 }
24467
24468 _ACEOF
24469 if ac_fn_c_try_compile "$LINENO"; then :
24470
24471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24472 $as_echo "yes" >&6; }
24473       tst_compi_inet_pton="yes"
24474
24475 else
24476
24477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24478 $as_echo "no" >&6; }
24479       tst_compi_inet_pton="no"
24480
24481 fi
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483   fi
24484   #
24485     if test "x$cross_compiling" != "xyes" &&
24486     test "$tst_compi_inet_pton" = "yes"; then
24487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
24488 $as_echo_n "checking if inet_pton seems to work... " >&6; }
24489     if test "$cross_compiling" = yes; then :
24490   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24492 as_fn_error $? "cannot run test program while cross compiling
24493 See \`config.log' for more details" "$LINENO" 5; }
24494 else
24495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h.  */
24497
24498
24499         $cares_includes_stdlib
24500         $cares_includes_arpa_inet
24501         $cares_includes_string
24502
24503 int main (void)
24504 {
24505
24506         unsigned char ipv6a[16+1];
24507         unsigned char ipv4a[4+1];
24508         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
24509         const char *ipv4src = "192.168.100.1";
24510         /* - */
24511         memset(ipv4a, 1, sizeof(ipv4a));
24512         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
24513           exit(1); /* fail */
24514         /* - */
24515         if( (ipv4a[0] != 0xc0) ||
24516             (ipv4a[1] != 0xa8) ||
24517             (ipv4a[2] != 0x64) ||
24518             (ipv4a[3] != 0x01) ||
24519             (ipv4a[4] != 0x01) )
24520           exit(1); /* fail */
24521         /* - */
24522         memset(ipv6a, 1, sizeof(ipv6a));
24523         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
24524           exit(1); /* fail */
24525         /* - */
24526         if( (ipv6a[0]  != 0xfe) ||
24527             (ipv6a[1]  != 0x80) ||
24528             (ipv6a[8]  != 0x02) ||
24529             (ipv6a[9]  != 0x14) ||
24530             (ipv6a[10] != 0x4f) ||
24531             (ipv6a[11] != 0xff) ||
24532             (ipv6a[12] != 0xfe) ||
24533             (ipv6a[13] != 0x0b) ||
24534             (ipv6a[14] != 0x76) ||
24535             (ipv6a[15] != 0xc8) ||
24536             (ipv6a[16] != 0x01) )
24537           exit(1); /* fail */
24538         /* - */
24539         if( (ipv6a[2]  != 0x0) ||
24540             (ipv6a[3]  != 0x0) ||
24541             (ipv6a[4]  != 0x0) ||
24542             (ipv6a[5]  != 0x0) ||
24543             (ipv6a[6]  != 0x0) ||
24544             (ipv6a[7]  != 0x0) )
24545           exit(1); /* fail */
24546         /* - */
24547         exit(0);
24548
24549  ;
24550  return 0;
24551 }
24552
24553 _ACEOF
24554 if ac_fn_c_try_run "$LINENO"; then :
24555
24556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24557 $as_echo "yes" >&6; }
24558       tst_works_inet_pton="yes"
24559
24560 else
24561
24562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24563 $as_echo "no" >&6; }
24564       tst_works_inet_pton="no"
24565
24566 fi
24567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24568   conftest.$ac_objext conftest.beam conftest.$ac_ext
24569 fi
24570
24571   fi
24572   #
24573   if test "$tst_compi_inet_pton" = "yes" &&
24574     test "$tst_works_inet_pton" != "no"; then
24575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
24576 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
24577     if test "x$cares_disallow_inet_pton" != "xyes"; then
24578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24579 $as_echo "yes" >&6; }
24580       tst_allow_inet_pton="yes"
24581     else
24582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24583 $as_echo "no" >&6; }
24584       tst_allow_inet_pton="no"
24585     fi
24586   fi
24587   #
24588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
24589 $as_echo_n "checking if inet_pton might be used... " >&6; }
24590   if test "$tst_links_inet_pton" = "yes" &&
24591      test "$tst_proto_inet_pton" = "yes" &&
24592      test "$tst_compi_inet_pton" = "yes" &&
24593      test "$tst_allow_inet_pton" = "yes" &&
24594      test "$tst_works_inet_pton" != "no"; then
24595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24596 $as_echo "yes" >&6; }
24597
24598 cat >>confdefs.h <<_ACEOF
24599 #define HAVE_INET_PTON 1
24600 _ACEOF
24601
24602     ac_cv_func_inet_pton="yes"
24603   else
24604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24605 $as_echo "no" >&6; }
24606     ac_cv_func_inet_pton="no"
24607   fi
24608
24609
24610 cares_includes_stropts="\
24611 /* includes start */
24612 #ifdef HAVE_SYS_TYPES_H
24613 #  include <sys/types.h>
24614 #endif
24615 #ifdef HAVE_UNISTD_H
24616 #  include <unistd.h>
24617 #endif
24618 #ifdef HAVE_SYS_SOCKET_H
24619 #  include <sys/socket.h>
24620 #endif
24621 #ifdef HAVE_SYS_IOCTL_H
24622 #  include <sys/ioctl.h>
24623 #endif
24624 #ifdef HAVE_STROPTS_H
24625 #  include <stropts.h>
24626 #endif
24627 /* includes end */"
24628   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
24629 do :
24630   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24631 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
24632 "
24633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24634   cat >>confdefs.h <<_ACEOF
24635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24636 _ACEOF
24637
24638 fi
24639
24640 done
24641
24642
24643
24644     #
24645   tst_links_ioctl="unknown"
24646   tst_proto_ioctl="unknown"
24647   tst_compi_ioctl="unknown"
24648   tst_allow_ioctl="unknown"
24649   #
24650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
24651 $as_echo_n "checking if ioctl can be linked... " >&6; }
24652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24653 /* end confdefs.h.  */
24654
24655
24656 #define ioctl innocuous_ioctl
24657 #ifdef __STDC__
24658 # include <limits.h>
24659 #else
24660 # include <assert.h>
24661 #endif
24662 #undef ioctl
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char ioctl ();
24667 #if defined __stub_ioctl || defined __stub___ioctl
24668 choke me
24669 #endif
24670
24671 int main (void)
24672 {
24673 return ioctl ();
24674  ;
24675  return 0;
24676 }
24677
24678 _ACEOF
24679 if ac_fn_c_try_link "$LINENO"; then :
24680
24681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24682 $as_echo "yes" >&6; }
24683     tst_links_ioctl="yes"
24684
24685 else
24686
24687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24688 $as_echo "no" >&6; }
24689     tst_links_ioctl="no"
24690
24691 fi
24692 rm -f core conftest.err conftest.$ac_objext \
24693     conftest$ac_exeext conftest.$ac_ext
24694   #
24695   if test "$tst_links_ioctl" = "yes"; then
24696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
24697 $as_echo_n "checking if ioctl is prototyped... " >&6; }
24698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h.  */
24700
24701       $cares_includes_stropts
24702
24703 _ACEOF
24704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24705   $EGREP "ioctl" >/dev/null 2>&1; then :
24706
24707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24708 $as_echo "yes" >&6; }
24709       tst_proto_ioctl="yes"
24710
24711 else
24712
24713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 $as_echo "no" >&6; }
24715       tst_proto_ioctl="no"
24716
24717 fi
24718 rm -f conftest*
24719
24720   fi
24721   #
24722   if test "$tst_proto_ioctl" = "yes"; then
24723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
24724 $as_echo_n "checking if ioctl is compilable... " >&6; }
24725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24726 /* end confdefs.h.  */
24727
24728
24729         $cares_includes_stropts
24730
24731 int main (void)
24732 {
24733
24734         if(0 != ioctl(0, 0, 0))
24735           return 1;
24736
24737  ;
24738  return 0;
24739 }
24740
24741 _ACEOF
24742 if ac_fn_c_try_compile "$LINENO"; then :
24743
24744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24745 $as_echo "yes" >&6; }
24746       tst_compi_ioctl="yes"
24747
24748 else
24749
24750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24751 $as_echo "no" >&6; }
24752       tst_compi_ioctl="no"
24753
24754 fi
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24756   fi
24757   #
24758   if test "$tst_compi_ioctl" = "yes"; then
24759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
24760 $as_echo_n "checking if ioctl usage allowed... " >&6; }
24761     if test "x$cares_disallow_ioctl" != "xyes"; then
24762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24763 $as_echo "yes" >&6; }
24764       tst_allow_ioctl="yes"
24765     else
24766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24767 $as_echo "no" >&6; }
24768       tst_allow_ioctl="no"
24769     fi
24770   fi
24771   #
24772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
24773 $as_echo_n "checking if ioctl might be used... " >&6; }
24774   if test "$tst_links_ioctl" = "yes" &&
24775      test "$tst_proto_ioctl" = "yes" &&
24776      test "$tst_compi_ioctl" = "yes" &&
24777      test "$tst_allow_ioctl" = "yes"; then
24778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24779 $as_echo "yes" >&6; }
24780
24781 cat >>confdefs.h <<_ACEOF
24782 #define HAVE_IOCTL 1
24783 _ACEOF
24784
24785     ac_cv_func_ioctl="yes"
24786
24787   #
24788   tst_compi_ioctl_fionbio="unknown"
24789   tst_allow_ioctl_fionbio="unknown"
24790   #
24791   if test "$ac_cv_func_ioctl" = "yes"; then
24792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
24793 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
24794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h.  */
24796
24797
24798         $cares_includes_stropts
24799
24800 int main (void)
24801 {
24802
24803         int flags = 0;
24804         if(0 != ioctl(0, FIONBIO, &flags))
24805           return 1;
24806
24807  ;
24808  return 0;
24809 }
24810
24811 _ACEOF
24812 if ac_fn_c_try_compile "$LINENO"; then :
24813
24814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24815 $as_echo "yes" >&6; }
24816       tst_compi_ioctl_fionbio="yes"
24817
24818 else
24819
24820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24821 $as_echo "no" >&6; }
24822       tst_compi_ioctl_fionbio="no"
24823
24824 fi
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826   fi
24827   #
24828   if test "$tst_compi_ioctl_fionbio" = "yes"; then
24829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
24830 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
24831     if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
24832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24833 $as_echo "yes" >&6; }
24834       tst_allow_ioctl_fionbio="yes"
24835     else
24836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837 $as_echo "no" >&6; }
24838       tst_allow_ioctl_fionbio="no"
24839     fi
24840   fi
24841   #
24842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
24843 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
24844   if test "$tst_compi_ioctl_fionbio" = "yes" &&
24845      test "$tst_allow_ioctl_fionbio" = "yes"; then
24846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24847 $as_echo "yes" >&6; }
24848
24849 cat >>confdefs.h <<_ACEOF
24850 #define HAVE_IOCTL_FIONBIO 1
24851 _ACEOF
24852
24853     ac_cv_func_ioctl_fionbio="yes"
24854   else
24855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857     ac_cv_func_ioctl_fionbio="no"
24858   fi
24859
24860
24861   #
24862   tst_compi_ioctl_siocgifaddr="unknown"
24863   tst_allow_ioctl_siocgifaddr="unknown"
24864   #
24865   if test "$ac_cv_func_ioctl" = "yes"; then
24866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
24867 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
24868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h.  */
24870
24871
24872         $cares_includes_stropts
24873         #include <net/if.h>
24874
24875 int main (void)
24876 {
24877
24878         struct ifreq ifr;
24879         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
24880           return 1;
24881
24882  ;
24883  return 0;
24884 }
24885
24886 _ACEOF
24887 if ac_fn_c_try_compile "$LINENO"; then :
24888
24889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24890 $as_echo "yes" >&6; }
24891       tst_compi_ioctl_siocgifaddr="yes"
24892
24893 else
24894
24895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24897       tst_compi_ioctl_siocgifaddr="no"
24898
24899 fi
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901   fi
24902   #
24903   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
24904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
24905 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
24906     if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
24907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24908 $as_echo "yes" >&6; }
24909       tst_allow_ioctl_siocgifaddr="yes"
24910     else
24911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24912 $as_echo "no" >&6; }
24913       tst_allow_ioctl_siocgifaddr="no"
24914     fi
24915   fi
24916   #
24917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
24918 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
24919   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
24920      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
24921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24922 $as_echo "yes" >&6; }
24923
24924 cat >>confdefs.h <<_ACEOF
24925 #define HAVE_IOCTL_SIOCGIFADDR 1
24926 _ACEOF
24927
24928     ac_cv_func_ioctl_siocgifaddr="yes"
24929   else
24930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24931 $as_echo "no" >&6; }
24932     ac_cv_func_ioctl_siocgifaddr="no"
24933   fi
24934
24935   else
24936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24937 $as_echo "no" >&6; }
24938     ac_cv_func_ioctl="no"
24939   fi
24940
24941
24942     #
24943   tst_links_ioctlsocket="unknown"
24944   tst_proto_ioctlsocket="unknown"
24945   tst_compi_ioctlsocket="unknown"
24946   tst_allow_ioctlsocket="unknown"
24947   #
24948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
24949 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
24950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24951 /* end confdefs.h.  */
24952
24953
24954       $cares_includes_winsock2
24955
24956 int main (void)
24957 {
24958
24959       if(0 != ioctlsocket(0, 0, 0))
24960         return 1;
24961
24962  ;
24963  return 0;
24964 }
24965
24966 _ACEOF
24967 if ac_fn_c_try_link "$LINENO"; then :
24968
24969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24970 $as_echo "yes" >&6; }
24971     tst_links_ioctlsocket="yes"
24972
24973 else
24974
24975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24976 $as_echo "no" >&6; }
24977     tst_links_ioctlsocket="no"
24978
24979 fi
24980 rm -f core conftest.err conftest.$ac_objext \
24981     conftest$ac_exeext conftest.$ac_ext
24982   #
24983   if test "$tst_links_ioctlsocket" = "yes"; then
24984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
24985 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
24986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h.  */
24988
24989       $cares_includes_winsock2
24990
24991 _ACEOF
24992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24993   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
24994
24995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24997       tst_proto_ioctlsocket="yes"
24998
24999 else
25000
25001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25002 $as_echo "no" >&6; }
25003       tst_proto_ioctlsocket="no"
25004
25005 fi
25006 rm -f conftest*
25007
25008   fi
25009   #
25010   if test "$tst_proto_ioctlsocket" = "yes"; then
25011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
25012 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
25013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014 /* end confdefs.h.  */
25015
25016
25017         $cares_includes_winsock2
25018
25019 int main (void)
25020 {
25021
25022         if(0 != ioctlsocket(0, 0, 0))
25023           return 1;
25024
25025  ;
25026  return 0;
25027 }
25028
25029 _ACEOF
25030 if ac_fn_c_try_compile "$LINENO"; then :
25031
25032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25033 $as_echo "yes" >&6; }
25034       tst_compi_ioctlsocket="yes"
25035
25036 else
25037
25038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25039 $as_echo "no" >&6; }
25040       tst_compi_ioctlsocket="no"
25041
25042 fi
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044   fi
25045   #
25046   if test "$tst_compi_ioctlsocket" = "yes"; then
25047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
25048 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
25049     if test "x$cares_disallow_ioctlsocket" != "xyes"; then
25050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25051 $as_echo "yes" >&6; }
25052       tst_allow_ioctlsocket="yes"
25053     else
25054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25055 $as_echo "no" >&6; }
25056       tst_allow_ioctlsocket="no"
25057     fi
25058   fi
25059   #
25060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
25061 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
25062   if test "$tst_links_ioctlsocket" = "yes" &&
25063      test "$tst_proto_ioctlsocket" = "yes" &&
25064      test "$tst_compi_ioctlsocket" = "yes" &&
25065      test "$tst_allow_ioctlsocket" = "yes"; then
25066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25067 $as_echo "yes" >&6; }
25068
25069 cat >>confdefs.h <<_ACEOF
25070 #define HAVE_IOCTLSOCKET 1
25071 _ACEOF
25072
25073     ac_cv_func_ioctlsocket="yes"
25074
25075   #
25076   tst_compi_ioctlsocket_fionbio="unknown"
25077   tst_allow_ioctlsocket_fionbio="unknown"
25078   #
25079   if test "$ac_cv_func_ioctlsocket" = "yes"; then
25080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
25081 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
25082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083 /* end confdefs.h.  */
25084
25085
25086         $cares_includes_winsock2
25087
25088 int main (void)
25089 {
25090
25091         int flags = 0;
25092         if(0 != ioctlsocket(0, FIONBIO, &flags))
25093           return 1;
25094
25095  ;
25096  return 0;
25097 }
25098
25099 _ACEOF
25100 if ac_fn_c_try_compile "$LINENO"; then :
25101
25102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25103 $as_echo "yes" >&6; }
25104       tst_compi_ioctlsocket_fionbio="yes"
25105
25106 else
25107
25108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109 $as_echo "no" >&6; }
25110       tst_compi_ioctlsocket_fionbio="no"
25111
25112 fi
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114   fi
25115   #
25116   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
25117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
25118 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
25119     if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
25120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25121 $as_echo "yes" >&6; }
25122       tst_allow_ioctlsocket_fionbio="yes"
25123     else
25124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25126       tst_allow_ioctlsocket_fionbio="no"
25127     fi
25128   fi
25129   #
25130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
25131 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
25132   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
25133      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
25134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25135 $as_echo "yes" >&6; }
25136
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_IOCTLSOCKET_FIONBIO 1
25139 _ACEOF
25140
25141     ac_cv_func_ioctlsocket_fionbio="yes"
25142   else
25143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25144 $as_echo "no" >&6; }
25145     ac_cv_func_ioctlsocket_fionbio="no"
25146   fi
25147
25148   else
25149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 $as_echo "no" >&6; }
25151     ac_cv_func_ioctlsocket="no"
25152   fi
25153
25154
25155     #
25156   tst_links_ioctlsocket_camel="unknown"
25157   tst_proto_ioctlsocket_camel="unknown"
25158   tst_compi_ioctlsocket_camel="unknown"
25159   tst_allow_ioctlsocket_camel="unknown"
25160   #
25161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
25162 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
25163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h.  */
25165
25166
25167 #define IoctlSocket innocuous_IoctlSocket
25168 #ifdef __STDC__
25169 # include <limits.h>
25170 #else
25171 # include <assert.h>
25172 #endif
25173 #undef IoctlSocket
25174 #ifdef __cplusplus
25175 extern "C"
25176 #endif
25177 char IoctlSocket ();
25178 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
25179 choke me
25180 #endif
25181
25182 int main (void)
25183 {
25184 return IoctlSocket ();
25185  ;
25186  return 0;
25187 }
25188
25189 _ACEOF
25190 if ac_fn_c_try_link "$LINENO"; then :
25191
25192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25193 $as_echo "yes" >&6; }
25194     tst_links_ioctlsocket_camel="yes"
25195
25196 else
25197
25198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25199 $as_echo "no" >&6; }
25200     tst_links_ioctlsocket_camel="no"
25201
25202 fi
25203 rm -f core conftest.err conftest.$ac_objext \
25204     conftest$ac_exeext conftest.$ac_ext
25205   #
25206   if test "$tst_links_ioctlsocket_camel" = "yes"; then
25207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
25208 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
25209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h.  */
25211
25212       $cares_includes_stropts
25213
25214 _ACEOF
25215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25216   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
25217
25218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219 $as_echo "yes" >&6; }
25220       tst_proto_ioctlsocket_camel="yes"
25221
25222 else
25223
25224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25226       tst_proto_ioctlsocket_camel="no"
25227
25228 fi
25229 rm -f conftest*
25230
25231   fi
25232   #
25233   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
25234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
25235 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
25236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h.  */
25238
25239
25240         $cares_includes_stropts
25241
25242 int main (void)
25243 {
25244
25245         if(0 != IoctlSocket(0, 0, 0))
25246           return 1;
25247
25248  ;
25249  return 0;
25250 }
25251
25252 _ACEOF
25253 if ac_fn_c_try_compile "$LINENO"; then :
25254
25255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25256 $as_echo "yes" >&6; }
25257       tst_compi_ioctlsocket_camel="yes"
25258
25259 else
25260
25261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25262 $as_echo "no" >&6; }
25263       tst_compi_ioctlsocket_camel="no"
25264
25265 fi
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267   fi
25268   #
25269   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
25270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
25271 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
25272     if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
25273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25274 $as_echo "yes" >&6; }
25275       tst_allow_ioctlsocket_camel="yes"
25276     else
25277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25278 $as_echo "no" >&6; }
25279       tst_allow_ioctlsocket_camel="no"
25280     fi
25281   fi
25282   #
25283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
25284 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
25285   if test "$tst_links_ioctlsocket_camel" = "yes" &&
25286      test "$tst_proto_ioctlsocket_camel" = "yes" &&
25287      test "$tst_compi_ioctlsocket_camel" = "yes" &&
25288      test "$tst_allow_ioctlsocket_camel" = "yes"; then
25289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25290 $as_echo "yes" >&6; }
25291
25292 cat >>confdefs.h <<_ACEOF
25293 #define HAVE_IOCTLSOCKET_CAMEL 1
25294 _ACEOF
25295
25296     ac_cv_func_ioctlsocket_camel="yes"
25297
25298   #
25299   tst_compi_ioctlsocket_camel_fionbio="unknown"
25300   tst_allow_ioctlsocket_camel_fionbio="unknown"
25301   #
25302   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
25303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
25304 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
25305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h.  */
25307
25308
25309         $cares_includes_stropts
25310
25311 int main (void)
25312 {
25313
25314         long flags = 0;
25315         if(0 != ioctlsocket(0, FIONBIO, &flags))
25316           return 1;
25317
25318  ;
25319  return 0;
25320 }
25321
25322 _ACEOF
25323 if ac_fn_c_try_compile "$LINENO"; then :
25324
25325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25326 $as_echo "yes" >&6; }
25327       tst_compi_ioctlsocket_camel_fionbio="yes"
25328
25329 else
25330
25331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25332 $as_echo "no" >&6; }
25333       tst_compi_ioctlsocket_camel_fionbio="no"
25334
25335 fi
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337   fi
25338   #
25339   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
25340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
25341 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
25342     if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
25343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25344 $as_echo "yes" >&6; }
25345       tst_allow_ioctlsocket_camel_fionbio="yes"
25346     else
25347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25348 $as_echo "no" >&6; }
25349       tst_allow_ioctlsocket_camel_fionbio="no"
25350     fi
25351   fi
25352   #
25353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
25354 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
25355   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
25356      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
25357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25358 $as_echo "yes" >&6; }
25359
25360 cat >>confdefs.h <<_ACEOF
25361 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
25362 _ACEOF
25363
25364     ac_cv_func_ioctlsocket_camel_fionbio="yes"
25365   else
25366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25367 $as_echo "no" >&6; }
25368     ac_cv_func_ioctlsocket_camel_fionbio="no"
25369   fi
25370
25371   else
25372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25373 $as_echo "no" >&6; }
25374     ac_cv_func_ioctlsocket_camel="no"
25375   fi
25376
25377
25378       #
25379   tst_links_setsockopt="unknown"
25380   tst_proto_setsockopt="unknown"
25381   tst_compi_setsockopt="unknown"
25382   tst_allow_setsockopt="unknown"
25383   #
25384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
25385 $as_echo_n "checking if setsockopt can be linked... " >&6; }
25386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h.  */
25388
25389
25390       $cares_includes_winsock2
25391       $cares_includes_sys_socket
25392
25393 int main (void)
25394 {
25395
25396       if(0 != setsockopt(0, 0, 0, 0, 0))
25397         return 1;
25398
25399  ;
25400  return 0;
25401 }
25402
25403 _ACEOF
25404 if ac_fn_c_try_link "$LINENO"; then :
25405
25406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25407 $as_echo "yes" >&6; }
25408     tst_links_setsockopt="yes"
25409
25410 else
25411
25412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25413 $as_echo "no" >&6; }
25414     tst_links_setsockopt="no"
25415
25416 fi
25417 rm -f core conftest.err conftest.$ac_objext \
25418     conftest$ac_exeext conftest.$ac_ext
25419   #
25420   if test "$tst_links_setsockopt" = "yes"; then
25421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
25422 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
25423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h.  */
25425
25426       $cares_includes_winsock2
25427       $cares_includes_sys_socket
25428
25429 _ACEOF
25430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25431   $EGREP "setsockopt" >/dev/null 2>&1; then :
25432
25433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25434 $as_echo "yes" >&6; }
25435       tst_proto_setsockopt="yes"
25436
25437 else
25438
25439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 $as_echo "no" >&6; }
25441       tst_proto_setsockopt="no"
25442
25443 fi
25444 rm -f conftest*
25445
25446   fi
25447   #
25448   if test "$tst_proto_setsockopt" = "yes"; then
25449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
25450 $as_echo_n "checking if setsockopt is compilable... " >&6; }
25451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h.  */
25453
25454
25455         $cares_includes_winsock2
25456         $cares_includes_sys_socket
25457
25458 int main (void)
25459 {
25460
25461         if(0 != setsockopt(0, 0, 0, 0, 0))
25462           return 1;
25463
25464  ;
25465  return 0;
25466 }
25467
25468 _ACEOF
25469 if ac_fn_c_try_compile "$LINENO"; then :
25470
25471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472 $as_echo "yes" >&6; }
25473       tst_compi_setsockopt="yes"
25474
25475 else
25476
25477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25478 $as_echo "no" >&6; }
25479       tst_compi_setsockopt="no"
25480
25481 fi
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483   fi
25484   #
25485   if test "$tst_compi_setsockopt" = "yes"; then
25486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
25487 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
25488     if test "x$cares_disallow_setsockopt" != "xyes"; then
25489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25490 $as_echo "yes" >&6; }
25491       tst_allow_setsockopt="yes"
25492     else
25493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25494 $as_echo "no" >&6; }
25495       tst_allow_setsockopt="no"
25496     fi
25497   fi
25498   #
25499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
25500 $as_echo_n "checking if setsockopt might be used... " >&6; }
25501   if test "$tst_links_setsockopt" = "yes" &&
25502      test "$tst_proto_setsockopt" = "yes" &&
25503      test "$tst_compi_setsockopt" = "yes" &&
25504      test "$tst_allow_setsockopt" = "yes"; then
25505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25506 $as_echo "yes" >&6; }
25507
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_SETSOCKOPT 1
25510 _ACEOF
25511
25512     ac_cv_func_setsockopt="yes"
25513
25514   #
25515   tst_compi_setsockopt_so_nonblock="unknown"
25516   tst_allow_setsockopt_so_nonblock="unknown"
25517   #
25518   if test "$ac_cv_func_setsockopt" = "yes"; then
25519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
25520 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
25521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523
25524
25525         $cares_includes_winsock2
25526         $cares_includes_sys_socket
25527
25528 int main (void)
25529 {
25530
25531         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
25532           return 1;
25533
25534  ;
25535  return 0;
25536 }
25537
25538 _ACEOF
25539 if ac_fn_c_try_compile "$LINENO"; then :
25540
25541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25543       tst_compi_setsockopt_so_nonblock="yes"
25544
25545 else
25546
25547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25548 $as_echo "no" >&6; }
25549       tst_compi_setsockopt_so_nonblock="no"
25550
25551 fi
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553   fi
25554   #
25555   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
25556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
25557 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
25558     if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
25559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25560 $as_echo "yes" >&6; }
25561       tst_allow_setsockopt_so_nonblock="yes"
25562     else
25563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25564 $as_echo "no" >&6; }
25565       tst_allow_setsockopt_so_nonblock="no"
25566     fi
25567   fi
25568   #
25569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
25570 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
25571   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
25572      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
25573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 $as_echo "yes" >&6; }
25575
25576 cat >>confdefs.h <<_ACEOF
25577 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
25578 _ACEOF
25579
25580     ac_cv_func_setsockopt_so_nonblock="yes"
25581   else
25582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25583 $as_echo "no" >&6; }
25584     ac_cv_func_setsockopt_so_nonblock="no"
25585   fi
25586
25587   else
25588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 $as_echo "no" >&6; }
25590     ac_cv_func_setsockopt="no"
25591   fi
25592
25593
25594         #
25595   tst_links_socket="unknown"
25596   tst_proto_socket="unknown"
25597   tst_compi_socket="unknown"
25598   tst_allow_socket="unknown"
25599   #
25600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
25601 $as_echo_n "checking if socket can be linked... " >&6; }
25602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25603 /* end confdefs.h.  */
25604
25605
25606       $cares_includes_winsock2
25607       $cares_includes_sys_socket
25608       $cares_includes_socket
25609
25610 int main (void)
25611 {
25612
25613       if(0 != socket(0, 0, 0))
25614         return 1;
25615
25616  ;
25617  return 0;
25618 }
25619
25620 _ACEOF
25621 if ac_fn_c_try_link "$LINENO"; then :
25622
25623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25625     tst_links_socket="yes"
25626
25627 else
25628
25629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25631     tst_links_socket="no"
25632
25633 fi
25634 rm -f core conftest.err conftest.$ac_objext \
25635     conftest$ac_exeext conftest.$ac_ext
25636   #
25637   if test "$tst_links_socket" = "yes"; then
25638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
25639 $as_echo_n "checking if socket is prototyped... " >&6; }
25640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641 /* end confdefs.h.  */
25642
25643       $cares_includes_winsock2
25644       $cares_includes_sys_socket
25645       $cares_includes_socket
25646
25647 _ACEOF
25648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25649   $EGREP "socket" >/dev/null 2>&1; then :
25650
25651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25652 $as_echo "yes" >&6; }
25653       tst_proto_socket="yes"
25654
25655 else
25656
25657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25658 $as_echo "no" >&6; }
25659       tst_proto_socket="no"
25660
25661 fi
25662 rm -f conftest*
25663
25664   fi
25665   #
25666   if test "$tst_proto_socket" = "yes"; then
25667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
25668 $as_echo_n "checking if socket is compilable... " >&6; }
25669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h.  */
25671
25672
25673         $cares_includes_winsock2
25674         $cares_includes_sys_socket
25675         $cares_includes_socket
25676
25677 int main (void)
25678 {
25679
25680         if(0 != socket(0, 0, 0))
25681           return 1;
25682
25683  ;
25684  return 0;
25685 }
25686
25687 _ACEOF
25688 if ac_fn_c_try_compile "$LINENO"; then :
25689
25690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25691 $as_echo "yes" >&6; }
25692       tst_compi_socket="yes"
25693
25694 else
25695
25696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25697 $as_echo "no" >&6; }
25698       tst_compi_socket="no"
25699
25700 fi
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702   fi
25703   #
25704   if test "$tst_compi_socket" = "yes"; then
25705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
25706 $as_echo_n "checking if socket usage allowed... " >&6; }
25707     if test "x$cares_disallow_socket" != "xyes"; then
25708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25709 $as_echo "yes" >&6; }
25710       tst_allow_socket="yes"
25711     else
25712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713 $as_echo "no" >&6; }
25714       tst_allow_socket="no"
25715     fi
25716   fi
25717   #
25718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
25719 $as_echo_n "checking if socket might be used... " >&6; }
25720   if test "$tst_links_socket" = "yes" &&
25721      test "$tst_proto_socket" = "yes" &&
25722      test "$tst_compi_socket" = "yes" &&
25723      test "$tst_allow_socket" = "yes"; then
25724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25725 $as_echo "yes" >&6; }
25726
25727 cat >>confdefs.h <<_ACEOF
25728 #define HAVE_SOCKET 1
25729 _ACEOF
25730
25731     ac_cv_func_socket="yes"
25732   else
25733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25734 $as_echo "no" >&6; }
25735     ac_cv_func_socket="no"
25736   fi
25737
25738
25739     #
25740   tst_links_strcasecmp="unknown"
25741   tst_proto_strcasecmp="unknown"
25742   tst_compi_strcasecmp="unknown"
25743   tst_allow_strcasecmp="unknown"
25744   #
25745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
25746 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
25747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h.  */
25749
25750
25751 #define strcasecmp innocuous_strcasecmp
25752 #ifdef __STDC__
25753 # include <limits.h>
25754 #else
25755 # include <assert.h>
25756 #endif
25757 #undef strcasecmp
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 char strcasecmp ();
25762 #if defined __stub_strcasecmp || defined __stub___strcasecmp
25763 choke me
25764 #endif
25765
25766 int main (void)
25767 {
25768 return strcasecmp ();
25769  ;
25770  return 0;
25771 }
25772
25773 _ACEOF
25774 if ac_fn_c_try_link "$LINENO"; then :
25775
25776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25777 $as_echo "yes" >&6; }
25778     tst_links_strcasecmp="yes"
25779
25780 else
25781
25782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25783 $as_echo "no" >&6; }
25784     tst_links_strcasecmp="no"
25785
25786 fi
25787 rm -f core conftest.err conftest.$ac_objext \
25788     conftest$ac_exeext conftest.$ac_ext
25789   #
25790   if test "$tst_links_strcasecmp" = "yes"; then
25791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
25792 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
25793     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h.  */
25795
25796       $cares_includes_string
25797
25798 _ACEOF
25799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25800   $EGREP "strcasecmp" >/dev/null 2>&1; then :
25801
25802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25803 $as_echo "yes" >&6; }
25804       tst_proto_strcasecmp="yes"
25805
25806 else
25807
25808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25809 $as_echo "no" >&6; }
25810       tst_proto_strcasecmp="no"
25811
25812 fi
25813 rm -f conftest*
25814
25815   fi
25816   #
25817   if test "$tst_proto_strcasecmp" = "yes"; then
25818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
25819 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
25820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25821 /* end confdefs.h.  */
25822
25823
25824         $cares_includes_string
25825
25826 int main (void)
25827 {
25828
25829         if(0 != strcasecmp(0, 0))
25830           return 1;
25831
25832  ;
25833  return 0;
25834 }
25835
25836 _ACEOF
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838
25839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25840 $as_echo "yes" >&6; }
25841       tst_compi_strcasecmp="yes"
25842
25843 else
25844
25845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25846 $as_echo "no" >&6; }
25847       tst_compi_strcasecmp="no"
25848
25849 fi
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851   fi
25852   #
25853   if test "$tst_compi_strcasecmp" = "yes"; then
25854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
25855 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
25856     if test "x$cares_disallow_strcasecmp" != "xyes"; then
25857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25858 $as_echo "yes" >&6; }
25859       tst_allow_strcasecmp="yes"
25860     else
25861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25862 $as_echo "no" >&6; }
25863       tst_allow_strcasecmp="no"
25864     fi
25865   fi
25866   #
25867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
25868 $as_echo_n "checking if strcasecmp might be used... " >&6; }
25869   if test "$tst_links_strcasecmp" = "yes" &&
25870      test "$tst_proto_strcasecmp" = "yes" &&
25871      test "$tst_compi_strcasecmp" = "yes" &&
25872      test "$tst_allow_strcasecmp" = "yes"; then
25873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25874 $as_echo "yes" >&6; }
25875
25876 cat >>confdefs.h <<_ACEOF
25877 #define HAVE_STRCASECMP 1
25878 _ACEOF
25879
25880     ac_cv_func_strcasecmp="yes"
25881   else
25882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883 $as_echo "no" >&6; }
25884     ac_cv_func_strcasecmp="no"
25885   fi
25886
25887
25888     #
25889   tst_links_strcmpi="unknown"
25890   tst_proto_strcmpi="unknown"
25891   tst_compi_strcmpi="unknown"
25892   tst_allow_strcmpi="unknown"
25893   #
25894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
25895 $as_echo_n "checking if strcmpi can be linked... " >&6; }
25896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h.  */
25898
25899
25900 #define strcmpi innocuous_strcmpi
25901 #ifdef __STDC__
25902 # include <limits.h>
25903 #else
25904 # include <assert.h>
25905 #endif
25906 #undef strcmpi
25907 #ifdef __cplusplus
25908 extern "C"
25909 #endif
25910 char strcmpi ();
25911 #if defined __stub_strcmpi || defined __stub___strcmpi
25912 choke me
25913 #endif
25914
25915 int main (void)
25916 {
25917 return strcmpi ();
25918  ;
25919  return 0;
25920 }
25921
25922 _ACEOF
25923 if ac_fn_c_try_link "$LINENO"; then :
25924
25925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25926 $as_echo "yes" >&6; }
25927     tst_links_strcmpi="yes"
25928
25929 else
25930
25931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25932 $as_echo "no" >&6; }
25933     tst_links_strcmpi="no"
25934
25935 fi
25936 rm -f core conftest.err conftest.$ac_objext \
25937     conftest$ac_exeext conftest.$ac_ext
25938   #
25939   if test "$tst_links_strcmpi" = "yes"; then
25940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
25941 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
25942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25943 /* end confdefs.h.  */
25944
25945       $cares_includes_string
25946
25947 _ACEOF
25948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25949   $EGREP "strcmpi" >/dev/null 2>&1; then :
25950
25951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25952 $as_echo "yes" >&6; }
25953       tst_proto_strcmpi="yes"
25954
25955 else
25956
25957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25958 $as_echo "no" >&6; }
25959       tst_proto_strcmpi="no"
25960
25961 fi
25962 rm -f conftest*
25963
25964   fi
25965   #
25966   if test "$tst_proto_strcmpi" = "yes"; then
25967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
25968 $as_echo_n "checking if strcmpi is compilable... " >&6; }
25969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h.  */
25971
25972
25973         $cares_includes_string
25974
25975 int main (void)
25976 {
25977
25978         if(0 != strcmpi(0, 0))
25979           return 1;
25980
25981  ;
25982  return 0;
25983 }
25984
25985 _ACEOF
25986 if ac_fn_c_try_compile "$LINENO"; then :
25987
25988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25989 $as_echo "yes" >&6; }
25990       tst_compi_strcmpi="yes"
25991
25992 else
25993
25994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25996       tst_compi_strcmpi="no"
25997
25998 fi
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000   fi
26001   #
26002   if test "$tst_compi_strcmpi" = "yes"; then
26003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
26004 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
26005     if test "x$cares_disallow_strcmpi" != "xyes"; then
26006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26007 $as_echo "yes" >&6; }
26008       tst_allow_strcmpi="yes"
26009     else
26010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26011 $as_echo "no" >&6; }
26012       tst_allow_strcmpi="no"
26013     fi
26014   fi
26015   #
26016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
26017 $as_echo_n "checking if strcmpi might be used... " >&6; }
26018   if test "$tst_links_strcmpi" = "yes" &&
26019      test "$tst_proto_strcmpi" = "yes" &&
26020      test "$tst_compi_strcmpi" = "yes" &&
26021      test "$tst_allow_strcmpi" = "yes"; then
26022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26023 $as_echo "yes" >&6; }
26024
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_STRCMPI 1
26027 _ACEOF
26028
26029     ac_cv_func_strcmpi="yes"
26030   else
26031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26032 $as_echo "no" >&6; }
26033     ac_cv_func_strcmpi="no"
26034   fi
26035
26036
26037     #
26038   tst_links_strdup="unknown"
26039   tst_proto_strdup="unknown"
26040   tst_compi_strdup="unknown"
26041   tst_allow_strdup="unknown"
26042   #
26043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
26044 $as_echo_n "checking if strdup can be linked... " >&6; }
26045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046 /* end confdefs.h.  */
26047
26048
26049 #define strdup innocuous_strdup
26050 #ifdef __STDC__
26051 # include <limits.h>
26052 #else
26053 # include <assert.h>
26054 #endif
26055 #undef strdup
26056 #ifdef __cplusplus
26057 extern "C"
26058 #endif
26059 char strdup ();
26060 #if defined __stub_strdup || defined __stub___strdup
26061 choke me
26062 #endif
26063
26064 int main (void)
26065 {
26066 return strdup ();
26067  ;
26068  return 0;
26069 }
26070
26071 _ACEOF
26072 if ac_fn_c_try_link "$LINENO"; then :
26073
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26075 $as_echo "yes" >&6; }
26076     tst_links_strdup="yes"
26077
26078 else
26079
26080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26081 $as_echo "no" >&6; }
26082     tst_links_strdup="no"
26083
26084 fi
26085 rm -f core conftest.err conftest.$ac_objext \
26086     conftest$ac_exeext conftest.$ac_ext
26087   #
26088   if test "$tst_links_strdup" = "yes"; then
26089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
26090 $as_echo_n "checking if strdup is prototyped... " >&6; }
26091     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h.  */
26093
26094       $cares_includes_string
26095
26096 _ACEOF
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098   $EGREP "strdup" >/dev/null 2>&1; then :
26099
26100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26101 $as_echo "yes" >&6; }
26102       tst_proto_strdup="yes"
26103
26104 else
26105
26106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26108       tst_proto_strdup="no"
26109
26110 fi
26111 rm -f conftest*
26112
26113   fi
26114   #
26115   if test "$tst_proto_strdup" = "yes"; then
26116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
26117 $as_echo_n "checking if strdup is compilable... " >&6; }
26118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119 /* end confdefs.h.  */
26120
26121
26122         $cares_includes_string
26123
26124 int main (void)
26125 {
26126
26127         if(0 != strdup(0))
26128           return 1;
26129
26130  ;
26131  return 0;
26132 }
26133
26134 _ACEOF
26135 if ac_fn_c_try_compile "$LINENO"; then :
26136
26137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26138 $as_echo "yes" >&6; }
26139       tst_compi_strdup="yes"
26140
26141 else
26142
26143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26144 $as_echo "no" >&6; }
26145       tst_compi_strdup="no"
26146
26147 fi
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149   fi
26150   #
26151   if test "$tst_compi_strdup" = "yes"; then
26152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
26153 $as_echo_n "checking if strdup usage allowed... " >&6; }
26154     if test "x$cares_disallow_strdup" != "xyes"; then
26155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26156 $as_echo "yes" >&6; }
26157       tst_allow_strdup="yes"
26158     else
26159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26160 $as_echo "no" >&6; }
26161       tst_allow_strdup="no"
26162     fi
26163   fi
26164   #
26165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
26166 $as_echo_n "checking if strdup might be used... " >&6; }
26167   if test "$tst_links_strdup" = "yes" &&
26168      test "$tst_proto_strdup" = "yes" &&
26169      test "$tst_compi_strdup" = "yes" &&
26170      test "$tst_allow_strdup" = "yes"; then
26171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26172 $as_echo "yes" >&6; }
26173
26174 cat >>confdefs.h <<_ACEOF
26175 #define HAVE_STRDUP 1
26176 _ACEOF
26177
26178     ac_cv_func_strdup="yes"
26179   else
26180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26181 $as_echo "no" >&6; }
26182     ac_cv_func_strdup="no"
26183   fi
26184
26185
26186     #
26187   tst_links_stricmp="unknown"
26188   tst_proto_stricmp="unknown"
26189   tst_compi_stricmp="unknown"
26190   tst_allow_stricmp="unknown"
26191   #
26192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
26193 $as_echo_n "checking if stricmp can be linked... " >&6; }
26194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26195 /* end confdefs.h.  */
26196
26197
26198 #define stricmp innocuous_stricmp
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204 #undef stricmp
26205 #ifdef __cplusplus
26206 extern "C"
26207 #endif
26208 char stricmp ();
26209 #if defined __stub_stricmp || defined __stub___stricmp
26210 choke me
26211 #endif
26212
26213 int main (void)
26214 {
26215 return stricmp ();
26216  ;
26217  return 0;
26218 }
26219
26220 _ACEOF
26221 if ac_fn_c_try_link "$LINENO"; then :
26222
26223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26224 $as_echo "yes" >&6; }
26225     tst_links_stricmp="yes"
26226
26227 else
26228
26229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26230 $as_echo "no" >&6; }
26231     tst_links_stricmp="no"
26232
26233 fi
26234 rm -f core conftest.err conftest.$ac_objext \
26235     conftest$ac_exeext conftest.$ac_ext
26236   #
26237   if test "$tst_links_stricmp" = "yes"; then
26238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
26239 $as_echo_n "checking if stricmp is prototyped... " >&6; }
26240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241 /* end confdefs.h.  */
26242
26243       $cares_includes_string
26244
26245 _ACEOF
26246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26247   $EGREP "stricmp" >/dev/null 2>&1; then :
26248
26249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26250 $as_echo "yes" >&6; }
26251       tst_proto_stricmp="yes"
26252
26253 else
26254
26255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26256 $as_echo "no" >&6; }
26257       tst_proto_stricmp="no"
26258
26259 fi
26260 rm -f conftest*
26261
26262   fi
26263   #
26264   if test "$tst_proto_stricmp" = "yes"; then
26265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
26266 $as_echo_n "checking if stricmp is compilable... " >&6; }
26267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h.  */
26269
26270
26271         $cares_includes_string
26272
26273 int main (void)
26274 {
26275
26276         if(0 != stricmp(0, 0))
26277           return 1;
26278
26279  ;
26280  return 0;
26281 }
26282
26283 _ACEOF
26284 if ac_fn_c_try_compile "$LINENO"; then :
26285
26286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26287 $as_echo "yes" >&6; }
26288       tst_compi_stricmp="yes"
26289
26290 else
26291
26292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26293 $as_echo "no" >&6; }
26294       tst_compi_stricmp="no"
26295
26296 fi
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298   fi
26299   #
26300   if test "$tst_compi_stricmp" = "yes"; then
26301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
26302 $as_echo_n "checking if stricmp usage allowed... " >&6; }
26303     if test "x$cares_disallow_stricmp" != "xyes"; then
26304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26305 $as_echo "yes" >&6; }
26306       tst_allow_stricmp="yes"
26307     else
26308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26309 $as_echo "no" >&6; }
26310       tst_allow_stricmp="no"
26311     fi
26312   fi
26313   #
26314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
26315 $as_echo_n "checking if stricmp might be used... " >&6; }
26316   if test "$tst_links_stricmp" = "yes" &&
26317      test "$tst_proto_stricmp" = "yes" &&
26318      test "$tst_compi_stricmp" = "yes" &&
26319      test "$tst_allow_stricmp" = "yes"; then
26320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26321 $as_echo "yes" >&6; }
26322
26323 cat >>confdefs.h <<_ACEOF
26324 #define HAVE_STRICMP 1
26325 _ACEOF
26326
26327     ac_cv_func_stricmp="yes"
26328   else
26329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26330 $as_echo "no" >&6; }
26331     ac_cv_func_stricmp="no"
26332   fi
26333
26334
26335     #
26336   tst_links_strncasecmp="unknown"
26337   tst_proto_strncasecmp="unknown"
26338   tst_compi_strncasecmp="unknown"
26339   tst_allow_strncasecmp="unknown"
26340   #
26341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
26342 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
26343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344 /* end confdefs.h.  */
26345
26346
26347 #define strncasecmp innocuous_strncasecmp
26348 #ifdef __STDC__
26349 # include <limits.h>
26350 #else
26351 # include <assert.h>
26352 #endif
26353 #undef strncasecmp
26354 #ifdef __cplusplus
26355 extern "C"
26356 #endif
26357 char strncasecmp ();
26358 #if defined __stub_strncasecmp || defined __stub___strncasecmp
26359 choke me
26360 #endif
26361
26362 int main (void)
26363 {
26364 return strncasecmp ();
26365  ;
26366  return 0;
26367 }
26368
26369 _ACEOF
26370 if ac_fn_c_try_link "$LINENO"; then :
26371
26372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26373 $as_echo "yes" >&6; }
26374     tst_links_strncasecmp="yes"
26375
26376 else
26377
26378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379 $as_echo "no" >&6; }
26380     tst_links_strncasecmp="no"
26381
26382 fi
26383 rm -f core conftest.err conftest.$ac_objext \
26384     conftest$ac_exeext conftest.$ac_ext
26385   #
26386   if test "$tst_links_strncasecmp" = "yes"; then
26387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
26388 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
26389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26390 /* end confdefs.h.  */
26391
26392       $cares_includes_string
26393
26394 _ACEOF
26395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26396   $EGREP "strncasecmp" >/dev/null 2>&1; then :
26397
26398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26399 $as_echo "yes" >&6; }
26400       tst_proto_strncasecmp="yes"
26401
26402 else
26403
26404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26405 $as_echo "no" >&6; }
26406       tst_proto_strncasecmp="no"
26407
26408 fi
26409 rm -f conftest*
26410
26411   fi
26412   #
26413   if test "$tst_proto_strncasecmp" = "yes"; then
26414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
26415 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
26416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26417 /* end confdefs.h.  */
26418
26419
26420         $cares_includes_string
26421
26422 int main (void)
26423 {
26424
26425         if(0 != strncasecmp(0, 0, 0))
26426           return 1;
26427
26428  ;
26429  return 0;
26430 }
26431
26432 _ACEOF
26433 if ac_fn_c_try_compile "$LINENO"; then :
26434
26435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26436 $as_echo "yes" >&6; }
26437       tst_compi_strncasecmp="yes"
26438
26439 else
26440
26441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26442 $as_echo "no" >&6; }
26443       tst_compi_strncasecmp="no"
26444
26445 fi
26446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26447   fi
26448   #
26449   if test "$tst_compi_strncasecmp" = "yes"; then
26450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
26451 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
26452     if test "x$cares_disallow_strncasecmp" != "xyes"; then
26453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26454 $as_echo "yes" >&6; }
26455       tst_allow_strncasecmp="yes"
26456     else
26457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26458 $as_echo "no" >&6; }
26459       tst_allow_strncasecmp="no"
26460     fi
26461   fi
26462   #
26463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
26464 $as_echo_n "checking if strncasecmp might be used... " >&6; }
26465   if test "$tst_links_strncasecmp" = "yes" &&
26466      test "$tst_proto_strncasecmp" = "yes" &&
26467      test "$tst_compi_strncasecmp" = "yes" &&
26468      test "$tst_allow_strncasecmp" = "yes"; then
26469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26470 $as_echo "yes" >&6; }
26471
26472 cat >>confdefs.h <<_ACEOF
26473 #define HAVE_STRNCASECMP 1
26474 _ACEOF
26475
26476     ac_cv_func_strncasecmp="yes"
26477   else
26478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26479 $as_echo "no" >&6; }
26480     ac_cv_func_strncasecmp="no"
26481   fi
26482
26483
26484     #
26485   tst_links_strncmpi="unknown"
26486   tst_proto_strncmpi="unknown"
26487   tst_compi_strncmpi="unknown"
26488   tst_allow_strncmpi="unknown"
26489   #
26490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
26491 $as_echo_n "checking if strncmpi can be linked... " >&6; }
26492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h.  */
26494
26495
26496 #define strncmpi innocuous_strncmpi
26497 #ifdef __STDC__
26498 # include <limits.h>
26499 #else
26500 # include <assert.h>
26501 #endif
26502 #undef strncmpi
26503 #ifdef __cplusplus
26504 extern "C"
26505 #endif
26506 char strncmpi ();
26507 #if defined __stub_strncmpi || defined __stub___strncmpi
26508 choke me
26509 #endif
26510
26511 int main (void)
26512 {
26513 return strncmpi ();
26514  ;
26515  return 0;
26516 }
26517
26518 _ACEOF
26519 if ac_fn_c_try_link "$LINENO"; then :
26520
26521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26522 $as_echo "yes" >&6; }
26523     tst_links_strncmpi="yes"
26524
26525 else
26526
26527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26528 $as_echo "no" >&6; }
26529     tst_links_strncmpi="no"
26530
26531 fi
26532 rm -f core conftest.err conftest.$ac_objext \
26533     conftest$ac_exeext conftest.$ac_ext
26534   #
26535   if test "$tst_links_strncmpi" = "yes"; then
26536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
26537 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
26538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26539 /* end confdefs.h.  */
26540
26541       $cares_includes_string
26542
26543 _ACEOF
26544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26545   $EGREP "strncmpi" >/dev/null 2>&1; then :
26546
26547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26548 $as_echo "yes" >&6; }
26549       tst_proto_strncmpi="yes"
26550
26551 else
26552
26553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26554 $as_echo "no" >&6; }
26555       tst_proto_strncmpi="no"
26556
26557 fi
26558 rm -f conftest*
26559
26560   fi
26561   #
26562   if test "$tst_proto_strncmpi" = "yes"; then
26563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
26564 $as_echo_n "checking if strncmpi is compilable... " >&6; }
26565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h.  */
26567
26568
26569         $cares_includes_string
26570
26571 int main (void)
26572 {
26573
26574         if(0 != strncmpi(0, 0))
26575           return 1;
26576
26577  ;
26578  return 0;
26579 }
26580
26581 _ACEOF
26582 if ac_fn_c_try_compile "$LINENO"; then :
26583
26584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26585 $as_echo "yes" >&6; }
26586       tst_compi_strncmpi="yes"
26587
26588 else
26589
26590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26591 $as_echo "no" >&6; }
26592       tst_compi_strncmpi="no"
26593
26594 fi
26595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596   fi
26597   #
26598   if test "$tst_compi_strncmpi" = "yes"; then
26599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
26600 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
26601     if test "x$cares_disallow_strncmpi" != "xyes"; then
26602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26603 $as_echo "yes" >&6; }
26604       tst_allow_strncmpi="yes"
26605     else
26606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26607 $as_echo "no" >&6; }
26608       tst_allow_strncmpi="no"
26609     fi
26610   fi
26611   #
26612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
26613 $as_echo_n "checking if strncmpi might be used... " >&6; }
26614   if test "$tst_links_strncmpi" = "yes" &&
26615      test "$tst_proto_strncmpi" = "yes" &&
26616      test "$tst_compi_strncmpi" = "yes" &&
26617      test "$tst_allow_strncmpi" = "yes"; then
26618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26619 $as_echo "yes" >&6; }
26620
26621 cat >>confdefs.h <<_ACEOF
26622 #define HAVE_STRNCMPI 1
26623 _ACEOF
26624
26625     ac_cv_func_strncmpi="yes"
26626   else
26627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26628 $as_echo "no" >&6; }
26629     ac_cv_func_strncmpi="no"
26630   fi
26631
26632
26633     #
26634   tst_links_strnicmp="unknown"
26635   tst_proto_strnicmp="unknown"
26636   tst_compi_strnicmp="unknown"
26637   tst_allow_strnicmp="unknown"
26638   #
26639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
26640 $as_echo_n "checking if strnicmp can be linked... " >&6; }
26641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26642 /* end confdefs.h.  */
26643
26644
26645 #define strnicmp innocuous_strnicmp
26646 #ifdef __STDC__
26647 # include <limits.h>
26648 #else
26649 # include <assert.h>
26650 #endif
26651 #undef strnicmp
26652 #ifdef __cplusplus
26653 extern "C"
26654 #endif
26655 char strnicmp ();
26656 #if defined __stub_strnicmp || defined __stub___strnicmp
26657 choke me
26658 #endif
26659
26660 int main (void)
26661 {
26662 return strnicmp ();
26663  ;
26664  return 0;
26665 }
26666
26667 _ACEOF
26668 if ac_fn_c_try_link "$LINENO"; then :
26669
26670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26671 $as_echo "yes" >&6; }
26672     tst_links_strnicmp="yes"
26673
26674 else
26675
26676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677 $as_echo "no" >&6; }
26678     tst_links_strnicmp="no"
26679
26680 fi
26681 rm -f core conftest.err conftest.$ac_objext \
26682     conftest$ac_exeext conftest.$ac_ext
26683   #
26684   if test "$tst_links_strnicmp" = "yes"; then
26685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
26686 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
26687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26688 /* end confdefs.h.  */
26689
26690       $cares_includes_string
26691
26692 _ACEOF
26693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26694   $EGREP "strnicmp" >/dev/null 2>&1; then :
26695
26696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26697 $as_echo "yes" >&6; }
26698       tst_proto_strnicmp="yes"
26699
26700 else
26701
26702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26703 $as_echo "no" >&6; }
26704       tst_proto_strnicmp="no"
26705
26706 fi
26707 rm -f conftest*
26708
26709   fi
26710   #
26711   if test "$tst_proto_strnicmp" = "yes"; then
26712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
26713 $as_echo_n "checking if strnicmp is compilable... " >&6; }
26714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h.  */
26716
26717
26718         $cares_includes_string
26719
26720 int main (void)
26721 {
26722
26723         if(0 != strnicmp(0, 0))
26724           return 1;
26725
26726  ;
26727  return 0;
26728 }
26729
26730 _ACEOF
26731 if ac_fn_c_try_compile "$LINENO"; then :
26732
26733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26735       tst_compi_strnicmp="yes"
26736
26737 else
26738
26739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26740 $as_echo "no" >&6; }
26741       tst_compi_strnicmp="no"
26742
26743 fi
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745   fi
26746   #
26747   if test "$tst_compi_strnicmp" = "yes"; then
26748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
26749 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
26750     if test "x$cares_disallow_strnicmp" != "xyes"; then
26751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26752 $as_echo "yes" >&6; }
26753       tst_allow_strnicmp="yes"
26754     else
26755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26756 $as_echo "no" >&6; }
26757       tst_allow_strnicmp="no"
26758     fi
26759   fi
26760   #
26761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
26762 $as_echo_n "checking if strnicmp might be used... " >&6; }
26763   if test "$tst_links_strnicmp" = "yes" &&
26764      test "$tst_proto_strnicmp" = "yes" &&
26765      test "$tst_compi_strnicmp" = "yes" &&
26766      test "$tst_allow_strnicmp" = "yes"; then
26767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26768 $as_echo "yes" >&6; }
26769
26770 cat >>confdefs.h <<_ACEOF
26771 #define HAVE_STRNICMP 1
26772 _ACEOF
26773
26774     ac_cv_func_strnicmp="yes"
26775   else
26776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26777 $as_echo "no" >&6; }
26778     ac_cv_func_strnicmp="no"
26779   fi
26780
26781
26782 cares_includes_sys_uio="\
26783 /* includes start */
26784 #ifdef HAVE_SYS_TYPES_H
26785 #  include <sys/types.h>
26786 #endif
26787 #ifdef HAVE_SYS_UIO_H
26788 #  include <sys/uio.h>
26789 #endif
26790 /* includes end */"
26791   for ac_header in sys/types.h sys/uio.h
26792 do :
26793   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
26795 "
26796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26797   cat >>confdefs.h <<_ACEOF
26798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26799 _ACEOF
26800
26801 fi
26802
26803 done
26804
26805
26806
26807     #
26808   tst_links_writev="unknown"
26809   tst_proto_writev="unknown"
26810   tst_compi_writev="unknown"
26811   tst_allow_writev="unknown"
26812   #
26813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
26814 $as_echo_n "checking if writev can be linked... " >&6; }
26815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26816 /* end confdefs.h.  */
26817
26818
26819 #define writev innocuous_writev
26820 #ifdef __STDC__
26821 # include <limits.h>
26822 #else
26823 # include <assert.h>
26824 #endif
26825 #undef writev
26826 #ifdef __cplusplus
26827 extern "C"
26828 #endif
26829 char writev ();
26830 #if defined __stub_writev || defined __stub___writev
26831 choke me
26832 #endif
26833
26834 int main (void)
26835 {
26836 return writev ();
26837  ;
26838  return 0;
26839 }
26840
26841 _ACEOF
26842 if ac_fn_c_try_link "$LINENO"; then :
26843
26844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26845 $as_echo "yes" >&6; }
26846     tst_links_writev="yes"
26847
26848 else
26849
26850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26851 $as_echo "no" >&6; }
26852     tst_links_writev="no"
26853
26854 fi
26855 rm -f core conftest.err conftest.$ac_objext \
26856     conftest$ac_exeext conftest.$ac_ext
26857   #
26858   if test "$tst_links_writev" = "yes"; then
26859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
26860 $as_echo_n "checking if writev is prototyped... " >&6; }
26861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h.  */
26863
26864       $cares_includes_sys_uio
26865
26866 _ACEOF
26867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26868   $EGREP "writev" >/dev/null 2>&1; then :
26869
26870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26871 $as_echo "yes" >&6; }
26872       tst_proto_writev="yes"
26873
26874 else
26875
26876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877 $as_echo "no" >&6; }
26878       tst_proto_writev="no"
26879
26880 fi
26881 rm -f conftest*
26882
26883   fi
26884   #
26885   if test "$tst_proto_writev" = "yes"; then
26886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
26887 $as_echo_n "checking if writev is compilable... " >&6; }
26888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26889 /* end confdefs.h.  */
26890
26891
26892         $cares_includes_sys_uio
26893
26894 int main (void)
26895 {
26896
26897         if(0 != writev(0, 0, 0))
26898           return 1;
26899
26900  ;
26901  return 0;
26902 }
26903
26904 _ACEOF
26905 if ac_fn_c_try_compile "$LINENO"; then :
26906
26907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26908 $as_echo "yes" >&6; }
26909       tst_compi_writev="yes"
26910
26911 else
26912
26913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26914 $as_echo "no" >&6; }
26915       tst_compi_writev="no"
26916
26917 fi
26918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919   fi
26920   #
26921   if test "$tst_compi_writev" = "yes"; then
26922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
26923 $as_echo_n "checking if writev usage allowed... " >&6; }
26924     if test "x$cares_disallow_writev" != "xyes"; then
26925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26926 $as_echo "yes" >&6; }
26927       tst_allow_writev="yes"
26928     else
26929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26930 $as_echo "no" >&6; }
26931       tst_allow_writev="no"
26932     fi
26933   fi
26934   #
26935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
26936 $as_echo_n "checking if writev might be used... " >&6; }
26937   if test "$tst_links_writev" = "yes" &&
26938      test "$tst_proto_writev" = "yes" &&
26939      test "$tst_compi_writev" = "yes" &&
26940      test "$tst_allow_writev" = "yes"; then
26941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26942 $as_echo "yes" >&6; }
26943
26944 cat >>confdefs.h <<_ACEOF
26945 #define HAVE_WRITEV 1
26946 _ACEOF
26947
26948     ac_cv_func_writev="yes"
26949   else
26950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26951 $as_echo "no" >&6; }
26952     ac_cv_func_writev="no"
26953   fi
26954
26955
26956
26957
26958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
26959 $as_echo_n "checking for PF_INET6... " >&6; }
26960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h.  */
26962
26963
26964 #undef inline
26965 #ifdef HAVE_WINDOWS_H
26966 #ifndef WIN32_LEAN_AND_MEAN
26967 #define WIN32_LEAN_AND_MEAN
26968 #endif
26969 #include <windows.h>
26970 #ifdef HAVE_WINSOCK2_H
26971 #include <winsock2.h>
26972 #endif
26973 #else
26974 #ifdef HAVE_SYS_TYPES_H
26975 #include <sys/types.h>
26976 #endif
26977 #ifdef HAVE_SYS_SOCKET_H
26978 #include <sys/socket.h>
26979 #endif
26980 #endif
26981
26982
26983       #ifdef PF_INET6
26984         VARIABLEWASDEFINED
26985       #else
26986         NJET
26987       #endif
26988
26989 _ACEOF
26990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26991   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
26992   ac_constant="yes"
26993 else
26994   ac_constant="no"
26995
26996 fi
26997 rm -f conftest*
26998
26999   if test "$ac_constant" = "yes" ; then
27000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27001 $as_echo "yes" >&6; }
27002
27003 cat >>confdefs.h <<_ACEOF
27004 #define HAVE_PF_INET6 1
27005 _ACEOF
27006
27007
27008   else
27009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27010 $as_echo "no" >&6; }
27011
27012   fi
27013
27014
27015
27016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
27017 $as_echo_n "checking for AF_INET6... " >&6; }
27018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019 /* end confdefs.h.  */
27020
27021
27022 #undef inline
27023 #ifdef HAVE_WINDOWS_H
27024 #ifndef WIN32_LEAN_AND_MEAN
27025 #define WIN32_LEAN_AND_MEAN
27026 #endif
27027 #include <windows.h>
27028 #ifdef HAVE_WINSOCK2_H
27029 #include <winsock2.h>
27030 #endif
27031 #else
27032 #ifdef HAVE_SYS_TYPES_H
27033 #include <sys/types.h>
27034 #endif
27035 #ifdef HAVE_SYS_SOCKET_H
27036 #include <sys/socket.h>
27037 #endif
27038 #endif
27039
27040
27041       #ifdef AF_INET6
27042         VARIABLEWASDEFINED
27043       #else
27044         NJET
27045       #endif
27046
27047 _ACEOF
27048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27049   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
27050   ac_constant="yes"
27051 else
27052   ac_constant="no"
27053
27054 fi
27055 rm -f conftest*
27056
27057   if test "$ac_constant" = "yes" ; then
27058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27059 $as_echo "yes" >&6; }
27060
27061 cat >>confdefs.h <<_ACEOF
27062 #define HAVE_AF_INET6 1
27063 _ACEOF
27064
27065
27066   else
27067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27069
27070   fi
27071
27072
27073
27074
27075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
27076 $as_echo_n "checking for struct in6_addr... " >&6; }
27077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h.  */
27079
27080 #undef inline
27081 #ifdef HAVE_WINDOWS_H
27082 #ifndef WIN32_LEAN_AND_MEAN
27083 #define WIN32_LEAN_AND_MEAN
27084 #endif
27085 #include <windows.h>
27086 #ifdef HAVE_WINSOCK2_H
27087 #include <winsock2.h>
27088 #ifdef HAVE_WS2TCPIP_H
27089 #include <ws2tcpip.h>
27090 #endif
27091 #endif
27092 #else
27093 #ifdef HAVE_SYS_TYPES_H
27094 #include <sys/types.h>
27095 #endif
27096 #ifdef HAVE_NETINET_IN_H
27097 #include <netinet/in.h>
27098 #endif
27099 #endif
27100
27101 int main (void)
27102 {
27103
27104       struct in6_addr struct_instance;
27105
27106  ;
27107  return 0;
27108 }
27109 _ACEOF
27110 if ac_fn_c_try_compile "$LINENO"; then :
27111   ac_struct="yes"
27112 else
27113   ac_found="no"
27114 fi
27115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116   if test "$ac_struct" = "yes" ; then
27117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27118 $as_echo "yes" >&6; }
27119
27120 cat >>confdefs.h <<_ACEOF
27121 #define HAVE_STRUCT_IN6_ADDR 1
27122 _ACEOF
27123
27124
27125   else
27126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27128
27129   fi
27130
27131
27132
27133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
27134 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
27135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27136 /* end confdefs.h.  */
27137
27138 #undef inline
27139 #ifdef HAVE_WINDOWS_H
27140 #ifndef WIN32_LEAN_AND_MEAN
27141 #define WIN32_LEAN_AND_MEAN
27142 #endif
27143 #include <windows.h>
27144 #ifdef HAVE_WINSOCK2_H
27145 #include <winsock2.h>
27146 #ifdef HAVE_WS2TCPIP_H
27147 #include <ws2tcpip.h>
27148 #endif
27149 #endif
27150 #else
27151 #ifdef HAVE_SYS_TYPES_H
27152 #include <sys/types.h>
27153 #endif
27154 #ifdef HAVE_NETINET_IN_H
27155 #include <netinet/in.h>
27156 #endif
27157 #endif
27158
27159 int main (void)
27160 {
27161
27162       struct sockaddr_in6 struct_instance;
27163
27164  ;
27165  return 0;
27166 }
27167 _ACEOF
27168 if ac_fn_c_try_compile "$LINENO"; then :
27169   ac_struct="yes"
27170 else
27171   ac_found="no"
27172 fi
27173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174   if test "$ac_struct" = "yes" ; then
27175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27176 $as_echo "yes" >&6; }
27177
27178 cat >>confdefs.h <<_ACEOF
27179 #define HAVE_STRUCT_SOCKADDR_IN6 1
27180 _ACEOF
27181  ac_have_sockaddr_in6=yes
27182
27183   else
27184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185 $as_echo "no" >&6; }
27186
27187   fi
27188
27189
27190 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
27191 #undef inline
27192 #ifdef HAVE_WINDOWS_H
27193 #ifndef WIN32_LEAN_AND_MEAN
27194 #define WIN32_LEAN_AND_MEAN
27195 #endif
27196 #include <windows.h>
27197 #ifdef HAVE_WINSOCK2_H
27198 #include <winsock2.h>
27199 #ifdef HAVE_WS2TCPIP_H
27200 #include <ws2tcpip.h>
27201 #endif
27202 #endif
27203 #else
27204 #ifdef HAVE_SYS_TYPES_H
27205 #include <sys/types.h>
27206 #endif
27207 #ifdef HAVE_NETINET_IN_H
27208 #include <netinet/in.h>
27209 #endif
27210 #endif
27211
27212 "
27213 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
27214
27215 cat >>confdefs.h <<_ACEOF
27216 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
27217 _ACEOF
27218
27219
27220 fi
27221
27222
27223 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
27224 #undef inline
27225 #ifdef HAVE_WINDOWS_H
27226 #ifndef WIN32_LEAN_AND_MEAN
27227 #define WIN32_LEAN_AND_MEAN
27228 #endif
27229 #include <windows.h>
27230 #ifdef HAVE_WINSOCK2_H
27231 #include <winsock2.h>
27232 #ifdef HAVE_WS2TCPIP_H
27233 #include <ws2tcpip.h>
27234 #endif
27235 #endif
27236 #else
27237 #ifdef HAVE_SYS_TYPES_H
27238 #include <sys/types.h>
27239 #endif
27240 #ifdef HAVE_NETINET_IN_H
27241 #include <netinet/in.h>
27242 #endif
27243 #ifdef HAVE_SYS_SOCKET_H
27244 #include <sys/socket.h>
27245 #endif
27246 #ifdef HAVE_NETDB_H
27247 #include <netdb.h>
27248 #endif
27249 #endif
27250
27251
27252 "
27253 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
27254
27255 cat >>confdefs.h <<_ACEOF
27256 #define HAVE_STRUCT_ADDRINFO 1
27257 _ACEOF
27258
27259 fi
27260
27261
27262
27263 for ac_func in bitncmp \
27264   gettimeofday \
27265   if_indextoname
27266
27267 do :
27268   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27271   cat >>confdefs.h <<_ACEOF
27272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27273 _ACEOF
27274
27275
27276 else
27277
27278   func="$ac_func"
27279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
27280 $as_echo_n "checking deeper for $func... " >&6; }
27281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27282 /* end confdefs.h.  */
27283
27284
27285
27286 int main (void)
27287 {
27288
27289       $func ();
27290
27291  ;
27292  return 0;
27293 }
27294
27295 _ACEOF
27296 if ac_fn_c_try_link "$LINENO"; then :
27297
27298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27299 $as_echo "yes" >&6; }
27300     eval "ac_cv_func_$func=yes"
27301
27302 cat >>confdefs.h <<_ACEOF
27303 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
27304 _ACEOF
27305
27306
27307 else
27308
27309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27310 $as_echo "but still no" >&6; }
27311
27312 fi
27313 rm -f core conftest.err conftest.$ac_objext \
27314     conftest$ac_exeext conftest.$ac_ext
27315
27316 fi
27317 done
27318
27319
27320
27321 # The cast to long int works around a bug in the HP C Compiler
27322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27324 # This bug is HP SR number 8606223364.
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
27326 $as_echo_n "checking size of struct in6_addr... " >&6; }
27327 if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
27328   $as_echo_n "(cached) " >&6
27329 else
27330   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr"        "
27331 #undef inline
27332 #ifdef HAVE_WINDOWS_H
27333 #ifndef WIN32_LEAN_AND_MEAN
27334 #define WIN32_LEAN_AND_MEAN
27335 #endif
27336 #include <windows.h>
27337 #ifdef HAVE_WINSOCK2_H
27338 #include <winsock2.h>
27339 #ifdef HAVE_WS2TCPIP_H
27340 #include <ws2tcpip.h>
27341 #endif
27342 #endif
27343 #else
27344 #ifdef HAVE_SYS_TYPES_H
27345 #include <sys/types.h>
27346 #endif
27347 #ifdef HAVE_SYS_SOCKET_H
27348 #include <sys/socket.h>
27349 #endif
27350 #ifdef HAVE_NETINET_IN_H
27351 #include <netinet/in.h>
27352 #endif
27353 #endif
27354
27355
27356 "; then :
27357
27358 else
27359   if test "$ac_cv_type_struct_in6_addr" = yes; then
27360      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27362 as_fn_error 77 "cannot compute sizeof (struct in6_addr)
27363 See \`config.log' for more details" "$LINENO" 5; }
27364    else
27365      ac_cv_sizeof_struct_in6_addr=0
27366    fi
27367 fi
27368
27369 fi
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
27371 $as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
27372
27373
27374
27375 cat >>confdefs.h <<_ACEOF
27376 #define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
27377 _ACEOF
27378
27379
27380
27381 # The cast to long int works around a bug in the HP C Compiler
27382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27384 # This bug is HP SR number 8606223364.
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
27386 $as_echo_n "checking size of struct in_addr... " >&6; }
27387 if ${ac_cv_sizeof_struct_in_addr+:} false; then :
27388   $as_echo_n "(cached) " >&6
27389 else
27390   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr"        "
27391 #undef inline
27392 #ifdef HAVE_WINDOWS_H
27393 #ifndef WIN32_LEAN_AND_MEAN
27394 #define WIN32_LEAN_AND_MEAN
27395 #endif
27396 #include <windows.h>
27397 #ifdef HAVE_WINSOCK2_H
27398 #include <winsock2.h>
27399 #ifdef HAVE_WS2TCPIP_H
27400 #include <ws2tcpip.h>
27401 #endif
27402 #endif
27403 #else
27404 #ifdef HAVE_SYS_TYPES_H
27405 #include <sys/types.h>
27406 #endif
27407 #ifdef HAVE_SYS_SOCKET_H
27408 #include <sys/socket.h>
27409 #endif
27410 #ifdef HAVE_NETINET_IN_H
27411 #include <netinet/in.h>
27412 #endif
27413 #endif
27414
27415
27416 "; then :
27417
27418 else
27419   if test "$ac_cv_type_struct_in_addr" = yes; then
27420      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27422 as_fn_error 77 "cannot compute sizeof (struct in_addr)
27423 See \`config.log' for more details" "$LINENO" 5; }
27424    else
27425      ac_cv_sizeof_struct_in_addr=0
27426    fi
27427 fi
27428
27429 fi
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
27431 $as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
27432
27433
27434
27435 cat >>confdefs.h <<_ACEOF
27436 #define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
27437 _ACEOF
27438
27439
27440
27441
27442
27443     for ac_header in sys/types.h sys/socket.h netdb.h
27444 do :
27445   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27448   cat >>confdefs.h <<_ACEOF
27449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27450 _ACEOF
27451
27452 fi
27453
27454 done
27455
27456   #
27457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
27458 $as_echo_n "checking for getnameinfo... " >&6; }
27459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h.  */
27461
27462
27463 #define getnameinfo innocuous_getnameinfo
27464 #ifdef __STDC__
27465 # include <limits.h>
27466 #else
27467 # include <assert.h>
27468 #endif
27469 #undef getnameinfo
27470 #ifdef __cplusplus
27471 extern "C"
27472 #endif
27473 char getnameinfo ();
27474 #if defined __stub_getnameinfo || defined __stub___getnameinfo
27475 choke me
27476 #endif
27477
27478 int main (void)
27479 {
27480 return getnameinfo ();
27481  ;
27482  return 0;
27483 }
27484
27485 _ACEOF
27486 if ac_fn_c_try_link "$LINENO"; then :
27487
27488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27489 $as_echo "yes" >&6; }
27490     curl_cv_getnameinfo="yes"
27491
27492 else
27493
27494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27495 $as_echo "no" >&6; }
27496     curl_cv_getnameinfo="no"
27497
27498 fi
27499 rm -f core conftest.err conftest.$ac_objext \
27500     conftest$ac_exeext conftest.$ac_ext
27501   #
27502   if test "$curl_cv_getnameinfo" != "yes"; then
27503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
27504 $as_echo_n "checking deeper for getnameinfo... " >&6; }
27505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27506 /* end confdefs.h.  */
27507
27508
27509
27510 int main (void)
27511 {
27512
27513         getnameinfo();
27514
27515  ;
27516  return 0;
27517 }
27518
27519 _ACEOF
27520 if ac_fn_c_try_link "$LINENO"; then :
27521
27522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27523 $as_echo "yes" >&6; }
27524       curl_cv_getnameinfo="yes"
27525
27526 else
27527
27528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27529 $as_echo "but still no" >&6; }
27530       curl_cv_getnameinfo="no"
27531
27532 fi
27533 rm -f core conftest.err conftest.$ac_objext \
27534     conftest$ac_exeext conftest.$ac_ext
27535   fi
27536   #
27537   if test "$curl_cv_getnameinfo" != "yes"; then
27538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
27539 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
27540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27541 /* end confdefs.h.  */
27542
27543
27544 #undef inline
27545 #ifdef HAVE_WINDOWS_H
27546 #ifndef WIN32_LEAN_AND_MEAN
27547 #define WIN32_LEAN_AND_MEAN
27548 #endif
27549 #include <windows.h>
27550 #ifdef HAVE_WINSOCK2_H
27551 #include <winsock2.h>
27552 #ifdef HAVE_WS2TCPIP_H
27553 #include <ws2tcpip.h>
27554 #endif
27555 #endif
27556 #else
27557 #ifdef HAVE_SYS_TYPES_H
27558 #include <sys/types.h>
27559 #endif
27560 #ifdef HAVE_SYS_SOCKET_H
27561 #include <sys/socket.h>
27562 #endif
27563 #ifdef HAVE_NETDB_H
27564 #include <netdb.h>
27565 #endif
27566 #endif
27567
27568 int main (void)
27569 {
27570
27571         getnameinfo(0, 0, 0, 0, 0, 0, 0);
27572
27573  ;
27574  return 0;
27575 }
27576
27577 _ACEOF
27578 if ac_fn_c_try_link "$LINENO"; then :
27579
27580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27581 $as_echo "yes" >&6; }
27582       curl_cv_getnameinfo="yes"
27583
27584 else
27585
27586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
27587 $as_echo "but still no" >&6; }
27588       curl_cv_getnameinfo="no"
27589
27590 fi
27591 rm -f core conftest.err conftest.$ac_objext \
27592     conftest$ac_exeext conftest.$ac_ext
27593   fi
27594   #
27595   if test "$curl_cv_getnameinfo" = "yes"; then
27596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
27597 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
27598 if ${curl_cv_func_getnameinfo_args+:} false; then :
27599   $as_echo_n "(cached) " >&6
27600 else
27601
27602       curl_cv_func_getnameinfo_args="unknown"
27603       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
27604         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
27605           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
27606             for gni_arg7 in 'int' 'unsigned int'; do
27607               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
27608                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27609 /* end confdefs.h.  */
27610
27611
27612 #undef inline
27613 #ifdef HAVE_WINDOWS_H
27614 #ifndef WIN32_LEAN_AND_MEAN
27615 #define WIN32_LEAN_AND_MEAN
27616 #endif
27617 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
27618 #undef _WIN32_WINNT
27619 #define _WIN32_WINNT 0x0501
27620 #endif
27621 #include <windows.h>
27622 #ifdef HAVE_WINSOCK2_H
27623 #include <winsock2.h>
27624 #ifdef HAVE_WS2TCPIP_H
27625 #include <ws2tcpip.h>
27626 #endif
27627 #endif
27628 #define GNICALLCONV WSAAPI
27629 #else
27630 #ifdef HAVE_SYS_TYPES_H
27631 #include <sys/types.h>
27632 #endif
27633 #ifdef HAVE_SYS_SOCKET_H
27634 #include <sys/socket.h>
27635 #endif
27636 #ifdef HAVE_NETDB_H
27637 #include <netdb.h>
27638 #endif
27639 #define GNICALLCONV
27640 #endif
27641                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
27642                                            char *, $gni_arg46,
27643                                            char *, $gni_arg46,
27644                                            $gni_arg7);
27645
27646 int main (void)
27647 {
27648
27649                     $gni_arg2 salen=0;
27650                     $gni_arg46 hostlen=0;
27651                     $gni_arg46 servlen=0;
27652                     $gni_arg7 flags=0;
27653                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
27654
27655  ;
27656  return 0;
27657 }
27658
27659 _ACEOF
27660 if ac_fn_c_try_compile "$LINENO"; then :
27661
27662                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
27663
27664 fi
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27666               fi
27667             done
27668           done
27669         done
27670       done
27671
27672 fi
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
27674 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
27675     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
27676       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
27677 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
27678       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
27679 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
27680     else
27681       gni_prev_IFS=$IFS; IFS=','
27682       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
27683       IFS=$gni_prev_IFS
27684       shift
27685       #
27686       gni_qual_type_arg1=$1
27687       #
27688
27689 cat >>confdefs.h <<_ACEOF
27690 #define GETNAMEINFO_TYPE_ARG2 $2
27691 _ACEOF
27692
27693
27694 cat >>confdefs.h <<_ACEOF
27695 #define GETNAMEINFO_TYPE_ARG46 $3
27696 _ACEOF
27697
27698
27699 cat >>confdefs.h <<_ACEOF
27700 #define GETNAMEINFO_TYPE_ARG7 $4
27701 _ACEOF
27702
27703       #
27704       prev_sh_opts=$-
27705       #
27706       case $prev_sh_opts in
27707         *f*)
27708           ;;
27709         *)
27710           set -f
27711           ;;
27712       esac
27713       #
27714       case "$gni_qual_type_arg1" in
27715         const*)
27716           gni_qual_arg1=const
27717           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
27718         ;;
27719         *)
27720           gni_qual_arg1=
27721           gni_type_arg1=$gni_qual_type_arg1
27722         ;;
27723       esac
27724       #
27725
27726 cat >>confdefs.h <<_ACEOF
27727 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
27728 _ACEOF
27729
27730
27731 cat >>confdefs.h <<_ACEOF
27732 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
27733 _ACEOF
27734
27735       #
27736       case $prev_sh_opts in
27737         *f*)
27738           ;;
27739         *)
27740           set +f
27741           ;;
27742       esac
27743       #
27744
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_GETNAMEINFO 1
27747 _ACEOF
27748
27749       ac_cv_func_getnameinfo="yes"
27750     fi
27751   fi
27752
27753
27754
27755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
27756 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
27757 if ${ac_cv_c_bigendian+:} false; then :
27758   $as_echo_n "(cached) " >&6
27759 else
27760   ac_cv_c_bigendian=unknown
27761     # See if we're dealing with a universal compiler.
27762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h.  */
27764 #ifndef __APPLE_CC__
27765                not a universal capable compiler
27766              #endif
27767              typedef int dummy;
27768
27769 _ACEOF
27770 if ac_fn_c_try_compile "$LINENO"; then :
27771
27772         # Check for potential -arch flags.  It is not universal unless
27773         # there are at least two -arch flags with different values.
27774         ac_arch=
27775         ac_prev=
27776         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27777          if test -n "$ac_prev"; then
27778            case $ac_word in
27779              i?86 | x86_64 | ppc | ppc64)
27780                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
27781                  ac_arch=$ac_word
27782                else
27783                  ac_cv_c_bigendian=universal
27784                  break
27785                fi
27786                ;;
27787            esac
27788            ac_prev=
27789          elif test "x$ac_word" = "x-arch"; then
27790            ac_prev=arch
27791          fi
27792        done
27793 fi
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795     if test $ac_cv_c_bigendian = unknown; then
27796       # See if sys/param.h defines the BYTE_ORDER macro.
27797       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798 /* end confdefs.h.  */
27799 #include <sys/types.h>
27800              #include <sys/param.h>
27801
27802 int main (void)
27803 {
27804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27805                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27806                      && LITTLE_ENDIAN)
27807               bogus endian macros
27808              #endif
27809
27810  ;
27811  return 0;
27812 }
27813 _ACEOF
27814 if ac_fn_c_try_compile "$LINENO"; then :
27815   # It does; now see whether it defined to BIG_ENDIAN or not.
27816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27817 /* end confdefs.h.  */
27818 #include <sys/types.h>
27819                 #include <sys/param.h>
27820
27821 int main (void)
27822 {
27823 #if BYTE_ORDER != BIG_ENDIAN
27824                  not big endian
27825                 #endif
27826
27827  ;
27828  return 0;
27829 }
27830 _ACEOF
27831 if ac_fn_c_try_compile "$LINENO"; then :
27832   ac_cv_c_bigendian=yes
27833 else
27834   ac_cv_c_bigendian=no
27835 fi
27836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27837 fi
27838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27839     fi
27840     if test $ac_cv_c_bigendian = unknown; then
27841       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27842       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h.  */
27844 #include <limits.h>
27845
27846 int main (void)
27847 {
27848 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27849               bogus endian macros
27850              #endif
27851
27852  ;
27853  return 0;
27854 }
27855 _ACEOF
27856 if ac_fn_c_try_compile "$LINENO"; then :
27857   # It does; now see whether it defined to _BIG_ENDIAN or not.
27858          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27859 /* end confdefs.h.  */
27860 #include <limits.h>
27861
27862 int main (void)
27863 {
27864 #ifndef _BIG_ENDIAN
27865                  not big endian
27866                 #endif
27867
27868  ;
27869  return 0;
27870 }
27871 _ACEOF
27872 if ac_fn_c_try_compile "$LINENO"; then :
27873   ac_cv_c_bigendian=yes
27874 else
27875   ac_cv_c_bigendian=no
27876 fi
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 fi
27879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27880     fi
27881     if test $ac_cv_c_bigendian = unknown; then
27882       # Compile a test program.
27883       if test "$cross_compiling" = yes; then :
27884   # Try to guess by grepping values from an object file.
27885          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27886 /* end confdefs.h.  */
27887 short int ascii_mm[] =
27888                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27889                 short int ascii_ii[] =
27890                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27891                 int use_ascii (int i) {
27892                   return ascii_mm[i] + ascii_ii[i];
27893                 }
27894                 short int ebcdic_ii[] =
27895                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27896                 short int ebcdic_mm[] =
27897                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27898                 int use_ebcdic (int i) {
27899                   return ebcdic_mm[i] + ebcdic_ii[i];
27900                 }
27901                 extern int foo;
27902
27903 int main (void)
27904 {
27905 return use_ascii (foo) == use_ebcdic (foo);
27906  ;
27907  return 0;
27908 }
27909 _ACEOF
27910 if ac_fn_c_try_compile "$LINENO"; then :
27911   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27912               ac_cv_c_bigendian=yes
27913             fi
27914             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27915               if test "$ac_cv_c_bigendian" = unknown; then
27916                 ac_cv_c_bigendian=no
27917               else
27918                 # finding both strings is unlikely to happen, but who knows?
27919                 ac_cv_c_bigendian=unknown
27920               fi
27921             fi
27922 fi
27923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27924 else
27925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h.  */
27927 $ac_includes_default
27928 int main (void)
27929 {
27930
27931              /* Are we little or big endian?  From Harbison&Steele.  */
27932              union
27933              {
27934                long int l;
27935                char c[sizeof (long int)];
27936              } u;
27937              u.l = 1;
27938              return u.c[sizeof (long int) - 1] == 1;
27939
27940  ;
27941  return 0;
27942 }
27943 _ACEOF
27944 if ac_fn_c_try_run "$LINENO"; then :
27945   ac_cv_c_bigendian=no
27946 else
27947   ac_cv_c_bigendian=yes
27948 fi
27949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27950   conftest.$ac_objext conftest.beam conftest.$ac_ext
27951 fi
27952
27953     fi
27954 fi
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27956 $as_echo "$ac_cv_c_bigendian" >&6; }
27957  case $ac_cv_c_bigendian in #(
27958    yes)
27959
27960 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
27961 ;; #(
27962    no)
27963       ;; #(
27964    universal)
27965
27966 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27967
27968      ;; #(
27969    *)
27970      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
27971 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
27972  ;;
27973  esac
27974
27975
27976
27977 # Check whether --with-random was given.
27978 if test "${with_random+set}" = set; then :
27979   withval=$with_random;  RANDOM_FILE="$withval"
27980 else
27981
27982                                 if test "$cross_compiling" = "no"; then
27983           as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27985 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
27986 if eval \${$as_ac_File+:} false; then :
27987   $as_echo_n "(cached) " >&6
27988 else
27989   test "$cross_compiling" = yes &&
27990   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27991 if test -r ""/dev/urandom""; then
27992   eval "$as_ac_File=yes"
27993 else
27994   eval "$as_ac_File=no"
27995 fi
27996 fi
27997 eval ac_res=\$$as_ac_File
27998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27999 $as_echo "$ac_res" >&6; }
28000 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
28001    RANDOM_FILE="/dev/urandom"
28002 fi
28003
28004         else
28005           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
28006 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
28007         fi
28008
28009
28010
28011 fi
28012
28013 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
28014
28015
28016 cat >>confdefs.h <<_ACEOF
28017 #define RANDOM_FILE "$RANDOM_FILE"
28018 _ACEOF
28019
28020 fi
28021
28022
28023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
28024 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
28025   OPT_NONBLOCKING="default"
28026   # Check whether --enable-nonblocking was given.
28027 if test "${enable_nonblocking+set}" = set; then :
28028   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
28029 fi
28030
28031   case "$OPT_NONBLOCKING" in
28032     no)
28033             want_nonblocking="no"
28034       ;;
28035     default)
28036             want_nonblocking="yes"
28037       ;;
28038     *)
28039             want_nonblocking="yes"
28040       ;;
28041   esac
28042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
28043 $as_echo "$want_nonblocking" >&6; }
28044
28045
28046               #
28047   tst_method="unknown"
28048   if test "$want_nonblocking" = "yes"; then
28049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
28050 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
28051     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
28052       tst_method="fcntl O_NONBLOCK"
28053     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
28054       tst_method="ioctl FIONBIO"
28055     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
28056       tst_method="ioctlsocket FIONBIO"
28057     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
28058       tst_method="IoctlSocket FIONBIO"
28059     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
28060       tst_method="setsockopt SO_NONBLOCK"
28061     fi
28062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
28063 $as_echo "$tst_method" >&6; }
28064     if test "$tst_method" = "unknown"; then
28065       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
28066 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
28067     fi
28068   fi
28069   if test "$tst_method" = "unknown"; then
28070
28071 cat >>confdefs.h <<_ACEOF
28072 #define USE_BLOCKING_SOCKETS 1
28073 _ACEOF
28074
28075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
28076 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
28077   fi
28078
28079
28080
28081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
28082 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
28083   CFLAG_CARES_SYMBOL_HIDING=""
28084   doing_symbol_hiding="no"
28085   if test x"$ac_cv_native_windows" != "xyes" &&
28086     test "$want_symbol_hiding" = "yes" &&
28087     test "$supports_symbol_hiding" = "yes"; then
28088     doing_symbol_hiding="yes"
28089     CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
28090
28091 cat >>confdefs.h <<_ACEOF
28092 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
28093 _ACEOF
28094
28095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28096 $as_echo "yes" >&6; }
28097   else
28098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28099 $as_echo "no" >&6; }
28100   fi
28101    if test x$doing_symbol_hiding = xyes; then
28102   DOING_CARES_SYMBOL_HIDING_TRUE=
28103   DOING_CARES_SYMBOL_HIDING_FALSE='#'
28104 else
28105   DOING_CARES_SYMBOL_HIDING_TRUE='#'
28106   DOING_CARES_SYMBOL_HIDING_FALSE=
28107 fi
28108
28109
28110   if test "$doing_symbol_hiding" = "yes"; then
28111
28112 cat >>confdefs.h <<_ACEOF
28113 #define CARES_SYMBOL_HIDING 1
28114 _ACEOF
28115
28116   fi
28117
28118
28119 CARES_PRIVATE_LIBS="$LIBS"
28120
28121
28122 CARES_CFLAG_EXTRAS=""
28123 if test X"$want_werror" = Xyes; then
28124   CARES_CFLAG_EXTRAS="-Werror"
28125 fi
28126
28127
28128
28129 squeeze CFLAGS
28130 squeeze CPPFLAGS
28131 squeeze DEFS
28132 squeeze LDFLAGS
28133 squeeze LIBS
28134
28135 squeeze CARES_PRIVATE_LIBS
28136
28137
28138
28139   xc_bad_var_libs=no
28140   for xc_word in $LIBS; do
28141     case "$xc_word" in
28142       -l* | --library=*)
28143         :
28144         ;;
28145       *)
28146         xc_bad_var_libs=yes
28147         ;;
28148     esac
28149   done
28150   if test $xc_bad_var_libs = yes; then
28151     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
28152 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
28153     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
28154 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
28155   fi
28156
28157
28158   xc_bad_var_ldflags=no
28159   for xc_word in $LDFLAGS; do
28160     case "$xc_word" in
28161       -D*)
28162         xc_bad_var_ldflags=yes
28163         ;;
28164       -U*)
28165         xc_bad_var_ldflags=yes
28166         ;;
28167       -I*)
28168         xc_bad_var_ldflags=yes
28169         ;;
28170       -l* | --library=*)
28171         xc_bad_var_ldflags=yes
28172         ;;
28173     esac
28174   done
28175   if test $xc_bad_var_ldflags = yes; then
28176     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
28177 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
28178     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
28179     for xc_word in $LDFLAGS; do
28180       case "$xc_word" in
28181         -D*)
28182           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
28183 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
28184           ;;
28185         -U*)
28186           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
28187 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
28188           ;;
28189         -I*)
28190           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
28191 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
28192           ;;
28193         -l* | --library=*)
28194           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28195 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28196           ;;
28197       esac
28198     done
28199   fi
28200
28201
28202   xc_bad_var_cppflags=no
28203   for xc_word in $CPPFLAGS; do
28204     case "$xc_word" in
28205       -rpath*)
28206         xc_bad_var_cppflags=yes
28207         ;;
28208       -L* | --library-path=*)
28209         xc_bad_var_cppflags=yes
28210         ;;
28211       -l* | --library=*)
28212         xc_bad_var_cppflags=yes
28213         ;;
28214     esac
28215   done
28216   if test $xc_bad_var_cppflags = yes; then
28217     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
28218 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
28219     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
28220     for xc_word in $CPPFLAGS; do
28221       case "$xc_word" in
28222         -rpath*)
28223           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
28224 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
28225           ;;
28226         -L* | --library-path=*)
28227           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
28228 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
28229           ;;
28230         -l* | --library=*)
28231           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28232 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28233           ;;
28234       esac
28235     done
28236   fi
28237
28238
28239   xc_bad_var_cflags=no
28240   for xc_word in $CFLAGS; do
28241     case "$xc_word" in
28242       -D*)
28243         xc_bad_var_cflags=yes
28244         ;;
28245       -U*)
28246         xc_bad_var_cflags=yes
28247         ;;
28248       -I*)
28249         xc_bad_var_cflags=yes
28250         ;;
28251       -rpath*)
28252         xc_bad_var_cflags=yes
28253         ;;
28254       -L* | --library-path=*)
28255         xc_bad_var_cflags=yes
28256         ;;
28257       -l* | --library=*)
28258         xc_bad_var_cflags=yes
28259         ;;
28260     esac
28261   done
28262   if test $xc_bad_var_cflags = yes; then
28263     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
28264 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
28265     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
28266     for xc_word in $CFLAGS; do
28267       case "$xc_word" in
28268         -D*)
28269           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
28270 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
28271           ;;
28272         -U*)
28273           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
28274 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
28275           ;;
28276         -I*)
28277           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
28278 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
28279           ;;
28280         -rpath*)
28281           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
28282 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
28283           ;;
28284         -L* | --library-path=*)
28285           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
28286 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
28287           ;;
28288         -l* | --library=*)
28289           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
28290 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
28291           ;;
28292       esac
28293     done
28294   fi
28295
28296   if test $xc_bad_var_libs = yes ||
28297      test $xc_bad_var_cflags = yes ||
28298      test $xc_bad_var_ldflags = yes ||
28299      test $xc_bad_var_cppflags = yes; then
28300      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
28301 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
28302   fi
28303
28304
28305 if test "x$cross_compiling" = "xno"; then
28306
28307
28308 subdirs="$subdirs test"
28309
28310 fi
28311
28312 ac_config_files="$ac_config_files Makefile libcares.pc"
28313
28314 cat >confcache <<\_ACEOF
28315 # This file is a shell script that caches the results of configure
28316 # tests run on this system so they can be shared between configure
28317 # scripts and configure runs, see configure's option --config-cache.
28318 # It is not useful on other systems.  If it contains results you don't
28319 # want to keep, you may remove or edit it.
28320 #
28321 # config.status only pays attention to the cache file if you give it
28322 # the --recheck option to rerun configure.
28323 #
28324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28326 # following values.
28327
28328 _ACEOF
28329
28330 # The following way of writing the cache mishandles newlines in values,
28331 # but we know of no workaround that is simple, portable, and efficient.
28332 # So, we kill variables containing newlines.
28333 # Ultrix sh set writes to stderr and can't be redirected directly,
28334 # and sets the high bit in the cache file unless we assign to the vars.
28335 (
28336   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28337     eval ac_val=\$$ac_var
28338     case $ac_val in #(
28339     *${as_nl}*)
28340       case $ac_var in #(
28341       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28343       esac
28344       case $ac_var in #(
28345       _ | IFS | as_nl) ;; #(
28346       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28347       *) { eval $ac_var=; unset $ac_var;} ;;
28348       esac ;;
28349     esac
28350   done
28351
28352   (set) 2>&1 |
28353     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28354     *${as_nl}ac_space=\ *)
28355       # `set' does not quote correctly, so add quotes: double-quote
28356       # substitution turns \\\\ into \\, and sed turns \\ into \.
28357       sed -n \
28358         "s/'/'\\\\''/g;
28359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28360       ;; #(
28361     *)
28362       # `set' quotes correctly as required by POSIX, so do not add quotes.
28363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28364       ;;
28365     esac |
28366     sort
28367 ) |
28368   sed '
28369      /^ac_cv_env_/b end
28370      t clear
28371      :clear
28372      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28373      t end
28374      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28375      :end' >>confcache
28376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28377   if test -w "$cache_file"; then
28378     if test "x$cache_file" != "x/dev/null"; then
28379       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28380 $as_echo "$as_me: updating cache $cache_file" >&6;}
28381       if test ! -f "$cache_file" || test -h "$cache_file"; then
28382         cat confcache >"$cache_file"
28383       else
28384         case $cache_file in #(
28385         */* | ?:*)
28386           mv -f confcache "$cache_file"$$ &&
28387           mv -f "$cache_file"$$ "$cache_file" ;; #(
28388         *)
28389           mv -f confcache "$cache_file" ;;
28390         esac
28391       fi
28392     fi
28393   else
28394     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28396   fi
28397 fi
28398 rm -f confcache
28399
28400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28401 # Let make expand exec_prefix.
28402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28403
28404 DEFS=-DHAVE_CONFIG_H
28405
28406 ac_libobjs=
28407 ac_ltlibobjs=
28408 U=
28409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28410   # 1. Remove the extension, and $U if already installed.
28411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28412   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28414   #    will be set to the directory where LIBOBJS objects are built.
28415   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28416   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28417 done
28418 LIBOBJS=$ac_libobjs
28419
28420 LTLIBOBJS=$ac_ltlibobjs
28421
28422
28423 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28424   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28426 fi
28427 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
28428   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
28429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28430 fi
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28432 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28433    if test -n "$am_sleep_pid"; then
28434      # Hide warnings about reused PIDs.
28435      wait $am_sleep_pid 2>/dev/null
28436    fi
28437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28438 $as_echo "done" >&6; }
28439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28440   as_fn_error $? "conditional \"AMDEP\" was never defined.
28441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28442 fi
28443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28444   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28446 fi
28447  if test -n "$EXEEXT"; then
28448   am__EXEEXT_TRUE=
28449   am__EXEEXT_FALSE='#'
28450 else
28451   am__EXEEXT_TRUE='#'
28452   am__EXEEXT_FALSE=
28453 fi
28454
28455 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
28456   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
28457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28458 fi
28459 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
28460   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
28461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28462 fi
28463 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
28464   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
28465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28466 fi
28467 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
28468   as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
28469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28470 fi
28471 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
28472   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
28473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28474 fi
28475 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
28476   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
28477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28478 fi
28479
28480 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
28481   as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
28482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28483 fi
28484
28485 : "${CONFIG_STATUS=./config.status}"
28486 ac_write_fail=0
28487 ac_clean_files_save=$ac_clean_files
28488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28490 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28491 as_write_fail=0
28492 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28493 #! $SHELL
28494 # Generated by $as_me.
28495 # Run this file to recreate the current configuration.
28496 # Compiler output produced by configure, useful for debugging
28497 # configure, is in config.log if it exists.
28498
28499 debug=false
28500 ac_cs_recheck=false
28501 ac_cs_silent=false
28502
28503 SHELL=\${CONFIG_SHELL-$SHELL}
28504 export SHELL
28505 _ASEOF
28506 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28507 ## -------------------- ##
28508 ## M4sh Initialization. ##
28509 ## -------------------- ##
28510
28511 # Be more Bourne compatible
28512 DUALCASE=1; export DUALCASE # for MKS sh
28513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28514   emulate sh
28515   NULLCMD=:
28516   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28517   # is contrary to our usage.  Disable this feature.
28518   alias -g '${1+"$@"}'='"$@"'
28519   setopt NO_GLOB_SUBST
28520 else
28521   case `(set -o) 2>/dev/null` in #(
28522   *posix*) :
28523     set -o posix ;; #(
28524   *) :
28525      ;;
28526 esac
28527 fi
28528
28529
28530 as_nl='
28531 '
28532 export as_nl
28533 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28534 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28537 # Prefer a ksh shell builtin over an external printf program on Solaris,
28538 # but without wasting forks for bash or zsh.
28539 if test -z "$BASH_VERSION$ZSH_VERSION" \
28540     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28541   as_echo='print -r --'
28542   as_echo_n='print -rn --'
28543 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28544   as_echo='printf %s\n'
28545   as_echo_n='printf %s'
28546 else
28547   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28548     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28549     as_echo_n='/usr/ucb/echo -n'
28550   else
28551     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28552     as_echo_n_body='eval
28553       arg=$1;
28554       case $arg in #(
28555       *"$as_nl"*)
28556         expr "X$arg" : "X\\(.*\\)$as_nl";
28557         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28558       esac;
28559       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28560     '
28561     export as_echo_n_body
28562     as_echo_n='sh -c $as_echo_n_body as_echo'
28563   fi
28564   export as_echo_body
28565   as_echo='sh -c $as_echo_body as_echo'
28566 fi
28567
28568
28569
28570 # IFS
28571 # We need space, tab and new line, in precisely that order.  Quoting is
28572 # there to prevent editors from complaining about space-tab.
28573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28574 # splitting by setting IFS to empty value.)
28575 IFS=" ""        $as_nl"
28576
28577 # Find who we are.  Look in the path if we contain no directory separator.
28578 as_myself=
28579 case $0 in #((
28580   *[\\/]* ) as_myself=$0 ;;
28581   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28582 for as_dir in $PATH
28583 do
28584   IFS=$as_save_IFS
28585   test -z "$as_dir" && as_dir=.
28586     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28587   done
28588 IFS=$as_save_IFS
28589
28590      ;;
28591 esac
28592 # We did not find ourselves, most probably we were run as `sh COMMAND'
28593 # in which case we are not to be found in the path.
28594 if test "x$as_myself" = x; then
28595   as_myself=$0
28596 fi
28597 if test ! -f "$as_myself"; then
28598   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28599   exit 1
28600 fi
28601
28602 # Unset variables that we do not need and which cause bugs (e.g. in
28603 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28604 # suppresses any "Segmentation fault" message there.  '((' could
28605 # trigger a bug in pdksh 5.2.14.
28606 for as_var in BASH_ENV ENV MAIL MAILPATH
28607 do eval test x\${$as_var+set} = xset \
28608   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28609 done
28610 PS1='$ '
28611 PS2='> '
28612 PS4='+ '
28613
28614 # NLS nuisances.
28615 LC_ALL=C
28616 export LC_ALL
28617 LANGUAGE=C
28618 export LANGUAGE
28619
28620 # CDPATH.
28621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28622
28623
28624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28625 # ----------------------------------------
28626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28628 # script with STATUS, using 1 if that was 0.
28629 as_fn_error ()
28630 {
28631   as_status=$1; test $as_status -eq 0 && as_status=1
28632   if test "$4"; then
28633     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28634     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28635   fi
28636   $as_echo "$as_me: error: $2" >&2
28637   as_fn_exit $as_status
28638 } # as_fn_error
28639
28640
28641 # as_fn_set_status STATUS
28642 # -----------------------
28643 # Set $? to STATUS, without forking.
28644 as_fn_set_status ()
28645 {
28646   return $1
28647 } # as_fn_set_status
28648
28649 # as_fn_exit STATUS
28650 # -----------------
28651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28652 as_fn_exit ()
28653 {
28654   set +e
28655   as_fn_set_status $1
28656   exit $1
28657 } # as_fn_exit
28658
28659 # as_fn_unset VAR
28660 # ---------------
28661 # Portably unset VAR.
28662 as_fn_unset ()
28663 {
28664   { eval $1=; unset $1;}
28665 }
28666 as_unset=as_fn_unset
28667 # as_fn_append VAR VALUE
28668 # ----------------------
28669 # Append the text in VALUE to the end of the definition contained in VAR. Take
28670 # advantage of any shell optimizations that allow amortized linear growth over
28671 # repeated appends, instead of the typical quadratic growth present in naive
28672 # implementations.
28673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28674   eval 'as_fn_append ()
28675   {
28676     eval $1+=\$2
28677   }'
28678 else
28679   as_fn_append ()
28680   {
28681     eval $1=\$$1\$2
28682   }
28683 fi # as_fn_append
28684
28685 # as_fn_arith ARG...
28686 # ------------------
28687 # Perform arithmetic evaluation on the ARGs, and store the result in the
28688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28689 # must be portable across $(()) and expr.
28690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28691   eval 'as_fn_arith ()
28692   {
28693     as_val=$(( $* ))
28694   }'
28695 else
28696   as_fn_arith ()
28697   {
28698     as_val=`expr "$@" || test $? -eq 1`
28699   }
28700 fi # as_fn_arith
28701
28702
28703 if expr a : '\(a\)' >/dev/null 2>&1 &&
28704    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28705   as_expr=expr
28706 else
28707   as_expr=false
28708 fi
28709
28710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28711   as_basename=basename
28712 else
28713   as_basename=false
28714 fi
28715
28716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28717   as_dirname=dirname
28718 else
28719   as_dirname=false
28720 fi
28721
28722 as_me=`$as_basename -- "$0" ||
28723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28724          X"$0" : 'X\(//\)$' \| \
28725          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28726 $as_echo X/"$0" |
28727     sed '/^.*\/\([^/][^/]*\)\/*$/{
28728             s//\1/
28729             q
28730           }
28731           /^X\/\(\/\/\)$/{
28732             s//\1/
28733             q
28734           }
28735           /^X\/\(\/\).*/{
28736             s//\1/
28737             q
28738           }
28739           s/.*/./; q'`
28740
28741 # Avoid depending upon Character Ranges.
28742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28745 as_cr_digits='0123456789'
28746 as_cr_alnum=$as_cr_Letters$as_cr_digits
28747
28748 ECHO_C= ECHO_N= ECHO_T=
28749 case `echo -n x` in #(((((
28750 -n*)
28751   case `echo 'xy\c'` in
28752   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28753   xy)  ECHO_C='\c';;
28754   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28755        ECHO_T=' ';;
28756   esac;;
28757 *)
28758   ECHO_N='-n';;
28759 esac
28760
28761 rm -f conf$$ conf$$.exe conf$$.file
28762 if test -d conf$$.dir; then
28763   rm -f conf$$.dir/conf$$.file
28764 else
28765   rm -f conf$$.dir
28766   mkdir conf$$.dir 2>/dev/null
28767 fi
28768 if (echo >conf$$.file) 2>/dev/null; then
28769   if ln -s conf$$.file conf$$ 2>/dev/null; then
28770     as_ln_s='ln -s'
28771     # ... but there are two gotchas:
28772     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28773     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28774     # In both cases, we have to default to `cp -pR'.
28775     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28776       as_ln_s='cp -pR'
28777   elif ln conf$$.file conf$$ 2>/dev/null; then
28778     as_ln_s=ln
28779   else
28780     as_ln_s='cp -pR'
28781   fi
28782 else
28783   as_ln_s='cp -pR'
28784 fi
28785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28786 rmdir conf$$.dir 2>/dev/null
28787
28788
28789 # as_fn_mkdir_p
28790 # -------------
28791 # Create "$as_dir" as a directory, including parents if necessary.
28792 as_fn_mkdir_p ()
28793 {
28794
28795   case $as_dir in #(
28796   -*) as_dir=./$as_dir;;
28797   esac
28798   test -d "$as_dir" || eval $as_mkdir_p || {
28799     as_dirs=
28800     while :; do
28801       case $as_dir in #(
28802       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28803       *) as_qdir=$as_dir;;
28804       esac
28805       as_dirs="'$as_qdir' $as_dirs"
28806       as_dir=`$as_dirname -- "$as_dir" ||
28807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28808          X"$as_dir" : 'X\(//\)[^/]' \| \
28809          X"$as_dir" : 'X\(//\)$' \| \
28810          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28811 $as_echo X"$as_dir" |
28812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28813             s//\1/
28814             q
28815           }
28816           /^X\(\/\/\)[^/].*/{
28817             s//\1/
28818             q
28819           }
28820           /^X\(\/\/\)$/{
28821             s//\1/
28822             q
28823           }
28824           /^X\(\/\).*/{
28825             s//\1/
28826             q
28827           }
28828           s/.*/./; q'`
28829       test -d "$as_dir" && break
28830     done
28831     test -z "$as_dirs" || eval "mkdir $as_dirs"
28832   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28833
28834
28835 } # as_fn_mkdir_p
28836 if mkdir -p . 2>/dev/null; then
28837   as_mkdir_p='mkdir -p "$as_dir"'
28838 else
28839   test -d ./-p && rmdir ./-p
28840   as_mkdir_p=false
28841 fi
28842
28843
28844 # as_fn_executable_p FILE
28845 # -----------------------
28846 # Test if FILE is an executable regular file.
28847 as_fn_executable_p ()
28848 {
28849   test -f "$1" && test -x "$1"
28850 } # as_fn_executable_p
28851 as_test_x='test -x'
28852 as_executable_p=as_fn_executable_p
28853
28854 # Sed expression to map a string onto a valid CPP name.
28855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28856
28857 # Sed expression to map a string onto a valid variable name.
28858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28859
28860
28861 exec 6>&1
28862 ## ----------------------------------- ##
28863 ## Main body of $CONFIG_STATUS script. ##
28864 ## ----------------------------------- ##
28865 _ASEOF
28866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28867
28868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28869 # Save the log message, to keep $0 and so on meaningful, and to
28870 # report actual input values of CONFIG_FILES etc. instead of their
28871 # values after options handling.
28872 ac_log="
28873 This file was extended by c-ares $as_me 1.11.0, which was
28874 generated by GNU Autoconf 2.69.  Invocation command line was
28875
28876   CONFIG_FILES    = $CONFIG_FILES
28877   CONFIG_HEADERS  = $CONFIG_HEADERS
28878   CONFIG_LINKS    = $CONFIG_LINKS
28879   CONFIG_COMMANDS = $CONFIG_COMMANDS
28880   $ $0 $@
28881
28882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28883 "
28884
28885 _ACEOF
28886
28887 case $ac_config_files in *"
28888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28889 esac
28890
28891 case $ac_config_headers in *"
28892 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28893 esac
28894
28895
28896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28897 # Files that config.status was made for.
28898 config_files="$ac_config_files"
28899 config_headers="$ac_config_headers"
28900 config_commands="$ac_config_commands"
28901
28902 _ACEOF
28903
28904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28905 ac_cs_usage="\
28906 \`$as_me' instantiates files and other configuration actions
28907 from templates according to the current configuration.  Unless the files
28908 and actions are specified as TAGs, all are instantiated by default.
28909
28910 Usage: $0 [OPTION]... [TAG]...
28911
28912   -h, --help       print this help, then exit
28913   -V, --version    print version number and configuration settings, then exit
28914       --config     print configuration, then exit
28915   -q, --quiet, --silent
28916                    do not print progress messages
28917   -d, --debug      don't remove temporary files
28918       --recheck    update $as_me by reconfiguring in the same conditions
28919       --file=FILE[:TEMPLATE]
28920                    instantiate the configuration file FILE
28921       --header=FILE[:TEMPLATE]
28922                    instantiate the configuration header FILE
28923
28924 Configuration files:
28925 $config_files
28926
28927 Configuration headers:
28928 $config_headers
28929
28930 Configuration commands:
28931 $config_commands
28932
28933 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
28934
28935 _ACEOF
28936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28938 ac_cs_version="\\
28939 c-ares config.status 1.11.0
28940 configured by $0, generated by GNU Autoconf 2.69,
28941   with options \\"\$ac_cs_config\\"
28942
28943 Copyright (C) 2012 Free Software Foundation, Inc.
28944 This config.status script is free software; the Free Software Foundation
28945 gives unlimited permission to copy, distribute and modify it."
28946
28947 ac_pwd='$ac_pwd'
28948 srcdir='$srcdir'
28949 INSTALL='$INSTALL'
28950 MKDIR_P='$MKDIR_P'
28951 AWK='$AWK'
28952 test -n "\$AWK" || AWK=awk
28953 _ACEOF
28954
28955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28956 # The default lists apply if the user does not specify any file.
28957 ac_need_defaults=:
28958 while test $# != 0
28959 do
28960   case $1 in
28961   --*=?*)
28962     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28963     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28964     ac_shift=:
28965     ;;
28966   --*=)
28967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28968     ac_optarg=
28969     ac_shift=:
28970     ;;
28971   *)
28972     ac_option=$1
28973     ac_optarg=$2
28974     ac_shift=shift
28975     ;;
28976   esac
28977
28978   case $ac_option in
28979   # Handling of the options.
28980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28981     ac_cs_recheck=: ;;
28982   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28983     $as_echo "$ac_cs_version"; exit ;;
28984   --config | --confi | --conf | --con | --co | --c )
28985     $as_echo "$ac_cs_config"; exit ;;
28986   --debug | --debu | --deb | --de | --d | -d )
28987     debug=: ;;
28988   --file | --fil | --fi | --f )
28989     $ac_shift
28990     case $ac_optarg in
28991     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28992     '') as_fn_error $? "missing file argument" ;;
28993     esac
28994     as_fn_append CONFIG_FILES " '$ac_optarg'"
28995     ac_need_defaults=false;;
28996   --header | --heade | --head | --hea )
28997     $ac_shift
28998     case $ac_optarg in
28999     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29000     esac
29001     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29002     ac_need_defaults=false;;
29003   --he | --h)
29004     # Conflict between --help and --header
29005     as_fn_error $? "ambiguous option: \`$1'
29006 Try \`$0 --help' for more information.";;
29007   --help | --hel | -h )
29008     $as_echo "$ac_cs_usage"; exit ;;
29009   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29010   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29011     ac_cs_silent=: ;;
29012
29013   # This is an error.
29014   -*) as_fn_error $? "unrecognized option: \`$1'
29015 Try \`$0 --help' for more information." ;;
29016
29017   *) as_fn_append ac_config_targets " $1"
29018      ac_need_defaults=false ;;
29019
29020   esac
29021   shift
29022 done
29023
29024 ac_configure_extra_args=
29025
29026 if $ac_cs_silent; then
29027   exec 6>/dev/null
29028   ac_configure_extra_args="$ac_configure_extra_args --silent"
29029 fi
29030
29031 _ACEOF
29032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29033 if \$ac_cs_recheck; then
29034   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29035   shift
29036   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29037   CONFIG_SHELL='$SHELL'
29038   export CONFIG_SHELL
29039   exec "\$@"
29040 fi
29041
29042 _ACEOF
29043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29044 exec 5>>config.log
29045 {
29046   echo
29047   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29048 ## Running $as_me. ##
29049 _ASBOX
29050   $as_echo "$ac_log"
29051 } >&5
29052
29053 _ACEOF
29054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29055 #
29056 # INIT-COMMANDS
29057 #
29058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29059
29060
29061 # The HP-UX ksh and POSIX shell print the target directory to stdout
29062 # if CDPATH is set.
29063 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29064
29065 sed_quote_subst='$sed_quote_subst'
29066 double_quote_subst='$double_quote_subst'
29067 delay_variable_subst='$delay_variable_subst'
29068 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29069 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29070 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29071 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29073 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29074 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29075 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29076 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29077 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29078 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29079 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29080 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29081 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29082 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29083 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29084 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29085 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29086 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29087 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29088 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29089 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29090 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29091 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29092 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29093 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29094 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29095 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29096 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29097 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29098 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29099 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29100 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29101 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29102 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29103 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29104 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29105 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29106 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29107 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29108 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29109 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29110 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29111 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29112 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29113 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29114 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29115 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29116 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29117 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29118 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29119 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29120 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29121 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29122 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29123 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29124 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29125 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29126 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29127 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"`'
29128 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29129 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29130 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29131 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29132 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29133 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29134 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29135 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29136 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29137 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29138 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29139 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29140 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29141 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29142 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29143 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29144 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29145 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29146 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29147 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29148 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29149 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29150 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29151 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29152 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29153 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29154 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29155 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29156 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29157 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29158 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29159 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29160 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29161 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29162 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29163 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29164 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29165 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29166 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29167 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29168 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29169 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29170 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29171 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29172 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29173 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29174 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29175 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29176 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29177 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29178 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29179 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29180 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29181 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29182 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29183 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29184 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29185 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29186 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29187 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29188 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29189 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29190 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29191 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29192 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29193 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29194 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29195 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29196 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29197 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29198 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29199 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29200 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29201 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29202 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29203 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29204
29205 LTCC='$LTCC'
29206 LTCFLAGS='$LTCFLAGS'
29207 compiler='$compiler_DEFAULT'
29208
29209 # A function that is used when there is no print builtin or printf.
29210 func_fallback_echo ()
29211 {
29212   eval 'cat <<_LTECHO_EOF
29213 \$1
29214 _LTECHO_EOF'
29215 }
29216
29217 # Quote evaled strings.
29218 for var in AS \
29219 DLLTOOL \
29220 OBJDUMP \
29221 SHELL \
29222 ECHO \
29223 PATH_SEPARATOR \
29224 SED \
29225 GREP \
29226 EGREP \
29227 FGREP \
29228 LD \
29229 NM \
29230 LN_S \
29231 lt_SP2NL \
29232 lt_NL2SP \
29233 reload_flag \
29234 deplibs_check_method \
29235 file_magic_cmd \
29236 file_magic_glob \
29237 want_nocaseglob \
29238 sharedlib_from_linklib_cmd \
29239 AR \
29240 AR_FLAGS \
29241 archiver_list_spec \
29242 STRIP \
29243 RANLIB \
29244 CC \
29245 CFLAGS \
29246 compiler \
29247 lt_cv_sys_global_symbol_pipe \
29248 lt_cv_sys_global_symbol_to_cdecl \
29249 lt_cv_sys_global_symbol_to_import \
29250 lt_cv_sys_global_symbol_to_c_name_address \
29251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29252 lt_cv_nm_interface \
29253 nm_file_list_spec \
29254 lt_cv_truncate_bin \
29255 lt_prog_compiler_no_builtin_flag \
29256 lt_prog_compiler_pic \
29257 lt_prog_compiler_wl \
29258 lt_prog_compiler_static \
29259 lt_cv_prog_compiler_c_o \
29260 need_locks \
29261 MANIFEST_TOOL \
29262 DSYMUTIL \
29263 NMEDIT \
29264 LIPO \
29265 OTOOL \
29266 OTOOL64 \
29267 shrext_cmds \
29268 export_dynamic_flag_spec \
29269 whole_archive_flag_spec \
29270 compiler_needs_object \
29271 with_gnu_ld \
29272 allow_undefined_flag \
29273 no_undefined_flag \
29274 hardcode_libdir_flag_spec \
29275 hardcode_libdir_separator \
29276 exclude_expsyms \
29277 include_expsyms \
29278 file_list_spec \
29279 variables_saved_for_relink \
29280 libname_spec \
29281 library_names_spec \
29282 soname_spec \
29283 install_override_mode \
29284 finish_eval \
29285 old_striplib \
29286 striplib; do
29287     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29288     *[\\\\\\\`\\"\\\$]*)
29289       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29290       ;;
29291     *)
29292       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29293       ;;
29294     esac
29295 done
29296
29297 # Double-quote double-evaled strings.
29298 for var in reload_cmds \
29299 old_postinstall_cmds \
29300 old_postuninstall_cmds \
29301 old_archive_cmds \
29302 extract_expsyms_cmds \
29303 old_archive_from_new_cmds \
29304 old_archive_from_expsyms_cmds \
29305 archive_cmds \
29306 archive_expsym_cmds \
29307 module_cmds \
29308 module_expsym_cmds \
29309 export_symbols_cmds \
29310 prelink_cmds \
29311 postlink_cmds \
29312 postinstall_cmds \
29313 postuninstall_cmds \
29314 finish_cmds \
29315 sys_lib_search_path_spec \
29316 configure_time_dlsearch_path \
29317 configure_time_lt_sys_library_path; do
29318     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29319     *[\\\\\\\`\\"\\\$]*)
29320       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29321       ;;
29322     *)
29323       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29324       ;;
29325     esac
29326 done
29327
29328 ac_aux_dir='$ac_aux_dir'
29329
29330 # See if we are running on zsh, and set the options that allow our
29331 # commands through without removal of \ escapes INIT.
29332 if test -n "\${ZSH_VERSION+set}"; then
29333    setopt NO_GLOB_SUBST
29334 fi
29335
29336
29337     PACKAGE='$PACKAGE'
29338     VERSION='$VERSION'
29339     RM='$RM'
29340     ofile='$ofile'
29341
29342
29343
29344
29345 _ACEOF
29346
29347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29348
29349 # Handling of arguments.
29350 for ac_config_target in $ac_config_targets
29351 do
29352   case $ac_config_target in
29353     "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
29354     "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
29355     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29356     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29357     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29358     "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
29359
29360   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29361   esac
29362 done
29363
29364
29365 # If the user did not use the arguments to specify the items to instantiate,
29366 # then the envvar interface is used.  Set only those that are not.
29367 # We use the long form for the default assignment because of an extremely
29368 # bizarre bug on SunOS 4.1.3.
29369 if $ac_need_defaults; then
29370   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29371   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29372   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29373 fi
29374
29375 # Have a temporary directory for convenience.  Make it in the build tree
29376 # simply because there is no reason against having it here, and in addition,
29377 # creating and moving files from /tmp can sometimes cause problems.
29378 # Hook for its removal unless debugging.
29379 # Note that there is a small window in which the directory will not be cleaned:
29380 # after its creation but before its name has been assigned to `$tmp'.
29381 $debug ||
29382 {
29383   tmp= ac_tmp=
29384   trap 'exit_status=$?
29385   : "${ac_tmp:=$tmp}"
29386   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29387 ' 0
29388   trap 'as_fn_exit 1' 1 2 13 15
29389 }
29390 # Create a (secure) tmp directory for tmp files.
29391
29392 {
29393   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29394   test -d "$tmp"
29395 }  ||
29396 {
29397   tmp=./conf$$-$RANDOM
29398   (umask 077 && mkdir "$tmp")
29399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29400 ac_tmp=$tmp
29401
29402 # Set up the scripts for CONFIG_FILES section.
29403 # No need to generate them if there are no CONFIG_FILES.
29404 # This happens for instance with `./config.status config.h'.
29405 if test -n "$CONFIG_FILES"; then
29406
29407
29408 ac_cr=`echo X | tr X '\015'`
29409 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29410 # But we know of no other shell where ac_cr would be empty at this
29411 # point, so we can use a bashism as a fallback.
29412 if test "x$ac_cr" = x; then
29413   eval ac_cr=\$\'\\r\'
29414 fi
29415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29417   ac_cs_awk_cr='\\r'
29418 else
29419   ac_cs_awk_cr=$ac_cr
29420 fi
29421
29422 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29423 _ACEOF
29424
29425
29426 {
29427   echo "cat >conf$$subs.awk <<_ACEOF" &&
29428   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29429   echo "_ACEOF"
29430 } >conf$$subs.sh ||
29431   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29433 ac_delim='%!_!# '
29434 for ac_last_try in false false false false false :; do
29435   . ./conf$$subs.sh ||
29436     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29437
29438   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29439   if test $ac_delim_n = $ac_delim_num; then
29440     break
29441   elif $ac_last_try; then
29442     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29443   else
29444     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29445   fi
29446 done
29447 rm -f conf$$subs.sh
29448
29449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29450 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29451 _ACEOF
29452 sed -n '
29453 h
29454 s/^/S["/; s/!.*/"]=/
29455 p
29456 g
29457 s/^[^!]*!//
29458 :repl
29459 t repl
29460 s/'"$ac_delim"'$//
29461 t delim
29462 :nl
29463 h
29464 s/\(.\{148\}\)..*/\1/
29465 t more1
29466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29467 p
29468 n
29469 b repl
29470 :more1
29471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29472 p
29473 g
29474 s/.\{148\}//
29475 t nl
29476 :delim
29477 h
29478 s/\(.\{148\}\)..*/\1/
29479 t more2
29480 s/["\\]/\\&/g; s/^/"/; s/$/"/
29481 p
29482 b
29483 :more2
29484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29485 p
29486 g
29487 s/.\{148\}//
29488 t delim
29489 ' <conf$$subs.awk | sed '
29490 /^[^""]/{
29491   N
29492   s/\n//
29493 }
29494 ' >>$CONFIG_STATUS || ac_write_fail=1
29495 rm -f conf$$subs.awk
29496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29497 _ACAWK
29498 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29499   for (key in S) S_is_set[key] = 1
29500   FS = "\a"
29501
29502 }
29503 {
29504   line = $ 0
29505   nfields = split(line, field, "@")
29506   substed = 0
29507   len = length(field[1])
29508   for (i = 2; i < nfields; i++) {
29509     key = field[i]
29510     keylen = length(key)
29511     if (S_is_set[key]) {
29512       value = S[key]
29513       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29514       len += length(value) + length(field[++i])
29515       substed = 1
29516     } else
29517       len += 1 + keylen
29518   }
29519
29520   print line
29521 }
29522
29523 _ACAWK
29524 _ACEOF
29525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29527   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29528 else
29529   cat
29530 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29531   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29532 _ACEOF
29533
29534 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29535 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29536 # trailing colons and then remove the whole line if VPATH becomes empty
29537 # (actually we leave an empty line to preserve line numbers).
29538 if test "x$srcdir" = x.; then
29539   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
29540 h
29541 s///
29542 s/^/:/
29543 s/[      ]*$/:/
29544 s/:\$(srcdir):/:/g
29545 s/:\${srcdir}:/:/g
29546 s/:@srcdir@:/:/g
29547 s/^:*//
29548 s/:*$//
29549 x
29550 s/\(=[   ]*\).*/\1/
29551 G
29552 s/\n//
29553 s/^[^=]*=[       ]*$//
29554 }'
29555 fi
29556
29557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29558 fi # test -n "$CONFIG_FILES"
29559
29560 # Set up the scripts for CONFIG_HEADERS section.
29561 # No need to generate them if there are no CONFIG_HEADERS.
29562 # This happens for instance with `./config.status Makefile'.
29563 if test -n "$CONFIG_HEADERS"; then
29564 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29565 BEGIN {
29566 _ACEOF
29567
29568 # Transform confdefs.h into an awk script `defines.awk', embedded as
29569 # here-document in config.status, that substitutes the proper values into
29570 # config.h.in to produce config.h.
29571
29572 # Create a delimiter string that does not exist in confdefs.h, to ease
29573 # handling of long lines.
29574 ac_delim='%!_!# '
29575 for ac_last_try in false false :; do
29576   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29577   if test -z "$ac_tt"; then
29578     break
29579   elif $ac_last_try; then
29580     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29581   else
29582     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29583   fi
29584 done
29585
29586 # For the awk script, D is an array of macro values keyed by name,
29587 # likewise P contains macro parameters if any.  Preserve backslash
29588 # newline sequences.
29589
29590 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29591 sed -n '
29592 s/.\{148\}/&'"$ac_delim"'/g
29593 t rset
29594 :rset
29595 s/^[     ]*#[    ]*define[       ][      ]*/ /
29596 t def
29597 d
29598 :def
29599 s/\\$//
29600 t bsnl
29601 s/["\\]/\\&/g
29602 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29603 D["\1"]=" \3"/p
29604 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29605 d
29606 :bsnl
29607 s/["\\]/\\&/g
29608 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29609 D["\1"]=" \3\\\\\\n"\\/p
29610 t cont
29611 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29612 t cont
29613 d
29614 :cont
29615 n
29616 s/.\{148\}/&'"$ac_delim"'/g
29617 t clear
29618 :clear
29619 s/\\$//
29620 t bsnlc
29621 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29622 d
29623 :bsnlc
29624 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29625 b cont
29626 ' <confdefs.h | sed '
29627 s/'"$ac_delim"'/"\\\
29628 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29629
29630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29631   for (key in D) D_is_set[key] = 1
29632   FS = "\a"
29633 }
29634 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29635   line = \$ 0
29636   split(line, arg, " ")
29637   if (arg[1] == "#") {
29638     defundef = arg[2]
29639     mac1 = arg[3]
29640   } else {
29641     defundef = substr(arg[1], 2)
29642     mac1 = arg[2]
29643   }
29644   split(mac1, mac2, "(") #)
29645   macro = mac2[1]
29646   prefix = substr(line, 1, index(line, defundef) - 1)
29647   if (D_is_set[macro]) {
29648     # Preserve the white space surrounding the "#".
29649     print prefix "define", macro P[macro] D[macro]
29650     next
29651   } else {
29652     # Replace #undef with comments.  This is necessary, for example,
29653     # in the case of _POSIX_SOURCE, which is predefined and required
29654     # on some systems where configure will not decide to define it.
29655     if (defundef == "undef") {
29656       print "/*", prefix defundef, macro, "*/"
29657       next
29658     }
29659   }
29660 }
29661 { print }
29662 _ACAWK
29663 _ACEOF
29664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29665   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29666 fi # test -n "$CONFIG_HEADERS"
29667
29668
29669 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29670 shift
29671 for ac_tag
29672 do
29673   case $ac_tag in
29674   :[FHLC]) ac_mode=$ac_tag; continue;;
29675   esac
29676   case $ac_mode$ac_tag in
29677   :[FHL]*:*);;
29678   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29679   :[FH]-) ac_tag=-:-;;
29680   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29681   esac
29682   ac_save_IFS=$IFS
29683   IFS=:
29684   set x $ac_tag
29685   IFS=$ac_save_IFS
29686   shift
29687   ac_file=$1
29688   shift
29689
29690   case $ac_mode in
29691   :L) ac_source=$1;;
29692   :[FH])
29693     ac_file_inputs=
29694     for ac_f
29695     do
29696       case $ac_f in
29697       -) ac_f="$ac_tmp/stdin";;
29698       *) # Look for the file first in the build tree, then in the source tree
29699          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29700          # because $ac_f cannot contain `:'.
29701          test -f "$ac_f" ||
29702            case $ac_f in
29703            [\\/$]*) false;;
29704            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29705            esac ||
29706            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29707       esac
29708       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29709       as_fn_append ac_file_inputs " '$ac_f'"
29710     done
29711
29712     # Let's still pretend it is `configure' which instantiates (i.e., don't
29713     # use $as_me), people would be surprised to read:
29714     #    /* config.h.  Generated by config.status.  */
29715     configure_input='Generated from '`
29716           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29717         `' by configure.'
29718     if test x"$ac_file" != x-; then
29719       configure_input="$ac_file.  $configure_input"
29720       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29721 $as_echo "$as_me: creating $ac_file" >&6;}
29722     fi
29723     # Neutralize special characters interpreted by sed in replacement strings.
29724     case $configure_input in #(
29725     *\&* | *\|* | *\\* )
29726        ac_sed_conf_input=`$as_echo "$configure_input" |
29727        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29728     *) ac_sed_conf_input=$configure_input;;
29729     esac
29730
29731     case $ac_tag in
29732     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29733       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29734     esac
29735     ;;
29736   esac
29737
29738   ac_dir=`$as_dirname -- "$ac_file" ||
29739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29740          X"$ac_file" : 'X\(//\)[^/]' \| \
29741          X"$ac_file" : 'X\(//\)$' \| \
29742          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29743 $as_echo X"$ac_file" |
29744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29745             s//\1/
29746             q
29747           }
29748           /^X\(\/\/\)[^/].*/{
29749             s//\1/
29750             q
29751           }
29752           /^X\(\/\/\)$/{
29753             s//\1/
29754             q
29755           }
29756           /^X\(\/\).*/{
29757             s//\1/
29758             q
29759           }
29760           s/.*/./; q'`
29761   as_dir="$ac_dir"; as_fn_mkdir_p
29762   ac_builddir=.
29763
29764 case "$ac_dir" in
29765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29766 *)
29767   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29768   # A ".." for each directory in $ac_dir_suffix.
29769   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29770   case $ac_top_builddir_sub in
29771   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29772   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29773   esac ;;
29774 esac
29775 ac_abs_top_builddir=$ac_pwd
29776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29777 # for backward compatibility:
29778 ac_top_builddir=$ac_top_build_prefix
29779
29780 case $srcdir in
29781   .)  # We are building in place.
29782     ac_srcdir=.
29783     ac_top_srcdir=$ac_top_builddir_sub
29784     ac_abs_top_srcdir=$ac_pwd ;;
29785   [\\/]* | ?:[\\/]* )  # Absolute name.
29786     ac_srcdir=$srcdir$ac_dir_suffix;
29787     ac_top_srcdir=$srcdir
29788     ac_abs_top_srcdir=$srcdir ;;
29789   *) # Relative name.
29790     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29791     ac_top_srcdir=$ac_top_build_prefix$srcdir
29792     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29793 esac
29794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29795
29796
29797   case $ac_mode in
29798   :F)
29799   #
29800   # CONFIG_FILE
29801   #
29802
29803   case $INSTALL in
29804   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29805   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29806   esac
29807   ac_MKDIR_P=$MKDIR_P
29808   case $MKDIR_P in
29809   [\\/$]* | ?:[\\/]* ) ;;
29810   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29811   esac
29812 _ACEOF
29813
29814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29815 # If the template does not know about datarootdir, expand it.
29816 # FIXME: This hack should be removed a few years after 2.60.
29817 ac_datarootdir_hack=; ac_datarootdir_seen=
29818 ac_sed_dataroot='
29819 /datarootdir/ {
29820   p
29821   q
29822 }
29823 /@datadir@/p
29824 /@docdir@/p
29825 /@infodir@/p
29826 /@localedir@/p
29827 /@mandir@/p'
29828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29829 *datarootdir*) ac_datarootdir_seen=yes;;
29830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29831   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29832 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29833 _ACEOF
29834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29835   ac_datarootdir_hack='
29836   s&@datadir@&$datadir&g
29837   s&@docdir@&$docdir&g
29838   s&@infodir@&$infodir&g
29839   s&@localedir@&$localedir&g
29840   s&@mandir@&$mandir&g
29841   s&\\\${datarootdir}&$datarootdir&g' ;;
29842 esac
29843 _ACEOF
29844
29845 # Neutralize VPATH when `$srcdir' = `.'.
29846 # Shell code in configure.ac might set extrasub.
29847 # FIXME: do we really want to maintain this feature?
29848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29849 ac_sed_extra="$ac_vpsub
29850 $extrasub
29851 _ACEOF
29852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29853 :t
29854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29855 s|@configure_input@|$ac_sed_conf_input|;t t
29856 s&@top_builddir@&$ac_top_builddir_sub&;t t
29857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29858 s&@srcdir@&$ac_srcdir&;t t
29859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29860 s&@top_srcdir@&$ac_top_srcdir&;t t
29861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29862 s&@builddir@&$ac_builddir&;t t
29863 s&@abs_builddir@&$ac_abs_builddir&;t t
29864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29865 s&@INSTALL@&$ac_INSTALL&;t t
29866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29867 $ac_datarootdir_hack
29868 "
29869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29870   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29871
29872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29873   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29874   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29875       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29876   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29877 which seems to be undefined.  Please make sure it is defined" >&5
29878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29879 which seems to be undefined.  Please make sure it is defined" >&2;}
29880
29881   rm -f "$ac_tmp/stdin"
29882   case $ac_file in
29883   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29884   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29885   esac \
29886   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29887  ;;
29888   :H)
29889   #
29890   # CONFIG_HEADER
29891   #
29892   if test x"$ac_file" != x-; then
29893     {
29894       $as_echo "/* $configure_input  */" \
29895       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29896     } >"$ac_tmp/config.h" \
29897       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29898     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29899       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29901     else
29902       rm -f "$ac_file"
29903       mv "$ac_tmp/config.h" "$ac_file" \
29904         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29905     fi
29906   else
29907     $as_echo "/* $configure_input  */" \
29908       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29909       || as_fn_error $? "could not create -" "$LINENO" 5
29910   fi
29911 # Compute "$ac_file"'s index in $config_headers.
29912 _am_arg="$ac_file"
29913 _am_stamp_count=1
29914 for _am_header in $config_headers :; do
29915   case $_am_header in
29916     $_am_arg | $_am_arg:* )
29917       break ;;
29918     * )
29919       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29920   esac
29921 done
29922 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29923 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29924          X"$_am_arg" : 'X\(//\)[^/]' \| \
29925          X"$_am_arg" : 'X\(//\)$' \| \
29926          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29927 $as_echo X"$_am_arg" |
29928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29929             s//\1/
29930             q
29931           }
29932           /^X\(\/\/\)[^/].*/{
29933             s//\1/
29934             q
29935           }
29936           /^X\(\/\/\)$/{
29937             s//\1/
29938             q
29939           }
29940           /^X\(\/\).*/{
29941             s//\1/
29942             q
29943           }
29944           s/.*/./; q'`/stamp-h$_am_stamp_count
29945  ;;
29946
29947   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29948 $as_echo "$as_me: executing $ac_file commands" >&6;}
29949  ;;
29950   esac
29951
29952
29953   case $ac_file$ac_mode in
29954     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29955   # Older Autoconf quotes --file arguments for eval, but not when files
29956   # are listed without --file.  Let's play safe and only enable the eval
29957   # if we detect the quoting.
29958   case $CONFIG_FILES in
29959   *\'*) eval set x "$CONFIG_FILES" ;;
29960   *)   set x $CONFIG_FILES ;;
29961   esac
29962   shift
29963   for mf
29964   do
29965     # Strip MF so we end up with the name of the file.
29966     mf=`echo "$mf" | sed -e 's/:.*$//'`
29967     # Check whether this is an Automake generated Makefile or not.
29968     # We used to match only the files named 'Makefile.in', but
29969     # some people rename them; so instead we look at the file content.
29970     # Grep'ing the first line is not enough: some people post-process
29971     # each Makefile.in and add a new line on top of each file to say so.
29972     # Grep'ing the whole file is not good either: AIX grep has a line
29973     # limit of 2048, but all sed's we know have understand at least 4000.
29974     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29975       dirpart=`$as_dirname -- "$mf" ||
29976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29977          X"$mf" : 'X\(//\)[^/]' \| \
29978          X"$mf" : 'X\(//\)$' \| \
29979          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29980 $as_echo X"$mf" |
29981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29982             s//\1/
29983             q
29984           }
29985           /^X\(\/\/\)[^/].*/{
29986             s//\1/
29987             q
29988           }
29989           /^X\(\/\/\)$/{
29990             s//\1/
29991             q
29992           }
29993           /^X\(\/\).*/{
29994             s//\1/
29995             q
29996           }
29997           s/.*/./; q'`
29998     else
29999       continue
30000     fi
30001     # Extract the definition of DEPDIR, am__include, and am__quote
30002     # from the Makefile without running 'make'.
30003     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30004     test -z "$DEPDIR" && continue
30005     am__include=`sed -n 's/^am__include = //p' < "$mf"`
30006     test -z "$am__include" && continue
30007     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30008     # Find all dependency output files, they are included files with
30009     # $(DEPDIR) in their names.  We invoke sed twice because it is the
30010     # simplest approach to changing $(DEPDIR) to its actual value in the
30011     # expansion.
30012     for file in `sed -n "
30013       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30014          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30015       # Make sure the directory exists.
30016       test -f "$dirpart/$file" && continue
30017       fdir=`$as_dirname -- "$file" ||
30018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30019          X"$file" : 'X\(//\)[^/]' \| \
30020          X"$file" : 'X\(//\)$' \| \
30021          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30022 $as_echo X"$file" |
30023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30024             s//\1/
30025             q
30026           }
30027           /^X\(\/\/\)[^/].*/{
30028             s//\1/
30029             q
30030           }
30031           /^X\(\/\/\)$/{
30032             s//\1/
30033             q
30034           }
30035           /^X\(\/\).*/{
30036             s//\1/
30037             q
30038           }
30039           s/.*/./; q'`
30040       as_dir=$dirpart/$fdir; as_fn_mkdir_p
30041       # echo "creating $dirpart/$file"
30042       echo '# dummy' > "$dirpart/$file"
30043     done
30044   done
30045 }
30046  ;;
30047     "libtool":C)
30048
30049     # See if we are running on zsh, and set the options that allow our
30050     # commands through without removal of \ escapes.
30051     if test -n "${ZSH_VERSION+set}"; then
30052       setopt NO_GLOB_SUBST
30053     fi
30054
30055     cfgfile=${ofile}T
30056     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30057     $RM "$cfgfile"
30058
30059     cat <<_LT_EOF >> "$cfgfile"
30060 #! $SHELL
30061 # Generated automatically by $as_me ($PACKAGE) $VERSION
30062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30063 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30064
30065 # Provide generalized library-building support services.
30066 # Written by Gordon Matzigkeit, 1996
30067
30068 # Copyright (C) 2014 Free Software Foundation, Inc.
30069 # This is free software; see the source for copying conditions.  There is NO
30070 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30071
30072 # GNU Libtool is free software; you can redistribute it and/or modify
30073 # it under the terms of the GNU General Public License as published by
30074 # the Free Software Foundation; either version 2 of of the License, or
30075 # (at your option) any later version.
30076 #
30077 # As a special exception to the GNU General Public License, if you
30078 # distribute this file as part of a program or library that is built
30079 # using GNU Libtool, you may include this file under the  same
30080 # distribution terms that you use for the rest of that program.
30081 #
30082 # GNU Libtool is distributed in the hope that it will be useful, but
30083 # WITHOUT ANY WARRANTY; without even the implied warranty of
30084 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30085 # GNU General Public License for more details.
30086 #
30087 # You should have received a copy of the GNU General Public License
30088 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30089
30090
30091 # The names of the tagged configurations supported by this script.
30092 available_tags=''
30093
30094 # Configured defaults for sys_lib_dlsearch_path munging.
30095 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30096
30097 # ### BEGIN LIBTOOL CONFIG
30098
30099 # Which release of libtool.m4 was used?
30100 macro_version=$macro_version
30101 macro_revision=$macro_revision
30102
30103 # Assembler program.
30104 AS=$lt_AS
30105
30106 # DLL creation program.
30107 DLLTOOL=$lt_DLLTOOL
30108
30109 # Object dumper program.
30110 OBJDUMP=$lt_OBJDUMP
30111
30112 # Whether or not to build shared libraries.
30113 build_libtool_libs=$enable_shared
30114
30115 # Whether or not to build static libraries.
30116 build_old_libs=$enable_static
30117
30118 # What type of objects to build.
30119 pic_mode=$pic_mode
30120
30121 # Whether or not to optimize for fast installation.
30122 fast_install=$enable_fast_install
30123
30124 # Shared archive member basename,for filename based shared library versioning on AIX.
30125 shared_archive_member_spec=$shared_archive_member_spec
30126
30127 # Shell to use when invoking shell scripts.
30128 SHELL=$lt_SHELL
30129
30130 # An echo program that protects backslashes.
30131 ECHO=$lt_ECHO
30132
30133 # The PATH separator for the build system.
30134 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30135
30136 # The host system.
30137 host_alias=$host_alias
30138 host=$host
30139 host_os=$host_os
30140
30141 # The build system.
30142 build_alias=$build_alias
30143 build=$build
30144 build_os=$build_os
30145
30146 # A sed program that does not truncate output.
30147 SED=$lt_SED
30148
30149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30150 Xsed="\$SED -e 1s/^X//"
30151
30152 # A grep program that handles long lines.
30153 GREP=$lt_GREP
30154
30155 # An ERE matcher.
30156 EGREP=$lt_EGREP
30157
30158 # A literal string matcher.
30159 FGREP=$lt_FGREP
30160
30161 # A BSD- or MS-compatible name lister.
30162 NM=$lt_NM
30163
30164 # Whether we need soft or hard links.
30165 LN_S=$lt_LN_S
30166
30167 # What is the maximum length of a command?
30168 max_cmd_len=$max_cmd_len
30169
30170 # Object file suffix (normally "o").
30171 objext=$ac_objext
30172
30173 # Executable file suffix (normally "").
30174 exeext=$exeext
30175
30176 # whether the shell understands "unset".
30177 lt_unset=$lt_unset
30178
30179 # turn spaces into newlines.
30180 SP2NL=$lt_lt_SP2NL
30181
30182 # turn newlines into spaces.
30183 NL2SP=$lt_lt_NL2SP
30184
30185 # convert \$build file names to \$host format.
30186 to_host_file_cmd=$lt_cv_to_host_file_cmd
30187
30188 # convert \$build files to toolchain format.
30189 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30190
30191 # Method to check whether dependent libraries are shared objects.
30192 deplibs_check_method=$lt_deplibs_check_method
30193
30194 # Command to use when deplibs_check_method = "file_magic".
30195 file_magic_cmd=$lt_file_magic_cmd
30196
30197 # How to find potential files when deplibs_check_method = "file_magic".
30198 file_magic_glob=$lt_file_magic_glob
30199
30200 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30201 want_nocaseglob=$lt_want_nocaseglob
30202
30203 # Command to associate shared and link libraries.
30204 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30205
30206 # The archiver.
30207 AR=$lt_AR
30208
30209 # Flags to create an archive.
30210 AR_FLAGS=$lt_AR_FLAGS
30211
30212 # How to feed a file listing to the archiver.
30213 archiver_list_spec=$lt_archiver_list_spec
30214
30215 # A symbol stripping program.
30216 STRIP=$lt_STRIP
30217
30218 # Commands used to install an old-style archive.
30219 RANLIB=$lt_RANLIB
30220 old_postinstall_cmds=$lt_old_postinstall_cmds
30221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30222
30223 # Whether to use a lock for old archive extraction.
30224 lock_old_archive_extraction=$lock_old_archive_extraction
30225
30226 # A C compiler.
30227 LTCC=$lt_CC
30228
30229 # LTCC compiler flags.
30230 LTCFLAGS=$lt_CFLAGS
30231
30232 # Take the output of nm and produce a listing of raw symbols and C names.
30233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30234
30235 # Transform the output of nm in a proper C declaration.
30236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30237
30238 # Transform the output of nm into a list of symbols to manually relocate.
30239 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30240
30241 # Transform the output of nm in a C name address pair.
30242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30243
30244 # Transform the output of nm in a C name address pair when lib prefix is needed.
30245 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30246
30247 # The name lister interface.
30248 nm_interface=$lt_lt_cv_nm_interface
30249
30250 # Specify filename containing input files for \$NM.
30251 nm_file_list_spec=$lt_nm_file_list_spec
30252
30253 # The root where to search for dependent libraries,and where our libraries should be installed.
30254 lt_sysroot=$lt_sysroot
30255
30256 # Command to truncate a binary pipe.
30257 lt_truncate_bin=$lt_lt_cv_truncate_bin
30258
30259 # The name of the directory that contains temporary libtool files.
30260 objdir=$objdir
30261
30262 # Used to examine libraries when file_magic_cmd begins with "file".
30263 MAGIC_CMD=$MAGIC_CMD
30264
30265 # Must we lock files when doing compilation?
30266 need_locks=$lt_need_locks
30267
30268 # Manifest tool.
30269 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30270
30271 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30272 DSYMUTIL=$lt_DSYMUTIL
30273
30274 # Tool to change global to local symbols on Mac OS X.
30275 NMEDIT=$lt_NMEDIT
30276
30277 # Tool to manipulate fat objects and archives on Mac OS X.
30278 LIPO=$lt_LIPO
30279
30280 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30281 OTOOL=$lt_OTOOL
30282
30283 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30284 OTOOL64=$lt_OTOOL64
30285
30286 # Old archive suffix (normally "a").
30287 libext=$libext
30288
30289 # Shared library suffix (normally ".so").
30290 shrext_cmds=$lt_shrext_cmds
30291
30292 # The commands to extract the exported symbol list from a shared archive.
30293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30294
30295 # Variables whose values should be saved in libtool wrapper scripts and
30296 # restored at link time.
30297 variables_saved_for_relink=$lt_variables_saved_for_relink
30298
30299 # Do we need the "lib" prefix for modules?
30300 need_lib_prefix=$need_lib_prefix
30301
30302 # Do we need a version for libraries?
30303 need_version=$need_version
30304
30305 # Library versioning type.
30306 version_type=$version_type
30307
30308 # Shared library runtime path variable.
30309 runpath_var=$runpath_var
30310
30311 # Shared library path variable.
30312 shlibpath_var=$shlibpath_var
30313
30314 # Is shlibpath searched before the hard-coded library search path?
30315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30316
30317 # Format of library name prefix.
30318 libname_spec=$lt_libname_spec
30319
30320 # List of archive names.  First name is the real one, the rest are links.
30321 # The last name is the one that the linker finds with -lNAME
30322 library_names_spec=$lt_library_names_spec
30323
30324 # The coded name of the library, if different from the real name.
30325 soname_spec=$lt_soname_spec
30326
30327 # Permission mode override for installation of shared libraries.
30328 install_override_mode=$lt_install_override_mode
30329
30330 # Command to use after installation of a shared archive.
30331 postinstall_cmds=$lt_postinstall_cmds
30332
30333 # Command to use after uninstallation of a shared archive.
30334 postuninstall_cmds=$lt_postuninstall_cmds
30335
30336 # Commands used to finish a libtool library installation in a directory.
30337 finish_cmds=$lt_finish_cmds
30338
30339 # As "finish_cmds", except a single script fragment to be evaled but
30340 # not shown.
30341 finish_eval=$lt_finish_eval
30342
30343 # Whether we should hardcode library paths into libraries.
30344 hardcode_into_libs=$hardcode_into_libs
30345
30346 # Compile-time system search path for libraries.
30347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30348
30349 # Detected run-time system search path for libraries.
30350 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30351
30352 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30353 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30354
30355 # Whether dlopen is supported.
30356 dlopen_support=$enable_dlopen
30357
30358 # Whether dlopen of programs is supported.
30359 dlopen_self=$enable_dlopen_self
30360
30361 # Whether dlopen of statically linked programs is supported.
30362 dlopen_self_static=$enable_dlopen_self_static
30363
30364 # Commands to strip libraries.
30365 old_striplib=$lt_old_striplib
30366 striplib=$lt_striplib
30367
30368
30369 # The linker used to build libraries.
30370 LD=$lt_LD
30371
30372 # How to create reloadable object files.
30373 reload_flag=$lt_reload_flag
30374 reload_cmds=$lt_reload_cmds
30375
30376 # Commands used to build an old-style archive.
30377 old_archive_cmds=$lt_old_archive_cmds
30378
30379 # A language specific compiler.
30380 CC=$lt_compiler
30381
30382 # Is the compiler the GNU compiler?
30383 with_gcc=$GCC
30384
30385 # Compiler flag to turn off builtin functions.
30386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30387
30388 # Additional compiler flags for building library objects.
30389 pic_flag=$lt_lt_prog_compiler_pic
30390
30391 # How to pass a linker flag through the compiler.
30392 wl=$lt_lt_prog_compiler_wl
30393
30394 # Compiler flag to prevent dynamic linking.
30395 link_static_flag=$lt_lt_prog_compiler_static
30396
30397 # Does compiler simultaneously support -c and -o options?
30398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30399
30400 # Whether or not to add -lc for building shared libraries.
30401 build_libtool_need_lc=$archive_cmds_need_lc
30402
30403 # Whether or not to disallow shared libs when runtime libs are static.
30404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30405
30406 # Compiler flag to allow reflexive dlopens.
30407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30408
30409 # Compiler flag to generate shared objects directly from archives.
30410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30411
30412 # Whether the compiler copes with passing no objects directly.
30413 compiler_needs_object=$lt_compiler_needs_object
30414
30415 # Create an old-style archive from a shared archive.
30416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30417
30418 # Create a temporary old-style archive to link instead of a shared archive.
30419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30420
30421 # Commands used to build a shared archive.
30422 archive_cmds=$lt_archive_cmds
30423 archive_expsym_cmds=$lt_archive_expsym_cmds
30424
30425 # Commands used to build a loadable module if different from building
30426 # a shared archive.
30427 module_cmds=$lt_module_cmds
30428 module_expsym_cmds=$lt_module_expsym_cmds
30429
30430 # Whether we are building with GNU ld or not.
30431 with_gnu_ld=$lt_with_gnu_ld
30432
30433 # Flag that allows shared libraries with undefined symbols to be built.
30434 allow_undefined_flag=$lt_allow_undefined_flag
30435
30436 # Flag that enforces no undefined symbols.
30437 no_undefined_flag=$lt_no_undefined_flag
30438
30439 # Flag to hardcode \$libdir into a binary during linking.
30440 # This must work even if \$libdir does not exist
30441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30442
30443 # Whether we need a single "-rpath" flag with a separated argument.
30444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30445
30446 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30447 # DIR into the resulting binary.
30448 hardcode_direct=$hardcode_direct
30449
30450 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30451 # DIR into the resulting binary and the resulting library dependency is
30452 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30453 # library is relocated.
30454 hardcode_direct_absolute=$hardcode_direct_absolute
30455
30456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30457 # into the resulting binary.
30458 hardcode_minus_L=$hardcode_minus_L
30459
30460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30461 # into the resulting binary.
30462 hardcode_shlibpath_var=$hardcode_shlibpath_var
30463
30464 # Set to "yes" if building a shared library automatically hardcodes DIR
30465 # into the library and all subsequent libraries and executables linked
30466 # against it.
30467 hardcode_automatic=$hardcode_automatic
30468
30469 # Set to yes if linker adds runtime paths of dependent libraries
30470 # to runtime path list.
30471 inherit_rpath=$inherit_rpath
30472
30473 # Whether libtool must link a program against all its dependency libraries.
30474 link_all_deplibs=$link_all_deplibs
30475
30476 # Set to "yes" if exported symbols are required.
30477 always_export_symbols=$always_export_symbols
30478
30479 # The commands to list exported symbols.
30480 export_symbols_cmds=$lt_export_symbols_cmds
30481
30482 # Symbols that should not be listed in the preloaded symbols.
30483 exclude_expsyms=$lt_exclude_expsyms
30484
30485 # Symbols that must always be exported.
30486 include_expsyms=$lt_include_expsyms
30487
30488 # Commands necessary for linking programs (against libraries) with templates.
30489 prelink_cmds=$lt_prelink_cmds
30490
30491 # Commands necessary for finishing linking programs.
30492 postlink_cmds=$lt_postlink_cmds
30493
30494 # Specify filename containing input files.
30495 file_list_spec=$lt_file_list_spec
30496
30497 # How to hardcode a shared library path into an executable.
30498 hardcode_action=$hardcode_action
30499
30500 # ### END LIBTOOL CONFIG
30501
30502 _LT_EOF
30503
30504     cat <<'_LT_EOF' >> "$cfgfile"
30505
30506 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30507
30508 # func_munge_path_list VARIABLE PATH
30509 # -----------------------------------
30510 # VARIABLE is name of variable containing _space_ separated list of
30511 # directories to be munged by the contents of PATH, which is string
30512 # having a format:
30513 # "DIR[:DIR]:"
30514 #       string "DIR[ DIR]" will be prepended to VARIABLE
30515 # ":DIR[:DIR]"
30516 #       string "DIR[ DIR]" will be appended to VARIABLE
30517 # "DIRP[:DIRP]::[DIRA:]DIRA"
30518 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30519 #       "DIRA[ DIRA]" will be appended to VARIABLE
30520 # "DIR[:DIR]"
30521 #       VARIABLE will be replaced by "DIR[ DIR]"
30522 func_munge_path_list ()
30523 {
30524     case x$2 in
30525     x)
30526         ;;
30527     *:)
30528         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30529         ;;
30530     x:*)
30531         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30532         ;;
30533     *::*)
30534         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30535         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30536         ;;
30537     *)
30538         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30539         ;;
30540     esac
30541 }
30542
30543
30544 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30545 func_cc_basename ()
30546 {
30547     for cc_temp in $*""; do
30548       case $cc_temp in
30549         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30550         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30551         \-*) ;;
30552         *) break;;
30553       esac
30554     done
30555     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30556 }
30557
30558
30559 # ### END FUNCTIONS SHARED WITH CONFIGURE
30560
30561 _LT_EOF
30562
30563   case $host_os in
30564   aix3*)
30565     cat <<\_LT_EOF >> "$cfgfile"
30566 # AIX sometimes has problems with the GCC collect2 program.  For some
30567 # reason, if we set the COLLECT_NAMES environment variable, the problems
30568 # vanish in a puff of smoke.
30569 if test set != "${COLLECT_NAMES+set}"; then
30570   COLLECT_NAMES=
30571   export COLLECT_NAMES
30572 fi
30573 _LT_EOF
30574     ;;
30575   esac
30576
30577
30578 ltmain=$ac_aux_dir/ltmain.sh
30579
30580
30581   # We use sed instead of cat because bash on DJGPP gets confused if
30582   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30583   # text mode, it properly converts lines to CR/LF.  This bash problem
30584   # is reportedly fixed, but why not run on old versions too?
30585   sed '$q' "$ltmain" >> "$cfgfile" \
30586      || (rm -f "$cfgfile"; exit 1)
30587
30588    mv -f "$cfgfile" "$ofile" ||
30589     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30590   chmod +x "$ofile"
30591
30592  ;;
30593
30594   esac
30595 done # for ac_tag
30596
30597
30598 as_fn_exit 0
30599 _ACEOF
30600 ac_clean_files=$ac_clean_files_save
30601
30602 test $ac_write_fail = 0 ||
30603   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30604
30605
30606 # configure is writing to config.log, and then calls config.status.
30607 # config.status does its own redirection, appending to config.log.
30608 # Unfortunately, on DOS this fails, as config.log is still kept open
30609 # by configure, so config.status won't be able to write to it; its
30610 # output is simply discarded.  So we exec the FD to /dev/null,
30611 # effectively closing config.log, so it can be properly (re)opened and
30612 # appended to by config.status.  When coming back to configure, we
30613 # need to make the FD available again.
30614 if test "$no_create" != yes; then
30615   ac_cs_success=:
30616   ac_config_status_args=
30617   test "$silent" = yes &&
30618     ac_config_status_args="$ac_config_status_args --quiet"
30619   exec 5>/dev/null
30620   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30621   exec 5>>config.log
30622   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30623   # would make configure fail if this is the last instruction.
30624   $ac_cs_success || as_fn_exit 1
30625 fi
30626
30627 #
30628 # CONFIG_SUBDIRS section.
30629 #
30630 if test "$no_recursion" != yes; then
30631
30632   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
30633   # so they do not pile up.
30634   ac_sub_configure_args=
30635   ac_prev=
30636   eval "set x $ac_configure_args"
30637   shift
30638   for ac_arg
30639   do
30640     if test -n "$ac_prev"; then
30641       ac_prev=
30642       continue
30643     fi
30644     case $ac_arg in
30645     -cache-file | --cache-file | --cache-fil | --cache-fi \
30646     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30647       ac_prev=cache_file ;;
30648     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30649     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30650     | --c=*)
30651       ;;
30652     --config-cache | -C)
30653       ;;
30654     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30655       ac_prev=srcdir ;;
30656     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30657       ;;
30658     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30659       ac_prev=prefix ;;
30660     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30661       ;;
30662     --disable-option-checking)
30663       ;;
30664     *)
30665       case $ac_arg in
30666       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30667       esac
30668       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
30669     esac
30670   done
30671
30672   # Always prepend --prefix to ensure using the same prefix
30673   # in subdir configurations.
30674   ac_arg="--prefix=$prefix"
30675   case $ac_arg in
30676   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30677   esac
30678   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
30679
30680   # Pass --silent
30681   if test "$silent" = yes; then
30682     ac_sub_configure_args="--silent $ac_sub_configure_args"
30683   fi
30684
30685   # Always prepend --disable-option-checking to silence warnings, since
30686   # different subdirs can have different --enable and --with options.
30687   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
30688
30689   ac_popdir=`pwd`
30690   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30691
30692     # Do not complain, so a configure script can configure whichever
30693     # parts of a large source tree are present.
30694     test -d "$srcdir/$ac_dir" || continue
30695
30696     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
30697     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
30698     $as_echo "$ac_msg" >&6
30699     as_dir="$ac_dir"; as_fn_mkdir_p
30700     ac_builddir=.
30701
30702 case "$ac_dir" in
30703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30704 *)
30705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30706   # A ".." for each directory in $ac_dir_suffix.
30707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30708   case $ac_top_builddir_sub in
30709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30711   esac ;;
30712 esac
30713 ac_abs_top_builddir=$ac_pwd
30714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30715 # for backward compatibility:
30716 ac_top_builddir=$ac_top_build_prefix
30717
30718 case $srcdir in
30719   .)  # We are building in place.
30720     ac_srcdir=.
30721     ac_top_srcdir=$ac_top_builddir_sub
30722     ac_abs_top_srcdir=$ac_pwd ;;
30723   [\\/]* | ?:[\\/]* )  # Absolute name.
30724     ac_srcdir=$srcdir$ac_dir_suffix;
30725     ac_top_srcdir=$srcdir
30726     ac_abs_top_srcdir=$srcdir ;;
30727   *) # Relative name.
30728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30729     ac_top_srcdir=$ac_top_build_prefix$srcdir
30730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30731 esac
30732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30733
30734
30735     cd "$ac_dir"
30736
30737     # Check for guested configure; otherwise get Cygnus style configure.
30738     if test -f "$ac_srcdir/configure.gnu"; then
30739       ac_sub_configure=$ac_srcdir/configure.gnu
30740     elif test -f "$ac_srcdir/configure"; then
30741       ac_sub_configure=$ac_srcdir/configure
30742     elif test -f "$ac_srcdir/configure.in"; then
30743       # This should be Cygnus configure.
30744       ac_sub_configure=$ac_aux_dir/configure
30745     else
30746       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
30747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30748       ac_sub_configure=
30749     fi
30750
30751     # The recursion is here.
30752     if test -n "$ac_sub_configure"; then
30753       # Make the cache file name correct relative to the subdirectory.
30754       case $cache_file in
30755       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30756       *) # Relative name.
30757         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
30758       esac
30759
30760       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30761 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30762       # The eval makes quoting arguments work.
30763       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
30764            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
30765         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
30766     fi
30767
30768     cd "$ac_popdir"
30769   done
30770 fi
30771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30774 fi
30775
30776
30777 ## ---------------------------------- ##
30778 ##  Start of distclean amending code  ##
30779 ## ---------------------------------- ##
30780
30781 for xc_subdir in '.'
30782 do
30783
30784 if test ! -f "$xc_subdir/Makefile"; then
30785   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
30786   exit 1
30787 fi
30788
30789 # Fetch dependency tracking file list from Makefile include lines.
30790
30791 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
30792 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
30793
30794 # --disable-dependency-tracking might have been used, consequently
30795 # there is nothing to amend without a dependency tracking file list.
30796
30797 if test $xc_cnt_words -gt 0; then
30798
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
30800 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
30801
30802 # Build Makefile specific patch hunk.
30803
30804 xc_p="$xc_subdir/xc_patch.tmp"
30805
30806 xc_rm_depfiles=`echo "$xc_inc_lines" \
30807   | $SED 's%include%    -rm -f%' 2>/dev/null`
30808
30809 xc_dep_subdirs=`echo "$xc_inc_lines" \
30810   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
30811   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
30812   | sort | uniq`
30813
30814 echo "$xc_rm_depfiles" >$xc_p
30815
30816 for xc_dep_dir in $xc_dep_subdirs; do
30817   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
30818   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
30819   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
30820   echo "${xc_tab}fi"                                                                >>$xc_p
30821 done
30822
30823 # Build Makefile patching sed scripts.
30824
30825 xc_s1="$xc_subdir/xc_script_1.tmp"
30826 xc_s2="$xc_subdir/xc_script_2.tmp"
30827 xc_s3="$xc_subdir/xc_script_3.tmp"
30828
30829 cat >$xc_s1 <<\_EOT
30830 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
30831   s/^.*(DEPDIR)/___xc_depdir_line___/
30832 }
30833 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
30834   s/^.*(DEPDIR)/___xc_depdir_line___/
30835 }
30836 _EOT
30837
30838 cat >$xc_s2 <<\_EOT
30839 /___xc_depdir_line___$/{
30840   N
30841   /___xc_depdir_line___$/D
30842 }
30843 _EOT
30844
30845 cat >$xc_s3 <<_EOT
30846 /^___xc_depdir_line___/{
30847   r $xc_p
30848   d
30849 }
30850 _EOT
30851
30852 # Apply patch to Makefile and cleanup.
30853
30854 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
30855 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
30856 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
30857
30858 if test -f "$xc_subdir/Makefile.tmp3"; then
30859   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
30860 fi
30861
30862 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
30863 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
30864 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
30865
30866 test -f "$xc_p"  && rm -f "$xc_p"
30867 test -f "$xc_s1" && rm -f "$xc_s1"
30868 test -f "$xc_s2" && rm -f "$xc_s2"
30869 test -f "$xc_s3" && rm -f "$xc_s3"
30870
30871 fi
30872
30873 done
30874
30875 ## -------------------------------- ##
30876 ##  End of distclean amending code  ##
30877 ## -------------------------------- ##
30878
30879