Imported Upstream version 1.17.1
[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.17.1.
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.17.1'
828 PACKAGE_STRING='c-ares 1.17.1'
829 PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
830 PACKAGE_URL=''
831
832 ac_unique_file="src/lib/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 BUILD_SUBDIRS
875 subdirs
876 CARES_CFLAG_EXTRAS
877 CARES_PRIVATE_LIBS
878 CFLAG_CARES_SYMBOL_HIDING
879 DOING_CARES_SYMBOL_HIDING_FALSE
880 DOING_CARES_SYMBOL_HIDING_TRUE
881 RANDOM_FILE
882 DOING_NATIVE_WINDOWS_FALSE
883 DOING_NATIVE_WINDOWS_TRUE
884 CPPFLAG_CARES_STATICLIB
885 USE_CPPFLAG_CARES_STATICLIB_FALSE
886 USE_CPPFLAG_CARES_STATICLIB_TRUE
887 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
888 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
889 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
890 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
891 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
892 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
893 CXXCPP
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__fastdepCXX_FALSE
914 am__fastdepCXX_TRUE
915 CXXDEPMODE
916 am__fastdepCC_FALSE
917 am__fastdepCC_TRUE
918 CCDEPMODE
919 am__nodep
920 AMDEPBACKSLASH
921 AMDEP_FALSE
922 AMDEP_TRUE
923 am__include
924 DEPDIR
925 am__untar
926 am__tar
927 AMTAR
928 am__leading_dot
929 SET_MAKE
930 AWK
931 mkdir_p
932 MKDIR_P
933 INSTALL_STRIP_PROGRAM
934 STRIP
935 install_sh
936 MAKEINFO
937 AUTOHEADER
938 AUTOMAKE
939 AUTOCONF
940 ACLOCAL
941 VERSION
942 PACKAGE
943 CYGPATH_W
944 am__isrc
945 HAVE_CXX11
946 ac_ct_CXX
947 CXXFLAGS
948 CXX
949 CPP
950 OBJEXT
951 EXEEXT
952 ac_ct_CC
953 CPPFLAGS
954 LDFLAGS
955 CFLAGS
956 CC
957 INSTALL_DATA
958 INSTALL_SCRIPT
959 INSTALL_PROGRAM
960 host_os
961 host_vendor
962 host_cpu
963 host
964 build_os
965 build_vendor
966 build_cpu
967 build
968 CODE_COVERAGE_RULES
969 CODE_COVERAGE_LDFLAGS
970 CODE_COVERAGE_CFLAGS
971 GENHTML
972 LCOV
973 GCOV
974 CODE_COVERAGE_ENABLED
975 CODE_COVERAGE_ENABLED_FALSE
976 CODE_COVERAGE_ENABLED_TRUE
977 AR
978 EGREP
979 GREP
980 SED
981 AM_BACKSLASH
982 AM_DEFAULT_VERBOSITY
983 AM_DEFAULT_V
984 AM_V
985 MAINT
986 MAINTAINER_MODE_FALSE
987 MAINTAINER_MODE_TRUE
988 CARES_VERSION_INFO
989 target_alias
990 host_alias
991 build_alias
992 LIBS
993 ECHO_T
994 ECHO_N
995 ECHO_C
996 DEFS
997 mandir
998 localedir
999 libdir
1000 psdir
1001 pdfdir
1002 dvidir
1003 htmldir
1004 infodir
1005 docdir
1006 oldincludedir
1007 includedir
1008 runstatedir
1009 localstatedir
1010 sharedstatedir
1011 sysconfdir
1012 datadir
1013 datarootdir
1014 libexecdir
1015 sbindir
1016 bindir
1017 program_transform_name
1018 prefix
1019 exec_prefix
1020 PACKAGE_URL
1021 PACKAGE_BUGREPORT
1022 PACKAGE_STRING
1023 PACKAGE_VERSION
1024 PACKAGE_TARNAME
1025 PACKAGE_NAME
1026 SHELL
1027 PATH_SEPARATOR
1028 am__quote'
1029 ac_subst_files=''
1030 ac_user_opts='
1031 enable_option_checking
1032 enable_maintainer_mode
1033 enable_silent_rules
1034 enable_debug
1035 enable_optimize
1036 enable_warnings
1037 enable_werror
1038 enable_symbol_hiding
1039 enable_expose_statics
1040 with_gcov
1041 enable_code_coverage
1042 enable_dependency_tracking
1043 enable_largefile
1044 enable_shared
1045 enable_static
1046 with_pic
1047 enable_fast_install
1048 with_aix_soname
1049 with_gnu_ld
1050 with_sysroot
1051 enable_libtool_lock
1052 enable_libgcc
1053 with_random
1054 enable_nonblocking
1055 enable_tests
1056 '
1057       ac_precious_vars='build_alias
1058 host_alias
1059 target_alias
1060 CC
1061 CFLAGS
1062 LDFLAGS
1063 LIBS
1064 CPPFLAGS
1065 CPP
1066 CXX
1067 CXXFLAGS
1068 CCC
1069 LT_SYS_LIBRARY_PATH
1070 CXXCPP'
1071 ac_subdirs_all='test'
1072
1073 # Initialize some variables set by options.
1074 ac_init_help=
1075 ac_init_version=false
1076 ac_unrecognized_opts=
1077 ac_unrecognized_sep=
1078 # The variables have the same names as the options, with
1079 # dashes changed to underlines.
1080 cache_file=/dev/null
1081 exec_prefix=NONE
1082 no_create=
1083 no_recursion=
1084 prefix=NONE
1085 program_prefix=NONE
1086 program_suffix=NONE
1087 program_transform_name=s,x,x,
1088 silent=
1089 site=
1090 srcdir=
1091 verbose=
1092 x_includes=NONE
1093 x_libraries=NONE
1094
1095 # Installation directory options.
1096 # These are left unexpanded so users can "make install exec_prefix=/foo"
1097 # and all the variables that are supposed to be based on exec_prefix
1098 # by default will actually change.
1099 # Use braces instead of parens because sh, perl, etc. also accept them.
1100 # (The list follows the same order as the GNU Coding Standards.)
1101 bindir='${exec_prefix}/bin'
1102 sbindir='${exec_prefix}/sbin'
1103 libexecdir='${exec_prefix}/libexec'
1104 datarootdir='${prefix}/share'
1105 datadir='${datarootdir}'
1106 sysconfdir='${prefix}/etc'
1107 sharedstatedir='${prefix}/com'
1108 localstatedir='${prefix}/var'
1109 runstatedir='${localstatedir}/run'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1121
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1125 do
1126   # If the previous option needs an argument, assign it.
1127   if test -n "$ac_prev"; then
1128     eval $ac_prev=\$ac_option
1129     ac_prev=
1130     continue
1131   fi
1132
1133   case $ac_option in
1134   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135   *=)   ac_optarg= ;;
1136   *)    ac_optarg=yes ;;
1137   esac
1138
1139   # Accept the important Cygnus configure options, so we can diagnose typos.
1140
1141   case $ac_dashdash$ac_option in
1142   --)
1143     ac_dashdash=yes ;;
1144
1145   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1146     ac_prev=bindir ;;
1147   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1148     bindir=$ac_optarg ;;
1149
1150   -build | --build | --buil | --bui | --bu)
1151     ac_prev=build_alias ;;
1152   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1153     build_alias=$ac_optarg ;;
1154
1155   -cache-file | --cache-file | --cache-fil | --cache-fi \
1156   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1157     ac_prev=cache_file ;;
1158   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1159   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1160     cache_file=$ac_optarg ;;
1161
1162   --config-cache | -C)
1163     cache_file=config.cache ;;
1164
1165   -datadir | --datadir | --datadi | --datad)
1166     ac_prev=datadir ;;
1167   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1168     datadir=$ac_optarg ;;
1169
1170   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1171   | --dataroo | --dataro | --datar)
1172     ac_prev=datarootdir ;;
1173   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1174   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1175     datarootdir=$ac_optarg ;;
1176
1177   -disable-* | --disable-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid feature name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "enable_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval enable_$ac_useropt=no ;;
1192
1193   -docdir | --docdir | --docdi | --doc | --do)
1194     ac_prev=docdir ;;
1195   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196     docdir=$ac_optarg ;;
1197
1198   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1199     ac_prev=dvidir ;;
1200   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201     dvidir=$ac_optarg ;;
1202
1203   -enable-* | --enable-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid feature name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "enable_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval enable_$ac_useropt=\$ac_optarg ;;
1218
1219   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221   | --exec | --exe | --ex)
1222     ac_prev=exec_prefix ;;
1223   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1224   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1225   | --exec=* | --exe=* | --ex=*)
1226     exec_prefix=$ac_optarg ;;
1227
1228   -gas | --gas | --ga | --g)
1229     # Obsolete; use --with-gas.
1230     with_gas=yes ;;
1231
1232   -help | --help | --hel | --he | -h)
1233     ac_init_help=long ;;
1234   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1235     ac_init_help=recursive ;;
1236   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1237     ac_init_help=short ;;
1238
1239   -host | --host | --hos | --ho)
1240     ac_prev=host_alias ;;
1241   -host=* | --host=* | --hos=* | --ho=*)
1242     host_alias=$ac_optarg ;;
1243
1244   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1245     ac_prev=htmldir ;;
1246   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1247   | --ht=*)
1248     htmldir=$ac_optarg ;;
1249
1250   -includedir | --includedir | --includedi | --included | --include \
1251   | --includ | --inclu | --incl | --inc)
1252     ac_prev=includedir ;;
1253   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1254   | --includ=* | --inclu=* | --incl=* | --inc=*)
1255     includedir=$ac_optarg ;;
1256
1257   -infodir | --infodir | --infodi | --infod | --info | --inf)
1258     ac_prev=infodir ;;
1259   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1260     infodir=$ac_optarg ;;
1261
1262   -libdir | --libdir | --libdi | --libd)
1263     ac_prev=libdir ;;
1264   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1265     libdir=$ac_optarg ;;
1266
1267   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1268   | --libexe | --libex | --libe)
1269     ac_prev=libexecdir ;;
1270   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1271   | --libexe=* | --libex=* | --libe=*)
1272     libexecdir=$ac_optarg ;;
1273
1274   -localedir | --localedir | --localedi | --localed | --locale)
1275     ac_prev=localedir ;;
1276   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1277     localedir=$ac_optarg ;;
1278
1279   -localstatedir | --localstatedir | --localstatedi | --localstated \
1280   | --localstate | --localstat | --localsta | --localst | --locals)
1281     ac_prev=localstatedir ;;
1282   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1283   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1284     localstatedir=$ac_optarg ;;
1285
1286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1287     ac_prev=mandir ;;
1288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1289     mandir=$ac_optarg ;;
1290
1291   -nfp | --nfp | --nf)
1292     # Obsolete; use --without-fp.
1293     with_fp=no ;;
1294
1295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296   | --no-cr | --no-c | -n)
1297     no_create=yes ;;
1298
1299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1301     no_recursion=yes ;;
1302
1303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1305   | --oldin | --oldi | --old | --ol | --o)
1306     ac_prev=oldincludedir ;;
1307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1310     oldincludedir=$ac_optarg ;;
1311
1312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1313     ac_prev=prefix ;;
1314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1315     prefix=$ac_optarg ;;
1316
1317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1318   | --program-pre | --program-pr | --program-p)
1319     ac_prev=program_prefix ;;
1320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1322     program_prefix=$ac_optarg ;;
1323
1324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1325   | --program-suf | --program-su | --program-s)
1326     ac_prev=program_suffix ;;
1327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1329     program_suffix=$ac_optarg ;;
1330
1331   -program-transform-name | --program-transform-name \
1332   | --program-transform-nam | --program-transform-na \
1333   | --program-transform-n | --program-transform- \
1334   | --program-transform | --program-transfor \
1335   | --program-transfo | --program-transf \
1336   | --program-trans | --program-tran \
1337   | --progr-tra | --program-tr | --program-t)
1338     ac_prev=program_transform_name ;;
1339   -program-transform-name=* | --program-transform-name=* \
1340   | --program-transform-nam=* | --program-transform-na=* \
1341   | --program-transform-n=* | --program-transform-=* \
1342   | --program-transform=* | --program-transfor=* \
1343   | --program-transfo=* | --program-transf=* \
1344   | --program-trans=* | --program-tran=* \
1345   | --progr-tra=* | --program-tr=* | --program-t=*)
1346     program_transform_name=$ac_optarg ;;
1347
1348   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1349     ac_prev=pdfdir ;;
1350   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1351     pdfdir=$ac_optarg ;;
1352
1353   -psdir | --psdir | --psdi | --psd | --ps)
1354     ac_prev=psdir ;;
1355   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1356     psdir=$ac_optarg ;;
1357
1358   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359   | -silent | --silent | --silen | --sile | --sil)
1360     silent=yes ;;
1361
1362   -runstatedir | --runstatedir | --runstatedi | --runstated \
1363   | --runstate | --runstat | --runsta | --runst | --runs \
1364   | --run | --ru | --r)
1365     ac_prev=runstatedir ;;
1366   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1367   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1368   | --run=* | --ru=* | --r=*)
1369     runstatedir=$ac_optarg ;;
1370
1371   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372     ac_prev=sbindir ;;
1373   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374   | --sbi=* | --sb=*)
1375     sbindir=$ac_optarg ;;
1376
1377   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379   | --sharedst | --shareds | --shared | --share | --shar \
1380   | --sha | --sh)
1381     ac_prev=sharedstatedir ;;
1382   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385   | --sha=* | --sh=*)
1386     sharedstatedir=$ac_optarg ;;
1387
1388   -site | --site | --sit)
1389     ac_prev=site ;;
1390   -site=* | --site=* | --sit=*)
1391     site=$ac_optarg ;;
1392
1393   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394     ac_prev=srcdir ;;
1395   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396     srcdir=$ac_optarg ;;
1397
1398   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399   | --syscon | --sysco | --sysc | --sys | --sy)
1400     ac_prev=sysconfdir ;;
1401   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403     sysconfdir=$ac_optarg ;;
1404
1405   -target | --target | --targe | --targ | --tar | --ta | --t)
1406     ac_prev=target_alias ;;
1407   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408     target_alias=$ac_optarg ;;
1409
1410   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411     verbose=yes ;;
1412
1413   -version | --version | --versio | --versi | --vers | -V)
1414     ac_init_version=: ;;
1415
1416   -with-* | --with-*)
1417     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420       as_fn_error $? "invalid package name: $ac_useropt"
1421     ac_useropt_orig=$ac_useropt
1422     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423     case $ac_user_opts in
1424       *"
1425 "with_$ac_useropt"
1426 "*) ;;
1427       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428          ac_unrecognized_sep=', ';;
1429     esac
1430     eval with_$ac_useropt=\$ac_optarg ;;
1431
1432   -without-* | --without-*)
1433     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434     # Reject names that are not valid shell variable names.
1435     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436       as_fn_error $? "invalid package name: $ac_useropt"
1437     ac_useropt_orig=$ac_useropt
1438     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439     case $ac_user_opts in
1440       *"
1441 "with_$ac_useropt"
1442 "*) ;;
1443       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444          ac_unrecognized_sep=', ';;
1445     esac
1446     eval with_$ac_useropt=no ;;
1447
1448   --x)
1449     # Obsolete; use --with-x.
1450     with_x=yes ;;
1451
1452   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453   | --x-incl | --x-inc | --x-in | --x-i)
1454     ac_prev=x_includes ;;
1455   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457     x_includes=$ac_optarg ;;
1458
1459   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461     ac_prev=x_libraries ;;
1462   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464     x_libraries=$ac_optarg ;;
1465
1466   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1468     ;;
1469
1470   *=*)
1471     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472     # Reject names that are not valid shell variable names.
1473     case $ac_envvar in #(
1474       '' | [0-9]* | *[!_$as_cr_alnum]* )
1475       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476     esac
1477     eval $ac_envvar=\$ac_optarg
1478     export $ac_envvar ;;
1479
1480   *)
1481     # FIXME: should be removed in autoconf 3.0.
1482     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1486     ;;
1487
1488   esac
1489 done
1490
1491 if test -n "$ac_prev"; then
1492   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493   as_fn_error $? "missing argument to $ac_option"
1494 fi
1495
1496 if test -n "$ac_unrecognized_opts"; then
1497   case $enable_option_checking in
1498     no) ;;
1499     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501   esac
1502 fi
1503
1504 # Check all directory arguments for consistency.
1505 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506                 datadir sysconfdir sharedstatedir localstatedir includedir \
1507                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508                 libdir localedir mandir runstatedir
1509 do
1510   eval ac_val=\$$ac_var
1511   # Remove trailing slashes.
1512   case $ac_val in
1513     */ )
1514       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515       eval $ac_var=\$ac_val;;
1516   esac
1517   # Be sure to have absolute directory names.
1518   case $ac_val in
1519     [\\/$]* | ?:[\\/]* )  continue;;
1520     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521   esac
1522   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523 done
1524
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1528 build=$build_alias
1529 host=$host_alias
1530 target=$target_alias
1531
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534   if test "x$build_alias" = x; then
1535     cross_compiling=maybe
1536   elif test "x$build_alias" != "x$host_alias"; then
1537     cross_compiling=yes
1538   fi
1539 fi
1540
1541 ac_tool_prefix=
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543
1544 test "$silent" = yes && exec 6>/dev/null
1545
1546
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550   as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552   as_fn_error $? "pwd does not report name of working directory"
1553
1554
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557   ac_srcdir_defaulted=yes
1558   # Try the directory containing this script, then the parent directory.
1559   ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561          X"$as_myself" : 'X\(//\)[^/]' \| \
1562          X"$as_myself" : 'X\(//\)$' \| \
1563          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566             s//\1/
1567             q
1568           }
1569           /^X\(\/\/\)[^/].*/{
1570             s//\1/
1571             q
1572           }
1573           /^X\(\/\/\)$/{
1574             s//\1/
1575             q
1576           }
1577           /^X\(\/\).*/{
1578             s//\1/
1579             q
1580           }
1581           s/.*/./; q'`
1582   srcdir=$ac_confdir
1583   if test ! -r "$srcdir/$ac_unique_file"; then
1584     srcdir=..
1585   fi
1586 else
1587   ac_srcdir_defaulted=no
1588 fi
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 fi
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 ac_abs_confdir=`(
1595         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596         pwd)`
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599   srcdir=.
1600 fi
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1604 case $srcdir in
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 esac
1607 for ac_var in $ac_precious_vars; do
1608   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609   eval ac_env_${ac_var}_value=\$${ac_var}
1610   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 done
1613
1614 #
1615 # Report the --help message.
1616 #
1617 if test "$ac_init_help" = "long"; then
1618   # Omit some internal or obsolete options to make the list less imposing.
1619   # This message is too long to be a string in the A/UX 3.1 sh.
1620   cat <<_ACEOF
1621 \`configure' configures c-ares 1.17.1 to adapt to many kinds of systems.
1622
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE.  See below for descriptions of some of the useful variables.
1627
1628 Defaults for the options are specified in brackets.
1629
1630 Configuration:
1631   -h, --help              display this help and exit
1632       --help=short        display options specific to this package
1633       --help=recursive    display the short help of all the included packages
1634   -V, --version           display version information and exit
1635   -q, --quiet, --silent   do not print \`checking ...' messages
1636       --cache-file=FILE   cache test results in FILE [disabled]
1637   -C, --config-cache      alias for \`--cache-file=config.cache'
1638   -n, --no-create         do not create output files
1639       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640
1641 Installation directories:
1642   --prefix=PREFIX         install architecture-independent files in PREFIX
1643                           [$ac_default_prefix]
1644   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1645                           [PREFIX]
1646
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1651
1652 For better control, use the options below.
1653
1654 Fine tuning of the installation directories:
1655   --bindir=DIR            user executables [EPREFIX/bin]
1656   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1657   --libexecdir=DIR        program executables [EPREFIX/libexec]
1658   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1659   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1660   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1661   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1662   --libdir=DIR            object code libraries [EPREFIX/lib]
1663   --includedir=DIR        C header files [PREFIX/include]
1664   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1665   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1666   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1667   --infodir=DIR           info documentation [DATAROOTDIR/info]
1668   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1669   --mandir=DIR            man documentation [DATAROOTDIR/man]
1670   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1671   --htmldir=DIR           html documentation [DOCDIR]
1672   --dvidir=DIR            dvi documentation [DOCDIR]
1673   --pdfdir=DIR            pdf documentation [DOCDIR]
1674   --psdir=DIR             ps documentation [DOCDIR]
1675 _ACEOF
1676
1677   cat <<\_ACEOF
1678
1679 Program names:
1680   --program-prefix=PREFIX            prepend PREFIX to installed program names
1681   --program-suffix=SUFFIX            append SUFFIX to installed program names
1682   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1683
1684 System types:
1685   --build=BUILD     configure for building on BUILD [guessed]
1686   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1687 _ACEOF
1688 fi
1689
1690 if test -n "$ac_init_help"; then
1691   case $ac_init_help in
1692      short | recursive ) echo "Configuration of c-ares 1.17.1:";;
1693    esac
1694   cat <<\_ACEOF
1695
1696 Optional Features:
1697   --disable-option-checking  ignore unrecognized --enable/--with options
1698   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1699   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1700   --enable-maintainer-mode
1701                           enable make rules and dependencies not useful (and
1702                           sometimes confusing) to the casual installer
1703   --enable-silent-rules   less verbose build output (undo: "make V=1")
1704   --disable-silent-rules  verbose build output (undo: "make V=0")
1705   --enable-debug          Enable debug build options
1706   --disable-debug         Disable debug build options
1707   --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1708   --disable-optimize      Disable compiler optimizations
1709   --enable-warnings       Enable strict compiler warnings
1710   --disable-warnings      Disable strict compiler warnings
1711   --enable-werror         Enable compiler warnings as errors
1712   --disable-werror        Disable compiler warnings as errors
1713   --enable-symbol-hiding  Enable hiding of library internal symbols
1714   --disable-symbol-hiding Disable hiding of library internal symbols
1715   --enable-expose-statics Enable exposure of internal static functions for
1716                           testing
1717   --disable-expose-statics
1718                           Disable exposure of internal static functions for
1719                           testing
1720   --enable-code-coverage  Whether to enable code coverage support
1721   --enable-dependency-tracking
1722                           do not reject slow dependency extractors
1723   --disable-dependency-tracking
1724                           speeds up one-time build
1725   --disable-largefile     omit support for large files
1726   --enable-shared[=PKGS]  build shared libraries [default=yes]
1727   --enable-static[=PKGS]  build static libraries [default=yes]
1728   --enable-fast-install[=PKGS]
1729                           optimize for fast installation [default=yes]
1730   --disable-libtool-lock  avoid locking (might break parallel builds)
1731   --enable-libgcc         use libgcc when linking
1732   --enable-nonblocking    Enable non-blocking communications
1733   --disable-nonblocking   Disable non-blocking communications
1734   --enable-tests          build test suite
1735
1736 Optional Packages:
1737   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1738   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1739   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1740   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1741                           both]
1742   --with-aix-soname=aix|svr4|both
1743                           shared library versioning (aka "SONAME") variant to
1744                           provide on AIX, [default=aix].
1745   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1746   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1747                           compiler's sysroot if not specified).
1748   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1749
1750 Some influential environment variables:
1751   CC          C compiler command
1752   CFLAGS      C compiler flags
1753   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1754               nonstandard directory <lib dir>
1755   LIBS        libraries to pass to the linker, e.g. -l<library>
1756   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757               you have headers in a nonstandard directory <include dir>
1758   CPP         C preprocessor
1759   CXX         C++ compiler command
1760   CXXFLAGS    C++ compiler flags
1761   LT_SYS_LIBRARY_PATH
1762               User-defined run-time library search path.
1763   CXXCPP      C++ preprocessor
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1769 _ACEOF
1770 ac_status=$?
1771 fi
1772
1773 if test "$ac_init_help" = "recursive"; then
1774   # If there are subdirs, report their specific --help.
1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776     test -d "$ac_dir" ||
1777       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778       continue
1779     ac_builddir=.
1780
1781 case "$ac_dir" in
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *)
1784   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785   # A ".." for each directory in $ac_dir_suffix.
1786   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787   case $ac_top_builddir_sub in
1788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790   esac ;;
1791 esac
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1796
1797 case $srcdir in
1798   .)  # We are building in place.
1799     ac_srcdir=.
1800     ac_top_srcdir=$ac_top_builddir_sub
1801     ac_abs_top_srcdir=$ac_pwd ;;
1802   [\\/]* | ?:[\\/]* )  # Absolute name.
1803     ac_srcdir=$srcdir$ac_dir_suffix;
1804     ac_top_srcdir=$srcdir
1805     ac_abs_top_srcdir=$srcdir ;;
1806   *) # Relative name.
1807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808     ac_top_srcdir=$ac_top_build_prefix$srcdir
1809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 esac
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813     cd "$ac_dir" || { ac_status=$?; continue; }
1814     # Check for guested configure.
1815     if test -f "$ac_srcdir/configure.gnu"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818     elif test -f "$ac_srcdir/configure"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure" --help=recursive
1821     else
1822       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823     fi || ac_status=$?
1824     cd "$ac_pwd" || { ac_status=$?; break; }
1825   done
1826 fi
1827
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1830   cat <<\_ACEOF
1831 c-ares configure 1.17.1
1832 generated by GNU Autoconf 2.69
1833
1834 Copyright (C) 2012 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838   exit
1839 fi
1840
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1844
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   rm -f conftest.$ac_objext
1852   if { { ac_try="$ac_compile"
1853 case "(($ac_try" in
1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855   *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859   (eval "$ac_compile") 2>conftest.err
1860   ac_status=$?
1861   if test -s conftest.err; then
1862     grep -v '^ *+' conftest.err >conftest.er1
1863     cat conftest.er1 >&5
1864     mv -f conftest.er1 conftest.err
1865   fi
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && {
1868          test -z "$ac_c_werror_flag" ||
1869          test ! -s conftest.err
1870        } && test -s conftest.$ac_objext; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_compile
1882
1883 # ac_fn_c_try_cpp LINENO
1884 # ----------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_cpp ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897   ac_status=$?
1898   if test -s conftest.err; then
1899     grep -v '^ *+' conftest.err >conftest.er1
1900     cat conftest.er1 >&5
1901     mv -f conftest.er1 conftest.err
1902   fi
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } > conftest.i && {
1905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906          test ! -s conftest.err
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913     ac_retval=1
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916   as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_cpp
1919
1920 # ac_fn_cxx_try_compile LINENO
1921 # ----------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_compile ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   rm -f conftest.$ac_objext
1927   if { { ac_try="$ac_compile"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_compile") 2>conftest.err
1935   ac_status=$?
1936   if test -s conftest.err; then
1937     grep -v '^ *+' conftest.err >conftest.er1
1938     cat conftest.er1 >&5
1939     mv -f conftest.er1 conftest.err
1940   fi
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } && {
1943          test -z "$ac_cxx_werror_flag" ||
1944          test ! -s conftest.err
1945        } && test -s conftest.$ac_objext; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951         ac_retval=1
1952 fi
1953   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954   as_fn_set_status $ac_retval
1955
1956 } # ac_fn_cxx_try_compile
1957
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   rm -f conftest.$ac_objext conftest$ac_exeext
1965   if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_link") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && {
1981          test -z "$ac_c_werror_flag" ||
1982          test ! -s conftest.err
1983        } && test -s conftest$ac_exeext && {
1984          test "$cross_compiling" = yes ||
1985          test -x conftest$ac_exeext
1986        }; then :
1987   ac_retval=0
1988 else
1989   $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992         ac_retval=1
1993 fi
1994   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996   # interfere with the next link command; also delete a directory that is
1997   # left behind by Apple's compiler.  We do this before executing the actions.
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000   as_fn_set_status $ac_retval
2001
2002 } # ac_fn_c_try_link
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_try_run LINENO
2036 # ----------------------
2037 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2038 # that executables *can* be run.
2039 ac_fn_c_try_run ()
2040 {
2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042   if { { ac_try="$ac_link"
2043 case "(($ac_try" in
2044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045   *) ac_try_echo=$ac_try;;
2046 esac
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049   (eval "$ac_link") 2>&5
2050   ac_status=$?
2051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2053   { { case "(($ac_try" in
2054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055   *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059   (eval "$ac_try") 2>&5
2060   ac_status=$?
2061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062   test $ac_status = 0; }; }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: program exited with status $ac_status" >&5
2066        $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069        ac_retval=$ac_status
2070 fi
2071   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073   as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_try_run
2076
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090
2091 #define $2 innocuous_$2
2092 #ifdef __STDC__
2093 # include <limits.h>
2094 #else
2095 # include <assert.h>
2096 #endif
2097 #undef $2
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 #if defined __stub_$2 || defined __stub___$2
2103 choke me
2104 #endif
2105
2106 int main (void)
2107 {
2108 return $2 ();
2109  ;
2110  return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_link "$LINENO"; then :
2114   eval "$3=yes"
2115 else
2116   eval "$3=no"
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext \
2119     conftest$ac_exeext conftest.$ac_ext
2120 fi
2121 eval ac_res=\$$3
2122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_c_check_func
2127
2128 # ac_fn_cxx_try_cpp LINENO
2129 # ------------------------
2130 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_cxx_try_cpp ()
2132 {
2133   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134   if { { ac_try="$ac_cpp conftest.$ac_ext"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142   ac_status=$?
2143   if test -s conftest.err; then
2144     grep -v '^ *+' conftest.err >conftest.er1
2145     cat conftest.er1 >&5
2146     mv -f conftest.er1 conftest.err
2147   fi
2148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149   test $ac_status = 0; } > conftest.i && {
2150          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2151          test ! -s conftest.err
2152        }; then :
2153   ac_retval=0
2154 else
2155   $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158     ac_retval=1
2159 fi
2160   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161   as_fn_set_status $ac_retval
2162
2163 } # ac_fn_cxx_try_cpp
2164
2165 # ac_fn_cxx_try_link LINENO
2166 # -------------------------
2167 # Try to link conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_cxx_try_link ()
2169 {
2170   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171   rm -f conftest.$ac_objext conftest$ac_exeext
2172   if { { ac_try="$ac_link"
2173 case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179   (eval "$ac_link") 2>conftest.err
2180   ac_status=$?
2181   if test -s conftest.err; then
2182     grep -v '^ *+' conftest.err >conftest.er1
2183     cat conftest.er1 >&5
2184     mv -f conftest.er1 conftest.err
2185   fi
2186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187   test $ac_status = 0; } && {
2188          test -z "$ac_cxx_werror_flag" ||
2189          test ! -s conftest.err
2190        } && test -s conftest$ac_exeext && {
2191          test "$cross_compiling" = yes ||
2192          test -x conftest$ac_exeext
2193        }; then :
2194   ac_retval=0
2195 else
2196   $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199         ac_retval=1
2200 fi
2201   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2202   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2203   # interfere with the next link command; also delete a directory that is
2204   # left behind by Apple's compiler.  We do this before executing the actions.
2205   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207   as_fn_set_status $ac_retval
2208
2209 } # ac_fn_cxx_try_link
2210
2211 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2212 # -------------------------------------------------------
2213 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2214 # the include files in INCLUDES and setting the cache variable VAR
2215 # accordingly.
2216 ac_fn_c_check_header_mongrel ()
2217 {
2218   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219   if eval \${$3+:} false; then :
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if eval \${$3+:} false; then :
2223   $as_echo_n "(cached) " >&6
2224 fi
2225 eval ac_res=\$$3
2226                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 else
2229   # Is the header compilable?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2231 $as_echo_n "checking $2 usability... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   ac_header_compiler=yes
2239 else
2240   ac_header_compiler=no
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2244 $as_echo "$ac_header_compiler" >&6; }
2245
2246 # Is the header present?
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2248 $as_echo_n "checking $2 presence... " >&6; }
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 #include <$2>
2252 _ACEOF
2253 if ac_fn_c_try_cpp "$LINENO"; then :
2254   ac_header_preproc=yes
2255 else
2256   ac_header_preproc=no
2257 fi
2258 rm -f conftest.err conftest.i conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2260 $as_echo "$ac_header_preproc" >&6; }
2261
2262 # So?  What about this header?
2263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2264   yes:no: )
2265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2266 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269     ;;
2270   no:yes:* )
2271     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2272 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2273     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2274 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2276 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2277     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2278 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2279     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2280 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2281 ( $as_echo "## ------------------------------------------------------------------------------- ##
2282 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2283 ## ------------------------------------------------------------------------------- ##"
2284      ) | sed "s/^/$as_me: WARNING:     /" >&2
2285     ;;
2286 esac
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290   $as_echo_n "(cached) " >&6
2291 else
2292   eval "$3=\$ac_header_compiler"
2293 fi
2294 eval ac_res=\$$3
2295                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 fi
2298   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300 } # ac_fn_c_check_header_mongrel
2301
2302 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2303 # -------------------------------------------
2304 # Tests whether TYPE exists after having included INCLUDES, setting cache
2305 # variable VAR accordingly.
2306 ac_fn_c_check_type ()
2307 {
2308   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312   $as_echo_n "(cached) " >&6
2313 else
2314   eval "$3=no"
2315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h.  */
2317 $4
2318 int main (void)
2319 {
2320 if (sizeof ($2))
2321          return 0;
2322  ;
2323  return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int main (void)
2331 {
2332 if (sizeof (($2)))
2333             return 0;
2334  ;
2335  return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339
2340 else
2341   eval "$3=yes"
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_c_check_type
2353
2354 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2355 # ----------------------------------------------------
2356 # Tries to find if the field MEMBER exists in type AGGR, after including
2357 # INCLUDES, setting cache variable VAR accordingly.
2358 ac_fn_c_check_member ()
2359 {
2360   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2362 $as_echo_n "checking for $2.$3... " >&6; }
2363 if eval \${$4+:} false; then :
2364   $as_echo_n "(cached) " >&6
2365 else
2366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $5
2369 int main (void)
2370 {
2371 static $2 ac_aggr;
2372 if (ac_aggr.$3)
2373 return 0;
2374  ;
2375  return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   eval "$4=yes"
2380 else
2381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h.  */
2383 $5
2384 int main (void)
2385 {
2386 static $2 ac_aggr;
2387 if (sizeof ac_aggr.$3)
2388 return 0;
2389  ;
2390  return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394   eval "$4=yes"
2395 else
2396   eval "$4=no"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$4
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406
2407 } # ac_fn_c_check_member
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2411
2412 It was created by c-ares $as_me 1.17.1, which was
2413 generated by GNU Autoconf 2.69.  Invocation command line was
2414
2415   $ $0 $@
2416
2417 _ACEOF
2418 exec 5>>config.log
2419 {
2420 cat <<_ASUNAME
2421 ## --------- ##
2422 ## Platform. ##
2423 ## --------- ##
2424
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2433
2434 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2435 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2438 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2439 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2440 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2441
2442 _ASUNAME
2443
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449     $as_echo "PATH: $as_dir"
2450   done
2451 IFS=$as_save_IFS
2452
2453 } >&5
2454
2455 cat >&5 <<_ACEOF
2456
2457
2458 ## ----------- ##
2459 ## Core tests. ##
2460 ## ----------- ##
2461
2462 _ACEOF
2463
2464
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2470 ac_configure_args=
2471 ac_configure_args0=
2472 ac_configure_args1=
2473 ac_must_keep_next=false
2474 for ac_pass in 1 2
2475 do
2476   for ac_arg
2477   do
2478     case $ac_arg in
2479     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481     | -silent | --silent | --silen | --sile | --sil)
2482       continue ;;
2483     *\'*)
2484       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485     esac
2486     case $ac_pass in
2487     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2488     2)
2489       as_fn_append ac_configure_args1 " '$ac_arg'"
2490       if test $ac_must_keep_next = true; then
2491         ac_must_keep_next=false # Got value, back to normal.
2492       else
2493         case $ac_arg in
2494           *=* | --config-cache | -C | -disable-* | --disable-* \
2495           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497           | -with-* | --with-* | -without-* | --without-* | --x)
2498             case "$ac_configure_args0 " in
2499               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500             esac
2501             ;;
2502           -* ) ac_must_keep_next=true ;;
2503         esac
2504       fi
2505       as_fn_append ac_configure_args " '$ac_arg'"
2506       ;;
2507     esac
2508   done
2509 done
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2512
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log.  We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519   # Save into config.log some information that might help in debugging.
2520   {
2521     echo
2522
2523     $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2526     echo
2527     # The following way of writing the cache mishandles newlines in values,
2528 (
2529   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530     eval ac_val=\$$ac_var
2531     case $ac_val in #(
2532     *${as_nl}*)
2533       case $ac_var in #(
2534       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536       esac
2537       case $ac_var in #(
2538       _ | IFS | as_nl) ;; #(
2539       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540       *) { eval $ac_var=; unset $ac_var;} ;;
2541       esac ;;
2542     esac
2543   done
2544   (set) 2>&1 |
2545     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546     *${as_nl}ac_space=\ *)
2547       sed -n \
2548         "s/'\''/'\''\\\\'\'''\''/g;
2549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550       ;; #(
2551     *)
2552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553       ;;
2554     esac |
2555     sort
2556 )
2557     echo
2558
2559     $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2562     echo
2563     for ac_var in $ac_subst_vars
2564     do
2565       eval ac_val=\$$ac_var
2566       case $ac_val in
2567       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568       esac
2569       $as_echo "$ac_var='\''$ac_val'\''"
2570     done | sort
2571     echo
2572
2573     if test -n "$ac_subst_files"; then
2574       $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2577       echo
2578       for ac_var in $ac_subst_files
2579       do
2580         eval ac_val=\$$ac_var
2581         case $ac_val in
2582         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583         esac
2584         $as_echo "$ac_var='\''$ac_val'\''"
2585       done | sort
2586       echo
2587     fi
2588
2589     if test -s confdefs.h; then
2590       $as_echo "## ----------- ##
2591 ## confdefs.h. ##
2592 ## ----------- ##"
2593       echo
2594       cat confdefs.h
2595       echo
2596     fi
2597     test "$ac_signal" != 0 &&
2598       $as_echo "$as_me: caught signal $ac_signal"
2599     $as_echo "$as_me: exit $exit_status"
2600   } >&5
2601   rm -f core *.core core.conftest.* &&
2602     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2603     exit $exit_status
2604 ' 0
2605 for ac_signal in 1 2 13 15; do
2606   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2607 done
2608 ac_signal=0
2609
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2612
2613 $as_echo "/* confdefs.h */" > confdefs.h
2614
2615 # Predefined preprocessor variables.
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2639 _ACEOF
2640
2641
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2644 ac_site_file1=NONE
2645 ac_site_file2=NONE
2646 if test -n "$CONFIG_SITE"; then
2647   # We do not want a PATH search for config.site.
2648   case $CONFIG_SITE in #((
2649     -*)  ac_site_file1=./$CONFIG_SITE;;
2650     */*) ac_site_file1=$CONFIG_SITE;;
2651     *)   ac_site_file1=./$CONFIG_SITE;;
2652   esac
2653 elif test "x$prefix" != xNONE; then
2654   ac_site_file1=$prefix/share/config.site
2655   ac_site_file2=$prefix/etc/config.site
2656 else
2657   ac_site_file1=$ac_default_prefix/share/config.site
2658   ac_site_file2=$ac_default_prefix/etc/config.site
2659 fi
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661 do
2662   test "x$ac_site_file" = xNONE && continue
2663   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666     sed 's/^/| /' "$ac_site_file" >&5
2667     . "$ac_site_file" \
2668       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2672   fi
2673 done
2674
2675 if test -r "$cache_file"; then
2676   # Some versions of bash will fail to source /dev/null (special files
2677   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2678   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2681     case $cache_file in
2682       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683       *)                      . "./$cache_file";;
2684     esac
2685   fi
2686 else
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2689   >$cache_file
2690 fi
2691
2692 # Check that the precious variables saved in the cache have kept the same
2693 # value.
2694 ac_cache_corrupted=false
2695 for ac_var in $ac_precious_vars; do
2696   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697   eval ac_new_set=\$ac_env_${ac_var}_set
2698   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699   eval ac_new_val=\$ac_env_${ac_var}_value
2700   case $ac_old_set,$ac_new_set in
2701     set,)
2702       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704       ac_cache_corrupted=: ;;
2705     ,set)
2706       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708       ac_cache_corrupted=: ;;
2709     ,);;
2710     *)
2711       if test "x$ac_old_val" != "x$ac_new_val"; then
2712         # differences in whitespace do not lead to failure.
2713         ac_old_val_w=`echo x $ac_old_val`
2714         ac_new_val_w=`echo x $ac_new_val`
2715         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718           ac_cache_corrupted=:
2719         else
2720           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722           eval $ac_var=\$ac_old_val
2723         fi
2724         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2725 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2726         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2727 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2728       fi;;
2729   esac
2730   # Pass precious variables to config.status.
2731   if test "$ac_new_set" = set; then
2732     case $ac_new_val in
2733     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734     *) ac_arg=$ac_var=$ac_new_val ;;
2735     esac
2736     case " $ac_configure_args " in
2737       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2738       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2739     esac
2740   fi
2741 done
2742 if $ac_cache_corrupted; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2747   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2748 fi
2749 ## -------------------- ##
2750 ## Main body of script. ##
2751 ## -------------------- ##
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759
2760
2761 CARES_VERSION_INFO="6:2:4"
2762
2763
2764
2765
2766
2767
2768 # using cares-override.m4
2769
2770
2771
2772 ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
2773
2774
2775
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2777 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2778     # Check whether --enable-maintainer-mode was given.
2779 if test "${enable_maintainer_mode+set}" = set; then :
2780   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2781 else
2782   USE_MAINTAINER_MODE=no
2783 fi
2784
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2786 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2787    if test $USE_MAINTAINER_MODE = yes; then
2788   MAINTAINER_MODE_TRUE=
2789   MAINTAINER_MODE_FALSE='#'
2790 else
2791   MAINTAINER_MODE_TRUE='#'
2792   MAINTAINER_MODE_FALSE=
2793 fi
2794
2795   MAINT=$MAINTAINER_MODE_TRUE
2796
2797
2798 # Check whether --enable-silent-rules was given.
2799 if test "${enable_silent_rules+set}" = set; then :
2800   enableval=$enable_silent_rules;
2801 fi
2802
2803 case $enable_silent_rules in # (((
2804   yes) AM_DEFAULT_VERBOSITY=0;;
2805    no) AM_DEFAULT_VERBOSITY=1;;
2806     *) AM_DEFAULT_VERBOSITY=0;;
2807 esac
2808 am_make=${MAKE-make}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811 if ${am_cv_make_support_nested_variables+:} false; then :
2812   $as_echo_n "(cached) " >&6
2813 else
2814   if $as_echo 'TRUE=$(BAR$(V))
2815 BAR0=false
2816 BAR1=true
2817 V=1
2818 am__doit:
2819         @$(TRUE)
2820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821   am_cv_make_support_nested_variables=yes
2822 else
2823   am_cv_make_support_nested_variables=no
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2828 if test $am_cv_make_support_nested_variables = yes; then
2829     AM_V='$(V)'
2830   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2831 else
2832   AM_V=$AM_DEFAULT_VERBOSITY
2833   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2834 fi
2835 AM_BACKSLASH='\'
2836
2837
2838
2839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2840 $as_echo_n "checking whether to enable debug build options... " >&6; }
2841   OPT_DEBUG_BUILD="default"
2842   # Check whether --enable-debug was given.
2843 if test "${enable_debug+set}" = set; then :
2844   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2845 fi
2846
2847   case "$OPT_DEBUG_BUILD" in
2848     no)
2849             want_debug="no"
2850       ;;
2851     default)
2852             want_debug="no"
2853       ;;
2854     *)
2855             want_debug="yes"
2856       ;;
2857   esac
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2859 $as_echo "$want_debug" >&6; }
2860
2861
2862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2863 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2864   OPT_COMPILER_OPTIMIZE="default"
2865   # Check whether --enable-optimize was given.
2866 if test "${enable_optimize+set}" = set; then :
2867   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2868 fi
2869
2870   case "$OPT_COMPILER_OPTIMIZE" in
2871     no)
2872                               want_optimize="no"
2873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875       ;;
2876     default)
2877                                                                         if test "$want_debug" = "yes"; then
2878         want_optimize="assume_no"
2879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2880 $as_echo "not specified (assuming no)" >&6; }
2881       else
2882         want_optimize="assume_yes"
2883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2884 $as_echo "not specified (assuming yes)" >&6; }
2885       fi
2886       ;;
2887     *)
2888                               want_optimize="yes"
2889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891       ;;
2892   esac
2893
2894
2895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2896 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2897   OPT_COMPILER_WARNINGS="default"
2898   # Check whether --enable-warnings was given.
2899 if test "${enable_warnings+set}" = set; then :
2900   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2901 fi
2902
2903   case "$OPT_COMPILER_WARNINGS" in
2904     no)
2905             want_warnings="no"
2906       ;;
2907     default)
2908                   want_warnings="$want_debug"
2909       ;;
2910     *)
2911             want_warnings="yes"
2912       ;;
2913   esac
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2915 $as_echo "$want_warnings" >&6; }
2916
2917
2918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2919 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2920   OPT_COMPILER_WERROR="default"
2921   # Check whether --enable-werror was given.
2922 if test "${enable_werror+set}" = set; then :
2923   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2924 fi
2925
2926   case "$OPT_COMPILER_WERROR" in
2927     no)
2928             want_werror="no"
2929       ;;
2930     default)
2931             want_werror="no"
2932       ;;
2933     *)
2934             want_werror="yes"
2935       ;;
2936   esac
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2938 $as_echo "$want_werror" >&6; }
2939
2940
2941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2942 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2943   OPT_SYMBOL_HIDING="default"
2944   # Check whether --enable-symbol-hiding was given.
2945 if test "${enable_symbol_hiding+set}" = set; then :
2946   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2947 fi
2948
2949   case "$OPT_SYMBOL_HIDING" in
2950     no)
2951                               want_symbol_hiding="no"
2952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954       ;;
2955     default)
2956                   want_symbol_hiding="yes"
2957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959       ;;
2960     *)
2961                         want_symbol_hiding="yes"
2962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964       ;;
2965   esac
2966
2967
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
2969 $as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
2970   OPT_EXPOSE_STATICS="default"
2971   # Check whether --enable-expose-statics was given.
2972 if test "${enable_expose_statics+set}" = set; then :
2973   enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
2974 fi
2975
2976   case "$OPT_EXPOSE_STATICS" in
2977     no)
2978             want_expose_statics="no"
2979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981       ;;
2982     default)
2983                   want_expose_statics="no"
2984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986       ;;
2987     *)
2988             want_expose_statics="yes"
2989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2991       ;;
2992   esac
2993   if test "$want_expose_statics" = "yes"; then
2994
2995 cat >>confdefs.h <<_ACEOF
2996 #define CARES_EXPOSE_STATICS 1
2997 _ACEOF
2998
2999   fi
3000
3001
3002 #
3003 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3004 #
3005
3006 if test -z "$xc_configure_preamble_result"; then
3007   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3008 fi
3009
3010 #
3011 # Check that 'PATH_SEPARATOR' has already been set.
3012 #
3013
3014 if test -z "$xc_PATH_SEPARATOR"; then
3015   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3016 fi
3017 if test -z "$PATH_SEPARATOR"; then
3018   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3021 $as_echo_n "checking for path separator... " >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3023 $as_echo "$PATH_SEPARATOR" >&6; }
3024 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3026 $as_echo_n "checking for initial path separator... " >&6; }
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3028 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3029   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3030 fi
3031
3032
3033 # Extract the first word of "sed", so it can be a program name with args.
3034 set dummy sed; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_path_SED+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   case $SED in
3041   [\\/]* | ?:[\\/]*)
3042   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3043   ;;
3044   *)
3045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3047 for as_dir in $as_dummy
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058   done
3059 IFS=$as_save_IFS
3060
3061   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3062   ;;
3063 esac
3064 fi
3065 SED=$ac_cv_path_SED
3066 if test -n "$SED"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3068 $as_echo "$SED" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 if test -z "$SED" || test "$SED" = "not_found"; then
3076   as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3077 fi
3078
3079
3080 # Extract the first word of "grep", so it can be a program name with args.
3081 set dummy grep; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_path_GREP+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   case $GREP in
3088   [\\/]* | ?:[\\/]*)
3089   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3090   ;;
3091   *)
3092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3094 for as_dir in $as_dummy
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_exec_ext in '' $ac_executable_extensions; do
3099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105   done
3106 IFS=$as_save_IFS
3107
3108   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3109   ;;
3110 esac
3111 fi
3112 GREP=$ac_cv_path_GREP
3113 if test -n "$GREP"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3115 $as_echo "$GREP" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 if test -z "$GREP" || test "$GREP" = "not_found"; then
3123   as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3124 fi
3125
3126
3127 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3129 $as_echo_n "checking for egrep... " >&6; }
3130   EGREP="$GREP -E"
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3132 $as_echo "$EGREP" >&6; }
3133 else
3134   # Extract the first word of "egrep", so it can be a program name with args.
3135 set dummy egrep; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_EGREP+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   case $EGREP in
3142   [\\/]* | ?:[\\/]*)
3143   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3144   ;;
3145   *)
3146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3148 for as_dir in $as_dummy
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3163   ;;
3164 esac
3165 fi
3166 EGREP=$ac_cv_path_EGREP
3167 if test -n "$EGREP"; then
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3169 $as_echo "$EGREP" >&6; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 fi
3177 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3178   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3179 fi
3180
3181
3182 if test -z "$AR"; then
3183     if test -n "$ac_tool_prefix"; then
3184   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}ar; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_AR+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   case $AR in
3192   [\\/]* | ?:[\\/]*)
3193   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3194   ;;
3195   *)
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3198 for as_dir in $as_dummy
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209   done
3210 IFS=$as_save_IFS
3211
3212   ;;
3213 esac
3214 fi
3215 AR=$ac_cv_path_AR
3216 if test -n "$AR"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3218 $as_echo "$AR" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225 fi
3226 if test -z "$ac_cv_path_AR"; then
3227   ac_pt_AR=$AR
3228   # Extract the first word of "ar", so it can be a program name with args.
3229 set dummy ar; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_path_ac_pt_AR+:} false; then :
3233   $as_echo_n "(cached) " >&6
3234 else
3235   case $ac_pt_AR in
3236   [\\/]* | ?:[\\/]*)
3237   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3238   ;;
3239   *)
3240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3242 for as_dir in $as_dummy
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256   ;;
3257 esac
3258 fi
3259 ac_pt_AR=$ac_cv_path_ac_pt_AR
3260 if test -n "$ac_pt_AR"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3262 $as_echo "$ac_pt_AR" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268   if test "x$ac_pt_AR" = x; then
3269     AR="not_found"
3270   else
3271     case $cross_compiling:$ac_tool_warned in
3272 yes:)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3276 esac
3277     AR=$ac_pt_AR
3278   fi
3279 else
3280   AR="$ac_cv_path_AR"
3281 fi
3282
3283   if test -z "$AR" || test "$AR" = "not_found"; then
3284     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3285   fi
3286 fi
3287
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3290 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3291 if ${ac_cv_path_SED+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3295      for ac_i in 1 2 3 4 5 6 7; do
3296        ac_script="$ac_script$as_nl$ac_script"
3297      done
3298      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3299      { ac_script=; unset ac_script;}
3300      if test -z "$SED"; then
3301   ac_path_SED_found=false
3302   # Loop through the user's path and test for each of PROGNAME-LIST
3303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_prog in sed gsed; do
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3311       as_fn_executable_p "$ac_path_SED" || continue
3312 # Check for GNU ac_path_SED and select it if it is found.
3313   # Check for GNU $ac_path_SED
3314 case `"$ac_path_SED" --version 2>&1` in
3315 *GNU*)
3316   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3317 *)
3318   ac_count=0
3319   $as_echo_n 0123456789 >"conftest.in"
3320   while :
3321   do
3322     cat "conftest.in" "conftest.in" >"conftest.tmp"
3323     mv "conftest.tmp" "conftest.in"
3324     cp "conftest.in" "conftest.nl"
3325     $as_echo '' >> "conftest.nl"
3326     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3327     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328     as_fn_arith $ac_count + 1 && ac_count=$as_val
3329     if test $ac_count -gt ${ac_path_SED_max-0}; then
3330       # Best one so far, save it but keep looking for a better one
3331       ac_cv_path_SED="$ac_path_SED"
3332       ac_path_SED_max=$ac_count
3333     fi
3334     # 10*(2^10) chars as input seems more than enough
3335     test $ac_count -gt 10 && break
3336   done
3337   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338 esac
3339
3340       $ac_path_SED_found && break 3
3341     done
3342   done
3343   done
3344 IFS=$as_save_IFS
3345   if test -z "$ac_cv_path_SED"; then
3346     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3347   fi
3348 else
3349   ac_cv_path_SED=$SED
3350 fi
3351
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3354 $as_echo "$ac_cv_path_SED" >&6; }
3355  SED="$ac_cv_path_SED"
3356   rm -f conftest.sed
3357
3358
3359
3360
3361         # allow to override gcov location
3362
3363 # Check whether --with-gcov was given.
3364 if test "${with_gcov+set}" = set; then :
3365   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3366 else
3367   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3368 fi
3369
3370
3371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3372 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3373         # Check whether --enable-code-coverage was given.
3374 if test "${enable_code_coverage+set}" = set; then :
3375   enableval=$enable_code_coverage;
3376 else
3377   enable_code_coverage=no
3378 fi
3379
3380
3381          if test x$enable_code_coverage = xyes; then
3382   CODE_COVERAGE_ENABLED_TRUE=
3383   CODE_COVERAGE_ENABLED_FALSE='#'
3384 else
3385   CODE_COVERAGE_ENABLED_TRUE='#'
3386   CODE_COVERAGE_ENABLED_FALSE=
3387 fi
3388
3389         CODE_COVERAGE_ENABLED=$enable_code_coverage
3390
3391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3392 $as_echo "$enable_code_coverage" >&6; }
3393
3394         if  test "$enable_code_coverage" = "yes" ; then :
3395
3396                 # check for gcov
3397                 if test -n "$ac_tool_prefix"; then
3398   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_GCOV+:} false; then :
3403   $as_echo_n "(cached) " >&6
3404 else
3405   if test -n "$GCOV"; then
3406   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420   done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 GCOV=$ac_cv_prog_GCOV
3426 if test -n "$GCOV"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3428 $as_echo "$GCOV" >&6; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$ac_cv_prog_GCOV"; then
3437   ac_ct_GCOV=$GCOV
3438   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3439 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$ac_ct_GCOV"; then
3446   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460   done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3466 if test -n "$ac_ct_GCOV"; then
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3468 $as_echo "$ac_ct_GCOV" >&6; }
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474   if test "x$ac_ct_GCOV" = x; then
3475     GCOV=":"
3476   else
3477     case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483     GCOV=$ac_ct_GCOV
3484   fi
3485 else
3486   GCOV="$ac_cv_prog_GCOV"
3487 fi
3488
3489                 if test "X$GCOV" = "X:"; then :
3490   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3491 fi
3492
3493
3494                                 if  test "$GCC" = "no" ; then :
3495
3496                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3497
3498 fi
3499
3500                 # List of supported lcov versions.
3501                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.13"
3502
3503                 # Extract the first word of "lcov", so it can be a program name with args.
3504 set dummy lcov; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_LCOV+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$LCOV"; then
3511   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_LCOV="lcov"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 LCOV=$ac_cv_prog_LCOV
3531 if test -n "$LCOV"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3533 $as_echo "$LCOV" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540                 # Extract the first word of "genhtml", so it can be a program name with args.
3541 set dummy genhtml; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_GENHTML+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$GENHTML"; then
3548   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_prog_GENHTML="genhtml"
3558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562   done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 GENHTML=$ac_cv_prog_GENHTML
3568 if test -n "$GENHTML"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3570 $as_echo "$GENHTML" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577
3578                 if  test "$LCOV" ; then :
3579
3580                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3581 $as_echo_n "checking for lcov version... " >&6; }
3582 if ${ax_cv_lcov_version+:} false; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585
3586                                 ax_cv_lcov_version=invalid
3587                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3588                                 for lcov_check_version in $lcov_version_list; do
3589                                         if test "$lcov_version" = "$lcov_check_version"; then
3590                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
3591                                         fi
3592                                 done
3593
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3596 $as_echo "$ax_cv_lcov_version" >&6; }
3597
3598 else
3599
3600                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3601                         as_fn_error $? "$lcov_msg" "$LINENO" 5
3602
3603 fi
3604
3605                 case $ax_cv_lcov_version in
3606                         ""|invalid)
3607                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3608                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
3609                                 LCOV="exit 0;"
3610                         ;;
3611                 esac
3612
3613                 if  test -z "$GENHTML" ; then :
3614
3615                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3616
3617 fi
3618
3619                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3620                 CODE_COVERAGE_LDFLAGS="-lgcov"
3621
3622
3623
3624
3625 CODE_COVERAGE_RULES='
3626 # Code coverage
3627 #
3628 # Optional:
3629 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3630 #    (Default: $(top_builddir))
3631 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3632 #    by lcov for code coverage. (Default:
3633 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3634 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3635 #    reports to be created. (Default:
3636 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3637 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3638 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3639 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3640 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3641 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3642 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3643 #    instance. (Default: empty)
3644 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3645 #
3646 # The generated report will be titled using the $(PACKAGE_NAME) and
3647 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3648 # use the git-version-gen script, available online.
3649
3650 # Optional variables
3651 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3652 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3653 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3654 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3655 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3656 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3657 CODE_COVERAGE_GENHTML_OPTIONS ?=
3658 CODE_COVERAGE_IGNORE_PATTERN ?=
3659
3660 code_coverage_quiet = $(code_coverage_quiet_$(V))
3661 code_coverage_quiet_ =
3662 code_coverage_quiet_0 = --quiet
3663
3664 # Use recursive makes in order to ignore errors during check
3665 check-code-coverage:
3666         -$(MAKE) $(AM_MAKEFLAGS) -k check
3667         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3668
3669 # Capture code coverage data
3670 code-coverage-capture: code-coverage-capture-hook
3671         $(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)
3672         $(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)"
3673         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3674         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)
3675         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3676
3677 # Hook rule executed before code-coverage-capture, overridable by the user
3678 code-coverage-capture-hook:
3679
3680 clean: code-coverage-clean
3681 code-coverage-clean:
3682         -$(LCOV) --directory $(top_builddir) -z
3683         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3684         -find . -name "*.gcda" -o -name "*.gcov" -delete
3685
3686 GITIGNOREFILES ?=
3687 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3688
3689 DISTCHECK_CONFIGURE_FLAGS ?=
3690 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3691
3692 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3693 '
3694
3695
3696 fi
3697
3698
3699
3700
3701
3702
3703 ac_aux_dir=
3704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3705   if test -f "$ac_dir/install-sh"; then
3706     ac_aux_dir=$ac_dir
3707     ac_install_sh="$ac_aux_dir/install-sh -c"
3708     break
3709   elif test -f "$ac_dir/install.sh"; then
3710     ac_aux_dir=$ac_dir
3711     ac_install_sh="$ac_aux_dir/install.sh -c"
3712     break
3713   elif test -f "$ac_dir/shtool"; then
3714     ac_aux_dir=$ac_dir
3715     ac_install_sh="$ac_aux_dir/shtool install -c"
3716     break
3717   fi
3718 done
3719 if test -z "$ac_aux_dir"; then
3720   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3721 fi
3722
3723 # These three variables are undocumented and unsupported,
3724 # and are intended to be withdrawn in a future Autoconf release.
3725 # They can cause serious problems if a builder's source tree is in a directory
3726 # whose full name contains unusual characters.
3727 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3728 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3729 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3730
3731
3732 # Make sure we can run config.sub.
3733 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3734   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3737 $as_echo_n "checking build system type... " >&6; }
3738 if ${ac_cv_build+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   ac_build_alias=$build_alias
3742 test "x$ac_build_alias" = x &&
3743   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3744 test "x$ac_build_alias" = x &&
3745   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3746 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3747   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3748
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3751 $as_echo "$ac_cv_build" >&6; }
3752 case $ac_cv_build in
3753 *-*-*) ;;
3754 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3755 esac
3756 build=$ac_cv_build
3757 ac_save_IFS=$IFS; IFS='-'
3758 set x $ac_cv_build
3759 shift
3760 build_cpu=$1
3761 build_vendor=$2
3762 shift; shift
3763 # Remember, the first character of IFS is used to create $*,
3764 # except with old shells:
3765 build_os=$*
3766 IFS=$ac_save_IFS
3767 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3768
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3771 $as_echo_n "checking host system type... " >&6; }
3772 if ${ac_cv_host+:} false; then :
3773   $as_echo_n "(cached) " >&6
3774 else
3775   if test "x$host_alias" = x; then
3776   ac_cv_host=$ac_cv_build
3777 else
3778   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3779     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3780 fi
3781
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3784 $as_echo "$ac_cv_host" >&6; }
3785 case $ac_cv_host in
3786 *-*-*) ;;
3787 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3788 esac
3789 host=$ac_cv_host
3790 ac_save_IFS=$IFS; IFS='-'
3791 set x $ac_cv_host
3792 shift
3793 host_cpu=$1
3794 host_vendor=$2
3795 shift; shift
3796 # Remember, the first character of IFS is used to create $*,
3797 # except with old shells:
3798 host_os=$*
3799 IFS=$ac_save_IFS
3800 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3801
3802
3803
3804 cat >>confdefs.h <<_ACEOF
3805 #define OS "${host}"
3806 _ACEOF
3807
3808
3809
3810   xc_prog_cc_prev_IFS=$IFS
3811   xc_prog_cc_prev_LIBS=$LIBS
3812   xc_prog_cc_prev_CFLAGS=$CFLAGS
3813   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3814   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3815
3816
3817
3818   xc_bad_var_libs=no
3819   for xc_word in $LIBS; do
3820     case "$xc_word" in
3821       -l* | --library=*)
3822         :
3823         ;;
3824       *)
3825         xc_bad_var_libs=yes
3826         ;;
3827     esac
3828   done
3829   if test $xc_bad_var_libs = yes; then
3830     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3831 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3832     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3833 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3834   fi
3835
3836
3837   xc_bad_var_ldflags=no
3838   for xc_word in $LDFLAGS; do
3839     case "$xc_word" in
3840       -D*)
3841         xc_bad_var_ldflags=yes
3842         ;;
3843       -U*)
3844         xc_bad_var_ldflags=yes
3845         ;;
3846       -I*)
3847         xc_bad_var_ldflags=yes
3848         ;;
3849       -l* | --library=*)
3850         xc_bad_var_ldflags=yes
3851         ;;
3852     esac
3853   done
3854   if test $xc_bad_var_ldflags = yes; then
3855     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3856 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3857     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3858     for xc_word in $LDFLAGS; do
3859       case "$xc_word" in
3860         -D*)
3861           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3862 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3863           ;;
3864         -U*)
3865           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3866 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3867           ;;
3868         -I*)
3869           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3870 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3871           ;;
3872         -l* | --library=*)
3873           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3874 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3875           ;;
3876       esac
3877     done
3878   fi
3879
3880
3881   xc_bad_var_cppflags=no
3882   for xc_word in $CPPFLAGS; do
3883     case "$xc_word" in
3884       -rpath*)
3885         xc_bad_var_cppflags=yes
3886         ;;
3887       -L* | --library-path=*)
3888         xc_bad_var_cppflags=yes
3889         ;;
3890       -l* | --library=*)
3891         xc_bad_var_cppflags=yes
3892         ;;
3893     esac
3894   done
3895   if test $xc_bad_var_cppflags = yes; then
3896     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3897 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3898     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3899     for xc_word in $CPPFLAGS; do
3900       case "$xc_word" in
3901         -rpath*)
3902           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3903 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3904           ;;
3905         -L* | --library-path=*)
3906           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3907 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3908           ;;
3909         -l* | --library=*)
3910           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3911 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3912           ;;
3913       esac
3914     done
3915   fi
3916
3917
3918   xc_bad_var_cflags=no
3919   for xc_word in $CFLAGS; do
3920     case "$xc_word" in
3921       -D*)
3922         xc_bad_var_cflags=yes
3923         ;;
3924       -U*)
3925         xc_bad_var_cflags=yes
3926         ;;
3927       -I*)
3928         xc_bad_var_cflags=yes
3929         ;;
3930       -rpath*)
3931         xc_bad_var_cflags=yes
3932         ;;
3933       -L* | --library-path=*)
3934         xc_bad_var_cflags=yes
3935         ;;
3936       -l* | --library=*)
3937         xc_bad_var_cflags=yes
3938         ;;
3939     esac
3940   done
3941   if test $xc_bad_var_cflags = yes; then
3942     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3943 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3944     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3945     for xc_word in $CFLAGS; do
3946       case "$xc_word" in
3947         -D*)
3948           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3949 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3950           ;;
3951         -U*)
3952           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3953 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3954           ;;
3955         -I*)
3956           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3957 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3958           ;;
3959         -rpath*)
3960           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3961 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3962           ;;
3963         -L* | --library-path=*)
3964           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3965 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3966           ;;
3967         -l* | --library=*)
3968           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3969 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3970           ;;
3971       esac
3972     done
3973   fi
3974
3975   if test $xc_bad_var_libs = yes ||
3976      test $xc_bad_var_cflags = yes ||
3977      test $xc_bad_var_ldflags = yes ||
3978      test $xc_bad_var_cppflags = yes; then
3979      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3980 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3981   fi
3982
3983 # Find a good install program.  We prefer a C program (faster),
3984 # so one script is as good as another.  But avoid the broken or
3985 # incompatible versions:
3986 # SysV /etc/install, /usr/sbin/install
3987 # SunOS /usr/etc/install
3988 # IRIX /sbin/install
3989 # AIX /bin/install
3990 # AmigaOS /C/install, which installs bootblocks on floppy discs
3991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3994 # OS/2's system install, which has a completely different semantic
3995 # ./install, which can be erroneously created by make from ./install.sh.
3996 # Reject install programs that cannot install multiple files.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3999 if test -z "$INSTALL"; then
4000 if ${ac_cv_path_install+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     # Account for people who put trailing slashes in PATH elements.
4009 case $as_dir/ in #((
4010   ./ | .// | /[cC]/* | \
4011   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4012   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4013   /usr/ucb/* ) ;;
4014   *)
4015     # OSF1 and SCO ODT 3.0 have their own names for install.
4016     # Don't use installbsd from OSF since it installs stuff as root
4017     # by default.
4018     for ac_prog in ginstall scoinst install; do
4019       for ac_exec_ext in '' $ac_executable_extensions; do
4020         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4021           if test $ac_prog = install &&
4022             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4023             # AIX install.  It has an incompatible calling convention.
4024             :
4025           elif test $ac_prog = install &&
4026             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4027             # program-specific install script used by HP pwplus--don't use.
4028             :
4029           else
4030             rm -rf conftest.one conftest.two conftest.dir
4031             echo one > conftest.one
4032             echo two > conftest.two
4033             mkdir conftest.dir
4034             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4035               test -s conftest.one && test -s conftest.two &&
4036               test -s conftest.dir/conftest.one &&
4037               test -s conftest.dir/conftest.two
4038             then
4039               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4040               break 3
4041             fi
4042           fi
4043         fi
4044       done
4045     done
4046     ;;
4047 esac
4048
4049   done
4050 IFS=$as_save_IFS
4051
4052 rm -rf conftest.one conftest.two conftest.dir
4053
4054 fi
4055   if test "${ac_cv_path_install+set}" = set; then
4056     INSTALL=$ac_cv_path_install
4057   else
4058     # As a last resort, use the slow shell script.  Don't cache a
4059     # value for INSTALL within a source directory, because that will
4060     # break other packages using the cache if that directory is
4061     # removed, or if the value is a relative name.
4062     INSTALL=$ac_install_sh
4063   fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4066 $as_echo "$INSTALL" >&6; }
4067
4068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4069 # It thinks the first close brace ends the variable substitution.
4070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4071
4072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4073
4074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4075
4076 # Expand $ac_aux_dir to an absolute path.
4077 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4078
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 if test -n "$ac_tool_prefix"; then
4085   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   if test -n "$CC"; then
4093   ac_cv_prog_CC="$CC" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100     for ac_exec_ext in '' $ac_executable_extensions; do
4101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107   done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4116 else
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 fi
4120
4121
4122 fi
4123 if test -z "$ac_cv_prog_CC"; then
4124   ac_ct_CC=$CC
4125   # Extract the first word of "gcc", so it can be a program name with args.
4126 set dummy gcc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test -n "$ac_ct_CC"; then
4133   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     ac_cv_prog_ac_ct_CC="gcc"
4143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147   done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153 if test -n "$ac_ct_CC"; then
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155 $as_echo "$ac_ct_CC" >&6; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161   if test "x$ac_ct_CC" = x; then
4162     CC=""
4163   else
4164     case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170     CC=$ac_ct_CC
4171   fi
4172 else
4173   CC="$ac_cv_prog_CC"
4174 fi
4175
4176 if test -z "$CC"; then
4177           if test -n "$ac_tool_prefix"; then
4178     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}cc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if test -n "$CC"; then
4186   ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_exec_ext in '' $ac_executable_extensions; do
4194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195     ac_cv_prog_CC="${ac_tool_prefix}cc"
4196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200   done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 CC=$ac_cv_prog_CC
4206 if test -n "$CC"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215   fi
4216 fi
4217 if test -z "$CC"; then
4218   # Extract the first word of "cc", so it can be a program name with args.
4219 set dummy cc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$CC"; then
4226   ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228   ac_prog_rejected=no
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4237        ac_prog_rejected=yes
4238        continue
4239      fi
4240     ac_cv_prog_CC="cc"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 if test $ac_prog_rejected = yes; then
4249   # We found a bogon in the path, so make sure we never use it.
4250   set dummy $ac_cv_prog_CC
4251   shift
4252   if test $# != 0; then
4253     # We chose a different compiler from the bogus one.
4254     # However, it has the same basename, so the bogon will be chosen
4255     # first if we set CC to just the basename; use the full file name.
4256     shift
4257     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4258   fi
4259 fi
4260 fi
4261 fi
4262 CC=$ac_cv_prog_CC
4263 if test -n "$CC"; then
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4266 else
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 fi
4270
4271
4272 fi
4273 if test -z "$CC"; then
4274   if test -n "$ac_tool_prefix"; then
4275   for ac_prog in cl.exe
4276   do
4277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_CC+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -n "$CC"; then
4285   ac_cv_prog_CC="$CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314     test -n "$CC" && break
4315   done
4316 fi
4317 if test -z "$CC"; then
4318   ac_ct_CC=$CC
4319   for ac_prog in cl.exe
4320 do
4321   # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$ac_ct_CC"; then
4329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_ac_ct_CC="$ac_prog"
4339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343   done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351 $as_echo "$ac_ct_CC" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358   test -n "$ac_ct_CC" && break
4359 done
4360
4361   if test "x$ac_ct_CC" = x; then
4362     CC=""
4363   else
4364     case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370     CC=$ac_ct_CC
4371   fi
4372 fi
4373
4374 fi
4375
4376
4377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $? "no acceptable C compiler found in \$PATH
4380 See \`config.log' for more details" "$LINENO" 5; }
4381
4382 # Provide some information about the compiler.
4383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4384 set X $ac_compile
4385 ac_compiler=$2
4386 for ac_option in --version -v -V -qversion; do
4387   { { ac_try="$ac_compiler $ac_option >&5"
4388 case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4395   ac_status=$?
4396   if test -s conftest.err; then
4397     sed '10a\
4398 ... rest of stderr output deleted ...
4399          10q' conftest.err >conftest.er1
4400     cat conftest.er1 >&5
4401   fi
4402   rm -f conftest.er1 conftest.err
4403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404   test $ac_status = 0; }
4405 done
4406
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h.  */
4409
4410 int main (void)
4411 {
4412
4413  ;
4414  return 0;
4415 }
4416 _ACEOF
4417 ac_clean_files_save=$ac_clean_files
4418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4419 # Try to create an executable without -o first, disregard a.out.
4420 # It will help us diagnose broken compilers, and finding out an intuition
4421 # of exeext.
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423 $as_echo_n "checking whether the C compiler works... " >&6; }
4424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4425
4426 # The possible output files:
4427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4428
4429 ac_rmfiles=
4430 for ac_file in $ac_files
4431 do
4432   case $ac_file in
4433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4435   esac
4436 done
4437 rm -f $ac_rmfiles
4438
4439 if { { ac_try="$ac_link_default"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_link_default") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; }; then :
4450   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4452 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4453 # so that the user can short-circuit this test for compilers unknown to
4454 # Autoconf.
4455 for ac_file in $ac_files ''
4456 do
4457   test -f "$ac_file" || continue
4458   case $ac_file in
4459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4460         ;;
4461     [ab].out )
4462         # We found the default executable, but exeext='' is most
4463         # certainly right.
4464         break;;
4465     *.* )
4466         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4467         then :; else
4468            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4469         fi
4470         # We set ac_cv_exeext here because the later test for it is not
4471         # safe: cross compilers may not add the suffix if given an `-o'
4472         # argument, so we may need to know it at that point already.
4473         # Even if this section looks crufty: it has the advantage of
4474         # actually working.
4475         break;;
4476     * )
4477         break;;
4478   esac
4479 done
4480 test "$ac_cv_exeext" = no && ac_cv_exeext=
4481
4482 else
4483   ac_file=''
4484 fi
4485 if test -z "$ac_file"; then :
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error 77 "C compiler cannot create executables
4494 See \`config.log' for more details" "$LINENO" 5; }
4495 else
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4500 $as_echo_n "checking for C compiler default output file name... " >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4502 $as_echo "$ac_file" >&6; }
4503 ac_exeext=$ac_cv_exeext
4504
4505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4506 ac_clean_files=$ac_clean_files_save
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4508 $as_echo_n "checking for suffix of executables... " >&6; }
4509 if { { ac_try="$ac_link"
4510 case "(($ac_try" in
4511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512   *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516   (eval "$ac_link") 2>&5
4517   ac_status=$?
4518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519   test $ac_status = 0; }; then :
4520   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4521 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4522 # work properly (i.e., refer to `conftest.exe'), while it won't with
4523 # `rm'.
4524 for ac_file in conftest.exe conftest conftest.*; do
4525   test -f "$ac_file" || continue
4526   case $ac_file in
4527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4529           break;;
4530     * ) break;;
4531   esac
4532 done
4533 else
4534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 fi
4539 rm -f conftest conftest$ac_cv_exeext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541 $as_echo "$ac_cv_exeext" >&6; }
4542
4543 rm -f conftest.$ac_ext
4544 EXEEXT=$ac_cv_exeext
4545 ac_exeext=$EXEEXT
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548 #include <stdio.h>
4549 int main (void)
4550 {
4551 FILE *f = fopen ("conftest.out", "w");
4552  return ferror (f) || fclose (f) != 0;
4553
4554  ;
4555  return 0;
4556 }
4557 _ACEOF
4558 ac_clean_files="$ac_clean_files conftest.out"
4559 # Check that the compiler produces executables we can run.  If not, either
4560 # the compiler is broken, or we cross compile.
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4562 $as_echo_n "checking whether we are cross compiling... " >&6; }
4563 if test "$cross_compiling" != yes; then
4564   { { ac_try="$ac_link"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571   (eval "$ac_link") 2>&5
4572   ac_status=$?
4573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574   test $ac_status = 0; }
4575   if { ac_try='./conftest$ac_cv_exeext'
4576   { { case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582   (eval "$ac_try") 2>&5
4583   ac_status=$?
4584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585   test $ac_status = 0; }; }; then
4586     cross_compiling=no
4587   else
4588     if test "$cross_compiling" = maybe; then
4589         cross_compiling=yes
4590     else
4591         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot run C compiled programs.
4594 If you meant to cross compile, use \`--host'.
4595 See \`config.log' for more details" "$LINENO" 5; }
4596     fi
4597   fi
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4600 $as_echo "$cross_compiling" >&6; }
4601
4602 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4603 ac_clean_files=$ac_clean_files_save
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4605 $as_echo_n "checking for suffix of object files... " >&6; }
4606 if ${ac_cv_objext+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h.  */
4611
4612 int main (void)
4613 {
4614
4615  ;
4616  return 0;
4617 }
4618 _ACEOF
4619 rm -f conftest.o conftest.obj
4620 if { { ac_try="$ac_compile"
4621 case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_compile") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; }; then :
4631   for ac_file in conftest.o conftest.obj conftest.*; do
4632   test -f "$ac_file" || continue;
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4636        break;;
4637   esac
4638 done
4639 else
4640   $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error $? "cannot compute suffix of object files: cannot compile
4646 See \`config.log' for more details" "$LINENO" 5; }
4647 fi
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4651 $as_echo "$ac_cv_objext" >&6; }
4652 OBJEXT=$ac_cv_objext
4653 ac_objext=$OBJEXT
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4656 if ${ac_cv_c_compiler_gnu+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661
4662 int main (void)
4663 {
4664 #ifndef __GNUC__
4665        choke me
4666 #endif
4667
4668  ;
4669  return 0;
4670 }
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673   ac_compiler_gnu=yes
4674 else
4675   ac_compiler_gnu=no
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4683 if test $ac_compiler_gnu = yes; then
4684   GCC=yes
4685 else
4686   GCC=
4687 fi
4688 ac_test_CFLAGS=${CFLAGS+set}
4689 ac_save_CFLAGS=$CFLAGS
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4692 if ${ac_cv_prog_cc_g+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   ac_save_c_werror_flag=$ac_c_werror_flag
4696    ac_c_werror_flag=yes
4697    ac_cv_prog_cc_g=no
4698    CFLAGS="-g"
4699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701
4702 int main (void)
4703 {
4704
4705  ;
4706  return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710   ac_cv_prog_cc_g=yes
4711 else
4712   CFLAGS=""
4713       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h.  */
4715
4716 int main (void)
4717 {
4718
4719  ;
4720  return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724
4725 else
4726   ac_c_werror_flag=$ac_save_c_werror_flag
4727          CFLAGS="-g"
4728          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730
4731 int main (void)
4732 {
4733
4734  ;
4735  return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739   ac_cv_prog_cc_g=yes
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746    ac_c_werror_flag=$ac_save_c_werror_flag
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751   CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753   if test "$GCC" = yes; then
4754     CFLAGS="-g -O2"
4755   else
4756     CFLAGS="-g"
4757   fi
4758 else
4759   if test "$GCC" = yes; then
4760     CFLAGS="-O2"
4761   else
4762     CFLAGS=
4763   fi
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if ${ac_cv_prog_cc_c89+:} false; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   ac_cv_prog_cc_c89=no
4771 ac_save_CC=$CC
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774 #include <stdarg.h>
4775 #include <stdio.h>
4776 struct stat;
4777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4778 struct buf { int x; };
4779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780 static char *e (p, i)
4781      char **p;
4782      int i;
4783 {
4784   return p[i];
4785 }
4786 static char *f (char * (*g) (char **, int), char **p, ...)
4787 {
4788   char *s;
4789   va_list v;
4790   va_start (v,p);
4791   s = g (p, va_arg (v,int));
4792   va_end (v);
4793   return s;
4794 }
4795
4796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4797    function prototypes and stuff, but not '\xHH' hex character constants.
4798    These don't provoke an error unfortunately, instead are silently treated
4799    as 'x'.  The following induces an error, until -std is added to get
4800    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4801    array size at least.  It's necessary to write '\x00'==0 to get something
4802    that's true only with -std.  */
4803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4804
4805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806    inside strings and character constants.  */
4807 #define FOO(x) 'x'
4808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4809
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814 int argc;
4815 char **argv;
4816 int main (void)
4817 {
4818 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4819  ;
4820  return 0;
4821 }
4822 _ACEOF
4823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4824         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4825 do
4826   CC="$ac_save_CC $ac_arg"
4827   if ac_fn_c_try_compile "$LINENO"; then :
4828   ac_cv_prog_cc_c89=$ac_arg
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext
4831   test "x$ac_cv_prog_cc_c89" != "xno" && break
4832 done
4833 rm -f conftest.$ac_ext
4834 CC=$ac_save_CC
4835
4836 fi
4837 # AC_CACHE_VAL
4838 case "x$ac_cv_prog_cc_c89" in
4839   x)
4840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841 $as_echo "none needed" >&6; } ;;
4842   xno)
4843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4844 $as_echo "unsupported" >&6; } ;;
4845   *)
4846     CC="$CC $ac_cv_prog_cc_c89"
4847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4849 esac
4850 if test "x$ac_cv_prog_cc_c89" != xno; then :
4851
4852 fi
4853
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860 ac_ext=c
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4866 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4867 if ${am_cv_prog_cc_c_o+:} false; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h.  */
4872
4873 int main (void)
4874 {
4875
4876  ;
4877  return 0;
4878 }
4879 _ACEOF
4880   # Make sure it works both with $CC and with simple cc.
4881   # Following AC_PROG_CC_C_O, we do the test twice because some
4882   # compilers refuse to overwrite an existing .o file with -o,
4883   # though they will create one.
4884   am_cv_prog_cc_c_o=yes
4885   for am_i in 1 2; do
4886     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4887    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4888    ac_status=$?
4889    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890    (exit $ac_status); } \
4891          && test -f conftest2.$ac_objext; then
4892       : OK
4893     else
4894       am_cv_prog_cc_c_o=no
4895       break
4896     fi
4897   done
4898   rm -f core conftest*
4899   unset am_i
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4902 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4903 if test "$am_cv_prog_cc_c_o" != yes; then
4904    # Losing compiler, so override with the script.
4905    # FIXME: It is wrong to rewrite CC.
4906    # But if we don't then we get into trouble of one sort or another.
4907    # A longer-term fix would be to have automake use am__CC in this case,
4908    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4909    CC="$am_aux_dir/compile $CC"
4910 fi
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4926 # On Suns, sometimes $CPP names a directory.
4927 if test -n "$CPP" && test -d "$CPP"; then
4928   CPP=
4929 fi
4930 if test -z "$CPP"; then
4931   if ${ac_cv_prog_CPP+:} false; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934       # Double quotes because CPP needs to be expanded
4935     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4936     do
4937       ac_preproc_ok=false
4938 for ac_c_preproc_warn_flag in '' yes
4939 do
4940   # Use a header file that comes with gcc, so configuring glibc
4941   # with a fresh cross-compiler works.
4942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943   # <limits.h> exists even on freestanding compilers.
4944   # On the NeXT, cc -E runs the code through the compiler's parser,
4945   # not just through cpp. "Syntax error" is here to catch this case.
4946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h.  */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953                      Syntax error
4954 _ACEOF
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4956
4957 else
4958   # Broken: fails on valid input.
4959 continue
4960 fi
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4962
4963   # OK, works on sane cases.  Now check whether nonexistent headers
4964   # can be detected and how.
4965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h.  */
4967 #include <ac_nonexistent.h>
4968 _ACEOF
4969 if ac_fn_c_try_cpp "$LINENO"; then :
4970   # Broken: success on invalid input.
4971 continue
4972 else
4973   # Passes both tests.
4974 ac_preproc_ok=:
4975 break
4976 fi
4977 rm -f conftest.err conftest.i conftest.$ac_ext
4978
4979 done
4980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4981 rm -f conftest.i conftest.err conftest.$ac_ext
4982 if $ac_preproc_ok; then :
4983   break
4984 fi
4985
4986     done
4987     ac_cv_prog_CPP=$CPP
4988
4989 fi
4990   CPP=$ac_cv_prog_CPP
4991 else
4992   ac_cv_prog_CPP=$CPP
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4995 $as_echo "$CPP" >&6; }
4996 ac_preproc_ok=false
4997 for ac_c_preproc_warn_flag in '' yes
4998 do
4999   # Use a header file that comes with gcc, so configuring glibc
5000   # with a fresh cross-compiler works.
5001   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5002   # <limits.h> exists even on freestanding compilers.
5003   # On the NeXT, cc -E runs the code through the compiler's parser,
5004   # not just through cpp. "Syntax error" is here to catch this case.
5005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h.  */
5007 #ifdef __STDC__
5008 # include <limits.h>
5009 #else
5010 # include <assert.h>
5011 #endif
5012                      Syntax error
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015
5016 else
5017   # Broken: fails on valid input.
5018 continue
5019 fi
5020 rm -f conftest.err conftest.i conftest.$ac_ext
5021
5022   # OK, works on sane cases.  Now check whether nonexistent headers
5023   # can be detected and how.
5024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h.  */
5026 #include <ac_nonexistent.h>
5027 _ACEOF
5028 if ac_fn_c_try_cpp "$LINENO"; then :
5029   # Broken: success on invalid input.
5030 continue
5031 else
5032   # Passes both tests.
5033 ac_preproc_ok=:
5034 break
5035 fi
5036 rm -f conftest.err conftest.i conftest.$ac_ext
5037
5038 done
5039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040 rm -f conftest.i conftest.err conftest.$ac_ext
5041 if $ac_preproc_ok; then :
5042
5043 else
5044   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5046 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5047 See \`config.log' for more details" "$LINENO" 5; }
5048 fi
5049
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056
5057   IFS=$xc_prog_cc_prev_IFS
5058   LIBS=$xc_prog_cc_prev_LIBS
5059   CFLAGS=$xc_prog_cc_prev_CFLAGS
5060   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5061   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5062
5063
5064
5065
5066
5067 ac_ext=cpp
5068 ac_cpp='$CXXCPP $CPPFLAGS'
5069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5072 if test -z "$CXX"; then
5073   if test -n "$CCC"; then
5074     CXX=$CCC
5075   else
5076     if test -n "$ac_tool_prefix"; then
5077   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5078   do
5079     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_CXX+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if test -n "$CXX"; then
5087   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101   done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 CXX=$ac_cv_prog_CXX
5107 if test -n "$CXX"; then
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5109 $as_echo "$CXX" >&6; }
5110 else
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116     test -n "$CXX" && break
5117   done
5118 fi
5119 if test -z "$CXX"; then
5120   ac_ct_CXX=$CXX
5121   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5122 do
5123   # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   if test -n "$ac_ct_CXX"; then
5131   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136   IFS=$as_save_IFS
5137   test -z "$as_dir" && as_dir=.
5138     for ac_exec_ext in '' $ac_executable_extensions; do
5139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140     ac_cv_prog_ac_ct_CXX="$ac_prog"
5141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143   fi
5144 done
5145   done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5151 if test -n "$ac_ct_CXX"; then
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5153 $as_echo "$ac_ct_CXX" >&6; }
5154 else
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160   test -n "$ac_ct_CXX" && break
5161 done
5162
5163   if test "x$ac_ct_CXX" = x; then
5164     CXX="g++"
5165   else
5166     case $cross_compiling:$ac_tool_warned in
5167 yes:)
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172     CXX=$ac_ct_CXX
5173   fi
5174 fi
5175
5176   fi
5177 fi
5178 # Provide some information about the compiler.
5179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5180 set X $ac_compile
5181 ac_compiler=$2
5182 for ac_option in --version -v -V -qversion; do
5183   { { ac_try="$ac_compiler $ac_option >&5"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189 $as_echo "$ac_try_echo"; } >&5
5190   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5191   ac_status=$?
5192   if test -s conftest.err; then
5193     sed '10a\
5194 ... rest of stderr output deleted ...
5195          10q' conftest.err >conftest.er1
5196     cat conftest.er1 >&5
5197   fi
5198   rm -f conftest.er1 conftest.err
5199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200   test $ac_status = 0; }
5201 done
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5204 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5205 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h.  */
5210
5211 int
5212 main ()
5213 {
5214 #ifndef __GNUC__
5215        choke me
5216 #endif
5217
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_cxx_try_compile "$LINENO"; then :
5223   ac_compiler_gnu=yes
5224 else
5225   ac_compiler_gnu=no
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5229
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5232 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5233 if test $ac_compiler_gnu = yes; then
5234   GXX=yes
5235 else
5236   GXX=
5237 fi
5238 ac_test_CXXFLAGS=${CXXFLAGS+set}
5239 ac_save_CXXFLAGS=$CXXFLAGS
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5241 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5242 if ${ac_cv_prog_cxx_g+:} false; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5246    ac_cxx_werror_flag=yes
5247    ac_cv_prog_cxx_g=no
5248    CXXFLAGS="-g"
5249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h.  */
5251
5252 int
5253 main ()
5254 {
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_cxx_try_compile "$LINENO"; then :
5261   ac_cv_prog_cxx_g=yes
5262 else
5263   CXXFLAGS=""
5264       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h.  */
5266
5267 int
5268 main ()
5269 {
5270
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_cxx_try_compile "$LINENO"; then :
5276
5277 else
5278   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5279          CXXFLAGS="-g"
5280          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h.  */
5282
5283 int
5284 main ()
5285 {
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_cxx_try_compile "$LINENO"; then :
5292   ac_cv_prog_cxx_g=yes
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5302 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5303 if test "$ac_test_CXXFLAGS" = set; then
5304   CXXFLAGS=$ac_save_CXXFLAGS
5305 elif test $ac_cv_prog_cxx_g = yes; then
5306   if test "$GXX" = yes; then
5307     CXXFLAGS="-g -O2"
5308   else
5309     CXXFLAGS="-g"
5310   fi
5311 else
5312   if test "$GXX" = yes; then
5313     CXXFLAGS="-O2"
5314   else
5315     CXXFLAGS=
5316   fi
5317 fi
5318 ac_ext=cpp
5319 ac_cpp='$CXXCPP $CPPFLAGS'
5320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5323
5324
5325     ax_cxx_compile_cxx11_required=false
5326   ac_ext=cpp
5327 ac_cpp='$CXXCPP $CPPFLAGS'
5328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331   ac_success=no
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5333 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5334 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339
5340   template <typename T>
5341     struct check
5342     {
5343       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5344     };
5345
5346     struct Base {
5347     virtual void f() {}
5348     };
5349     struct Child : public Base {
5350     virtual void f() override {}
5351     };
5352
5353     typedef check<check<bool>> right_angle_brackets;
5354
5355     int a;
5356     decltype(a) b;
5357
5358     typedef check<int> check_type;
5359     check_type c;
5360     check_type&& cr = static_cast<check_type&&>(c);
5361
5362     auto d = a;
5363     auto l = [](){};
5364
5365     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5366     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5367     namespace test_template_alias_sfinae {
5368         struct foo {};
5369
5370         template<typename T>
5371         using member = typename T::member_type;
5372
5373         template<typename T>
5374         void func(...) {}
5375
5376         template<typename T>
5377         void func(member<T>*) {}
5378
5379         void test();
5380
5381         void test() {
5382             func<foo>(0);
5383         }
5384     }
5385
5386 _ACEOF
5387 if ac_fn_cxx_try_compile "$LINENO"; then :
5388   ax_cv_cxx_compile_cxx11=yes
5389 else
5390   ax_cv_cxx_compile_cxx11=no
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 fi
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5395 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5396   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5397     ac_success=yes
5398   fi
5399
5400
5401
5402     if test x$ac_success = xno; then
5403     for switch in -std=c++11 -std=c++0x; do
5404       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5406 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5407 if eval \${$cachevar+:} false; then :
5408   $as_echo_n "(cached) " >&6
5409 else
5410   ac_save_CXXFLAGS="$CXXFLAGS"
5411          CXXFLAGS="$CXXFLAGS $switch"
5412          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h.  */
5414
5415   template <typename T>
5416     struct check
5417     {
5418       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5419     };
5420
5421     struct Base {
5422     virtual void f() {}
5423     };
5424     struct Child : public Base {
5425     virtual void f() override {}
5426     };
5427
5428     typedef check<check<bool>> right_angle_brackets;
5429
5430     int a;
5431     decltype(a) b;
5432
5433     typedef check<int> check_type;
5434     check_type c;
5435     check_type&& cr = static_cast<check_type&&>(c);
5436
5437     auto d = a;
5438     auto l = [](){};
5439
5440     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5441     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5442     namespace test_template_alias_sfinae {
5443         struct foo {};
5444
5445         template<typename T>
5446         using member = typename T::member_type;
5447
5448         template<typename T>
5449         void func(...) {}
5450
5451         template<typename T>
5452         void func(member<T>*) {}
5453
5454         void test();
5455
5456         void test() {
5457             func<foo>(0);
5458         }
5459     }
5460
5461 _ACEOF
5462 if ac_fn_cxx_try_compile "$LINENO"; then :
5463   eval $cachevar=yes
5464 else
5465   eval $cachevar=no
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468          CXXFLAGS="$ac_save_CXXFLAGS"
5469 fi
5470 eval ac_res=\$$cachevar
5471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5472 $as_echo "$ac_res" >&6; }
5473       if eval test x\$$cachevar = xyes; then
5474         CXXFLAGS="$CXXFLAGS $switch"
5475         ac_success=yes
5476         break
5477       fi
5478     done
5479   fi
5480   ac_ext=c
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486   if test x$ax_cxx_compile_cxx11_required = xtrue; then
5487     if test x$ac_success = xno; then
5488       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5489     fi
5490   else
5491     if test x$ac_success = xno; then
5492       HAVE_CXX11=0
5493       { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5494 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5495     else
5496       HAVE_CXX11=1
5497
5498 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5499
5500     fi
5501
5502
5503   fi
5504
5505
5506 am__api_version='1.16'
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5509 $as_echo_n "checking whether build environment is sane... " >&6; }
5510 # Reject unsafe characters in $srcdir or the absolute working directory
5511 # name.  Accept space and tab only in the latter.
5512 am_lf='
5513 '
5514 case `pwd` in
5515   *[\\\"\#\$\&\'\`$am_lf]*)
5516     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5517 esac
5518 case $srcdir in
5519   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5520     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5521 esac
5522
5523 # Do 'set' in a subshell so we don't clobber the current shell's
5524 # arguments.  Must try -L first in case configure is actually a
5525 # symlink; some systems play weird games with the mod time of symlinks
5526 # (eg FreeBSD returns the mod time of the symlink's containing
5527 # directory).
5528 if (
5529    am_has_slept=no
5530    for am_try in 1 2; do
5531      echo "timestamp, slept: $am_has_slept" > conftest.file
5532      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5533      if test "$*" = "X"; then
5534         # -L didn't work.
5535         set X `ls -t "$srcdir/configure" conftest.file`
5536      fi
5537      if test "$*" != "X $srcdir/configure conftest.file" \
5538         && test "$*" != "X conftest.file $srcdir/configure"; then
5539
5540         # If neither matched, then we have a broken ls.  This can happen
5541         # if, for instance, CONFIG_SHELL is bash and it inherits a
5542         # broken ls alias from the environment.  This has actually
5543         # happened.  Such a system could not be considered "sane".
5544         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5545   alias in your environment" "$LINENO" 5
5546      fi
5547      if test "$2" = conftest.file || test $am_try -eq 2; then
5548        break
5549      fi
5550      # Just in case.
5551      sleep 1
5552      am_has_slept=yes
5553    done
5554    test "$2" = conftest.file
5555    )
5556 then
5557    # Ok.
5558    :
5559 else
5560    as_fn_error $? "newly created file is older than distributed files!
5561 Check your system clock" "$LINENO" 5
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5564 $as_echo "yes" >&6; }
5565 # If we didn't sleep, we still need to ensure time stamps of config.status and
5566 # generated files are strictly newer.
5567 am_sleep_pid=
5568 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5569   ( sleep 1 ) &
5570   am_sleep_pid=$!
5571 fi
5572
5573 rm -f conftest.file
5574
5575 test "$program_prefix" != NONE &&
5576   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5577 # Use a double $ so make ignores it.
5578 test "$program_suffix" != NONE &&
5579   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5580 # Double any \ or $.
5581 # By default was `s,x,x', remove it if useless.
5582 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5584
5585 if test x"${MISSING+set}" != xset; then
5586   case $am_aux_dir in
5587   *\ * | *\     *)
5588     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5589   *)
5590     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5591   esac
5592 fi
5593 # Use eval to expand $SHELL
5594 if eval "$MISSING --is-lightweight"; then
5595   am_missing_run="$MISSING "
5596 else
5597   am_missing_run=
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5599 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5600 fi
5601
5602 if test x"${install_sh+set}" != xset; then
5603   case $am_aux_dir in
5604   *\ * | *\     *)
5605     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5606   *)
5607     install_sh="\${SHELL} $am_aux_dir/install-sh"
5608   esac
5609 fi
5610
5611 # Installed binaries are usually stripped using 'strip' when the user
5612 # run "make install-strip".  However 'strip' might not be the right
5613 # tool to use in cross-compilation environments, therefore Automake
5614 # will honor the 'STRIP' environment variable to overrule this program.
5615 if test "$cross_compiling" != no; then
5616   if test -n "$ac_tool_prefix"; then
5617   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}strip; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_STRIP+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$STRIP"; then
5625   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 STRIP=$ac_cv_prog_STRIP
5645 if test -n "$STRIP"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5647 $as_echo "$STRIP" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 fi
5655 if test -z "$ac_cv_prog_STRIP"; then
5656   ac_ct_STRIP=$STRIP
5657   # Extract the first word of "strip", so it can be a program name with args.
5658 set dummy strip; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   if test -n "$ac_ct_STRIP"; then
5665   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674     ac_cv_prog_ac_ct_STRIP="strip"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5685 if test -n "$ac_ct_STRIP"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5687 $as_echo "$ac_ct_STRIP" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693   if test "x$ac_ct_STRIP" = x; then
5694     STRIP=":"
5695   else
5696     case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702     STRIP=$ac_ct_STRIP
5703   fi
5704 else
5705   STRIP="$ac_cv_prog_STRIP"
5706 fi
5707
5708 fi
5709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5713 if test -z "$MKDIR_P"; then
5714   if ${ac_cv_path_mkdir+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_prog in mkdir gmkdir; do
5723          for ac_exec_ext in '' $ac_executable_extensions; do
5724            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5725            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5726              'mkdir (GNU coreutils) '* | \
5727              'mkdir (coreutils) '* | \
5728              'mkdir (fileutils) '4.1*)
5729                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5730                break 3;;
5731            esac
5732          done
5733        done
5734   done
5735 IFS=$as_save_IFS
5736
5737 fi
5738
5739   test -d ./--version && rmdir ./--version
5740   if test "${ac_cv_path_mkdir+set}" = set; then
5741     MKDIR_P="$ac_cv_path_mkdir -p"
5742   else
5743     # As a last resort, use the slow shell script.  Don't cache a
5744     # value for MKDIR_P within a source directory, because that will
5745     # break other packages using the cache if that directory is
5746     # removed, or if the value is a relative name.
5747     MKDIR_P="$ac_install_sh -d"
5748   fi
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5751 $as_echo "$MKDIR_P" >&6; }
5752
5753 for ac_prog in gawk mawk nawk awk
5754 do
5755   # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_AWK+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   if test -n "$AWK"; then
5763   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770     for ac_exec_ext in '' $ac_executable_extensions; do
5771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772     ac_cv_prog_AWK="$ac_prog"
5773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777   done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 AWK=$ac_cv_prog_AWK
5783 if test -n "$AWK"; then
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5785 $as_echo "$AWK" >&6; }
5786 else
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792   test -n "$AWK" && break
5793 done
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5797 set x ${MAKE-make}
5798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   cat >conftest.make <<\_ACEOF
5803 SHELL = /bin/sh
5804 all:
5805         @echo '@@@%%%=$(MAKE)=@@@%%%'
5806 _ACEOF
5807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5809   *@@@%%%=?*=@@@%%%*)
5810     eval ac_cv_prog_make_${ac_make}_set=yes;;
5811   *)
5812     eval ac_cv_prog_make_${ac_make}_set=no;;
5813 esac
5814 rm -f conftest.make
5815 fi
5816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818 $as_echo "yes" >&6; }
5819   SET_MAKE=
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823   SET_MAKE="MAKE=${MAKE-make}"
5824 fi
5825
5826 rm -rf .tst 2>/dev/null
5827 mkdir .tst 2>/dev/null
5828 if test -d .tst; then
5829   am__leading_dot=.
5830 else
5831   am__leading_dot=_
5832 fi
5833 rmdir .tst 2>/dev/null
5834
5835 DEPDIR="${am__leading_dot}deps"
5836
5837 ac_config_commands="$ac_config_commands depfiles"
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5840 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5841 cat > confinc.mk << 'END'
5842 am__doit:
5843         @echo this is the am__doit target >confinc.out
5844 .PHONY: am__doit
5845 END
5846 am__include="#"
5847 am__quote=
5848 # BSD make does it like this.
5849 echo '.include "confinc.mk" # ignored' > confmf.BSD
5850 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5851 echo 'include confinc.mk # ignored' > confmf.GNU
5852 _am_result=no
5853 for s in GNU BSD; do
5854   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5855    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5856    ac_status=$?
5857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858    (exit $ac_status); }
5859   case $?:`cat confinc.out 2>/dev/null` in #(
5860   '0:this is the am__doit target') :
5861     case $s in #(
5862   BSD) :
5863     am__include='.include' am__quote='"' ;; #(
5864   *) :
5865     am__include='include' am__quote='' ;;
5866 esac ;; #(
5867   *) :
5868      ;;
5869 esac
5870   if test "$am__include" != "#"; then
5871     _am_result="yes ($s style)"
5872     break
5873   fi
5874 done
5875 rm -f confinc.* confmf.*
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5877 $as_echo "${_am_result}" >&6; }
5878
5879 # Check whether --enable-dependency-tracking was given.
5880 if test "${enable_dependency_tracking+set}" = set; then :
5881   enableval=$enable_dependency_tracking;
5882 fi
5883
5884 if test "x$enable_dependency_tracking" != xno; then
5885   am_depcomp="$ac_aux_dir/depcomp"
5886   AMDEPBACKSLASH='\'
5887   am__nodep='_no'
5888 fi
5889  if test "x$enable_dependency_tracking" != xno; then
5890   AMDEP_TRUE=
5891   AMDEP_FALSE='#'
5892 else
5893   AMDEP_TRUE='#'
5894   AMDEP_FALSE=
5895 fi
5896
5897
5898 ## --------------------------------------- ##
5899 ##  Start of automake initialization code  ##
5900 ## --------------------------------------- ##
5901
5902 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5903   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5904   # is not polluted with repeated "-I."
5905   am__isrc=' -I$(srcdir)'
5906   # test to see if srcdir already configured
5907   if test -f $srcdir/config.status; then
5908     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5909   fi
5910 fi
5911
5912 # test whether we have cygpath
5913 if test -z "$CYGPATH_W"; then
5914   if (cygpath --version) >/dev/null 2>/dev/null; then
5915     CYGPATH_W='cygpath -w'
5916   else
5917     CYGPATH_W=echo
5918   fi
5919 fi
5920
5921
5922 # Define the identity of the package.
5923  PACKAGE='c-ares'
5924  VERSION='1.17.1'
5925
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define PACKAGE "$PACKAGE"
5929 _ACEOF
5930
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define VERSION "$VERSION"
5934 _ACEOF
5935
5936 # Some tools Automake needs.
5937
5938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5939
5940
5941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5942
5943
5944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5945
5946
5947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5948
5949
5950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5951
5952 # For better backward compatibility.  To be removed once Automake 1.9.x
5953 # dies out for good.  For more background, see:
5954 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5955 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5956 mkdir_p='$(MKDIR_P)'
5957
5958 # We need awk for the "check" target (and possibly the TAP driver).  The
5959 # system "awk" is bad on some platforms.
5960 # Always define AMTAR for backward compatibility.  Yes, it's still used
5961 # in the wild :-(  We should find a proper way to deprecate it ...
5962 AMTAR='$${TAR-tar}'
5963
5964
5965 # We'll loop over all known methods to create a tar archive until one works.
5966 _am_tools='gnutar  pax cpio none'
5967
5968 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5969
5970
5971
5972
5973
5974 depcc="$CC"   am_compiler_list=
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5977 $as_echo_n "checking dependency style of $depcc... " >&6; }
5978 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5982   # We make a subdir and do the tests there.  Otherwise we can end up
5983   # making bogus files that we don't know about and never remove.  For
5984   # instance it was reported that on HP-UX the gcc test will end up
5985   # making a dummy file named 'D' -- because '-MD' means "put the output
5986   # in D".
5987   rm -rf conftest.dir
5988   mkdir conftest.dir
5989   # Copy depcomp to subdir because otherwise we won't find it if we're
5990   # using a relative directory.
5991   cp "$am_depcomp" conftest.dir
5992   cd conftest.dir
5993   # We will build objects and dependencies in a subdirectory because
5994   # it helps to detect inapplicable dependency modes.  For instance
5995   # both Tru64's cc and ICC support -MD to output dependencies as a
5996   # side effect of compilation, but ICC will put the dependencies in
5997   # the current directory while Tru64 will put them in the object
5998   # directory.
5999   mkdir sub
6000
6001   am_cv_CC_dependencies_compiler_type=none
6002   if test "$am_compiler_list" = ""; then
6003      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6004   fi
6005   am__universal=false
6006   case " $depcc " in #(
6007      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6008      esac
6009
6010   for depmode in $am_compiler_list; do
6011     # Setup a source with many dependencies, because some compilers
6012     # like to wrap large dependency lists on column 80 (with \), and
6013     # we should not choose a depcomp mode which is confused by this.
6014     #
6015     # We need to recreate these files for each test, as the compiler may
6016     # overwrite some of them when testing with obscure command lines.
6017     # This happens at least with the AIX C compiler.
6018     : > sub/conftest.c
6019     for i in 1 2 3 4 5 6; do
6020       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6021       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6022       # Solaris 10 /bin/sh.
6023       echo '/* dummy */' > sub/conftst$i.h
6024     done
6025     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6026
6027     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6028     # mode.  It turns out that the SunPro C++ compiler does not properly
6029     # handle '-M -o', and we need to detect this.  Also, some Intel
6030     # versions had trouble with output in subdirs.
6031     am__obj=sub/conftest.${OBJEXT-o}
6032     am__minus_obj="-o $am__obj"
6033     case $depmode in
6034     gcc)
6035       # This depmode causes a compiler race in universal mode.
6036       test "$am__universal" = false || continue
6037       ;;
6038     nosideeffect)
6039       # After this tag, mechanisms are not by side-effect, so they'll
6040       # only be used when explicitly requested.
6041       if test "x$enable_dependency_tracking" = xyes; then
6042         continue
6043       else
6044         break
6045       fi
6046       ;;
6047     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6048       # This compiler won't grok '-c -o', but also, the minuso test has
6049       # not run yet.  These depmodes are late enough in the game, and
6050       # so weak that their functioning should not be impacted.
6051       am__obj=conftest.${OBJEXT-o}
6052       am__minus_obj=
6053       ;;
6054     none) break ;;
6055     esac
6056     if depmode=$depmode \
6057        source=sub/conftest.c object=$am__obj \
6058        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6059        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6060          >/dev/null 2>conftest.err &&
6061        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6062        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6063        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6064        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6065       # icc doesn't choke on unknown options, it will just issue warnings
6066       # or remarks (even with -Werror).  So we grep stderr for any message
6067       # that says an option was ignored or not supported.
6068       # When given -MP, icc 7.0 and 7.1 complain thusly:
6069       #   icc: Command line warning: ignoring option '-M'; no argument required
6070       # The diagnosis changed in icc 8.0:
6071       #   icc: Command line remark: option '-MP' not supported
6072       if (grep 'ignoring option' conftest.err ||
6073           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6074         am_cv_CC_dependencies_compiler_type=$depmode
6075         break
6076       fi
6077     fi
6078   done
6079
6080   cd ..
6081   rm -rf conftest.dir
6082 else
6083   am_cv_CC_dependencies_compiler_type=none
6084 fi
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6090
6091  if
6092   test "x$enable_dependency_tracking" != xno \
6093   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6094   am__fastdepCC_TRUE=
6095   am__fastdepCC_FALSE='#'
6096 else
6097   am__fastdepCC_TRUE='#'
6098   am__fastdepCC_FALSE=
6099 fi
6100
6101
6102 depcc="$CXX"  am_compiler_list=
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6105 $as_echo_n "checking dependency style of $depcc... " >&6; }
6106 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6110   # We make a subdir and do the tests there.  Otherwise we can end up
6111   # making bogus files that we don't know about and never remove.  For
6112   # instance it was reported that on HP-UX the gcc test will end up
6113   # making a dummy file named 'D' -- because '-MD' means "put the output
6114   # in D".
6115   rm -rf conftest.dir
6116   mkdir conftest.dir
6117   # Copy depcomp to subdir because otherwise we won't find it if we're
6118   # using a relative directory.
6119   cp "$am_depcomp" conftest.dir
6120   cd conftest.dir
6121   # We will build objects and dependencies in a subdirectory because
6122   # it helps to detect inapplicable dependency modes.  For instance
6123   # both Tru64's cc and ICC support -MD to output dependencies as a
6124   # side effect of compilation, but ICC will put the dependencies in
6125   # the current directory while Tru64 will put them in the object
6126   # directory.
6127   mkdir sub
6128
6129   am_cv_CXX_dependencies_compiler_type=none
6130   if test "$am_compiler_list" = ""; then
6131      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6132   fi
6133   am__universal=false
6134   case " $depcc " in #(
6135      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6136      esac
6137
6138   for depmode in $am_compiler_list; do
6139     # Setup a source with many dependencies, because some compilers
6140     # like to wrap large dependency lists on column 80 (with \), and
6141     # we should not choose a depcomp mode which is confused by this.
6142     #
6143     # We need to recreate these files for each test, as the compiler may
6144     # overwrite some of them when testing with obscure command lines.
6145     # This happens at least with the AIX C compiler.
6146     : > sub/conftest.c
6147     for i in 1 2 3 4 5 6; do
6148       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6149       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6150       # Solaris 10 /bin/sh.
6151       echo '/* dummy */' > sub/conftst$i.h
6152     done
6153     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6154
6155     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6156     # mode.  It turns out that the SunPro C++ compiler does not properly
6157     # handle '-M -o', and we need to detect this.  Also, some Intel
6158     # versions had trouble with output in subdirs.
6159     am__obj=sub/conftest.${OBJEXT-o}
6160     am__minus_obj="-o $am__obj"
6161     case $depmode in
6162     gcc)
6163       # This depmode causes a compiler race in universal mode.
6164       test "$am__universal" = false || continue
6165       ;;
6166     nosideeffect)
6167       # After this tag, mechanisms are not by side-effect, so they'll
6168       # only be used when explicitly requested.
6169       if test "x$enable_dependency_tracking" = xyes; then
6170         continue
6171       else
6172         break
6173       fi
6174       ;;
6175     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6176       # This compiler won't grok '-c -o', but also, the minuso test has
6177       # not run yet.  These depmodes are late enough in the game, and
6178       # so weak that their functioning should not be impacted.
6179       am__obj=conftest.${OBJEXT-o}
6180       am__minus_obj=
6181       ;;
6182     none) break ;;
6183     esac
6184     if depmode=$depmode \
6185        source=sub/conftest.c object=$am__obj \
6186        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6187        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6188          >/dev/null 2>conftest.err &&
6189        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6190        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6191        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6192        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6193       # icc doesn't choke on unknown options, it will just issue warnings
6194       # or remarks (even with -Werror).  So we grep stderr for any message
6195       # that says an option was ignored or not supported.
6196       # When given -MP, icc 7.0 and 7.1 complain thusly:
6197       #   icc: Command line warning: ignoring option '-M'; no argument required
6198       # The diagnosis changed in icc 8.0:
6199       #   icc: Command line remark: option '-MP' not supported
6200       if (grep 'ignoring option' conftest.err ||
6201           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6202         am_cv_CXX_dependencies_compiler_type=$depmode
6203         break
6204       fi
6205     fi
6206   done
6207
6208   cd ..
6209   rm -rf conftest.dir
6210 else
6211   am_cv_CXX_dependencies_compiler_type=none
6212 fi
6213
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6216 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6217 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6218
6219  if
6220   test "x$enable_dependency_tracking" != xno \
6221   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6222   am__fastdepCXX_TRUE=
6223   am__fastdepCXX_FALSE='#'
6224 else
6225   am__fastdepCXX_TRUE='#'
6226   am__fastdepCXX_FALSE=
6227 fi
6228
6229
6230
6231 # POSIX will say in a future version that running "rm -f" with no argument
6232 # is OK; and we want to be able to make that assumption in our Makefile
6233 # recipes.  So use an aggressive probe to check that the usage we want is
6234 # actually supported "in the wild" to an acceptable degree.
6235 # See automake bug#10828.
6236 # To make any issue more visible, cause the running configure to be aborted
6237 # by default if the 'rm' program in use doesn't match our expectations; the
6238 # user can still override this though.
6239 if rm -f && rm -fr && rm -rf; then : OK; else
6240   cat >&2 <<'END'
6241 Oops!
6242
6243 Your 'rm' program seems unable to run without file operands specified
6244 on the command line, even when the '-f' option is present.  This is contrary
6245 to the behaviour of most rm programs out there, and not conforming with
6246 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6247
6248 Please tell bug-automake@gnu.org about your system, including the value
6249 of your $PATH and any error possibly output before this message.  This
6250 can help us improve future automake versions.
6251
6252 END
6253   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6254     echo 'Configuration will proceed anyway, since you have set the' >&2
6255     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6256     echo >&2
6257   else
6258     cat >&2 <<'END'
6259 Aborting the configuration process, to ensure you take notice of the issue.
6260
6261 You can download and install GNU coreutils to get an 'rm' implementation
6262 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6263
6264 If you want to complete the configuration process using your problematic
6265 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6266 to "yes", and re-run configure.
6267
6268 END
6269     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6270   fi
6271 fi
6272
6273 ## ------------------------------------- ##
6274 ##  End of automake initialization code  ##
6275 ## ------------------------------------- ##
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6283 if ${ac_cv_path_GREP+:} false; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286   if test -z "$GREP"; then
6287   ac_path_GREP_found=false
6288   # Loop through the user's path and test for each of PROGNAME-LIST
6289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294     for ac_prog in grep ggrep; do
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6297       as_fn_executable_p "$ac_path_GREP" || continue
6298 # Check for GNU ac_path_GREP and select it if it is found.
6299   # Check for GNU $ac_path_GREP
6300 case `"$ac_path_GREP" --version 2>&1` in
6301 *GNU*)
6302   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6303 *)
6304   ac_count=0
6305   $as_echo_n 0123456789 >"conftest.in"
6306   while :
6307   do
6308     cat "conftest.in" "conftest.in" >"conftest.tmp"
6309     mv "conftest.tmp" "conftest.in"
6310     cp "conftest.in" "conftest.nl"
6311     $as_echo 'GREP' >> "conftest.nl"
6312     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6314     as_fn_arith $ac_count + 1 && ac_count=$as_val
6315     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6316       # Best one so far, save it but keep looking for a better one
6317       ac_cv_path_GREP="$ac_path_GREP"
6318       ac_path_GREP_max=$ac_count
6319     fi
6320     # 10*(2^10) chars as input seems more than enough
6321     test $ac_count -gt 10 && break
6322   done
6323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6324 esac
6325
6326       $ac_path_GREP_found && break 3
6327     done
6328   done
6329   done
6330 IFS=$as_save_IFS
6331   if test -z "$ac_cv_path_GREP"; then
6332     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6333   fi
6334 else
6335   ac_cv_path_GREP=$GREP
6336 fi
6337
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6340 $as_echo "$ac_cv_path_GREP" >&6; }
6341  GREP="$ac_cv_path_GREP"
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6345 $as_echo_n "checking for egrep... " >&6; }
6346 if ${ac_cv_path_EGREP+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6350    then ac_cv_path_EGREP="$GREP -E"
6351    else
6352      if test -z "$EGREP"; then
6353   ac_path_EGREP_found=false
6354   # Loop through the user's path and test for each of PROGNAME-LIST
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_prog in egrep; do
6361     for ac_exec_ext in '' $ac_executable_extensions; do
6362       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6363       as_fn_executable_p "$ac_path_EGREP" || continue
6364 # Check for GNU ac_path_EGREP and select it if it is found.
6365   # Check for GNU $ac_path_EGREP
6366 case `"$ac_path_EGREP" --version 2>&1` in
6367 *GNU*)
6368   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6369 *)
6370   ac_count=0
6371   $as_echo_n 0123456789 >"conftest.in"
6372   while :
6373   do
6374     cat "conftest.in" "conftest.in" >"conftest.tmp"
6375     mv "conftest.tmp" "conftest.in"
6376     cp "conftest.in" "conftest.nl"
6377     $as_echo 'EGREP' >> "conftest.nl"
6378     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380     as_fn_arith $ac_count + 1 && ac_count=$as_val
6381     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6382       # Best one so far, save it but keep looking for a better one
6383       ac_cv_path_EGREP="$ac_path_EGREP"
6384       ac_path_EGREP_max=$ac_count
6385     fi
6386     # 10*(2^10) chars as input seems more than enough
6387     test $ac_count -gt 10 && break
6388   done
6389   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390 esac
6391
6392       $ac_path_EGREP_found && break 3
6393     done
6394   done
6395   done
6396 IFS=$as_save_IFS
6397   if test -z "$ac_cv_path_EGREP"; then
6398     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6399   fi
6400 else
6401   ac_cv_path_EGREP=$EGREP
6402 fi
6403
6404    fi
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6407 $as_echo "$ac_cv_path_EGREP" >&6; }
6408  EGREP="$ac_cv_path_EGREP"
6409
6410
6411
6412
6413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6414 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h.  */
6417
6418 #ifdef _AIX
6419    yes_this_is_aix
6420 #endif
6421
6422 _ACEOF
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6425
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6427 $as_echo "yes" >&6; }
6428     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6429
6430
6431 else
6432
6433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435
6436 fi
6437 rm -f conftest*
6438
6439
6440
6441
6442     #
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6444 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h.  */
6447
6448
6449
6450 int main (void)
6451 {
6452
6453 #ifdef _THREAD_SAFE
6454       int dummy=1;
6455 #else
6456       force compilation error
6457 #endif
6458
6459  ;
6460  return 0;
6461 }
6462
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465
6466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467 $as_echo "yes" >&6; }
6468     tmp_thread_safe_initially_defined="yes"
6469
6470 else
6471
6472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474     tmp_thread_safe_initially_defined="no"
6475
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478   #
6479   if test "$tmp_thread_safe_initially_defined" = "no"; then
6480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6481 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6482
6483   case $host_os in
6484     aix[123].* | aix4.[012].*)
6485             tmp_need_thread_safe="no"
6486       ;;
6487     aix*)
6488             tmp_need_thread_safe="yes"
6489       ;;
6490     *)
6491       tmp_need_thread_safe="no"
6492       ;;
6493   esac
6494
6495     if test "$tmp_need_thread_safe" = "yes"; then
6496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6498     else
6499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501     fi
6502   fi
6503   #
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6505 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6506   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6507     test "$tmp_need_thread_safe" = "yes"; then
6508
6509
6510 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6511
6512 cat >>confdefs.h <<_EOF
6513 #ifndef _THREAD_SAFE
6514 #  define _THREAD_SAFE
6515 #endif
6516 _EOF
6517
6518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6519 $as_echo "yes" >&6; }
6520   else
6521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523   fi
6524   #
6525
6526
6527     #
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6529 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h.  */
6532
6533
6534
6535 int main (void)
6536 {
6537
6538 #ifdef _REENTRANT
6539       int dummy=1;
6540 #else
6541       force compilation error
6542 #endif
6543
6544  ;
6545  return 0;
6546 }
6547
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550
6551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6552 $as_echo "yes" >&6; }
6553     tmp_reentrant_initially_defined="yes"
6554
6555 else
6556
6557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559     tmp_reentrant_initially_defined="no"
6560
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563   #
6564   if test "$tmp_reentrant_initially_defined" = "no"; then
6565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6566 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6567
6568   case $host_os in
6569     solaris*)
6570       tmp_need_reentrant="yes"
6571       ;;
6572     *)
6573       tmp_need_reentrant="no"
6574       ;;
6575   esac
6576
6577     if test "$tmp_need_reentrant" = "no"; then
6578
6579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581
6582
6583 #include <errno.h>
6584
6585 int main (void)
6586 {
6587
6588       if(0 != errno)
6589         return 1;
6590
6591  ;
6592  return 0;
6593 }
6594
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597
6598     tmp_errno="yes"
6599
6600 else
6601
6602     tmp_errno="no"
6603
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606   if test "$tmp_errno" = "yes"; then
6607     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609
6610
6611 #include <errno.h>
6612
6613 int main (void)
6614 {
6615
6616 #ifdef errno
6617         int dummy=1;
6618 #else
6619         force compilation error
6620 #endif
6621
6622  ;
6623  return 0;
6624 }
6625
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628
6629       tmp_errno="errno_macro_defined"
6630
6631 else
6632
6633       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h.  */
6635
6636
6637 #define _REENTRANT
6638 #include <errno.h>
6639
6640 int main (void)
6641 {
6642
6643 #ifdef errno
6644           int dummy=1;
6645 #else
6646           force compilation error
6647 #endif
6648
6649  ;
6650  return 0;
6651 }
6652
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655
6656         tmp_errno="errno_macro_needs_reentrant"
6657         tmp_need_reentrant="yes"
6658
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664   fi
6665
6666     fi
6667     if test "$tmp_need_reentrant" = "no"; then
6668
6669   if test "$tmp_need_reentrant" = "no"; then
6670
6671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h.  */
6673
6674
6675 #define gmtime_r innocuous_gmtime_r
6676 #ifdef __STDC__
6677 # include <limits.h>
6678 #else
6679 # include <assert.h>
6680 #endif
6681 #undef gmtime_r
6682 #ifdef __cplusplus
6683 extern "C"
6684 #endif
6685 char gmtime_r ();
6686 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6687 choke me
6688 #endif
6689
6690 int main (void)
6691 {
6692 return gmtime_r ();
6693  ;
6694  return 0;
6695 }
6696
6697 _ACEOF
6698 if ac_fn_c_try_link "$LINENO"; then :
6699
6700     tmp_gmtime_r="yes"
6701
6702 else
6703
6704     tmp_gmtime_r="no"
6705
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext \
6708     conftest$ac_exeext conftest.$ac_ext
6709   if test "$tmp_gmtime_r" = "yes"; then
6710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712
6713 #include <sys/types.h>
6714 #include <time.h>
6715
6716 _ACEOF
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6719
6720       tmp_gmtime_r="proto_declared"
6721
6722 else
6723
6724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726
6727 #define _REENTRANT
6728 #include <sys/types.h>
6729 #include <time.h>
6730
6731 _ACEOF
6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6734
6735         tmp_gmtime_r="proto_needs_reentrant"
6736         tmp_need_reentrant="yes"
6737
6738 fi
6739 rm -f conftest*
6740
6741
6742 fi
6743 rm -f conftest*
6744
6745   fi
6746
6747   fi
6748   if test "$tmp_need_reentrant" = "no"; then
6749
6750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752
6753
6754 #define localtime_r innocuous_localtime_r
6755 #ifdef __STDC__
6756 # include <limits.h>
6757 #else
6758 # include <assert.h>
6759 #endif
6760 #undef localtime_r
6761 #ifdef __cplusplus
6762 extern "C"
6763 #endif
6764 char localtime_r ();
6765 #if defined __stub_localtime_r || defined __stub___localtime_r
6766 choke me
6767 #endif
6768
6769 int main (void)
6770 {
6771 return localtime_r ();
6772  ;
6773  return 0;
6774 }
6775
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"; then :
6778
6779     tmp_localtime_r="yes"
6780
6781 else
6782
6783     tmp_localtime_r="no"
6784
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext \
6787     conftest$ac_exeext conftest.$ac_ext
6788   if test "$tmp_localtime_r" = "yes"; then
6789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791
6792 #include <sys/types.h>
6793 #include <time.h>
6794
6795 _ACEOF
6796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797   $EGREP "localtime_r" >/dev/null 2>&1; then :
6798
6799       tmp_localtime_r="proto_declared"
6800
6801 else
6802
6803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h.  */
6805
6806 #define _REENTRANT
6807 #include <sys/types.h>
6808 #include <time.h>
6809
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812   $EGREP "localtime_r" >/dev/null 2>&1; then :
6813
6814         tmp_localtime_r="proto_needs_reentrant"
6815         tmp_need_reentrant="yes"
6816
6817 fi
6818 rm -f conftest*
6819
6820
6821 fi
6822 rm -f conftest*
6823
6824   fi
6825
6826   fi
6827   if test "$tmp_need_reentrant" = "no"; then
6828
6829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h.  */
6831
6832
6833 #define strerror_r innocuous_strerror_r
6834 #ifdef __STDC__
6835 # include <limits.h>
6836 #else
6837 # include <assert.h>
6838 #endif
6839 #undef strerror_r
6840 #ifdef __cplusplus
6841 extern "C"
6842 #endif
6843 char strerror_r ();
6844 #if defined __stub_strerror_r || defined __stub___strerror_r
6845 choke me
6846 #endif
6847
6848 int main (void)
6849 {
6850 return strerror_r ();
6851  ;
6852  return 0;
6853 }
6854
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857
6858     tmp_strerror_r="yes"
6859
6860 else
6861
6862     tmp_strerror_r="no"
6863
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext \
6866     conftest$ac_exeext conftest.$ac_ext
6867   if test "$tmp_strerror_r" = "yes"; then
6868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870
6871 #include <sys/types.h>
6872 #include <string.h>
6873
6874 _ACEOF
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876   $EGREP "strerror_r" >/dev/null 2>&1; then :
6877
6878       tmp_strerror_r="proto_declared"
6879
6880 else
6881
6882       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h.  */
6884
6885 #define _REENTRANT
6886 #include <sys/types.h>
6887 #include <string.h>
6888
6889 _ACEOF
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891   $EGREP "strerror_r" >/dev/null 2>&1; then :
6892
6893         tmp_strerror_r="proto_needs_reentrant"
6894         tmp_need_reentrant="yes"
6895
6896 fi
6897 rm -f conftest*
6898
6899
6900 fi
6901 rm -f conftest*
6902
6903   fi
6904
6905   fi
6906   if test "$tmp_need_reentrant" = "no"; then
6907
6908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h.  */
6910
6911
6912 #define strtok_r innocuous_strtok_r
6913 #ifdef __STDC__
6914 # include <limits.h>
6915 #else
6916 # include <assert.h>
6917 #endif
6918 #undef strtok_r
6919 #ifdef __cplusplus
6920 extern "C"
6921 #endif
6922 char strtok_r ();
6923 #if defined __stub_strtok_r || defined __stub___strtok_r
6924 choke me
6925 #endif
6926
6927 int main (void)
6928 {
6929 return strtok_r ();
6930  ;
6931  return 0;
6932 }
6933
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936
6937     tmp_strtok_r="yes"
6938
6939 else
6940
6941     tmp_strtok_r="no"
6942
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext \
6945     conftest$ac_exeext conftest.$ac_ext
6946   if test "$tmp_strtok_r" = "yes"; then
6947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h.  */
6949
6950 #include <sys/types.h>
6951 #include <string.h>
6952
6953 _ACEOF
6954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955   $EGREP "strtok_r" >/dev/null 2>&1; then :
6956
6957       tmp_strtok_r="proto_declared"
6958
6959 else
6960
6961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h.  */
6963
6964 #define _REENTRANT
6965 #include <sys/types.h>
6966 #include <string.h>
6967
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970   $EGREP "strtok_r" >/dev/null 2>&1; then :
6971
6972         tmp_strtok_r="proto_needs_reentrant"
6973         tmp_need_reentrant="yes"
6974
6975 fi
6976 rm -f conftest*
6977
6978
6979 fi
6980 rm -f conftest*
6981
6982   fi
6983
6984   fi
6985   if test "$tmp_need_reentrant" = "no"; then
6986
6987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h.  */
6989
6990
6991 #define inet_ntoa_r innocuous_inet_ntoa_r
6992 #ifdef __STDC__
6993 # include <limits.h>
6994 #else
6995 # include <assert.h>
6996 #endif
6997 #undef inet_ntoa_r
6998 #ifdef __cplusplus
6999 extern "C"
7000 #endif
7001 char inet_ntoa_r ();
7002 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7003 choke me
7004 #endif
7005
7006 int main (void)
7007 {
7008 return inet_ntoa_r ();
7009  ;
7010  return 0;
7011 }
7012
7013 _ACEOF
7014 if ac_fn_c_try_link "$LINENO"; then :
7015
7016     tmp_inet_ntoa_r="yes"
7017
7018 else
7019
7020     tmp_inet_ntoa_r="no"
7021
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext \
7024     conftest$ac_exeext conftest.$ac_ext
7025   if test "$tmp_inet_ntoa_r" = "yes"; then
7026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028
7029 #include <sys/types.h>
7030 #include <sys/socket.h>
7031 #include <netinet/in.h>
7032 #include <arpa/inet.h>
7033
7034 _ACEOF
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7037
7038       tmp_inet_ntoa_r="proto_declared"
7039
7040 else
7041
7042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h.  */
7044
7045 #define _REENTRANT
7046 #include <sys/types.h>
7047 #include <sys/socket.h>
7048 #include <netinet/in.h>
7049 #include <arpa/inet.h>
7050
7051 _ACEOF
7052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7054
7055         tmp_inet_ntoa_r="proto_needs_reentrant"
7056         tmp_need_reentrant="yes"
7057
7058 fi
7059 rm -f conftest*
7060
7061
7062 fi
7063 rm -f conftest*
7064
7065   fi
7066
7067   fi
7068   if test "$tmp_need_reentrant" = "no"; then
7069
7070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072
7073
7074 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7075 #ifdef __STDC__
7076 # include <limits.h>
7077 #else
7078 # include <assert.h>
7079 #endif
7080 #undef gethostbyaddr_r
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 char gethostbyaddr_r ();
7085 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7086 choke me
7087 #endif
7088
7089 int main (void)
7090 {
7091 return gethostbyaddr_r ();
7092  ;
7093  return 0;
7094 }
7095
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098
7099     tmp_gethostbyaddr_r="yes"
7100
7101 else
7102
7103     tmp_gethostbyaddr_r="no"
7104
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107     conftest$ac_exeext conftest.$ac_ext
7108   if test "$tmp_gethostbyaddr_r" = "yes"; then
7109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h.  */
7111
7112 #include <sys/types.h>
7113 #include <netdb.h>
7114
7115 _ACEOF
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7118
7119       tmp_gethostbyaddr_r="proto_declared"
7120
7121 else
7122
7123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125
7126 #define _REENTRANT
7127 #include <sys/types.h>
7128 #include <netdb.h>
7129
7130 _ACEOF
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7133
7134         tmp_gethostbyaddr_r="proto_needs_reentrant"
7135         tmp_need_reentrant="yes"
7136
7137 fi
7138 rm -f conftest*
7139
7140
7141 fi
7142 rm -f conftest*
7143
7144   fi
7145
7146   fi
7147   if test "$tmp_need_reentrant" = "no"; then
7148
7149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151
7152
7153 #define gethostbyname_r innocuous_gethostbyname_r
7154 #ifdef __STDC__
7155 # include <limits.h>
7156 #else
7157 # include <assert.h>
7158 #endif
7159 #undef gethostbyname_r
7160 #ifdef __cplusplus
7161 extern "C"
7162 #endif
7163 char gethostbyname_r ();
7164 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7165 choke me
7166 #endif
7167
7168 int main (void)
7169 {
7170 return gethostbyname_r ();
7171  ;
7172  return 0;
7173 }
7174
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177
7178     tmp_gethostbyname_r="yes"
7179
7180 else
7181
7182     tmp_gethostbyname_r="no"
7183
7184 fi
7185 rm -f core conftest.err conftest.$ac_objext \
7186     conftest$ac_exeext conftest.$ac_ext
7187   if test "$tmp_gethostbyname_r" = "yes"; then
7188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190
7191 #include <sys/types.h>
7192 #include <netdb.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7197
7198       tmp_gethostbyname_r="proto_declared"
7199
7200 else
7201
7202       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h.  */
7204
7205 #define _REENTRANT
7206 #include <sys/types.h>
7207 #include <netdb.h>
7208
7209 _ACEOF
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7212
7213         tmp_gethostbyname_r="proto_needs_reentrant"
7214         tmp_need_reentrant="yes"
7215
7216 fi
7217 rm -f conftest*
7218
7219
7220 fi
7221 rm -f conftest*
7222
7223   fi
7224
7225   fi
7226   if test "$tmp_need_reentrant" = "no"; then
7227
7228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230
7231
7232 #define getprotobyname_r innocuous_getprotobyname_r
7233 #ifdef __STDC__
7234 # include <limits.h>
7235 #else
7236 # include <assert.h>
7237 #endif
7238 #undef getprotobyname_r
7239 #ifdef __cplusplus
7240 extern "C"
7241 #endif
7242 char getprotobyname_r ();
7243 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7244 choke me
7245 #endif
7246
7247 int main (void)
7248 {
7249 return getprotobyname_r ();
7250  ;
7251  return 0;
7252 }
7253
7254 _ACEOF
7255 if ac_fn_c_try_link "$LINENO"; then :
7256
7257     tmp_getprotobyname_r="yes"
7258
7259 else
7260
7261     tmp_getprotobyname_r="no"
7262
7263 fi
7264 rm -f core conftest.err conftest.$ac_objext \
7265     conftest$ac_exeext conftest.$ac_ext
7266   if test "$tmp_getprotobyname_r" = "yes"; then
7267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269
7270 #include <sys/types.h>
7271 #include <netdb.h>
7272
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7276
7277       tmp_getprotobyname_r="proto_declared"
7278
7279 else
7280
7281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h.  */
7283
7284 #define _REENTRANT
7285 #include <sys/types.h>
7286 #include <netdb.h>
7287
7288 _ACEOF
7289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7290   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7291
7292         tmp_getprotobyname_r="proto_needs_reentrant"
7293         tmp_need_reentrant="yes"
7294
7295 fi
7296 rm -f conftest*
7297
7298
7299 fi
7300 rm -f conftest*
7301
7302   fi
7303
7304   fi
7305   if test "$tmp_need_reentrant" = "no"; then
7306
7307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310
7311 #define getservbyport_r innocuous_getservbyport_r
7312 #ifdef __STDC__
7313 # include <limits.h>
7314 #else
7315 # include <assert.h>
7316 #endif
7317 #undef getservbyport_r
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char getservbyport_r ();
7322 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7323 choke me
7324 #endif
7325
7326 int main (void)
7327 {
7328 return getservbyport_r ();
7329  ;
7330  return 0;
7331 }
7332
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"; then :
7335
7336     tmp_getservbyport_r="yes"
7337
7338 else
7339
7340     tmp_getservbyport_r="no"
7341
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext \
7344     conftest$ac_exeext conftest.$ac_ext
7345   if test "$tmp_getservbyport_r" = "yes"; then
7346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h.  */
7348
7349 #include <sys/types.h>
7350 #include <netdb.h>
7351
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7355
7356       tmp_getservbyport_r="proto_declared"
7357
7358 else
7359
7360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h.  */
7362
7363 #define _REENTRANT
7364 #include <sys/types.h>
7365 #include <netdb.h>
7366
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7370
7371         tmp_getservbyport_r="proto_needs_reentrant"
7372         tmp_need_reentrant="yes"
7373
7374 fi
7375 rm -f conftest*
7376
7377
7378 fi
7379 rm -f conftest*
7380
7381   fi
7382
7383   fi
7384
7385     fi
7386     if test "$tmp_need_reentrant" = "yes"; then
7387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7389     else
7390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392     fi
7393   fi
7394   #
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7396 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7397   if test "$tmp_reentrant_initially_defined" = "yes" ||
7398     test "$tmp_need_reentrant" = "yes"; then
7399
7400
7401 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7402
7403 cat >>confdefs.h <<_EOF
7404 #ifndef _REENTRANT
7405 #  define _REENTRANT
7406 #endif
7407 _EOF
7408
7409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7410 $as_echo "yes" >&6; }
7411   else
7412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414   fi
7415   #
7416
7417
7418 # Check whether --enable-largefile was given.
7419 if test "${enable_largefile+set}" = set; then :
7420   enableval=$enable_largefile;
7421 fi
7422
7423 if test "$enable_largefile" != no; then
7424
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7426 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7427 if ${ac_cv_sys_largefile_CC+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   ac_cv_sys_largefile_CC=no
7431      if test "$GCC" != yes; then
7432        ac_save_CC=$CC
7433        while :; do
7434          # IRIX 6.2 and later do not support large files by default,
7435          # so use the C compiler's -n32 option if that helps.
7436          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h.  */
7438 #include <sys/types.h>
7439  /* Check that off_t can represent 2**63 - 1 correctly.
7440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7441     since some C++ compilers masquerading as C compilers
7442     incorrectly reject 9223372036854775807.  */
7443 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7445                        && LARGE_OFF_T % 2147483647 == 1)
7446                       ? 1 : -1];
7447 int main (void)
7448 {
7449
7450  ;
7451  return 0;
7452 }
7453 _ACEOF
7454          if ac_fn_c_try_compile "$LINENO"; then :
7455   break
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext
7458          CC="$CC -n32"
7459          if ac_fn_c_try_compile "$LINENO"; then :
7460   ac_cv_sys_largefile_CC=' -n32'; break
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext
7463          break
7464        done
7465        CC=$ac_save_CC
7466        rm -f conftest.$ac_ext
7467     fi
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7470 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7471   if test "$ac_cv_sys_largefile_CC" != no; then
7472     CC=$CC$ac_cv_sys_largefile_CC
7473   fi
7474
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7476 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7477 if ${ac_cv_sys_file_offset_bits+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   while :; do
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483 #include <sys/types.h>
7484  /* Check that off_t can represent 2**63 - 1 correctly.
7485     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7486     since some C++ compilers masquerading as C compilers
7487     incorrectly reject 9223372036854775807.  */
7488 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7489   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7490                        && LARGE_OFF_T % 2147483647 == 1)
7491                       ? 1 : -1];
7492 int main (void)
7493 {
7494
7495  ;
7496  return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500   ac_cv_sys_file_offset_bits=no; break
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505 #define _FILE_OFFSET_BITS 64
7506 #include <sys/types.h>
7507  /* Check that off_t can represent 2**63 - 1 correctly.
7508     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7509     since some C++ compilers masquerading as C compilers
7510     incorrectly reject 9223372036854775807.  */
7511 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7512   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7513                        && LARGE_OFF_T % 2147483647 == 1)
7514                       ? 1 : -1];
7515 int main (void)
7516 {
7517
7518  ;
7519  return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523   ac_cv_sys_file_offset_bits=64; break
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526   ac_cv_sys_file_offset_bits=unknown
7527   break
7528 done
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7531 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7532 case $ac_cv_sys_file_offset_bits in #(
7533   no | unknown) ;;
7534   *)
7535 cat >>confdefs.h <<_ACEOF
7536 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7537 _ACEOF
7538 ;;
7539 esac
7540 rm -rf conftest*
7541   if test $ac_cv_sys_file_offset_bits = unknown; then
7542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7543 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7544 if ${ac_cv_sys_large_files+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   while :; do
7548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h.  */
7550 #include <sys/types.h>
7551  /* Check that off_t can represent 2**63 - 1 correctly.
7552     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7553     since some C++ compilers masquerading as C compilers
7554     incorrectly reject 9223372036854775807.  */
7555 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7556   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7557                        && LARGE_OFF_T % 2147483647 == 1)
7558                       ? 1 : -1];
7559 int main (void)
7560 {
7561
7562  ;
7563  return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567   ac_cv_sys_large_files=no; break
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572 #define _LARGE_FILES 1
7573 #include <sys/types.h>
7574  /* Check that off_t can represent 2**63 - 1 correctly.
7575     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7576     since some C++ compilers masquerading as C compilers
7577     incorrectly reject 9223372036854775807.  */
7578 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7579   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7580                        && LARGE_OFF_T % 2147483647 == 1)
7581                       ? 1 : -1];
7582 int main (void)
7583 {
7584
7585  ;
7586  return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590   ac_cv_sys_large_files=1; break
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593   ac_cv_sys_large_files=unknown
7594   break
7595 done
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7598 $as_echo "$ac_cv_sys_large_files" >&6; }
7599 case $ac_cv_sys_large_files in #(
7600   no | unknown) ;;
7601   *)
7602 cat >>confdefs.h <<_ACEOF
7603 #define _LARGE_FILES $ac_cv_sys_large_files
7604 _ACEOF
7605 ;;
7606 esac
7607 rm -rf conftest*
7608   fi
7609
7610
7611 fi
7612
7613
7614 case $host_os in
7615   solaris*)
7616
7617 $as_echo "#define ETC_INET 1" >>confdefs.h
7618
7619     ;;
7620 esac
7621
7622 case `pwd` in
7623   *\ * | *\     *)
7624     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7626 esac
7627
7628
7629
7630 macro_version='2.4.6'
7631 macro_revision='2.4.6'
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 ltmain=$ac_aux_dir/ltmain.sh
7646
7647 # Backslashify metacharacters that are still active within
7648 # double-quoted strings.
7649 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7650
7651 # Same as above, but do not quote variable references.
7652 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7653
7654 # Sed substitution to delay expansion of an escaped shell variable in a
7655 # double_quote_subst'ed string.
7656 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7657
7658 # Sed substitution to delay expansion of an escaped single quote.
7659 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7660
7661 # Sed substitution to avoid accidental globbing in evaled expressions
7662 no_glob_subst='s/\*/\\\*/g'
7663
7664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7669 $as_echo_n "checking how to print strings... " >&6; }
7670 # Test print first, because it will be a builtin if present.
7671 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7672    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7673   ECHO='print -r --'
7674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7675   ECHO='printf %s\n'
7676 else
7677   # Use this function as a fallback that always works.
7678   func_fallback_echo ()
7679   {
7680     eval 'cat <<_LTECHO_EOF
7681 $1
7682 _LTECHO_EOF'
7683   }
7684   ECHO='func_fallback_echo'
7685 fi
7686
7687 # func_echo_all arg...
7688 # Invoke $ECHO with all args, space-separated.
7689 func_echo_all ()
7690 {
7691     $ECHO ""
7692 }
7693
7694 case $ECHO in
7695   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7696 $as_echo "printf" >&6; } ;;
7697   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7698 $as_echo "print -r" >&6; } ;;
7699   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7700 $as_echo "cat" >&6; } ;;
7701 esac
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7718 if ${ac_cv_path_SED+:} false; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7722      for ac_i in 1 2 3 4 5 6 7; do
7723        ac_script="$ac_script$as_nl$ac_script"
7724      done
7725      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7726      { ac_script=; unset ac_script;}
7727      if test -z "$SED"; then
7728   ac_path_SED_found=false
7729   # Loop through the user's path and test for each of PROGNAME-LIST
7730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735     for ac_prog in sed gsed; do
7736     for ac_exec_ext in '' $ac_executable_extensions; do
7737       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7738       as_fn_executable_p "$ac_path_SED" || continue
7739 # Check for GNU ac_path_SED and select it if it is found.
7740   # Check for GNU $ac_path_SED
7741 case `"$ac_path_SED" --version 2>&1` in
7742 *GNU*)
7743   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7744 *)
7745   ac_count=0
7746   $as_echo_n 0123456789 >"conftest.in"
7747   while :
7748   do
7749     cat "conftest.in" "conftest.in" >"conftest.tmp"
7750     mv "conftest.tmp" "conftest.in"
7751     cp "conftest.in" "conftest.nl"
7752     $as_echo '' >> "conftest.nl"
7753     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7755     as_fn_arith $ac_count + 1 && ac_count=$as_val
7756     if test $ac_count -gt ${ac_path_SED_max-0}; then
7757       # Best one so far, save it but keep looking for a better one
7758       ac_cv_path_SED="$ac_path_SED"
7759       ac_path_SED_max=$ac_count
7760     fi
7761     # 10*(2^10) chars as input seems more than enough
7762     test $ac_count -gt 10 && break
7763   done
7764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7765 esac
7766
7767       $ac_path_SED_found && break 3
7768     done
7769   done
7770   done
7771 IFS=$as_save_IFS
7772   if test -z "$ac_cv_path_SED"; then
7773     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7774   fi
7775 else
7776   ac_cv_path_SED=$SED
7777 fi
7778
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7781 $as_echo "$ac_cv_path_SED" >&6; }
7782  SED="$ac_cv_path_SED"
7783   rm -f conftest.sed
7784
7785 test -z "$SED" && SED=sed
7786 Xsed="$SED -e 1s/^X//"
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7799 $as_echo_n "checking for fgrep... " >&6; }
7800 if ${ac_cv_path_FGREP+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7804    then ac_cv_path_FGREP="$GREP -F"
7805    else
7806      if test -z "$FGREP"; then
7807   ac_path_FGREP_found=false
7808   # Loop through the user's path and test for each of PROGNAME-LIST
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814     for ac_prog in fgrep; do
7815     for ac_exec_ext in '' $ac_executable_extensions; do
7816       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7817       as_fn_executable_p "$ac_path_FGREP" || continue
7818 # Check for GNU ac_path_FGREP and select it if it is found.
7819   # Check for GNU $ac_path_FGREP
7820 case `"$ac_path_FGREP" --version 2>&1` in
7821 *GNU*)
7822   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7823 *)
7824   ac_count=0
7825   $as_echo_n 0123456789 >"conftest.in"
7826   while :
7827   do
7828     cat "conftest.in" "conftest.in" >"conftest.tmp"
7829     mv "conftest.tmp" "conftest.in"
7830     cp "conftest.in" "conftest.nl"
7831     $as_echo 'FGREP' >> "conftest.nl"
7832     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7833     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7834     as_fn_arith $ac_count + 1 && ac_count=$as_val
7835     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7836       # Best one so far, save it but keep looking for a better one
7837       ac_cv_path_FGREP="$ac_path_FGREP"
7838       ac_path_FGREP_max=$ac_count
7839     fi
7840     # 10*(2^10) chars as input seems more than enough
7841     test $ac_count -gt 10 && break
7842   done
7843   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7844 esac
7845
7846       $ac_path_FGREP_found && break 3
7847     done
7848   done
7849   done
7850 IFS=$as_save_IFS
7851   if test -z "$ac_cv_path_FGREP"; then
7852     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7853   fi
7854 else
7855   ac_cv_path_FGREP=$FGREP
7856 fi
7857
7858    fi
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7861 $as_echo "$ac_cv_path_FGREP" >&6; }
7862  FGREP="$ac_cv_path_FGREP"
7863
7864
7865 test -z "$GREP" && GREP=grep
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 # Check whether --with-gnu-ld was given.
7886 if test "${with_gnu_ld+set}" = set; then :
7887   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7888 else
7889   with_gnu_ld=no
7890 fi
7891
7892 ac_prog=ld
7893 if test yes = "$GCC"; then
7894   # Check if gcc -print-prog-name=ld gives a path.
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7896 $as_echo_n "checking for ld used by $CC... " >&6; }
7897   case $host in
7898   *-*-mingw*)
7899     # gcc leaves a trailing carriage return, which upsets mingw
7900     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7901   *)
7902     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7903   esac
7904   case $ac_prog in
7905     # Accept absolute paths.
7906     [\\/]* | ?:[\\/]*)
7907       re_direlt='/[^/][^/]*/\.\./'
7908       # Canonicalize the pathname of ld
7909       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7910       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7911         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7912       done
7913       test -z "$LD" && LD=$ac_prog
7914       ;;
7915   "")
7916     # If it fails, then pretend we aren't using GCC.
7917     ac_prog=ld
7918     ;;
7919   *)
7920     # If it is relative, then search for the first ld in PATH.
7921     with_gnu_ld=unknown
7922     ;;
7923   esac
7924 elif test yes = "$with_gnu_ld"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7926 $as_echo_n "checking for GNU ld... " >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7929 $as_echo_n "checking for non-GNU ld... " >&6; }
7930 fi
7931 if ${lt_cv_path_LD+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   if test -z "$LD"; then
7935   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7936   for ac_dir in $PATH; do
7937     IFS=$lt_save_ifs
7938     test -z "$ac_dir" && ac_dir=.
7939     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7940       lt_cv_path_LD=$ac_dir/$ac_prog
7941       # Check to see if the program is GNU ld.  I'd rather use --version,
7942       # but apparently some variants of GNU ld only accept -v.
7943       # Break only if it was the GNU/non-GNU ld that we prefer.
7944       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7945       *GNU* | *'with BFD'*)
7946         test no != "$with_gnu_ld" && break
7947         ;;
7948       *)
7949         test yes != "$with_gnu_ld" && break
7950         ;;
7951       esac
7952     fi
7953   done
7954   IFS=$lt_save_ifs
7955 else
7956   lt_cv_path_LD=$LD # Let the user override the test with a path.
7957 fi
7958 fi
7959
7960 LD=$lt_cv_path_LD
7961 if test -n "$LD"; then
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7963 $as_echo "$LD" >&6; }
7964 else
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7971 if ${lt_cv_prog_gnu_ld+:} false; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7975 case `$LD -v 2>&1 </dev/null` in
7976 *GNU* | *'with BFD'*)
7977   lt_cv_prog_gnu_ld=yes
7978   ;;
7979 *)
7980   lt_cv_prog_gnu_ld=no
7981   ;;
7982 esac
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7986 with_gnu_ld=$lt_cv_prog_gnu_ld
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7998 if ${lt_cv_path_NM+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   if test -n "$NM"; then
8002   # Let the user override the test.
8003   lt_cv_path_NM=$NM
8004 else
8005   lt_nm_to_check=${ac_tool_prefix}nm
8006   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8007     lt_nm_to_check="$lt_nm_to_check nm"
8008   fi
8009   for lt_tmp_nm in $lt_nm_to_check; do
8010     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8011     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8012       IFS=$lt_save_ifs
8013       test -z "$ac_dir" && ac_dir=.
8014       tmp_nm=$ac_dir/$lt_tmp_nm
8015       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8016         # Check to see if the nm accepts a BSD-compat flag.
8017         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8018         #   nm: unknown option "B" ignored
8019         # Tru64's nm complains that /dev/null is an invalid object file
8020         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8021         case $build_os in
8022         mingw*) lt_bad_file=conftest.nm/nofile ;;
8023         *) lt_bad_file=/dev/null ;;
8024         esac
8025         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8026         *$lt_bad_file* | *'Invalid file or object type'*)
8027           lt_cv_path_NM="$tmp_nm -B"
8028           break 2
8029           ;;
8030         *)
8031           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8032           */dev/null*)
8033             lt_cv_path_NM="$tmp_nm -p"
8034             break 2
8035             ;;
8036           *)
8037             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8038             continue # so that we can try to find one that supports BSD flags
8039             ;;
8040           esac
8041           ;;
8042         esac
8043       fi
8044     done
8045     IFS=$lt_save_ifs
8046   done
8047   : ${lt_cv_path_NM=no}
8048 fi
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8051 $as_echo "$lt_cv_path_NM" >&6; }
8052 if test no != "$lt_cv_path_NM"; then
8053   NM=$lt_cv_path_NM
8054 else
8055   # Didn't find any BSD compatible name lister, look for dumpbin.
8056   if test -n "$DUMPBIN"; then :
8057     # Let the user override the test.
8058   else
8059     if test -n "$ac_tool_prefix"; then
8060   for ac_prog in dumpbin "link -dump"
8061   do
8062     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_prog_DUMPBIN+:} false; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   if test -n "$DUMPBIN"; then
8070   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8074 do
8075   IFS=$as_save_IFS
8076   test -z "$as_dir" && as_dir=.
8077     for ac_exec_ext in '' $ac_executable_extensions; do
8078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081     break 2
8082   fi
8083 done
8084   done
8085 IFS=$as_save_IFS
8086
8087 fi
8088 fi
8089 DUMPBIN=$ac_cv_prog_DUMPBIN
8090 if test -n "$DUMPBIN"; then
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8092 $as_echo "$DUMPBIN" >&6; }
8093 else
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8096 fi
8097
8098
8099     test -n "$DUMPBIN" && break
8100   done
8101 fi
8102 if test -z "$DUMPBIN"; then
8103   ac_ct_DUMPBIN=$DUMPBIN
8104   for ac_prog in dumpbin "link -dump"
8105 do
8106   # Extract the first word of "$ac_prog", so it can be a program name with args.
8107 set dummy $ac_prog; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8111   $as_echo_n "(cached) " >&6
8112 else
8113   if test -n "$ac_ct_DUMPBIN"; then
8114   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119   IFS=$as_save_IFS
8120   test -z "$as_dir" && as_dir=.
8121     for ac_exec_ext in '' $ac_executable_extensions; do
8122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125     break 2
8126   fi
8127 done
8128   done
8129 IFS=$as_save_IFS
8130
8131 fi
8132 fi
8133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8134 if test -n "$ac_ct_DUMPBIN"; then
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8136 $as_echo "$ac_ct_DUMPBIN" >&6; }
8137 else
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141
8142
8143   test -n "$ac_ct_DUMPBIN" && break
8144 done
8145
8146   if test "x$ac_ct_DUMPBIN" = x; then
8147     DUMPBIN=":"
8148   else
8149     case $cross_compiling:$ac_tool_warned in
8150 yes:)
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153 ac_tool_warned=yes ;;
8154 esac
8155     DUMPBIN=$ac_ct_DUMPBIN
8156   fi
8157 fi
8158
8159     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8160     *COFF*)
8161       DUMPBIN="$DUMPBIN -symbols -headers"
8162       ;;
8163     *)
8164       DUMPBIN=:
8165       ;;
8166     esac
8167   fi
8168
8169   if test : != "$DUMPBIN"; then
8170     NM=$DUMPBIN
8171   fi
8172 fi
8173 test -z "$NM" && NM=nm
8174
8175
8176
8177
8178
8179
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8182 if ${lt_cv_nm_interface+:} false; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   lt_cv_nm_interface="BSD nm"
8186   echo "int some_variable = 0;" > conftest.$ac_ext
8187   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8188   (eval "$ac_compile" 2>conftest.err)
8189   cat conftest.err >&5
8190   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8191   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8192   cat conftest.err >&5
8193   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8194   cat conftest.out >&5
8195   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8196     lt_cv_nm_interface="MS dumpbin"
8197   fi
8198   rm -f conftest*
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8201 $as_echo "$lt_cv_nm_interface" >&6; }
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8204 $as_echo_n "checking whether ln -s works... " >&6; }
8205 LN_S=$as_ln_s
8206 if test "$LN_S" = "ln -s"; then
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8208 $as_echo "yes" >&6; }
8209 else
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8211 $as_echo "no, using $LN_S" >&6; }
8212 fi
8213
8214 # find the maximum length of command line arguments
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8217 if ${lt_cv_sys_max_cmd_len+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220     i=0
8221   teststring=ABCD
8222
8223   case $build_os in
8224   msdosdjgpp*)
8225     # On DJGPP, this test can blow up pretty badly due to problems in libc
8226     # (any single argument exceeding 2000 bytes causes a buffer overrun
8227     # during glob expansion).  Even if it were fixed, the result of this
8228     # check would be larger than it should be.
8229     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8230     ;;
8231
8232   gnu*)
8233     # Under GNU Hurd, this test is not required because there is
8234     # no limit to the length of command line arguments.
8235     # Libtool will interpret -1 as no limit whatsoever
8236     lt_cv_sys_max_cmd_len=-1;
8237     ;;
8238
8239   cygwin* | mingw* | cegcc*)
8240     # On Win9x/ME, this test blows up -- it succeeds, but takes
8241     # about 5 minutes as the teststring grows exponentially.
8242     # Worse, since 9x/ME are not pre-emptively multitasking,
8243     # you end up with a "frozen" computer, even though with patience
8244     # the test eventually succeeds (with a max line length of 256k).
8245     # Instead, let's just punt: use the minimum linelength reported by
8246     # all of the supported platforms: 8192 (on NT/2K/XP).
8247     lt_cv_sys_max_cmd_len=8192;
8248     ;;
8249
8250   mint*)
8251     # On MiNT this can take a long time and run out of memory.
8252     lt_cv_sys_max_cmd_len=8192;
8253     ;;
8254
8255   amigaos*)
8256     # On AmigaOS with pdksh, this test takes hours, literally.
8257     # So we just punt and use a minimum line length of 8192.
8258     lt_cv_sys_max_cmd_len=8192;
8259     ;;
8260
8261   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8262     # This has been around since 386BSD, at least.  Likely further.
8263     if test -x /sbin/sysctl; then
8264       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8265     elif test -x /usr/sbin/sysctl; then
8266       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8267     else
8268       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8269     fi
8270     # And add a safety zone
8271     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8272     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8273     ;;
8274
8275   interix*)
8276     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8277     lt_cv_sys_max_cmd_len=196608
8278     ;;
8279
8280   os2*)
8281     # The test takes a long time on OS/2.
8282     lt_cv_sys_max_cmd_len=8192
8283     ;;
8284
8285   osf*)
8286     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8287     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8288     # nice to cause kernel panics so lets avoid the loop below.
8289     # First set a reasonable default.
8290     lt_cv_sys_max_cmd_len=16384
8291     #
8292     if test -x /sbin/sysconfig; then
8293       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8294         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8295       esac
8296     fi
8297     ;;
8298   sco3.2v5*)
8299     lt_cv_sys_max_cmd_len=102400
8300     ;;
8301   sysv5* | sco5v6* | sysv4.2uw2*)
8302     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8303     if test -n "$kargmax"; then
8304       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8305     else
8306       lt_cv_sys_max_cmd_len=32768
8307     fi
8308     ;;
8309   *)
8310     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8311     if test -n "$lt_cv_sys_max_cmd_len" && \
8312        test undefined != "$lt_cv_sys_max_cmd_len"; then
8313       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8314       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8315     else
8316       # Make teststring a little bigger before we do anything with it.
8317       # a 1K string should be a reasonable start.
8318       for i in 1 2 3 4 5 6 7 8; do
8319         teststring=$teststring$teststring
8320       done
8321       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8322       # If test is not a shell built-in, we'll probably end up computing a
8323       # maximum length that is only half of the actual maximum length, but
8324       # we can't tell.
8325       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8326                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8327               test 17 != "$i" # 1/2 MB should be enough
8328       do
8329         i=`expr $i + 1`
8330         teststring=$teststring$teststring
8331       done
8332       # Only check the string length outside the loop.
8333       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8334       teststring=
8335       # Add a significant safety factor because C++ compilers can tack on
8336       # massive amounts of additional arguments before passing them to the
8337       # linker.  It appears as though 1/2 is a usable value.
8338       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8339     fi
8340     ;;
8341   esac
8342
8343 fi
8344
8345 if test -n "$lt_cv_sys_max_cmd_len"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8347 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8350 $as_echo "none" >&6; }
8351 fi
8352 max_cmd_len=$lt_cv_sys_max_cmd_len
8353
8354
8355
8356
8357
8358
8359 : ${CP="cp -f"}
8360 : ${MV="mv -f"}
8361 : ${RM="rm -f"}
8362
8363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8364   lt_unset=unset
8365 else
8366   lt_unset=false
8367 fi
8368
8369
8370
8371
8372
8373 # test EBCDIC or ASCII
8374 case `echo X|tr X '\101'` in
8375  A) # ASCII based system
8376     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8377   lt_SP2NL='tr \040 \012'
8378   lt_NL2SP='tr \015\012 \040\040'
8379   ;;
8380  *) # EBCDIC based system
8381   lt_SP2NL='tr \100 \n'
8382   lt_NL2SP='tr \r\n \100\100'
8383   ;;
8384 esac
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8395 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8396 if ${lt_cv_to_host_file_cmd+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   case $host in
8400   *-*-mingw* )
8401     case $build in
8402       *-*-mingw* ) # actually msys
8403         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8404         ;;
8405       *-*-cygwin* )
8406         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8407         ;;
8408       * ) # otherwise, assume *nix
8409         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8410         ;;
8411     esac
8412     ;;
8413   *-*-cygwin* )
8414     case $build in
8415       *-*-mingw* ) # actually msys
8416         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8417         ;;
8418       *-*-cygwin* )
8419         lt_cv_to_host_file_cmd=func_convert_file_noop
8420         ;;
8421       * ) # otherwise, assume *nix
8422         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8423         ;;
8424     esac
8425     ;;
8426   * ) # unhandled hosts (and "normal" native builds)
8427     lt_cv_to_host_file_cmd=func_convert_file_noop
8428     ;;
8429 esac
8430
8431 fi
8432
8433 to_host_file_cmd=$lt_cv_to_host_file_cmd
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8435 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8436
8437
8438
8439
8440
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8442 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8443 if ${lt_cv_to_tool_file_cmd+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   #assume ordinary cross tools, or native build.
8447 lt_cv_to_tool_file_cmd=func_convert_file_noop
8448 case $host in
8449   *-*-mingw* )
8450     case $build in
8451       *-*-mingw* ) # actually msys
8452         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8453         ;;
8454     esac
8455     ;;
8456 esac
8457
8458 fi
8459
8460 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8462 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8463
8464
8465
8466
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8469 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8470 if ${lt_cv_ld_reload_flag+:} false; then :
8471   $as_echo_n "(cached) " >&6
8472 else
8473   lt_cv_ld_reload_flag='-r'
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8476 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8477 reload_flag=$lt_cv_ld_reload_flag
8478 case $reload_flag in
8479 "" | " "*) ;;
8480 *) reload_flag=" $reload_flag" ;;
8481 esac
8482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8483 case $host_os in
8484   cygwin* | mingw* | pw32* | cegcc*)
8485     if test yes != "$GCC"; then
8486       reload_cmds=false
8487     fi
8488     ;;
8489   darwin*)
8490     if test yes = "$GCC"; then
8491       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8492     else
8493       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8494     fi
8495     ;;
8496 esac
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506 if test -n "$ac_tool_prefix"; then
8507   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8508 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_OBJDUMP+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   if test -n "$OBJDUMP"; then
8515   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520   IFS=$as_save_IFS
8521   test -z "$as_dir" && as_dir=.
8522     for ac_exec_ext in '' $ac_executable_extensions; do
8523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526     break 2
8527   fi
8528 done
8529   done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 OBJDUMP=$ac_cv_prog_OBJDUMP
8535 if test -n "$OBJDUMP"; then
8536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8537 $as_echo "$OBJDUMP" >&6; }
8538 else
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 fi
8542
8543
8544 fi
8545 if test -z "$ac_cv_prog_OBJDUMP"; then
8546   ac_ct_OBJDUMP=$OBJDUMP
8547   # Extract the first word of "objdump", so it can be a program name with args.
8548 set dummy objdump; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   if test -n "$ac_ct_OBJDUMP"; then
8555   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560   IFS=$as_save_IFS
8561   test -z "$as_dir" && as_dir=.
8562     for ac_exec_ext in '' $ac_executable_extensions; do
8563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566     break 2
8567   fi
8568 done
8569   done
8570 IFS=$as_save_IFS
8571
8572 fi
8573 fi
8574 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8575 if test -n "$ac_ct_OBJDUMP"; then
8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8577 $as_echo "$ac_ct_OBJDUMP" >&6; }
8578 else
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583   if test "x$ac_ct_OBJDUMP" = x; then
8584     OBJDUMP="false"
8585   else
8586     case $cross_compiling:$ac_tool_warned in
8587 yes:)
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590 ac_tool_warned=yes ;;
8591 esac
8592     OBJDUMP=$ac_ct_OBJDUMP
8593   fi
8594 else
8595   OBJDUMP="$ac_cv_prog_OBJDUMP"
8596 fi
8597
8598 test -z "$OBJDUMP" && OBJDUMP=objdump
8599
8600
8601
8602
8603
8604
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8606 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8607 if ${lt_cv_deplibs_check_method+:} false; then :
8608   $as_echo_n "(cached) " >&6
8609 else
8610   lt_cv_file_magic_cmd='$MAGIC_CMD'
8611 lt_cv_file_magic_test_file=
8612 lt_cv_deplibs_check_method='unknown'
8613 # Need to set the preceding variable on all platforms that support
8614 # interlibrary dependencies.
8615 # 'none' -- dependencies not supported.
8616 # 'unknown' -- same as none, but documents that we really don't know.
8617 # 'pass_all' -- all dependencies passed with no checks.
8618 # 'test_compile' -- check by making test program.
8619 # 'file_magic [[regex]]' -- check by looking for files in library path
8620 # that responds to the $file_magic_cmd with a given extended regex.
8621 # If you have 'file' or equivalent on your system and you're not sure
8622 # whether 'pass_all' will *always* work, you probably want this one.
8623
8624 case $host_os in
8625 aix[4-9]*)
8626   lt_cv_deplibs_check_method=pass_all
8627   ;;
8628
8629 beos*)
8630   lt_cv_deplibs_check_method=pass_all
8631   ;;
8632
8633 bsdi[45]*)
8634   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8635   lt_cv_file_magic_cmd='/usr/bin/file -L'
8636   lt_cv_file_magic_test_file=/shlib/libc.so
8637   ;;
8638
8639 cygwin*)
8640   # func_win32_libid is a shell function defined in ltmain.sh
8641   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8642   lt_cv_file_magic_cmd='func_win32_libid'
8643   ;;
8644
8645 mingw* | pw32*)
8646   # Base MSYS/MinGW do not provide the 'file' command needed by
8647   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8648   # unless we find 'file', for example because we are cross-compiling.
8649   if ( file / ) >/dev/null 2>&1; then
8650     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8651     lt_cv_file_magic_cmd='func_win32_libid'
8652   else
8653     # Keep this pattern in sync with the one in func_win32_libid.
8654     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8655     lt_cv_file_magic_cmd='$OBJDUMP -f'
8656   fi
8657   ;;
8658
8659 cegcc*)
8660   # use the weaker test based on 'objdump'. See mingw*.
8661   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8662   lt_cv_file_magic_cmd='$OBJDUMP -f'
8663   ;;
8664
8665 darwin* | rhapsody*)
8666   lt_cv_deplibs_check_method=pass_all
8667   ;;
8668
8669 freebsd* | dragonfly*)
8670   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8671     case $host_cpu in
8672     i*86 )
8673       # Not sure whether the presence of OpenBSD here was a mistake.
8674       # Let's accept both of them until this is cleared up.
8675       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8676       lt_cv_file_magic_cmd=/usr/bin/file
8677       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8678       ;;
8679     esac
8680   else
8681     lt_cv_deplibs_check_method=pass_all
8682   fi
8683   ;;
8684
8685 haiku*)
8686   lt_cv_deplibs_check_method=pass_all
8687   ;;
8688
8689 hpux10.20* | hpux11*)
8690   lt_cv_file_magic_cmd=/usr/bin/file
8691   case $host_cpu in
8692   ia64*)
8693     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8694     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8695     ;;
8696   hppa*64*)
8697     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]'
8698     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8699     ;;
8700   *)
8701     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8702     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8703     ;;
8704   esac
8705   ;;
8706
8707 interix[3-9]*)
8708   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8709   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8710   ;;
8711
8712 irix5* | irix6* | nonstopux*)
8713   case $LD in
8714   *-32|*"-32 ") libmagic=32-bit;;
8715   *-n32|*"-n32 ") libmagic=N32;;
8716   *-64|*"-64 ") libmagic=64-bit;;
8717   *) libmagic=never-match;;
8718   esac
8719   lt_cv_deplibs_check_method=pass_all
8720   ;;
8721
8722 # This must be glibc/ELF.
8723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8724   lt_cv_deplibs_check_method=pass_all
8725   ;;
8726
8727 netbsd* | netbsdelf*-gnu)
8728   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8729     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8730   else
8731     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8732   fi
8733   ;;
8734
8735 newos6*)
8736   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8737   lt_cv_file_magic_cmd=/usr/bin/file
8738   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8739   ;;
8740
8741 *nto* | *qnx*)
8742   lt_cv_deplibs_check_method=pass_all
8743   ;;
8744
8745 openbsd* | bitrig*)
8746   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8747     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8748   else
8749     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8750   fi
8751   ;;
8752
8753 osf3* | osf4* | osf5*)
8754   lt_cv_deplibs_check_method=pass_all
8755   ;;
8756
8757 rdos*)
8758   lt_cv_deplibs_check_method=pass_all
8759   ;;
8760
8761 solaris*)
8762   lt_cv_deplibs_check_method=pass_all
8763   ;;
8764
8765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8766   lt_cv_deplibs_check_method=pass_all
8767   ;;
8768
8769 sysv4 | sysv4.3*)
8770   case $host_vendor in
8771   motorola)
8772     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]'
8773     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8774     ;;
8775   ncr)
8776     lt_cv_deplibs_check_method=pass_all
8777     ;;
8778   sequent)
8779     lt_cv_file_magic_cmd='/bin/file'
8780     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8781     ;;
8782   sni)
8783     lt_cv_file_magic_cmd='/bin/file'
8784     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8785     lt_cv_file_magic_test_file=/lib/libc.so
8786     ;;
8787   siemens)
8788     lt_cv_deplibs_check_method=pass_all
8789     ;;
8790   pc)
8791     lt_cv_deplibs_check_method=pass_all
8792     ;;
8793   esac
8794   ;;
8795
8796 tpf*)
8797   lt_cv_deplibs_check_method=pass_all
8798   ;;
8799 os2*)
8800   lt_cv_deplibs_check_method=pass_all
8801   ;;
8802 esac
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8806 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8807
8808 file_magic_glob=
8809 want_nocaseglob=no
8810 if test "$build" = "$host"; then
8811   case $host_os in
8812   mingw* | pw32*)
8813     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8814       want_nocaseglob=yes
8815     else
8816       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8817     fi
8818     ;;
8819   esac
8820 fi
8821
8822 file_magic_cmd=$lt_cv_file_magic_cmd
8823 deplibs_check_method=$lt_cv_deplibs_check_method
8824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847 if test -n "$ac_tool_prefix"; then
8848   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8849 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_DLLTOOL+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   if test -n "$DLLTOOL"; then
8856   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861   IFS=$as_save_IFS
8862   test -z "$as_dir" && as_dir=.
8863     for ac_exec_ext in '' $ac_executable_extensions; do
8864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867     break 2
8868   fi
8869 done
8870   done
8871 IFS=$as_save_IFS
8872
8873 fi
8874 fi
8875 DLLTOOL=$ac_cv_prog_DLLTOOL
8876 if test -n "$DLLTOOL"; then
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8878 $as_echo "$DLLTOOL" >&6; }
8879 else
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8882 fi
8883
8884
8885 fi
8886 if test -z "$ac_cv_prog_DLLTOOL"; then
8887   ac_ct_DLLTOOL=$DLLTOOL
8888   # Extract the first word of "dlltool", so it can be a program name with args.
8889 set dummy dlltool; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   if test -n "$ac_ct_DLLTOOL"; then
8896   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901   IFS=$as_save_IFS
8902   test -z "$as_dir" && as_dir=.
8903     for ac_exec_ext in '' $ac_executable_extensions; do
8904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907     break 2
8908   fi
8909 done
8910   done
8911 IFS=$as_save_IFS
8912
8913 fi
8914 fi
8915 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8916 if test -n "$ac_ct_DLLTOOL"; then
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8918 $as_echo "$ac_ct_DLLTOOL" >&6; }
8919 else
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 fi
8923
8924   if test "x$ac_ct_DLLTOOL" = x; then
8925     DLLTOOL="false"
8926   else
8927     case $cross_compiling:$ac_tool_warned in
8928 yes:)
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8931 ac_tool_warned=yes ;;
8932 esac
8933     DLLTOOL=$ac_ct_DLLTOOL
8934   fi
8935 else
8936   DLLTOOL="$ac_cv_prog_DLLTOOL"
8937 fi
8938
8939 test -z "$DLLTOOL" && DLLTOOL=dlltool
8940
8941
8942
8943
8944
8945
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8948 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8949 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   lt_cv_sharedlib_from_linklib_cmd='unknown'
8953
8954 case $host_os in
8955 cygwin* | mingw* | pw32* | cegcc*)
8956   # two different shell functions defined in ltmain.sh;
8957   # decide which one to use based on capabilities of $DLLTOOL
8958   case `$DLLTOOL --help 2>&1` in
8959   *--identify-strict*)
8960     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8961     ;;
8962   *)
8963     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8964     ;;
8965   esac
8966   ;;
8967 *)
8968   # fallback: assume linklib IS sharedlib
8969   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8970   ;;
8971 esac
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8975 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8976 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8977 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8978
8979
8980
8981
8982
8983
8984
8985 if test -n "$ac_tool_prefix"; then
8986   for ac_prog in ar
8987   do
8988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_AR+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   if test -n "$AR"; then
8996   ac_cv_prog_AR="$AR" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001   IFS=$as_save_IFS
9002   test -z "$as_dir" && as_dir=.
9003     for ac_exec_ext in '' $ac_executable_extensions; do
9004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007     break 2
9008   fi
9009 done
9010   done
9011 IFS=$as_save_IFS
9012
9013 fi
9014 fi
9015 AR=$ac_cv_prog_AR
9016 if test -n "$AR"; then
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9018 $as_echo "$AR" >&6; }
9019 else
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 fi
9023
9024
9025     test -n "$AR" && break
9026   done
9027 fi
9028 if test -z "$AR"; then
9029   ac_ct_AR=$AR
9030   for ac_prog in ar
9031 do
9032   # Extract the first word of "$ac_prog", so it can be a program name with args.
9033 set dummy $ac_prog; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   if test -n "$ac_ct_AR"; then
9040   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9044 do
9045   IFS=$as_save_IFS
9046   test -z "$as_dir" && as_dir=.
9047     for ac_exec_ext in '' $ac_executable_extensions; do
9048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9049     ac_cv_prog_ac_ct_AR="$ac_prog"
9050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051     break 2
9052   fi
9053 done
9054   done
9055 IFS=$as_save_IFS
9056
9057 fi
9058 fi
9059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9060 if test -n "$ac_ct_AR"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9062 $as_echo "$ac_ct_AR" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067
9068
9069   test -n "$ac_ct_AR" && break
9070 done
9071
9072   if test "x$ac_ct_AR" = x; then
9073     AR="false"
9074   else
9075     case $cross_compiling:$ac_tool_warned in
9076 yes:)
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9079 ac_tool_warned=yes ;;
9080 esac
9081     AR=$ac_ct_AR
9082   fi
9083 fi
9084
9085 : ${AR=ar}
9086 : ${AR_FLAGS=cr}
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9099 $as_echo_n "checking for archiver @FILE support... " >&6; }
9100 if ${lt_cv_ar_at_file+:} false; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   lt_cv_ar_at_file=no
9104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h.  */
9106
9107 int main (void)
9108 {
9109
9110  ;
9111  return 0;
9112 }
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115   echo conftest.$ac_objext > conftest.lst
9116       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9117       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9118   (eval $lt_ar_try) 2>&5
9119   ac_status=$?
9120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121   test $ac_status = 0; }
9122       if test 0 -eq "$ac_status"; then
9123         # Ensure the archiver fails upon bogus file names.
9124         rm -f conftest.$ac_objext libconftest.a
9125         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9126   (eval $lt_ar_try) 2>&5
9127   ac_status=$?
9128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9129   test $ac_status = 0; }
9130         if test 0 -ne "$ac_status"; then
9131           lt_cv_ar_at_file=@
9132         fi
9133       fi
9134       rm -f conftest.* libconftest.a
9135
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9141 $as_echo "$lt_cv_ar_at_file" >&6; }
9142
9143 if test no = "$lt_cv_ar_at_file"; then
9144   archiver_list_spec=
9145 else
9146   archiver_list_spec=$lt_cv_ar_at_file
9147 fi
9148
9149
9150
9151
9152
9153
9154
9155 if test -n "$ac_tool_prefix"; then
9156   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9157 set dummy ${ac_tool_prefix}strip; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if ${ac_cv_prog_STRIP+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   if test -n "$STRIP"; then
9164   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9168 do
9169   IFS=$as_save_IFS
9170   test -z "$as_dir" && as_dir=.
9171     for ac_exec_ext in '' $ac_executable_extensions; do
9172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175     break 2
9176   fi
9177 done
9178   done
9179 IFS=$as_save_IFS
9180
9181 fi
9182 fi
9183 STRIP=$ac_cv_prog_STRIP
9184 if test -n "$STRIP"; then
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9186 $as_echo "$STRIP" >&6; }
9187 else
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191
9192
9193 fi
9194 if test -z "$ac_cv_prog_STRIP"; then
9195   ac_ct_STRIP=$STRIP
9196   # Extract the first word of "strip", so it can be a program name with args.
9197 set dummy strip; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9201   $as_echo_n "(cached) " >&6
9202 else
9203   if test -n "$ac_ct_STRIP"; then
9204   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209   IFS=$as_save_IFS
9210   test -z "$as_dir" && as_dir=.
9211     for ac_exec_ext in '' $ac_executable_extensions; do
9212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213     ac_cv_prog_ac_ct_STRIP="strip"
9214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215     break 2
9216   fi
9217 done
9218   done
9219 IFS=$as_save_IFS
9220
9221 fi
9222 fi
9223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9224 if test -n "$ac_ct_STRIP"; then
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9226 $as_echo "$ac_ct_STRIP" >&6; }
9227 else
9228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9230 fi
9231
9232   if test "x$ac_ct_STRIP" = x; then
9233     STRIP=":"
9234   else
9235     case $cross_compiling:$ac_tool_warned in
9236 yes:)
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9239 ac_tool_warned=yes ;;
9240 esac
9241     STRIP=$ac_ct_STRIP
9242   fi
9243 else
9244   STRIP="$ac_cv_prog_STRIP"
9245 fi
9246
9247 test -z "$STRIP" && STRIP=:
9248
9249
9250
9251
9252
9253
9254 if test -n "$ac_tool_prefix"; then
9255   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_prog_RANLIB+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   if test -n "$RANLIB"; then
9263   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9264 else
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268   IFS=$as_save_IFS
9269   test -z "$as_dir" && as_dir=.
9270     for ac_exec_ext in '' $ac_executable_extensions; do
9271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9274     break 2
9275   fi
9276 done
9277   done
9278 IFS=$as_save_IFS
9279
9280 fi
9281 fi
9282 RANLIB=$ac_cv_prog_RANLIB
9283 if test -n "$RANLIB"; then
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9285 $as_echo "$RANLIB" >&6; }
9286 else
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290
9291
9292 fi
9293 if test -z "$ac_cv_prog_RANLIB"; then
9294   ac_ct_RANLIB=$RANLIB
9295   # Extract the first word of "ranlib", so it can be a program name with args.
9296 set dummy ranlib; ac_word=$2
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 $as_echo_n "checking for $ac_word... " >&6; }
9299 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   if test -n "$ac_ct_RANLIB"; then
9303   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9304 else
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 for as_dir in $PATH
9307 do
9308   IFS=$as_save_IFS
9309   test -z "$as_dir" && as_dir=.
9310     for ac_exec_ext in '' $ac_executable_extensions; do
9311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312     ac_cv_prog_ac_ct_RANLIB="ranlib"
9313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314     break 2
9315   fi
9316 done
9317   done
9318 IFS=$as_save_IFS
9319
9320 fi
9321 fi
9322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9323 if test -n "$ac_ct_RANLIB"; then
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9325 $as_echo "$ac_ct_RANLIB" >&6; }
9326 else
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9329 fi
9330
9331   if test "x$ac_ct_RANLIB" = x; then
9332     RANLIB=":"
9333   else
9334     case $cross_compiling:$ac_tool_warned in
9335 yes:)
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9338 ac_tool_warned=yes ;;
9339 esac
9340     RANLIB=$ac_ct_RANLIB
9341   fi
9342 else
9343   RANLIB="$ac_cv_prog_RANLIB"
9344 fi
9345
9346 test -z "$RANLIB" && RANLIB=:
9347
9348
9349
9350
9351
9352
9353 # Determine commands to create old-style static archives.
9354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9355 old_postinstall_cmds='chmod 644 $oldlib'
9356 old_postuninstall_cmds=
9357
9358 if test -n "$RANLIB"; then
9359   case $host_os in
9360   bitrig* | openbsd*)
9361     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9362     ;;
9363   *)
9364     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9365     ;;
9366   esac
9367   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9368 fi
9369
9370 case $host_os in
9371   darwin*)
9372     lock_old_archive_extraction=yes ;;
9373   *)
9374     lock_old_archive_extraction=no ;;
9375 esac
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415 # If no C compiler was specified, use CC.
9416 LTCC=${LTCC-"$CC"}
9417
9418 # If no C compiler flags were specified, use CFLAGS.
9419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9420
9421 # Allow CC to be a program name with arguments.
9422 compiler=$CC
9423
9424
9425 # Check for command to grab the raw symbol name followed by C symbol from nm.
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9427 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9428 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431
9432 # These are sane defaults that work on at least a few old systems.
9433 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9434
9435 # Character class describing NM global symbol codes.
9436 symcode='[BCDEGRST]'
9437
9438 # Regexp to match symbols that can be accessed directly from C.
9439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9440
9441 # Define system-specific variables.
9442 case $host_os in
9443 aix*)
9444   symcode='[BCDT]'
9445   ;;
9446 cygwin* | mingw* | pw32* | cegcc*)
9447   symcode='[ABCDGISTW]'
9448   ;;
9449 hpux*)
9450   if test ia64 = "$host_cpu"; then
9451     symcode='[ABCDEGRST]'
9452   fi
9453   ;;
9454 irix* | nonstopux*)
9455   symcode='[BCDEGRST]'
9456   ;;
9457 osf*)
9458   symcode='[BCDEGQRST]'
9459   ;;
9460 solaris*)
9461   symcode='[BDRT]'
9462   ;;
9463 sco3.2v5*)
9464   symcode='[DT]'
9465   ;;
9466 sysv4.2uw2*)
9467   symcode='[DT]'
9468   ;;
9469 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9470   symcode='[ABDT]'
9471   ;;
9472 sysv4)
9473   symcode='[DFNSTU]'
9474   ;;
9475 esac
9476
9477 # If we're using GNU nm, then use its standard symbol codes.
9478 case `$NM -V 2>&1` in
9479 *GNU* | *'with BFD'*)
9480   symcode='[ABCDGIRSTW]' ;;
9481 esac
9482
9483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9484   # Gets list of data symbols to import.
9485   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9486   # Adjust the below global symbol transforms to fixup imported variables.
9487   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9488   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9489   lt_c_name_lib_hook="\
9490   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9491   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9492 else
9493   # Disable hooks by default.
9494   lt_cv_sys_global_symbol_to_import=
9495   lt_cdecl_hook=
9496   lt_c_name_hook=
9497   lt_c_name_lib_hook=
9498 fi
9499
9500 # Transform an extracted symbol line into a proper C declaration.
9501 # Some systems (esp. on ia64) link data and code symbols differently,
9502 # so use this general approach.
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9504 $lt_cdecl_hook\
9505 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9506 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9507
9508 # Transform an extracted symbol line into symbol name and symbol address
9509 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9510 $lt_c_name_hook\
9511 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9512 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9513
9514 # Transform an extracted symbol line into symbol name with lib prefix and
9515 # symbol address.
9516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9517 $lt_c_name_lib_hook\
9518 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9519 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9520 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9521
9522 # Handle CRLF in mingw tool chain
9523 opt_cr=
9524 case $build_os in
9525 mingw*)
9526   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9527   ;;
9528 esac
9529
9530 # Try without a prefix underscore, then with it.
9531 for ac_symprfx in "" "_"; do
9532
9533   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9534   symxfrm="\\1 $ac_symprfx\\2 \\2"
9535
9536   # Write the raw and C identifiers.
9537   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9538     # Fake it for dumpbin and say T for any non-static function,
9539     # D for any global variable and I for any imported variable.
9540     # Also find C++ and __fastcall symbols from MSVC++,
9541     # which start with @ or ?.
9542     lt_cv_sys_global_symbol_pipe="$AWK '"\
9543 "     {last_section=section; section=\$ 3};"\
9544 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9545 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9546 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9547 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9548 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9549 "     \$ 0!~/External *\|/{next};"\
9550 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9551 "     {if(hide[section]) next};"\
9552 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9553 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9554 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9555 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9556 "     ' prfx=^$ac_symprfx"
9557   else
9558     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9559   fi
9560   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9561
9562   # Check to see that the pipe works correctly.
9563   pipe_works=no
9564
9565   rm -f conftest*
9566   cat > conftest.$ac_ext <<_LT_EOF
9567 #ifdef __cplusplus
9568 extern "C" {
9569 #endif
9570 char nm_test_var;
9571 void nm_test_func(void);
9572 void nm_test_func(void){}
9573 #ifdef __cplusplus
9574 }
9575 #endif
9576 int main(){nm_test_var='a';nm_test_func();return(0);}
9577 _LT_EOF
9578
9579   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9580   (eval $ac_compile) 2>&5
9581   ac_status=$?
9582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583   test $ac_status = 0; }; then
9584     # Now try to grab the symbols.
9585     nlist=conftest.nm
9586     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9587     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9588       # Try sorting and uniquifying the output.
9589       if sort "$nlist" | uniq > "$nlist"T; then
9590         mv -f "$nlist"T "$nlist"
9591       else
9592         rm -f "$nlist"T
9593       fi
9594
9595       # Make sure that we snagged all the symbols we need.
9596       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9597         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9598           cat <<_LT_EOF > conftest.$ac_ext
9599 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9600 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9601 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9602    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9603 # define LT_DLSYM_CONST
9604 #elif defined __osf__
9605 /* This system does not cope well with relocations in const data.  */
9606 # define LT_DLSYM_CONST
9607 #else
9608 # define LT_DLSYM_CONST const
9609 #endif
9610
9611 #ifdef __cplusplus
9612 extern "C" {
9613 #endif
9614
9615 _LT_EOF
9616           # Now generate the symbol file.
9617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9618
9619           cat <<_LT_EOF >> conftest.$ac_ext
9620
9621 /* The mapping between symbol names and symbols.  */
9622 LT_DLSYM_CONST struct {
9623   const char *name;
9624   void       *address;
9625 }
9626 lt__PROGRAM__LTX_preloaded_symbols[] =
9627 {
9628   { "@PROGRAM@", (void *) 0 },
9629 _LT_EOF
9630           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9631           cat <<\_LT_EOF >> conftest.$ac_ext
9632   {0, (void *) 0}
9633 };
9634
9635 /* This works around a problem in FreeBSD linker */
9636 #ifdef FREEBSD_WORKAROUND
9637 static const void *lt_preloaded_setup() {
9638   return lt__PROGRAM__LTX_preloaded_symbols;
9639 }
9640 #endif
9641
9642 #ifdef __cplusplus
9643 }
9644 #endif
9645 _LT_EOF
9646           # Now try linking the two files.
9647           mv conftest.$ac_objext conftstm.$ac_objext
9648           lt_globsym_save_LIBS=$LIBS
9649           lt_globsym_save_CFLAGS=$CFLAGS
9650           LIBS=conftstm.$ac_objext
9651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9652           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9653   (eval $ac_link) 2>&5
9654   ac_status=$?
9655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9656   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9657             pipe_works=yes
9658           fi
9659           LIBS=$lt_globsym_save_LIBS
9660           CFLAGS=$lt_globsym_save_CFLAGS
9661         else
9662           echo "cannot find nm_test_func in $nlist" >&5
9663         fi
9664       else
9665         echo "cannot find nm_test_var in $nlist" >&5
9666       fi
9667     else
9668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9669     fi
9670   else
9671     echo "$progname: failed program was:" >&5
9672     cat conftest.$ac_ext >&5
9673   fi
9674   rm -rf conftest* conftst*
9675
9676   # Do not use the global_symbol_pipe unless it works.
9677   if test yes = "$pipe_works"; then
9678     break
9679   else
9680     lt_cv_sys_global_symbol_pipe=
9681   fi
9682 done
9683
9684 fi
9685
9686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9687   lt_cv_sys_global_symbol_to_cdecl=
9688 fi
9689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9691 $as_echo "failed" >&6; }
9692 else
9693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9694 $as_echo "ok" >&6; }
9695 fi
9696
9697 # Response file support.
9698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9699   nm_file_list_spec='@'
9700 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9701   nm_file_list_spec='@'
9702 fi
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9741 $as_echo_n "checking for sysroot... " >&6; }
9742
9743 # Check whether --with-sysroot was given.
9744 if test "${with_sysroot+set}" = set; then :
9745   withval=$with_sysroot;
9746 else
9747   with_sysroot=no
9748 fi
9749
9750
9751 lt_sysroot=
9752 case $with_sysroot in #(
9753  yes)
9754    if test yes = "$GCC"; then
9755      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9756    fi
9757    ;; #(
9758  /*)
9759    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9760    ;; #(
9761  no|'')
9762    ;; #(
9763  *)
9764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9765 $as_echo "$with_sysroot" >&6; }
9766    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9767    ;;
9768 esac
9769
9770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9771 $as_echo "${lt_sysroot:-no}" >&6; }
9772
9773
9774
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9778 $as_echo_n "checking for a working dd... " >&6; }
9779 if ${ac_cv_path_lt_DD+:} false; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   printf 0123456789abcdef0123456789abcdef >conftest.i
9783 cat conftest.i conftest.i >conftest2.i
9784 : ${lt_DD:=$DD}
9785 if test -z "$lt_DD"; then
9786   ac_path_lt_DD_found=false
9787   # Loop through the user's path and test for each of PROGNAME-LIST
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_prog in dd; do
9794     for ac_exec_ext in '' $ac_executable_extensions; do
9795       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9796       as_fn_executable_p "$ac_path_lt_DD" || continue
9797 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9798   cmp -s conftest.i conftest.out \
9799   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9800 fi
9801       $ac_path_lt_DD_found && break 3
9802     done
9803   done
9804   done
9805 IFS=$as_save_IFS
9806   if test -z "$ac_cv_path_lt_DD"; then
9807     :
9808   fi
9809 else
9810   ac_cv_path_lt_DD=$lt_DD
9811 fi
9812
9813 rm -f conftest.i conftest2.i conftest.out
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9816 $as_echo "$ac_cv_path_lt_DD" >&6; }
9817
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9820 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9821 if ${lt_cv_truncate_bin+:} false; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   printf 0123456789abcdef0123456789abcdef >conftest.i
9825 cat conftest.i conftest.i >conftest2.i
9826 lt_cv_truncate_bin=
9827 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9828   cmp -s conftest.i conftest.out \
9829   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9830 fi
9831 rm -f conftest.i conftest2.i conftest.out
9832 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9835 $as_echo "$lt_cv_truncate_bin" >&6; }
9836
9837
9838
9839
9840
9841
9842
9843 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9844 func_cc_basename ()
9845 {
9846     for cc_temp in $*""; do
9847       case $cc_temp in
9848         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9849         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9850         \-*) ;;
9851         *) break;;
9852       esac
9853     done
9854     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9855 }
9856
9857 # Check whether --enable-libtool-lock was given.
9858 if test "${enable_libtool_lock+set}" = set; then :
9859   enableval=$enable_libtool_lock;
9860 fi
9861
9862 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9863
9864 # Some flags need to be propagated to the compiler or linker for good
9865 # libtool support.
9866 case $host in
9867 ia64-*-hpux*)
9868   # Find out what ABI is being produced by ac_compile, and set mode
9869   # options accordingly.
9870   echo 'int i;' > conftest.$ac_ext
9871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9872   (eval $ac_compile) 2>&5
9873   ac_status=$?
9874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9875   test $ac_status = 0; }; then
9876     case `/usr/bin/file conftest.$ac_objext` in
9877       *ELF-32*)
9878         HPUX_IA64_MODE=32
9879         ;;
9880       *ELF-64*)
9881         HPUX_IA64_MODE=64
9882         ;;
9883     esac
9884   fi
9885   rm -rf conftest*
9886   ;;
9887 *-*-irix6*)
9888   # Find out what ABI is being produced by ac_compile, and set linker
9889   # options accordingly.
9890   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9892   (eval $ac_compile) 2>&5
9893   ac_status=$?
9894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895   test $ac_status = 0; }; then
9896     if test yes = "$lt_cv_prog_gnu_ld"; then
9897       case `/usr/bin/file conftest.$ac_objext` in
9898         *32-bit*)
9899           LD="${LD-ld} -melf32bsmip"
9900           ;;
9901         *N32*)
9902           LD="${LD-ld} -melf32bmipn32"
9903           ;;
9904         *64-bit*)
9905           LD="${LD-ld} -melf64bmip"
9906         ;;
9907       esac
9908     else
9909       case `/usr/bin/file conftest.$ac_objext` in
9910         *32-bit*)
9911           LD="${LD-ld} -32"
9912           ;;
9913         *N32*)
9914           LD="${LD-ld} -n32"
9915           ;;
9916         *64-bit*)
9917           LD="${LD-ld} -64"
9918           ;;
9919       esac
9920     fi
9921   fi
9922   rm -rf conftest*
9923   ;;
9924
9925 mips64*-*linux*)
9926   # Find out what ABI is being produced by ac_compile, and set linker
9927   # options accordingly.
9928   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9929   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930   (eval $ac_compile) 2>&5
9931   ac_status=$?
9932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933   test $ac_status = 0; }; then
9934     emul=elf
9935     case `/usr/bin/file conftest.$ac_objext` in
9936       *32-bit*)
9937         emul="${emul}32"
9938         ;;
9939       *64-bit*)
9940         emul="${emul}64"
9941         ;;
9942     esac
9943     case `/usr/bin/file conftest.$ac_objext` in
9944       *MSB*)
9945         emul="${emul}btsmip"
9946         ;;
9947       *LSB*)
9948         emul="${emul}ltsmip"
9949         ;;
9950     esac
9951     case `/usr/bin/file conftest.$ac_objext` in
9952       *N32*)
9953         emul="${emul}n32"
9954         ;;
9955     esac
9956     LD="${LD-ld} -m $emul"
9957   fi
9958   rm -rf conftest*
9959   ;;
9960
9961 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9962 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9963   # Find out what ABI is being produced by ac_compile, and set linker
9964   # options accordingly.  Note that the listed cases only cover the
9965   # situations where additional linker options are needed (such as when
9966   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9967   # vice versa); the common cases where no linker options are needed do
9968   # not appear in the list.
9969   echo 'int i;' > conftest.$ac_ext
9970   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9971   (eval $ac_compile) 2>&5
9972   ac_status=$?
9973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974   test $ac_status = 0; }; then
9975     case `/usr/bin/file conftest.o` in
9976       *32-bit*)
9977         case $host in
9978           x86_64-*kfreebsd*-gnu)
9979             LD="${LD-ld} -m elf_i386_fbsd"
9980             ;;
9981           x86_64-*linux*)
9982             case `/usr/bin/file conftest.o` in
9983               *x86-64*)
9984                 LD="${LD-ld} -m elf32_x86_64"
9985                 ;;
9986               *)
9987                 LD="${LD-ld} -m elf_i386"
9988                 ;;
9989             esac
9990             ;;
9991           powerpc64le-*linux*)
9992             LD="${LD-ld} -m elf32lppclinux"
9993             ;;
9994           powerpc64-*linux*)
9995             LD="${LD-ld} -m elf32ppclinux"
9996             ;;
9997           s390x-*linux*)
9998             LD="${LD-ld} -m elf_s390"
9999             ;;
10000           sparc64-*linux*)
10001             LD="${LD-ld} -m elf32_sparc"
10002             ;;
10003         esac
10004         ;;
10005       *64-bit*)
10006         case $host in
10007           x86_64-*kfreebsd*-gnu)
10008             LD="${LD-ld} -m elf_x86_64_fbsd"
10009             ;;
10010           x86_64-*linux*)
10011             LD="${LD-ld} -m elf_x86_64"
10012             ;;
10013           powerpcle-*linux*)
10014             LD="${LD-ld} -m elf64lppc"
10015             ;;
10016           powerpc-*linux*)
10017             LD="${LD-ld} -m elf64ppc"
10018             ;;
10019           s390*-*linux*|s390*-*tpf*)
10020             LD="${LD-ld} -m elf64_s390"
10021             ;;
10022           sparc*-*linux*)
10023             LD="${LD-ld} -m elf64_sparc"
10024             ;;
10025         esac
10026         ;;
10027     esac
10028   fi
10029   rm -rf conftest*
10030   ;;
10031
10032 *-*-sco3.2v5*)
10033   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10034   SAVE_CFLAGS=$CFLAGS
10035   CFLAGS="$CFLAGS -belf"
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10037 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10038 if ${lt_cv_cc_needs_belf+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   ac_ext=c
10042 ac_cpp='$CPP $CPPFLAGS'
10043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10046
10047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h.  */
10049
10050 int main (void)
10051 {
10052
10053  ;
10054  return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_link "$LINENO"; then :
10058   lt_cv_cc_needs_belf=yes
10059 else
10060   lt_cv_cc_needs_belf=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext \
10063     conftest$ac_exeext conftest.$ac_ext
10064      ac_ext=c
10065 ac_cpp='$CPP $CPPFLAGS'
10066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10069
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10072 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10073   if test yes != "$lt_cv_cc_needs_belf"; then
10074     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10075     CFLAGS=$SAVE_CFLAGS
10076   fi
10077   ;;
10078 *-*solaris*)
10079   # Find out what ABI is being produced by ac_compile, and set linker
10080   # options accordingly.
10081   echo 'int i;' > conftest.$ac_ext
10082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10083   (eval $ac_compile) 2>&5
10084   ac_status=$?
10085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086   test $ac_status = 0; }; then
10087     case `/usr/bin/file conftest.o` in
10088     *64-bit*)
10089       case $lt_cv_prog_gnu_ld in
10090       yes*)
10091         case $host in
10092         i?86-*-solaris*|x86_64-*-solaris*)
10093           LD="${LD-ld} -m elf_x86_64"
10094           ;;
10095         sparc*-*-solaris*)
10096           LD="${LD-ld} -m elf64_sparc"
10097           ;;
10098         esac
10099         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10100         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10101           LD=${LD-ld}_sol2
10102         fi
10103         ;;
10104       *)
10105         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10106           LD="${LD-ld} -64"
10107         fi
10108         ;;
10109       esac
10110       ;;
10111     esac
10112   fi
10113   rm -rf conftest*
10114   ;;
10115 esac
10116
10117 need_locks=$enable_libtool_lock
10118
10119 if test -n "$ac_tool_prefix"; then
10120   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10121 set dummy ${ac_tool_prefix}mt; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10125   $as_echo_n "(cached) " >&6
10126 else
10127   if test -n "$MANIFEST_TOOL"; then
10128   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10129 else
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133   IFS=$as_save_IFS
10134   test -z "$as_dir" && as_dir=.
10135     for ac_exec_ext in '' $ac_executable_extensions; do
10136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139     break 2
10140   fi
10141 done
10142   done
10143 IFS=$as_save_IFS
10144
10145 fi
10146 fi
10147 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10148 if test -n "$MANIFEST_TOOL"; then
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10150 $as_echo "$MANIFEST_TOOL" >&6; }
10151 else
10152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 fi
10155
10156
10157 fi
10158 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10159   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10160   # Extract the first word of "mt", so it can be a program name with args.
10161 set dummy mt; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10165   $as_echo_n "(cached) " >&6
10166 else
10167   if test -n "$ac_ct_MANIFEST_TOOL"; then
10168   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10169 else
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10172 do
10173   IFS=$as_save_IFS
10174   test -z "$as_dir" && as_dir=.
10175     for ac_exec_ext in '' $ac_executable_extensions; do
10176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10177     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179     break 2
10180   fi
10181 done
10182   done
10183 IFS=$as_save_IFS
10184
10185 fi
10186 fi
10187 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10188 if test -n "$ac_ct_MANIFEST_TOOL"; then
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10190 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10191 else
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10194 fi
10195
10196   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10197     MANIFEST_TOOL=":"
10198   else
10199     case $cross_compiling:$ac_tool_warned in
10200 yes:)
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10203 ac_tool_warned=yes ;;
10204 esac
10205     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10206   fi
10207 else
10208   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10209 fi
10210
10211 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10213 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10214 if ${lt_cv_path_mainfest_tool+:} false; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   lt_cv_path_mainfest_tool=no
10218   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10219   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10220   cat conftest.err >&5
10221   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10222     lt_cv_path_mainfest_tool=yes
10223   fi
10224   rm -f conftest*
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10227 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10228 if test yes != "$lt_cv_path_mainfest_tool"; then
10229   MANIFEST_TOOL=:
10230 fi
10231
10232
10233
10234
10235
10236
10237   case $host_os in
10238     rhapsody* | darwin*)
10239     if test -n "$ac_tool_prefix"; then
10240   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10241 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   if test -n "$DSYMUTIL"; then
10248   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10252 do
10253   IFS=$as_save_IFS
10254   test -z "$as_dir" && as_dir=.
10255     for ac_exec_ext in '' $ac_executable_extensions; do
10256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259     break 2
10260   fi
10261 done
10262   done
10263 IFS=$as_save_IFS
10264
10265 fi
10266 fi
10267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10268 if test -n "$DSYMUTIL"; then
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10270 $as_echo "$DSYMUTIL" >&6; }
10271 else
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274 fi
10275
10276
10277 fi
10278 if test -z "$ac_cv_prog_DSYMUTIL"; then
10279   ac_ct_DSYMUTIL=$DSYMUTIL
10280   # Extract the first word of "dsymutil", so it can be a program name with args.
10281 set dummy dsymutil; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   if test -n "$ac_ct_DSYMUTIL"; then
10288   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10289 else
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10292 do
10293   IFS=$as_save_IFS
10294   test -z "$as_dir" && as_dir=.
10295     for ac_exec_ext in '' $ac_executable_extensions; do
10296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10297     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299     break 2
10300   fi
10301 done
10302   done
10303 IFS=$as_save_IFS
10304
10305 fi
10306 fi
10307 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10308 if test -n "$ac_ct_DSYMUTIL"; then
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10310 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315
10316   if test "x$ac_ct_DSYMUTIL" = x; then
10317     DSYMUTIL=":"
10318   else
10319     case $cross_compiling:$ac_tool_warned in
10320 yes:)
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10323 ac_tool_warned=yes ;;
10324 esac
10325     DSYMUTIL=$ac_ct_DSYMUTIL
10326   fi
10327 else
10328   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10329 fi
10330
10331     if test -n "$ac_tool_prefix"; then
10332   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10333 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_NMEDIT+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   if test -n "$NMEDIT"; then
10340   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345   IFS=$as_save_IFS
10346   test -z "$as_dir" && as_dir=.
10347     for ac_exec_ext in '' $ac_executable_extensions; do
10348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351     break 2
10352   fi
10353 done
10354   done
10355 IFS=$as_save_IFS
10356
10357 fi
10358 fi
10359 NMEDIT=$ac_cv_prog_NMEDIT
10360 if test -n "$NMEDIT"; then
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10362 $as_echo "$NMEDIT" >&6; }
10363 else
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369 fi
10370 if test -z "$ac_cv_prog_NMEDIT"; then
10371   ac_ct_NMEDIT=$NMEDIT
10372   # Extract the first word of "nmedit", so it can be a program name with args.
10373 set dummy nmedit; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10377   $as_echo_n "(cached) " >&6
10378 else
10379   if test -n "$ac_ct_NMEDIT"; then
10380   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10381 else
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10384 do
10385   IFS=$as_save_IFS
10386   test -z "$as_dir" && as_dir=.
10387     for ac_exec_ext in '' $ac_executable_extensions; do
10388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10389     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391     break 2
10392   fi
10393 done
10394   done
10395 IFS=$as_save_IFS
10396
10397 fi
10398 fi
10399 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10400 if test -n "$ac_ct_NMEDIT"; then
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10402 $as_echo "$ac_ct_NMEDIT" >&6; }
10403 else
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10406 fi
10407
10408   if test "x$ac_ct_NMEDIT" = x; then
10409     NMEDIT=":"
10410   else
10411     case $cross_compiling:$ac_tool_warned in
10412 yes:)
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10415 ac_tool_warned=yes ;;
10416 esac
10417     NMEDIT=$ac_ct_NMEDIT
10418   fi
10419 else
10420   NMEDIT="$ac_cv_prog_NMEDIT"
10421 fi
10422
10423     if test -n "$ac_tool_prefix"; then
10424   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10425 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427 $as_echo_n "checking for $ac_word... " >&6; }
10428 if ${ac_cv_prog_LIPO+:} false; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431   if test -n "$LIPO"; then
10432   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10433 else
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437   IFS=$as_save_IFS
10438   test -z "$as_dir" && as_dir=.
10439     for ac_exec_ext in '' $ac_executable_extensions; do
10440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443     break 2
10444   fi
10445 done
10446   done
10447 IFS=$as_save_IFS
10448
10449 fi
10450 fi
10451 LIPO=$ac_cv_prog_LIPO
10452 if test -n "$LIPO"; then
10453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10454 $as_echo "$LIPO" >&6; }
10455 else
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; }
10458 fi
10459
10460
10461 fi
10462 if test -z "$ac_cv_prog_LIPO"; then
10463   ac_ct_LIPO=$LIPO
10464   # Extract the first word of "lipo", so it can be a program name with args.
10465 set dummy lipo; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10469   $as_echo_n "(cached) " >&6
10470 else
10471   if test -n "$ac_ct_LIPO"; then
10472   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10473 else
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10476 do
10477   IFS=$as_save_IFS
10478   test -z "$as_dir" && as_dir=.
10479     for ac_exec_ext in '' $ac_executable_extensions; do
10480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481     ac_cv_prog_ac_ct_LIPO="lipo"
10482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483     break 2
10484   fi
10485 done
10486   done
10487 IFS=$as_save_IFS
10488
10489 fi
10490 fi
10491 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10492 if test -n "$ac_ct_LIPO"; then
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10494 $as_echo "$ac_ct_LIPO" >&6; }
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499
10500   if test "x$ac_ct_LIPO" = x; then
10501     LIPO=":"
10502   else
10503     case $cross_compiling:$ac_tool_warned in
10504 yes:)
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10507 ac_tool_warned=yes ;;
10508 esac
10509     LIPO=$ac_ct_LIPO
10510   fi
10511 else
10512   LIPO="$ac_cv_prog_LIPO"
10513 fi
10514
10515     if test -n "$ac_tool_prefix"; then
10516   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10517 set dummy ${ac_tool_prefix}otool; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_OTOOL+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   if test -n "$OTOOL"; then
10524   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529   IFS=$as_save_IFS
10530   test -z "$as_dir" && as_dir=.
10531     for ac_exec_ext in '' $ac_executable_extensions; do
10532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535     break 2
10536   fi
10537 done
10538   done
10539 IFS=$as_save_IFS
10540
10541 fi
10542 fi
10543 OTOOL=$ac_cv_prog_OTOOL
10544 if test -n "$OTOOL"; then
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10546 $as_echo "$OTOOL" >&6; }
10547 else
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552
10553 fi
10554 if test -z "$ac_cv_prog_OTOOL"; then
10555   ac_ct_OTOOL=$OTOOL
10556   # Extract the first word of "otool", so it can be a program name with args.
10557 set dummy otool; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10561   $as_echo_n "(cached) " >&6
10562 else
10563   if test -n "$ac_ct_OTOOL"; then
10564   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10565 else
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10568 do
10569   IFS=$as_save_IFS
10570   test -z "$as_dir" && as_dir=.
10571     for ac_exec_ext in '' $ac_executable_extensions; do
10572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573     ac_cv_prog_ac_ct_OTOOL="otool"
10574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575     break 2
10576   fi
10577 done
10578   done
10579 IFS=$as_save_IFS
10580
10581 fi
10582 fi
10583 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10584 if test -n "$ac_ct_OTOOL"; then
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10586 $as_echo "$ac_ct_OTOOL" >&6; }
10587 else
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10590 fi
10591
10592   if test "x$ac_ct_OTOOL" = x; then
10593     OTOOL=":"
10594   else
10595     case $cross_compiling:$ac_tool_warned in
10596 yes:)
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10599 ac_tool_warned=yes ;;
10600 esac
10601     OTOOL=$ac_ct_OTOOL
10602   fi
10603 else
10604   OTOOL="$ac_cv_prog_OTOOL"
10605 fi
10606
10607     if test -n "$ac_tool_prefix"; then
10608   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10609 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if ${ac_cv_prog_OTOOL64+:} false; then :
10613   $as_echo_n "(cached) " >&6
10614 else
10615   if test -n "$OTOOL64"; then
10616   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10617 else
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621   IFS=$as_save_IFS
10622   test -z "$as_dir" && as_dir=.
10623     for ac_exec_ext in '' $ac_executable_extensions; do
10624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627     break 2
10628   fi
10629 done
10630   done
10631 IFS=$as_save_IFS
10632
10633 fi
10634 fi
10635 OTOOL64=$ac_cv_prog_OTOOL64
10636 if test -n "$OTOOL64"; then
10637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10638 $as_echo "$OTOOL64" >&6; }
10639 else
10640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10642 fi
10643
10644
10645 fi
10646 if test -z "$ac_cv_prog_OTOOL64"; then
10647   ac_ct_OTOOL64=$OTOOL64
10648   # Extract the first word of "otool64", so it can be a program name with args.
10649 set dummy otool64; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   if test -n "$ac_ct_OTOOL64"; then
10656   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10657 else
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10660 do
10661   IFS=$as_save_IFS
10662   test -z "$as_dir" && as_dir=.
10663     for ac_exec_ext in '' $ac_executable_extensions; do
10664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665     ac_cv_prog_ac_ct_OTOOL64="otool64"
10666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667     break 2
10668   fi
10669 done
10670   done
10671 IFS=$as_save_IFS
10672
10673 fi
10674 fi
10675 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10676 if test -n "$ac_ct_OTOOL64"; then
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10678 $as_echo "$ac_ct_OTOOL64" >&6; }
10679 else
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683
10684   if test "x$ac_ct_OTOOL64" = x; then
10685     OTOOL64=":"
10686   else
10687     case $cross_compiling:$ac_tool_warned in
10688 yes:)
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10691 ac_tool_warned=yes ;;
10692 esac
10693     OTOOL64=$ac_ct_OTOOL64
10694   fi
10695 else
10696   OTOOL64="$ac_cv_prog_OTOOL64"
10697 fi
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10726 $as_echo_n "checking for -single_module linker flag... " >&6; }
10727 if ${lt_cv_apple_cc_single_mod+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   lt_cv_apple_cc_single_mod=no
10731       if test -z "$LT_MULTI_MODULE"; then
10732         # By default we will add the -single_module flag. You can override
10733         # by either setting the environment variable LT_MULTI_MODULE
10734         # non-empty at configure time, or by adding -multi_module to the
10735         # link flags.
10736         rm -rf libconftest.dylib*
10737         echo "int foo(void){return 1;}" > conftest.c
10738         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10739 -dynamiclib -Wl,-single_module conftest.c" >&5
10740         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10741           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10742         _lt_result=$?
10743         # If there is a non-empty error log, and "single_module"
10744         # appears in it, assume the flag caused a linker warning
10745         if test -s conftest.err && $GREP single_module conftest.err; then
10746           cat conftest.err >&5
10747         # Otherwise, if the output was created with a 0 exit code from
10748         # the compiler, it worked.
10749         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10750           lt_cv_apple_cc_single_mod=yes
10751         else
10752           cat conftest.err >&5
10753         fi
10754         rm -rf libconftest.dylib*
10755         rm -f conftest.*
10756       fi
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10760
10761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10762 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10763 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   lt_cv_ld_exported_symbols_list=no
10767       save_LDFLAGS=$LDFLAGS
10768       echo "_main" > conftest.sym
10769       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 int main (void)
10774 {
10775
10776  ;
10777  return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781   lt_cv_ld_exported_symbols_list=yes
10782 else
10783   lt_cv_ld_exported_symbols_list=no
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787         LDFLAGS=$save_LDFLAGS
10788
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10792
10793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10794 $as_echo_n "checking for -force_load linker flag... " >&6; }
10795 if ${lt_cv_ld_force_load+:} false; then :
10796   $as_echo_n "(cached) " >&6
10797 else
10798   lt_cv_ld_force_load=no
10799       cat > conftest.c << _LT_EOF
10800 int forced_loaded() { return 2;}
10801 _LT_EOF
10802       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10803       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10804       echo "$AR cr libconftest.a conftest.o" >&5
10805       $AR cr libconftest.a conftest.o 2>&5
10806       echo "$RANLIB libconftest.a" >&5
10807       $RANLIB libconftest.a 2>&5
10808       cat > conftest.c << _LT_EOF
10809 int main() { return 0;}
10810 _LT_EOF
10811       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10812       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10813       _lt_result=$?
10814       if test -s conftest.err && $GREP force_load conftest.err; then
10815         cat conftest.err >&5
10816       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10817         lt_cv_ld_force_load=yes
10818       else
10819         cat conftest.err >&5
10820       fi
10821         rm -f conftest.err libconftest.a conftest conftest.c
10822         rm -rf conftest.dSYM
10823
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10826 $as_echo "$lt_cv_ld_force_load" >&6; }
10827     case $host_os in
10828     rhapsody* | darwin1.[012])
10829       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10830     darwin1.*)
10831       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10832     darwin*) # darwin 5.x on
10833       # if running on 10.5 or later, the deployment target defaults
10834       # to the OS version, if on x86, and 10.4, the deployment
10835       # target defaults to 10.4. Don't you love it?
10836       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10837         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10838           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10839         10.[012][,.]*)
10840           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10841         10.*)
10842           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10843       esac
10844     ;;
10845   esac
10846     if test yes = "$lt_cv_apple_cc_single_mod"; then
10847       _lt_dar_single_mod='$single_module'
10848     fi
10849     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10850       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10851     else
10852       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10853     fi
10854     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10855       _lt_dsymutil='~$DSYMUTIL $lib || :'
10856     else
10857       _lt_dsymutil=
10858     fi
10859     ;;
10860   esac
10861
10862 # func_munge_path_list VARIABLE PATH
10863 # -----------------------------------
10864 # VARIABLE is name of variable containing _space_ separated list of
10865 # directories to be munged by the contents of PATH, which is string
10866 # having a format:
10867 # "DIR[:DIR]:"
10868 #       string "DIR[ DIR]" will be prepended to VARIABLE
10869 # ":DIR[:DIR]"
10870 #       string "DIR[ DIR]" will be appended to VARIABLE
10871 # "DIRP[:DIRP]::[DIRA:]DIRA"
10872 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10873 #       "DIRA[ DIRA]" will be appended to VARIABLE
10874 # "DIR[:DIR]"
10875 #       VARIABLE will be replaced by "DIR[ DIR]"
10876 func_munge_path_list ()
10877 {
10878     case x$2 in
10879     x)
10880         ;;
10881     *:)
10882         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10883         ;;
10884     x:*)
10885         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10886         ;;
10887     *::*)
10888         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10889         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10890         ;;
10891     *)
10892         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10893         ;;
10894     esac
10895 }
10896
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10898 $as_echo_n "checking for ANSI C header files... " >&6; }
10899 if ${ac_cv_header_stdc+:} false; then :
10900   $as_echo_n "(cached) " >&6
10901 else
10902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h.  */
10904 #include <stdlib.h>
10905 #include <stdarg.h>
10906 #include <string.h>
10907 #include <float.h>
10908
10909 int main (void)
10910 {
10911
10912  ;
10913  return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_compile "$LINENO"; then :
10917   ac_cv_header_stdc=yes
10918 else
10919   ac_cv_header_stdc=no
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922
10923 if test $ac_cv_header_stdc = yes; then
10924   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h.  */
10927 #include <string.h>
10928
10929 _ACEOF
10930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10931   $EGREP "memchr" >/dev/null 2>&1; then :
10932
10933 else
10934   ac_cv_header_stdc=no
10935 fi
10936 rm -f conftest*
10937
10938 fi
10939
10940 if test $ac_cv_header_stdc = yes; then
10941   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h.  */
10944 #include <stdlib.h>
10945
10946 _ACEOF
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948   $EGREP "free" >/dev/null 2>&1; then :
10949
10950 else
10951   ac_cv_header_stdc=no
10952 fi
10953 rm -f conftest*
10954
10955 fi
10956
10957 if test $ac_cv_header_stdc = yes; then
10958   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10959   if test "$cross_compiling" = yes; then :
10960   :
10961 else
10962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964 #include <ctype.h>
10965 #include <stdlib.h>
10966 #if ((' ' & 0x0FF) == 0x020)
10967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10969 #else
10970 # define ISLOWER(c) \
10971                    (('a' <= (c) && (c) <= 'i') \
10972                      || ('j' <= (c) && (c) <= 'r') \
10973                      || ('s' <= (c) && (c) <= 'z'))
10974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10975 #endif
10976
10977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10978 int
10979 main ()
10980 {
10981   int i;
10982   for (i = 0; i < 256; i++)
10983     if (XOR (islower (i), ISLOWER (i))
10984         || toupper (i) != TOUPPER (i))
10985       return 2;
10986   return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_c_try_run "$LINENO"; then :
10990
10991 else
10992   ac_cv_header_stdc=no
10993 fi
10994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10995   conftest.$ac_objext conftest.beam conftest.$ac_ext
10996 fi
10997
10998 fi
10999 fi
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11001 $as_echo "$ac_cv_header_stdc" >&6; }
11002 if test $ac_cv_header_stdc = yes; then
11003
11004 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11005
11006 fi
11007
11008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11010                   inttypes.h stdint.h unistd.h
11011 do :
11012   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11014 "
11015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11016   cat >>confdefs.h <<_ACEOF
11017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11018 _ACEOF
11019
11020 fi
11021
11022 done
11023
11024
11025 for ac_header in dlfcn.h
11026 do :
11027   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11028 "
11029 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11030   cat >>confdefs.h <<_ACEOF
11031 #define HAVE_DLFCN_H 1
11032 _ACEOF
11033
11034 fi
11035
11036 done
11037
11038
11039
11040 func_stripname_cnf ()
11041 {
11042   case $2 in
11043   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11044   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11045   esac
11046 } # func_stripname_cnf
11047
11048 # ------------------------------------ #
11049 #  Determine libtool default behavior  #
11050 # ------------------------------------ #
11051
11052 #
11053 # Default behavior is to enable shared and static libraries on systems
11054 # where libtool knows how to build both library versions, and does not
11055 # require separate configuration and build runs for each flavor.
11056 #
11057
11058 xc_lt_want_enable_shared='yes'
11059 xc_lt_want_enable_static='yes'
11060
11061 #
11062 # User may have disabled shared or static libraries.
11063 #
11064 case "x$enable_shared" in # (
11065   xno)
11066     xc_lt_want_enable_shared='no'
11067     ;;
11068 esac
11069 case "x$enable_static" in # (
11070   xno)
11071     xc_lt_want_enable_static='no'
11072     ;;
11073 esac
11074 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11075   test "x$xc_lt_want_enable_static" = 'xno'; then
11076   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11077 fi
11078
11079 #
11080 # Default behavior on systems that require independent configuration
11081 # and build runs for shared and static is to enable shared libraries
11082 # and disable static ones. On these systems option '--disable-shared'
11083 # must be used in order to build a proper static library.
11084 #
11085
11086 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11087   test "x$xc_lt_want_enable_static" = 'xyes'; then
11088   case $host_os in # (
11089     mingw* | pw32* | cegcc* | os2* | aix*)
11090       xc_lt_want_enable_static='no'
11091       ;;
11092   esac
11093 fi
11094
11095 #
11096 # Make libtool aware of current shared and static library preferences
11097 # taking in account that, depending on host characteristics, libtool
11098 # may modify these option preferences later in this configure script.
11099 #
11100
11101 enable_shared=$xc_lt_want_enable_shared
11102 enable_static=$xc_lt_want_enable_static
11103
11104 #
11105 # Default behavior is to build PIC objects for shared libraries and
11106 # non-PIC objects for static libraries.
11107 #
11108
11109 xc_lt_want_with_pic='default'
11110
11111 #
11112 # User may have specified PIC preference.
11113 #
11114
11115 case "x$with_pic" in # ((
11116   xno)
11117     xc_lt_want_with_pic='no'
11118     ;;
11119   xyes)
11120     xc_lt_want_with_pic='yes'
11121     ;;
11122 esac
11123
11124 #
11125 # Default behavior on some systems where building a shared library out
11126 # of non-PIC compiled objects will fail with following linker error
11127 # "relocation R_X86_64_32 can not be used when making a shared object"
11128 # is to build PIC objects even for static libraries. This behavior may
11129 # be overriden using 'configure --disable-shared --without-pic'.
11130 #
11131
11132 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11133   case $host_cpu in # (
11134     x86_64 | amd64 | ia64)
11135       case $host_os in # (
11136         linux* | freebsd*)
11137           xc_lt_want_with_pic='yes'
11138           ;;
11139       esac
11140       ;;
11141   esac
11142 fi
11143
11144 #
11145 # Make libtool aware of current PIC preference taking in account that,
11146 # depending on host characteristics, libtool may modify PIC default
11147 # behavior to fit host system idiosyncrasies later in this script.
11148 #
11149
11150 with_pic=$xc_lt_want_with_pic
11151
11152 ## ----------------------- ##
11153 ##  Start of libtool code  ##
11154 ## ----------------------- ##
11155
11156
11157
11158
11159 # Set options
11160 enable_win32_dll=yes
11161
11162 case $host in
11163 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11164   if test -n "$ac_tool_prefix"; then
11165   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11166 set dummy ${ac_tool_prefix}as; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_prog_AS+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   if test -n "$AS"; then
11173   ac_cv_prog_AS="$AS" # Let the user override the test.
11174 else
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178   IFS=$as_save_IFS
11179   test -z "$as_dir" && as_dir=.
11180     for ac_exec_ext in '' $ac_executable_extensions; do
11181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182     ac_cv_prog_AS="${ac_tool_prefix}as"
11183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184     break 2
11185   fi
11186 done
11187   done
11188 IFS=$as_save_IFS
11189
11190 fi
11191 fi
11192 AS=$ac_cv_prog_AS
11193 if test -n "$AS"; then
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11195 $as_echo "$AS" >&6; }
11196 else
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202 fi
11203 if test -z "$ac_cv_prog_AS"; then
11204   ac_ct_AS=$AS
11205   # Extract the first word of "as", so it can be a program name with args.
11206 set dummy as; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11210   $as_echo_n "(cached) " >&6
11211 else
11212   if test -n "$ac_ct_AS"; then
11213   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11214 else
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11217 do
11218   IFS=$as_save_IFS
11219   test -z "$as_dir" && as_dir=.
11220     for ac_exec_ext in '' $ac_executable_extensions; do
11221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222     ac_cv_prog_ac_ct_AS="as"
11223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224     break 2
11225   fi
11226 done
11227   done
11228 IFS=$as_save_IFS
11229
11230 fi
11231 fi
11232 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11233 if test -n "$ac_ct_AS"; then
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11235 $as_echo "$ac_ct_AS" >&6; }
11236 else
11237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241   if test "x$ac_ct_AS" = x; then
11242     AS="false"
11243   else
11244     case $cross_compiling:$ac_tool_warned in
11245 yes:)
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11248 ac_tool_warned=yes ;;
11249 esac
11250     AS=$ac_ct_AS
11251   fi
11252 else
11253   AS="$ac_cv_prog_AS"
11254 fi
11255
11256   if test -n "$ac_tool_prefix"; then
11257   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11258 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_prog_DLLTOOL+:} false; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   if test -n "$DLLTOOL"; then
11265   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11266 else
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11269 do
11270   IFS=$as_save_IFS
11271   test -z "$as_dir" && as_dir=.
11272     for ac_exec_ext in '' $ac_executable_extensions; do
11273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276     break 2
11277   fi
11278 done
11279   done
11280 IFS=$as_save_IFS
11281
11282 fi
11283 fi
11284 DLLTOOL=$ac_cv_prog_DLLTOOL
11285 if test -n "$DLLTOOL"; then
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11287 $as_echo "$DLLTOOL" >&6; }
11288 else
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11291 fi
11292
11293
11294 fi
11295 if test -z "$ac_cv_prog_DLLTOOL"; then
11296   ac_ct_DLLTOOL=$DLLTOOL
11297   # Extract the first word of "dlltool", so it can be a program name with args.
11298 set dummy dlltool; ac_word=$2
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   if test -n "$ac_ct_DLLTOOL"; then
11305   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11306 else
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11309 do
11310   IFS=$as_save_IFS
11311   test -z "$as_dir" && as_dir=.
11312     for ac_exec_ext in '' $ac_executable_extensions; do
11313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319   done
11320 IFS=$as_save_IFS
11321
11322 fi
11323 fi
11324 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11325 if test -n "$ac_ct_DLLTOOL"; then
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11327 $as_echo "$ac_ct_DLLTOOL" >&6; }
11328 else
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11331 fi
11332
11333   if test "x$ac_ct_DLLTOOL" = x; then
11334     DLLTOOL="false"
11335   else
11336     case $cross_compiling:$ac_tool_warned in
11337 yes:)
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340 ac_tool_warned=yes ;;
11341 esac
11342     DLLTOOL=$ac_ct_DLLTOOL
11343   fi
11344 else
11345   DLLTOOL="$ac_cv_prog_DLLTOOL"
11346 fi
11347
11348   if test -n "$ac_tool_prefix"; then
11349   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11350 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if ${ac_cv_prog_OBJDUMP+:} false; then :
11354   $as_echo_n "(cached) " >&6
11355 else
11356   if test -n "$OBJDUMP"; then
11357   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11358 else
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11361 do
11362   IFS=$as_save_IFS
11363   test -z "$as_dir" && as_dir=.
11364     for ac_exec_ext in '' $ac_executable_extensions; do
11365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368     break 2
11369   fi
11370 done
11371   done
11372 IFS=$as_save_IFS
11373
11374 fi
11375 fi
11376 OBJDUMP=$ac_cv_prog_OBJDUMP
11377 if test -n "$OBJDUMP"; then
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11379 $as_echo "$OBJDUMP" >&6; }
11380 else
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383 fi
11384
11385
11386 fi
11387 if test -z "$ac_cv_prog_OBJDUMP"; then
11388   ac_ct_OBJDUMP=$OBJDUMP
11389   # Extract the first word of "objdump", so it can be a program name with args.
11390 set dummy objdump; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   if test -n "$ac_ct_OBJDUMP"; then
11397   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11398 else
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402   IFS=$as_save_IFS
11403   test -z "$as_dir" && as_dir=.
11404     for ac_exec_ext in '' $ac_executable_extensions; do
11405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408     break 2
11409   fi
11410 done
11411   done
11412 IFS=$as_save_IFS
11413
11414 fi
11415 fi
11416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11417 if test -n "$ac_ct_OBJDUMP"; then
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11419 $as_echo "$ac_ct_OBJDUMP" >&6; }
11420 else
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11423 fi
11424
11425   if test "x$ac_ct_OBJDUMP" = x; then
11426     OBJDUMP="false"
11427   else
11428     case $cross_compiling:$ac_tool_warned in
11429 yes:)
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11432 ac_tool_warned=yes ;;
11433 esac
11434     OBJDUMP=$ac_ct_OBJDUMP
11435   fi
11436 else
11437   OBJDUMP="$ac_cv_prog_OBJDUMP"
11438 fi
11439
11440   ;;
11441 esac
11442
11443 test -z "$AS" && AS=as
11444
11445
11446
11447
11448
11449 test -z "$DLLTOOL" && DLLTOOL=dlltool
11450
11451
11452
11453
11454
11455 test -z "$OBJDUMP" && OBJDUMP=objdump
11456
11457
11458
11459
11460
11461
11462
11463         enable_dlopen=no
11464
11465
11466
11467             # Check whether --enable-shared was given.
11468 if test "${enable_shared+set}" = set; then :
11469   enableval=$enable_shared; p=${PACKAGE-default}
11470     case $enableval in
11471     yes) enable_shared=yes ;;
11472     no) enable_shared=no ;;
11473     *)
11474       enable_shared=no
11475       # Look at the argument we got.  We use all the common list separators.
11476       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11477       for pkg in $enableval; do
11478         IFS=$lt_save_ifs
11479         if test "X$pkg" = "X$p"; then
11480           enable_shared=yes
11481         fi
11482       done
11483       IFS=$lt_save_ifs
11484       ;;
11485     esac
11486 else
11487   enable_shared=yes
11488 fi
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498   # Check whether --enable-static was given.
11499 if test "${enable_static+set}" = set; then :
11500   enableval=$enable_static; p=${PACKAGE-default}
11501     case $enableval in
11502     yes) enable_static=yes ;;
11503     no) enable_static=no ;;
11504     *)
11505      enable_static=no
11506       # Look at the argument we got.  We use all the common list separators.
11507       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11508       for pkg in $enableval; do
11509         IFS=$lt_save_ifs
11510         if test "X$pkg" = "X$p"; then
11511           enable_static=yes
11512         fi
11513       done
11514       IFS=$lt_save_ifs
11515       ;;
11516     esac
11517 else
11518   enable_static=yes
11519 fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530 # Check whether --with-pic was given.
11531 if test "${with_pic+set}" = set; then :
11532   withval=$with_pic; lt_p=${PACKAGE-default}
11533     case $withval in
11534     yes|no) pic_mode=$withval ;;
11535     *)
11536       pic_mode=default
11537       # Look at the argument we got.  We use all the common list separators.
11538       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11539       for lt_pkg in $withval; do
11540         IFS=$lt_save_ifs
11541         if test "X$lt_pkg" = "X$lt_p"; then
11542           pic_mode=yes
11543         fi
11544       done
11545       IFS=$lt_save_ifs
11546       ;;
11547     esac
11548 else
11549   pic_mode=default
11550 fi
11551
11552
11553
11554
11555
11556
11557
11558
11559   # Check whether --enable-fast-install was given.
11560 if test "${enable_fast_install+set}" = set; then :
11561   enableval=$enable_fast_install; p=${PACKAGE-default}
11562     case $enableval in
11563     yes) enable_fast_install=yes ;;
11564     no) enable_fast_install=no ;;
11565     *)
11566       enable_fast_install=no
11567       # Look at the argument we got.  We use all the common list separators.
11568       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11569       for pkg in $enableval; do
11570         IFS=$lt_save_ifs
11571         if test "X$pkg" = "X$p"; then
11572           enable_fast_install=yes
11573         fi
11574       done
11575       IFS=$lt_save_ifs
11576       ;;
11577     esac
11578 else
11579   enable_fast_install=yes
11580 fi
11581
11582
11583
11584
11585
11586
11587
11588
11589   shared_archive_member_spec=
11590 case $host,$enable_shared in
11591 power*-*-aix[5-9]*,yes)
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11593 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11594
11595 # Check whether --with-aix-soname was given.
11596 if test "${with_aix_soname+set}" = set; then :
11597   withval=$with_aix_soname; case $withval in
11598     aix|svr4|both)
11599       ;;
11600     *)
11601       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11602       ;;
11603     esac
11604     lt_cv_with_aix_soname=$with_aix_soname
11605 else
11606   if ${lt_cv_with_aix_soname+:} false; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   lt_cv_with_aix_soname=aix
11610 fi
11611
11612     with_aix_soname=$lt_cv_with_aix_soname
11613 fi
11614
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11616 $as_echo "$with_aix_soname" >&6; }
11617   if test aix != "$with_aix_soname"; then
11618     # For the AIX way of multilib, we name the shared archive member
11619     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11620     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11621     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11622     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11623     if test 64 = "${OBJECT_MODE-32}"; then
11624       shared_archive_member_spec=shr_64
11625     else
11626       shared_archive_member_spec=shr
11627     fi
11628   fi
11629   ;;
11630 *)
11631   with_aix_soname=aix
11632   ;;
11633 esac
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644 # This can be used to rebuild libtool when needed
11645 LIBTOOL_DEPS=$ltmain
11646
11647 # Always use our own libtool.
11648 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679 test -z "$LN_S" && LN_S="ln -s"
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694 if test -n "${ZSH_VERSION+set}"; then
11695    setopt NO_GLOB_SUBST
11696 fi
11697
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11699 $as_echo_n "checking for objdir... " >&6; }
11700 if ${lt_cv_objdir+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   rm -f .libs 2>/dev/null
11704 mkdir .libs 2>/dev/null
11705 if test -d .libs; then
11706   lt_cv_objdir=.libs
11707 else
11708   # MS-DOS does not allow filenames that begin with a dot.
11709   lt_cv_objdir=_libs
11710 fi
11711 rmdir .libs 2>/dev/null
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11714 $as_echo "$lt_cv_objdir" >&6; }
11715 objdir=$lt_cv_objdir
11716
11717
11718
11719
11720
11721 cat >>confdefs.h <<_ACEOF
11722 #define LT_OBJDIR "$lt_cv_objdir/"
11723 _ACEOF
11724
11725
11726
11727
11728 case $host_os in
11729 aix3*)
11730   # AIX sometimes has problems with the GCC collect2 program.  For some
11731   # reason, if we set the COLLECT_NAMES environment variable, the problems
11732   # vanish in a puff of smoke.
11733   if test set != "${COLLECT_NAMES+set}"; then
11734     COLLECT_NAMES=
11735     export COLLECT_NAMES
11736   fi
11737   ;;
11738 esac
11739
11740 # Global variables:
11741 ofile=libtool
11742 can_build_shared=yes
11743
11744 # All known linkers require a '.a' archive for static linking (except MSVC,
11745 # which needs '.lib').
11746 libext=a
11747
11748 with_gnu_ld=$lt_cv_prog_gnu_ld
11749
11750 old_CC=$CC
11751 old_CFLAGS=$CFLAGS
11752
11753 # Set sane defaults for various variables
11754 test -z "$CC" && CC=cc
11755 test -z "$LTCC" && LTCC=$CC
11756 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11757 test -z "$LD" && LD=ld
11758 test -z "$ac_objext" && ac_objext=o
11759
11760 func_cc_basename $compiler
11761 cc_basename=$func_cc_basename_result
11762
11763
11764 # Only perform the check for file, if the check method requires it
11765 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11766 case $deplibs_check_method in
11767 file_magic*)
11768   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11770 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11771 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   case $MAGIC_CMD in
11775 [\\/*] |  ?:[\\/]*)
11776   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11777   ;;
11778 *)
11779   lt_save_MAGIC_CMD=$MAGIC_CMD
11780   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11781   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11782   for ac_dir in $ac_dummy; do
11783     IFS=$lt_save_ifs
11784     test -z "$ac_dir" && ac_dir=.
11785     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11786       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11787       if test -n "$file_magic_test_file"; then
11788         case $deplibs_check_method in
11789         "file_magic "*)
11790           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11791           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11792           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11793             $EGREP "$file_magic_regex" > /dev/null; then
11794             :
11795           else
11796             cat <<_LT_EOF 1>&2
11797
11798 *** Warning: the command libtool uses to detect shared libraries,
11799 *** $file_magic_cmd, produces output that libtool cannot recognize.
11800 *** The result is that libtool may fail to recognize shared libraries
11801 *** as such.  This will affect the creation of libtool libraries that
11802 *** depend on shared libraries, but programs linked with such libtool
11803 *** libraries will work regardless of this problem.  Nevertheless, you
11804 *** may want to report the problem to your system manager and/or to
11805 *** bug-libtool@gnu.org
11806
11807 _LT_EOF
11808           fi ;;
11809         esac
11810       fi
11811       break
11812     fi
11813   done
11814   IFS=$lt_save_ifs
11815   MAGIC_CMD=$lt_save_MAGIC_CMD
11816   ;;
11817 esac
11818 fi
11819
11820 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11821 if test -n "$MAGIC_CMD"; then
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11823 $as_echo "$MAGIC_CMD" >&6; }
11824 else
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828
11829
11830
11831
11832
11833 if test -z "$lt_cv_path_MAGIC_CMD"; then
11834   if test -n "$ac_tool_prefix"; then
11835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11836 $as_echo_n "checking for file... " >&6; }
11837 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11838   $as_echo_n "(cached) " >&6
11839 else
11840   case $MAGIC_CMD in
11841 [\\/*] |  ?:[\\/]*)
11842   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11843   ;;
11844 *)
11845   lt_save_MAGIC_CMD=$MAGIC_CMD
11846   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11847   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11848   for ac_dir in $ac_dummy; do
11849     IFS=$lt_save_ifs
11850     test -z "$ac_dir" && ac_dir=.
11851     if test -f "$ac_dir/file"; then
11852       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11853       if test -n "$file_magic_test_file"; then
11854         case $deplibs_check_method in
11855         "file_magic "*)
11856           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11857           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11858           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11859             $EGREP "$file_magic_regex" > /dev/null; then
11860             :
11861           else
11862             cat <<_LT_EOF 1>&2
11863
11864 *** Warning: the command libtool uses to detect shared libraries,
11865 *** $file_magic_cmd, produces output that libtool cannot recognize.
11866 *** The result is that libtool may fail to recognize shared libraries
11867 *** as such.  This will affect the creation of libtool libraries that
11868 *** depend on shared libraries, but programs linked with such libtool
11869 *** libraries will work regardless of this problem.  Nevertheless, you
11870 *** may want to report the problem to your system manager and/or to
11871 *** bug-libtool@gnu.org
11872
11873 _LT_EOF
11874           fi ;;
11875         esac
11876       fi
11877       break
11878     fi
11879   done
11880   IFS=$lt_save_ifs
11881   MAGIC_CMD=$lt_save_MAGIC_CMD
11882   ;;
11883 esac
11884 fi
11885
11886 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11887 if test -n "$MAGIC_CMD"; then
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11889 $as_echo "$MAGIC_CMD" >&6; }
11890 else
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893 fi
11894
11895
11896   else
11897     MAGIC_CMD=:
11898   fi
11899 fi
11900
11901   fi
11902   ;;
11903 esac
11904
11905 # Use C for the default configuration in the libtool script
11906
11907 lt_save_CC=$CC
11908 ac_ext=c
11909 ac_cpp='$CPP $CPPFLAGS'
11910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913
11914
11915 # Source file extension for C test sources.
11916 ac_ext=c
11917
11918 # Object file extension for compiled C test sources.
11919 objext=o
11920 objext=$objext
11921
11922 # Code to be used in simple compile tests
11923 lt_simple_compile_test_code="int some_variable = 0;"
11924
11925 # Code to be used in simple link tests
11926 lt_simple_link_test_code='int main(){return(0);}'
11927
11928
11929
11930
11931
11932
11933
11934 # If no C compiler was specified, use CC.
11935 LTCC=${LTCC-"$CC"}
11936
11937 # If no C compiler flags were specified, use CFLAGS.
11938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11939
11940 # Allow CC to be a program name with arguments.
11941 compiler=$CC
11942
11943 # Save the default compiler, since it gets overwritten when the other
11944 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11945 compiler_DEFAULT=$CC
11946
11947 # save warnings/boilerplate of simple test code
11948 ac_outfile=conftest.$ac_objext
11949 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11951 _lt_compiler_boilerplate=`cat conftest.err`
11952 $RM conftest*
11953
11954 ac_outfile=conftest.$ac_objext
11955 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11957 _lt_linker_boilerplate=`cat conftest.err`
11958 $RM -r conftest*
11959
11960
11961 ## CAVEAT EMPTOR:
11962 ## There is no encapsulation within the following macros, do not change
11963 ## the running order or otherwise move them around unless you know exactly
11964 ## what you are doing...
11965 if test -n "$compiler"; then
11966
11967 lt_prog_compiler_no_builtin_flag=
11968
11969 if test yes = "$GCC"; then
11970   case $cc_basename in
11971   nvcc*)
11972     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11973   *)
11974     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11975   esac
11976
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11978 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11979 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   lt_cv_prog_compiler_rtti_exceptions=no
11983    ac_outfile=conftest.$ac_objext
11984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11985    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11986    # Insert the option either (1) after the last *FLAGS variable, or
11987    # (2) before a word containing "conftest.", or (3) at the end.
11988    # Note that $ac_compile itself does not contain backslashes and begins
11989    # with a dollar sign (not a hyphen), so the echo should work correctly.
11990    # The option is referenced via a variable to avoid confusing sed.
11991    lt_compile=`echo "$ac_compile" | $SED \
11992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11994    -e 's:$: $lt_compiler_flag:'`
11995    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11996    (eval "$lt_compile" 2>conftest.err)
11997    ac_status=$?
11998    cat conftest.err >&5
11999    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000    if (exit $ac_status) && test -s "$ac_outfile"; then
12001      # The compiler can only warn and ignore the option if not recognized
12002      # So say no if there are warnings other than the usual output.
12003      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12006        lt_cv_prog_compiler_rtti_exceptions=yes
12007      fi
12008    fi
12009    $RM conftest*
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12013 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12014
12015 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12016     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12017 else
12018     :
12019 fi
12020
12021 fi
12022
12023
12024
12025
12026
12027
12028   lt_prog_compiler_wl=
12029 lt_prog_compiler_pic=
12030 lt_prog_compiler_static=
12031
12032
12033   if test yes = "$GCC"; then
12034     lt_prog_compiler_wl='-Wl,'
12035     lt_prog_compiler_static='-static'
12036
12037     case $host_os in
12038       aix*)
12039       # All AIX code is PIC.
12040       if test ia64 = "$host_cpu"; then
12041         # AIX 5 now supports IA64 processor
12042         lt_prog_compiler_static='-Bstatic'
12043       fi
12044       lt_prog_compiler_pic='-fPIC'
12045       ;;
12046
12047     amigaos*)
12048       case $host_cpu in
12049       powerpc)
12050             # see comment about AmigaOS4 .so support
12051             lt_prog_compiler_pic='-fPIC'
12052         ;;
12053       m68k)
12054             # FIXME: we need at least 68020 code to build shared libraries, but
12055             # adding the '-m68020' flag to GCC prevents building anything better,
12056             # like '-m68040'.
12057             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12058         ;;
12059       esac
12060       ;;
12061
12062     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12063       # PIC is the default for these OSes.
12064       ;;
12065
12066     mingw* | cygwin* | pw32* | os2* | cegcc*)
12067       # This hack is so that the source file can tell whether it is being
12068       # built for inclusion in a dll (and should export symbols for example).
12069       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12070       # (--disable-auto-import) libraries
12071       lt_prog_compiler_pic='-DDLL_EXPORT'
12072       case $host_os in
12073       os2*)
12074         lt_prog_compiler_static='$wl-static'
12075         ;;
12076       esac
12077       ;;
12078
12079     darwin* | rhapsody*)
12080       # PIC is the default on this platform
12081       # Common symbols not allowed in MH_DYLIB files
12082       lt_prog_compiler_pic='-fno-common'
12083       ;;
12084
12085     haiku*)
12086       # PIC is the default for Haiku.
12087       # The "-static" flag exists, but is broken.
12088       lt_prog_compiler_static=
12089       ;;
12090
12091     hpux*)
12092       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12093       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12094       # sets the default TLS model and affects inlining.
12095       case $host_cpu in
12096       hppa*64*)
12097         # +Z the default
12098         ;;
12099       *)
12100         lt_prog_compiler_pic='-fPIC'
12101         ;;
12102       esac
12103       ;;
12104
12105     interix[3-9]*)
12106       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12107       # Instead, we relocate shared libraries at runtime.
12108       ;;
12109
12110     msdosdjgpp*)
12111       # Just because we use GCC doesn't mean we suddenly get shared libraries
12112       # on systems that don't support them.
12113       lt_prog_compiler_can_build_shared=no
12114       enable_shared=no
12115       ;;
12116
12117     *nto* | *qnx*)
12118       # QNX uses GNU C++, but need to define -shared option too, otherwise
12119       # it will coredump.
12120       lt_prog_compiler_pic='-fPIC -shared'
12121       ;;
12122
12123     sysv4*MP*)
12124       if test -d /usr/nec; then
12125         lt_prog_compiler_pic=-Kconform_pic
12126       fi
12127       ;;
12128
12129     *)
12130       lt_prog_compiler_pic='-fPIC'
12131       ;;
12132     esac
12133
12134     case $cc_basename in
12135     nvcc*) # Cuda Compiler Driver 2.2
12136       lt_prog_compiler_wl='-Xlinker '
12137       if test -n "$lt_prog_compiler_pic"; then
12138         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12139       fi
12140       ;;
12141     esac
12142   else
12143     # PORTME Check for flag to pass linker flags through the system compiler.
12144     case $host_os in
12145     aix*)
12146       lt_prog_compiler_wl='-Wl,'
12147       if test ia64 = "$host_cpu"; then
12148         # AIX 5 now supports IA64 processor
12149         lt_prog_compiler_static='-Bstatic'
12150       else
12151         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12152       fi
12153       ;;
12154
12155     darwin* | rhapsody*)
12156       # PIC is the default on this platform
12157       # Common symbols not allowed in MH_DYLIB files
12158       lt_prog_compiler_pic='-fno-common'
12159       case $cc_basename in
12160       nagfor*)
12161         # NAG Fortran compiler
12162         lt_prog_compiler_wl='-Wl,-Wl,,'
12163         lt_prog_compiler_pic='-PIC'
12164         lt_prog_compiler_static='-Bstatic'
12165         ;;
12166       esac
12167       ;;
12168
12169     mingw* | cygwin* | pw32* | os2* | cegcc*)
12170       # This hack is so that the source file can tell whether it is being
12171       # built for inclusion in a dll (and should export symbols for example).
12172       lt_prog_compiler_pic='-DDLL_EXPORT'
12173       case $host_os in
12174       os2*)
12175         lt_prog_compiler_static='$wl-static'
12176         ;;
12177       esac
12178       ;;
12179
12180     hpux9* | hpux10* | hpux11*)
12181       lt_prog_compiler_wl='-Wl,'
12182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12183       # not for PA HP-UX.
12184       case $host_cpu in
12185       hppa*64*|ia64*)
12186         # +Z the default
12187         ;;
12188       *)
12189         lt_prog_compiler_pic='+Z'
12190         ;;
12191       esac
12192       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12193       lt_prog_compiler_static='$wl-a ${wl}archive'
12194       ;;
12195
12196     irix5* | irix6* | nonstopux*)
12197       lt_prog_compiler_wl='-Wl,'
12198       # PIC (with -KPIC) is the default.
12199       lt_prog_compiler_static='-non_shared'
12200       ;;
12201
12202     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12203       case $cc_basename in
12204       # old Intel for x86_64, which still supported -KPIC.
12205       ecc*)
12206         lt_prog_compiler_wl='-Wl,'
12207         lt_prog_compiler_pic='-KPIC'
12208         lt_prog_compiler_static='-static'
12209         ;;
12210       # flang / f18. f95 an alias for gfortran or flang on Debian
12211       flang* | f18* | f95*)
12212         lt_prog_compiler_wl='-Wl,'
12213         lt_prog_compiler_pic='-fPIC'
12214         lt_prog_compiler_static='-static'
12215         ;;
12216       # icc used to be incompatible with GCC.
12217       # ICC 10 doesn't accept -KPIC any more.
12218       icc* | ifort*)
12219         lt_prog_compiler_wl='-Wl,'
12220         lt_prog_compiler_pic='-fPIC'
12221         lt_prog_compiler_static='-static'
12222         ;;
12223       # Lahey Fortran 8.1.
12224       lf95*)
12225         lt_prog_compiler_wl='-Wl,'
12226         lt_prog_compiler_pic='--shared'
12227         lt_prog_compiler_static='--static'
12228         ;;
12229       nagfor*)
12230         # NAG Fortran compiler
12231         lt_prog_compiler_wl='-Wl,-Wl,,'
12232         lt_prog_compiler_pic='-PIC'
12233         lt_prog_compiler_static='-Bstatic'
12234         ;;
12235       tcc*)
12236         # Fabrice Bellard et al's Tiny C Compiler
12237         lt_prog_compiler_wl='-Wl,'
12238         lt_prog_compiler_pic='-fPIC'
12239         lt_prog_compiler_static='-static'
12240         ;;
12241       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242         # Portland Group compilers (*not* the Pentium gcc compiler,
12243         # which looks to be a dead project)
12244         lt_prog_compiler_wl='-Wl,'
12245         lt_prog_compiler_pic='-fpic'
12246         lt_prog_compiler_static='-Bstatic'
12247         ;;
12248       ccc*)
12249         lt_prog_compiler_wl='-Wl,'
12250         # All Alpha code is PIC.
12251         lt_prog_compiler_static='-non_shared'
12252         ;;
12253       xl* | bgxl* | bgf* | mpixl*)
12254         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255         lt_prog_compiler_wl='-Wl,'
12256         lt_prog_compiler_pic='-qpic'
12257         lt_prog_compiler_static='-qstaticlink'
12258         ;;
12259       *)
12260         case `$CC -V 2>&1 | sed 5q` in
12261         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12262           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12263           lt_prog_compiler_pic='-KPIC'
12264           lt_prog_compiler_static='-Bstatic'
12265           lt_prog_compiler_wl=''
12266           ;;
12267         *Sun\ F* | *Sun*Fortran*)
12268           lt_prog_compiler_pic='-KPIC'
12269           lt_prog_compiler_static='-Bstatic'
12270           lt_prog_compiler_wl='-Qoption ld '
12271           ;;
12272         *Sun\ C*)
12273           # Sun C 5.9
12274           lt_prog_compiler_pic='-KPIC'
12275           lt_prog_compiler_static='-Bstatic'
12276           lt_prog_compiler_wl='-Wl,'
12277           ;;
12278         *Intel*\ [CF]*Compiler*)
12279           lt_prog_compiler_wl='-Wl,'
12280           lt_prog_compiler_pic='-fPIC'
12281           lt_prog_compiler_static='-static'
12282           ;;
12283         *Portland\ Group*)
12284           lt_prog_compiler_wl='-Wl,'
12285           lt_prog_compiler_pic='-fpic'
12286           lt_prog_compiler_static='-Bstatic'
12287           ;;
12288         esac
12289         ;;
12290       esac
12291       ;;
12292
12293     newsos6)
12294       lt_prog_compiler_pic='-KPIC'
12295       lt_prog_compiler_static='-Bstatic'
12296       ;;
12297
12298     *nto* | *qnx*)
12299       # QNX uses GNU C++, but need to define -shared option too, otherwise
12300       # it will coredump.
12301       lt_prog_compiler_pic='-fPIC -shared'
12302       ;;
12303
12304     osf3* | osf4* | osf5*)
12305       lt_prog_compiler_wl='-Wl,'
12306       # All OSF/1 code is PIC.
12307       lt_prog_compiler_static='-non_shared'
12308       ;;
12309
12310     rdos*)
12311       lt_prog_compiler_static='-non_shared'
12312       ;;
12313
12314     solaris*)
12315       lt_prog_compiler_pic='-KPIC'
12316       lt_prog_compiler_static='-Bstatic'
12317       case $cc_basename in
12318       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12319         lt_prog_compiler_wl='-Qoption ld ';;
12320       *)
12321         lt_prog_compiler_wl='-Wl,';;
12322       esac
12323       ;;
12324
12325     sunos4*)
12326       lt_prog_compiler_wl='-Qoption ld '
12327       lt_prog_compiler_pic='-PIC'
12328       lt_prog_compiler_static='-Bstatic'
12329       ;;
12330
12331     sysv4 | sysv4.2uw2* | sysv4.3*)
12332       lt_prog_compiler_wl='-Wl,'
12333       lt_prog_compiler_pic='-KPIC'
12334       lt_prog_compiler_static='-Bstatic'
12335       ;;
12336
12337     sysv4*MP*)
12338       if test -d /usr/nec; then
12339         lt_prog_compiler_pic='-Kconform_pic'
12340         lt_prog_compiler_static='-Bstatic'
12341       fi
12342       ;;
12343
12344     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12345       lt_prog_compiler_wl='-Wl,'
12346       lt_prog_compiler_pic='-KPIC'
12347       lt_prog_compiler_static='-Bstatic'
12348       ;;
12349
12350     unicos*)
12351       lt_prog_compiler_wl='-Wl,'
12352       lt_prog_compiler_can_build_shared=no
12353       ;;
12354
12355     uts4*)
12356       lt_prog_compiler_pic='-pic'
12357       lt_prog_compiler_static='-Bstatic'
12358       ;;
12359
12360     *)
12361       lt_prog_compiler_can_build_shared=no
12362       ;;
12363     esac
12364   fi
12365
12366 case $host_os in
12367   # For platforms that do not support PIC, -DPIC is meaningless:
12368   *djgpp*)
12369     lt_prog_compiler_pic=
12370     ;;
12371   *)
12372     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12373     ;;
12374 esac
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12377 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12378 if ${lt_cv_prog_compiler_pic+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12384 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12385 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12386
12387 #
12388 # Check to make sure the PIC flag actually works.
12389 #
12390 if test -n "$lt_prog_compiler_pic"; then
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12393 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   lt_cv_prog_compiler_pic_works=no
12397    ac_outfile=conftest.$ac_objext
12398    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12399    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12400    # Insert the option either (1) after the last *FLAGS variable, or
12401    # (2) before a word containing "conftest.", or (3) at the end.
12402    # Note that $ac_compile itself does not contain backslashes and begins
12403    # with a dollar sign (not a hyphen), so the echo should work correctly.
12404    # The option is referenced via a variable to avoid confusing sed.
12405    lt_compile=`echo "$ac_compile" | $SED \
12406    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12407    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12408    -e 's:$: $lt_compiler_flag:'`
12409    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12410    (eval "$lt_compile" 2>conftest.err)
12411    ac_status=$?
12412    cat conftest.err >&5
12413    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414    if (exit $ac_status) && test -s "$ac_outfile"; then
12415      # The compiler can only warn and ignore the option if not recognized
12416      # So say no if there are warnings other than the usual output.
12417      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12418      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12419      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12420        lt_cv_prog_compiler_pic_works=yes
12421      fi
12422    fi
12423    $RM conftest*
12424
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12427 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12428
12429 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12430     case $lt_prog_compiler_pic in
12431      "" | " "*) ;;
12432      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12433      esac
12434 else
12435     lt_prog_compiler_pic=
12436      lt_prog_compiler_can_build_shared=no
12437 fi
12438
12439 fi
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451 #
12452 # Check to make sure the static flag actually works.
12453 #
12454 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12456 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12457 if ${lt_cv_prog_compiler_static_works+:} false; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460   lt_cv_prog_compiler_static_works=no
12461    save_LDFLAGS=$LDFLAGS
12462    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12463    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12464    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12465      # The linker can only warn and ignore the option if not recognized
12466      # So say no if there are warnings
12467      if test -s conftest.err; then
12468        # Append any errors to the config.log.
12469        cat conftest.err 1>&5
12470        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12471        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12472        if diff conftest.exp conftest.er2 >/dev/null; then
12473          lt_cv_prog_compiler_static_works=yes
12474        fi
12475      else
12476        lt_cv_prog_compiler_static_works=yes
12477      fi
12478    fi
12479    $RM -r conftest*
12480    LDFLAGS=$save_LDFLAGS
12481
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12484 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12485
12486 if test yes = "$lt_cv_prog_compiler_static_works"; then
12487     :
12488 else
12489     lt_prog_compiler_static=
12490 fi
12491
12492
12493
12494
12495
12496
12497
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12500 if ${lt_cv_prog_compiler_c_o+:} false; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   lt_cv_prog_compiler_c_o=no
12504    $RM -r conftest 2>/dev/null
12505    mkdir conftest
12506    cd conftest
12507    mkdir out
12508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12509
12510    lt_compiler_flag="-o out/conftest2.$ac_objext"
12511    # Insert the option either (1) after the last *FLAGS variable, or
12512    # (2) before a word containing "conftest.", or (3) at the end.
12513    # Note that $ac_compile itself does not contain backslashes and begins
12514    # with a dollar sign (not a hyphen), so the echo should work correctly.
12515    lt_compile=`echo "$ac_compile" | $SED \
12516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518    -e 's:$: $lt_compiler_flag:'`
12519    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12520    (eval "$lt_compile" 2>out/conftest.err)
12521    ac_status=$?
12522    cat out/conftest.err >&5
12523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12525    then
12526      # The compiler can only warn and ignore the option if not recognized
12527      # So say no if there are warnings
12528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12529      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12530      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12531        lt_cv_prog_compiler_c_o=yes
12532      fi
12533    fi
12534    chmod u+w . 2>&5
12535    $RM conftest*
12536    # SGI C++ compiler will create directory out/ii_files/ for
12537    # template instantiation
12538    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12539    $RM out/* && rmdir out
12540    cd ..
12541    $RM -r conftest
12542    $RM conftest*
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12546 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12547
12548
12549
12550
12551
12552
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12555 if ${lt_cv_prog_compiler_c_o+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   lt_cv_prog_compiler_c_o=no
12559    $RM -r conftest 2>/dev/null
12560    mkdir conftest
12561    cd conftest
12562    mkdir out
12563    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12564
12565    lt_compiler_flag="-o out/conftest2.$ac_objext"
12566    # Insert the option either (1) after the last *FLAGS variable, or
12567    # (2) before a word containing "conftest.", or (3) at the end.
12568    # Note that $ac_compile itself does not contain backslashes and begins
12569    # with a dollar sign (not a hyphen), so the echo should work correctly.
12570    lt_compile=`echo "$ac_compile" | $SED \
12571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573    -e 's:$: $lt_compiler_flag:'`
12574    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12575    (eval "$lt_compile" 2>out/conftest.err)
12576    ac_status=$?
12577    cat out/conftest.err >&5
12578    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12580    then
12581      # The compiler can only warn and ignore the option if not recognized
12582      # So say no if there are warnings
12583      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12584      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12585      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12586        lt_cv_prog_compiler_c_o=yes
12587      fi
12588    fi
12589    chmod u+w . 2>&5
12590    $RM conftest*
12591    # SGI C++ compiler will create directory out/ii_files/ for
12592    # template instantiation
12593    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12594    $RM out/* && rmdir out
12595    cd ..
12596    $RM -r conftest
12597    $RM conftest*
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12601 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12602
12603
12604
12605
12606 hard_links=nottested
12607 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12608   # do not overwrite the value of need_locks provided by the user
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12610 $as_echo_n "checking if we can lock with hard links... " >&6; }
12611   hard_links=yes
12612   $RM conftest*
12613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12614   touch conftest.a
12615   ln conftest.a conftest.b 2>&5 || hard_links=no
12616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12618 $as_echo "$hard_links" >&6; }
12619   if test no = "$hard_links"; then
12620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12621 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12622     need_locks=warn
12623   fi
12624 else
12625   need_locks=no
12626 fi
12627
12628
12629
12630
12631
12632
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12634 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12635
12636   runpath_var=
12637   allow_undefined_flag=
12638   always_export_symbols=no
12639   archive_cmds=
12640   archive_expsym_cmds=
12641   compiler_needs_object=no
12642   enable_shared_with_static_runtimes=no
12643   export_dynamic_flag_spec=
12644   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12645   hardcode_automatic=no
12646   hardcode_direct=no
12647   hardcode_direct_absolute=no
12648   hardcode_libdir_flag_spec=
12649   hardcode_libdir_separator=
12650   hardcode_minus_L=no
12651   hardcode_shlibpath_var=unsupported
12652   inherit_rpath=no
12653   link_all_deplibs=unknown
12654   module_cmds=
12655   module_expsym_cmds=
12656   old_archive_from_new_cmds=
12657   old_archive_from_expsyms_cmds=
12658   thread_safe_flag_spec=
12659   whole_archive_flag_spec=
12660   # include_expsyms should be a list of space-separated symbols to be *always*
12661   # included in the symbol list
12662   include_expsyms=
12663   # exclude_expsyms can be an extended regexp of symbols to exclude
12664   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12665   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12666   # as well as any symbol that contains 'd'.
12667   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12668   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12669   # platforms (ab)use it in PIC code, but their linkers get confused if
12670   # the symbol is explicitly referenced.  Since portable code cannot
12671   # rely on this symbol name, it's probably fine to never include it in
12672   # preloaded symbol tables.
12673   # Exclude shared library initialization/finalization symbols.
12674   extract_expsyms_cmds=
12675
12676   case $host_os in
12677   cygwin* | mingw* | pw32* | cegcc*)
12678     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12679     # When not using gcc, we currently assume that we are using
12680     # Microsoft Visual C++.
12681     if test yes != "$GCC"; then
12682       with_gnu_ld=no
12683     fi
12684     ;;
12685   interix*)
12686     # we just hope/assume this is gcc and not c89 (= MSVC++)
12687     with_gnu_ld=yes
12688     ;;
12689   openbsd* | bitrig*)
12690     with_gnu_ld=no
12691     ;;
12692   linux* | k*bsd*-gnu | gnu*)
12693     link_all_deplibs=no
12694     ;;
12695   esac
12696
12697   ld_shlibs=yes
12698
12699   # On some targets, GNU ld is compatible enough with the native linker
12700   # that we're better off using the native interface for both.
12701   lt_use_gnu_ld_interface=no
12702   if test yes = "$with_gnu_ld"; then
12703     case $host_os in
12704       aix*)
12705         # The AIX port of GNU ld has always aspired to compatibility
12706         # with the native linker.  However, as the warning in the GNU ld
12707         # block says, versions before 2.19.5* couldn't really create working
12708         # shared libraries, regardless of the interface used.
12709         case `$LD -v 2>&1` in
12710           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12711           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12712           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12713           *)
12714             lt_use_gnu_ld_interface=yes
12715             ;;
12716         esac
12717         ;;
12718       *)
12719         lt_use_gnu_ld_interface=yes
12720         ;;
12721     esac
12722   fi
12723
12724   if test yes = "$lt_use_gnu_ld_interface"; then
12725     # If archive_cmds runs LD, not CC, wlarc should be empty
12726     wlarc='$wl'
12727
12728     # Set some defaults for GNU ld with shared library support. These
12729     # are reset later if shared libraries are not supported. Putting them
12730     # here allows them to be overridden if necessary.
12731     runpath_var=LD_RUN_PATH
12732     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12733     export_dynamic_flag_spec='$wl--export-dynamic'
12734     # ancient GNU ld didn't support --whole-archive et. al.
12735     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12736       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12737     else
12738       whole_archive_flag_spec=
12739     fi
12740     supports_anon_versioning=no
12741     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12742       *GNU\ gold*) supports_anon_versioning=yes ;;
12743       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12744       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12745       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12746       *\ 2.11.*) ;; # other 2.11 versions
12747       *) supports_anon_versioning=yes ;;
12748     esac
12749
12750     # See if GNU ld supports shared libraries.
12751     case $host_os in
12752     aix[3-9]*)
12753       # On AIX/PPC, the GNU linker is very broken
12754       if test ia64 != "$host_cpu"; then
12755         ld_shlibs=no
12756         cat <<_LT_EOF 1>&2
12757
12758 *** Warning: the GNU linker, at least up to release 2.19, is reported
12759 *** to be unable to reliably create shared libraries on AIX.
12760 *** Therefore, libtool is disabling shared libraries support.  If you
12761 *** really care for shared libraries, you may want to install binutils
12762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12763 *** You will then need to restart the configuration process.
12764
12765 _LT_EOF
12766       fi
12767       ;;
12768
12769     amigaos*)
12770       case $host_cpu in
12771       powerpc)
12772             # see comment about AmigaOS4 .so support
12773             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12774             archive_expsym_cmds=''
12775         ;;
12776       m68k)
12777             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)'
12778             hardcode_libdir_flag_spec='-L$libdir'
12779             hardcode_minus_L=yes
12780         ;;
12781       esac
12782       ;;
12783
12784     beos*)
12785       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12786         allow_undefined_flag=unsupported
12787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788         # support --undefined.  This deserves some investigation.  FIXME
12789         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12790       else
12791         ld_shlibs=no
12792       fi
12793       ;;
12794
12795     cygwin* | mingw* | pw32* | cegcc*)
12796       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12797       # as there is no search path for DLLs.
12798       hardcode_libdir_flag_spec='-L$libdir'
12799       export_dynamic_flag_spec='$wl--export-all-symbols'
12800       allow_undefined_flag=unsupported
12801       always_export_symbols=no
12802       enable_shared_with_static_runtimes=yes
12803       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'
12804       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12805
12806       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12807         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12808         # If the export-symbols file already is a .def file, use it as
12809         # is; otherwise, prepend EXPORTS...
12810         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12811           cp $export_symbols $output_objdir/$soname.def;
12812         else
12813           echo EXPORTS > $output_objdir/$soname.def;
12814           cat $export_symbols >> $output_objdir/$soname.def;
12815         fi~
12816         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12817       else
12818         ld_shlibs=no
12819       fi
12820       ;;
12821
12822     haiku*)
12823       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12824       link_all_deplibs=yes
12825       ;;
12826
12827     os2*)
12828       hardcode_libdir_flag_spec='-L$libdir'
12829       hardcode_minus_L=yes
12830       allow_undefined_flag=unsupported
12831       shrext_cmds=.dll
12832       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12833         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12834         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12835         $ECHO EXPORTS >> $output_objdir/$libname.def~
12836         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12837         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12838         emximp -o $lib $output_objdir/$libname.def'
12839       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12840         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12841         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12842         $ECHO EXPORTS >> $output_objdir/$libname.def~
12843         prefix_cmds="$SED"~
12844         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12845           prefix_cmds="$prefix_cmds -e 1d";
12846         fi~
12847         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12848         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12849         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12850         emximp -o $lib $output_objdir/$libname.def'
12851       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12852       enable_shared_with_static_runtimes=yes
12853       ;;
12854
12855     interix[3-9]*)
12856       hardcode_direct=no
12857       hardcode_shlibpath_var=no
12858       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12859       export_dynamic_flag_spec='$wl-E'
12860       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861       # Instead, shared libraries are loaded at an image base (0x10000000 by
12862       # default) and relocated if they conflict, which is a slow very memory
12863       # consuming and fragmenting process.  To avoid this, we pick a random,
12864       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12866       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12867       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'
12868       ;;
12869
12870     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12871       tmp_diet=no
12872       if test linux-dietlibc = "$host_os"; then
12873         case $cc_basename in
12874           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12875         esac
12876       fi
12877       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12878          && test no = "$tmp_diet"
12879       then
12880         tmp_addflag=' $pic_flag'
12881         tmp_sharedflag='-shared'
12882         case $cc_basename,$host_cpu in
12883         pgcc*)                          # Portland Group C compiler
12884           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'
12885           tmp_addflag=' $pic_flag'
12886           ;;
12887         pgf77* | pgf90* | pgf95* | pgfortran*)
12888                                         # Portland Group f77 and f90 compilers
12889           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'
12890           tmp_addflag=' $pic_flag -Mnomain' ;;
12891         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12892           tmp_addflag=' -i_dynamic' ;;
12893         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12894           tmp_addflag=' -i_dynamic -nofor_main' ;;
12895         ifc* | ifort*)                  # Intel Fortran compiler
12896           tmp_addflag=' -nofor_main' ;;
12897         lf95*)                          # Lahey Fortran 8.1
12898           whole_archive_flag_spec=
12899           tmp_sharedflag='--shared' ;;
12900         nagfor*)                        # NAGFOR 5.3
12901           tmp_sharedflag='-Wl,-shared' ;;
12902         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12903           tmp_sharedflag='-qmkshrobj'
12904           tmp_addflag= ;;
12905         nvcc*)  # Cuda Compiler Driver 2.2
12906           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'
12907           compiler_needs_object=yes
12908           ;;
12909         esac
12910         case `$CC -V 2>&1 | sed 5q` in
12911         *Sun\ C*)                       # Sun C 5.9
12912           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'
12913           compiler_needs_object=yes
12914           tmp_sharedflag='-G' ;;
12915         *Sun\ F*)                       # Sun Fortran 8.3
12916           tmp_sharedflag='-G' ;;
12917         esac
12918         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12919
12920         if test yes = "$supports_anon_versioning"; then
12921           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12922             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12923             echo "local: *; };" >> $output_objdir/$libname.ver~
12924             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12925         fi
12926
12927         case $cc_basename in
12928         tcc*)
12929           export_dynamic_flag_spec='-rdynamic'
12930           ;;
12931         xlf* | bgf* | bgxlf* | mpixlf*)
12932           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12933           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12934           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12935           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12936           if test yes = "$supports_anon_versioning"; then
12937             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12938               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939               echo "local: *; };" >> $output_objdir/$libname.ver~
12940               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12941           fi
12942           ;;
12943         esac
12944       else
12945         ld_shlibs=no
12946       fi
12947       ;;
12948
12949     netbsd* | netbsdelf*-gnu)
12950       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12951         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12952         wlarc=
12953       else
12954         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12955         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12956       fi
12957       ;;
12958
12959     solaris*)
12960       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12961         ld_shlibs=no
12962         cat <<_LT_EOF 1>&2
12963
12964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965 *** create shared libraries on Solaris systems.  Therefore, libtool
12966 *** is disabling shared libraries support.  We urge you to upgrade GNU
12967 *** binutils to release 2.9.1 or newer.  Another option is to modify
12968 *** your PATH or compiler configuration so that the native linker is
12969 *** used, and then restart.
12970
12971 _LT_EOF
12972       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12973         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12974         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12975       else
12976         ld_shlibs=no
12977       fi
12978       ;;
12979
12980     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12981       case `$LD -v 2>&1` in
12982         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12983         ld_shlibs=no
12984         cat <<_LT_EOF 1>&2
12985
12986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12987 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12988 *** is disabling shared libraries support.  We urge you to upgrade GNU
12989 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12990 *** your PATH or compiler configuration so that the native linker is
12991 *** used, and then restart.
12992
12993 _LT_EOF
12994         ;;
12995         *)
12996           # For security reasons, it is highly recommended that you always
12997           # use absolute paths for naming shared libraries, and exclude the
12998           # DT_RUNPATH tag from executables and libraries.  But doing so
12999           # requires that you compile everything twice, which is a pain.
13000           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13001             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13002             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13003             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13004           else
13005             ld_shlibs=no
13006           fi
13007         ;;
13008       esac
13009       ;;
13010
13011     sunos4*)
13012       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013       wlarc=
13014       hardcode_direct=yes
13015       hardcode_shlibpath_var=no
13016       ;;
13017
13018     *)
13019       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13020         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13021         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13022       else
13023         ld_shlibs=no
13024       fi
13025       ;;
13026     esac
13027
13028     if test no = "$ld_shlibs"; then
13029       runpath_var=
13030       hardcode_libdir_flag_spec=
13031       export_dynamic_flag_spec=
13032       whole_archive_flag_spec=
13033     fi
13034   else
13035     # PORTME fill in a description of your system's linker (not GNU ld)
13036     case $host_os in
13037     aix3*)
13038       allow_undefined_flag=unsupported
13039       always_export_symbols=yes
13040       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'
13041       # Note: this linker hardcodes the directories in LIBPATH if there
13042       # are no directories specified by -L.
13043       hardcode_minus_L=yes
13044       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13045         # Neither direct hardcoding nor static linking is supported with a
13046         # broken collect2.
13047         hardcode_direct=unsupported
13048       fi
13049       ;;
13050
13051     aix[4-9]*)
13052       if test ia64 = "$host_cpu"; then
13053         # On IA64, the linker does run time linking by default, so we don't
13054         # have to do anything special.
13055         aix_use_runtimelinking=no
13056         exp_sym_flag='-Bexport'
13057         no_entry_flag=
13058       else
13059         # If we're using GNU nm, then we don't want the "-C" option.
13060         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13061         # Without the "-l" option, or with the "-B" option, AIX nm treats
13062         # weak defined symbols like other global defined symbols, whereas
13063         # GNU nm marks them as "W".
13064         # While the 'weak' keyword is ignored in the Export File, we need
13065         # it in the Import File for the 'aix-soname' feature, so we have
13066         # to replace the "-B" option with "-P" for AIX nm.
13067         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13068           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'
13069         else
13070           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'
13071         fi
13072         aix_use_runtimelinking=no
13073
13074         # Test if we are trying to use run time linking or normal
13075         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13076         # have runtime linking enabled, and use it for executables.
13077         # For shared libraries, we enable/disable runtime linking
13078         # depending on the kind of the shared library created -
13079         # when "with_aix_soname,aix_use_runtimelinking" is:
13080         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13081         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13082         #            lib.a           static archive
13083         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13084         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13085         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13086         #            lib.a(lib.so.V) shared, rtl:no
13087         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13088         #            lib.a           static archive
13089         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13090           for ld_flag in $LDFLAGS; do
13091           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13092             aix_use_runtimelinking=yes
13093             break
13094           fi
13095           done
13096           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13097             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13098             # so we don't have lib.a shared libs to link our executables.
13099             # We have to force runtime linking in this case.
13100             aix_use_runtimelinking=yes
13101             LDFLAGS="$LDFLAGS -Wl,-brtl"
13102           fi
13103           ;;
13104         esac
13105
13106         exp_sym_flag='-bexport'
13107         no_entry_flag='-bnoentry'
13108       fi
13109
13110       # When large executables or shared objects are built, AIX ld can
13111       # have problems creating the table of contents.  If linking a library
13112       # or program results in "error TOC overflow" add -mminimal-toc to
13113       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13114       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13115
13116       archive_cmds=''
13117       hardcode_direct=yes
13118       hardcode_direct_absolute=yes
13119       hardcode_libdir_separator=':'
13120       link_all_deplibs=yes
13121       file_list_spec='$wl-f,'
13122       case $with_aix_soname,$aix_use_runtimelinking in
13123       aix,*) ;; # traditional, no import file
13124       svr4,* | *,yes) # use import file
13125         # The Import File defines what to hardcode.
13126         hardcode_direct=no
13127         hardcode_direct_absolute=no
13128         ;;
13129       esac
13130
13131       if test yes = "$GCC"; then
13132         case $host_os in aix4.[012]|aix4.[012].*)
13133         # We only want to do this on AIX 4.2 and lower, the check
13134         # below for broken collect2 doesn't work under 4.3+
13135           collect2name=`$CC -print-prog-name=collect2`
13136           if test -f "$collect2name" &&
13137            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13138           then
13139           # We have reworked collect2
13140           :
13141           else
13142           # We have old collect2
13143           hardcode_direct=unsupported
13144           # It fails to find uninstalled libraries when the uninstalled
13145           # path is not listed in the libpath.  Setting hardcode_minus_L
13146           # to unsupported forces relinking
13147           hardcode_minus_L=yes
13148           hardcode_libdir_flag_spec='-L$libdir'
13149           hardcode_libdir_separator=
13150           fi
13151           ;;
13152         esac
13153         shared_flag='-shared'
13154         if test yes = "$aix_use_runtimelinking"; then
13155           shared_flag="$shared_flag "'$wl-G'
13156         fi
13157         # Need to ensure runtime linking is disabled for the traditional
13158         # shared library, or the linker may eventually find shared libraries
13159         # /with/ Import File - we do not want to mix them.
13160         shared_flag_aix='-shared'
13161         shared_flag_svr4='-shared $wl-G'
13162       else
13163         # not using gcc
13164         if test ia64 = "$host_cpu"; then
13165         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13166         # chokes on -Wl,-G. The following line is correct:
13167           shared_flag='-G'
13168         else
13169           if test yes = "$aix_use_runtimelinking"; then
13170             shared_flag='$wl-G'
13171           else
13172             shared_flag='$wl-bM:SRE'
13173           fi
13174           shared_flag_aix='$wl-bM:SRE'
13175           shared_flag_svr4='$wl-G'
13176         fi
13177       fi
13178
13179       export_dynamic_flag_spec='$wl-bexpall'
13180       # It seems that -bexpall does not export symbols beginning with
13181       # underscore (_), so it is better to generate a list of symbols to export.
13182       always_export_symbols=yes
13183       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13184         # Warning - without using the other runtime loading flags (-brtl),
13185         # -berok will link without error, but may produce a broken library.
13186         allow_undefined_flag='-berok'
13187         # Determine the default libpath from the value encoded in an
13188         # empty executable.
13189         if test set = "${lt_cv_aix_libpath+set}"; then
13190   aix_libpath=$lt_cv_aix_libpath
13191 else
13192   if ${lt_cv_aix_libpath_+:} false; then :
13193   $as_echo_n "(cached) " >&6
13194 else
13195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197
13198 int main (void)
13199 {
13200
13201  ;
13202  return 0;
13203 }
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206
13207   lt_aix_libpath_sed='
13208       /Import File Strings/,/^$/ {
13209           /^0/ {
13210               s/^0  *\([^ ]*\) *$/\1/
13211               p
13212           }
13213       }'
13214   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215   # Check for a 64-bit object if we didn't find anything.
13216   if test -z "$lt_cv_aix_libpath_"; then
13217     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13218   fi
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext \
13221     conftest$ac_exeext conftest.$ac_ext
13222   if test -z "$lt_cv_aix_libpath_"; then
13223     lt_cv_aix_libpath_=/usr/lib:/lib
13224   fi
13225
13226 fi
13227
13228   aix_libpath=$lt_cv_aix_libpath_
13229 fi
13230
13231         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13232         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
13233       else
13234         if test ia64 = "$host_cpu"; then
13235           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13236           allow_undefined_flag="-z nodefs"
13237           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"
13238         else
13239          # Determine the default libpath from the value encoded in an
13240          # empty executable.
13241          if test set = "${lt_cv_aix_libpath+set}"; then
13242   aix_libpath=$lt_cv_aix_libpath
13243 else
13244   if ${lt_cv_aix_libpath_+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249
13250 int main (void)
13251 {
13252
13253  ;
13254  return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258
13259   lt_aix_libpath_sed='
13260       /Import File Strings/,/^$/ {
13261           /^0/ {
13262               s/^0  *\([^ ]*\) *$/\1/
13263               p
13264           }
13265       }'
13266   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267   # Check for a 64-bit object if we didn't find anything.
13268   if test -z "$lt_cv_aix_libpath_"; then
13269     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270   fi
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273     conftest$ac_exeext conftest.$ac_ext
13274   if test -z "$lt_cv_aix_libpath_"; then
13275     lt_cv_aix_libpath_=/usr/lib:/lib
13276   fi
13277
13278 fi
13279
13280   aix_libpath=$lt_cv_aix_libpath_
13281 fi
13282
13283          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13284           # Warning - without using the other run time loading flags,
13285           # -berok will link without error, but may produce a broken library.
13286           no_undefined_flag=' $wl-bernotok'
13287           allow_undefined_flag=' $wl-berok'
13288           if test yes = "$with_gnu_ld"; then
13289             # We only use this code for GNU lds that support --whole-archive.
13290             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13291           else
13292             # Exported symbols can be pulled into shared objects from archives
13293             whole_archive_flag_spec='$convenience'
13294           fi
13295           archive_cmds_need_lc=yes
13296           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13297           # -brtl affects multiple linker settings, -berok does not and is overridden later
13298           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13299           if test svr4 != "$with_aix_soname"; then
13300             # This is similar to how AIX traditionally builds its shared libraries.
13301             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'
13302           fi
13303           if test aix != "$with_aix_soname"; then
13304             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'
13305           else
13306             # used by -dlpreopen to get the symbols
13307             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13308           fi
13309           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13310         fi
13311       fi
13312       ;;
13313
13314     amigaos*)
13315       case $host_cpu in
13316       powerpc)
13317             # see comment about AmigaOS4 .so support
13318             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13319             archive_expsym_cmds=''
13320         ;;
13321       m68k)
13322             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)'
13323             hardcode_libdir_flag_spec='-L$libdir'
13324             hardcode_minus_L=yes
13325         ;;
13326       esac
13327       ;;
13328
13329     bsdi[45]*)
13330       export_dynamic_flag_spec=-rdynamic
13331       ;;
13332
13333     cygwin* | mingw* | pw32* | cegcc*)
13334       # When not using gcc, we currently assume that we are using
13335       # Microsoft Visual C++.
13336       # hardcode_libdir_flag_spec is actually meaningless, as there is
13337       # no search path for DLLs.
13338       case $cc_basename in
13339       cl*)
13340         # Native MSVC
13341         hardcode_libdir_flag_spec=' '
13342         allow_undefined_flag=unsupported
13343         always_export_symbols=yes
13344         file_list_spec='@'
13345         # Tell ltmain to make .lib files, not .a files.
13346         libext=lib
13347         # Tell ltmain to make .dll files, not .so files.
13348         shrext_cmds=.dll
13349         # FIXME: Setting linknames here is a bad hack.
13350         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13351         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13352             cp "$export_symbols" "$output_objdir/$soname.def";
13353             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13354           else
13355             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13356           fi~
13357           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13358           linknames='
13359         # The linker will not automatically build a static lib if we build a DLL.
13360         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13361         enable_shared_with_static_runtimes=yes
13362         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13363         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13364         # Don't use ranlib
13365         old_postinstall_cmds='chmod 644 $oldlib'
13366         postlink_cmds='lt_outputfile="@OUTPUT@"~
13367           lt_tool_outputfile="@TOOL_OUTPUT@"~
13368           case $lt_outputfile in
13369             *.exe|*.EXE) ;;
13370             *)
13371               lt_outputfile=$lt_outputfile.exe
13372               lt_tool_outputfile=$lt_tool_outputfile.exe
13373               ;;
13374           esac~
13375           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13376             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13377             $RM "$lt_outputfile.manifest";
13378           fi'
13379         ;;
13380       *)
13381         # Assume MSVC wrapper
13382         hardcode_libdir_flag_spec=' '
13383         allow_undefined_flag=unsupported
13384         # Tell ltmain to make .lib files, not .a files.
13385         libext=lib
13386         # Tell ltmain to make .dll files, not .so files.
13387         shrext_cmds=.dll
13388         # FIXME: Setting linknames here is a bad hack.
13389         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13390         # The linker will automatically build a .lib file if we build a DLL.
13391         old_archive_from_new_cmds='true'
13392         # FIXME: Should let the user specify the lib program.
13393         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13394         enable_shared_with_static_runtimes=yes
13395         ;;
13396       esac
13397       ;;
13398
13399     darwin* | rhapsody*)
13400
13401
13402   archive_cmds_need_lc=no
13403   hardcode_direct=no
13404   hardcode_automatic=yes
13405   hardcode_shlibpath_var=unsupported
13406   if test yes = "$lt_cv_ld_force_load"; then
13407     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\"`'
13408
13409   else
13410     whole_archive_flag_spec=''
13411   fi
13412   link_all_deplibs=yes
13413   allow_undefined_flag=$_lt_dar_allow_undefined
13414   case $cc_basename in
13415      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13416      *) _lt_dar_can_shared=$GCC ;;
13417   esac
13418   if test yes = "$_lt_dar_can_shared"; then
13419     output_verbose_link_cmd=func_echo_all
13420     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13421     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13422     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"
13423     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"
13424
13425   else
13426   ld_shlibs=no
13427   fi
13428
13429       ;;
13430
13431     dgux*)
13432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433       hardcode_libdir_flag_spec='-L$libdir'
13434       hardcode_shlibpath_var=no
13435       ;;
13436
13437     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13438     # support.  Future versions do this automatically, but an explicit c++rt0.o
13439     # does not break anything, and helps significantly (at the cost of a little
13440     # extra space).
13441     freebsd2.2*)
13442       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13443       hardcode_libdir_flag_spec='-R$libdir'
13444       hardcode_direct=yes
13445       hardcode_shlibpath_var=no
13446       ;;
13447
13448     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13449     freebsd2.*)
13450       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13451       hardcode_direct=yes
13452       hardcode_minus_L=yes
13453       hardcode_shlibpath_var=no
13454       ;;
13455
13456     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13457     freebsd* | dragonfly*)
13458       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13459       hardcode_libdir_flag_spec='-R$libdir'
13460       hardcode_direct=yes
13461       hardcode_shlibpath_var=no
13462       ;;
13463
13464     hpux9*)
13465       if test yes = "$GCC"; then
13466         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 $output_objdir/$soname $lib'
13467       else
13468         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 $output_objdir/$soname $lib'
13469       fi
13470       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13471       hardcode_libdir_separator=:
13472       hardcode_direct=yes
13473
13474       # hardcode_minus_L: Not really in the search PATH,
13475       # but as the default location of the library.
13476       hardcode_minus_L=yes
13477       export_dynamic_flag_spec='$wl-E'
13478       ;;
13479
13480     hpux10*)
13481       if test yes,no = "$GCC,$with_gnu_ld"; then
13482         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13483       else
13484         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13485       fi
13486       if test no = "$with_gnu_ld"; then
13487         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13488         hardcode_libdir_separator=:
13489         hardcode_direct=yes
13490         hardcode_direct_absolute=yes
13491         export_dynamic_flag_spec='$wl-E'
13492         # hardcode_minus_L: Not really in the search PATH,
13493         # but as the default location of the library.
13494         hardcode_minus_L=yes
13495       fi
13496       ;;
13497
13498     hpux11*)
13499       if test yes,no = "$GCC,$with_gnu_ld"; then
13500         case $host_cpu in
13501         hppa*64*)
13502           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13503           ;;
13504         ia64*)
13505           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13506           ;;
13507         *)
13508           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13509           ;;
13510         esac
13511       else
13512         case $host_cpu in
13513         hppa*64*)
13514           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13515           ;;
13516         ia64*)
13517           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13518           ;;
13519         *)
13520
13521           # Older versions of the 11.00 compiler do not understand -b yet
13522           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13524 $as_echo_n "checking if $CC understands -b... " >&6; }
13525 if ${lt_cv_prog_compiler__b+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   lt_cv_prog_compiler__b=no
13529    save_LDFLAGS=$LDFLAGS
13530    LDFLAGS="$LDFLAGS -b"
13531    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13532    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13533      # The linker can only warn and ignore the option if not recognized
13534      # So say no if there are warnings
13535      if test -s conftest.err; then
13536        # Append any errors to the config.log.
13537        cat conftest.err 1>&5
13538        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13539        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540        if diff conftest.exp conftest.er2 >/dev/null; then
13541          lt_cv_prog_compiler__b=yes
13542        fi
13543      else
13544        lt_cv_prog_compiler__b=yes
13545      fi
13546    fi
13547    $RM -r conftest*
13548    LDFLAGS=$save_LDFLAGS
13549
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13552 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13553
13554 if test yes = "$lt_cv_prog_compiler__b"; then
13555     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13556 else
13557     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13558 fi
13559
13560           ;;
13561         esac
13562       fi
13563       if test no = "$with_gnu_ld"; then
13564         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13565         hardcode_libdir_separator=:
13566
13567         case $host_cpu in
13568         hppa*64*|ia64*)
13569           hardcode_direct=no
13570           hardcode_shlibpath_var=no
13571           ;;
13572         *)
13573           hardcode_direct=yes
13574           hardcode_direct_absolute=yes
13575           export_dynamic_flag_spec='$wl-E'
13576
13577           # hardcode_minus_L: Not really in the search PATH,
13578           # but as the default location of the library.
13579           hardcode_minus_L=yes
13580           ;;
13581         esac
13582       fi
13583       ;;
13584
13585     irix5* | irix6* | nonstopux*)
13586       if test yes = "$GCC"; then
13587         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'
13588         # Try to use the -exported_symbol ld option, if it does not
13589         # work, assume that -exports_file does not work either and
13590         # implicitly export all symbols.
13591         # This should be the same for all languages, so no per-tag cache variable.
13592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13593 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13594 if ${lt_cv_irix_exported_symbol+:} false; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   save_LDFLAGS=$LDFLAGS
13598            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13599            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h.  */
13601 int foo (void) { return 0; }
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"; then :
13604   lt_cv_irix_exported_symbol=yes
13605 else
13606   lt_cv_irix_exported_symbol=no
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext \
13609     conftest$ac_exeext conftest.$ac_ext
13610            LDFLAGS=$save_LDFLAGS
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13613 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13614         if test yes = "$lt_cv_irix_exported_symbol"; then
13615           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'
13616         fi
13617         link_all_deplibs=no
13618       else
13619         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'
13620         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'
13621       fi
13622       archive_cmds_need_lc='no'
13623       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13624       hardcode_libdir_separator=:
13625       inherit_rpath=yes
13626       link_all_deplibs=yes
13627       ;;
13628
13629     linux*)
13630       case $cc_basename in
13631       tcc*)
13632         # Fabrice Bellard et al's Tiny C Compiler
13633         ld_shlibs=yes
13634         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13635         ;;
13636       esac
13637       ;;
13638
13639     netbsd* | netbsdelf*-gnu)
13640       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13641         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13642       else
13643         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13644       fi
13645       hardcode_libdir_flag_spec='-R$libdir'
13646       hardcode_direct=yes
13647       hardcode_shlibpath_var=no
13648       ;;
13649
13650     newsos6)
13651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652       hardcode_direct=yes
13653       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13654       hardcode_libdir_separator=:
13655       hardcode_shlibpath_var=no
13656       ;;
13657
13658     *nto* | *qnx*)
13659       ;;
13660
13661     openbsd* | bitrig*)
13662       if test -f /usr/libexec/ld.so; then
13663         hardcode_direct=yes
13664         hardcode_shlibpath_var=no
13665         hardcode_direct_absolute=yes
13666         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13667           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13668           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13669           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13670           export_dynamic_flag_spec='$wl-E'
13671         else
13672           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13673           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13674         fi
13675       else
13676         ld_shlibs=no
13677       fi
13678       ;;
13679
13680     os2*)
13681       hardcode_libdir_flag_spec='-L$libdir'
13682       hardcode_minus_L=yes
13683       allow_undefined_flag=unsupported
13684       shrext_cmds=.dll
13685       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13686         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13687         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13688         $ECHO EXPORTS >> $output_objdir/$libname.def~
13689         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13690         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13691         emximp -o $lib $output_objdir/$libname.def'
13692       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13693         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13694         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13695         $ECHO EXPORTS >> $output_objdir/$libname.def~
13696         prefix_cmds="$SED"~
13697         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13698           prefix_cmds="$prefix_cmds -e 1d";
13699         fi~
13700         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13701         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13702         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13703         emximp -o $lib $output_objdir/$libname.def'
13704       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13705       enable_shared_with_static_runtimes=yes
13706       ;;
13707
13708     osf3*)
13709       if test yes = "$GCC"; then
13710         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13711         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'
13712       else
13713         allow_undefined_flag=' -expect_unresolved \*'
13714         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'
13715       fi
13716       archive_cmds_need_lc='no'
13717       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13718       hardcode_libdir_separator=:
13719       ;;
13720
13721     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13722       if test yes = "$GCC"; then
13723         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13724         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'
13725         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13726       else
13727         allow_undefined_flag=' -expect_unresolved \*'
13728         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'
13729         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~
13730           $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'
13731
13732         # Both c and cxx compiler support -rpath directly
13733         hardcode_libdir_flag_spec='-rpath $libdir'
13734       fi
13735       archive_cmds_need_lc='no'
13736       hardcode_libdir_separator=:
13737       ;;
13738
13739     solaris*)
13740       no_undefined_flag=' -z defs'
13741       if test yes = "$GCC"; then
13742         wlarc='$wl'
13743         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13744         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745           $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'
13746       else
13747         case `$CC -V 2>&1` in
13748         *"Compilers 5.0"*)
13749           wlarc=''
13750           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13752             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13753           ;;
13754         *)
13755           wlarc='$wl'
13756           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13757           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13758             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13759           ;;
13760         esac
13761       fi
13762       hardcode_libdir_flag_spec='-R$libdir'
13763       hardcode_shlibpath_var=no
13764       case $host_os in
13765       solaris2.[0-5] | solaris2.[0-5].*) ;;
13766       *)
13767         # The compiler driver will combine and reorder linker options,
13768         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13769         # but is careful enough not to reorder.
13770         # Supported since Solaris 2.6 (maybe 2.5.1?)
13771         if test yes = "$GCC"; then
13772           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13773         else
13774           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13775         fi
13776         ;;
13777       esac
13778       link_all_deplibs=yes
13779       ;;
13780
13781     sunos4*)
13782       if test sequent = "$host_vendor"; then
13783         # Use $CC to link under sequent, because it throws in some extra .o
13784         # files that make .init and .fini sections work.
13785         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13786       else
13787         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13788       fi
13789       hardcode_libdir_flag_spec='-L$libdir'
13790       hardcode_direct=yes
13791       hardcode_minus_L=yes
13792       hardcode_shlibpath_var=no
13793       ;;
13794
13795     sysv4)
13796       case $host_vendor in
13797         sni)
13798           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799           hardcode_direct=yes # is this really true???
13800         ;;
13801         siemens)
13802           ## LD is ld it makes a PLAMLIB
13803           ## CC just makes a GrossModule.
13804           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13805           reload_cmds='$CC -r -o $output$reload_objs'
13806           hardcode_direct=no
13807         ;;
13808         motorola)
13809           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13811         ;;
13812       esac
13813       runpath_var='LD_RUN_PATH'
13814       hardcode_shlibpath_var=no
13815       ;;
13816
13817     sysv4.3*)
13818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819       hardcode_shlibpath_var=no
13820       export_dynamic_flag_spec='-Bexport'
13821       ;;
13822
13823     sysv4*MP*)
13824       if test -d /usr/nec; then
13825         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13826         hardcode_shlibpath_var=no
13827         runpath_var=LD_RUN_PATH
13828         hardcode_runpath_var=yes
13829         ld_shlibs=yes
13830       fi
13831       ;;
13832
13833     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13834       no_undefined_flag='$wl-z,text'
13835       archive_cmds_need_lc=no
13836       hardcode_shlibpath_var=no
13837       runpath_var='LD_RUN_PATH'
13838
13839       if test yes = "$GCC"; then
13840         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842       else
13843         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845       fi
13846       ;;
13847
13848     sysv5* | sco3.2v5* | sco5v6*)
13849       # Note: We CANNOT use -z defs as we might desire, because we do not
13850       # link with -lc, and that would cause any symbols used from libc to
13851       # always be unresolved, which means just about no library would
13852       # ever link correctly.  If we're not using GNU ld we use -z text
13853       # though, which does catch some bad symbols but isn't as heavy-handed
13854       # as -z defs.
13855       no_undefined_flag='$wl-z,text'
13856       allow_undefined_flag='$wl-z,nodefs'
13857       archive_cmds_need_lc=no
13858       hardcode_shlibpath_var=no
13859       hardcode_libdir_flag_spec='$wl-R,$libdir'
13860       hardcode_libdir_separator=':'
13861       link_all_deplibs=yes
13862       export_dynamic_flag_spec='$wl-Bexport'
13863       runpath_var='LD_RUN_PATH'
13864
13865       if test yes = "$GCC"; then
13866         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868       else
13869         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871       fi
13872       ;;
13873
13874     uts4*)
13875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876       hardcode_libdir_flag_spec='-L$libdir'
13877       hardcode_shlibpath_var=no
13878       ;;
13879
13880     *)
13881       ld_shlibs=no
13882       ;;
13883     esac
13884
13885     if test sni = "$host_vendor"; then
13886       case $host in
13887       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13888         export_dynamic_flag_spec='$wl-Blargedynsym'
13889         ;;
13890       esac
13891     fi
13892   fi
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13895 $as_echo "$ld_shlibs" >&6; }
13896 test no = "$ld_shlibs" && can_build_shared=no
13897
13898 with_gnu_ld=$with_gnu_ld
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914 #
13915 # Do we need to explicitly link libc?
13916 #
13917 case "x$archive_cmds_need_lc" in
13918 x|xyes)
13919   # Assume -lc should be added
13920   archive_cmds_need_lc=yes
13921
13922   if test yes,yes = "$GCC,$enable_shared"; then
13923     case $archive_cmds in
13924     *'~'*)
13925       # FIXME: we may have to deal with multi-command sequences.
13926       ;;
13927     '$CC '*)
13928       # Test whether the compiler implicitly links with -lc since on some
13929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13930       # to ld, don't add -lc before -lgcc.
13931       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13932 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13933 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   $RM conftest*
13937         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13938
13939         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13940   (eval $ac_compile) 2>&5
13941   ac_status=$?
13942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943   test $ac_status = 0; } 2>conftest.err; then
13944           soname=conftest
13945           lib=conftest
13946           libobjs=conftest.$ac_objext
13947           deplibs=
13948           wl=$lt_prog_compiler_wl
13949           pic_flag=$lt_prog_compiler_pic
13950           compiler_flags=-v
13951           linker_flags=-v
13952           verstring=
13953           output_objdir=.
13954           libname=conftest
13955           lt_save_allow_undefined_flag=$allow_undefined_flag
13956           allow_undefined_flag=
13957           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13958   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13959   ac_status=$?
13960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961   test $ac_status = 0; }
13962           then
13963             lt_cv_archive_cmds_need_lc=no
13964           else
13965             lt_cv_archive_cmds_need_lc=yes
13966           fi
13967           allow_undefined_flag=$lt_save_allow_undefined_flag
13968         else
13969           cat conftest.err 1>&5
13970         fi
13971         $RM conftest*
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13975 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13976       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13977       ;;
13978     esac
13979   fi
13980   ;;
13981 esac
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14135 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14136
14137 if test yes = "$GCC"; then
14138   case $host_os in
14139     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14140     *) lt_awk_arg='/^libraries:/' ;;
14141   esac
14142   case $host_os in
14143     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14144     *) lt_sed_strip_eq='s|=/|/|g' ;;
14145   esac
14146   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14147   case $lt_search_path_spec in
14148   *\;*)
14149     # if the path contains ";" then we assume it to be the separator
14150     # otherwise default to the standard path separator (i.e. ":") - it is
14151     # assumed that no part of a normal pathname contains ";" but that should
14152     # okay in the real world where ";" in dirpaths is itself problematic.
14153     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14154     ;;
14155   *)
14156     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14157     ;;
14158   esac
14159   # Ok, now we have the path, separated by spaces, we can step through it
14160   # and add multilib dir if necessary...
14161   lt_tmp_lt_search_path_spec=
14162   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14163   # ...but if some path component already ends with the multilib dir we assume
14164   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14165   case "$lt_multi_os_dir; $lt_search_path_spec " in
14166   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14167     lt_multi_os_dir=
14168     ;;
14169   esac
14170   for lt_sys_path in $lt_search_path_spec; do
14171     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14172       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14173     elif test -n "$lt_multi_os_dir"; then
14174       test -d "$lt_sys_path" && \
14175         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14176     fi
14177   done
14178   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14179 BEGIN {RS = " "; FS = "/|\n";} {
14180   lt_foo = "";
14181   lt_count = 0;
14182   for (lt_i = NF; lt_i > 0; lt_i--) {
14183     if ($lt_i != "" && $lt_i != ".") {
14184       if ($lt_i == "..") {
14185         lt_count++;
14186       } else {
14187         if (lt_count == 0) {
14188           lt_foo = "/" $lt_i lt_foo;
14189         } else {
14190           lt_count--;
14191         }
14192       }
14193     }
14194   }
14195   if (lt_foo != "") { lt_freq[lt_foo]++; }
14196   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14197 }'`
14198   # AWK program above erroneously prepends '/' to C:/dos/paths
14199   # for these hosts.
14200   case $host_os in
14201     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14202       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14203   esac
14204   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14205 else
14206   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14207 fi
14208 library_names_spec=
14209 libname_spec='lib$name'
14210 soname_spec=
14211 shrext_cmds=.so
14212 postinstall_cmds=
14213 postuninstall_cmds=
14214 finish_cmds=
14215 finish_eval=
14216 shlibpath_var=
14217 shlibpath_overrides_runpath=unknown
14218 version_type=none
14219 dynamic_linker="$host_os ld.so"
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14221 need_lib_prefix=unknown
14222 hardcode_into_libs=no
14223
14224 # when you set need_version to no, make sure it does not cause -set_version
14225 # flags to be left without arguments
14226 need_version=unknown
14227
14228
14229
14230 case $host_os in
14231 aix3*)
14232   version_type=linux # correct to gnu/linux during the next big refactor
14233   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14234   shlibpath_var=LIBPATH
14235
14236   # AIX 3 has no versioning support, so we append a major version to the name.
14237   soname_spec='$libname$release$shared_ext$major'
14238   ;;
14239
14240 aix[4-9]*)
14241   version_type=linux # correct to gnu/linux during the next big refactor
14242   need_lib_prefix=no
14243   need_version=no
14244   hardcode_into_libs=yes
14245   if test ia64 = "$host_cpu"; then
14246     # AIX 5 supports IA64
14247     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14248     shlibpath_var=LD_LIBRARY_PATH
14249   else
14250     # With GCC up to 2.95.x, collect2 would create an import file
14251     # for dependence libraries.  The import file would start with
14252     # the line '#! .'.  This would cause the generated library to
14253     # depend on '.', always an invalid library.  This was fixed in
14254     # development snapshots of GCC prior to 3.0.
14255     case $host_os in
14256       aix4 | aix4.[01] | aix4.[01].*)
14257       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14258            echo ' yes '
14259            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14260         :
14261       else
14262         can_build_shared=no
14263       fi
14264       ;;
14265     esac
14266     # Using Import Files as archive members, it is possible to support
14267     # filename-based versioning of shared library archives on AIX. While
14268     # this would work for both with and without runtime linking, it will
14269     # prevent static linking of such archives. So we do filename-based
14270     # shared library versioning with .so extension only, which is used
14271     # when both runtime linking and shared linking is enabled.
14272     # Unfortunately, runtime linking may impact performance, so we do
14273     # not want this to be the default eventually. Also, we use the
14274     # versioned .so libs for executables only if there is the -brtl
14275     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14276     # To allow for filename-based versioning support, we need to create
14277     # libNAME.so.V as an archive file, containing:
14278     # *) an Import File, referring to the versioned filename of the
14279     #    archive as well as the shared archive member, telling the
14280     #    bitwidth (32 or 64) of that shared object, and providing the
14281     #    list of exported symbols of that shared object, eventually
14282     #    decorated with the 'weak' keyword
14283     # *) the shared object with the F_LOADONLY flag set, to really avoid
14284     #    it being seen by the linker.
14285     # At run time we better use the real file rather than another symlink,
14286     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14287
14288     case $with_aix_soname,$aix_use_runtimelinking in
14289     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14290     # soname into executable. Probably we can add versioning support to
14291     # collect2, so additional links can be useful in future.
14292     aix,yes) # traditional libtool
14293       dynamic_linker='AIX unversionable lib.so'
14294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14295       # instead of lib<name>.a to let people know that these are not
14296       # typical AIX shared libraries.
14297       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14298       ;;
14299     aix,no) # traditional AIX only
14300       dynamic_linker='AIX lib.a(lib.so.V)'
14301       # We preserve .a as extension for shared libraries through AIX4.2
14302       # and later when we are not doing run time linking.
14303       library_names_spec='$libname$release.a $libname.a'
14304       soname_spec='$libname$release$shared_ext$major'
14305       ;;
14306     svr4,*) # full svr4 only
14307       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14308       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14309       # We do not specify a path in Import Files, so LIBPATH fires.
14310       shlibpath_overrides_runpath=yes
14311       ;;
14312     *,yes) # both, prefer svr4
14313       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14314       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14315       # unpreferred sharedlib libNAME.a needs extra handling
14316       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"'
14317       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"'
14318       # We do not specify a path in Import Files, so LIBPATH fires.
14319       shlibpath_overrides_runpath=yes
14320       ;;
14321     *,no) # both, prefer aix
14322       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14323       library_names_spec='$libname$release.a $libname.a'
14324       soname_spec='$libname$release$shared_ext$major'
14325       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14326       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)'
14327       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"'
14328       ;;
14329     esac
14330     shlibpath_var=LIBPATH
14331   fi
14332   ;;
14333
14334 amigaos*)
14335   case $host_cpu in
14336   powerpc)
14337     # Since July 2007 AmigaOS4 officially supports .so libraries.
14338     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14339     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14340     ;;
14341   m68k)
14342     library_names_spec='$libname.ixlibrary $libname.a'
14343     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14344     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'
14345     ;;
14346   esac
14347   ;;
14348
14349 beos*)
14350   library_names_spec='$libname$shared_ext'
14351   dynamic_linker="$host_os ld.so"
14352   shlibpath_var=LIBRARY_PATH
14353   ;;
14354
14355 bsdi[45]*)
14356   version_type=linux # correct to gnu/linux during the next big refactor
14357   need_version=no
14358   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14359   soname_spec='$libname$release$shared_ext$major'
14360   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14361   shlibpath_var=LD_LIBRARY_PATH
14362   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14363   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14364   # the default ld.so.conf also contains /usr/contrib/lib and
14365   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14366   # libtool to hard-code these into programs
14367   ;;
14368
14369 cygwin* | mingw* | pw32* | cegcc*)
14370   version_type=windows
14371   shrext_cmds=.dll
14372   need_version=no
14373   need_lib_prefix=no
14374
14375   case $GCC,$cc_basename in
14376   yes,*)
14377     # gcc
14378     library_names_spec='$libname.dll.a'
14379     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14380     postinstall_cmds='base_file=`basename \$file`~
14381       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14382       dldir=$destdir/`dirname \$dlpath`~
14383       test -d \$dldir || mkdir -p \$dldir~
14384       $install_prog $dir/$dlname \$dldir/$dlname~
14385       chmod a+x \$dldir/$dlname~
14386       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14387         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14388       fi'
14389     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14390       dlpath=$dir/\$dldll~
14391        $RM \$dlpath'
14392     shlibpath_overrides_runpath=yes
14393
14394     case $host_os in
14395     cygwin*)
14396       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14397       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14398
14399       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14400       ;;
14401     mingw* | cegcc*)
14402       # MinGW DLLs use traditional 'lib' prefix
14403       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14404       ;;
14405     pw32*)
14406       # pw32 DLLs use 'pw' prefix rather than 'lib'
14407       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14408       ;;
14409     esac
14410     dynamic_linker='Win32 ld.exe'
14411     ;;
14412
14413   *,cl*)
14414     # Native MSVC
14415     libname_spec='$name'
14416     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14417     library_names_spec='$libname.dll.lib'
14418
14419     case $build_os in
14420     mingw*)
14421       sys_lib_search_path_spec=
14422       lt_save_ifs=$IFS
14423       IFS=';'
14424       for lt_path in $LIB
14425       do
14426         IFS=$lt_save_ifs
14427         # Let DOS variable expansion print the short 8.3 style file name.
14428         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14429         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14430       done
14431       IFS=$lt_save_ifs
14432       # Convert to MSYS style.
14433       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14434       ;;
14435     cygwin*)
14436       # Convert to unix form, then to dos form, then back to unix form
14437       # but this time dos style (no spaces!) so that the unix form looks
14438       # like /cygdrive/c/PROGRA~1:/cygdr...
14439       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14440       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14441       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14442       ;;
14443     *)
14444       sys_lib_search_path_spec=$LIB
14445       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14446         # It is most probably a Windows format PATH.
14447         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14448       else
14449         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14450       fi
14451       # FIXME: find the short name or the path components, as spaces are
14452       # common. (e.g. "Program Files" -> "PROGRA~1")
14453       ;;
14454     esac
14455
14456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14457     postinstall_cmds='base_file=`basename \$file`~
14458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14459       dldir=$destdir/`dirname \$dlpath`~
14460       test -d \$dldir || mkdir -p \$dldir~
14461       $install_prog $dir/$dlname \$dldir/$dlname'
14462     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14463       dlpath=$dir/\$dldll~
14464        $RM \$dlpath'
14465     shlibpath_overrides_runpath=yes
14466     dynamic_linker='Win32 link.exe'
14467     ;;
14468
14469   *)
14470     # Assume MSVC wrapper
14471     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14472     dynamic_linker='Win32 ld.exe'
14473     ;;
14474   esac
14475   # FIXME: first we should search . and the directory the executable is in
14476   shlibpath_var=PATH
14477   ;;
14478
14479 darwin* | rhapsody*)
14480   dynamic_linker="$host_os dyld"
14481   version_type=darwin
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14485   soname_spec='$libname$release$major$shared_ext'
14486   shlibpath_overrides_runpath=yes
14487   shlibpath_var=DYLD_LIBRARY_PATH
14488   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14489
14490   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14491   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14492   ;;
14493
14494 dgux*)
14495   version_type=linux # correct to gnu/linux during the next big refactor
14496   need_lib_prefix=no
14497   need_version=no
14498   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14499   soname_spec='$libname$release$shared_ext$major'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   ;;
14502
14503 freebsd* | dragonfly*)
14504   # DragonFly does not have aout.  When/if they implement a new
14505   # versioning mechanism, adjust this.
14506   if test -x /usr/bin/objformat; then
14507     objformat=`/usr/bin/objformat`
14508   else
14509     case $host_os in
14510     freebsd[23].*) objformat=aout ;;
14511     *) objformat=elf ;;
14512     esac
14513   fi
14514   version_type=freebsd-$objformat
14515   case $version_type in
14516     freebsd-elf*)
14517       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14518       soname_spec='$libname$release$shared_ext$major'
14519       need_version=no
14520       need_lib_prefix=no
14521       ;;
14522     freebsd-*)
14523       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14524       need_version=yes
14525       ;;
14526   esac
14527   shlibpath_var=LD_LIBRARY_PATH
14528   case $host_os in
14529   freebsd2.*)
14530     shlibpath_overrides_runpath=yes
14531     ;;
14532   freebsd3.[01]* | freebsdelf3.[01]*)
14533     shlibpath_overrides_runpath=yes
14534     hardcode_into_libs=yes
14535     ;;
14536   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14537   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14538     shlibpath_overrides_runpath=no
14539     hardcode_into_libs=yes
14540     ;;
14541   *) # from 4.6 on, and DragonFly
14542     shlibpath_overrides_runpath=yes
14543     hardcode_into_libs=yes
14544     ;;
14545   esac
14546   ;;
14547
14548 haiku*)
14549   version_type=linux # correct to gnu/linux during the next big refactor
14550   need_lib_prefix=no
14551   need_version=no
14552   dynamic_linker="$host_os runtime_loader"
14553   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14554   soname_spec='$libname$release$shared_ext$major'
14555   shlibpath_var=LIBRARY_PATH
14556   shlibpath_overrides_runpath=no
14557   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14558   hardcode_into_libs=yes
14559   ;;
14560
14561 hpux9* | hpux10* | hpux11*)
14562   # Give a soname corresponding to the major version so that dld.sl refuses to
14563   # link against other versions.
14564   version_type=sunos
14565   need_lib_prefix=no
14566   need_version=no
14567   case $host_cpu in
14568   ia64*)
14569     shrext_cmds='.so'
14570     hardcode_into_libs=yes
14571     dynamic_linker="$host_os dld.so"
14572     shlibpath_var=LD_LIBRARY_PATH
14573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14574     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14575     soname_spec='$libname$release$shared_ext$major'
14576     if test 32 = "$HPUX_IA64_MODE"; then
14577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14578       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14579     else
14580       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14581       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14582     fi
14583     ;;
14584   hppa*64*)
14585     shrext_cmds='.sl'
14586     hardcode_into_libs=yes
14587     dynamic_linker="$host_os dld.sl"
14588     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14590     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14591     soname_spec='$libname$release$shared_ext$major'
14592     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14593     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14594     ;;
14595   *)
14596     shrext_cmds='.sl'
14597     dynamic_linker="$host_os dld.sl"
14598     shlibpath_var=SHLIB_PATH
14599     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14600     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601     soname_spec='$libname$release$shared_ext$major'
14602     ;;
14603   esac
14604   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14605   postinstall_cmds='chmod 555 $lib'
14606   # or fails outright, so override atomically:
14607   install_override_mode=555
14608   ;;
14609
14610 interix[3-9]*)
14611   version_type=linux # correct to gnu/linux during the next big refactor
14612   need_lib_prefix=no
14613   need_version=no
14614   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14615   soname_spec='$libname$release$shared_ext$major'
14616   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   shlibpath_overrides_runpath=no
14619   hardcode_into_libs=yes
14620   ;;
14621
14622 irix5* | irix6* | nonstopux*)
14623   case $host_os in
14624     nonstopux*) version_type=nonstopux ;;
14625     *)
14626         if test yes = "$lt_cv_prog_gnu_ld"; then
14627                 version_type=linux # correct to gnu/linux during the next big refactor
14628         else
14629                 version_type=irix
14630         fi ;;
14631   esac
14632   need_lib_prefix=no
14633   need_version=no
14634   soname_spec='$libname$release$shared_ext$major'
14635   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14636   case $host_os in
14637   irix5* | nonstopux*)
14638     libsuff= shlibsuff=
14639     ;;
14640   *)
14641     case $LD in # libtool.m4 will add one of these switches to LD
14642     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14643       libsuff= shlibsuff= libmagic=32-bit;;
14644     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14645       libsuff=32 shlibsuff=N32 libmagic=N32;;
14646     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14647       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14648     *) libsuff= shlibsuff= libmagic=never-match;;
14649     esac
14650     ;;
14651   esac
14652   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14653   shlibpath_overrides_runpath=no
14654   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14655   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 # No shared lib support for Linux oldld, aout, or coff.
14660 linux*oldld* | linux*aout* | linux*coff*)
14661   dynamic_linker=no
14662   ;;
14663
14664 linux*android*)
14665   version_type=none # Android doesn't support versioned libraries.
14666   need_lib_prefix=no
14667   need_version=no
14668   library_names_spec='$libname$release$shared_ext'
14669   soname_spec='$libname$release$shared_ext'
14670   finish_cmds=
14671   shlibpath_var=LD_LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673
14674   # This implies no fast_install, which is unacceptable.
14675   # Some rework will be needed to allow for fast_install
14676   # before this can be enabled.
14677   hardcode_into_libs=yes
14678
14679   dynamic_linker='Android linker'
14680   # Don't embed -rpath directories since the linker doesn't support them.
14681   hardcode_libdir_flag_spec='-L$libdir'
14682   ;;
14683
14684 # This must be glibc/ELF.
14685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14686   version_type=linux # correct to gnu/linux during the next big refactor
14687   need_lib_prefix=no
14688   need_version=no
14689   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14690   soname_spec='$libname$release$shared_ext$major'
14691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   shlibpath_overrides_runpath=no
14694
14695   # Some binutils ld are patched to set DT_RUNPATH
14696   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14697   $as_echo_n "(cached) " >&6
14698 else
14699   lt_cv_shlibpath_overrides_runpath=no
14700     save_LDFLAGS=$LDFLAGS
14701     save_libdir=$libdir
14702     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14703          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h.  */
14706
14707 int main (void)
14708 {
14709
14710  ;
14711  return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"; then :
14715   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14716   lt_cv_shlibpath_overrides_runpath=yes
14717 fi
14718 fi
14719 rm -f core conftest.err conftest.$ac_objext \
14720     conftest$ac_exeext conftest.$ac_ext
14721     LDFLAGS=$save_LDFLAGS
14722     libdir=$save_libdir
14723
14724 fi
14725
14726   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14727
14728   # This implies no fast_install, which is unacceptable.
14729   # Some rework will be needed to allow for fast_install
14730   # before this can be enabled.
14731   hardcode_into_libs=yes
14732
14733   # Ideally, we could use ldconfig to report *all* directores which are
14734   # searched for libraries, however this is still not possible.  Aside from not
14735   # being certain /sbin/ldconfig is available, command
14736   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14737   # even though it is searched at run-time.  Try to do the best guess by
14738   # appending ld.so.conf contents (and includes) to the search path.
14739   if test -f /etc/ld.so.conf; then
14740     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' ' '`
14741     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14742   fi
14743
14744   # We used to test for /lib/ld.so.1 and disable shared libraries on
14745   # powerpc, because MkLinux only supported shared libraries with the
14746   # GNU dynamic linker.  Since this was broken with cross compilers,
14747   # most powerpc-linux boxes support dynamic linking these days and
14748   # people can always --disable-shared, the test was removed, and we
14749   # assume the GNU/Linux dynamic linker is in use.
14750   dynamic_linker='GNU/Linux ld.so'
14751   ;;
14752
14753 netbsdelf*-gnu)
14754   version_type=linux
14755   need_lib_prefix=no
14756   need_version=no
14757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14758   soname_spec='${libname}${release}${shared_ext}$major'
14759   shlibpath_var=LD_LIBRARY_PATH
14760   shlibpath_overrides_runpath=no
14761   hardcode_into_libs=yes
14762   dynamic_linker='NetBSD ld.elf_so'
14763   ;;
14764
14765 netbsd*)
14766   version_type=sunos
14767   need_lib_prefix=no
14768   need_version=no
14769   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14770     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14771     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14772     dynamic_linker='NetBSD (a.out) ld.so'
14773   else
14774     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14775     soname_spec='$libname$release$shared_ext$major'
14776     dynamic_linker='NetBSD ld.elf_so'
14777   fi
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   hardcode_into_libs=yes
14781   ;;
14782
14783 newsos6)
14784   version_type=linux # correct to gnu/linux during the next big refactor
14785   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   shlibpath_overrides_runpath=yes
14788   ;;
14789
14790 *nto* | *qnx*)
14791   version_type=qnx
14792   need_lib_prefix=no
14793   need_version=no
14794   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14795   soname_spec='$libname$release$shared_ext$major'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   shlibpath_overrides_runpath=no
14798   hardcode_into_libs=yes
14799   dynamic_linker='ldqnx.so'
14800   ;;
14801
14802 openbsd* | bitrig*)
14803   version_type=sunos
14804   sys_lib_dlsearch_path_spec=/usr/lib
14805   need_lib_prefix=no
14806   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14807     need_version=no
14808   else
14809     need_version=yes
14810   fi
14811   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813   shlibpath_var=LD_LIBRARY_PATH
14814   shlibpath_overrides_runpath=yes
14815   ;;
14816
14817 os2*)
14818   libname_spec='$name'
14819   version_type=windows
14820   shrext_cmds=.dll
14821   need_version=no
14822   need_lib_prefix=no
14823   # OS/2 can only load a DLL with a base name of 8 characters or less.
14824   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14825     v=$($ECHO $release$versuffix | tr -d .-);
14826     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14827     $ECHO $n$v`$shared_ext'
14828   library_names_spec='${libname}_dll.$libext'
14829   dynamic_linker='OS/2 ld.exe'
14830   shlibpath_var=BEGINLIBPATH
14831   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14832   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14833   postinstall_cmds='base_file=`basename \$file`~
14834     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14835     dldir=$destdir/`dirname \$dlpath`~
14836     test -d \$dldir || mkdir -p \$dldir~
14837     $install_prog $dir/$dlname \$dldir/$dlname~
14838     chmod a+x \$dldir/$dlname~
14839     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14840       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14841     fi'
14842   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14843     dlpath=$dir/\$dldll~
14844     $RM \$dlpath'
14845   ;;
14846
14847 osf3* | osf4* | osf5*)
14848   version_type=osf
14849   need_lib_prefix=no
14850   need_version=no
14851   soname_spec='$libname$release$shared_ext$major'
14852   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14855   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14856   ;;
14857
14858 rdos*)
14859   dynamic_linker=no
14860   ;;
14861
14862 solaris*)
14863   version_type=linux # correct to gnu/linux during the next big refactor
14864   need_lib_prefix=no
14865   need_version=no
14866   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14867   soname_spec='$libname$release$shared_ext$major'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   shlibpath_overrides_runpath=yes
14870   hardcode_into_libs=yes
14871   # ldd complains unless libraries are executable
14872   postinstall_cmds='chmod +x $lib'
14873   ;;
14874
14875 sunos4*)
14876   version_type=sunos
14877   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14878   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879   shlibpath_var=LD_LIBRARY_PATH
14880   shlibpath_overrides_runpath=yes
14881   if test yes = "$with_gnu_ld"; then
14882     need_lib_prefix=no
14883   fi
14884   need_version=yes
14885   ;;
14886
14887 sysv4 | sysv4.3*)
14888   version_type=linux # correct to gnu/linux during the next big refactor
14889   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14890   soname_spec='$libname$release$shared_ext$major'
14891   shlibpath_var=LD_LIBRARY_PATH
14892   case $host_vendor in
14893     sni)
14894       shlibpath_overrides_runpath=no
14895       need_lib_prefix=no
14896       runpath_var=LD_RUN_PATH
14897       ;;
14898     siemens)
14899       need_lib_prefix=no
14900       ;;
14901     motorola)
14902       need_lib_prefix=no
14903       need_version=no
14904       shlibpath_overrides_runpath=no
14905       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14906       ;;
14907   esac
14908   ;;
14909
14910 sysv4*MP*)
14911   if test -d /usr/nec; then
14912     version_type=linux # correct to gnu/linux during the next big refactor
14913     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14914     soname_spec='$libname$shared_ext.$major'
14915     shlibpath_var=LD_LIBRARY_PATH
14916   fi
14917   ;;
14918
14919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14920   version_type=sco
14921   need_lib_prefix=no
14922   need_version=no
14923   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14924   soname_spec='$libname$release$shared_ext$major'
14925   shlibpath_var=LD_LIBRARY_PATH
14926   shlibpath_overrides_runpath=yes
14927   hardcode_into_libs=yes
14928   if test yes = "$with_gnu_ld"; then
14929     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930   else
14931     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14932     case $host_os in
14933       sco3.2v5*)
14934         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14935         ;;
14936     esac
14937   fi
14938   sys_lib_dlsearch_path_spec='/usr/lib'
14939   ;;
14940
14941 tpf*)
14942   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14943   version_type=linux # correct to gnu/linux during the next big refactor
14944   need_lib_prefix=no
14945   need_version=no
14946   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=no
14949   hardcode_into_libs=yes
14950   ;;
14951
14952 uts4*)
14953   version_type=linux # correct to gnu/linux during the next big refactor
14954   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14955   soname_spec='$libname$release$shared_ext$major'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   ;;
14958
14959 *)
14960   dynamic_linker=no
14961   ;;
14962 esac
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14964 $as_echo "$dynamic_linker" >&6; }
14965 test no = "$dynamic_linker" && can_build_shared=no
14966
14967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14968 if test yes = "$GCC"; then
14969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14970 fi
14971
14972 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14973   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14974 fi
14975
14976 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14977   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14978 fi
14979
14980 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14981 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14982
14983 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14984 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14985
14986 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14987 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15086 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15087 hardcode_action=
15088 if test -n "$hardcode_libdir_flag_spec" ||
15089    test -n "$runpath_var" ||
15090    test yes = "$hardcode_automatic"; then
15091
15092   # We can hardcode non-existent directories.
15093   if test no != "$hardcode_direct" &&
15094      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15095      # have to relink, otherwise we might link with an installed library
15096      # when we should be linking with a yet-to-be-installed one
15097      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15098      test no != "$hardcode_minus_L"; then
15099     # Linking always hardcodes the temporary library directory.
15100     hardcode_action=relink
15101   else
15102     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15103     hardcode_action=immediate
15104   fi
15105 else
15106   # We cannot hardcode anything, or else we can only hardcode existing
15107   # directories.
15108   hardcode_action=unsupported
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15111 $as_echo "$hardcode_action" >&6; }
15112
15113 if test relink = "$hardcode_action" ||
15114    test yes = "$inherit_rpath"; then
15115   # Fast installation is not supported
15116   enable_fast_install=no
15117 elif test yes = "$shlibpath_overrides_runpath" ||
15118      test no = "$enable_shared"; then
15119   # Fast installation is not necessary
15120   enable_fast_install=needless
15121 fi
15122
15123
15124
15125
15126
15127
15128   if test yes != "$enable_dlopen"; then
15129   enable_dlopen=unknown
15130   enable_dlopen_self=unknown
15131   enable_dlopen_self_static=unknown
15132 else
15133   lt_cv_dlopen=no
15134   lt_cv_dlopen_libs=
15135
15136   case $host_os in
15137   beos*)
15138     lt_cv_dlopen=load_add_on
15139     lt_cv_dlopen_libs=
15140     lt_cv_dlopen_self=yes
15141     ;;
15142
15143   mingw* | pw32* | cegcc*)
15144     lt_cv_dlopen=LoadLibrary
15145     lt_cv_dlopen_libs=
15146     ;;
15147
15148   cygwin*)
15149     lt_cv_dlopen=dlopen
15150     lt_cv_dlopen_libs=
15151     ;;
15152
15153   darwin*)
15154     # if libdl is installed we need to link against it
15155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15156 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15157 if ${ac_cv_lib_dl_dlopen+:} false; then :
15158   $as_echo_n "(cached) " >&6
15159 else
15160   ac_check_lib_save_LIBS=$LIBS
15161 LIBS="-ldl  $LIBS"
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h.  */
15164
15165
15166 #ifdef __cplusplus
15167 extern "C"
15168 #endif
15169 char dlopen ();
15170 int main (void)
15171 {
15172 return dlopen ();
15173  ;
15174  return 0;
15175 }
15176 _ACEOF
15177 if ac_fn_c_try_link "$LINENO"; then :
15178   ac_cv_lib_dl_dlopen=yes
15179 else
15180   ac_cv_lib_dl_dlopen=no
15181 fi
15182 rm -f core conftest.err conftest.$ac_objext \
15183     conftest$ac_exeext conftest.$ac_ext
15184 LIBS=$ac_check_lib_save_LIBS
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15188 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15189   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15190 else
15191
15192     lt_cv_dlopen=dyld
15193     lt_cv_dlopen_libs=
15194     lt_cv_dlopen_self=yes
15195
15196 fi
15197
15198     ;;
15199
15200   tpf*)
15201     # Don't try to run any link tests for TPF.  We know it's impossible
15202     # because TPF is a cross-compiler, and we know how we open DSOs.
15203     lt_cv_dlopen=dlopen
15204     lt_cv_dlopen_libs=
15205     lt_cv_dlopen_self=no
15206     ;;
15207
15208   *)
15209     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15210 if test "x$ac_cv_func_shl_load" = xyes; then :
15211   lt_cv_dlopen=shl_load
15212 else
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15214 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15215 if ${ac_cv_lib_dld_shl_load+:} false; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   ac_check_lib_save_LIBS=$LIBS
15219 LIBS="-ldld  $LIBS"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h.  */
15222
15223
15224 #ifdef __cplusplus
15225 extern "C"
15226 #endif
15227 char shl_load ();
15228 int main (void)
15229 {
15230 return shl_load ();
15231  ;
15232  return 0;
15233 }
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236   ac_cv_lib_dld_shl_load=yes
15237 else
15238   ac_cv_lib_dld_shl_load=no
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext \
15241     conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15247   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15248 else
15249   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15250 if test "x$ac_cv_func_dlopen" = xyes; then :
15251   lt_cv_dlopen=dlopen
15252 else
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15255 if ${ac_cv_lib_dl_dlopen+:} false; then :
15256   $as_echo_n "(cached) " >&6
15257 else
15258   ac_check_lib_save_LIBS=$LIBS
15259 LIBS="-ldl  $LIBS"
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h.  */
15262
15263
15264 #ifdef __cplusplus
15265 extern "C"
15266 #endif
15267 char dlopen ();
15268 int main (void)
15269 {
15270 return dlopen ();
15271  ;
15272  return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_link "$LINENO"; then :
15276   ac_cv_lib_dl_dlopen=yes
15277 else
15278   ac_cv_lib_dl_dlopen=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281     conftest$ac_exeext conftest.$ac_ext
15282 LIBS=$ac_check_lib_save_LIBS
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15286 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15287   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15288 else
15289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15291 if ${ac_cv_lib_svld_dlopen+:} false; then :
15292   $as_echo_n "(cached) " >&6
15293 else
15294   ac_check_lib_save_LIBS=$LIBS
15295 LIBS="-lsvld  $LIBS"
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h.  */
15298
15299
15300 #ifdef __cplusplus
15301 extern "C"
15302 #endif
15303 char dlopen ();
15304 int main (void)
15305 {
15306 return dlopen ();
15307  ;
15308  return 0;
15309 }
15310 _ACEOF
15311 if ac_fn_c_try_link "$LINENO"; then :
15312   ac_cv_lib_svld_dlopen=yes
15313 else
15314   ac_cv_lib_svld_dlopen=no
15315 fi
15316 rm -f core conftest.err conftest.$ac_objext \
15317     conftest$ac_exeext conftest.$ac_ext
15318 LIBS=$ac_check_lib_save_LIBS
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15321 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15322 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15323   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15324 else
15325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15326 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15327 if ${ac_cv_lib_dld_dld_link+:} false; then :
15328   $as_echo_n "(cached) " >&6
15329 else
15330   ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-ldld  $LIBS"
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334
15335
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char dld_link ();
15340 int main (void)
15341 {
15342 return dld_link ();
15343  ;
15344  return 0;
15345 }
15346 _ACEOF
15347 if ac_fn_c_try_link "$LINENO"; then :
15348   ac_cv_lib_dld_dld_link=yes
15349 else
15350   ac_cv_lib_dld_dld_link=no
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext \
15353     conftest$ac_exeext conftest.$ac_ext
15354 LIBS=$ac_check_lib_save_LIBS
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15358 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15359   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15360 fi
15361
15362
15363 fi
15364
15365
15366 fi
15367
15368
15369 fi
15370
15371
15372 fi
15373
15374
15375 fi
15376
15377     ;;
15378   esac
15379
15380   if test no = "$lt_cv_dlopen"; then
15381     enable_dlopen=no
15382   else
15383     enable_dlopen=yes
15384   fi
15385
15386   case $lt_cv_dlopen in
15387   dlopen)
15388     save_CPPFLAGS=$CPPFLAGS
15389     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15390
15391     save_LDFLAGS=$LDFLAGS
15392     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15393
15394     save_LIBS=$LIBS
15395     LIBS="$lt_cv_dlopen_libs $LIBS"
15396
15397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15399 if ${lt_cv_dlopen_self+:} false; then :
15400   $as_echo_n "(cached) " >&6
15401 else
15402           if test yes = "$cross_compiling"; then :
15403   lt_cv_dlopen_self=cross
15404 else
15405   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15406   lt_status=$lt_dlunknown
15407   cat > conftest.$ac_ext <<_LT_EOF
15408 #line $LINENO "configure"
15409 #include "confdefs.h"
15410
15411 #if HAVE_DLFCN_H
15412 #include <dlfcn.h>
15413 #endif
15414
15415 #include <stdio.h>
15416
15417 #ifdef RTLD_GLOBAL
15418 #  define LT_DLGLOBAL           RTLD_GLOBAL
15419 #else
15420 #  ifdef DL_GLOBAL
15421 #    define LT_DLGLOBAL         DL_GLOBAL
15422 #  else
15423 #    define LT_DLGLOBAL         0
15424 #  endif
15425 #endif
15426
15427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15428    find out it does not work in some platform. */
15429 #ifndef LT_DLLAZY_OR_NOW
15430 #  ifdef RTLD_LAZY
15431 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15432 #  else
15433 #    ifdef DL_LAZY
15434 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15435 #    else
15436 #      ifdef RTLD_NOW
15437 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15438 #      else
15439 #        ifdef DL_NOW
15440 #          define LT_DLLAZY_OR_NOW      DL_NOW
15441 #        else
15442 #          define LT_DLLAZY_OR_NOW      0
15443 #        endif
15444 #      endif
15445 #    endif
15446 #  endif
15447 #endif
15448
15449 /* When -fvisibility=hidden is used, assume the code has been annotated
15450    correspondingly for the symbols needed.  */
15451 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15452 int fnord () __attribute__((visibility("default")));
15453 #endif
15454
15455 int fnord () { return 42; }
15456 int main ()
15457 {
15458   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15459   int status = $lt_dlunknown;
15460
15461   if (self)
15462     {
15463       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15464       else
15465         {
15466           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15467           else puts (dlerror ());
15468         }
15469       /* dlclose (self); */
15470     }
15471   else
15472     puts (dlerror ());
15473
15474   return status;
15475 }
15476 _LT_EOF
15477   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15478   (eval $ac_link) 2>&5
15479   ac_status=$?
15480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15482     (./conftest; exit; ) >&5 2>/dev/null
15483     lt_status=$?
15484     case x$lt_status in
15485       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15486       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15487       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15488     esac
15489   else :
15490     # compilation failed
15491     lt_cv_dlopen_self=no
15492   fi
15493 fi
15494 rm -fr conftest*
15495
15496
15497 fi
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15499 $as_echo "$lt_cv_dlopen_self" >&6; }
15500
15501     if test yes = "$lt_cv_dlopen_self"; then
15502       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15505 if ${lt_cv_dlopen_self_static+:} false; then :
15506   $as_echo_n "(cached) " >&6
15507 else
15508           if test yes = "$cross_compiling"; then :
15509   lt_cv_dlopen_self_static=cross
15510 else
15511   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15512   lt_status=$lt_dlunknown
15513   cat > conftest.$ac_ext <<_LT_EOF
15514 #line $LINENO "configure"
15515 #include "confdefs.h"
15516
15517 #if HAVE_DLFCN_H
15518 #include <dlfcn.h>
15519 #endif
15520
15521 #include <stdio.h>
15522
15523 #ifdef RTLD_GLOBAL
15524 #  define LT_DLGLOBAL           RTLD_GLOBAL
15525 #else
15526 #  ifdef DL_GLOBAL
15527 #    define LT_DLGLOBAL         DL_GLOBAL
15528 #  else
15529 #    define LT_DLGLOBAL         0
15530 #  endif
15531 #endif
15532
15533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15534    find out it does not work in some platform. */
15535 #ifndef LT_DLLAZY_OR_NOW
15536 #  ifdef RTLD_LAZY
15537 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15538 #  else
15539 #    ifdef DL_LAZY
15540 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15541 #    else
15542 #      ifdef RTLD_NOW
15543 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15544 #      else
15545 #        ifdef DL_NOW
15546 #          define LT_DLLAZY_OR_NOW      DL_NOW
15547 #        else
15548 #          define LT_DLLAZY_OR_NOW      0
15549 #        endif
15550 #      endif
15551 #    endif
15552 #  endif
15553 #endif
15554
15555 /* When -fvisibility=hidden is used, assume the code has been annotated
15556    correspondingly for the symbols needed.  */
15557 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15558 int fnord () __attribute__((visibility("default")));
15559 #endif
15560
15561 int fnord () { return 42; }
15562 int main ()
15563 {
15564   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15565   int status = $lt_dlunknown;
15566
15567   if (self)
15568     {
15569       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15570       else
15571         {
15572           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15573           else puts (dlerror ());
15574         }
15575       /* dlclose (self); */
15576     }
15577   else
15578     puts (dlerror ());
15579
15580   return status;
15581 }
15582 _LT_EOF
15583   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15584   (eval $ac_link) 2>&5
15585   ac_status=$?
15586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15587   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15588     (./conftest; exit; ) >&5 2>/dev/null
15589     lt_status=$?
15590     case x$lt_status in
15591       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15592       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15593       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15594     esac
15595   else :
15596     # compilation failed
15597     lt_cv_dlopen_self_static=no
15598   fi
15599 fi
15600 rm -fr conftest*
15601
15602
15603 fi
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15606     fi
15607
15608     CPPFLAGS=$save_CPPFLAGS
15609     LDFLAGS=$save_LDFLAGS
15610     LIBS=$save_LIBS
15611     ;;
15612   esac
15613
15614   case $lt_cv_dlopen_self in
15615   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15616   *) enable_dlopen_self=unknown ;;
15617   esac
15618
15619   case $lt_cv_dlopen_self_static in
15620   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15621   *) enable_dlopen_self_static=unknown ;;
15622   esac
15623 fi
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641 striplib=
15642 old_striplib=
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15645 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15646   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15647   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649 $as_echo "yes" >&6; }
15650 else
15651 # FIXME - insert some real tests, host_os isn't really good enough
15652   case $host_os in
15653   darwin*)
15654     if test -n "$STRIP"; then
15655       striplib="$STRIP -x"
15656       old_striplib="$STRIP -S"
15657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15658 $as_echo "yes" >&6; }
15659     else
15660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15661 $as_echo "no" >&6; }
15662     fi
15663     ;;
15664   *)
15665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666 $as_echo "no" >&6; }
15667     ;;
15668   esac
15669 fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682   # Report what library types will actually be built
15683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15686 $as_echo "$can_build_shared" >&6; }
15687
15688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15689 $as_echo_n "checking whether to build shared libraries... " >&6; }
15690   test no = "$can_build_shared" && enable_shared=no
15691
15692   # On AIX, shared libraries and static libraries use the same namespace, and
15693   # are all built from PIC.
15694   case $host_os in
15695   aix3*)
15696     test yes = "$enable_shared" && enable_static=no
15697     if test -n "$RANLIB"; then
15698       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15699       postinstall_cmds='$RANLIB $lib'
15700     fi
15701     ;;
15702
15703   aix[4-9]*)
15704     if test ia64 != "$host_cpu"; then
15705       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15706       yes,aix,yes) ;;                   # shared object as lib.so file only
15707       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15708       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15709       esac
15710     fi
15711     ;;
15712   esac
15713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15714 $as_echo "$enable_shared" >&6; }
15715
15716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15717 $as_echo_n "checking whether to build static libraries... " >&6; }
15718   # Make sure either enable_shared or enable_static is yes.
15719   test yes = "$enable_shared" || enable_static=yes
15720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15721 $as_echo "$enable_static" >&6; }
15722
15723
15724
15725
15726 fi
15727 ac_ext=c
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15732
15733 CC=$lt_save_CC
15734
15735       if test -n "$CXX" && ( test no != "$CXX" &&
15736     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15737     (test g++ != "$CXX"))); then
15738   ac_ext=cpp
15739 ac_cpp='$CXXCPP $CPPFLAGS'
15740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15745 if test -z "$CXXCPP"; then
15746   if ${ac_cv_prog_CXXCPP+:} false; then :
15747   $as_echo_n "(cached) " >&6
15748 else
15749       # Double quotes because CXXCPP needs to be expanded
15750     for CXXCPP in "$CXX -E" "/lib/cpp"
15751     do
15752       ac_preproc_ok=false
15753 for ac_cxx_preproc_warn_flag in '' yes
15754 do
15755   # Use a header file that comes with gcc, so configuring glibc
15756   # with a fresh cross-compiler works.
15757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15758   # <limits.h> exists even on freestanding compilers.
15759   # On the NeXT, cc -E runs the code through the compiler's parser,
15760   # not just through cpp. "Syntax error" is here to catch this case.
15761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h.  */
15763 #ifdef __STDC__
15764 # include <limits.h>
15765 #else
15766 # include <assert.h>
15767 #endif
15768                      Syntax error
15769 _ACEOF
15770 if ac_fn_cxx_try_cpp "$LINENO"; then :
15771
15772 else
15773   # Broken: fails on valid input.
15774 continue
15775 fi
15776 rm -f conftest.err conftest.i conftest.$ac_ext
15777
15778   # OK, works on sane cases.  Now check whether nonexistent headers
15779   # can be detected and how.
15780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782 #include <ac_nonexistent.h>
15783 _ACEOF
15784 if ac_fn_cxx_try_cpp "$LINENO"; then :
15785   # Broken: success on invalid input.
15786 continue
15787 else
15788   # Passes both tests.
15789 ac_preproc_ok=:
15790 break
15791 fi
15792 rm -f conftest.err conftest.i conftest.$ac_ext
15793
15794 done
15795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15796 rm -f conftest.i conftest.err conftest.$ac_ext
15797 if $ac_preproc_ok; then :
15798   break
15799 fi
15800
15801     done
15802     ac_cv_prog_CXXCPP=$CXXCPP
15803
15804 fi
15805   CXXCPP=$ac_cv_prog_CXXCPP
15806 else
15807   ac_cv_prog_CXXCPP=$CXXCPP
15808 fi
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15810 $as_echo "$CXXCPP" >&6; }
15811 ac_preproc_ok=false
15812 for ac_cxx_preproc_warn_flag in '' yes
15813 do
15814   # Use a header file that comes with gcc, so configuring glibc
15815   # with a fresh cross-compiler works.
15816   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817   # <limits.h> exists even on freestanding compilers.
15818   # On the NeXT, cc -E runs the code through the compiler's parser,
15819   # not just through cpp. "Syntax error" is here to catch this case.
15820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h.  */
15822 #ifdef __STDC__
15823 # include <limits.h>
15824 #else
15825 # include <assert.h>
15826 #endif
15827                      Syntax error
15828 _ACEOF
15829 if ac_fn_cxx_try_cpp "$LINENO"; then :
15830
15831 else
15832   # Broken: fails on valid input.
15833 continue
15834 fi
15835 rm -f conftest.err conftest.i conftest.$ac_ext
15836
15837   # OK, works on sane cases.  Now check whether nonexistent headers
15838   # can be detected and how.
15839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h.  */
15841 #include <ac_nonexistent.h>
15842 _ACEOF
15843 if ac_fn_cxx_try_cpp "$LINENO"; then :
15844   # Broken: success on invalid input.
15845 continue
15846 else
15847   # Passes both tests.
15848 ac_preproc_ok=:
15849 break
15850 fi
15851 rm -f conftest.err conftest.i conftest.$ac_ext
15852
15853 done
15854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15855 rm -f conftest.i conftest.err conftest.$ac_ext
15856 if $ac_preproc_ok; then :
15857
15858 else
15859   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15861 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15862 See \`config.log' for more details" "$LINENO" 5; }
15863 fi
15864
15865 ac_ext=c
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870
15871 else
15872   _lt_caught_CXX_error=yes
15873 fi
15874
15875 ac_ext=cpp
15876 ac_cpp='$CXXCPP $CPPFLAGS'
15877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15880
15881 archive_cmds_need_lc_CXX=no
15882 allow_undefined_flag_CXX=
15883 always_export_symbols_CXX=no
15884 archive_expsym_cmds_CXX=
15885 compiler_needs_object_CXX=no
15886 export_dynamic_flag_spec_CXX=
15887 hardcode_direct_CXX=no
15888 hardcode_direct_absolute_CXX=no
15889 hardcode_libdir_flag_spec_CXX=
15890 hardcode_libdir_separator_CXX=
15891 hardcode_minus_L_CXX=no
15892 hardcode_shlibpath_var_CXX=unsupported
15893 hardcode_automatic_CXX=no
15894 inherit_rpath_CXX=no
15895 module_cmds_CXX=
15896 module_expsym_cmds_CXX=
15897 link_all_deplibs_CXX=unknown
15898 old_archive_cmds_CXX=$old_archive_cmds
15899 reload_flag_CXX=$reload_flag
15900 reload_cmds_CXX=$reload_cmds
15901 no_undefined_flag_CXX=
15902 whole_archive_flag_spec_CXX=
15903 enable_shared_with_static_runtimes_CXX=no
15904
15905 # Source file extension for C++ test sources.
15906 ac_ext=cpp
15907
15908 # Object file extension for compiled C++ test sources.
15909 objext=o
15910 objext_CXX=$objext
15911
15912 # No sense in running all these tests if we already determined that
15913 # the CXX compiler isn't working.  Some variables (like enable_shared)
15914 # are currently assumed to apply to all compilers on this platform,
15915 # and will be corrupted by setting them based on a non-working compiler.
15916 if test yes != "$_lt_caught_CXX_error"; then
15917   # Code to be used in simple compile tests
15918   lt_simple_compile_test_code="int some_variable = 0;"
15919
15920   # Code to be used in simple link tests
15921   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15922
15923   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15924
15925
15926
15927
15928
15929
15930 # If no C compiler was specified, use CC.
15931 LTCC=${LTCC-"$CC"}
15932
15933 # If no C compiler flags were specified, use CFLAGS.
15934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15935
15936 # Allow CC to be a program name with arguments.
15937 compiler=$CC
15938
15939
15940   # save warnings/boilerplate of simple test code
15941   ac_outfile=conftest.$ac_objext
15942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15944 _lt_compiler_boilerplate=`cat conftest.err`
15945 $RM conftest*
15946
15947   ac_outfile=conftest.$ac_objext
15948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15950 _lt_linker_boilerplate=`cat conftest.err`
15951 $RM -r conftest*
15952
15953
15954   # Allow CC to be a program name with arguments.
15955   lt_save_CC=$CC
15956   lt_save_CFLAGS=$CFLAGS
15957   lt_save_LD=$LD
15958   lt_save_GCC=$GCC
15959   GCC=$GXX
15960   lt_save_with_gnu_ld=$with_gnu_ld
15961   lt_save_path_LD=$lt_cv_path_LD
15962   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15963     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15964   else
15965     $as_unset lt_cv_prog_gnu_ld
15966   fi
15967   if test -n "${lt_cv_path_LDCXX+set}"; then
15968     lt_cv_path_LD=$lt_cv_path_LDCXX
15969   else
15970     $as_unset lt_cv_path_LD
15971   fi
15972   test -z "${LDCXX+set}" || LD=$LDCXX
15973   CC=${CXX-"c++"}
15974   CFLAGS=$CXXFLAGS
15975   compiler=$CC
15976   compiler_CXX=$CC
15977   func_cc_basename $compiler
15978 cc_basename=$func_cc_basename_result
15979
15980
15981   if test -n "$compiler"; then
15982     # We don't want -fno-exception when compiling C++ code, so set the
15983     # no_builtin_flag separately
15984     if test yes = "$GXX"; then
15985       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15986     else
15987       lt_prog_compiler_no_builtin_flag_CXX=
15988     fi
15989
15990     if test yes = "$GXX"; then
15991       # Set up default GNU C++ configuration
15992
15993
15994
15995 # Check whether --with-gnu-ld was given.
15996 if test "${with_gnu_ld+set}" = set; then :
15997   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15998 else
15999   with_gnu_ld=no
16000 fi
16001
16002 ac_prog=ld
16003 if test yes = "$GCC"; then
16004   # Check if gcc -print-prog-name=ld gives a path.
16005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16006 $as_echo_n "checking for ld used by $CC... " >&6; }
16007   case $host in
16008   *-*-mingw*)
16009     # gcc leaves a trailing carriage return, which upsets mingw
16010     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16011   *)
16012     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16013   esac
16014   case $ac_prog in
16015     # Accept absolute paths.
16016     [\\/]* | ?:[\\/]*)
16017       re_direlt='/[^/][^/]*/\.\./'
16018       # Canonicalize the pathname of ld
16019       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16020       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16021         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16022       done
16023       test -z "$LD" && LD=$ac_prog
16024       ;;
16025   "")
16026     # If it fails, then pretend we aren't using GCC.
16027     ac_prog=ld
16028     ;;
16029   *)
16030     # If it is relative, then search for the first ld in PATH.
16031     with_gnu_ld=unknown
16032     ;;
16033   esac
16034 elif test yes = "$with_gnu_ld"; then
16035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16036 $as_echo_n "checking for GNU ld... " >&6; }
16037 else
16038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16039 $as_echo_n "checking for non-GNU ld... " >&6; }
16040 fi
16041 if ${lt_cv_path_LD+:} false; then :
16042   $as_echo_n "(cached) " >&6
16043 else
16044   if test -z "$LD"; then
16045   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16046   for ac_dir in $PATH; do
16047     IFS=$lt_save_ifs
16048     test -z "$ac_dir" && ac_dir=.
16049     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16050       lt_cv_path_LD=$ac_dir/$ac_prog
16051       # Check to see if the program is GNU ld.  I'd rather use --version,
16052       # but apparently some variants of GNU ld only accept -v.
16053       # Break only if it was the GNU/non-GNU ld that we prefer.
16054       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16055       *GNU* | *'with BFD'*)
16056         test no != "$with_gnu_ld" && break
16057         ;;
16058       *)
16059         test yes != "$with_gnu_ld" && break
16060         ;;
16061       esac
16062     fi
16063   done
16064   IFS=$lt_save_ifs
16065 else
16066   lt_cv_path_LD=$LD # Let the user override the test with a path.
16067 fi
16068 fi
16069
16070 LD=$lt_cv_path_LD
16071 if test -n "$LD"; then
16072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16073 $as_echo "$LD" >&6; }
16074 else
16075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 $as_echo "no" >&6; }
16077 fi
16078 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16081 if ${lt_cv_prog_gnu_ld+:} false; then :
16082   $as_echo_n "(cached) " >&6
16083 else
16084   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16085 case `$LD -v 2>&1 </dev/null` in
16086 *GNU* | *'with BFD'*)
16087   lt_cv_prog_gnu_ld=yes
16088   ;;
16089 *)
16090   lt_cv_prog_gnu_ld=no
16091   ;;
16092 esac
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16096 with_gnu_ld=$lt_cv_prog_gnu_ld
16097
16098
16099
16100
16101
16102
16103
16104       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16105       # archiving commands below assume that GNU ld is being used.
16106       if test yes = "$with_gnu_ld"; then
16107         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16108         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16109
16110         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16111         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16112
16113         # If archive_cmds runs LD, not CC, wlarc should be empty
16114         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16115         #     investigate it a little bit more. (MM)
16116         wlarc='$wl'
16117
16118         # ancient GNU ld didn't support --whole-archive et. al.
16119         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16120           $GREP 'no-whole-archive' > /dev/null; then
16121           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16122         else
16123           whole_archive_flag_spec_CXX=
16124         fi
16125       else
16126         with_gnu_ld=no
16127         wlarc=
16128
16129         # A generic and very simple default shared library creation
16130         # command for GNU C++ for the case where it uses the native
16131         # linker, instead of GNU ld.  If possible, this setting should
16132         # overridden to take advantage of the native linker features on
16133         # the platform it is being used on.
16134         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16135       fi
16136
16137       # Commands to make compiler produce verbose output that lists
16138       # what "hidden" libraries, object files and flags are used when
16139       # linking a shared library.
16140       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16141
16142     else
16143       GXX=no
16144       with_gnu_ld=no
16145       wlarc=
16146     fi
16147
16148     # PORTME: fill in a description of your system's C++ link characteristics
16149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16151     ld_shlibs_CXX=yes
16152     case $host_os in
16153       aix3*)
16154         # FIXME: insert proper C++ library support
16155         ld_shlibs_CXX=no
16156         ;;
16157       aix[4-9]*)
16158         if test ia64 = "$host_cpu"; then
16159           # On IA64, the linker does run time linking by default, so we don't
16160           # have to do anything special.
16161           aix_use_runtimelinking=no
16162           exp_sym_flag='-Bexport'
16163           no_entry_flag=
16164         else
16165           aix_use_runtimelinking=no
16166
16167           # Test if we are trying to use run time linking or normal
16168           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16169           # have runtime linking enabled, and use it for executables.
16170           # For shared libraries, we enable/disable runtime linking
16171           # depending on the kind of the shared library created -
16172           # when "with_aix_soname,aix_use_runtimelinking" is:
16173           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16174           # "aix,yes"  lib.so          shared, rtl:yes, for executables
16175           #            lib.a           static archive
16176           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16177           #            lib.a(lib.so.V) shared, rtl:no,  for executables
16178           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16179           #            lib.a(lib.so.V) shared, rtl:no
16180           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16181           #            lib.a           static archive
16182           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16183             for ld_flag in $LDFLAGS; do
16184               case $ld_flag in
16185               *-brtl*)
16186                 aix_use_runtimelinking=yes
16187                 break
16188                 ;;
16189               esac
16190             done
16191             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16192               # With aix-soname=svr4, we create the lib.so.V shared archives only,
16193               # so we don't have lib.a shared libs to link our executables.
16194               # We have to force runtime linking in this case.
16195               aix_use_runtimelinking=yes
16196               LDFLAGS="$LDFLAGS -Wl,-brtl"
16197             fi
16198             ;;
16199           esac
16200
16201           exp_sym_flag='-bexport'
16202           no_entry_flag='-bnoentry'
16203         fi
16204
16205         # When large executables or shared objects are built, AIX ld can
16206         # have problems creating the table of contents.  If linking a library
16207         # or program results in "error TOC overflow" add -mminimal-toc to
16208         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16209         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16210
16211         archive_cmds_CXX=''
16212         hardcode_direct_CXX=yes
16213         hardcode_direct_absolute_CXX=yes
16214         hardcode_libdir_separator_CXX=':'
16215         link_all_deplibs_CXX=yes
16216         file_list_spec_CXX='$wl-f,'
16217         case $with_aix_soname,$aix_use_runtimelinking in
16218         aix,*) ;;       # no import file
16219         svr4,* | *,yes) # use import file
16220           # The Import File defines what to hardcode.
16221           hardcode_direct_CXX=no
16222           hardcode_direct_absolute_CXX=no
16223           ;;
16224         esac
16225
16226         if test yes = "$GXX"; then
16227           case $host_os in aix4.[012]|aix4.[012].*)
16228           # We only want to do this on AIX 4.2 and lower, the check
16229           # below for broken collect2 doesn't work under 4.3+
16230           collect2name=`$CC -print-prog-name=collect2`
16231           if test -f "$collect2name" &&
16232              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16233           then
16234             # We have reworked collect2
16235             :
16236           else
16237             # We have old collect2
16238             hardcode_direct_CXX=unsupported
16239             # It fails to find uninstalled libraries when the uninstalled
16240             # path is not listed in the libpath.  Setting hardcode_minus_L
16241             # to unsupported forces relinking
16242             hardcode_minus_L_CXX=yes
16243             hardcode_libdir_flag_spec_CXX='-L$libdir'
16244             hardcode_libdir_separator_CXX=
16245           fi
16246           esac
16247           shared_flag='-shared'
16248           if test yes = "$aix_use_runtimelinking"; then
16249             shared_flag=$shared_flag' $wl-G'
16250           fi
16251           # Need to ensure runtime linking is disabled for the traditional
16252           # shared library, or the linker may eventually find shared libraries
16253           # /with/ Import File - we do not want to mix them.
16254           shared_flag_aix='-shared'
16255           shared_flag_svr4='-shared $wl-G'
16256         else
16257           # not using gcc
16258           if test ia64 = "$host_cpu"; then
16259           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16260           # chokes on -Wl,-G. The following line is correct:
16261           shared_flag='-G'
16262           else
16263             if test yes = "$aix_use_runtimelinking"; then
16264               shared_flag='$wl-G'
16265             else
16266               shared_flag='$wl-bM:SRE'
16267             fi
16268             shared_flag_aix='$wl-bM:SRE'
16269             shared_flag_svr4='$wl-G'
16270           fi
16271         fi
16272
16273         export_dynamic_flag_spec_CXX='$wl-bexpall'
16274         # It seems that -bexpall does not export symbols beginning with
16275         # underscore (_), so it is better to generate a list of symbols to
16276         # export.
16277         always_export_symbols_CXX=yes
16278         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16279           # Warning - without using the other runtime loading flags (-brtl),
16280           # -berok will link without error, but may produce a broken library.
16281           # The "-G" linker flag allows undefined symbols.
16282           no_undefined_flag_CXX='-bernotok'
16283           # Determine the default libpath from the value encoded in an empty
16284           # executable.
16285           if test set = "${lt_cv_aix_libpath+set}"; then
16286   aix_libpath=$lt_cv_aix_libpath
16287 else
16288   if ${lt_cv_aix_libpath__CXX+:} false; then :
16289   $as_echo_n "(cached) " >&6
16290 else
16291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h.  */
16293
16294 int
16295 main ()
16296 {
16297
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_cxx_try_link "$LINENO"; then :
16303
16304   lt_aix_libpath_sed='
16305       /Import File Strings/,/^$/ {
16306           /^0/ {
16307               s/^0  *\([^ ]*\) *$/\1/
16308               p
16309           }
16310       }'
16311   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16312   # Check for a 64-bit object if we didn't find anything.
16313   if test -z "$lt_cv_aix_libpath__CXX"; then
16314     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16315   fi
16316 fi
16317 rm -f core conftest.err conftest.$ac_objext \
16318     conftest$ac_exeext conftest.$ac_ext
16319   if test -z "$lt_cv_aix_libpath__CXX"; then
16320     lt_cv_aix_libpath__CXX=/usr/lib:/lib
16321   fi
16322
16323 fi
16324
16325   aix_libpath=$lt_cv_aix_libpath__CXX
16326 fi
16327
16328           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16329
16330           archive_expsym_cmds_CXX='$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
16331         else
16332           if test ia64 = "$host_cpu"; then
16333             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16334             allow_undefined_flag_CXX="-z nodefs"
16335             archive_expsym_cmds_CXX="\$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"
16336           else
16337             # Determine the default libpath from the value encoded in an
16338             # empty executable.
16339             if test set = "${lt_cv_aix_libpath+set}"; then
16340   aix_libpath=$lt_cv_aix_libpath
16341 else
16342   if ${lt_cv_aix_libpath__CXX+:} false; then :
16343   $as_echo_n "(cached) " >&6
16344 else
16345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h.  */
16347
16348 int
16349 main ()
16350 {
16351
16352   ;
16353   return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_cxx_try_link "$LINENO"; then :
16357
16358   lt_aix_libpath_sed='
16359       /Import File Strings/,/^$/ {
16360           /^0/ {
16361               s/^0  *\([^ ]*\) *$/\1/
16362               p
16363           }
16364       }'
16365   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16366   # Check for a 64-bit object if we didn't find anything.
16367   if test -z "$lt_cv_aix_libpath__CXX"; then
16368     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16369   fi
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext \
16372     conftest$ac_exeext conftest.$ac_ext
16373   if test -z "$lt_cv_aix_libpath__CXX"; then
16374     lt_cv_aix_libpath__CXX=/usr/lib:/lib
16375   fi
16376
16377 fi
16378
16379   aix_libpath=$lt_cv_aix_libpath__CXX
16380 fi
16381
16382             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16383             # Warning - without using the other run time loading flags,
16384             # -berok will link without error, but may produce a broken library.
16385             no_undefined_flag_CXX=' $wl-bernotok'
16386             allow_undefined_flag_CXX=' $wl-berok'
16387             if test yes = "$with_gnu_ld"; then
16388               # We only use this code for GNU lds that support --whole-archive.
16389               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16390             else
16391               # Exported symbols can be pulled into shared objects from archives
16392               whole_archive_flag_spec_CXX='$convenience'
16393             fi
16394             archive_cmds_need_lc_CXX=yes
16395             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16396             # -brtl affects multiple linker settings, -berok does not and is overridden later
16397             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16398             if test svr4 != "$with_aix_soname"; then
16399               # This is similar to how AIX traditionally builds its shared
16400               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16401               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16402             fi
16403             if test aix != "$with_aix_soname"; then
16404               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16405             else
16406               # used by -dlpreopen to get the symbols
16407               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16408             fi
16409             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16410           fi
16411         fi
16412         ;;
16413
16414       beos*)
16415         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16416           allow_undefined_flag_CXX=unsupported
16417           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16418           # support --undefined.  This deserves some investigation.  FIXME
16419           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16420         else
16421           ld_shlibs_CXX=no
16422         fi
16423         ;;
16424
16425       chorus*)
16426         case $cc_basename in
16427           *)
16428           # FIXME: insert proper C++ library support
16429           ld_shlibs_CXX=no
16430           ;;
16431         esac
16432         ;;
16433
16434       cygwin* | mingw* | pw32* | cegcc*)
16435         case $GXX,$cc_basename in
16436         ,cl* | no,cl*)
16437           # Native MSVC
16438           # hardcode_libdir_flag_spec is actually meaningless, as there is
16439           # no search path for DLLs.
16440           hardcode_libdir_flag_spec_CXX=' '
16441           allow_undefined_flag_CXX=unsupported
16442           always_export_symbols_CXX=yes
16443           file_list_spec_CXX='@'
16444           # Tell ltmain to make .lib files, not .a files.
16445           libext=lib
16446           # Tell ltmain to make .dll files, not .so files.
16447           shrext_cmds=.dll
16448           # FIXME: Setting linknames here is a bad hack.
16449           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16450           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16451               cp "$export_symbols" "$output_objdir/$soname.def";
16452               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16453             else
16454               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16455             fi~
16456             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16457             linknames='
16458           # The linker will not automatically build a static lib if we build a DLL.
16459           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16460           enable_shared_with_static_runtimes_CXX=yes
16461           # Don't use ranlib
16462           old_postinstall_cmds_CXX='chmod 644 $oldlib'
16463           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16464             lt_tool_outputfile="@TOOL_OUTPUT@"~
16465             case $lt_outputfile in
16466               *.exe|*.EXE) ;;
16467               *)
16468                 lt_outputfile=$lt_outputfile.exe
16469                 lt_tool_outputfile=$lt_tool_outputfile.exe
16470                 ;;
16471             esac~
16472             func_to_tool_file "$lt_outputfile"~
16473             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16474               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16475               $RM "$lt_outputfile.manifest";
16476             fi'
16477           ;;
16478         *)
16479           # g++
16480           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16481           # as there is no search path for DLLs.
16482           hardcode_libdir_flag_spec_CXX='-L$libdir'
16483           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16484           allow_undefined_flag_CXX=unsupported
16485           always_export_symbols_CXX=no
16486           enable_shared_with_static_runtimes_CXX=yes
16487
16488           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16489             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16490             # If the export-symbols file already is a .def file, use it as
16491             # is; otherwise, prepend EXPORTS...
16492             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16493               cp $export_symbols $output_objdir/$soname.def;
16494             else
16495               echo EXPORTS > $output_objdir/$soname.def;
16496               cat $export_symbols >> $output_objdir/$soname.def;
16497             fi~
16498             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16499           else
16500             ld_shlibs_CXX=no
16501           fi
16502           ;;
16503         esac
16504         ;;
16505       darwin* | rhapsody*)
16506
16507
16508   archive_cmds_need_lc_CXX=no
16509   hardcode_direct_CXX=no
16510   hardcode_automatic_CXX=yes
16511   hardcode_shlibpath_var_CXX=unsupported
16512   if test yes = "$lt_cv_ld_force_load"; then
16513     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16514
16515   else
16516     whole_archive_flag_spec_CXX=''
16517   fi
16518   link_all_deplibs_CXX=yes
16519   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16520   case $cc_basename in
16521      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16522      *) _lt_dar_can_shared=$GCC ;;
16523   esac
16524   if test yes = "$_lt_dar_can_shared"; then
16525     output_verbose_link_cmd=func_echo_all
16526     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16527     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16528     archive_expsym_cmds_CXX="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"
16529     module_expsym_cmds_CXX="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"
16530        if test yes != "$lt_cv_apple_cc_single_mod"; then
16531       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16532       archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16533     fi
16534
16535   else
16536   ld_shlibs_CXX=no
16537   fi
16538
16539         ;;
16540
16541       os2*)
16542         hardcode_libdir_flag_spec_CXX='-L$libdir'
16543         hardcode_minus_L_CXX=yes
16544         allow_undefined_flag_CXX=unsupported
16545         shrext_cmds=.dll
16546         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16547           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16548           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16549           $ECHO EXPORTS >> $output_objdir/$libname.def~
16550           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16551           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16552           emximp -o $lib $output_objdir/$libname.def'
16553         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16554           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16555           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16556           $ECHO EXPORTS >> $output_objdir/$libname.def~
16557           prefix_cmds="$SED"~
16558           if test EXPORTS = "`$SED 1q $export_symbols`"; then
16559             prefix_cmds="$prefix_cmds -e 1d";
16560           fi~
16561           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16562           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16563           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16564           emximp -o $lib $output_objdir/$libname.def'
16565         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16566         enable_shared_with_static_runtimes_CXX=yes
16567         ;;
16568
16569       dgux*)
16570         case $cc_basename in
16571           ec++*)
16572             # FIXME: insert proper C++ library support
16573             ld_shlibs_CXX=no
16574             ;;
16575           ghcx*)
16576             # Green Hills C++ Compiler
16577             # FIXME: insert proper C++ library support
16578             ld_shlibs_CXX=no
16579             ;;
16580           *)
16581             # FIXME: insert proper C++ library support
16582             ld_shlibs_CXX=no
16583             ;;
16584         esac
16585         ;;
16586
16587       freebsd2.*)
16588         # C++ shared libraries reported to be fairly broken before
16589         # switch to ELF
16590         ld_shlibs_CXX=no
16591         ;;
16592
16593       freebsd-elf*)
16594         archive_cmds_need_lc_CXX=no
16595         ;;
16596
16597       freebsd* | dragonfly*)
16598         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16599         # conventions
16600         ld_shlibs_CXX=yes
16601         ;;
16602
16603       haiku*)
16604         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16605         link_all_deplibs_CXX=yes
16606         ;;
16607
16608       hpux9*)
16609         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16610         hardcode_libdir_separator_CXX=:
16611         export_dynamic_flag_spec_CXX='$wl-E'
16612         hardcode_direct_CXX=yes
16613         hardcode_minus_L_CXX=yes # Not in the search PATH,
16614                                              # but as the default
16615                                              # location of the library.
16616
16617         case $cc_basename in
16618           CC*)
16619             # FIXME: insert proper C++ library support
16620             ld_shlibs_CXX=no
16621             ;;
16622           aCC*)
16623             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16624             # Commands to make compiler produce verbose output that lists
16625             # what "hidden" libraries, object files and flags are used when
16626             # linking a shared library.
16627             #
16628             # There doesn't appear to be a way to prevent this compiler from
16629             # explicitly linking system object files so we need to strip them
16630             # from the output so that they don't get included in the library
16631             # dependencies.
16632             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16633             ;;
16634           *)
16635             if test yes = "$GXX"; then
16636               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16637             else
16638               # FIXME: insert proper C++ library support
16639               ld_shlibs_CXX=no
16640             fi
16641             ;;
16642         esac
16643         ;;
16644
16645       hpux10*|hpux11*)
16646         if test no = "$with_gnu_ld"; then
16647           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16648           hardcode_libdir_separator_CXX=:
16649
16650           case $host_cpu in
16651             hppa*64*|ia64*)
16652               ;;
16653             *)
16654               export_dynamic_flag_spec_CXX='$wl-E'
16655               ;;
16656           esac
16657         fi
16658         case $host_cpu in
16659           hppa*64*|ia64*)
16660             hardcode_direct_CXX=no
16661             hardcode_shlibpath_var_CXX=no
16662             ;;
16663           *)
16664             hardcode_direct_CXX=yes
16665             hardcode_direct_absolute_CXX=yes
16666             hardcode_minus_L_CXX=yes # Not in the search PATH,
16667                                                  # but as the default
16668                                                  # location of the library.
16669             ;;
16670         esac
16671
16672         case $cc_basename in
16673           CC*)
16674             # FIXME: insert proper C++ library support
16675             ld_shlibs_CXX=no
16676             ;;
16677           aCC*)
16678             case $host_cpu in
16679               hppa*64*)
16680                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16681                 ;;
16682               ia64*)
16683                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16684                 ;;
16685               *)
16686                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16687                 ;;
16688             esac
16689             # Commands to make compiler produce verbose output that lists
16690             # what "hidden" libraries, object files and flags are used when
16691             # linking a shared library.
16692             #
16693             # There doesn't appear to be a way to prevent this compiler from
16694             # explicitly linking system object files so we need to strip them
16695             # from the output so that they don't get included in the library
16696             # dependencies.
16697             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16698             ;;
16699           *)
16700             if test yes = "$GXX"; then
16701               if test no = "$with_gnu_ld"; then
16702                 case $host_cpu in
16703                   hppa*64*)
16704                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16705                     ;;
16706                   ia64*)
16707                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16708                     ;;
16709                   *)
16710                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16711                     ;;
16712                 esac
16713               fi
16714             else
16715               # FIXME: insert proper C++ library support
16716               ld_shlibs_CXX=no
16717             fi
16718             ;;
16719         esac
16720         ;;
16721
16722       interix[3-9]*)
16723         hardcode_direct_CXX=no
16724         hardcode_shlibpath_var_CXX=no
16725         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16726         export_dynamic_flag_spec_CXX='$wl-E'
16727         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16728         # Instead, shared libraries are loaded at an image base (0x10000000 by
16729         # default) and relocated if they conflict, which is a slow very memory
16730         # consuming and fragmenting process.  To avoid this, we pick a random,
16731         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16732         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16733         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16734         archive_expsym_cmds_CXX='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'
16735         ;;
16736       irix5* | irix6*)
16737         case $cc_basename in
16738           CC*)
16739             # SGI C++
16740             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16741
16742             # Archives containing C++ object files must be created using
16743             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16744             # necessary to make sure instantiated templates are included
16745             # in the archive.
16746             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16747             ;;
16748           *)
16749             if test yes = "$GXX"; then
16750               if test no = "$with_gnu_ld"; then
16751                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16752               else
16753                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16754               fi
16755             fi
16756             link_all_deplibs_CXX=yes
16757             ;;
16758         esac
16759         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16760         hardcode_libdir_separator_CXX=:
16761         inherit_rpath_CXX=yes
16762         ;;
16763
16764       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16765         case $cc_basename in
16766           KCC*)
16767             # Kuck and Associates, Inc. (KAI) C++ Compiler
16768
16769             # KCC will only create a shared library if the output file
16770             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16771             # to its proper name (with version) after linking.
16772             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16773             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16774             # Commands to make compiler produce verbose output that lists
16775             # what "hidden" libraries, object files and flags are used when
16776             # linking a shared library.
16777             #
16778             # There doesn't appear to be a way to prevent this compiler from
16779             # explicitly linking system object files so we need to strip them
16780             # from the output so that they don't get included in the library
16781             # dependencies.
16782             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16783
16784             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16785             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16786
16787             # Archives containing C++ object files must be created using
16788             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16789             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16790             ;;
16791           icpc* | ecpc* )
16792             # Intel C++
16793             with_gnu_ld=yes
16794             # version 8.0 and above of icpc choke on multiply defined symbols
16795             # if we add $predep_objects and $postdep_objects, however 7.1 and
16796             # earlier do not add the objects themselves.
16797             case `$CC -V 2>&1` in
16798               *"Version 7."*)
16799                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16800                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16801                 ;;
16802               *)  # Version 8.0 or newer
16803                 tmp_idyn=
16804                 case $host_cpu in
16805                   ia64*) tmp_idyn=' -i_dynamic';;
16806                 esac
16807                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16808                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16809                 ;;
16810             esac
16811             archive_cmds_need_lc_CXX=no
16812             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16813             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16814             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16815             ;;
16816           pgCC* | pgcpp*)
16817             # Portland Group C++ compiler
16818             case `$CC -V` in
16819             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16820               prelink_cmds_CXX='tpldir=Template.dir~
16821                rm -rf $tpldir~
16822                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16823                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16824               old_archive_cmds_CXX='tpldir=Template.dir~
16825                 rm -rf $tpldir~
16826                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16827                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16828                 $RANLIB $oldlib'
16829               archive_cmds_CXX='tpldir=Template.dir~
16830                 rm -rf $tpldir~
16831                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16832                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16833               archive_expsym_cmds_CXX='tpldir=Template.dir~
16834                 rm -rf $tpldir~
16835                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16836                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16837               ;;
16838             *) # Version 6 and above use weak symbols
16839               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16840               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16841               ;;
16842             esac
16843
16844             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16845             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16846             whole_archive_flag_spec_CXX='$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'
16847             ;;
16848           cxx*)
16849             # Compaq C++
16850             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16851             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
16852
16853             runpath_var=LD_RUN_PATH
16854             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16855             hardcode_libdir_separator_CXX=:
16856
16857             # Commands to make compiler produce verbose output that lists
16858             # what "hidden" libraries, object files and flags are used when
16859             # linking a shared library.
16860             #
16861             # There doesn't appear to be a way to prevent this compiler from
16862             # explicitly linking system object files so we need to strip them
16863             # from the output so that they don't get included in the library
16864             # dependencies.
16865             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16866             ;;
16867           xl* | mpixl* | bgxl*)
16868             # IBM XL 8.0 on PPC, with GNU ld
16869             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16870             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16871             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16872             if test yes = "$supports_anon_versioning"; then
16873               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16874                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16875                 echo "local: *; };" >> $output_objdir/$libname.ver~
16876                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16877             fi
16878             ;;
16879           *)
16880             case `$CC -V 2>&1 | sed 5q` in
16881             *Sun\ C*)
16882               # Sun C++ 5.9
16883               no_undefined_flag_CXX=' -zdefs'
16884               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16885               archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16886               hardcode_libdir_flag_spec_CXX='-R$libdir'
16887               whole_archive_flag_spec_CXX='$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'
16888               compiler_needs_object_CXX=yes
16889
16890               # Not sure whether something based on
16891               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16892               # would be better.
16893               output_verbose_link_cmd='func_echo_all'
16894
16895               # Archives containing C++ object files must be created using
16896               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16897               # necessary to make sure instantiated templates are included
16898               # in the archive.
16899               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16900               ;;
16901             esac
16902             ;;
16903         esac
16904         ;;
16905
16906       lynxos*)
16907         # FIXME: insert proper C++ library support
16908         ld_shlibs_CXX=no
16909         ;;
16910
16911       m88k*)
16912         # FIXME: insert proper C++ library support
16913         ld_shlibs_CXX=no
16914         ;;
16915
16916       mvs*)
16917         case $cc_basename in
16918           cxx*)
16919             # FIXME: insert proper C++ library support
16920             ld_shlibs_CXX=no
16921             ;;
16922           *)
16923             # FIXME: insert proper C++ library support
16924             ld_shlibs_CXX=no
16925             ;;
16926         esac
16927         ;;
16928
16929       netbsd*)
16930         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16931           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16932           wlarc=
16933           hardcode_libdir_flag_spec_CXX='-R$libdir'
16934           hardcode_direct_CXX=yes
16935           hardcode_shlibpath_var_CXX=no
16936         fi
16937         # Workaround some broken pre-1.5 toolchains
16938         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16939         ;;
16940
16941       *nto* | *qnx*)
16942         ld_shlibs_CXX=yes
16943         ;;
16944
16945       openbsd* | bitrig*)
16946         if test -f /usr/libexec/ld.so; then
16947           hardcode_direct_CXX=yes
16948           hardcode_shlibpath_var_CXX=no
16949           hardcode_direct_absolute_CXX=yes
16950           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16951           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16952           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16953             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16954             export_dynamic_flag_spec_CXX='$wl-E'
16955             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16956           fi
16957           output_verbose_link_cmd=func_echo_all
16958         else
16959           ld_shlibs_CXX=no
16960         fi
16961         ;;
16962
16963       osf3* | osf4* | osf5*)
16964         case $cc_basename in
16965           KCC*)
16966             # Kuck and Associates, Inc. (KAI) C++ Compiler
16967
16968             # KCC will only create a shared library if the output file
16969             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16970             # to its proper name (with version) after linking.
16971             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16972
16973             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16974             hardcode_libdir_separator_CXX=:
16975
16976             # Archives containing C++ object files must be created using
16977             # the KAI C++ compiler.
16978             case $host in
16979               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16980               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16981             esac
16982             ;;
16983           RCC*)
16984             # Rational C++ 2.4.1
16985             # FIXME: insert proper C++ library support
16986             ld_shlibs_CXX=no
16987             ;;
16988           cxx*)
16989             case $host in
16990               osf3*)
16991                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16992                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16993                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16994                 ;;
16995               *)
16996                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16997                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16998                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16999                   echo "-hidden">> $lib.exp~
17000                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17001                   $RM $lib.exp'
17002                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17003                 ;;
17004             esac
17005
17006             hardcode_libdir_separator_CXX=:
17007
17008             # Commands to make compiler produce verbose output that lists
17009             # what "hidden" libraries, object files and flags are used when
17010             # linking a shared library.
17011             #
17012             # There doesn't appear to be a way to prevent this compiler from
17013             # explicitly linking system object files so we need to strip them
17014             # from the output so that they don't get included in the library
17015             # dependencies.
17016             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17017             ;;
17018           *)
17019             if test yes,no = "$GXX,$with_gnu_ld"; then
17020               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17021               case $host in
17022                 osf3*)
17023                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17024                   ;;
17025                 *)
17026                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17027                   ;;
17028               esac
17029
17030               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17031               hardcode_libdir_separator_CXX=:
17032
17033               # Commands to make compiler produce verbose output that lists
17034               # what "hidden" libraries, object files and flags are used when
17035               # linking a shared library.
17036               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17037
17038             else
17039               # FIXME: insert proper C++ library support
17040               ld_shlibs_CXX=no
17041             fi
17042             ;;
17043         esac
17044         ;;
17045
17046       psos*)
17047         # FIXME: insert proper C++ library support
17048         ld_shlibs_CXX=no
17049         ;;
17050
17051       sunos4*)
17052         case $cc_basename in
17053           CC*)
17054             # Sun C++ 4.x
17055             # FIXME: insert proper C++ library support
17056             ld_shlibs_CXX=no
17057             ;;
17058           lcc*)
17059             # Lucid
17060             # FIXME: insert proper C++ library support
17061             ld_shlibs_CXX=no
17062             ;;
17063           *)
17064             # FIXME: insert proper C++ library support
17065             ld_shlibs_CXX=no
17066             ;;
17067         esac
17068         ;;
17069
17070       solaris*)
17071         case $cc_basename in
17072           CC* | sunCC*)
17073             # Sun C++ 4.2, 5.x and Centerline C++
17074             archive_cmds_need_lc_CXX=yes
17075             no_undefined_flag_CXX=' -zdefs'
17076             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17077             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17078               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17079
17080             hardcode_libdir_flag_spec_CXX='-R$libdir'
17081             hardcode_shlibpath_var_CXX=no
17082             case $host_os in
17083               solaris2.[0-5] | solaris2.[0-5].*) ;;
17084               *)
17085                 # The compiler driver will combine and reorder linker options,
17086                 # but understands '-z linker_flag'.
17087                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17088                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17089                 ;;
17090             esac
17091             link_all_deplibs_CXX=yes
17092
17093             output_verbose_link_cmd='func_echo_all'
17094
17095             # Archives containing C++ object files must be created using
17096             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17097             # necessary to make sure instantiated templates are included
17098             # in the archive.
17099             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17100             ;;
17101           gcx*)
17102             # Green Hills C++ Compiler
17103             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17104
17105             # The C++ compiler must be used to create the archive.
17106             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17107             ;;
17108           *)
17109             # GNU C++ compiler with Solaris linker
17110             if test yes,no = "$GXX,$with_gnu_ld"; then
17111               no_undefined_flag_CXX=' $wl-z ${wl}defs'
17112               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17113                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17114                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17115                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17116
17117                 # Commands to make compiler produce verbose output that lists
17118                 # what "hidden" libraries, object files and flags are used when
17119                 # linking a shared library.
17120                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17121               else
17122                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17123                 # platform.
17124                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17125                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17126                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17127
17128                 # Commands to make compiler produce verbose output that lists
17129                 # what "hidden" libraries, object files and flags are used when
17130                 # linking a shared library.
17131                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17132               fi
17133
17134               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17135               case $host_os in
17136                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17137                 *)
17138                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17139                   ;;
17140               esac
17141             fi
17142             ;;
17143         esac
17144         ;;
17145
17146     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17147       no_undefined_flag_CXX='$wl-z,text'
17148       archive_cmds_need_lc_CXX=no
17149       hardcode_shlibpath_var_CXX=no
17150       runpath_var='LD_RUN_PATH'
17151
17152       case $cc_basename in
17153         CC*)
17154           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17155           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17156           ;;
17157         *)
17158           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17159           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17160           ;;
17161       esac
17162       ;;
17163
17164       sysv5* | sco3.2v5* | sco5v6*)
17165         # Note: We CANNOT use -z defs as we might desire, because we do not
17166         # link with -lc, and that would cause any symbols used from libc to
17167         # always be unresolved, which means just about no library would
17168         # ever link correctly.  If we're not using GNU ld we use -z text
17169         # though, which does catch some bad symbols but isn't as heavy-handed
17170         # as -z defs.
17171         no_undefined_flag_CXX='$wl-z,text'
17172         allow_undefined_flag_CXX='$wl-z,nodefs'
17173         archive_cmds_need_lc_CXX=no
17174         hardcode_shlibpath_var_CXX=no
17175         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17176         hardcode_libdir_separator_CXX=':'
17177         link_all_deplibs_CXX=yes
17178         export_dynamic_flag_spec_CXX='$wl-Bexport'
17179         runpath_var='LD_RUN_PATH'
17180
17181         case $cc_basename in
17182           CC*)
17183             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17186               '"$old_archive_cmds_CXX"
17187             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17188               '"$reload_cmds_CXX"
17189             ;;
17190           *)
17191             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17192             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17193             ;;
17194         esac
17195       ;;
17196
17197       tandem*)
17198         case $cc_basename in
17199           NCC*)
17200             # NonStop-UX NCC 3.20
17201             # FIXME: insert proper C++ library support
17202             ld_shlibs_CXX=no
17203             ;;
17204           *)
17205             # FIXME: insert proper C++ library support
17206             ld_shlibs_CXX=no
17207             ;;
17208         esac
17209         ;;
17210
17211       vxworks*)
17212         # FIXME: insert proper C++ library support
17213         ld_shlibs_CXX=no
17214         ;;
17215
17216       *)
17217         # FIXME: insert proper C++ library support
17218         ld_shlibs_CXX=no
17219         ;;
17220     esac
17221
17222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17223 $as_echo "$ld_shlibs_CXX" >&6; }
17224     test no = "$ld_shlibs_CXX" && can_build_shared=no
17225
17226     GCC_CXX=$GXX
17227     LD_CXX=$LD
17228
17229     ## CAVEAT EMPTOR:
17230     ## There is no encapsulation within the following macros, do not change
17231     ## the running order or otherwise move them around unless you know exactly
17232     ## what you are doing...
17233     # Dependencies to place before and after the object being linked:
17234 predep_objects_CXX=
17235 postdep_objects_CXX=
17236 predeps_CXX=
17237 postdeps_CXX=
17238 compiler_lib_search_path_CXX=
17239
17240 cat > conftest.$ac_ext <<_LT_EOF
17241 class Foo
17242 {
17243 public:
17244   Foo (void) { a = 0; }
17245 private:
17246   int a;
17247 };
17248 _LT_EOF
17249
17250
17251 _lt_libdeps_save_CFLAGS=$CFLAGS
17252 case "$CC $CFLAGS " in #(
17253 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17254 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17255 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17256 esac
17257
17258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17259   (eval $ac_compile) 2>&5
17260   ac_status=$?
17261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17262   test $ac_status = 0; }; then
17263   # Parse the compiler output and extract the necessary
17264   # objects, libraries and library flags.
17265
17266   # Sentinel used to keep track of whether or not we are before
17267   # the conftest object file.
17268   pre_test_object_deps_done=no
17269
17270   for p in `eval "$output_verbose_link_cmd"`; do
17271     case $prev$p in
17272
17273     -L* | -R* | -l*)
17274        # Some compilers place space between "-{L,R}" and the path.
17275        # Remove the space.
17276        if test x-L = "$p" ||
17277           test x-R = "$p"; then
17278          prev=$p
17279          continue
17280        fi
17281
17282        # Expand the sysroot to ease extracting the directories later.
17283        if test -z "$prev"; then
17284          case $p in
17285          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17286          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17287          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17288          esac
17289        fi
17290        case $p in
17291        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17292        esac
17293        if test no = "$pre_test_object_deps_done"; then
17294          case $prev in
17295          -L | -R)
17296            # Internal compiler library paths should come after those
17297            # provided the user.  The postdeps already come after the
17298            # user supplied libs so there is no need to process them.
17299            if test -z "$compiler_lib_search_path_CXX"; then
17300              compiler_lib_search_path_CXX=$prev$p
17301            else
17302              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17303            fi
17304            ;;
17305          # The "-l" case would never come before the object being
17306          # linked, so don't bother handling this case.
17307          esac
17308        else
17309          if test -z "$postdeps_CXX"; then
17310            postdeps_CXX=$prev$p
17311          else
17312            postdeps_CXX="${postdeps_CXX} $prev$p"
17313          fi
17314        fi
17315        prev=
17316        ;;
17317
17318     *.lto.$objext) ;; # Ignore GCC LTO objects
17319     *.$objext)
17320        # This assumes that the test object file only shows up
17321        # once in the compiler output.
17322        if test "$p" = "conftest.$objext"; then
17323          pre_test_object_deps_done=yes
17324          continue
17325        fi
17326
17327        if test no = "$pre_test_object_deps_done"; then
17328          if test -z "$predep_objects_CXX"; then
17329            predep_objects_CXX=$p
17330          else
17331            predep_objects_CXX="$predep_objects_CXX $p"
17332          fi
17333        else
17334          if test -z "$postdep_objects_CXX"; then
17335            postdep_objects_CXX=$p
17336          else
17337            postdep_objects_CXX="$postdep_objects_CXX $p"
17338          fi
17339        fi
17340        ;;
17341
17342     *) ;; # Ignore the rest.
17343
17344     esac
17345   done
17346
17347   # Clean up.
17348   rm -f a.out a.exe
17349 else
17350   echo "libtool.m4: error: problem compiling CXX test program"
17351 fi
17352
17353 $RM -f confest.$objext
17354 CFLAGS=$_lt_libdeps_save_CFLAGS
17355
17356 # PORTME: override above test on systems where it is broken
17357 case $host_os in
17358 interix[3-9]*)
17359   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17360   # hack all around it, let's just trust "g++" to DTRT.
17361   predep_objects_CXX=
17362   postdep_objects_CXX=
17363   postdeps_CXX=
17364   ;;
17365 esac
17366
17367
17368 case " $postdeps_CXX " in
17369 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17370 esac
17371  compiler_lib_search_dirs_CXX=
17372 if test -n "${compiler_lib_search_path_CXX}"; then
17373  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17374 fi
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406     lt_prog_compiler_wl_CXX=
17407 lt_prog_compiler_pic_CXX=
17408 lt_prog_compiler_static_CXX=
17409
17410
17411   # C++ specific cases for pic, static, wl, etc.
17412   if test yes = "$GXX"; then
17413     lt_prog_compiler_wl_CXX='-Wl,'
17414     lt_prog_compiler_static_CXX='-static'
17415
17416     case $host_os in
17417     aix*)
17418       # All AIX code is PIC.
17419       if test ia64 = "$host_cpu"; then
17420         # AIX 5 now supports IA64 processor
17421         lt_prog_compiler_static_CXX='-Bstatic'
17422       fi
17423       lt_prog_compiler_pic_CXX='-fPIC'
17424       ;;
17425
17426     amigaos*)
17427       case $host_cpu in
17428       powerpc)
17429             # see comment about AmigaOS4 .so support
17430             lt_prog_compiler_pic_CXX='-fPIC'
17431         ;;
17432       m68k)
17433             # FIXME: we need at least 68020 code to build shared libraries, but
17434             # adding the '-m68020' flag to GCC prevents building anything better,
17435             # like '-m68040'.
17436             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17437         ;;
17438       esac
17439       ;;
17440
17441     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17442       # PIC is the default for these OSes.
17443       ;;
17444     mingw* | cygwin* | os2* | pw32* | cegcc*)
17445       # This hack is so that the source file can tell whether it is being
17446       # built for inclusion in a dll (and should export symbols for example).
17447       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17448       # (--disable-auto-import) libraries
17449       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17450       case $host_os in
17451       os2*)
17452         lt_prog_compiler_static_CXX='$wl-static'
17453         ;;
17454       esac
17455       ;;
17456     darwin* | rhapsody*)
17457       # PIC is the default on this platform
17458       # Common symbols not allowed in MH_DYLIB files
17459       lt_prog_compiler_pic_CXX='-fno-common'
17460       ;;
17461     *djgpp*)
17462       # DJGPP does not support shared libraries at all
17463       lt_prog_compiler_pic_CXX=
17464       ;;
17465     haiku*)
17466       # PIC is the default for Haiku.
17467       # The "-static" flag exists, but is broken.
17468       lt_prog_compiler_static_CXX=
17469       ;;
17470     interix[3-9]*)
17471       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17472       # Instead, we relocate shared libraries at runtime.
17473       ;;
17474     sysv4*MP*)
17475       if test -d /usr/nec; then
17476         lt_prog_compiler_pic_CXX=-Kconform_pic
17477       fi
17478       ;;
17479     hpux*)
17480       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17481       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17482       # sets the default TLS model and affects inlining.
17483       case $host_cpu in
17484       hppa*64*)
17485         ;;
17486       *)
17487         lt_prog_compiler_pic_CXX='-fPIC'
17488         ;;
17489       esac
17490       ;;
17491     *qnx* | *nto*)
17492       # QNX uses GNU C++, but need to define -shared option too, otherwise
17493       # it will coredump.
17494       lt_prog_compiler_pic_CXX='-fPIC -shared'
17495       ;;
17496     *)
17497       lt_prog_compiler_pic_CXX='-fPIC'
17498       ;;
17499     esac
17500   else
17501     case $host_os in
17502       aix[4-9]*)
17503         # All AIX code is PIC.
17504         if test ia64 = "$host_cpu"; then
17505           # AIX 5 now supports IA64 processor
17506           lt_prog_compiler_static_CXX='-Bstatic'
17507         else
17508           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17509         fi
17510         ;;
17511       chorus*)
17512         case $cc_basename in
17513         cxch68*)
17514           # Green Hills C++ Compiler
17515           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17516           ;;
17517         esac
17518         ;;
17519       mingw* | cygwin* | os2* | pw32* | cegcc*)
17520         # This hack is so that the source file can tell whether it is being
17521         # built for inclusion in a dll (and should export symbols for example).
17522         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17523         ;;
17524       dgux*)
17525         case $cc_basename in
17526           ec++*)
17527             lt_prog_compiler_pic_CXX='-KPIC'
17528             ;;
17529           ghcx*)
17530             # Green Hills C++ Compiler
17531             lt_prog_compiler_pic_CXX='-pic'
17532             ;;
17533           *)
17534             ;;
17535         esac
17536         ;;
17537       freebsd* | dragonfly*)
17538         # FreeBSD uses GNU C++
17539         ;;
17540       hpux9* | hpux10* | hpux11*)
17541         case $cc_basename in
17542           CC*)
17543             lt_prog_compiler_wl_CXX='-Wl,'
17544             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17545             if test ia64 != "$host_cpu"; then
17546               lt_prog_compiler_pic_CXX='+Z'
17547             fi
17548             ;;
17549           aCC*)
17550             lt_prog_compiler_wl_CXX='-Wl,'
17551             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17552             case $host_cpu in
17553             hppa*64*|ia64*)
17554               # +Z the default
17555               ;;
17556             *)
17557               lt_prog_compiler_pic_CXX='+Z'
17558               ;;
17559             esac
17560             ;;
17561           *)
17562             ;;
17563         esac
17564         ;;
17565       interix*)
17566         # This is c89, which is MS Visual C++ (no shared libs)
17567         # Anyone wants to do a port?
17568         ;;
17569       irix5* | irix6* | nonstopux*)
17570         case $cc_basename in
17571           CC*)
17572             lt_prog_compiler_wl_CXX='-Wl,'
17573             lt_prog_compiler_static_CXX='-non_shared'
17574             # CC pic flag -KPIC is the default.
17575             ;;
17576           *)
17577             ;;
17578         esac
17579         ;;
17580       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17581         case $cc_basename in
17582           KCC*)
17583             # KAI C++ Compiler
17584             lt_prog_compiler_wl_CXX='--backend -Wl,'
17585             lt_prog_compiler_pic_CXX='-fPIC'
17586             ;;
17587           ecpc* )
17588             # old Intel C++ for x86_64, which still supported -KPIC.
17589             lt_prog_compiler_wl_CXX='-Wl,'
17590             lt_prog_compiler_pic_CXX='-KPIC'
17591             lt_prog_compiler_static_CXX='-static'
17592             ;;
17593           icpc* )
17594             # Intel C++, used to be incompatible with GCC.
17595             # ICC 10 doesn't accept -KPIC any more.
17596             lt_prog_compiler_wl_CXX='-Wl,'
17597             lt_prog_compiler_pic_CXX='-fPIC'
17598             lt_prog_compiler_static_CXX='-static'
17599             ;;
17600           pgCC* | pgcpp*)
17601             # Portland Group C++ compiler
17602             lt_prog_compiler_wl_CXX='-Wl,'
17603             lt_prog_compiler_pic_CXX='-fpic'
17604             lt_prog_compiler_static_CXX='-Bstatic'
17605             ;;
17606           cxx*)
17607             # Compaq C++
17608             # Make sure the PIC flag is empty.  It appears that all Alpha
17609             # Linux and Compaq Tru64 Unix objects are PIC.
17610             lt_prog_compiler_pic_CXX=
17611             lt_prog_compiler_static_CXX='-non_shared'
17612             ;;
17613           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17614             # IBM XL 8.0, 9.0 on PPC and BlueGene
17615             lt_prog_compiler_wl_CXX='-Wl,'
17616             lt_prog_compiler_pic_CXX='-qpic'
17617             lt_prog_compiler_static_CXX='-qstaticlink'
17618             ;;
17619           *)
17620             case `$CC -V 2>&1 | sed 5q` in
17621             *Sun\ C*)
17622               # Sun C++ 5.9
17623               lt_prog_compiler_pic_CXX='-KPIC'
17624               lt_prog_compiler_static_CXX='-Bstatic'
17625               lt_prog_compiler_wl_CXX='-Qoption ld '
17626               ;;
17627             esac
17628             ;;
17629         esac
17630         ;;
17631       lynxos*)
17632         ;;
17633       m88k*)
17634         ;;
17635       mvs*)
17636         case $cc_basename in
17637           cxx*)
17638             lt_prog_compiler_pic_CXX='-W c,exportall'
17639             ;;
17640           *)
17641             ;;
17642         esac
17643         ;;
17644       netbsd* | netbsdelf*-gnu)
17645         ;;
17646       *qnx* | *nto*)
17647         # QNX uses GNU C++, but need to define -shared option too, otherwise
17648         # it will coredump.
17649         lt_prog_compiler_pic_CXX='-fPIC -shared'
17650         ;;
17651       osf3* | osf4* | osf5*)
17652         case $cc_basename in
17653           KCC*)
17654             lt_prog_compiler_wl_CXX='--backend -Wl,'
17655             ;;
17656           RCC*)
17657             # Rational C++ 2.4.1
17658             lt_prog_compiler_pic_CXX='-pic'
17659             ;;
17660           cxx*)
17661             # Digital/Compaq C++
17662             lt_prog_compiler_wl_CXX='-Wl,'
17663             # Make sure the PIC flag is empty.  It appears that all Alpha
17664             # Linux and Compaq Tru64 Unix objects are PIC.
17665             lt_prog_compiler_pic_CXX=
17666             lt_prog_compiler_static_CXX='-non_shared'
17667             ;;
17668           *)
17669             ;;
17670         esac
17671         ;;
17672       psos*)
17673         ;;
17674       solaris*)
17675         case $cc_basename in
17676           CC* | sunCC*)
17677             # Sun C++ 4.2, 5.x and Centerline C++
17678             lt_prog_compiler_pic_CXX='-KPIC'
17679             lt_prog_compiler_static_CXX='-Bstatic'
17680             lt_prog_compiler_wl_CXX='-Qoption ld '
17681             ;;
17682           gcx*)
17683             # Green Hills C++ Compiler
17684             lt_prog_compiler_pic_CXX='-PIC'
17685             ;;
17686           *)
17687             ;;
17688         esac
17689         ;;
17690       sunos4*)
17691         case $cc_basename in
17692           CC*)
17693             # Sun C++ 4.x
17694             lt_prog_compiler_pic_CXX='-pic'
17695             lt_prog_compiler_static_CXX='-Bstatic'
17696             ;;
17697           lcc*)
17698             # Lucid
17699             lt_prog_compiler_pic_CXX='-pic'
17700             ;;
17701           *)
17702             ;;
17703         esac
17704         ;;
17705       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17706         case $cc_basename in
17707           CC*)
17708             lt_prog_compiler_wl_CXX='-Wl,'
17709             lt_prog_compiler_pic_CXX='-KPIC'
17710             lt_prog_compiler_static_CXX='-Bstatic'
17711             ;;
17712         esac
17713         ;;
17714       tandem*)
17715         case $cc_basename in
17716           NCC*)
17717             # NonStop-UX NCC 3.20
17718             lt_prog_compiler_pic_CXX='-KPIC'
17719             ;;
17720           *)
17721             ;;
17722         esac
17723         ;;
17724       vxworks*)
17725         ;;
17726       *)
17727         lt_prog_compiler_can_build_shared_CXX=no
17728         ;;
17729     esac
17730   fi
17731
17732 case $host_os in
17733   # For platforms that do not support PIC, -DPIC is meaningless:
17734   *djgpp*)
17735     lt_prog_compiler_pic_CXX=
17736     ;;
17737   *)
17738     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17739     ;;
17740 esac
17741
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17744 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17745   $as_echo_n "(cached) " >&6
17746 else
17747   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17748 fi
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17750 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17751 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17752
17753 #
17754 # Check to make sure the PIC flag actually works.
17755 #
17756 if test -n "$lt_prog_compiler_pic_CXX"; then
17757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17758 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17759 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17760   $as_echo_n "(cached) " >&6
17761 else
17762   lt_cv_prog_compiler_pic_works_CXX=no
17763    ac_outfile=conftest.$ac_objext
17764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17765    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17766    # Insert the option either (1) after the last *FLAGS variable, or
17767    # (2) before a word containing "conftest.", or (3) at the end.
17768    # Note that $ac_compile itself does not contain backslashes and begins
17769    # with a dollar sign (not a hyphen), so the echo should work correctly.
17770    # The option is referenced via a variable to avoid confusing sed.
17771    lt_compile=`echo "$ac_compile" | $SED \
17772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17774    -e 's:$: $lt_compiler_flag:'`
17775    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17776    (eval "$lt_compile" 2>conftest.err)
17777    ac_status=$?
17778    cat conftest.err >&5
17779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780    if (exit $ac_status) && test -s "$ac_outfile"; then
17781      # The compiler can only warn and ignore the option if not recognized
17782      # So say no if there are warnings other than the usual output.
17783      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17784      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17785      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17786        lt_cv_prog_compiler_pic_works_CXX=yes
17787      fi
17788    fi
17789    $RM conftest*
17790
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17793 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17794
17795 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17796     case $lt_prog_compiler_pic_CXX in
17797      "" | " "*) ;;
17798      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17799      esac
17800 else
17801     lt_prog_compiler_pic_CXX=
17802      lt_prog_compiler_can_build_shared_CXX=no
17803 fi
17804
17805 fi
17806
17807
17808
17809
17810
17811 #
17812 # Check to make sure the static flag actually works.
17813 #
17814 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17816 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17817 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   lt_cv_prog_compiler_static_works_CXX=no
17821    save_LDFLAGS=$LDFLAGS
17822    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17823    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17824    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17825      # The linker can only warn and ignore the option if not recognized
17826      # So say no if there are warnings
17827      if test -s conftest.err; then
17828        # Append any errors to the config.log.
17829        cat conftest.err 1>&5
17830        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17831        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17832        if diff conftest.exp conftest.er2 >/dev/null; then
17833          lt_cv_prog_compiler_static_works_CXX=yes
17834        fi
17835      else
17836        lt_cv_prog_compiler_static_works_CXX=yes
17837      fi
17838    fi
17839    $RM -r conftest*
17840    LDFLAGS=$save_LDFLAGS
17841
17842 fi
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17844 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17845
17846 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17847     :
17848 else
17849     lt_prog_compiler_static_CXX=
17850 fi
17851
17852
17853
17854
17855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17857 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17858   $as_echo_n "(cached) " >&6
17859 else
17860   lt_cv_prog_compiler_c_o_CXX=no
17861    $RM -r conftest 2>/dev/null
17862    mkdir conftest
17863    cd conftest
17864    mkdir out
17865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17866
17867    lt_compiler_flag="-o out/conftest2.$ac_objext"
17868    # Insert the option either (1) after the last *FLAGS variable, or
17869    # (2) before a word containing "conftest.", or (3) at the end.
17870    # Note that $ac_compile itself does not contain backslashes and begins
17871    # with a dollar sign (not a hyphen), so the echo should work correctly.
17872    lt_compile=`echo "$ac_compile" | $SED \
17873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17875    -e 's:$: $lt_compiler_flag:'`
17876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17877    (eval "$lt_compile" 2>out/conftest.err)
17878    ac_status=$?
17879    cat out/conftest.err >&5
17880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17882    then
17883      # The compiler can only warn and ignore the option if not recognized
17884      # So say no if there are warnings
17885      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17888        lt_cv_prog_compiler_c_o_CXX=yes
17889      fi
17890    fi
17891    chmod u+w . 2>&5
17892    $RM conftest*
17893    # SGI C++ compiler will create directory out/ii_files/ for
17894    # template instantiation
17895    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17896    $RM out/* && rmdir out
17897    cd ..
17898    $RM -r conftest
17899    $RM conftest*
17900
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17904
17905
17906
17907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17909 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17910   $as_echo_n "(cached) " >&6
17911 else
17912   lt_cv_prog_compiler_c_o_CXX=no
17913    $RM -r conftest 2>/dev/null
17914    mkdir conftest
17915    cd conftest
17916    mkdir out
17917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17918
17919    lt_compiler_flag="-o out/conftest2.$ac_objext"
17920    # Insert the option either (1) after the last *FLAGS variable, or
17921    # (2) before a word containing "conftest.", or (3) at the end.
17922    # Note that $ac_compile itself does not contain backslashes and begins
17923    # with a dollar sign (not a hyphen), so the echo should work correctly.
17924    lt_compile=`echo "$ac_compile" | $SED \
17925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17927    -e 's:$: $lt_compiler_flag:'`
17928    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17929    (eval "$lt_compile" 2>out/conftest.err)
17930    ac_status=$?
17931    cat out/conftest.err >&5
17932    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17934    then
17935      # The compiler can only warn and ignore the option if not recognized
17936      # So say no if there are warnings
17937      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17940        lt_cv_prog_compiler_c_o_CXX=yes
17941      fi
17942    fi
17943    chmod u+w . 2>&5
17944    $RM conftest*
17945    # SGI C++ compiler will create directory out/ii_files/ for
17946    # template instantiation
17947    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17948    $RM out/* && rmdir out
17949    cd ..
17950    $RM -r conftest
17951    $RM conftest*
17952
17953 fi
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17955 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17956
17957
17958
17959
17960 hard_links=nottested
17961 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17962   # do not overwrite the value of need_locks provided by the user
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17964 $as_echo_n "checking if we can lock with hard links... " >&6; }
17965   hard_links=yes
17966   $RM conftest*
17967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17968   touch conftest.a
17969   ln conftest.a conftest.b 2>&5 || hard_links=no
17970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17972 $as_echo "$hard_links" >&6; }
17973   if test no = "$hard_links"; then
17974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17975 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17976     need_locks=warn
17977   fi
17978 else
17979   need_locks=no
17980 fi
17981
17982
17983
17984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17986
17987   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17988   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17989   case $host_os in
17990   aix[4-9]*)
17991     # If we're using GNU nm, then we don't want the "-C" option.
17992     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17993     # Without the "-l" option, or with the "-B" option, AIX nm treats
17994     # weak defined symbols like other global defined symbols, whereas
17995     # GNU nm marks them as "W".
17996     # While the 'weak' keyword is ignored in the Export File, we need
17997     # it in the Import File for the 'aix-soname' feature, so we have
17998     # to replace the "-B" option with "-P" for AIX nm.
17999     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18000       export_symbols_cmds_CXX='$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'
18001     else
18002       export_symbols_cmds_CXX='`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'
18003     fi
18004     ;;
18005   pw32*)
18006     export_symbols_cmds_CXX=$ltdll_cmds
18007     ;;
18008   cygwin* | mingw* | cegcc*)
18009     case $cc_basename in
18010     cl*)
18011       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18012       ;;
18013     *)
18014       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18015       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18016       ;;
18017     esac
18018     ;;
18019   linux* | k*bsd*-gnu | gnu*)
18020     link_all_deplibs_CXX=no
18021     ;;
18022   *)
18023     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18024     ;;
18025   esac
18026
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18028 $as_echo "$ld_shlibs_CXX" >&6; }
18029 test no = "$ld_shlibs_CXX" && can_build_shared=no
18030
18031 with_gnu_ld_CXX=$with_gnu_ld
18032
18033
18034
18035
18036
18037
18038 #
18039 # Do we need to explicitly link libc?
18040 #
18041 case "x$archive_cmds_need_lc_CXX" in
18042 x|xyes)
18043   # Assume -lc should be added
18044   archive_cmds_need_lc_CXX=yes
18045
18046   if test yes,yes = "$GCC,$enable_shared"; then
18047     case $archive_cmds_CXX in
18048     *'~'*)
18049       # FIXME: we may have to deal with multi-command sequences.
18050       ;;
18051     '$CC '*)
18052       # Test whether the compiler implicitly links with -lc since on some
18053       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18054       # to ld, don't add -lc before -lgcc.
18055       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18056 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18057 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18058   $as_echo_n "(cached) " >&6
18059 else
18060   $RM conftest*
18061         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18062
18063         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18064   (eval $ac_compile) 2>&5
18065   ac_status=$?
18066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18067   test $ac_status = 0; } 2>conftest.err; then
18068           soname=conftest
18069           lib=conftest
18070           libobjs=conftest.$ac_objext
18071           deplibs=
18072           wl=$lt_prog_compiler_wl_CXX
18073           pic_flag=$lt_prog_compiler_pic_CXX
18074           compiler_flags=-v
18075           linker_flags=-v
18076           verstring=
18077           output_objdir=.
18078           libname=conftest
18079           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18080           allow_undefined_flag_CXX=
18081           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18082   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18083   ac_status=$?
18084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18085   test $ac_status = 0; }
18086           then
18087             lt_cv_archive_cmds_need_lc_CXX=no
18088           else
18089             lt_cv_archive_cmds_need_lc_CXX=yes
18090           fi
18091           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18092         else
18093           cat conftest.err 1>&5
18094         fi
18095         $RM conftest*
18096
18097 fi
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18099 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18100       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18101       ;;
18102     esac
18103   fi
18104   ;;
18105 esac
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18169 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18170
18171 library_names_spec=
18172 libname_spec='lib$name'
18173 soname_spec=
18174 shrext_cmds=.so
18175 postinstall_cmds=
18176 postuninstall_cmds=
18177 finish_cmds=
18178 finish_eval=
18179 shlibpath_var=
18180 shlibpath_overrides_runpath=unknown
18181 version_type=none
18182 dynamic_linker="$host_os ld.so"
18183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18184 need_lib_prefix=unknown
18185 hardcode_into_libs=no
18186
18187 # when you set need_version to no, make sure it does not cause -set_version
18188 # flags to be left without arguments
18189 need_version=unknown
18190
18191
18192
18193 case $host_os in
18194 aix3*)
18195   version_type=linux # correct to gnu/linux during the next big refactor
18196   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18197   shlibpath_var=LIBPATH
18198
18199   # AIX 3 has no versioning support, so we append a major version to the name.
18200   soname_spec='$libname$release$shared_ext$major'
18201   ;;
18202
18203 aix[4-9]*)
18204   version_type=linux # correct to gnu/linux during the next big refactor
18205   need_lib_prefix=no
18206   need_version=no
18207   hardcode_into_libs=yes
18208   if test ia64 = "$host_cpu"; then
18209     # AIX 5 supports IA64
18210     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18211     shlibpath_var=LD_LIBRARY_PATH
18212   else
18213     # With GCC up to 2.95.x, collect2 would create an import file
18214     # for dependence libraries.  The import file would start with
18215     # the line '#! .'.  This would cause the generated library to
18216     # depend on '.', always an invalid library.  This was fixed in
18217     # development snapshots of GCC prior to 3.0.
18218     case $host_os in
18219       aix4 | aix4.[01] | aix4.[01].*)
18220       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18221            echo ' yes '
18222            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18223         :
18224       else
18225         can_build_shared=no
18226       fi
18227       ;;
18228     esac
18229     # Using Import Files as archive members, it is possible to support
18230     # filename-based versioning of shared library archives on AIX. While
18231     # this would work for both with and without runtime linking, it will
18232     # prevent static linking of such archives. So we do filename-based
18233     # shared library versioning with .so extension only, which is used
18234     # when both runtime linking and shared linking is enabled.
18235     # Unfortunately, runtime linking may impact performance, so we do
18236     # not want this to be the default eventually. Also, we use the
18237     # versioned .so libs for executables only if there is the -brtl
18238     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18239     # To allow for filename-based versioning support, we need to create
18240     # libNAME.so.V as an archive file, containing:
18241     # *) an Import File, referring to the versioned filename of the
18242     #    archive as well as the shared archive member, telling the
18243     #    bitwidth (32 or 64) of that shared object, and providing the
18244     #    list of exported symbols of that shared object, eventually
18245     #    decorated with the 'weak' keyword
18246     # *) the shared object with the F_LOADONLY flag set, to really avoid
18247     #    it being seen by the linker.
18248     # At run time we better use the real file rather than another symlink,
18249     # but for link time we create the symlink libNAME.so -> libNAME.so.V
18250
18251     case $with_aix_soname,$aix_use_runtimelinking in
18252     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18253     # soname into executable. Probably we can add versioning support to
18254     # collect2, so additional links can be useful in future.
18255     aix,yes) # traditional libtool
18256       dynamic_linker='AIX unversionable lib.so'
18257       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18258       # instead of lib<name>.a to let people know that these are not
18259       # typical AIX shared libraries.
18260       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18261       ;;
18262     aix,no) # traditional AIX only
18263       dynamic_linker='AIX lib.a(lib.so.V)'
18264       # We preserve .a as extension for shared libraries through AIX4.2
18265       # and later when we are not doing run time linking.
18266       library_names_spec='$libname$release.a $libname.a'
18267       soname_spec='$libname$release$shared_ext$major'
18268       ;;
18269     svr4,*) # full svr4 only
18270       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18271       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18272       # We do not specify a path in Import Files, so LIBPATH fires.
18273       shlibpath_overrides_runpath=yes
18274       ;;
18275     *,yes) # both, prefer svr4
18276       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18277       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18278       # unpreferred sharedlib libNAME.a needs extra handling
18279       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"'
18280       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"'
18281       # We do not specify a path in Import Files, so LIBPATH fires.
18282       shlibpath_overrides_runpath=yes
18283       ;;
18284     *,no) # both, prefer aix
18285       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18286       library_names_spec='$libname$release.a $libname.a'
18287       soname_spec='$libname$release$shared_ext$major'
18288       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18289       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)'
18290       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"'
18291       ;;
18292     esac
18293     shlibpath_var=LIBPATH
18294   fi
18295   ;;
18296
18297 amigaos*)
18298   case $host_cpu in
18299   powerpc)
18300     # Since July 2007 AmigaOS4 officially supports .so libraries.
18301     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18302     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18303     ;;
18304   m68k)
18305     library_names_spec='$libname.ixlibrary $libname.a'
18306     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18307     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'
18308     ;;
18309   esac
18310   ;;
18311
18312 beos*)
18313   library_names_spec='$libname$shared_ext'
18314   dynamic_linker="$host_os ld.so"
18315   shlibpath_var=LIBRARY_PATH
18316   ;;
18317
18318 bsdi[45]*)
18319   version_type=linux # correct to gnu/linux during the next big refactor
18320   need_version=no
18321   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18322   soname_spec='$libname$release$shared_ext$major'
18323   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18324   shlibpath_var=LD_LIBRARY_PATH
18325   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18326   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18327   # the default ld.so.conf also contains /usr/contrib/lib and
18328   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18329   # libtool to hard-code these into programs
18330   ;;
18331
18332 cygwin* | mingw* | pw32* | cegcc*)
18333   version_type=windows
18334   shrext_cmds=.dll
18335   need_version=no
18336   need_lib_prefix=no
18337
18338   case $GCC,$cc_basename in
18339   yes,*)
18340     # gcc
18341     library_names_spec='$libname.dll.a'
18342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18343     postinstall_cmds='base_file=`basename \$file`~
18344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18345       dldir=$destdir/`dirname \$dlpath`~
18346       test -d \$dldir || mkdir -p \$dldir~
18347       $install_prog $dir/$dlname \$dldir/$dlname~
18348       chmod a+x \$dldir/$dlname~
18349       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18350         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18351       fi'
18352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18353       dlpath=$dir/\$dldll~
18354        $RM \$dlpath'
18355     shlibpath_overrides_runpath=yes
18356
18357     case $host_os in
18358     cygwin*)
18359       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18360       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18361
18362       ;;
18363     mingw* | cegcc*)
18364       # MinGW DLLs use traditional 'lib' prefix
18365       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18366       ;;
18367     pw32*)
18368       # pw32 DLLs use 'pw' prefix rather than 'lib'
18369       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18370       ;;
18371     esac
18372     dynamic_linker='Win32 ld.exe'
18373     ;;
18374
18375   *,cl*)
18376     # Native MSVC
18377     libname_spec='$name'
18378     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18379     library_names_spec='$libname.dll.lib'
18380
18381     case $build_os in
18382     mingw*)
18383       sys_lib_search_path_spec=
18384       lt_save_ifs=$IFS
18385       IFS=';'
18386       for lt_path in $LIB
18387       do
18388         IFS=$lt_save_ifs
18389         # Let DOS variable expansion print the short 8.3 style file name.
18390         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18391         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18392       done
18393       IFS=$lt_save_ifs
18394       # Convert to MSYS style.
18395       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18396       ;;
18397     cygwin*)
18398       # Convert to unix form, then to dos form, then back to unix form
18399       # but this time dos style (no spaces!) so that the unix form looks
18400       # like /cygdrive/c/PROGRA~1:/cygdr...
18401       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18402       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18403       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18404       ;;
18405     *)
18406       sys_lib_search_path_spec=$LIB
18407       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18408         # It is most probably a Windows format PATH.
18409         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18410       else
18411         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18412       fi
18413       # FIXME: find the short name or the path components, as spaces are
18414       # common. (e.g. "Program Files" -> "PROGRA~1")
18415       ;;
18416     esac
18417
18418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18419     postinstall_cmds='base_file=`basename \$file`~
18420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18421       dldir=$destdir/`dirname \$dlpath`~
18422       test -d \$dldir || mkdir -p \$dldir~
18423       $install_prog $dir/$dlname \$dldir/$dlname'
18424     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18425       dlpath=$dir/\$dldll~
18426        $RM \$dlpath'
18427     shlibpath_overrides_runpath=yes
18428     dynamic_linker='Win32 link.exe'
18429     ;;
18430
18431   *)
18432     # Assume MSVC wrapper
18433     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18434     dynamic_linker='Win32 ld.exe'
18435     ;;
18436   esac
18437   # FIXME: first we should search . and the directory the executable is in
18438   shlibpath_var=PATH
18439   ;;
18440
18441 darwin* | rhapsody*)
18442   dynamic_linker="$host_os dyld"
18443   version_type=darwin
18444   need_lib_prefix=no
18445   need_version=no
18446   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18447   soname_spec='$libname$release$major$shared_ext'
18448   shlibpath_overrides_runpath=yes
18449   shlibpath_var=DYLD_LIBRARY_PATH
18450   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18451
18452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18453   ;;
18454
18455 dgux*)
18456   version_type=linux # correct to gnu/linux during the next big refactor
18457   need_lib_prefix=no
18458   need_version=no
18459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18460   soname_spec='$libname$release$shared_ext$major'
18461   shlibpath_var=LD_LIBRARY_PATH
18462   ;;
18463
18464 freebsd* | dragonfly*)
18465   # DragonFly does not have aout.  When/if they implement a new
18466   # versioning mechanism, adjust this.
18467   if test -x /usr/bin/objformat; then
18468     objformat=`/usr/bin/objformat`
18469   else
18470     case $host_os in
18471     freebsd[23].*) objformat=aout ;;
18472     *) objformat=elf ;;
18473     esac
18474   fi
18475   version_type=freebsd-$objformat
18476   case $version_type in
18477     freebsd-elf*)
18478       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18479       soname_spec='$libname$release$shared_ext$major'
18480       need_version=no
18481       need_lib_prefix=no
18482       ;;
18483     freebsd-*)
18484       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18485       need_version=yes
18486       ;;
18487   esac
18488   shlibpath_var=LD_LIBRARY_PATH
18489   case $host_os in
18490   freebsd2.*)
18491     shlibpath_overrides_runpath=yes
18492     ;;
18493   freebsd3.[01]* | freebsdelf3.[01]*)
18494     shlibpath_overrides_runpath=yes
18495     hardcode_into_libs=yes
18496     ;;
18497   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18498   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18499     shlibpath_overrides_runpath=no
18500     hardcode_into_libs=yes
18501     ;;
18502   *) # from 4.6 on, and DragonFly
18503     shlibpath_overrides_runpath=yes
18504     hardcode_into_libs=yes
18505     ;;
18506   esac
18507   ;;
18508
18509 haiku*)
18510   version_type=linux # correct to gnu/linux during the next big refactor
18511   need_lib_prefix=no
18512   need_version=no
18513   dynamic_linker="$host_os runtime_loader"
18514   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18515   soname_spec='$libname$release$shared_ext$major'
18516   shlibpath_var=LIBRARY_PATH
18517   shlibpath_overrides_runpath=no
18518   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18519   hardcode_into_libs=yes
18520   ;;
18521
18522 hpux9* | hpux10* | hpux11*)
18523   # Give a soname corresponding to the major version so that dld.sl refuses to
18524   # link against other versions.
18525   version_type=sunos
18526   need_lib_prefix=no
18527   need_version=no
18528   case $host_cpu in
18529   ia64*)
18530     shrext_cmds='.so'
18531     hardcode_into_libs=yes
18532     dynamic_linker="$host_os dld.so"
18533     shlibpath_var=LD_LIBRARY_PATH
18534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18535     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18536     soname_spec='$libname$release$shared_ext$major'
18537     if test 32 = "$HPUX_IA64_MODE"; then
18538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18539       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18540     else
18541       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18542       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18543     fi
18544     ;;
18545   hppa*64*)
18546     shrext_cmds='.sl'
18547     hardcode_into_libs=yes
18548     dynamic_linker="$host_os dld.sl"
18549     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18551     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18552     soname_spec='$libname$release$shared_ext$major'
18553     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18555     ;;
18556   *)
18557     shrext_cmds='.sl'
18558     dynamic_linker="$host_os dld.sl"
18559     shlibpath_var=SHLIB_PATH
18560     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18561     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18562     soname_spec='$libname$release$shared_ext$major'
18563     ;;
18564   esac
18565   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18566   postinstall_cmds='chmod 555 $lib'
18567   # or fails outright, so override atomically:
18568   install_override_mode=555
18569   ;;
18570
18571 interix[3-9]*)
18572   version_type=linux # correct to gnu/linux during the next big refactor
18573   need_lib_prefix=no
18574   need_version=no
18575   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18576   soname_spec='$libname$release$shared_ext$major'
18577   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18578   shlibpath_var=LD_LIBRARY_PATH
18579   shlibpath_overrides_runpath=no
18580   hardcode_into_libs=yes
18581   ;;
18582
18583 irix5* | irix6* | nonstopux*)
18584   case $host_os in
18585     nonstopux*) version_type=nonstopux ;;
18586     *)
18587         if test yes = "$lt_cv_prog_gnu_ld"; then
18588                 version_type=linux # correct to gnu/linux during the next big refactor
18589         else
18590                 version_type=irix
18591         fi ;;
18592   esac
18593   need_lib_prefix=no
18594   need_version=no
18595   soname_spec='$libname$release$shared_ext$major'
18596   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18597   case $host_os in
18598   irix5* | nonstopux*)
18599     libsuff= shlibsuff=
18600     ;;
18601   *)
18602     case $LD in # libtool.m4 will add one of these switches to LD
18603     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18604       libsuff= shlibsuff= libmagic=32-bit;;
18605     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18606       libsuff=32 shlibsuff=N32 libmagic=N32;;
18607     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18608       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18609     *) libsuff= shlibsuff= libmagic=never-match;;
18610     esac
18611     ;;
18612   esac
18613   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18614   shlibpath_overrides_runpath=no
18615   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18616   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18617   hardcode_into_libs=yes
18618   ;;
18619
18620 # No shared lib support for Linux oldld, aout, or coff.
18621 linux*oldld* | linux*aout* | linux*coff*)
18622   dynamic_linker=no
18623   ;;
18624
18625 linux*android*)
18626   version_type=none # Android doesn't support versioned libraries.
18627   need_lib_prefix=no
18628   need_version=no
18629   library_names_spec='$libname$release$shared_ext'
18630   soname_spec='$libname$release$shared_ext'
18631   finish_cmds=
18632   shlibpath_var=LD_LIBRARY_PATH
18633   shlibpath_overrides_runpath=yes
18634
18635   # This implies no fast_install, which is unacceptable.
18636   # Some rework will be needed to allow for fast_install
18637   # before this can be enabled.
18638   hardcode_into_libs=yes
18639
18640   dynamic_linker='Android linker'
18641   # Don't embed -rpath directories since the linker doesn't support them.
18642   hardcode_libdir_flag_spec_CXX='-L$libdir'
18643   ;;
18644
18645 # This must be glibc/ELF.
18646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18647   version_type=linux # correct to gnu/linux during the next big refactor
18648   need_lib_prefix=no
18649   need_version=no
18650   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18651   soname_spec='$libname$release$shared_ext$major'
18652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18653   shlibpath_var=LD_LIBRARY_PATH
18654   shlibpath_overrides_runpath=no
18655
18656   # Some binutils ld are patched to set DT_RUNPATH
18657   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18658   $as_echo_n "(cached) " >&6
18659 else
18660   lt_cv_shlibpath_overrides_runpath=no
18661     save_LDFLAGS=$LDFLAGS
18662     save_libdir=$libdir
18663     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18664          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h.  */
18667
18668 int
18669 main ()
18670 {
18671
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 if ac_fn_cxx_try_link "$LINENO"; then :
18677   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18678   lt_cv_shlibpath_overrides_runpath=yes
18679 fi
18680 fi
18681 rm -f core conftest.err conftest.$ac_objext \
18682     conftest$ac_exeext conftest.$ac_ext
18683     LDFLAGS=$save_LDFLAGS
18684     libdir=$save_libdir
18685
18686 fi
18687
18688   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18689
18690   # This implies no fast_install, which is unacceptable.
18691   # Some rework will be needed to allow for fast_install
18692   # before this can be enabled.
18693   hardcode_into_libs=yes
18694
18695   # Ideally, we could use ldconfig to report *all* directores which are
18696   # searched for libraries, however this is still not possible.  Aside from not
18697   # being certain /sbin/ldconfig is available, command
18698   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18699   # even though it is searched at run-time.  Try to do the best guess by
18700   # appending ld.so.conf contents (and includes) to the search path.
18701   if test -f /etc/ld.so.conf; then
18702     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' ' '`
18703     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18704   fi
18705
18706   # We used to test for /lib/ld.so.1 and disable shared libraries on
18707   # powerpc, because MkLinux only supported shared libraries with the
18708   # GNU dynamic linker.  Since this was broken with cross compilers,
18709   # most powerpc-linux boxes support dynamic linking these days and
18710   # people can always --disable-shared, the test was removed, and we
18711   # assume the GNU/Linux dynamic linker is in use.
18712   dynamic_linker='GNU/Linux ld.so'
18713   ;;
18714
18715 netbsdelf*-gnu)
18716   version_type=linux
18717   need_lib_prefix=no
18718   need_version=no
18719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18720   soname_spec='${libname}${release}${shared_ext}$major'
18721   shlibpath_var=LD_LIBRARY_PATH
18722   shlibpath_overrides_runpath=no
18723   hardcode_into_libs=yes
18724   dynamic_linker='NetBSD ld.elf_so'
18725   ;;
18726
18727 netbsd*)
18728   version_type=sunos
18729   need_lib_prefix=no
18730   need_version=no
18731   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18732     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18734     dynamic_linker='NetBSD (a.out) ld.so'
18735   else
18736     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18737     soname_spec='$libname$release$shared_ext$major'
18738     dynamic_linker='NetBSD ld.elf_so'
18739   fi
18740   shlibpath_var=LD_LIBRARY_PATH
18741   shlibpath_overrides_runpath=yes
18742   hardcode_into_libs=yes
18743   ;;
18744
18745 newsos6)
18746   version_type=linux # correct to gnu/linux during the next big refactor
18747   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18748   shlibpath_var=LD_LIBRARY_PATH
18749   shlibpath_overrides_runpath=yes
18750   ;;
18751
18752 *nto* | *qnx*)
18753   version_type=qnx
18754   need_lib_prefix=no
18755   need_version=no
18756   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18757   soname_spec='$libname$release$shared_ext$major'
18758   shlibpath_var=LD_LIBRARY_PATH
18759   shlibpath_overrides_runpath=no
18760   hardcode_into_libs=yes
18761   dynamic_linker='ldqnx.so'
18762   ;;
18763
18764 openbsd* | bitrig*)
18765   version_type=sunos
18766   sys_lib_dlsearch_path_spec=/usr/lib
18767   need_lib_prefix=no
18768   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18769     need_version=no
18770   else
18771     need_version=yes
18772   fi
18773   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18774   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18775   shlibpath_var=LD_LIBRARY_PATH
18776   shlibpath_overrides_runpath=yes
18777   ;;
18778
18779 os2*)
18780   libname_spec='$name'
18781   version_type=windows
18782   shrext_cmds=.dll
18783   need_version=no
18784   need_lib_prefix=no
18785   # OS/2 can only load a DLL with a base name of 8 characters or less.
18786   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18787     v=$($ECHO $release$versuffix | tr -d .-);
18788     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18789     $ECHO $n$v`$shared_ext'
18790   library_names_spec='${libname}_dll.$libext'
18791   dynamic_linker='OS/2 ld.exe'
18792   shlibpath_var=BEGINLIBPATH
18793   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18794   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18795   postinstall_cmds='base_file=`basename \$file`~
18796     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18797     dldir=$destdir/`dirname \$dlpath`~
18798     test -d \$dldir || mkdir -p \$dldir~
18799     $install_prog $dir/$dlname \$dldir/$dlname~
18800     chmod a+x \$dldir/$dlname~
18801     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18802       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18803     fi'
18804   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18805     dlpath=$dir/\$dldll~
18806     $RM \$dlpath'
18807   ;;
18808
18809 osf3* | osf4* | osf5*)
18810   version_type=osf
18811   need_lib_prefix=no
18812   need_version=no
18813   soname_spec='$libname$release$shared_ext$major'
18814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18815   shlibpath_var=LD_LIBRARY_PATH
18816   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18817   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18818   ;;
18819
18820 rdos*)
18821   dynamic_linker=no
18822   ;;
18823
18824 solaris*)
18825   version_type=linux # correct to gnu/linux during the next big refactor
18826   need_lib_prefix=no
18827   need_version=no
18828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18829   soname_spec='$libname$release$shared_ext$major'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   shlibpath_overrides_runpath=yes
18832   hardcode_into_libs=yes
18833   # ldd complains unless libraries are executable
18834   postinstall_cmds='chmod +x $lib'
18835   ;;
18836
18837 sunos4*)
18838   version_type=sunos
18839   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18841   shlibpath_var=LD_LIBRARY_PATH
18842   shlibpath_overrides_runpath=yes
18843   if test yes = "$with_gnu_ld"; then
18844     need_lib_prefix=no
18845   fi
18846   need_version=yes
18847   ;;
18848
18849 sysv4 | sysv4.3*)
18850   version_type=linux # correct to gnu/linux during the next big refactor
18851   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18852   soname_spec='$libname$release$shared_ext$major'
18853   shlibpath_var=LD_LIBRARY_PATH
18854   case $host_vendor in
18855     sni)
18856       shlibpath_overrides_runpath=no
18857       need_lib_prefix=no
18858       runpath_var=LD_RUN_PATH
18859       ;;
18860     siemens)
18861       need_lib_prefix=no
18862       ;;
18863     motorola)
18864       need_lib_prefix=no
18865       need_version=no
18866       shlibpath_overrides_runpath=no
18867       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18868       ;;
18869   esac
18870   ;;
18871
18872 sysv4*MP*)
18873   if test -d /usr/nec; then
18874     version_type=linux # correct to gnu/linux during the next big refactor
18875     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18876     soname_spec='$libname$shared_ext.$major'
18877     shlibpath_var=LD_LIBRARY_PATH
18878   fi
18879   ;;
18880
18881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18882   version_type=sco
18883   need_lib_prefix=no
18884   need_version=no
18885   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18886   soname_spec='$libname$release$shared_ext$major'
18887   shlibpath_var=LD_LIBRARY_PATH
18888   shlibpath_overrides_runpath=yes
18889   hardcode_into_libs=yes
18890   if test yes = "$with_gnu_ld"; then
18891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18892   else
18893     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18894     case $host_os in
18895       sco3.2v5*)
18896         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18897         ;;
18898     esac
18899   fi
18900   sys_lib_dlsearch_path_spec='/usr/lib'
18901   ;;
18902
18903 tpf*)
18904   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18905   version_type=linux # correct to gnu/linux during the next big refactor
18906   need_lib_prefix=no
18907   need_version=no
18908   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18909   shlibpath_var=LD_LIBRARY_PATH
18910   shlibpath_overrides_runpath=no
18911   hardcode_into_libs=yes
18912   ;;
18913
18914 uts4*)
18915   version_type=linux # correct to gnu/linux during the next big refactor
18916   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18917   soname_spec='$libname$release$shared_ext$major'
18918   shlibpath_var=LD_LIBRARY_PATH
18919   ;;
18920
18921 *)
18922   dynamic_linker=no
18923   ;;
18924 esac
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18926 $as_echo "$dynamic_linker" >&6; }
18927 test no = "$dynamic_linker" && can_build_shared=no
18928
18929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18930 if test yes = "$GCC"; then
18931   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18932 fi
18933
18934 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18935   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18936 fi
18937
18938 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18939   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18940 fi
18941
18942 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18943 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18944
18945 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18946 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18947
18948 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18949 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18992 hardcode_action_CXX=
18993 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18994    test -n "$runpath_var_CXX" ||
18995    test yes = "$hardcode_automatic_CXX"; then
18996
18997   # We can hardcode non-existent directories.
18998   if test no != "$hardcode_direct_CXX" &&
18999      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19000      # have to relink, otherwise we might link with an installed library
19001      # when we should be linking with a yet-to-be-installed one
19002      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19003      test no != "$hardcode_minus_L_CXX"; then
19004     # Linking always hardcodes the temporary library directory.
19005     hardcode_action_CXX=relink
19006   else
19007     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19008     hardcode_action_CXX=immediate
19009   fi
19010 else
19011   # We cannot hardcode anything, or else we can only hardcode existing
19012   # directories.
19013   hardcode_action_CXX=unsupported
19014 fi
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19016 $as_echo "$hardcode_action_CXX" >&6; }
19017
19018 if test relink = "$hardcode_action_CXX" ||
19019    test yes = "$inherit_rpath_CXX"; then
19020   # Fast installation is not supported
19021   enable_fast_install=no
19022 elif test yes = "$shlibpath_overrides_runpath" ||
19023      test no = "$enable_shared"; then
19024   # Fast installation is not necessary
19025   enable_fast_install=needless
19026 fi
19027
19028
19029
19030
19031
19032
19033
19034   fi # test -n "$compiler"
19035
19036   CC=$lt_save_CC
19037   CFLAGS=$lt_save_CFLAGS
19038   LDCXX=$LD
19039   LD=$lt_save_LD
19040   GCC=$lt_save_GCC
19041   with_gnu_ld=$lt_save_with_gnu_ld
19042   lt_cv_path_LDCXX=$lt_cv_path_LD
19043   lt_cv_path_LD=$lt_save_path_LD
19044   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19045   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19046 fi # test yes != "$_lt_caught_CXX_error"
19047
19048 ac_ext=c
19049 ac_cpp='$CPP $CPPFLAGS'
19050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068         ac_config_commands="$ac_config_commands libtool"
19069
19070
19071
19072
19073 # Only expand once:
19074
19075
19076 ## --------------------- ##
19077 ##  End of libtool code  ##
19078 ## --------------------- ##
19079
19080 #
19081 # Verify if finally libtool shared libraries will be built
19082 #
19083
19084 case "x$enable_shared" in # ((
19085   xyes | xno)
19086     xc_lt_build_shared=$enable_shared
19087     ;;
19088   *)
19089     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
19090     ;;
19091 esac
19092
19093 #
19094 # Verify if finally libtool static libraries will be built
19095 #
19096
19097 case "x$enable_static" in # ((
19098   xyes | xno)
19099     xc_lt_build_static=$enable_static
19100     ;;
19101   *)
19102     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
19103     ;;
19104 esac
19105
19106 #
19107 # Verify if libtool shared libraries should be linked using flag -version-info
19108 #
19109
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
19111 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
19112 xc_lt_shlib_use_version_info='yes'
19113 if test "x$version_type" = 'xnone'; then
19114   xc_lt_shlib_use_version_info='no'
19115 fi
19116 case $host_os in # (
19117   amigaos*)
19118     xc_lt_shlib_use_version_info='yes'
19119     ;;
19120 esac
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
19122 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
19123
19124 #
19125 # Verify if libtool shared libraries should be linked using flag -no-undefined
19126 #
19127
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
19129 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
19130 xc_lt_shlib_use_no_undefined='no'
19131 if test "x$allow_undefined" = 'xno'; then
19132   xc_lt_shlib_use_no_undefined='yes'
19133 elif test "x$allow_undefined_flag" = 'xunsupported'; then
19134   xc_lt_shlib_use_no_undefined='yes'
19135 fi
19136 case $host_os in # (
19137   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
19138     xc_lt_shlib_use_no_undefined='yes'
19139     ;;
19140 esac
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
19142 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
19143
19144 #
19145 # Verify if libtool shared libraries should be linked using flag -mimpure-text
19146 #
19147
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
19149 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
19150 xc_lt_shlib_use_mimpure_text='no'
19151 case $host_os in # (
19152   solaris2*)
19153     if test "x$GCC" = 'xyes'; then
19154       xc_lt_shlib_use_mimpure_text='yes'
19155     fi
19156     ;;
19157 esac
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
19159 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
19160
19161 #
19162 # Find out wether libtool libraries would be built wit PIC
19163 #
19164
19165 case "x$pic_mode" in # ((((
19166   xdefault)
19167     xc_lt_build_shared_with_pic='yes'
19168     xc_lt_build_static_with_pic='no'
19169     ;;
19170   xyes)
19171     xc_lt_build_shared_with_pic='yes'
19172     xc_lt_build_static_with_pic='yes'
19173     ;;
19174   xno)
19175     xc_lt_build_shared_with_pic='no'
19176     xc_lt_build_static_with_pic='no'
19177     ;;
19178   *)
19179     xc_lt_build_shared_with_pic='unknown'
19180     xc_lt_build_static_with_pic='unknown'
19181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
19182 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
19183     ;;
19184 esac
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
19186 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
19188 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
19190 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
19192 $as_echo "$xc_lt_build_static_with_pic" >&6; }
19193
19194 #
19195 # Verify if libtool shared libraries will be built while static not built
19196 #
19197
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
19199 $as_echo_n "checking whether to build shared libraries only... " >&6; }
19200 if test "$xc_lt_build_shared" = 'yes' &&
19201   test "$xc_lt_build_static" = 'no'; then
19202   xc_lt_build_shared_only='yes'
19203 else
19204   xc_lt_build_shared_only='no'
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
19207 $as_echo "$xc_lt_build_shared_only" >&6; }
19208
19209 #
19210 # Verify if libtool static libraries will be built while shared not built
19211 #
19212
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
19214 $as_echo_n "checking whether to build static libraries only... " >&6; }
19215 if test "$xc_lt_build_static" = 'yes' &&
19216   test "$xc_lt_build_shared" = 'no'; then
19217   xc_lt_build_static_only='yes'
19218 else
19219   xc_lt_build_static_only='no'
19220 fi
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
19222 $as_echo "$xc_lt_build_static_only" >&6; }
19223
19224
19225
19226
19227
19228 #
19229 # Automake conditionals based on libtool related checks
19230 #
19231
19232  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
19233   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
19234   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
19235 else
19236   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
19237   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
19238 fi
19239
19240  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19241   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
19242   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
19243 else
19244   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
19245   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
19246 fi
19247
19248  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
19249   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
19250   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
19251 else
19252   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
19253   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
19254 fi
19255
19256
19257 #
19258 # Due to libtool and automake machinery limitations of not allowing
19259 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
19260 # inclusion of these in shared or static libraries, we are forced to
19261 # build using separate configure runs for shared and static libraries
19262 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
19263 # to compile objects for each kind of library. Notice that relying on
19264 # the '-DPIC' CFLAG that libtool provides is not valid given that the
19265 # user might for example choose to build static libraries with PIC.
19266 #
19267
19268 #
19269 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
19270 # targeting a static library and not building its shared counterpart.
19271 #
19272
19273  if test "x$xc_lt_build_static_only" = 'xyes'; then
19274   USE_CPPFLAG_CARES_STATICLIB_TRUE=
19275   USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
19276 else
19277   USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
19278   USE_CPPFLAG_CARES_STATICLIB_FALSE=
19279 fi
19280
19281
19282 #
19283 # Make staticlib CPPFLAG variable and its definition visible in output
19284 # files unconditionally, providing an empty definition unless strictly
19285 # targeting a static library and not building its shared counterpart.
19286 #
19287
19288 CPPFLAG_CARES_STATICLIB=
19289 if test "x$xc_lt_build_static_only" = 'xyes'; then
19290   CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
19291 fi
19292
19293
19294
19295
19296   #
19297   compiler_id="unknown"
19298   compiler_num="0"
19299   #
19300   flags_dbg_all="unknown"
19301   flags_dbg_yes="unknown"
19302   flags_dbg_off="unknown"
19303   flags_opt_all="unknown"
19304   flags_opt_yes="unknown"
19305   flags_opt_off="unknown"
19306   #
19307   flags_prefer_cppflags="no"
19308   #
19309
19310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
19311 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
19312
19313       if test -z "$SED"; then
19314     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19315   fi
19316   if test -z "$GREP"; then
19317     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19318   fi
19319
19320   tmp_exp=""
19321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h.  */
19323
19324
19325 #ifdef __DECC
19326 CURL_DEF_TOKEN __DECC
19327 #endif
19328
19329
19330 _ACEOF
19331 if ac_fn_c_try_cpp "$LINENO"; then :
19332
19333     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19334       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19335       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19336       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19337     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
19338       tmp_exp=""
19339     fi
19340
19341 fi
19342 rm -f conftest.err conftest.i conftest.$ac_ext
19343   if test -z "$tmp_exp"; then
19344     curl_cv_have_def___DECC=no
19345
19346   else
19347     curl_cv_have_def___DECC=yes
19348     curl_cv_def___DECC=$tmp_exp
19349
19350   fi
19351
19352
19353       if test -z "$SED"; then
19354     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19355   fi
19356   if test -z "$GREP"; then
19357     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19358   fi
19359
19360   tmp_exp=""
19361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h.  */
19363
19364
19365 #ifdef __DECC_VER
19366 CURL_DEF_TOKEN __DECC_VER
19367 #endif
19368
19369
19370 _ACEOF
19371 if ac_fn_c_try_cpp "$LINENO"; then :
19372
19373     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19374       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19375       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19376       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19377     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
19378       tmp_exp=""
19379     fi
19380
19381 fi
19382 rm -f conftest.err conftest.i conftest.$ac_ext
19383   if test -z "$tmp_exp"; then
19384     curl_cv_have_def___DECC_VER=no
19385
19386   else
19387     curl_cv_have_def___DECC_VER=yes
19388     curl_cv_def___DECC_VER=$tmp_exp
19389
19390   fi
19391
19392   if test "$curl_cv_have_def___DECC" = "yes" &&
19393     test "$curl_cv_have_def___DECC_VER" = "yes"; then
19394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395 $as_echo "yes" >&6; }
19396     compiler_id="DEC_C"
19397     flags_dbg_all="-g -g0 -g1 -g2 -g3"
19398     flags_dbg_yes="-g2"
19399     flags_dbg_off="-g0"
19400     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
19401     flags_opt_yes="-O1"
19402     flags_opt_off="-O0"
19403   else
19404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405 $as_echo "no" >&6; }
19406   fi
19407
19408
19409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
19410 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
19411
19412       if test -z "$SED"; then
19413     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19414   fi
19415   if test -z "$GREP"; then
19416     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19417   fi
19418
19419   tmp_exp=""
19420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h.  */
19422
19423
19424 #ifdef __HP_cc
19425 CURL_DEF_TOKEN __HP_cc
19426 #endif
19427
19428
19429 _ACEOF
19430 if ac_fn_c_try_cpp "$LINENO"; then :
19431
19432     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19433       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19434       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19435       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19436     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
19437       tmp_exp=""
19438     fi
19439
19440 fi
19441 rm -f conftest.err conftest.i conftest.$ac_ext
19442   if test -z "$tmp_exp"; then
19443     curl_cv_have_def___HP_cc=no
19444
19445   else
19446     curl_cv_have_def___HP_cc=yes
19447     curl_cv_def___HP_cc=$tmp_exp
19448
19449   fi
19450
19451   if test "$curl_cv_have_def___HP_cc" = "yes"; then
19452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19453 $as_echo "yes" >&6; }
19454     compiler_id="HP_UX_C"
19455     flags_dbg_all="-g -s"
19456     flags_dbg_yes="-g"
19457     flags_dbg_off="-s"
19458     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
19459     flags_opt_yes="+O2"
19460     flags_opt_off="+O0"
19461   else
19462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19463 $as_echo "no" >&6; }
19464   fi
19465
19466
19467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
19468 $as_echo_n "checking if compiler is IBM C... " >&6; }
19469
19470       if test -z "$SED"; then
19471     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19472   fi
19473   if test -z "$GREP"; then
19474     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19475   fi
19476
19477   tmp_exp=""
19478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h.  */
19480
19481
19482 #ifdef __IBMC__
19483 CURL_DEF_TOKEN __IBMC__
19484 #endif
19485
19486
19487 _ACEOF
19488 if ac_fn_c_try_cpp "$LINENO"; then :
19489
19490     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19491       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19492       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19493       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19494     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
19495       tmp_exp=""
19496     fi
19497
19498 fi
19499 rm -f conftest.err conftest.i conftest.$ac_ext
19500   if test -z "$tmp_exp"; then
19501     curl_cv_have_def___IBMC__=no
19502
19503   else
19504     curl_cv_have_def___IBMC__=yes
19505     curl_cv_def___IBMC__=$tmp_exp
19506
19507   fi
19508
19509   if test "$curl_cv_have_def___IBMC__" = "yes"; then
19510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512     compiler_id="IBM_C"
19513     flags_dbg_all="-g -g0 -g1 -g2 -g3"
19514     flags_dbg_yes="-g"
19515     flags_dbg_off=""
19516     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
19517     flags_opt_all="$flags_opt_all -qnooptimize"
19518     flags_opt_all="$flags_opt_all -qoptimize=0"
19519     flags_opt_all="$flags_opt_all -qoptimize=1"
19520     flags_opt_all="$flags_opt_all -qoptimize=2"
19521     flags_opt_all="$flags_opt_all -qoptimize=3"
19522     flags_opt_all="$flags_opt_all -qoptimize=4"
19523     flags_opt_all="$flags_opt_all -qoptimize=5"
19524     flags_opt_yes="-O2"
19525     flags_opt_off="-qnooptimize"
19526     flags_prefer_cppflags="yes"
19527   else
19528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529 $as_echo "no" >&6; }
19530   fi
19531
19532
19533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
19534 $as_echo_n "checking if compiler is Intel C... " >&6; }
19535
19536       if test -z "$SED"; then
19537     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19538   fi
19539   if test -z "$GREP"; then
19540     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19541   fi
19542
19543   tmp_exp=""
19544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h.  */
19546
19547
19548 #ifdef __INTEL_COMPILER
19549 CURL_DEF_TOKEN __INTEL_COMPILER
19550 #endif
19551
19552
19553 _ACEOF
19554 if ac_fn_c_try_cpp "$LINENO"; then :
19555
19556     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19557       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19558       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19559       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19560     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
19561       tmp_exp=""
19562     fi
19563
19564 fi
19565 rm -f conftest.err conftest.i conftest.$ac_ext
19566   if test -z "$tmp_exp"; then
19567     curl_cv_have_def___INTEL_COMPILER=no
19568
19569   else
19570     curl_cv_have_def___INTEL_COMPILER=yes
19571     curl_cv_def___INTEL_COMPILER=$tmp_exp
19572
19573   fi
19574
19575   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
19576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19578     compiler_num="$curl_cv_def___INTEL_COMPILER"
19579
19580       if test -z "$SED"; then
19581     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19582   fi
19583   if test -z "$GREP"; then
19584     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19585   fi
19586
19587   tmp_exp=""
19588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h.  */
19590
19591
19592 #ifdef __unix__
19593 CURL_DEF_TOKEN __unix__
19594 #endif
19595
19596
19597 _ACEOF
19598 if ac_fn_c_try_cpp "$LINENO"; then :
19599
19600     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19601       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19602       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19603       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19604     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
19605       tmp_exp=""
19606     fi
19607
19608 fi
19609 rm -f conftest.err conftest.i conftest.$ac_ext
19610   if test -z "$tmp_exp"; then
19611     curl_cv_have_def___unix__=no
19612
19613   else
19614     curl_cv_have_def___unix__=yes
19615     curl_cv_def___unix__=$tmp_exp
19616
19617   fi
19618
19619     if test "$curl_cv_have_def___unix__" = "yes"; then
19620       compiler_id="INTEL_UNIX_C"
19621       flags_dbg_all="-g -g0"
19622       flags_dbg_yes="-g"
19623       flags_dbg_off="-g0"
19624       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19625       flags_opt_yes="-O2"
19626       flags_opt_off="-O0"
19627     else
19628       compiler_id="INTEL_WINDOWS_C"
19629       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
19630       flags_dbg_all="$flags_dbg_all /debug"
19631       flags_dbg_all="$flags_dbg_all /debug:none"
19632       flags_dbg_all="$flags_dbg_all /debug:minimal"
19633       flags_dbg_all="$flags_dbg_all /debug:partial"
19634       flags_dbg_all="$flags_dbg_all /debug:full"
19635       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
19636       flags_dbg_all="$flags_dbg_all /debug:extended"
19637       flags_dbg_yes="/Zi /Oy-"
19638       flags_dbg_off="/debug:none /Oy-"
19639       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
19640       flags_opt_yes="/O2"
19641       flags_opt_off="/Od"
19642     fi
19643   else
19644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645 $as_echo "no" >&6; }
19646   fi
19647
19648
19649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
19650 $as_echo_n "checking if compiler is clang... " >&6; }
19651
19652       if test -z "$SED"; then
19653     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19654   fi
19655   if test -z "$GREP"; then
19656     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19657   fi
19658
19659   tmp_exp=""
19660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h.  */
19662
19663
19664 #ifdef __clang__
19665 CURL_DEF_TOKEN __clang__
19666 #endif
19667
19668
19669 _ACEOF
19670 if ac_fn_c_try_cpp "$LINENO"; then :
19671
19672     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19673       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19674       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19675       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19676     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
19677       tmp_exp=""
19678     fi
19679
19680 fi
19681 rm -f conftest.err conftest.i conftest.$ac_ext
19682   if test -z "$tmp_exp"; then
19683     curl_cv_have_def___clang__=no
19684
19685   else
19686     curl_cv_have_def___clang__=yes
19687     curl_cv_def___clang__=$tmp_exp
19688
19689   fi
19690
19691   if test "$curl_cv_have_def___clang__" = "yes"; then
19692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19693 $as_echo "yes" >&6; }
19694     compiler_id="CLANG"
19695     clangver=`$CC -dumpversion`
19696     clangvhi=`echo $clangver | cut -d . -f1`
19697     clangvlo=`echo $clangver | cut -d . -f2`
19698     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
19699     flags_dbg_all="-g -g0 -g1 -g2 -g3"
19700     flags_dbg_all="$flags_dbg_all -ggdb"
19701     flags_dbg_all="$flags_dbg_all -gstabs"
19702     flags_dbg_all="$flags_dbg_all -gstabs+"
19703     flags_dbg_all="$flags_dbg_all -gcoff"
19704     flags_dbg_all="$flags_dbg_all -gxcoff"
19705     flags_dbg_all="$flags_dbg_all -gdwarf-2"
19706     flags_dbg_all="$flags_dbg_all -gvms"
19707     flags_dbg_yes="-g"
19708     flags_dbg_off="-g0"
19709     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
19710     flags_opt_yes="-Os"
19711     flags_opt_off="-O0"
19712   else
19713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19714 $as_echo "no" >&6; }
19715   fi
19716
19717
19718       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
19719 $as_echo_n "checking if compiler is GNU C... " >&6; }
19720
19721       if test -z "$SED"; then
19722     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19723   fi
19724   if test -z "$GREP"; then
19725     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19726   fi
19727
19728   tmp_exp=""
19729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h.  */
19731
19732
19733 #ifdef __GNUC__
19734 CURL_DEF_TOKEN __GNUC__
19735 #endif
19736
19737
19738 _ACEOF
19739 if ac_fn_c_try_cpp "$LINENO"; then :
19740
19741     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19742       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19743       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19744       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19745     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19746       tmp_exp=""
19747     fi
19748
19749 fi
19750 rm -f conftest.err conftest.i conftest.$ac_ext
19751   if test -z "$tmp_exp"; then
19752     curl_cv_have_def___GNUC__=no
19753
19754   else
19755     curl_cv_have_def___GNUC__=yes
19756     curl_cv_def___GNUC__=$tmp_exp
19757
19758   fi
19759
19760   if test "$curl_cv_have_def___GNUC__" = "yes" &&
19761     test "$compiler_id" = "unknown"; then
19762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19763 $as_echo "yes" >&6; }
19764     compiler_id="GNU_C"
19765     gccver=`$CC -dumpversion`
19766     gccvhi=`echo $gccver | cut -d . -f1`
19767     gccvlo=`echo $gccver | cut -d . -f2`
19768     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
19769     flags_dbg_all="-g -g0 -g1 -g2 -g3"
19770     flags_dbg_all="$flags_dbg_all -ggdb"
19771     flags_dbg_all="$flags_dbg_all -gstabs"
19772     flags_dbg_all="$flags_dbg_all -gstabs+"
19773     flags_dbg_all="$flags_dbg_all -gcoff"
19774     flags_dbg_all="$flags_dbg_all -gxcoff"
19775     flags_dbg_all="$flags_dbg_all -gdwarf-2"
19776     flags_dbg_all="$flags_dbg_all -gvms"
19777     flags_dbg_yes="-g"
19778     flags_dbg_off="-g0"
19779     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19780     flags_opt_yes="-O2"
19781     flags_opt_off="-O0"
19782
19783       if test -z "$SED"; then
19784     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19785   fi
19786   if test -z "$GREP"; then
19787     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19788   fi
19789
19790   tmp_exp=""
19791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h.  */
19793
19794
19795 #ifdef _WIN32
19796 CURL_DEF_TOKEN _WIN32
19797 #endif
19798
19799
19800 _ACEOF
19801 if ac_fn_c_try_cpp "$LINENO"; then :
19802
19803     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19804       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19805       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19806       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19807     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
19808       tmp_exp=""
19809     fi
19810
19811 fi
19812 rm -f conftest.err conftest.i conftest.$ac_ext
19813   if test -z "$tmp_exp"; then
19814     curl_cv_have_def__WIN32=no
19815
19816   else
19817     curl_cv_have_def__WIN32=yes
19818     curl_cv_def__WIN32=$tmp_exp
19819
19820   fi
19821
19822   else
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19825   fi
19826
19827
19828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
19829 $as_echo_n "checking if compiler is LCC... " >&6; }
19830
19831       if test -z "$SED"; then
19832     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19833   fi
19834   if test -z "$GREP"; then
19835     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19836   fi
19837
19838   tmp_exp=""
19839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h.  */
19841
19842
19843 #ifdef __LCC__
19844 CURL_DEF_TOKEN __LCC__
19845 #endif
19846
19847
19848 _ACEOF
19849 if ac_fn_c_try_cpp "$LINENO"; then :
19850
19851     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19852       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19853       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19854       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19855     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
19856       tmp_exp=""
19857     fi
19858
19859 fi
19860 rm -f conftest.err conftest.i conftest.$ac_ext
19861   if test -z "$tmp_exp"; then
19862     curl_cv_have_def___LCC__=no
19863
19864   else
19865     curl_cv_have_def___LCC__=yes
19866     curl_cv_def___LCC__=$tmp_exp
19867
19868   fi
19869
19870   if test "$curl_cv_have_def___LCC__" = "yes"; then
19871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19872 $as_echo "yes" >&6; }
19873     compiler_id="LCC"
19874     flags_dbg_all="-g"
19875     flags_dbg_yes="-g"
19876     flags_dbg_off=""
19877     flags_opt_all=""
19878     flags_opt_yes=""
19879     flags_opt_off=""
19880   else
19881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19882 $as_echo "no" >&6; }
19883   fi
19884
19885
19886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
19887 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
19888
19889       if test -z "$SED"; then
19890     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19891   fi
19892   if test -z "$GREP"; then
19893     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19894   fi
19895
19896   tmp_exp=""
19897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h.  */
19899
19900
19901 #ifdef __GNUC__
19902 CURL_DEF_TOKEN __GNUC__
19903 #endif
19904
19905
19906 _ACEOF
19907 if ac_fn_c_try_cpp "$LINENO"; then :
19908
19909     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19910       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19911       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19912       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19913     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19914       tmp_exp=""
19915     fi
19916
19917 fi
19918 rm -f conftest.err conftest.i conftest.$ac_ext
19919   if test -z "$tmp_exp"; then
19920     curl_cv_have_def___GNUC__=no
19921
19922   else
19923     curl_cv_have_def___GNUC__=yes
19924     curl_cv_def___GNUC__=$tmp_exp
19925
19926   fi
19927
19928
19929       if test -z "$SED"; then
19930     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19931   fi
19932   if test -z "$GREP"; then
19933     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19934   fi
19935
19936   tmp_exp=""
19937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939
19940
19941 #ifdef _COMPILER_VERSION
19942 CURL_DEF_TOKEN _COMPILER_VERSION
19943 #endif
19944
19945
19946 _ACEOF
19947 if ac_fn_c_try_cpp "$LINENO"; then :
19948
19949     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19950       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19951       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19952       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19953     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
19954       tmp_exp=""
19955     fi
19956
19957 fi
19958 rm -f conftest.err conftest.i conftest.$ac_ext
19959   if test -z "$tmp_exp"; then
19960     curl_cv_have_def__COMPILER_VERSION=no
19961
19962   else
19963     curl_cv_have_def__COMPILER_VERSION=yes
19964     curl_cv_def__COMPILER_VERSION=$tmp_exp
19965
19966   fi
19967
19968
19969       if test -z "$SED"; then
19970     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19971   fi
19972   if test -z "$GREP"; then
19973     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19974   fi
19975
19976   tmp_exp=""
19977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h.  */
19979
19980
19981 #ifdef _SGI_COMPILER_VERSION
19982 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
19983 #endif
19984
19985
19986 _ACEOF
19987 if ac_fn_c_try_cpp "$LINENO"; then :
19988
19989     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19990       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19991       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19992       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19993     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
19994       tmp_exp=""
19995     fi
19996
19997 fi
19998 rm -f conftest.err conftest.i conftest.$ac_ext
19999   if test -z "$tmp_exp"; then
20000     curl_cv_have_def__SGI_COMPILER_VERSION=no
20001
20002   else
20003     curl_cv_have_def__SGI_COMPILER_VERSION=yes
20004     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
20005
20006   fi
20007
20008   if test "$curl_cv_have_def___GNUC__" = "no" &&
20009     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
20010      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
20011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012 $as_echo "yes" >&6; }
20013     compiler_id="SGI_MIPSPRO_C"
20014     flags_dbg_all="-g -g0 -g1 -g2 -g3"
20015     flags_dbg_yes="-g"
20016     flags_dbg_off="-g0"
20017     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20018     flags_opt_yes="-O2"
20019     flags_opt_off="-O0"
20020   else
20021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20022 $as_echo "no" >&6; }
20023   fi
20024
20025
20026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
20027 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
20028
20029       if test -z "$SED"; then
20030     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20031   fi
20032   if test -z "$GREP"; then
20033     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20034   fi
20035
20036   tmp_exp=""
20037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h.  */
20039
20040
20041 #ifdef __GNUC__
20042 CURL_DEF_TOKEN __GNUC__
20043 #endif
20044
20045
20046 _ACEOF
20047 if ac_fn_c_try_cpp "$LINENO"; then :
20048
20049     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20050       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20051       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20052       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20053     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
20054       tmp_exp=""
20055     fi
20056
20057 fi
20058 rm -f conftest.err conftest.i conftest.$ac_ext
20059   if test -z "$tmp_exp"; then
20060     curl_cv_have_def___GNUC__=no
20061
20062   else
20063     curl_cv_have_def___GNUC__=yes
20064     curl_cv_def___GNUC__=$tmp_exp
20065
20066   fi
20067
20068
20069       if test -z "$SED"; then
20070     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20071   fi
20072   if test -z "$GREP"; then
20073     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20074   fi
20075
20076   tmp_exp=""
20077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h.  */
20079
20080
20081 #ifdef __sgi
20082 CURL_DEF_TOKEN __sgi
20083 #endif
20084
20085
20086 _ACEOF
20087 if ac_fn_c_try_cpp "$LINENO"; then :
20088
20089     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20090       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20091       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20092       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20093     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
20094       tmp_exp=""
20095     fi
20096
20097 fi
20098 rm -f conftest.err conftest.i conftest.$ac_ext
20099   if test -z "$tmp_exp"; then
20100     curl_cv_have_def___sgi=no
20101
20102   else
20103     curl_cv_have_def___sgi=yes
20104     curl_cv_def___sgi=$tmp_exp
20105
20106   fi
20107
20108   if test "$curl_cv_have_def___GNUC__" = "no" &&
20109     test "$curl_cv_have_def___sgi" = "yes" &&
20110     test "$compiler_id" = "unknown"; then
20111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20112 $as_echo "yes" >&6; }
20113     compiler_id="SGI_MIPS_C"
20114     flags_dbg_all="-g -g0 -g1 -g2 -g3"
20115     flags_dbg_yes="-g"
20116     flags_dbg_off="-g0"
20117     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20118     flags_opt_yes="-O2"
20119     flags_opt_off="-O0"
20120   else
20121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122 $as_echo "no" >&6; }
20123   fi
20124
20125
20126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
20127 $as_echo_n "checking if compiler is SunPro C... " >&6; }
20128
20129       if test -z "$SED"; then
20130     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20131   fi
20132   if test -z "$GREP"; then
20133     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20134   fi
20135
20136   tmp_exp=""
20137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h.  */
20139
20140
20141 #ifdef __SUNPRO_C
20142 CURL_DEF_TOKEN __SUNPRO_C
20143 #endif
20144
20145
20146 _ACEOF
20147 if ac_fn_c_try_cpp "$LINENO"; then :
20148
20149     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20150       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20151       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20152       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20153     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
20154       tmp_exp=""
20155     fi
20156
20157 fi
20158 rm -f conftest.err conftest.i conftest.$ac_ext
20159   if test -z "$tmp_exp"; then
20160     curl_cv_have_def___SUNPRO_C=no
20161
20162   else
20163     curl_cv_have_def___SUNPRO_C=yes
20164     curl_cv_def___SUNPRO_C=$tmp_exp
20165
20166   fi
20167
20168   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
20169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20170 $as_echo "yes" >&6; }
20171     compiler_id="SUNPRO_C"
20172     flags_dbg_all="-g -s"
20173     flags_dbg_yes="-g"
20174     flags_dbg_off="-s"
20175     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
20176     flags_opt_yes="-xO2"
20177     flags_opt_off=""
20178   else
20179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 $as_echo "no" >&6; }
20181   fi
20182
20183
20184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
20185 $as_echo_n "checking if compiler is Tiny C... " >&6; }
20186
20187       if test -z "$SED"; then
20188     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20189   fi
20190   if test -z "$GREP"; then
20191     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20192   fi
20193
20194   tmp_exp=""
20195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h.  */
20197
20198
20199 #ifdef __TINYC__
20200 CURL_DEF_TOKEN __TINYC__
20201 #endif
20202
20203
20204 _ACEOF
20205 if ac_fn_c_try_cpp "$LINENO"; then :
20206
20207     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20208       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20209       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20210       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20211     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
20212       tmp_exp=""
20213     fi
20214
20215 fi
20216 rm -f conftest.err conftest.i conftest.$ac_ext
20217   if test -z "$tmp_exp"; then
20218     curl_cv_have_def___TINYC__=no
20219
20220   else
20221     curl_cv_have_def___TINYC__=yes
20222     curl_cv_def___TINYC__=$tmp_exp
20223
20224   fi
20225
20226   if test "$curl_cv_have_def___TINYC__" = "yes"; then
20227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 $as_echo "yes" >&6; }
20229     compiler_id="TINY_C"
20230     flags_dbg_all="-g -b"
20231     flags_dbg_yes="-g"
20232     flags_dbg_off=""
20233     flags_opt_all=""
20234     flags_opt_yes=""
20235     flags_opt_off=""
20236   else
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20239   fi
20240
20241
20242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
20243 $as_echo_n "checking if compiler is Watcom C... " >&6; }
20244
20245       if test -z "$SED"; then
20246     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20247   fi
20248   if test -z "$GREP"; then
20249     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20250   fi
20251
20252   tmp_exp=""
20253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h.  */
20255
20256
20257 #ifdef __WATCOMC__
20258 CURL_DEF_TOKEN __WATCOMC__
20259 #endif
20260
20261
20262 _ACEOF
20263 if ac_fn_c_try_cpp "$LINENO"; then :
20264
20265     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20266       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20267       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20268       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20269     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
20270       tmp_exp=""
20271     fi
20272
20273 fi
20274 rm -f conftest.err conftest.i conftest.$ac_ext
20275   if test -z "$tmp_exp"; then
20276     curl_cv_have_def___WATCOMC__=no
20277
20278   else
20279     curl_cv_have_def___WATCOMC__=yes
20280     curl_cv_def___WATCOMC__=$tmp_exp
20281
20282   fi
20283
20284   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
20285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286 $as_echo "yes" >&6; }
20287
20288       if test -z "$SED"; then
20289     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20290   fi
20291   if test -z "$GREP"; then
20292     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20293   fi
20294
20295   tmp_exp=""
20296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297 /* end confdefs.h.  */
20298
20299
20300 #ifdef __UNIX__
20301 CURL_DEF_TOKEN __UNIX__
20302 #endif
20303
20304
20305 _ACEOF
20306 if ac_fn_c_try_cpp "$LINENO"; then :
20307
20308     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20309       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20310       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20311       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20312     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
20313       tmp_exp=""
20314     fi
20315
20316 fi
20317 rm -f conftest.err conftest.i conftest.$ac_ext
20318   if test -z "$tmp_exp"; then
20319     curl_cv_have_def___UNIX__=no
20320
20321   else
20322     curl_cv_have_def___UNIX__=yes
20323     curl_cv_def___UNIX__=$tmp_exp
20324
20325   fi
20326
20327     if test "$curl_cv_have_def___UNIX__" = "yes"; then
20328       compiler_id="WATCOM_UNIX_C"
20329       flags_dbg_all="-g1 -g1+ -g2 -g3"
20330       flags_dbg_yes="-g2"
20331       flags_dbg_off=""
20332       flags_opt_all="-O0 -O1 -O2 -O3"
20333       flags_opt_yes="-O2"
20334       flags_opt_off="-O0"
20335     else
20336       compiler_id="WATCOM_WINDOWS_C"
20337       flags_dbg_all=""
20338       flags_dbg_yes=""
20339       flags_dbg_off=""
20340       flags_opt_all=""
20341       flags_opt_yes=""
20342       flags_opt_off=""
20343     fi
20344   else
20345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346 $as_echo "no" >&6; }
20347   fi
20348
20349   #
20350   if test "$compiler_id" = "unknown"; then
20351   cat <<_EOF 1>&2
20352 ***
20353 *** Warning: This configure script does not have information about the
20354 *** compiler you are using, relative to the flags required to enable or
20355 *** disable generation of debug info, optimization options or warnings.
20356 ***
20357 *** Whatever settings are present in CFLAGS will be used for this run.
20358 ***
20359 *** If you wish to help the c-ares project to better support your compiler
20360 *** you can report this and the required info on the c-ares development
20361 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
20362 ***
20363 _EOF
20364   fi
20365
20366
20367 squeeze() {
20368   _sqz_result=""
20369   eval _sqz_input=\$$1
20370   for _sqz_token in $_sqz_input; do
20371     if test -z "$_sqz_result"; then
20372       _sqz_result="$_sqz_token"
20373     else
20374       _sqz_result="$_sqz_result $_sqz_token"
20375     fi
20376   done
20377   eval $1=\$_sqz_result
20378   return 0
20379 }
20380
20381
20382       #
20383   if test "$compiler_id" != "unknown"; then
20384     #
20385     if test "$compiler_id" = "GNU_C" ||
20386       test "$compiler_id" = "CLANG"; then
20387
20388       if test "$compiler_id" = "GNU_C" ||
20389     test "$compiler_id" = "CLANG"; then
20390     tmp_has_include="no"
20391     tmp_chg_FLAGS="$CFLAGS"
20392     for word1 in $tmp_chg_FLAGS; do
20393       case "$word1" in
20394         -I*)
20395           tmp_has_include="yes"
20396           ;;
20397       esac
20398     done
20399     if test "$tmp_has_include" = "yes"; then
20400       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20401       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20402       CFLAGS="$tmp_chg_FLAGS"
20403       squeeze CFLAGS
20404     fi
20405     tmp_has_include="no"
20406     tmp_chg_FLAGS="$CPPFLAGS"
20407     for word1 in $tmp_chg_FLAGS; do
20408       case "$word1" in
20409         -I*)
20410           tmp_has_include="yes"
20411           ;;
20412       esac
20413     done
20414     if test "$tmp_has_include" = "yes"; then
20415       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20416       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20417       CPPFLAGS="$tmp_chg_FLAGS"
20418       squeeze CPPFLAGS
20419     fi
20420   fi
20421
20422     fi
20423     #
20424     tmp_save_CPPFLAGS="$CPPFLAGS"
20425     tmp_save_CFLAGS="$CFLAGS"
20426     tmp_CPPFLAGS=""
20427     tmp_CFLAGS=""
20428     #
20429     case "$compiler_id" in
20430         #
20431       CLANG)
20432         #
20433                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
20434         ;;
20435         #
20436       DEC_C)
20437         #
20438                 tmp_CFLAGS="$tmp_CFLAGS -std1"
20439                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
20440                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
20441                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
20442         ;;
20443         #
20444       GNU_C)
20445         #
20446                 tmp_CFLAGS="$tmp_CFLAGS"
20447         ;;
20448         #
20449       HP_UX_C)
20450         #
20451                 tmp_CFLAGS="$tmp_CFLAGS -z"
20452                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
20453         ;;
20454         #
20455       IBM_C)
20456         #
20457                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
20458                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
20459                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
20460         ;;
20461         #
20462       INTEL_UNIX_C)
20463         #
20464                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
20465                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
20466                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
20467         ;;
20468         #
20469       INTEL_WINDOWS_C)
20470         #
20471                 tmp_CFLAGS="$tmp_CFLAGS"
20472         ;;
20473         #
20474       LCC)
20475         #
20476                 tmp_CFLAGS="$tmp_CFLAGS -n"
20477         ;;
20478         #
20479       SGI_MIPS_C)
20480         #
20481                 tmp_CFLAGS="$tmp_CFLAGS"
20482         ;;
20483         #
20484       SGI_MIPSPRO_C)
20485         #
20486                 tmp_CFLAGS="$tmp_CFLAGS"
20487         ;;
20488         #
20489       SUNPRO_C)
20490         #
20491                 tmp_CFLAGS="$tmp_CFLAGS"
20492         ;;
20493         #
20494       TINY_C)
20495         #
20496                 tmp_CFLAGS="$tmp_CFLAGS"
20497         ;;
20498         #
20499       WATCOM_UNIX_C)
20500         #
20501                 tmp_CFLAGS="$tmp_CFLAGS"
20502         ;;
20503         #
20504       WATCOM_WINDOWS_C)
20505         #
20506                 tmp_CFLAGS="$tmp_CFLAGS"
20507         ;;
20508         #
20509     esac
20510     #
20511     squeeze tmp_CPPFLAGS
20512     squeeze tmp_CFLAGS
20513     #
20514     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
20516 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
20517       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20518       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20519       squeeze CPPFLAGS
20520       squeeze CFLAGS
20521
20522     tmp_compiler_works="unknown"
20523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h.  */
20525
20526
20527
20528 int main (void)
20529 {
20530
20531       int i = 1;
20532       return i;
20533
20534  ;
20535  return 0;
20536 }
20537
20538 _ACEOF
20539 if ac_fn_c_try_compile "$LINENO"; then :
20540
20541     tmp_compiler_works="yes"
20542
20543 else
20544
20545     tmp_compiler_works="no"
20546     echo " " >&6
20547     sed 's/^/cc-fail: /' conftest.err >&6
20548     echo " " >&6
20549
20550 fi
20551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552     if test "$tmp_compiler_works" = "yes"; then
20553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h.  */
20555
20556
20557
20558 int main (void)
20559 {
20560
20561         int i = 1;
20562         return i;
20563
20564  ;
20565  return 0;
20566 }
20567
20568 _ACEOF
20569 if ac_fn_c_try_link "$LINENO"; then :
20570
20571       tmp_compiler_works="yes"
20572
20573 else
20574
20575       tmp_compiler_works="no"
20576       echo " " >&6
20577       sed 's/^/link-fail: /' conftest.err >&6
20578       echo " " >&6
20579
20580 fi
20581 rm -f core conftest.err conftest.$ac_objext \
20582     conftest$ac_exeext conftest.$ac_ext
20583   fi
20584     if test "x$cross_compiling" != "xyes" &&
20585     test "$tmp_compiler_works" = "yes"; then
20586     if test "$cross_compiling" = yes; then :
20587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20589 as_fn_error $? "cannot run test program while cross compiling
20590 See \`config.log' for more details" "$LINENO" 5; }
20591 else
20592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h.  */
20594
20595
20596 #       ifdef __STDC__
20597 #         include <stdlib.h>
20598 #       endif
20599
20600 int main (void)
20601 {
20602
20603         int i = 0;
20604         exit(i);
20605
20606  ;
20607  return 0;
20608 }
20609
20610 _ACEOF
20611 if ac_fn_c_try_run "$LINENO"; then :
20612
20613       tmp_compiler_works="yes"
20614
20615 else
20616
20617       tmp_compiler_works="no"
20618       echo " " >&6
20619       echo "run-fail: test program exited with status $ac_status" >&6
20620       echo " " >&6
20621
20622 fi
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20624   conftest.$ac_objext conftest.beam conftest.$ac_ext
20625 fi
20626
20627   fi
20628     if test "$tmp_compiler_works" = "yes"; then
20629
20630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20631 $as_echo "yes" >&6; }
20632         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20633 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20634
20635   else
20636
20637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20638 $as_echo "no" >&6; }
20639         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20640 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20641                 CPPFLAGS="$tmp_save_CPPFLAGS"
20642         CFLAGS="$tmp_save_CFLAGS"
20643
20644   fi
20645
20646     fi
20647     #
20648   fi
20649
20650
20651         #
20652   if test "$compiler_id" != "unknown"; then
20653     #
20654     tmp_save_CFLAGS="$CFLAGS"
20655     tmp_save_CPPFLAGS="$CPPFLAGS"
20656     #
20657     tmp_options=""
20658     tmp_CFLAGS="$CFLAGS"
20659     tmp_CPPFLAGS="$CPPFLAGS"
20660
20661     ac_var_stripped=""
20662   for word1 in $tmp_CFLAGS; do
20663     ac_var_strip_word="no"
20664     for word2 in $flags_dbg_all; do
20665       if test "$word1" = "$word2"; then
20666         ac_var_strip_word="yes"
20667       fi
20668     done
20669     if test "$ac_var_strip_word" = "no"; then
20670       ac_var_stripped="$ac_var_stripped $word1"
20671     fi
20672   done
20673     tmp_CFLAGS="$ac_var_stripped"
20674   squeeze tmp_CFLAGS
20675
20676
20677     ac_var_stripped=""
20678   for word1 in $tmp_CPPFLAGS; do
20679     ac_var_strip_word="no"
20680     for word2 in $flags_dbg_all; do
20681       if test "$word1" = "$word2"; then
20682         ac_var_strip_word="yes"
20683       fi
20684     done
20685     if test "$ac_var_strip_word" = "no"; then
20686       ac_var_stripped="$ac_var_stripped $word1"
20687     fi
20688   done
20689     tmp_CPPFLAGS="$ac_var_stripped"
20690   squeeze tmp_CPPFLAGS
20691
20692     #
20693     if test "$want_debug" = "yes"; then
20694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
20695 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
20696       tmp_options="$flags_dbg_yes"
20697     fi
20698     if test "$want_debug" = "no"; then
20699       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
20700 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
20701       tmp_options="$flags_dbg_off"
20702     fi
20703     #
20704     if test "$flags_prefer_cppflags" = "yes"; then
20705       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20706       CFLAGS="$tmp_CFLAGS"
20707     else
20708       CPPFLAGS="$tmp_CPPFLAGS"
20709       CFLAGS="$tmp_CFLAGS $tmp_options"
20710     fi
20711     squeeze CPPFLAGS
20712     squeeze CFLAGS
20713
20714     tmp_compiler_works="unknown"
20715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h.  */
20717
20718
20719
20720 int main (void)
20721 {
20722
20723       int i = 1;
20724       return i;
20725
20726  ;
20727  return 0;
20728 }
20729
20730 _ACEOF
20731 if ac_fn_c_try_compile "$LINENO"; then :
20732
20733     tmp_compiler_works="yes"
20734
20735 else
20736
20737     tmp_compiler_works="no"
20738     echo " " >&6
20739     sed 's/^/cc-fail: /' conftest.err >&6
20740     echo " " >&6
20741
20742 fi
20743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20744     if test "$tmp_compiler_works" = "yes"; then
20745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20746 /* end confdefs.h.  */
20747
20748
20749
20750 int main (void)
20751 {
20752
20753         int i = 1;
20754         return i;
20755
20756  ;
20757  return 0;
20758 }
20759
20760 _ACEOF
20761 if ac_fn_c_try_link "$LINENO"; then :
20762
20763       tmp_compiler_works="yes"
20764
20765 else
20766
20767       tmp_compiler_works="no"
20768       echo " " >&6
20769       sed 's/^/link-fail: /' conftest.err >&6
20770       echo " " >&6
20771
20772 fi
20773 rm -f core conftest.err conftest.$ac_objext \
20774     conftest$ac_exeext conftest.$ac_ext
20775   fi
20776     if test "x$cross_compiling" != "xyes" &&
20777     test "$tmp_compiler_works" = "yes"; then
20778     if test "$cross_compiling" = yes; then :
20779   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20781 as_fn_error $? "cannot run test program while cross compiling
20782 See \`config.log' for more details" "$LINENO" 5; }
20783 else
20784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h.  */
20786
20787
20788 #       ifdef __STDC__
20789 #         include <stdlib.h>
20790 #       endif
20791
20792 int main (void)
20793 {
20794
20795         int i = 0;
20796         exit(i);
20797
20798  ;
20799  return 0;
20800 }
20801
20802 _ACEOF
20803 if ac_fn_c_try_run "$LINENO"; then :
20804
20805       tmp_compiler_works="yes"
20806
20807 else
20808
20809       tmp_compiler_works="no"
20810       echo " " >&6
20811       echo "run-fail: test program exited with status $ac_status" >&6
20812       echo " " >&6
20813
20814 fi
20815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20816   conftest.$ac_objext conftest.beam conftest.$ac_ext
20817 fi
20818
20819   fi
20820     if test "$tmp_compiler_works" = "yes"; then
20821
20822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20823 $as_echo "yes" >&6; }
20824       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
20825 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
20826
20827   else
20828
20829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
20832 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
20833             CPPFLAGS="$tmp_save_CPPFLAGS"
20834       CFLAGS="$tmp_save_CFLAGS"
20835
20836   fi
20837
20838     #
20839   fi
20840
20841
20842         #
20843   if test "$compiler_id" != "unknown"; then
20844     #
20845     tmp_save_CFLAGS="$CFLAGS"
20846     tmp_save_CPPFLAGS="$CPPFLAGS"
20847     #
20848     tmp_options=""
20849     tmp_CFLAGS="$CFLAGS"
20850     tmp_CPPFLAGS="$CPPFLAGS"
20851     honor_optimize_option="yes"
20852     #
20853                         #
20854     if test "$want_optimize" = "assume_no" ||
20855        test "$want_optimize" = "assume_yes"; then
20856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
20857 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
20858
20859
20860   ac_var_match_word="no"
20861   for word1 in $tmp_CFLAGS; do
20862     for word2 in $flags_opt_all; do
20863       if test "$word1" = "$word2"; then
20864         ac_var_match_word="yes"
20865       fi
20866     done
20867   done
20868
20869   if test "$ac_var_match_word" = "yes"; then
20870
20871         honor_optimize_option="no"
20872
20873
20874   fi
20875
20876
20877
20878   ac_var_match_word="no"
20879   for word1 in $tmp_CPPFLAGS; do
20880     for word2 in $flags_opt_all; do
20881       if test "$word1" = "$word2"; then
20882         ac_var_match_word="yes"
20883       fi
20884     done
20885   done
20886
20887   if test "$ac_var_match_word" = "yes"; then
20888
20889         honor_optimize_option="no"
20890
20891
20892   fi
20893
20894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
20895 $as_echo "$honor_optimize_option" >&6; }
20896       if test "$honor_optimize_option" = "yes"; then
20897         if test "$want_optimize" = "assume_yes"; then
20898           want_optimize="yes"
20899         fi
20900         if test "$want_optimize" = "assume_no"; then
20901           want_optimize="no"
20902         fi
20903       fi
20904     fi
20905     #
20906     if test "$honor_optimize_option" = "yes"; then
20907
20908     ac_var_stripped=""
20909   for word1 in $tmp_CFLAGS; do
20910     ac_var_strip_word="no"
20911     for word2 in $flags_opt_all; do
20912       if test "$word1" = "$word2"; then
20913         ac_var_strip_word="yes"
20914       fi
20915     done
20916     if test "$ac_var_strip_word" = "no"; then
20917       ac_var_stripped="$ac_var_stripped $word1"
20918     fi
20919   done
20920     tmp_CFLAGS="$ac_var_stripped"
20921   squeeze tmp_CFLAGS
20922
20923
20924     ac_var_stripped=""
20925   for word1 in $tmp_CPPFLAGS; do
20926     ac_var_strip_word="no"
20927     for word2 in $flags_opt_all; do
20928       if test "$word1" = "$word2"; then
20929         ac_var_strip_word="yes"
20930       fi
20931     done
20932     if test "$ac_var_strip_word" = "no"; then
20933       ac_var_stripped="$ac_var_stripped $word1"
20934     fi
20935   done
20936     tmp_CPPFLAGS="$ac_var_stripped"
20937   squeeze tmp_CPPFLAGS
20938
20939       if test "$want_optimize" = "yes"; then
20940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
20941 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
20942         tmp_options="$flags_opt_yes"
20943       fi
20944       if test "$want_optimize" = "no"; then
20945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
20946 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
20947         tmp_options="$flags_opt_off"
20948       fi
20949       if test "$flags_prefer_cppflags" = "yes"; then
20950         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20951         CFLAGS="$tmp_CFLAGS"
20952       else
20953         CPPFLAGS="$tmp_CPPFLAGS"
20954         CFLAGS="$tmp_CFLAGS $tmp_options"
20955       fi
20956       squeeze CPPFLAGS
20957       squeeze CFLAGS
20958
20959     tmp_compiler_works="unknown"
20960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20961 /* end confdefs.h.  */
20962
20963
20964
20965 int main (void)
20966 {
20967
20968       int i = 1;
20969       return i;
20970
20971  ;
20972  return 0;
20973 }
20974
20975 _ACEOF
20976 if ac_fn_c_try_compile "$LINENO"; then :
20977
20978     tmp_compiler_works="yes"
20979
20980 else
20981
20982     tmp_compiler_works="no"
20983     echo " " >&6
20984     sed 's/^/cc-fail: /' conftest.err >&6
20985     echo " " >&6
20986
20987 fi
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989     if test "$tmp_compiler_works" = "yes"; then
20990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h.  */
20992
20993
20994
20995 int main (void)
20996 {
20997
20998         int i = 1;
20999         return i;
21000
21001  ;
21002  return 0;
21003 }
21004
21005 _ACEOF
21006 if ac_fn_c_try_link "$LINENO"; then :
21007
21008       tmp_compiler_works="yes"
21009
21010 else
21011
21012       tmp_compiler_works="no"
21013       echo " " >&6
21014       sed 's/^/link-fail: /' conftest.err >&6
21015       echo " " >&6
21016
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020   fi
21021     if test "x$cross_compiling" != "xyes" &&
21022     test "$tmp_compiler_works" = "yes"; then
21023     if test "$cross_compiling" = yes; then :
21024   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 as_fn_error $? "cannot run test program while cross compiling
21027 See \`config.log' for more details" "$LINENO" 5; }
21028 else
21029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h.  */
21031
21032
21033 #       ifdef __STDC__
21034 #         include <stdlib.h>
21035 #       endif
21036
21037 int main (void)
21038 {
21039
21040         int i = 0;
21041         exit(i);
21042
21043  ;
21044  return 0;
21045 }
21046
21047 _ACEOF
21048 if ac_fn_c_try_run "$LINENO"; then :
21049
21050       tmp_compiler_works="yes"
21051
21052 else
21053
21054       tmp_compiler_works="no"
21055       echo " " >&6
21056       echo "run-fail: test program exited with status $ac_status" >&6
21057       echo " " >&6
21058
21059 fi
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061   conftest.$ac_objext conftest.beam conftest.$ac_ext
21062 fi
21063
21064   fi
21065     if test "$tmp_compiler_works" = "yes"; then
21066
21067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068 $as_echo "yes" >&6; }
21069         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
21070 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
21071
21072   else
21073
21074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21076         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
21077 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
21078                 CPPFLAGS="$tmp_save_CPPFLAGS"
21079         CFLAGS="$tmp_save_CFLAGS"
21080
21081   fi
21082
21083     fi
21084     #
21085   fi
21086
21087
21088         #
21089   if test "$compiler_id" != "unknown"; then
21090     #
21091     tmp_save_CPPFLAGS="$CPPFLAGS"
21092     tmp_save_CFLAGS="$CFLAGS"
21093     tmp_CPPFLAGS=""
21094     tmp_CFLAGS=""
21095     #
21096     case "$compiler_id" in
21097         #
21098       CLANG)
21099         #
21100         if test "$want_warnings" = "yes"; then
21101           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21102           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21103           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21104           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
21105           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21106           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21107           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21108           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21109           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21110           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21111           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21112           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21113           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21114           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21115           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21116           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21117           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
21118           #
21119                     if test "$compiler_num" -ge "101"; then
21120             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
21121           fi
21122         fi
21123         ;;
21124         #
21125       DEC_C)
21126         #
21127         if test "$want_warnings" = "yes"; then
21128                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
21129         fi
21130         ;;
21131         #
21132       GNU_C)
21133         #
21134         if test "$want_warnings" = "yes"; then
21135           #
21136                               if test "x$cross_compiling" != "xyes" ||
21137             test "$compiler_num" -ge "300"; then
21138             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21139           fi
21140           #
21141                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
21142           #
21143                     if test "$compiler_num" -ge "104"; then
21144             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21145                         if test "x$cross_compiling" != "xyes" ||
21146               test "$compiler_num" -ge "300"; then
21147               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
21148             fi
21149           fi
21150           #
21151                     if test "$compiler_num" -ge "207"; then
21152             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21153                         if test "x$cross_compiling" != "xyes" ||
21154               test "$compiler_num" -ge "300"; then
21155               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21156               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21157             fi
21158           fi
21159           #
21160                     if test "$compiler_num" -ge "295"; then
21161             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21162           fi
21163           #
21164                     if test "$compiler_num" -ge "296"; then
21165             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21166             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21167                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21168           fi
21169           #
21170                     if test "$compiler_num" -ge "297"; then
21171             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21172           fi
21173           #
21174                     if test "$compiler_num" -ge "300"; then
21175                                                             tmp_CFLAGS="$tmp_CFLAGS"
21176           fi
21177           #
21178                     if test "$compiler_num" -ge "303"; then
21179             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21180           fi
21181           #
21182                     if test "$compiler_num" -ge "304"; then
21183             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21184           fi
21185           #
21186                     if test "$compiler_num" -ge "400"; then
21187             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
21188           fi
21189           #
21190                     if test "$compiler_num" -ge "402"; then
21191             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21192           fi
21193           #
21194                     if test "$compiler_num" -ge "403"; then
21195             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
21196             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
21197             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
21198             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
21199           fi
21200           #
21201                     if test "$compiler_num" -ge "405"; then
21202                         if test "$curl_cv_have_def__WIN32" = "yes"; then
21203               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
21204             fi
21205           fi
21206           #
21207         fi
21208         #
21209                 if test "$compiler_num" -ge "300"; then
21210           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21211         else
21212                               if test "x$cross_compiling" = "xyes"; then
21213             if test "$compiler_num" -ge "104"; then
21214                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
21215             fi
21216             if test "$compiler_num" -ge "207"; then
21217                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
21218               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
21219             fi
21220           fi
21221         fi
21222         ;;
21223         #
21224       HP_UX_C)
21225         #
21226         if test "$want_warnings" = "yes"; then
21227                     tmp_CFLAGS="$tmp_CFLAGS +w1"
21228         fi
21229         ;;
21230         #
21231       IBM_C)
21232         #
21233                 tmp_CFLAGS="$tmp_CFLAGS"
21234         ;;
21235         #
21236       INTEL_UNIX_C)
21237         #
21238         if test "$want_warnings" = "yes"; then
21239           if test "$compiler_num" -gt "600"; then
21240                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
21241                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
21242                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
21243                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
21244                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
21245                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
21246                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
21247                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
21248                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
21249                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
21250                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
21251           fi
21252         fi
21253                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
21254                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
21255                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
21256                 if test "$compiler_num" -ge "1000"; then
21257                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
21258         fi
21259         ;;
21260         #
21261       INTEL_WINDOWS_C)
21262         #
21263                 tmp_CFLAGS="$tmp_CFLAGS"
21264         ;;
21265         #
21266       LCC)
21267         #
21268         if test "$want_warnings" = "yes"; then
21269                                                   tmp_CFLAGS="$tmp_CFLAGS"
21270         fi
21271         ;;
21272         #
21273       SGI_MIPS_C)
21274         #
21275         if test "$want_warnings" = "yes"; then
21276                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21277         fi
21278         ;;
21279         #
21280       SGI_MIPSPRO_C)
21281         #
21282         if test "$want_warnings" = "yes"; then
21283                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21284                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
21285         fi
21286         ;;
21287         #
21288       SUNPRO_C)
21289         #
21290         if test "$want_warnings" = "yes"; then
21291                     tmp_CFLAGS="$tmp_CFLAGS -v"
21292         fi
21293         ;;
21294         #
21295       TINY_C)
21296         #
21297         if test "$want_warnings" = "yes"; then
21298                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
21299                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
21300                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
21301         fi
21302         ;;
21303         #
21304       WATCOM_UNIX_C)
21305         #
21306         if test "$want_warnings" = "yes"; then
21307                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21308         fi
21309         ;;
21310         #
21311       WATCOM_WINDOWS_C)
21312         #
21313                 tmp_CFLAGS="$tmp_CFLAGS"
21314         ;;
21315         #
21316     esac
21317     #
21318     squeeze tmp_CPPFLAGS
21319     squeeze tmp_CFLAGS
21320     #
21321     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21323 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
21324       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21325       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21326       squeeze CPPFLAGS
21327       squeeze CFLAGS
21328
21329     tmp_compiler_works="unknown"
21330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h.  */
21332
21333
21334
21335 int main (void)
21336 {
21337
21338       int i = 1;
21339       return i;
21340
21341  ;
21342  return 0;
21343 }
21344
21345 _ACEOF
21346 if ac_fn_c_try_compile "$LINENO"; then :
21347
21348     tmp_compiler_works="yes"
21349
21350 else
21351
21352     tmp_compiler_works="no"
21353     echo " " >&6
21354     sed 's/^/cc-fail: /' conftest.err >&6
21355     echo " " >&6
21356
21357 fi
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359     if test "$tmp_compiler_works" = "yes"; then
21360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h.  */
21362
21363
21364
21365 int main (void)
21366 {
21367
21368         int i = 1;
21369         return i;
21370
21371  ;
21372  return 0;
21373 }
21374
21375 _ACEOF
21376 if ac_fn_c_try_link "$LINENO"; then :
21377
21378       tmp_compiler_works="yes"
21379
21380 else
21381
21382       tmp_compiler_works="no"
21383       echo " " >&6
21384       sed 's/^/link-fail: /' conftest.err >&6
21385       echo " " >&6
21386
21387 fi
21388 rm -f core conftest.err conftest.$ac_objext \
21389     conftest$ac_exeext conftest.$ac_ext
21390   fi
21391     if test "x$cross_compiling" != "xyes" &&
21392     test "$tmp_compiler_works" = "yes"; then
21393     if test "$cross_compiling" = yes; then :
21394   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21396 as_fn_error $? "cannot run test program while cross compiling
21397 See \`config.log' for more details" "$LINENO" 5; }
21398 else
21399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400 /* end confdefs.h.  */
21401
21402
21403 #       ifdef __STDC__
21404 #         include <stdlib.h>
21405 #       endif
21406
21407 int main (void)
21408 {
21409
21410         int i = 0;
21411         exit(i);
21412
21413  ;
21414  return 0;
21415 }
21416
21417 _ACEOF
21418 if ac_fn_c_try_run "$LINENO"; then :
21419
21420       tmp_compiler_works="yes"
21421
21422 else
21423
21424       tmp_compiler_works="no"
21425       echo " " >&6
21426       echo "run-fail: test program exited with status $ac_status" >&6
21427       echo " " >&6
21428
21429 fi
21430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21431   conftest.$ac_objext conftest.beam conftest.$ac_ext
21432 fi
21433
21434   fi
21435     if test "$tmp_compiler_works" = "yes"; then
21436
21437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21438 $as_echo "yes" >&6; }
21439         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21440 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21441
21442   else
21443
21444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445 $as_echo "no" >&6; }
21446         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21447 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21448                 CPPFLAGS="$tmp_save_CPPFLAGS"
21449         CFLAGS="$tmp_save_CFLAGS"
21450
21451   fi
21452
21453     fi
21454     #
21455   fi
21456
21457
21458 if test "$compiler_id" = "INTEL_UNIX_C"; then
21459   #
21460   if test "$compiler_num" -ge "1000"; then
21461         CFLAGS="$CFLAGS -shared-intel"
21462   elif test "$compiler_num" -ge "900"; then
21463         CFLAGS="$CFLAGS -i-dynamic"
21464   fi
21465   #
21466 fi
21467
21468
21469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21470 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
21471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h.  */
21473
21474
21475
21476 int main (void)
21477 {
21478
21479       force compilation error
21480
21481  ;
21482  return 0;
21483 }
21484
21485 _ACEOF
21486 if ac_fn_c_try_compile "$LINENO"; then :
21487
21488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21490     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21491
21492 else
21493
21494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21495 $as_echo "yes" >&6; }
21496
21497 fi
21498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499
21500
21501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21502 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
21503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h.  */
21505
21506
21507       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21508
21509 int main (void)
21510 {
21511
21512       bad_t dummy;
21513
21514  ;
21515  return 0;
21516 }
21517
21518 _ACEOF
21519 if ac_fn_c_try_compile "$LINENO"; then :
21520
21521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21523     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21524
21525 else
21526
21527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 $as_echo "yes" >&6; }
21529
21530 fi
21531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532
21533
21534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21535 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
21536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h.  */
21538
21539
21540 #     include <stdlib.h>
21541       int rand(int n);
21542       int rand(int n)
21543       {
21544         if(n)
21545           return ++n;
21546         else
21547           return n;
21548       }
21549
21550 int main (void)
21551 {
21552
21553       int i[2];
21554       int j = rand(i[0]);
21555       if(j)
21556         return j;
21557
21558  ;
21559  return 0;
21560 }
21561
21562 _ACEOF
21563 if ac_fn_c_try_compile "$LINENO"; then :
21564
21565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 $as_echo "no" >&6; }
21567     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21568
21569 else
21570
21571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21572 $as_echo "yes" >&6; }
21573
21574 fi
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21576
21577
21578       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21579 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
21580   supports_symbol_hiding="no"
21581   symbol_hiding_CFLAGS=""
21582   symbol_hiding_EXTERN=""
21583   tmp_CFLAGS=""
21584   tmp_EXTERN=""
21585   case "$compiler_id" in
21586     CLANG)
21587             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21588       tmp_CFLAGS="-fvisibility=hidden"
21589       supports_symbol_hiding="yes"
21590       ;;
21591     GNU_C)
21592             if test "$compiler_num" -ge "304"; then
21593         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21594           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21595           tmp_CFLAGS="-fvisibility=hidden"
21596           supports_symbol_hiding="yes"
21597         fi
21598       fi
21599       ;;
21600     INTEL_UNIX_C)
21601             if test "$compiler_num" -ge "900"; then
21602         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21603           tmp_save_CFLAGS="$CFLAGS"
21604           CFLAGS="$CFLAGS -fvisibility=hidden"
21605           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h.  */
21607
21608
21609 #             include <stdio.h>
21610
21611 int main (void)
21612 {
21613
21614               printf("icc fvisibility bug test");
21615
21616  ;
21617  return 0;
21618 }
21619
21620 _ACEOF
21621 if ac_fn_c_try_link "$LINENO"; then :
21622
21623             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21624             tmp_CFLAGS="-fvisibility=hidden"
21625             supports_symbol_hiding="yes"
21626
21627 fi
21628 rm -f core conftest.err conftest.$ac_objext \
21629     conftest$ac_exeext conftest.$ac_ext
21630           CFLAGS="$tmp_save_CFLAGS"
21631         fi
21632       fi
21633       ;;
21634     SUNPRO_C)
21635       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21636         tmp_EXTERN="__global"
21637         tmp_CFLAGS="-xldscope=hidden"
21638         supports_symbol_hiding="yes"
21639       fi
21640       ;;
21641   esac
21642   if test "$supports_symbol_hiding" = "yes"; then
21643     tmp_save_CFLAGS="$CFLAGS"
21644     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21645     squeeze CFLAGS
21646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h.  */
21648
21649
21650         $tmp_EXTERN char *dummy(char *buff);
21651         char *dummy(char *buff)
21652         {
21653          if(buff)
21654            return ++buff;
21655          else
21656            return buff;
21657         }
21658
21659 int main (void)
21660 {
21661
21662         char b[16];
21663         char *r = dummy(&b[0]);
21664         if(r)
21665           return (int)*r;
21666
21667  ;
21668  return 0;
21669 }
21670
21671 _ACEOF
21672 if ac_fn_c_try_compile "$LINENO"; then :
21673
21674       supports_symbol_hiding="yes"
21675       if test -f conftest.err; then
21676         grep 'visibility' conftest.err >/dev/null
21677         if test "$?" -eq "0"; then
21678           supports_symbol_hiding="no"
21679         fi
21680       fi
21681
21682 else
21683
21684       supports_symbol_hiding="no"
21685       echo " " >&6
21686       sed 's/^/cc-src: /' conftest.$ac_ext >&6
21687       sed 's/^/cc-err: /' conftest.err >&6
21688       echo " " >&6
21689
21690 fi
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692     CFLAGS="$tmp_save_CFLAGS"
21693   fi
21694   if test "$supports_symbol_hiding" = "yes"; then
21695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21696 $as_echo "yes" >&6; }
21697     symbol_hiding_CFLAGS="$tmp_CFLAGS"
21698     symbol_hiding_EXTERN="$tmp_EXTERN"
21699   else
21700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21702   fi
21703
21704
21705
21706
21707
21708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21709 $as_echo_n "checking for windows.h... " >&6; }
21710 if ${ac_cv_header_windows_h+:} false; then :
21711   $as_echo_n "(cached) " >&6
21712 else
21713
21714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h.  */
21716
21717
21718 #undef inline
21719 #ifndef WIN32_LEAN_AND_MEAN
21720 #define WIN32_LEAN_AND_MEAN
21721 #endif
21722 #include <windows.h>
21723
21724 int main (void)
21725 {
21726
21727 #if defined(__CYGWIN__) || defined(__CEGCC__)
21728         HAVE_WINDOWS_H shall not be defined.
21729 #else
21730         int dummy=2*WINVER;
21731 #endif
21732
21733  ;
21734  return 0;
21735 }
21736
21737 _ACEOF
21738 if ac_fn_c_try_compile "$LINENO"; then :
21739
21740       ac_cv_header_windows_h="yes"
21741
21742 else
21743
21744       ac_cv_header_windows_h="no"
21745
21746 fi
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748
21749 fi
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
21751 $as_echo "$ac_cv_header_windows_h" >&6; }
21752   case "$ac_cv_header_windows_h" in
21753     yes)
21754
21755 cat >>confdefs.h <<_ACEOF
21756 #define HAVE_WINDOWS_H 1
21757 _ACEOF
21758
21759
21760 cat >>confdefs.h <<_ACEOF
21761 #define WIN32_LEAN_AND_MEAN 1
21762 _ACEOF
21763
21764       ;;
21765   esac
21766
21767
21768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21769 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
21770 if ${ac_cv_native_windows+:} false; then :
21771   $as_echo_n "(cached) " >&6
21772 else
21773
21774     if test "$ac_cv_header_windows_h" = "no"; then
21775       ac_cv_native_windows="no"
21776     else
21777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h.  */
21779
21780
21781
21782 int main (void)
21783 {
21784
21785 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21786    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21787           int dummy=1;
21788 #else
21789           Not a native Windows build target.
21790 #endif
21791
21792  ;
21793  return 0;
21794 }
21795
21796 _ACEOF
21797 if ac_fn_c_try_compile "$LINENO"; then :
21798
21799         ac_cv_native_windows="yes"
21800
21801 else
21802
21803         ac_cv_native_windows="no"
21804
21805 fi
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807     fi
21808
21809 fi
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
21811 $as_echo "$ac_cv_native_windows" >&6; }
21812    if test "x$ac_cv_native_windows" = xyes; then
21813   DOING_NATIVE_WINDOWS_TRUE=
21814   DOING_NATIVE_WINDOWS_FALSE='#'
21815 else
21816   DOING_NATIVE_WINDOWS_TRUE='#'
21817   DOING_NATIVE_WINDOWS_FALSE=
21818 fi
21819
21820
21821 case X-"$ac_cv_native_windows" in
21822   X-yes)
21823
21824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21825 $as_echo_n "checking for winsock.h... " >&6; }
21826 if ${ac_cv_header_winsock_h+:} false; then :
21827   $as_echo_n "(cached) " >&6
21828 else
21829
21830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h.  */
21832
21833
21834 #undef inline
21835 #ifndef WIN32_LEAN_AND_MEAN
21836 #define WIN32_LEAN_AND_MEAN
21837 #endif
21838 #include <windows.h>
21839 #include <winsock.h>
21840
21841 int main (void)
21842 {
21843
21844 #if defined(__CYGWIN__) || defined(__CEGCC__)
21845         HAVE_WINSOCK_H shall not be defined.
21846 #else
21847         int dummy=WSACleanup();
21848 #endif
21849
21850  ;
21851  return 0;
21852 }
21853
21854 _ACEOF
21855 if ac_fn_c_try_compile "$LINENO"; then :
21856
21857       ac_cv_header_winsock_h="yes"
21858
21859 else
21860
21861       ac_cv_header_winsock_h="no"
21862
21863 fi
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21865
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
21868 $as_echo "$ac_cv_header_winsock_h" >&6; }
21869   case "$ac_cv_header_winsock_h" in
21870     yes)
21871
21872 cat >>confdefs.h <<_ACEOF
21873 #define HAVE_WINSOCK_H 1
21874 _ACEOF
21875
21876       ;;
21877   esac
21878
21879
21880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21881 $as_echo_n "checking for winsock2.h... " >&6; }
21882 if ${ac_cv_header_winsock2_h+:} false; then :
21883   $as_echo_n "(cached) " >&6
21884 else
21885
21886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h.  */
21888
21889
21890 #undef inline
21891 #ifndef WIN32_LEAN_AND_MEAN
21892 #define WIN32_LEAN_AND_MEAN
21893 #endif
21894 #include <windows.h>
21895 #include <winsock2.h>
21896
21897 int main (void)
21898 {
21899
21900 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21901         HAVE_WINSOCK2_H shall not be defined.
21902 #else
21903         int dummy=2*IPPROTO_ESP;
21904 #endif
21905
21906  ;
21907  return 0;
21908 }
21909
21910 _ACEOF
21911 if ac_fn_c_try_compile "$LINENO"; then :
21912
21913       ac_cv_header_winsock2_h="yes"
21914
21915 else
21916
21917       ac_cv_header_winsock2_h="no"
21918
21919 fi
21920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921
21922 fi
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
21924 $as_echo "$ac_cv_header_winsock2_h" >&6; }
21925   case "$ac_cv_header_winsock2_h" in
21926     yes)
21927
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_WINSOCK2_H 1
21930 _ACEOF
21931
21932       ;;
21933   esac
21934
21935
21936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21937 $as_echo_n "checking for ws2tcpip.h... " >&6; }
21938 if ${ac_cv_header_ws2tcpip_h+:} false; then :
21939   $as_echo_n "(cached) " >&6
21940 else
21941
21942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h.  */
21944
21945
21946 #undef inline
21947 #ifndef WIN32_LEAN_AND_MEAN
21948 #define WIN32_LEAN_AND_MEAN
21949 #endif
21950 #include <windows.h>
21951 #include <winsock2.h>
21952 #include <ws2tcpip.h>
21953
21954 int main (void)
21955 {
21956
21957 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21958         HAVE_WS2TCPIP_H shall not be defined.
21959 #else
21960         int dummy=2*IP_PKTINFO;
21961 #endif
21962
21963  ;
21964  return 0;
21965 }
21966
21967 _ACEOF
21968 if ac_fn_c_try_compile "$LINENO"; then :
21969
21970       ac_cv_header_ws2tcpip_h="yes"
21971
21972 else
21973
21974       ac_cv_header_ws2tcpip_h="no"
21975
21976 fi
21977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
21981 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
21982   case "$ac_cv_header_ws2tcpip_h" in
21983     yes)
21984
21985 cat >>confdefs.h <<_ACEOF
21986 #define HAVE_WS2TCPIP_H 1
21987 _ACEOF
21988
21989       ;;
21990   esac
21991
21992     CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
21993     ;;
21994   *)
21995     ac_cv_header_winsock_h="no"
21996     ac_cv_header_winsock2_h="no"
21997     ac_cv_header_ws2tcpip_h="no"
21998     ;;
21999 esac
22000
22001
22002
22003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22004 $as_echo_n "checking if X/Open network library is required... " >&6; }
22005   tst_lib_xnet_required="no"
22006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h.  */
22008
22009
22010 int main (void)
22011 {
22012 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22013   return 0;
22014 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22015   return 0;
22016 #else
22017   force compilation error
22018 #endif
22019 }
22020
22021
22022 _ACEOF
22023 if ac_fn_c_try_compile "$LINENO"; then :
22024
22025     tst_lib_xnet_required="yes"
22026     LIBS="$LIBS -lxnet"
22027
22028 fi
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22031 $as_echo "$tst_lib_xnet_required" >&6; }
22032
22033
22034 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22035 if test "x$ac_cv_func_gethostbyname" = xyes; then :
22036   HAVE_GETHOSTBYNAME="1"
22037
22038 else
22039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22040 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22041 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044   ac_check_lib_save_LIBS=$LIBS
22045 LIBS="-lnsl  $LIBS"
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h.  */
22048
22049
22050 #ifdef __cplusplus
22051 extern "C"
22052 #endif
22053 char gethostbyname ();
22054 int main (void)
22055 {
22056 return gethostbyname ();
22057  ;
22058  return 0;
22059 }
22060 _ACEOF
22061 if ac_fn_c_try_link "$LINENO"; then :
22062   ac_cv_lib_nsl_gethostbyname=yes
22063 else
22064   ac_cv_lib_nsl_gethostbyname=no
22065 fi
22066 rm -f core conftest.err conftest.$ac_objext \
22067     conftest$ac_exeext conftest.$ac_ext
22068 LIBS=$ac_check_lib_save_LIBS
22069 fi
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22071 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22072 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22073   HAVE_GETHOSTBYNAME="1"
22074                              LIBS="$LIBS -lnsl"
22075
22076 fi
22077
22078
22079 fi
22080
22081
22082 if test "$HAVE_GETHOSTBYNAME" != "1"
22083 then
22084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22085 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
22086 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
22087   $as_echo_n "(cached) " >&6
22088 else
22089   ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-lsocket  $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h.  */
22093
22094
22095 #ifdef __cplusplus
22096 extern "C"
22097 #endif
22098 char gethostbyname ();
22099 int main (void)
22100 {
22101 return gethostbyname ();
22102  ;
22103  return 0;
22104 }
22105 _ACEOF
22106 if ac_fn_c_try_link "$LINENO"; then :
22107   ac_cv_lib_socket_gethostbyname=yes
22108 else
22109   ac_cv_lib_socket_gethostbyname=no
22110 fi
22111 rm -f core conftest.err conftest.$ac_objext \
22112     conftest$ac_exeext conftest.$ac_ext
22113 LIBS=$ac_check_lib_save_LIBS
22114 fi
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22116 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
22117 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
22118   HAVE_GETHOSTBYNAME="1"
22119                LIBS="$LIBS -lsocket"
22120
22121 fi
22122
22123 fi
22124
22125 if test "$HAVE_GETHOSTBYNAME" != "1"
22126 then
22127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22128 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
22129   my_ac_save_LIBS=$LIBS
22130   LIBS="-lnsl -lsocket $LIBS"
22131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h.  */
22133
22134
22135
22136 int main (void)
22137 {
22138
22139       gethostbyname();
22140
22141  ;
22142  return 0;
22143 }
22144
22145 _ACEOF
22146 if ac_fn_c_try_link "$LINENO"; then :
22147
22148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22149 $as_echo "yes" >&6; }
22150     HAVE_GETHOSTBYNAME="1"
22151
22152 else
22153
22154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22155 $as_echo "no" >&6; }
22156     LIBS=$my_ac_save_LIBS
22157
22158 fi
22159 rm -f core conftest.err conftest.$ac_objext \
22160     conftest$ac_exeext conftest.$ac_ext
22161 fi
22162
22163 if test "$HAVE_GETHOSTBYNAME" != "1"
22164 then
22165     if test "$ac_cv_header_windows_h" = "yes"; then
22166     if test "$ac_cv_header_winsock_h" = "yes"; then
22167       case $host in
22168         *-*-mingw32ce*)
22169           winsock_LIB="-lwinsock"
22170           ;;
22171         *)
22172           winsock_LIB="-lwsock32"
22173           ;;
22174       esac
22175     fi
22176     if test "$ac_cv_header_winsock2_h" = "yes"; then
22177       winsock_LIB="-lws2_32"
22178     fi
22179     if test ! -z "$winsock_LIB"; then
22180       my_ac_save_LIBS=$LIBS
22181       LIBS="$winsock_LIB $LIBS"
22182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22183 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
22184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h.  */
22186
22187
22188 #ifdef HAVE_WINDOWS_H
22189 #ifndef WIN32_LEAN_AND_MEAN
22190 #define WIN32_LEAN_AND_MEAN
22191 #endif
22192 #include <windows.h>
22193 #ifdef HAVE_WINSOCK2_H
22194 #include <winsock2.h>
22195 #else
22196 #ifdef HAVE_WINSOCK_H
22197 #include <winsock.h>
22198 #endif
22199 #endif
22200 #endif
22201
22202 int main (void)
22203 {
22204
22205           gethostbyname("www.dummysite.com");
22206
22207  ;
22208  return 0;
22209 }
22210
22211 _ACEOF
22212 if ac_fn_c_try_link "$LINENO"; then :
22213
22214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216         HAVE_GETHOSTBYNAME="1"
22217
22218 else
22219
22220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22221 $as_echo "no" >&6; }
22222         winsock_LIB=""
22223         LIBS=$my_ac_save_LIBS
22224
22225 fi
22226 rm -f core conftest.err conftest.$ac_objext \
22227     conftest$ac_exeext conftest.$ac_ext
22228     fi
22229   fi
22230 fi
22231
22232 if test "$HAVE_GETHOSTBYNAME" != "1"
22233 then
22234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22235 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
22236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h.  */
22238
22239
22240 /* Older Minix versions may need <net/gen/netdb.h> here instead */
22241 #include <netdb.h>
22242
22243 int main (void)
22244 {
22245
22246       gethostbyname("www.dummysite.com");
22247
22248  ;
22249  return 0;
22250 }
22251
22252 _ACEOF
22253 if ac_fn_c_try_link "$LINENO"; then :
22254
22255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22256 $as_echo "yes" >&6; }
22257     HAVE_GETHOSTBYNAME="1"
22258
22259 else
22260
22261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22262 $as_echo "no" >&6; }
22263
22264 fi
22265 rm -f core conftest.err conftest.$ac_objext \
22266     conftest$ac_exeext conftest.$ac_ext
22267 fi
22268
22269 if test "$HAVE_GETHOSTBYNAME" != "1"
22270 then
22271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22272 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
22273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h.  */
22275
22276
22277 #include <stdio.h>
22278 #include <netdb.h>
22279
22280 int main (void)
22281 {
22282
22283       gethostbyname("www.dummysite.com");
22284
22285  ;
22286  return 0;
22287 }
22288
22289 _ACEOF
22290 if ac_fn_c_try_link "$LINENO"; then :
22291
22292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22293 $as_echo "yes" >&6; }
22294     HAVE_GETHOSTBYNAME="1"
22295
22296 else
22297
22298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22299 $as_echo "no" >&6; }
22300
22301 fi
22302 rm -f core conftest.err conftest.$ac_objext \
22303     conftest$ac_exeext conftest.$ac_ext
22304 fi
22305
22306 if test "$HAVE_GETHOSTBYNAME" != "1"
22307 then
22308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22309 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
22310 if ${ac_cv_lib_net_gethostbyname+:} false; then :
22311   $as_echo_n "(cached) " >&6
22312 else
22313   ac_check_lib_save_LIBS=$LIBS
22314 LIBS="-lnet  $LIBS"
22315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316 /* end confdefs.h.  */
22317
22318
22319 #ifdef __cplusplus
22320 extern "C"
22321 #endif
22322 char gethostbyname ();
22323 int main (void)
22324 {
22325 return gethostbyname ();
22326  ;
22327  return 0;
22328 }
22329 _ACEOF
22330 if ac_fn_c_try_link "$LINENO"; then :
22331   ac_cv_lib_net_gethostbyname=yes
22332 else
22333   ac_cv_lib_net_gethostbyname=no
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext \
22336     conftest$ac_exeext conftest.$ac_ext
22337 LIBS=$ac_check_lib_save_LIBS
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22340 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
22341 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
22342   HAVE_GETHOSTBYNAME="1"
22343                LIBS="$LIBS -lnet"
22344
22345 fi
22346
22347 fi
22348
22349
22350 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22351   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22352 fi
22353
22354 if test "x$host_vendor" = "xapple"; then :
22355
22356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
22357 $as_echo_n "checking for library containing res_servicename... " >&6; }
22358 if ${ac_cv_search_res_servicename+:} false; then :
22359   $as_echo_n "(cached) " >&6
22360 else
22361   ac_func_search_save_LIBS=$LIBS
22362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22363 /* end confdefs.h.  */
22364
22365
22366 #ifdef __cplusplus
22367 extern "C"
22368 #endif
22369 char res_servicename ();
22370 int main (void)
22371 {
22372 return res_servicename ();
22373  ;
22374  return 0;
22375 }
22376 _ACEOF
22377 for ac_lib in '' resolv; do
22378   if test -z "$ac_lib"; then
22379     ac_res="none required"
22380   else
22381     ac_res=-l$ac_lib
22382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22383   fi
22384   if ac_fn_c_try_link "$LINENO"; then :
22385   ac_cv_search_res_servicename=$ac_res
22386 fi
22387 rm -f core conftest.err conftest.$ac_objext \
22388     conftest$ac_exeext
22389   if ${ac_cv_search_res_servicename+:} false; then :
22390   break
22391 fi
22392 done
22393 if ${ac_cv_search_res_servicename+:} false; then :
22394
22395 else
22396   ac_cv_search_res_servicename=no
22397 fi
22398 rm conftest.$ac_ext
22399 LIBS=$ac_func_search_save_LIBS
22400 fi
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
22402 $as_echo "$ac_cv_search_res_servicename" >&6; }
22403 ac_res=$ac_cv_search_res_servicename
22404 if test "$ac_res" != no; then :
22405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22406
22407
22408 $as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
22409
22410
22411 else
22412
22413     as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
22414
22415 fi
22416
22417
22418 fi
22419
22420 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22421 if test "x$ac_cv_func_strcasecmp" = xyes; then :
22422
22423 else
22424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22425 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22426 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22427   $as_echo_n "(cached) " >&6
22428 else
22429   ac_check_lib_save_LIBS=$LIBS
22430 LIBS="-lresolve  $LIBS"
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h.  */
22433
22434
22435 #ifdef __cplusplus
22436 extern "C"
22437 #endif
22438 char strcasecmp ();
22439 int main (void)
22440 {
22441 return strcasecmp ();
22442  ;
22443  return 0;
22444 }
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"; then :
22447   ac_cv_lib_resolve_strcasecmp=yes
22448 else
22449   ac_cv_lib_resolve_strcasecmp=no
22450 fi
22451 rm -f core conftest.err conftest.$ac_objext \
22452     conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22454 fi
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22456 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22457 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22458   cat >>confdefs.h <<_ACEOF
22459 #define HAVE_LIBRESOLVE 1
22460 _ACEOF
22461
22462   LIBS="-lresolve $LIBS"
22463
22464 fi
22465
22466 fi
22467
22468
22469 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
22470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22471 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22472 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22473   $as_echo_n "(cached) " >&6
22474 else
22475   ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lresolve -lnsl $LIBS"
22477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478 /* end confdefs.h.  */
22479
22480
22481 #ifdef __cplusplus
22482 extern "C"
22483 #endif
22484 char strcasecmp ();
22485 int main (void)
22486 {
22487 return strcasecmp ();
22488  ;
22489  return 0;
22490 }
22491 _ACEOF
22492 if ac_fn_c_try_link "$LINENO"; then :
22493   ac_cv_lib_resolve_strcasecmp=yes
22494 else
22495   ac_cv_lib_resolve_strcasecmp=no
22496 fi
22497 rm -f core conftest.err conftest.$ac_objext \
22498     conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22500 fi
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22502 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22503 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22504   LIBS="-lresolve $LIBS"
22505 fi
22506
22507 fi
22508 ac_cv_func_strcasecmp="no"
22509
22510
22511 cares_includes_winsock2="\
22512 /* includes start */
22513 #ifdef HAVE_WINDOWS_H
22514 #  ifndef WIN32_LEAN_AND_MEAN
22515 #    define WIN32_LEAN_AND_MEAN
22516 #  endif
22517 #  include <windows.h>
22518 #  ifdef HAVE_WINSOCK2_H
22519 #    include <winsock2.h>
22520 #  else
22521 #    ifdef HAVE_WINSOCK_H
22522 #      include <winsock.h>
22523 #    endif
22524 #  endif
22525 #endif
22526 /* includes end */"
22527
22528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22529 $as_echo_n "checking for windows.h... " >&6; }
22530 if ${ac_cv_header_windows_h+:} false; then :
22531   $as_echo_n "(cached) " >&6
22532 else
22533
22534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h.  */
22536
22537
22538 #undef inline
22539 #ifndef WIN32_LEAN_AND_MEAN
22540 #define WIN32_LEAN_AND_MEAN
22541 #endif
22542 #include <windows.h>
22543
22544 int main (void)
22545 {
22546
22547 #if defined(__CYGWIN__) || defined(__CEGCC__)
22548         HAVE_WINDOWS_H shall not be defined.
22549 #else
22550         int dummy=2*WINVER;
22551 #endif
22552
22553  ;
22554  return 0;
22555 }
22556
22557 _ACEOF
22558 if ac_fn_c_try_compile "$LINENO"; then :
22559
22560       ac_cv_header_windows_h="yes"
22561
22562 else
22563
22564       ac_cv_header_windows_h="no"
22565
22566 fi
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568
22569 fi
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22571 $as_echo "$ac_cv_header_windows_h" >&6; }
22572   case "$ac_cv_header_windows_h" in
22573     yes)
22574
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_WINDOWS_H 1
22577 _ACEOF
22578
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define WIN32_LEAN_AND_MEAN 1
22582 _ACEOF
22583
22584       ;;
22585   esac
22586
22587
22588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
22589 $as_echo_n "checking for winsock.h... " >&6; }
22590 if ${ac_cv_header_winsock_h+:} false; then :
22591   $as_echo_n "(cached) " >&6
22592 else
22593
22594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h.  */
22596
22597
22598 #undef inline
22599 #ifndef WIN32_LEAN_AND_MEAN
22600 #define WIN32_LEAN_AND_MEAN
22601 #endif
22602 #include <windows.h>
22603 #include <winsock.h>
22604
22605 int main (void)
22606 {
22607
22608 #if defined(__CYGWIN__) || defined(__CEGCC__)
22609         HAVE_WINSOCK_H shall not be defined.
22610 #else
22611         int dummy=WSACleanup();
22612 #endif
22613
22614  ;
22615  return 0;
22616 }
22617
22618 _ACEOF
22619 if ac_fn_c_try_compile "$LINENO"; then :
22620
22621       ac_cv_header_winsock_h="yes"
22622
22623 else
22624
22625       ac_cv_header_winsock_h="no"
22626
22627 fi
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629
22630 fi
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
22632 $as_echo "$ac_cv_header_winsock_h" >&6; }
22633   case "$ac_cv_header_winsock_h" in
22634     yes)
22635
22636 cat >>confdefs.h <<_ACEOF
22637 #define HAVE_WINSOCK_H 1
22638 _ACEOF
22639
22640       ;;
22641   esac
22642
22643
22644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22645 $as_echo_n "checking for winsock2.h... " >&6; }
22646 if ${ac_cv_header_winsock2_h+:} false; then :
22647   $as_echo_n "(cached) " >&6
22648 else
22649
22650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h.  */
22652
22653
22654 #undef inline
22655 #ifndef WIN32_LEAN_AND_MEAN
22656 #define WIN32_LEAN_AND_MEAN
22657 #endif
22658 #include <windows.h>
22659 #include <winsock2.h>
22660
22661 int main (void)
22662 {
22663
22664 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22665         HAVE_WINSOCK2_H shall not be defined.
22666 #else
22667         int dummy=2*IPPROTO_ESP;
22668 #endif
22669
22670  ;
22671  return 0;
22672 }
22673
22674 _ACEOF
22675 if ac_fn_c_try_compile "$LINENO"; then :
22676
22677       ac_cv_header_winsock2_h="yes"
22678
22679 else
22680
22681       ac_cv_header_winsock2_h="no"
22682
22683 fi
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685
22686 fi
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22688 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22689   case "$ac_cv_header_winsock2_h" in
22690     yes)
22691
22692 cat >>confdefs.h <<_ACEOF
22693 #define HAVE_WINSOCK2_H 1
22694 _ACEOF
22695
22696       ;;
22697   esac
22698
22699
22700
22701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22702 $as_echo_n "checking for connect in libraries... " >&6; }
22703   tst_connect_save_LIBS="$LIBS"
22704   tst_connect_need_LIBS="unknown"
22705   for tst_lib in '' '-lsocket' ; do
22706     if test "$tst_connect_need_LIBS" = "unknown"; then
22707       LIBS="$tst_lib $tst_connect_save_LIBS"
22708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22709 /* end confdefs.h.  */
22710
22711
22712           $cares_includes_winsock2
22713           #ifndef HAVE_WINDOWS_H
22714             int connect(int, void*, int);
22715           #endif
22716
22717 int main (void)
22718 {
22719
22720           if(0 != connect(0, 0, 0))
22721             return 1;
22722
22723  ;
22724  return 0;
22725 }
22726
22727 _ACEOF
22728 if ac_fn_c_try_link "$LINENO"; then :
22729
22730         tst_connect_need_LIBS="$tst_lib"
22731
22732 fi
22733 rm -f core conftest.err conftest.$ac_objext \
22734     conftest$ac_exeext conftest.$ac_ext
22735     fi
22736   done
22737   LIBS="$tst_connect_save_LIBS"
22738   #
22739   case X-"$tst_connect_need_LIBS" in
22740     X-unknown)
22741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22742 $as_echo "cannot find connect" >&6; }
22743       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22744       ;;
22745     X-)
22746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22747 $as_echo "yes" >&6; }
22748       ;;
22749     *)
22750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22751 $as_echo "$tst_connect_need_LIBS" >&6; }
22752       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22753       ;;
22754   esac
22755
22756
22757 if test "x$host_vendor" = "xapple"; then :
22758
22759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
22760 $as_echo_n "checking for iOS minimum version 10 or later... " >&6; }
22761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h.  */
22763
22764
22765 #include <stdio.h>
22766 #include <TargetConditionals.h>
22767
22768 int main (void)
22769 {
22770
22771 #if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
22772 #error Not iOS 10 or later
22773 #endif
22774 return 0;
22775
22776  ;
22777  return 0;
22778 }
22779
22780 _ACEOF
22781 if ac_fn_c_try_compile "$LINENO"; then :
22782
22783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22784 $as_echo "yes" >&6; }
22785     ac_cv_ios_10="yes"
22786
22787 else
22788
22789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790 $as_echo "no" >&6; }
22791
22792 fi
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794
22795 fi
22796
22797 if test "x$host_vendor" = "xapple"; then :
22798
22799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
22800 $as_echo_n "checking for macOS minimum version 10.12 or later... " >&6; }
22801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h.  */
22803
22804
22805 #include <stdio.h>
22806 #include <TargetConditionals.h>
22807
22808 int main (void)
22809 {
22810
22811 #ifndef MAC_OS_X_VERSION_10_12
22812 #  define MAC_OS_X_VERSION_10_12 101200
22813 #endif
22814 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
22815 #error Not macOS 10.12 or later
22816 #endif
22817 return 0;
22818
22819  ;
22820  return 0;
22821 }
22822
22823 _ACEOF
22824 if ac_fn_c_try_compile "$LINENO"; then :
22825
22826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22827 $as_echo "yes" >&6; }
22828     ac_cv_macos_10_12="yes"
22829
22830 else
22831
22832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22833 $as_echo "no" >&6; }
22834
22835 fi
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837
22838 fi
22839
22840 if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
22841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22842 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22843 if ${ac_cv_header_time+:} false; then :
22844   $as_echo_n "(cached) " >&6
22845 else
22846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847 /* end confdefs.h.  */
22848 #include <sys/types.h>
22849 #include <sys/time.h>
22850 #include <time.h>
22851
22852 int main (void)
22853 {
22854 if ((struct tm *) 0)
22855 return 0;
22856  ;
22857  return 0;
22858 }
22859 _ACEOF
22860 if ac_fn_c_try_compile "$LINENO"; then :
22861   ac_cv_header_time=yes
22862 else
22863   ac_cv_header_time=no
22864 fi
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 fi
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22868 $as_echo "$ac_cv_header_time" >&6; }
22869 if test $ac_cv_header_time = yes; then
22870
22871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22872
22873 fi
22874
22875
22876     for ac_header in sys/types.h sys/time.h time.h
22877 do :
22878   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22879 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22881   cat >>confdefs.h <<_ACEOF
22882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22883 _ACEOF
22884
22885 fi
22886
22887 done
22888
22889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22890 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
22891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h.  */
22893
22894
22895 #ifdef HAVE_SYS_TYPES_H
22896 #include <sys/types.h>
22897 #endif
22898 #ifdef HAVE_SYS_TIME_H
22899 #include <sys/time.h>
22900 #ifdef TIME_WITH_SYS_TIME
22901 #include <time.h>
22902 #endif
22903 #else
22904 #ifdef HAVE_TIME_H
22905 #include <time.h>
22906 #endif
22907 #endif
22908
22909 int main (void)
22910 {
22911
22912       struct timespec ts;
22913       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22914
22915  ;
22916  return 0;
22917 }
22918
22919 _ACEOF
22920 if ac_fn_c_try_compile "$LINENO"; then :
22921
22922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22923 $as_echo "yes" >&6; }
22924     ac_cv_func_clock_gettime="yes"
22925
22926 else
22927
22928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22930     ac_cv_func_clock_gettime="no"
22931
22932 fi
22933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22934
22935
22936     #
22937   if test "$ac_cv_func_clock_gettime" = "yes"; then
22938     #
22939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22940 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
22941     #
22942     curl_cv_save_LIBS="$LIBS"
22943     curl_cv_gclk_LIBS="unknown"
22944     #
22945     for x_xlibs in '' '-lrt' '-lposix4' ; do
22946       if test "$curl_cv_gclk_LIBS" = "unknown"; then
22947         if test -z "$x_xlibs"; then
22948           LIBS="$curl_cv_save_LIBS"
22949         else
22950           LIBS="$x_xlibs $curl_cv_save_LIBS"
22951         fi
22952         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h.  */
22954
22955
22956 #ifdef HAVE_SYS_TYPES_H
22957 #include <sys/types.h>
22958 #endif
22959 #ifdef HAVE_SYS_TIME_H
22960 #include <sys/time.h>
22961 #ifdef TIME_WITH_SYS_TIME
22962 #include <time.h>
22963 #endif
22964 #else
22965 #ifdef HAVE_TIME_H
22966 #include <time.h>
22967 #endif
22968 #endif
22969
22970 int main (void)
22971 {
22972
22973             struct timespec ts;
22974             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22975
22976  ;
22977  return 0;
22978 }
22979
22980 _ACEOF
22981 if ac_fn_c_try_link "$LINENO"; then :
22982
22983           curl_cv_gclk_LIBS="$x_xlibs"
22984
22985 fi
22986 rm -f core conftest.err conftest.$ac_objext \
22987     conftest$ac_exeext conftest.$ac_ext
22988       fi
22989     done
22990     #
22991     LIBS="$curl_cv_save_LIBS"
22992     #
22993     case X-"$curl_cv_gclk_LIBS" in
22994       X-unknown)
22995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22996 $as_echo "cannot find clock_gettime" >&6; }
22997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22998 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22999         ac_cv_func_clock_gettime="no"
23000         ;;
23001       X-)
23002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23003 $as_echo "no additional lib required" >&6; }
23004         ac_cv_func_clock_gettime="yes"
23005         ;;
23006       *)
23007         if test -z "$curl_cv_save_LIBS"; then
23008           LIBS="$curl_cv_gclk_LIBS"
23009         else
23010           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23011         fi
23012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23013 $as_echo "$curl_cv_gclk_LIBS" >&6; }
23014         ac_cv_func_clock_gettime="yes"
23015         ;;
23016     esac
23017     #
23018         if test "x$cross_compiling" != "xyes" &&
23019       test "$ac_cv_func_clock_gettime" = "yes"; then
23020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23021 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
23022       if test "$cross_compiling" = yes; then :
23023   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23025 as_fn_error $? "cannot run test program while cross compiling
23026 See \`config.log' for more details" "$LINENO" 5; }
23027 else
23028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h.  */
23030
23031
23032 #ifdef HAVE_STDLIB_H
23033 #include <stdlib.h>
23034 #endif
23035 #ifdef HAVE_SYS_TYPES_H
23036 #include <sys/types.h>
23037 #endif
23038 #ifdef HAVE_SYS_TIME_H
23039 #include <sys/time.h>
23040 #ifdef TIME_WITH_SYS_TIME
23041 #include <time.h>
23042 #endif
23043 #else
23044 #ifdef HAVE_TIME_H
23045 #include <time.h>
23046 #endif
23047 #endif
23048
23049 int main (void)
23050 {
23051
23052           struct timespec ts;
23053           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23054             exit(0);
23055           else
23056             exit(1);
23057
23058  ;
23059  return 0;
23060 }
23061
23062 _ACEOF
23063 if ac_fn_c_try_run "$LINENO"; then :
23064
23065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23066 $as_echo "yes" >&6; }
23067
23068 else
23069
23070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 $as_echo "no" >&6; }
23072         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23073 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23074         ac_cv_func_clock_gettime="no"
23075         LIBS="$curl_cv_save_LIBS"
23076
23077 fi
23078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23079   conftest.$ac_objext conftest.beam conftest.$ac_ext
23080 fi
23081
23082     fi
23083     #
23084     case "$ac_cv_func_clock_gettime" in
23085       yes)
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
23089 _ACEOF
23090
23091         ;;
23092     esac
23093     #
23094   fi
23095   #
23096
23097 fi
23098
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
23100 $as_echo_n "checking whether to use libgcc... " >&6; }
23101 # Check whether --enable-libgcc was given.
23102 if test "${enable_libgcc+set}" = set; then :
23103   enableval=$enable_libgcc;  case "$enableval" in
23104   yes)
23105         LIBS="$LIBS -lgcc"
23106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23107 $as_echo "yes" >&6; }
23108        ;;
23109   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23110 $as_echo "no" >&6; }
23111        ;;
23112   esac
23113 else
23114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23115 $as_echo "no" >&6; }
23116
23117 fi
23118
23119
23120
23121
23122
23123
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23125 $as_echo_n "checking for ANSI C header files... " >&6; }
23126 if ${ac_cv_header_stdc+:} false; then :
23127   $as_echo_n "(cached) " >&6
23128 else
23129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h.  */
23131 #include <stdlib.h>
23132 #include <stdarg.h>
23133 #include <string.h>
23134 #include <float.h>
23135
23136 int main (void)
23137 {
23138
23139  ;
23140  return 0;
23141 }
23142 _ACEOF
23143 if ac_fn_c_try_compile "$LINENO"; then :
23144   ac_cv_header_stdc=yes
23145 else
23146   ac_cv_header_stdc=no
23147 fi
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149
23150 if test $ac_cv_header_stdc = yes; then
23151   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h.  */
23154 #include <string.h>
23155
23156 _ACEOF
23157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23158   $EGREP "memchr" >/dev/null 2>&1; then :
23159
23160 else
23161   ac_cv_header_stdc=no
23162 fi
23163 rm -f conftest*
23164
23165 fi
23166
23167 if test $ac_cv_header_stdc = yes; then
23168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h.  */
23171 #include <stdlib.h>
23172
23173 _ACEOF
23174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23175   $EGREP "free" >/dev/null 2>&1; then :
23176
23177 else
23178   ac_cv_header_stdc=no
23179 fi
23180 rm -f conftest*
23181
23182 fi
23183
23184 if test $ac_cv_header_stdc = yes; then
23185   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23186   if test "$cross_compiling" = yes; then :
23187   :
23188 else
23189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h.  */
23191 #include <ctype.h>
23192 #include <stdlib.h>
23193 #if ((' ' & 0x0FF) == 0x020)
23194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23196 #else
23197 # define ISLOWER(c) \
23198                    (('a' <= (c) && (c) <= 'i') \
23199                      || ('j' <= (c) && (c) <= 'r') \
23200                      || ('s' <= (c) && (c) <= 'z'))
23201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23202 #endif
23203
23204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23205 int
23206 main ()
23207 {
23208   int i;
23209   for (i = 0; i < 256; i++)
23210     if (XOR (islower (i), ISLOWER (i))
23211         || toupper (i) != TOUPPER (i))
23212       return 2;
23213   return 0;
23214 }
23215 _ACEOF
23216 if ac_fn_c_try_run "$LINENO"; then :
23217
23218 else
23219   ac_cv_header_stdc=no
23220 fi
23221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23222   conftest.$ac_objext conftest.beam conftest.$ac_ext
23223 fi
23224
23225 fi
23226 fi
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23228 $as_echo "$ac_cv_header_stdc" >&6; }
23229 if test $ac_cv_header_stdc = yes; then
23230
23231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23232
23233 fi
23234
23235
23236
23237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
23238 $as_echo_n "checking for malloc.h... " >&6; }
23239 if ${ac_cv_header_malloc_h+:} false; then :
23240   $as_echo_n "(cached) " >&6
23241 else
23242
23243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h.  */
23245
23246
23247 #include <malloc.h>
23248
23249 int main (void)
23250 {
23251
23252         void *p = malloc(10);
23253         void *q = calloc(10,10);
23254         free(p);
23255         free(q);
23256
23257  ;
23258  return 0;
23259 }
23260
23261 _ACEOF
23262 if ac_fn_c_try_compile "$LINENO"; then :
23263
23264       ac_cv_header_malloc_h="yes"
23265
23266 else
23267
23268       ac_cv_header_malloc_h="no"
23269
23270 fi
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272
23273 fi
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
23275 $as_echo "$ac_cv_header_malloc_h" >&6; }
23276   if test "$ac_cv_header_malloc_h" = "yes"; then
23277
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_MALLOC_H 1
23280 _ACEOF
23281
23282     #
23283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284 /* end confdefs.h.  */
23285
23286
23287 #include <stdlib.h>
23288
23289 int main (void)
23290 {
23291
23292         void *p = malloc(10);
23293         void *q = calloc(10,10);
23294         free(p);
23295         free(q);
23296
23297  ;
23298  return 0;
23299 }
23300
23301 _ACEOF
23302 if ac_fn_c_try_compile "$LINENO"; then :
23303
23304       curl_cv_need_header_malloc_h="no"
23305
23306 else
23307
23308       curl_cv_need_header_malloc_h="yes"
23309
23310 fi
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312     #
23313     case "$curl_cv_need_header_malloc_h" in
23314       yes)
23315
23316 cat >>confdefs.h <<_ACEOF
23317 #define NEED_MALLOC_H 1
23318 _ACEOF
23319
23320         ;;
23321     esac
23322   fi
23323
23324
23325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
23326 $as_echo_n "checking for memory.h... " >&6; }
23327 if ${ac_cv_header_memory_h+:} false; then :
23328   $as_echo_n "(cached) " >&6
23329 else
23330
23331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h.  */
23333
23334
23335 #include <memory.h>
23336
23337 int main (void)
23338 {
23339
23340         void *p = malloc(10);
23341         void *q = calloc(10,10);
23342         free(p);
23343         free(q);
23344
23345  ;
23346  return 0;
23347 }
23348
23349 _ACEOF
23350 if ac_fn_c_try_compile "$LINENO"; then :
23351
23352       ac_cv_header_memory_h="yes"
23353
23354 else
23355
23356       ac_cv_header_memory_h="no"
23357
23358 fi
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360
23361 fi
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
23363 $as_echo "$ac_cv_header_memory_h" >&6; }
23364   if test "$ac_cv_header_memory_h" = "yes"; then
23365
23366 cat >>confdefs.h <<_ACEOF
23367 #define HAVE_MEMORY_H 1
23368 _ACEOF
23369
23370     #
23371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23372 /* end confdefs.h.  */
23373
23374
23375 #include <stdlib.h>
23376
23377 int main (void)
23378 {
23379
23380         void *p = malloc(10);
23381         void *q = calloc(10,10);
23382         free(p);
23383         free(q);
23384
23385  ;
23386  return 0;
23387 }
23388
23389 _ACEOF
23390 if ac_fn_c_try_compile "$LINENO"; then :
23391
23392       curl_cv_need_header_memory_h="no"
23393
23394 else
23395
23396       curl_cv_need_header_memory_h="yes"
23397
23398 fi
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400     #
23401     case "$curl_cv_need_header_memory_h" in
23402       yes)
23403
23404 cat >>confdefs.h <<_ACEOF
23405 #define NEED_MEMORY_H 1
23406 _ACEOF
23407
23408         ;;
23409     esac
23410   fi
23411
23412
23413 for ac_header in sys/types.h \
23414        sys/time.h \
23415        sys/select.h \
23416        sys/socket.h \
23417        sys/ioctl.h \
23418        sys/param.h \
23419        sys/uio.h \
23420        assert.h \
23421        netdb.h \
23422        netinet/in.h \
23423        netinet/tcp.h \
23424        net/if.h \
23425        errno.h \
23426        socket.h \
23427        strings.h \
23428        stdbool.h \
23429        time.h \
23430        limits.h \
23431        arpa/nameser.h \
23432        arpa/nameser_compat.h \
23433        arpa/inet.h
23434 do :
23435   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23437 #ifdef HAVE_SYS_TYPES_H
23438 #include <sys/types.h>
23439 #endif
23440 #ifdef HAVE_SYS_TIME_H
23441 #include <sys/time.h>
23442 #endif
23443 #ifdef HAVE_ARPA_NAMESER_H
23444 #include <arpa/nameser.h>
23445 #endif
23446
23447 #ifdef HAVE_SYS_SOCKET_H
23448 #include <sys/socket.h>
23449 #endif
23450 #ifdef HAVE_NETINET_IN_H
23451 #include <netinet/in.h>
23452 #endif
23453
23454
23455 "
23456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23457   cat >>confdefs.h <<_ACEOF
23458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23459 _ACEOF
23460
23461 fi
23462
23463 done
23464
23465
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23468 if ${ac_cv_c_const+:} false; then :
23469   $as_echo_n "(cached) " >&6
23470 else
23471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h.  */
23473
23474 int main (void)
23475 {
23476
23477 #ifndef __cplusplus
23478   /* Ultrix mips cc rejects this sort of thing.  */
23479   typedef int charset[2];
23480   const charset cs = { 0, 0 };
23481   /* SunOS 4.1.1 cc rejects this.  */
23482   char const *const *pcpcc;
23483   char **ppc;
23484   /* NEC SVR4.0.2 mips cc rejects this.  */
23485   struct point {int x, y;};
23486   static struct point const zero = {0,0};
23487   /* AIX XL C 1.02.0.0 rejects this.
23488      It does not let you subtract one const X* pointer from another in
23489      an arm of an if-expression whose if-part is not a constant
23490      expression */
23491   const char *g = "string";
23492   pcpcc = &g + (g ? g-g : 0);
23493   /* HPUX 7.0 cc rejects these. */
23494   ++pcpcc;
23495   ppc = (char**) pcpcc;
23496   pcpcc = (char const *const *) ppc;
23497   { /* SCO 3.2v4 cc rejects this sort of thing.  */
23498     char tx;
23499     char *t = &tx;
23500     char const *s = 0 ? (char *) 0 : (char const *) 0;
23501
23502     *t++ = 0;
23503     if (s) return 0;
23504   }
23505   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23506     int x[] = {25, 17};
23507     const int *foo = &x[0];
23508     ++foo;
23509   }
23510   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23511     typedef const int *iptr;
23512     iptr p = 0;
23513     ++p;
23514   }
23515   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23516        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23517     struct s { int j; const int *ap[3]; } bx;
23518     struct s *b = &bx; b->j = 5;
23519   }
23520   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23521     const int foo = 10;
23522     if (!foo) return 0;
23523   }
23524   return !cs[0] && !zero.x;
23525 #endif
23526
23527  ;
23528  return 0;
23529 }
23530 _ACEOF
23531 if ac_fn_c_try_compile "$LINENO"; then :
23532   ac_cv_c_const=yes
23533 else
23534   ac_cv_c_const=no
23535 fi
23536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 fi
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23539 $as_echo "$ac_cv_c_const" >&6; }
23540 if test $ac_cv_c_const = no; then
23541
23542 $as_echo "#define const /**/" >>confdefs.h
23543
23544 fi
23545
23546 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23547 if test "x$ac_cv_type_size_t" = xyes; then :
23548
23549 else
23550
23551 cat >>confdefs.h <<_ACEOF
23552 #define size_t unsigned int
23553 _ACEOF
23554
23555 fi
23556
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23558 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23559 if ${ac_cv_header_time+:} false; then :
23560   $as_echo_n "(cached) " >&6
23561 else
23562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563 /* end confdefs.h.  */
23564 #include <sys/types.h>
23565 #include <sys/time.h>
23566 #include <time.h>
23567
23568 int main (void)
23569 {
23570 if ((struct tm *) 0)
23571 return 0;
23572  ;
23573  return 0;
23574 }
23575 _ACEOF
23576 if ac_fn_c_try_compile "$LINENO"; then :
23577   ac_cv_header_time=yes
23578 else
23579   ac_cv_header_time=no
23580 fi
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23584 $as_echo "$ac_cv_header_time" >&6; }
23585 if test $ac_cv_header_time = yes; then
23586
23587 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23588
23589 fi
23590
23591
23592         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
23593 do :
23594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23597   cat >>confdefs.h <<_ACEOF
23598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23599 _ACEOF
23600
23601 fi
23602
23603 done
23604
23605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23606 $as_echo_n "checking for struct timeval... " >&6; }
23607 if ${ac_cv_struct_timeval+:} false; then :
23608   $as_echo_n "(cached) " >&6
23609 else
23610
23611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h.  */
23613
23614
23615 #undef inline
23616 #ifdef HAVE_WINDOWS_H
23617 #ifndef WIN32_LEAN_AND_MEAN
23618 #define WIN32_LEAN_AND_MEAN
23619 #endif
23620 #include <windows.h>
23621 #ifdef HAVE_WINSOCK2_H
23622 #include <winsock2.h>
23623 #else
23624 #ifdef HAVE_WINSOCK_H
23625 #include <winsock.h>
23626 #endif
23627 #endif
23628 #endif
23629 #ifdef HAVE_SYS_TYPES_H
23630 #include <sys/types.h>
23631 #endif
23632 #ifdef HAVE_SYS_TIME_H
23633 #include <sys/time.h>
23634 #ifdef TIME_WITH_SYS_TIME
23635 #include <time.h>
23636 #endif
23637 #else
23638 #ifdef HAVE_TIME_H
23639 #include <time.h>
23640 #endif
23641 #endif
23642 #ifdef HAVE_SYS_SOCKET_H
23643 #include <sys/socket.h>
23644 #endif
23645
23646 int main (void)
23647 {
23648
23649         struct timeval ts;
23650         ts.tv_sec  = 0;
23651         ts.tv_usec = 0;
23652
23653  ;
23654  return 0;
23655 }
23656
23657 _ACEOF
23658 if ac_fn_c_try_compile "$LINENO"; then :
23659
23660       ac_cv_struct_timeval="yes"
23661
23662 else
23663
23664       ac_cv_struct_timeval="no"
23665
23666 fi
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668
23669 fi
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
23671 $as_echo "$ac_cv_struct_timeval" >&6; }
23672   case "$ac_cv_struct_timeval" in
23673     yes)
23674
23675 cat >>confdefs.h <<_ACEOF
23676 #define HAVE_STRUCT_TIMEVAL 1
23677 _ACEOF
23678
23679       ;;
23680   esac
23681
23682
23683 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23684 if test "x$ac_cv_type_long_long" = xyes; then :
23685
23686 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
23687
23688    longlong="yes"
23689
23690 fi
23691
23692
23693 if test "xyes" = "x$longlong"; then
23694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
23695 $as_echo_n "checking if numberLL works... " >&6; }
23696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h.  */
23698
23699
23700
23701 int main (void)
23702 {
23703
23704       long long val = 1000LL;
23705
23706  ;
23707  return 0;
23708 }
23709
23710 _ACEOF
23711 if ac_fn_c_try_compile "$LINENO"; then :
23712
23713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23714 $as_echo "yes" >&6; }
23715
23716 $as_echo "#define HAVE_LL 1" >>confdefs.h
23717
23718
23719 else
23720
23721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23722 $as_echo "no" >&6; }
23723
23724 fi
23725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 fi
23727
23728
23729 # check for ssize_t
23730 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23731 if test "x$ac_cv_type_ssize_t" = xyes; then :
23732    CARES_TYPEOF_ARES_SSIZE_T=ssize_t
23733 else
23734    CARES_TYPEOF_ARES_SSIZE_T=int
23735 fi
23736
23737
23738
23739 cat >>confdefs.h <<_ACEOF
23740 #define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}
23741 _ACEOF
23742
23743
23744
23745 # check for bool type
23746 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
23747 #ifdef HAVE_SYS_TYPES_H
23748 #include <sys/types.h>
23749 #endif
23750 #ifdef HAVE_STDBOOL_H
23751 #include <stdbool.h>
23752 #endif
23753
23754 "
23755 if test "x$ac_cv_type_bool" = xyes; then :
23756
23757
23758 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
23759
23760
23761 fi
23762
23763
23764
23765 cares_includes_ws2tcpip="\
23766 /* includes start */
23767 #ifdef HAVE_WINDOWS_H
23768 #  ifndef WIN32_LEAN_AND_MEAN
23769 #    define WIN32_LEAN_AND_MEAN
23770 #  endif
23771 #  include <windows.h>
23772 #  ifdef HAVE_WINSOCK2_H
23773 #    include <winsock2.h>
23774 #    ifdef HAVE_WS2TCPIP_H
23775 #       include <ws2tcpip.h>
23776 #    endif
23777 #  endif
23778 #endif
23779 /* includes end */"
23780
23781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23782 $as_echo_n "checking for windows.h... " >&6; }
23783 if ${ac_cv_header_windows_h+:} false; then :
23784   $as_echo_n "(cached) " >&6
23785 else
23786
23787     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h.  */
23789
23790
23791 #undef inline
23792 #ifndef WIN32_LEAN_AND_MEAN
23793 #define WIN32_LEAN_AND_MEAN
23794 #endif
23795 #include <windows.h>
23796
23797 int main (void)
23798 {
23799
23800 #if defined(__CYGWIN__) || defined(__CEGCC__)
23801         HAVE_WINDOWS_H shall not be defined.
23802 #else
23803         int dummy=2*WINVER;
23804 #endif
23805
23806  ;
23807  return 0;
23808 }
23809
23810 _ACEOF
23811 if ac_fn_c_try_compile "$LINENO"; then :
23812
23813       ac_cv_header_windows_h="yes"
23814
23815 else
23816
23817       ac_cv_header_windows_h="no"
23818
23819 fi
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23824 $as_echo "$ac_cv_header_windows_h" >&6; }
23825   case "$ac_cv_header_windows_h" in
23826     yes)
23827
23828 cat >>confdefs.h <<_ACEOF
23829 #define HAVE_WINDOWS_H 1
23830 _ACEOF
23831
23832
23833 cat >>confdefs.h <<_ACEOF
23834 #define WIN32_LEAN_AND_MEAN 1
23835 _ACEOF
23836
23837       ;;
23838   esac
23839
23840
23841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23842 $as_echo_n "checking for winsock2.h... " >&6; }
23843 if ${ac_cv_header_winsock2_h+:} false; then :
23844   $as_echo_n "(cached) " >&6
23845 else
23846
23847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h.  */
23849
23850
23851 #undef inline
23852 #ifndef WIN32_LEAN_AND_MEAN
23853 #define WIN32_LEAN_AND_MEAN
23854 #endif
23855 #include <windows.h>
23856 #include <winsock2.h>
23857
23858 int main (void)
23859 {
23860
23861 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23862         HAVE_WINSOCK2_H shall not be defined.
23863 #else
23864         int dummy=2*IPPROTO_ESP;
23865 #endif
23866
23867  ;
23868  return 0;
23869 }
23870
23871 _ACEOF
23872 if ac_fn_c_try_compile "$LINENO"; then :
23873
23874       ac_cv_header_winsock2_h="yes"
23875
23876 else
23877
23878       ac_cv_header_winsock2_h="no"
23879
23880 fi
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882
23883 fi
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23885 $as_echo "$ac_cv_header_winsock2_h" >&6; }
23886   case "$ac_cv_header_winsock2_h" in
23887     yes)
23888
23889 cat >>confdefs.h <<_ACEOF
23890 #define HAVE_WINSOCK2_H 1
23891 _ACEOF
23892
23893       ;;
23894   esac
23895
23896
23897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23898 $as_echo_n "checking for ws2tcpip.h... " >&6; }
23899 if ${ac_cv_header_ws2tcpip_h+:} false; then :
23900   $as_echo_n "(cached) " >&6
23901 else
23902
23903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904 /* end confdefs.h.  */
23905
23906
23907 #undef inline
23908 #ifndef WIN32_LEAN_AND_MEAN
23909 #define WIN32_LEAN_AND_MEAN
23910 #endif
23911 #include <windows.h>
23912 #include <winsock2.h>
23913 #include <ws2tcpip.h>
23914
23915 int main (void)
23916 {
23917
23918 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23919         HAVE_WS2TCPIP_H shall not be defined.
23920 #else
23921         int dummy=2*IP_PKTINFO;
23922 #endif
23923
23924  ;
23925  return 0;
23926 }
23927
23928 _ACEOF
23929 if ac_fn_c_try_compile "$LINENO"; then :
23930
23931       ac_cv_header_ws2tcpip_h="yes"
23932
23933 else
23934
23935       ac_cv_header_ws2tcpip_h="no"
23936
23937 fi
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939
23940 fi
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
23942 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
23943   case "$ac_cv_header_ws2tcpip_h" in
23944     yes)
23945
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_WS2TCPIP_H 1
23948 _ACEOF
23949
23950       ;;
23951   esac
23952
23953
23954
23955 cares_includes_sys_socket="\
23956 /* includes start */
23957 #ifdef HAVE_SYS_TYPES_H
23958 #  include <sys/types.h>
23959 #endif
23960 #ifdef HAVE_SYS_SOCKET_H
23961 #  include <sys/socket.h>
23962 #endif
23963 /* includes end */"
23964   for ac_header in sys/types.h sys/socket.h
23965 do :
23966   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
23968 "
23969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23970   cat >>confdefs.h <<_ACEOF
23971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23972 _ACEOF
23973
23974 fi
23975
23976 done
23977
23978
23979
23980 cares_preprocess_callconv="\
23981 /* preprocess start */
23982 #ifdef HAVE_WINDOWS_H
23983 #  define FUNCALLCONV __stdcall
23984 #else
23985 #  define FUNCALLCONV
23986 #endif
23987 /* preprocess end */"
23988
23989
23990         #
23991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
23992 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
23993   cares_typeof_ares_socklen_t="unknown"
23994   for arg1 in int SOCKET; do
23995     for arg2 in 'struct sockaddr' void; do
23996       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
23997         if test "$cares_typeof_ares_socklen_t" = "unknown"; then
23998           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h.  */
24000
24001
24002               $cares_includes_ws2tcpip
24003               $cares_includes_sys_socket
24004               $cares_preprocess_callconv
24005               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
24006
24007 int main (void)
24008 {
24009
24010               $t *lenptr = 0;
24011               if(0 != getpeername(0, 0, lenptr))
24012                 return 1;
24013
24014  ;
24015  return 0;
24016 }
24017
24018 _ACEOF
24019 if ac_fn_c_try_compile "$LINENO"; then :
24020
24021             cares_typeof_ares_socklen_t="$t"
24022
24023 fi
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025         fi
24026       done
24027     done
24028   done
24029   for t in socklen_t int; do
24030     if test "$cares_typeof_ares_socklen_t" = "void"; then
24031       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h.  */
24033
24034
24035           $cares_includes_sys_socket
24036           typedef $t ares_socklen_t;
24037
24038 int main (void)
24039 {
24040
24041           ares_socklen_t dummy;
24042
24043  ;
24044  return 0;
24045 }
24046
24047 _ACEOF
24048 if ac_fn_c_try_compile "$LINENO"; then :
24049
24050         cares_typeof_ares_socklen_t="$t"
24051
24052 fi
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054     fi
24055   done
24056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
24057 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
24058   if test "$cares_typeof_ares_socklen_t" = "void" ||
24059     test "$cares_typeof_ares_socklen_t" = "unknown"; then
24060     as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
24061   fi
24062   #
24063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
24064 $as_echo_n "checking size of ares_socklen_t... " >&6; }
24065   cares_sizeof_ares_socklen_t="unknown"
24066   cares_pull_headers_socklen_t="unknown"
24067   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
24068     tst_pull_header_checks='none ws2tcpip'
24069     tst_size_checks='4'
24070   else
24071     tst_pull_header_checks='none systypes syssocket'
24072     tst_size_checks='4 8 2'
24073   fi
24074   for tst_size in $tst_size_checks; do
24075     for tst_pull_headers in $tst_pull_header_checks; do
24076       if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24077         case $tst_pull_headers in
24078           ws2tcpip)
24079             tmp_includes="$cares_includes_ws2tcpip"
24080             ;;
24081           systypes)
24082             tmp_includes="$cares_includes_sys_types"
24083             ;;
24084           syssocket)
24085             tmp_includes="$cares_includes_sys_socket"
24086             ;;
24087           *)
24088             tmp_includes=""
24089             ;;
24090         esac
24091         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092 /* end confdefs.h.  */
24093
24094
24095             $tmp_includes
24096             typedef $cares_typeof_ares_socklen_t ares_socklen_t;
24097             typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
24098
24099 int main (void)
24100 {
24101
24102             ares_socklen_t dummy;
24103
24104  ;
24105  return 0;
24106 }
24107
24108 _ACEOF
24109 if ac_fn_c_try_compile "$LINENO"; then :
24110
24111           cares_sizeof_ares_socklen_t="$tst_size"
24112           cares_pull_headers_socklen_t="$tst_pull_headers"
24113
24114 fi
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116       fi
24117     done
24118   done
24119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
24120 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
24121   if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24122     as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
24123   fi
24124   #
24125   case $cares_pull_headers_socklen_t in
24126     ws2tcpip)
24127
24128 cat >>confdefs.h <<_EOF
24129 #define CARES_PULL_WS2TCPIP_H 1
24130 _EOF
24131
24132       ;;
24133     systypes)
24134
24135 cat >>confdefs.h <<_EOF
24136 #define CARES_PULL_SYS_TYPES_H 1
24137 _EOF
24138
24139       ;;
24140     syssocket)
24141
24142 cat >>confdefs.h <<_EOF
24143 #define CARES_PULL_SYS_TYPES_H 1
24144 _EOF
24145
24146
24147 cat >>confdefs.h <<_EOF
24148 #define CARES_PULL_SYS_SOCKET_H 1
24149 _EOF
24150
24151       ;;
24152   esac
24153
24154 cat >>confdefs.h <<_EOF
24155 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
24156 _EOF
24157
24158
24159 cat >>confdefs.h <<_EOF
24160 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
24161 _EOF
24162
24163
24164
24165
24166   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
24167 #undef inline
24168 #ifdef HAVE_WINDOWS_H
24169 #ifndef WIN32_LEAN_AND_MEAN
24170 #define WIN32_LEAN_AND_MEAN
24171 #endif
24172 #include <windows.h>
24173 #ifdef HAVE_WINSOCK2_H
24174 #include <winsock2.h>
24175 #else
24176 #ifdef HAVE_WINSOCK_H
24177 #include <winsock.h>
24178 #endif
24179 #endif
24180 #else
24181 #ifdef HAVE_SYS_TYPES_H
24182 #include <sys/types.h>
24183 #endif
24184 #ifdef HAVE_SYS_SOCKET_H
24185 #include <sys/socket.h>
24186 #endif
24187 #ifdef HAVE_NETINET_IN_H
24188 #include <netinet/in.h>
24189 #endif
24190 #ifdef HAVE_ARPA_INET_H
24191 #include <arpa/inet.h>
24192 #endif
24193 #endif
24194
24195 "
24196 if test "x$ac_cv_type_in_addr_t" = xyes; then :
24197
24198 else
24199
24200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
24201 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
24202 if ${curl_cv_in_addr_t_equiv+:} false; then :
24203   $as_echo_n "(cached) " >&6
24204 else
24205
24206       curl_cv_in_addr_t_equiv="unknown"
24207       for t in "unsigned long" int size_t unsigned long; do
24208         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
24209           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210 /* end confdefs.h.  */
24211
24212
24213 #undef inline
24214 #ifdef HAVE_WINDOWS_H
24215 #ifndef WIN32_LEAN_AND_MEAN
24216 #define WIN32_LEAN_AND_MEAN
24217 #endif
24218 #include <windows.h>
24219 #ifdef HAVE_WINSOCK2_H
24220 #include <winsock2.h>
24221 #else
24222 #ifdef HAVE_WINSOCK_H
24223 #include <winsock.h>
24224 #endif
24225 #endif
24226 #else
24227 #ifdef HAVE_SYS_TYPES_H
24228 #include <sys/types.h>
24229 #endif
24230 #ifdef HAVE_SYS_SOCKET_H
24231 #include <sys/socket.h>
24232 #endif
24233 #ifdef HAVE_NETINET_IN_H
24234 #include <netinet/in.h>
24235 #endif
24236 #ifdef HAVE_ARPA_INET_H
24237 #include <arpa/inet.h>
24238 #endif
24239 #endif
24240
24241 int main (void)
24242 {
24243
24244               $t data = inet_addr ("1.2.3.4");
24245
24246  ;
24247  return 0;
24248 }
24249
24250 _ACEOF
24251 if ac_fn_c_try_link "$LINENO"; then :
24252
24253             curl_cv_in_addr_t_equiv="$t"
24254
24255 fi
24256 rm -f core conftest.err conftest.$ac_objext \
24257     conftest$ac_exeext conftest.$ac_ext
24258         fi
24259       done
24260
24261 fi
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
24263 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
24264     case "$curl_cv_in_addr_t_equiv" in
24265       unknown)
24266         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
24267         ;;
24268       *)
24269
24270 cat >>confdefs.h <<_ACEOF
24271 #define in_addr_t $curl_cv_in_addr_t_equiv
24272 _ACEOF
24273
24274         ;;
24275     esac
24276
24277 fi
24278
24279
24280
24281
24282    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
24283 #undef inline
24284 #ifdef HAVE_WINDOWS_H
24285 #ifndef WIN32_LEAN_AND_MEAN
24286 #define WIN32_LEAN_AND_MEAN
24287 #endif
24288 #include <windows.h>
24289 #ifdef HAVE_WINSOCK2_H
24290 #include <winsock2.h>
24291 #endif
24292 #else
24293 #ifdef HAVE_SYS_TYPES_H
24294 #include <sys/types.h>
24295 #endif
24296 #ifdef HAVE_SYS_SOCKET_H
24297 #include <sys/socket.h>
24298 #endif
24299 #ifdef HAVE_NETINET_IN_H
24300 #include <netinet/in.h>
24301 #endif
24302 #ifdef HAVE_ARPA_INET_H
24303 #include <arpa/inet.h>
24304 #endif
24305 #endif
24306
24307 "
24308 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
24309
24310 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
24311
24312 fi
24313
24314
24315
24316
24317   for ac_header in signal.h
24318 do :
24319   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24320 if test "x$ac_cv_header_signal_h" = xyes; then :
24321   cat >>confdefs.h <<_ACEOF
24322 #define HAVE_SIGNAL_H 1
24323 _ACEOF
24324
24325 fi
24326
24327 done
24328
24329   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
24330 #ifdef HAVE_SIGNAL_H
24331 #include <signal.h>
24332 #endif
24333
24334 "
24335 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24336
24337
24338 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
24339
24340
24341 fi
24342
24343   case "$ac_cv_type_sig_atomic_t" in
24344     yes)
24345       #
24346       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
24347 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
24348       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h.  */
24350
24351
24352 #ifdef HAVE_SIGNAL_H
24353 #include <signal.h>
24354 #endif
24355
24356 int main (void)
24357 {
24358
24359           static volatile sig_atomic_t dummy = 0;
24360
24361  ;
24362  return 0;
24363 }
24364
24365 _ACEOF
24366 if ac_fn_c_try_link "$LINENO"; then :
24367
24368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24369 $as_echo "no" >&6; }
24370         ac_cv_sig_atomic_t_volatile="no"
24371
24372 else
24373
24374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24375 $as_echo "yes" >&6; }
24376         ac_cv_sig_atomic_t_volatile="yes"
24377
24378 fi
24379 rm -f core conftest.err conftest.$ac_objext \
24380     conftest$ac_exeext conftest.$ac_ext
24381       #
24382       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
24383
24384 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
24385
24386       fi
24387       ;;
24388   esac
24389
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24392 $as_echo_n "checking return type of signal handlers... " >&6; }
24393 if ${ac_cv_type_signal+:} false; then :
24394   $as_echo_n "(cached) " >&6
24395 else
24396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397 /* end confdefs.h.  */
24398 #include <sys/types.h>
24399 #include <signal.h>
24400
24401 int main (void)
24402 {
24403 return *(signal (0, 0)) (0) == 1;
24404  ;
24405  return 0;
24406 }
24407 _ACEOF
24408 if ac_fn_c_try_compile "$LINENO"; then :
24409   ac_cv_type_signal=int
24410 else
24411   ac_cv_type_signal=void
24412 fi
24413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24414 fi
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24416 $as_echo "$ac_cv_type_signal" >&6; }
24417
24418 cat >>confdefs.h <<_ACEOF
24419 #define RETSIGTYPE $ac_cv_type_signal
24420 _ACEOF
24421
24422
24423
24424
24425       for ac_header in sys/types.h sys/socket.h
24426 do :
24427   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24430   cat >>confdefs.h <<_ACEOF
24431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24432 _ACEOF
24433
24434 fi
24435
24436 done
24437
24438   #
24439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
24440 $as_echo_n "checking for recv... " >&6; }
24441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442 /* end confdefs.h.  */
24443
24444
24445 #undef inline
24446 #ifdef HAVE_WINDOWS_H
24447 #ifndef WIN32_LEAN_AND_MEAN
24448 #define WIN32_LEAN_AND_MEAN
24449 #endif
24450 #include <windows.h>
24451 #ifdef HAVE_WINSOCK2_H
24452 #include <winsock2.h>
24453 #else
24454 #ifdef HAVE_WINSOCK_H
24455 #include <winsock.h>
24456 #endif
24457 #endif
24458 #else
24459 #ifdef HAVE_SYS_TYPES_H
24460 #include <sys/types.h>
24461 #endif
24462 #ifdef HAVE_SYS_SOCKET_H
24463 #include <sys/socket.h>
24464 #endif
24465 #endif
24466
24467 int main (void)
24468 {
24469
24470       recv(0, 0, 0, 0);
24471
24472  ;
24473  return 0;
24474 }
24475
24476 _ACEOF
24477 if ac_fn_c_try_link "$LINENO"; then :
24478
24479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24480 $as_echo "yes" >&6; }
24481     curl_cv_recv="yes"
24482
24483 else
24484
24485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486 $as_echo "no" >&6; }
24487     curl_cv_recv="no"
24488
24489 fi
24490 rm -f core conftest.err conftest.$ac_objext \
24491     conftest$ac_exeext conftest.$ac_ext
24492   #
24493   if test "$curl_cv_recv" = "yes"; then
24494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
24495 $as_echo_n "checking types of args and return type for recv... " >&6; }
24496 if ${curl_cv_func_recv_args+:} false; then :
24497   $as_echo_n "(cached) " >&6
24498 else
24499
24500       curl_cv_func_recv_args="unknown"
24501       for recv_retv in 'int' 'ssize_t'; do
24502         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24503           for recv_arg2 in 'char *' 'void *'; do
24504             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24505               for recv_arg4 in 'int' 'unsigned int'; do
24506                 if test "$curl_cv_func_recv_args" = "unknown"; then
24507                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h.  */
24509
24510
24511 #undef inline
24512 #ifdef HAVE_WINDOWS_H
24513 #ifndef WIN32_LEAN_AND_MEAN
24514 #define WIN32_LEAN_AND_MEAN
24515 #endif
24516 #include <windows.h>
24517 #ifdef HAVE_WINSOCK2_H
24518 #include <winsock2.h>
24519 #else
24520 #ifdef HAVE_WINSOCK_H
24521 #include <winsock.h>
24522 #endif
24523 #endif
24524 #define RECVCALLCONV PASCAL
24525 #else
24526 #ifdef HAVE_SYS_TYPES_H
24527 #include <sys/types.h>
24528 #endif
24529 #ifdef HAVE_SYS_SOCKET_H
24530 #include <sys/socket.h>
24531 #endif
24532 #define RECVCALLCONV
24533 #endif
24534                       extern $recv_retv RECVCALLCONV
24535                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
24536
24537 int main (void)
24538 {
24539
24540                       $recv_arg1 s=0;
24541                       $recv_arg2 buf=0;
24542                       $recv_arg3 len=0;
24543                       $recv_arg4 flags=0;
24544                       $recv_retv res = recv(s, buf, len, flags);
24545
24546  ;
24547  return 0;
24548 }
24549
24550 _ACEOF
24551 if ac_fn_c_try_compile "$LINENO"; then :
24552
24553                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
24554
24555 fi
24556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557                 fi
24558               done
24559             done
24560           done
24561         done
24562       done
24563
24564 fi
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
24566 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
24567     if test "$curl_cv_func_recv_args" = "unknown"; then
24568       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
24569     else
24570       recv_prev_IFS=$IFS; IFS=','
24571       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
24572       IFS=$recv_prev_IFS
24573       shift
24574       #
24575
24576 cat >>confdefs.h <<_ACEOF
24577 #define RECV_TYPE_ARG1 $1
24578 _ACEOF
24579
24580
24581 cat >>confdefs.h <<_ACEOF
24582 #define RECV_TYPE_ARG2 $2
24583 _ACEOF
24584
24585
24586 cat >>confdefs.h <<_ACEOF
24587 #define RECV_TYPE_ARG3 $3
24588 _ACEOF
24589
24590
24591 cat >>confdefs.h <<_ACEOF
24592 #define RECV_TYPE_ARG4 $4
24593 _ACEOF
24594
24595
24596 cat >>confdefs.h <<_ACEOF
24597 #define RECV_TYPE_RETV $5
24598 _ACEOF
24599
24600       #
24601
24602 cat >>confdefs.h <<_ACEOF
24603 #define HAVE_RECV 1
24604 _ACEOF
24605
24606       ac_cv_func_recv="yes"
24607     fi
24608   else
24609     as_fn_error $? "Unable to link function recv" "$LINENO" 5
24610   fi
24611
24612
24613       for ac_header in sys/types.h sys/socket.h
24614 do :
24615   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24616 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24618   cat >>confdefs.h <<_ACEOF
24619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24620 _ACEOF
24621
24622 fi
24623
24624 done
24625
24626   #
24627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
24628 $as_echo_n "checking for recvfrom... " >&6; }
24629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630 /* end confdefs.h.  */
24631
24632
24633 #undef inline
24634 #ifdef HAVE_WINDOWS_H
24635 #ifndef WIN32_LEAN_AND_MEAN
24636 #define WIN32_LEAN_AND_MEAN
24637 #endif
24638 #include <windows.h>
24639 #ifdef HAVE_WINSOCK2_H
24640 #include <winsock2.h>
24641 #else
24642 #ifdef HAVE_WINSOCK_H
24643 #include <winsock.h>
24644 #endif
24645 #endif
24646 #else
24647 #ifdef HAVE_SYS_TYPES_H
24648 #include <sys/types.h>
24649 #endif
24650 #ifdef HAVE_SYS_SOCKET_H
24651 #include <sys/socket.h>
24652 #endif
24653 #endif
24654
24655 int main (void)
24656 {
24657
24658       recvfrom(0, 0, 0, 0, 0, 0);
24659
24660  ;
24661  return 0;
24662 }
24663
24664 _ACEOF
24665 if ac_fn_c_try_link "$LINENO"; then :
24666
24667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24668 $as_echo "yes" >&6; }
24669     curl_cv_recvfrom="yes"
24670
24671 else
24672
24673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24674 $as_echo "no" >&6; }
24675     curl_cv_recvfrom="no"
24676
24677 fi
24678 rm -f core conftest.err conftest.$ac_objext \
24679     conftest$ac_exeext conftest.$ac_ext
24680   #
24681   if test "$curl_cv_recvfrom" = "yes"; then
24682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
24683 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
24684 if ${curl_cv_func_recvfrom_args+:} false; then :
24685   $as_echo_n "(cached) " >&6
24686 else
24687
24688       curl_cv_func_recvfrom_args="unknown"
24689       for recvfrom_retv in 'int' 'ssize_t'; do
24690         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24691           for recvfrom_arg2 in 'char *' 'void *'; do
24692             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24693               for recvfrom_arg4 in 'int' 'unsigned int'; do
24694                 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
24695                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
24696                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24697                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h.  */
24699
24700
24701 #undef inline
24702 #ifdef HAVE_WINDOWS_H
24703 #ifndef WIN32_LEAN_AND_MEAN
24704 #define WIN32_LEAN_AND_MEAN
24705 #endif
24706 #include <windows.h>
24707 #ifdef HAVE_WINSOCK2_H
24708 #include <winsock2.h>
24709 #else
24710 #ifdef HAVE_WINSOCK_H
24711 #include <winsock.h>
24712 #endif
24713 #endif
24714 #define RECVFROMCALLCONV PASCAL
24715 #else
24716 #ifdef HAVE_SYS_TYPES_H
24717 #include <sys/types.h>
24718 #endif
24719 #ifdef HAVE_SYS_SOCKET_H
24720 #include <sys/socket.h>
24721 #endif
24722 #define RECVFROMCALLCONV
24723 #endif
24724                           extern $recvfrom_retv RECVFROMCALLCONV
24725                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
24726                                    $recvfrom_arg3, $recvfrom_arg4,
24727                                    $recvfrom_arg5, $recvfrom_arg6);
24728
24729 int main (void)
24730 {
24731
24732                           $recvfrom_arg1 s=0;
24733                           $recvfrom_arg2 buf=0;
24734                           $recvfrom_arg3 len=0;
24735                           $recvfrom_arg4 flags=0;
24736                           $recvfrom_arg5 addr=0;
24737                           $recvfrom_arg6 addrlen=0;
24738                           $recvfrom_retv res=0;
24739                           res = recvfrom(s, buf, len, flags, addr, addrlen);
24740
24741  ;
24742  return 0;
24743 }
24744
24745 _ACEOF
24746 if ac_fn_c_try_compile "$LINENO"; then :
24747
24748                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
24749
24750 fi
24751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24752                     fi
24753                   done
24754                 done
24755               done
24756             done
24757           done
24758         done
24759       done
24760
24761 fi
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
24763 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
24764     # Nearly last minute change for this release starts here
24765
24766 cat >>confdefs.h <<_ACEOF
24767 #define HAVE_RECVFROM 1
24768 _ACEOF
24769
24770     ac_cv_func_recvfrom="yes"
24771     # Nearly last minute change for this release ends here
24772     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24773       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
24774 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
24775     else
24776       recvfrom_prev_IFS=$IFS; IFS=','
24777       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
24778       IFS=$recvfrom_prev_IFS
24779       shift
24780       #
24781       recvfrom_ptrt_arg2=$2
24782       recvfrom_qual_ptrt_arg5=$5
24783       recvfrom_ptrt_arg6=$6
24784       #
24785
24786 cat >>confdefs.h <<_ACEOF
24787 #define RECVFROM_TYPE_ARG1 $1
24788 _ACEOF
24789
24790
24791 cat >>confdefs.h <<_ACEOF
24792 #define RECVFROM_TYPE_ARG3 $3
24793 _ACEOF
24794
24795
24796 cat >>confdefs.h <<_ACEOF
24797 #define RECVFROM_TYPE_ARG4 $4
24798 _ACEOF
24799
24800
24801 cat >>confdefs.h <<_ACEOF
24802 #define RECVFROM_TYPE_RETV $7
24803 _ACEOF
24804
24805       #
24806       prev_sh_opts=$-
24807       #
24808       case $prev_sh_opts in
24809         *f*)
24810           ;;
24811         *)
24812           set -f
24813           ;;
24814       esac
24815       #
24816       case "$recvfrom_qual_ptrt_arg5" in
24817         const*)
24818           recvfrom_qual_arg5=const
24819           recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
24820         ;;
24821         *)
24822           recvfrom_qual_arg5=
24823           recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
24824         ;;
24825       esac
24826       #
24827       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
24828       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
24829       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
24830       #
24831
24832 cat >>confdefs.h <<_ACEOF
24833 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
24834 _ACEOF
24835
24836
24837 cat >>confdefs.h <<_ACEOF
24838 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
24839 _ACEOF
24840
24841
24842 cat >>confdefs.h <<_ACEOF
24843 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
24844 _ACEOF
24845
24846
24847 cat >>confdefs.h <<_ACEOF
24848 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
24849 _ACEOF
24850
24851       #
24852       if test "$recvfrom_type_arg2" = "void"; then
24853
24854 cat >>confdefs.h <<_ACEOF
24855 #define RECVFROM_TYPE_ARG2_IS_VOID 1
24856 _ACEOF
24857
24858       fi
24859       if test "$recvfrom_type_arg5" = "void"; then
24860
24861 cat >>confdefs.h <<_ACEOF
24862 #define RECVFROM_TYPE_ARG5_IS_VOID 1
24863 _ACEOF
24864
24865       fi
24866       if test "$recvfrom_type_arg6" = "void"; then
24867
24868 cat >>confdefs.h <<_ACEOF
24869 #define RECVFROM_TYPE_ARG6_IS_VOID 1
24870 _ACEOF
24871
24872       fi
24873       #
24874       case $prev_sh_opts in
24875         *f*)
24876           ;;
24877         *)
24878           set +f
24879           ;;
24880       esac
24881       #
24882
24883 cat >>confdefs.h <<_ACEOF
24884 #define HAVE_RECVFROM 1
24885 _ACEOF
24886
24887       ac_cv_func_recvfrom="yes"
24888     fi
24889   else
24890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
24891 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
24892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
24893 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
24894   fi
24895
24896
24897       for ac_header in sys/types.h sys/socket.h
24898 do :
24899   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24902   cat >>confdefs.h <<_ACEOF
24903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24904 _ACEOF
24905
24906 fi
24907
24908 done
24909
24910   #
24911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
24912 $as_echo_n "checking for send... " >&6; }
24913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h.  */
24915
24916
24917 #undef inline
24918 #ifdef HAVE_WINDOWS_H
24919 #ifndef WIN32_LEAN_AND_MEAN
24920 #define WIN32_LEAN_AND_MEAN
24921 #endif
24922 #include <windows.h>
24923 #ifdef HAVE_WINSOCK2_H
24924 #include <winsock2.h>
24925 #else
24926 #ifdef HAVE_WINSOCK_H
24927 #include <winsock.h>
24928 #endif
24929 #endif
24930 #else
24931 #ifdef HAVE_SYS_TYPES_H
24932 #include <sys/types.h>
24933 #endif
24934 #ifdef HAVE_SYS_SOCKET_H
24935 #include <sys/socket.h>
24936 #endif
24937 #endif
24938
24939 int main (void)
24940 {
24941
24942       send(0, 0, 0, 0);
24943
24944  ;
24945  return 0;
24946 }
24947
24948 _ACEOF
24949 if ac_fn_c_try_link "$LINENO"; then :
24950
24951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24952 $as_echo "yes" >&6; }
24953     curl_cv_send="yes"
24954
24955 else
24956
24957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24958 $as_echo "no" >&6; }
24959     curl_cv_send="no"
24960
24961 fi
24962 rm -f core conftest.err conftest.$ac_objext \
24963     conftest$ac_exeext conftest.$ac_ext
24964   #
24965   if test "$curl_cv_send" = "yes"; then
24966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
24967 $as_echo_n "checking types of args and return type for send... " >&6; }
24968 if ${curl_cv_func_send_args+:} false; then :
24969   $as_echo_n "(cached) " >&6
24970 else
24971
24972       curl_cv_func_send_args="unknown"
24973       for send_retv in 'int' 'ssize_t'; do
24974         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24975           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
24976             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24977               for send_arg4 in 'int' 'unsigned int'; do
24978                 if test "$curl_cv_func_send_args" = "unknown"; then
24979                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h.  */
24981
24982
24983 #undef inline
24984 #ifdef HAVE_WINDOWS_H
24985 #ifndef WIN32_LEAN_AND_MEAN
24986 #define WIN32_LEAN_AND_MEAN
24987 #endif
24988 #include <windows.h>
24989 #ifdef HAVE_WINSOCK2_H
24990 #include <winsock2.h>
24991 #else
24992 #ifdef HAVE_WINSOCK_H
24993 #include <winsock.h>
24994 #endif
24995 #endif
24996 #define SENDCALLCONV PASCAL
24997 #else
24998 #ifdef HAVE_SYS_TYPES_H
24999 #include <sys/types.h>
25000 #endif
25001 #ifdef HAVE_SYS_SOCKET_H
25002 #include <sys/socket.h>
25003 #endif
25004 #define SENDCALLCONV
25005 #endif
25006                       extern $send_retv SENDCALLCONV
25007                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
25008
25009 int main (void)
25010 {
25011
25012                       $send_arg1 s=0;
25013                       $send_arg3 len=0;
25014                       $send_arg4 flags=0;
25015                       $send_retv res = send(s, 0, len, flags);
25016
25017  ;
25018  return 0;
25019 }
25020
25021 _ACEOF
25022 if ac_fn_c_try_compile "$LINENO"; then :
25023
25024                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
25025
25026 fi
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028                 fi
25029               done
25030             done
25031           done
25032         done
25033       done
25034
25035 fi
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
25037 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
25038     if test "$curl_cv_func_send_args" = "unknown"; then
25039       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
25040     else
25041       send_prev_IFS=$IFS; IFS=','
25042       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
25043       IFS=$send_prev_IFS
25044       shift
25045       #
25046       send_qual_type_arg2=$2
25047       #
25048
25049 cat >>confdefs.h <<_ACEOF
25050 #define SEND_TYPE_ARG1 $1
25051 _ACEOF
25052
25053
25054 cat >>confdefs.h <<_ACEOF
25055 #define SEND_TYPE_ARG3 $3
25056 _ACEOF
25057
25058
25059 cat >>confdefs.h <<_ACEOF
25060 #define SEND_TYPE_ARG4 $4
25061 _ACEOF
25062
25063
25064 cat >>confdefs.h <<_ACEOF
25065 #define SEND_TYPE_RETV $5
25066 _ACEOF
25067
25068       #
25069       prev_sh_opts=$-
25070       #
25071       case $prev_sh_opts in
25072         *f*)
25073           ;;
25074         *)
25075           set -f
25076           ;;
25077       esac
25078       #
25079       case "$send_qual_type_arg2" in
25080         const*)
25081           send_qual_arg2=const
25082           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
25083         ;;
25084         *)
25085           send_qual_arg2=
25086           send_type_arg2=$send_qual_type_arg2
25087         ;;
25088       esac
25089       #
25090
25091 cat >>confdefs.h <<_ACEOF
25092 #define SEND_QUAL_ARG2 $send_qual_arg2
25093 _ACEOF
25094
25095
25096 cat >>confdefs.h <<_ACEOF
25097 #define SEND_TYPE_ARG2 $send_type_arg2
25098 _ACEOF
25099
25100       #
25101       case $prev_sh_opts in
25102         *f*)
25103           ;;
25104         *)
25105           set +f
25106           ;;
25107       esac
25108       #
25109
25110 cat >>confdefs.h <<_ACEOF
25111 #define HAVE_SEND 1
25112 _ACEOF
25113
25114       ac_cv_func_send="yes"
25115     fi
25116   else
25117     as_fn_error $? "Unable to link function send" "$LINENO" 5
25118   fi
25119
25120
25121   for ac_header in sys/types.h sys/socket.h
25122 do :
25123   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25126   cat >>confdefs.h <<_ACEOF
25127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25128 _ACEOF
25129
25130 fi
25131
25132 done
25133
25134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
25135 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
25136 if ${ac_cv_msg_nosignal+:} false; then :
25137   $as_echo_n "(cached) " >&6
25138 else
25139
25140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h.  */
25142
25143
25144 #undef inline
25145 #ifdef HAVE_WINDOWS_H
25146 #ifndef WIN32_LEAN_AND_MEAN
25147 #define WIN32_LEAN_AND_MEAN
25148 #endif
25149 #include <windows.h>
25150 #ifdef HAVE_WINSOCK2_H
25151 #include <winsock2.h>
25152 #else
25153 #ifdef HAVE_WINSOCK_H
25154 #include <winsock.h>
25155 #endif
25156 #endif
25157 #else
25158 #ifdef HAVE_SYS_TYPES_H
25159 #include <sys/types.h>
25160 #endif
25161 #ifdef HAVE_SYS_SOCKET_H
25162 #include <sys/socket.h>
25163 #endif
25164 #endif
25165
25166 int main (void)
25167 {
25168
25169         int flag=MSG_NOSIGNAL;
25170
25171  ;
25172  return 0;
25173 }
25174
25175 _ACEOF
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177
25178       ac_cv_msg_nosignal="yes"
25179
25180 else
25181
25182       ac_cv_msg_nosignal="no"
25183
25184 fi
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186
25187 fi
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
25189 $as_echo "$ac_cv_msg_nosignal" >&6; }
25190   case "$ac_cv_msg_nosignal" in
25191     yes)
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_MSG_NOSIGNAL 1
25195 _ACEOF
25196
25197       ;;
25198   esac
25199
25200
25201
25202 cares_includes_socket="\
25203 /* includes start */
25204 #ifdef HAVE_SYS_TYPES_H
25205 #  include <sys/types.h>
25206 #endif
25207 #ifdef HAVE_SOCKET_H
25208 #  include <socket.h>
25209 #endif
25210 /* includes end */"
25211   for ac_header in sys/types.h socket.h
25212 do :
25213   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
25215 "
25216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25217   cat >>confdefs.h <<_ACEOF
25218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25219 _ACEOF
25220
25221 fi
25222
25223 done
25224
25225
25226
25227       #
25228   tst_links_closesocket="unknown"
25229   tst_proto_closesocket="unknown"
25230   tst_compi_closesocket="unknown"
25231   tst_allow_closesocket="unknown"
25232   #
25233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
25234 $as_echo_n "checking if closesocket can be linked... " >&6; }
25235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h.  */
25237
25238
25239       $cares_includes_winsock2
25240       $cares_includes_socket
25241
25242 int main (void)
25243 {
25244
25245       if(0 != closesocket(0))
25246         return 1;
25247
25248  ;
25249  return 0;
25250 }
25251
25252 _ACEOF
25253 if ac_fn_c_try_link "$LINENO"; then :
25254
25255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25256 $as_echo "yes" >&6; }
25257     tst_links_closesocket="yes"
25258
25259 else
25260
25261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25262 $as_echo "no" >&6; }
25263     tst_links_closesocket="no"
25264
25265 fi
25266 rm -f core conftest.err conftest.$ac_objext \
25267     conftest$ac_exeext conftest.$ac_ext
25268   #
25269   if test "$tst_links_closesocket" = "yes"; then
25270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
25271 $as_echo_n "checking if closesocket is prototyped... " >&6; }
25272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25273 /* end confdefs.h.  */
25274
25275       $cares_includes_winsock2
25276       $cares_includes_socket
25277
25278 _ACEOF
25279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25280   $EGREP "closesocket" >/dev/null 2>&1; then :
25281
25282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25283 $as_echo "yes" >&6; }
25284       tst_proto_closesocket="yes"
25285
25286 else
25287
25288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25290       tst_proto_closesocket="no"
25291
25292 fi
25293 rm -f conftest*
25294
25295   fi
25296   #
25297   if test "$tst_proto_closesocket" = "yes"; then
25298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
25299 $as_echo_n "checking if closesocket is compilable... " >&6; }
25300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h.  */
25302
25303
25304         $cares_includes_winsock2
25305         $cares_includes_socket
25306
25307 int main (void)
25308 {
25309
25310         if(0 != closesocket(0))
25311           return 1;
25312
25313  ;
25314  return 0;
25315 }
25316
25317 _ACEOF
25318 if ac_fn_c_try_compile "$LINENO"; then :
25319
25320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25321 $as_echo "yes" >&6; }
25322       tst_compi_closesocket="yes"
25323
25324 else
25325
25326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25327 $as_echo "no" >&6; }
25328       tst_compi_closesocket="no"
25329
25330 fi
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332   fi
25333   #
25334   if test "$tst_compi_closesocket" = "yes"; then
25335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
25336 $as_echo_n "checking if closesocket usage allowed... " >&6; }
25337     if test "x$cares_disallow_closesocket" != "xyes"; then
25338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25339 $as_echo "yes" >&6; }
25340       tst_allow_closesocket="yes"
25341     else
25342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25343 $as_echo "no" >&6; }
25344       tst_allow_closesocket="no"
25345     fi
25346   fi
25347   #
25348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
25349 $as_echo_n "checking if closesocket might be used... " >&6; }
25350   if test "$tst_links_closesocket" = "yes" &&
25351      test "$tst_proto_closesocket" = "yes" &&
25352      test "$tst_compi_closesocket" = "yes" &&
25353      test "$tst_allow_closesocket" = "yes"; then
25354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25355 $as_echo "yes" >&6; }
25356
25357 cat >>confdefs.h <<_ACEOF
25358 #define HAVE_CLOSESOCKET 1
25359 _ACEOF
25360
25361     ac_cv_func_closesocket="yes"
25362   else
25363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25364 $as_echo "no" >&6; }
25365     ac_cv_func_closesocket="no"
25366   fi
25367
25368
25369     #
25370   tst_links_closesocket_camel="unknown"
25371   tst_proto_closesocket_camel="unknown"
25372   tst_compi_closesocket_camel="unknown"
25373   tst_allow_closesocket_camel="unknown"
25374   #
25375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
25376 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
25377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h.  */
25379
25380
25381       $cares_includes_sys_socket
25382
25383 int main (void)
25384 {
25385
25386       if(0 != CloseSocket(0))
25387         return 1;
25388
25389  ;
25390  return 0;
25391 }
25392
25393 _ACEOF
25394 if ac_fn_c_try_link "$LINENO"; then :
25395
25396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25397 $as_echo "yes" >&6; }
25398     tst_links_closesocket_camel="yes"
25399
25400 else
25401
25402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25403 $as_echo "no" >&6; }
25404     tst_links_closesocket_camel="no"
25405
25406 fi
25407 rm -f core conftest.err conftest.$ac_objext \
25408     conftest$ac_exeext conftest.$ac_ext
25409   #
25410   if test "$tst_links_closesocket_camel" = "yes"; then
25411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
25412 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
25413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h.  */
25415
25416       $cares_includes_sys_socket
25417
25418 _ACEOF
25419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25420   $EGREP "CloseSocket" >/dev/null 2>&1; then :
25421
25422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25423 $as_echo "yes" >&6; }
25424       tst_proto_closesocket_camel="yes"
25425
25426 else
25427
25428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25429 $as_echo "no" >&6; }
25430       tst_proto_closesocket_camel="no"
25431
25432 fi
25433 rm -f conftest*
25434
25435   fi
25436   #
25437   if test "$tst_proto_closesocket_camel" = "yes"; then
25438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
25439 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
25440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h.  */
25442
25443
25444         $cares_includes_sys_socket
25445
25446 int main (void)
25447 {
25448
25449         if(0 != CloseSocket(0))
25450           return 1;
25451
25452  ;
25453  return 0;
25454 }
25455
25456 _ACEOF
25457 if ac_fn_c_try_compile "$LINENO"; then :
25458
25459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25461       tst_compi_closesocket_camel="yes"
25462
25463 else
25464
25465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25467       tst_compi_closesocket_camel="no"
25468
25469 fi
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471   fi
25472   #
25473   if test "$tst_compi_closesocket_camel" = "yes"; then
25474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
25475 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
25476     if test "x$cares_disallow_closesocket_camel" != "xyes"; then
25477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25478 $as_echo "yes" >&6; }
25479       tst_allow_closesocket_camel="yes"
25480     else
25481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25482 $as_echo "no" >&6; }
25483       tst_allow_closesocket_camel="no"
25484     fi
25485   fi
25486   #
25487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
25488 $as_echo_n "checking if CloseSocket might be used... " >&6; }
25489   if test "$tst_links_closesocket_camel" = "yes" &&
25490      test "$tst_proto_closesocket_camel" = "yes" &&
25491      test "$tst_compi_closesocket_camel" = "yes" &&
25492      test "$tst_allow_closesocket_camel" = "yes"; then
25493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25494 $as_echo "yes" >&6; }
25495
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_CLOSESOCKET_CAMEL 1
25498 _ACEOF
25499
25500     ac_cv_func_closesocket_camel="yes"
25501   else
25502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25503 $as_echo "no" >&6; }
25504     ac_cv_func_closesocket_camel="no"
25505   fi
25506
25507
25508         #
25509   tst_links_connect="unknown"
25510   tst_proto_connect="unknown"
25511   tst_compi_connect="unknown"
25512   tst_allow_connect="unknown"
25513   #
25514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
25515 $as_echo_n "checking if connect can be linked... " >&6; }
25516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25517 /* end confdefs.h.  */
25518
25519
25520       $cares_includes_winsock2
25521       $cares_includes_sys_socket
25522       $cares_includes_socket
25523
25524 int main (void)
25525 {
25526
25527       if(0 != connect(0, 0, 0))
25528         return 1;
25529
25530  ;
25531  return 0;
25532 }
25533
25534 _ACEOF
25535 if ac_fn_c_try_link "$LINENO"; then :
25536
25537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25538 $as_echo "yes" >&6; }
25539     tst_links_connect="yes"
25540
25541 else
25542
25543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25544 $as_echo "no" >&6; }
25545     tst_links_connect="no"
25546
25547 fi
25548 rm -f core conftest.err conftest.$ac_objext \
25549     conftest$ac_exeext conftest.$ac_ext
25550   #
25551   if test "$tst_links_connect" = "yes"; then
25552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
25553 $as_echo_n "checking if connect is prototyped... " >&6; }
25554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25555 /* end confdefs.h.  */
25556
25557       $cares_includes_winsock2
25558       $cares_includes_sys_socket
25559       $cares_includes_socket
25560
25561 _ACEOF
25562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25563   $EGREP "connect" >/dev/null 2>&1; then :
25564
25565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25566 $as_echo "yes" >&6; }
25567       tst_proto_connect="yes"
25568
25569 else
25570
25571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572 $as_echo "no" >&6; }
25573       tst_proto_connect="no"
25574
25575 fi
25576 rm -f conftest*
25577
25578   fi
25579   #
25580   if test "$tst_proto_connect" = "yes"; then
25581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
25582 $as_echo_n "checking if connect is compilable... " >&6; }
25583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584 /* end confdefs.h.  */
25585
25586
25587         $cares_includes_winsock2
25588         $cares_includes_sys_socket
25589         $cares_includes_socket
25590
25591 int main (void)
25592 {
25593
25594         if(0 != connect(0, 0, 0))
25595           return 1;
25596
25597  ;
25598  return 0;
25599 }
25600
25601 _ACEOF
25602 if ac_fn_c_try_compile "$LINENO"; then :
25603
25604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25605 $as_echo "yes" >&6; }
25606       tst_compi_connect="yes"
25607
25608 else
25609
25610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25611 $as_echo "no" >&6; }
25612       tst_compi_connect="no"
25613
25614 fi
25615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25616   fi
25617   #
25618   if test "$tst_compi_connect" = "yes"; then
25619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25620 $as_echo_n "checking if connect usage allowed... " >&6; }
25621     if test "x$cares_disallow_connect" != "xyes"; then
25622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25623 $as_echo "yes" >&6; }
25624       tst_allow_connect="yes"
25625     else
25626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627 $as_echo "no" >&6; }
25628       tst_allow_connect="no"
25629     fi
25630   fi
25631   #
25632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25633 $as_echo_n "checking if connect might be used... " >&6; }
25634   if test "$tst_links_connect" = "yes" &&
25635      test "$tst_proto_connect" = "yes" &&
25636      test "$tst_compi_connect" = "yes" &&
25637      test "$tst_allow_connect" = "yes"; then
25638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25639 $as_echo "yes" >&6; }
25640
25641 cat >>confdefs.h <<_ACEOF
25642 #define HAVE_CONNECT 1
25643 _ACEOF
25644
25645     ac_cv_func_connect="yes"
25646   else
25647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25648 $as_echo "no" >&6; }
25649     ac_cv_func_connect="no"
25650   fi
25651
25652
25653 cares_includes_fcntl="\
25654 /* includes start */
25655 #ifdef HAVE_SYS_TYPES_H
25656 #  include <sys/types.h>
25657 #endif
25658 #ifdef HAVE_UNISTD_H
25659 #  include <unistd.h>
25660 #endif
25661 #ifdef HAVE_FCNTL_H
25662 #  include <fcntl.h>
25663 #endif
25664 /* includes end */"
25665   for ac_header in sys/types.h unistd.h fcntl.h
25666 do :
25667   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
25669 "
25670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25671   cat >>confdefs.h <<_ACEOF
25672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25673 _ACEOF
25674
25675 fi
25676
25677 done
25678
25679
25680
25681     #
25682   tst_links_fcntl="unknown"
25683   tst_proto_fcntl="unknown"
25684   tst_compi_fcntl="unknown"
25685   tst_allow_fcntl="unknown"
25686   #
25687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25688 $as_echo_n "checking if fcntl can be linked... " >&6; }
25689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h.  */
25691
25692
25693 #define fcntl innocuous_fcntl
25694 #ifdef __STDC__
25695 # include <limits.h>
25696 #else
25697 # include <assert.h>
25698 #endif
25699 #undef fcntl
25700 #ifdef __cplusplus
25701 extern "C"
25702 #endif
25703 char fcntl ();
25704 #if defined __stub_fcntl || defined __stub___fcntl
25705 choke me
25706 #endif
25707
25708 int main (void)
25709 {
25710 return fcntl ();
25711  ;
25712  return 0;
25713 }
25714
25715 _ACEOF
25716 if ac_fn_c_try_link "$LINENO"; then :
25717
25718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25719 $as_echo "yes" >&6; }
25720     tst_links_fcntl="yes"
25721
25722 else
25723
25724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25725 $as_echo "no" >&6; }
25726     tst_links_fcntl="no"
25727
25728 fi
25729 rm -f core conftest.err conftest.$ac_objext \
25730     conftest$ac_exeext conftest.$ac_ext
25731   #
25732   if test "$tst_links_fcntl" = "yes"; then
25733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25734 $as_echo_n "checking if fcntl is prototyped... " >&6; }
25735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h.  */
25737
25738       $cares_includes_fcntl
25739
25740 _ACEOF
25741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25742   $EGREP "fcntl" >/dev/null 2>&1; then :
25743
25744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25745 $as_echo "yes" >&6; }
25746       tst_proto_fcntl="yes"
25747
25748 else
25749
25750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751 $as_echo "no" >&6; }
25752       tst_proto_fcntl="no"
25753
25754 fi
25755 rm -f conftest*
25756
25757   fi
25758   #
25759   if test "$tst_proto_fcntl" = "yes"; then
25760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25761 $as_echo_n "checking if fcntl is compilable... " >&6; }
25762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h.  */
25764
25765
25766         $cares_includes_fcntl
25767
25768 int main (void)
25769 {
25770
25771         if(0 != fcntl(0, 0, 0))
25772           return 1;
25773
25774  ;
25775  return 0;
25776 }
25777
25778 _ACEOF
25779 if ac_fn_c_try_compile "$LINENO"; then :
25780
25781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25782 $as_echo "yes" >&6; }
25783       tst_compi_fcntl="yes"
25784
25785 else
25786
25787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25788 $as_echo "no" >&6; }
25789       tst_compi_fcntl="no"
25790
25791 fi
25792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793   fi
25794   #
25795   if test "$tst_compi_fcntl" = "yes"; then
25796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25797 $as_echo_n "checking if fcntl usage allowed... " >&6; }
25798     if test "x$cares_disallow_fcntl" != "xyes"; then
25799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25800 $as_echo "yes" >&6; }
25801       tst_allow_fcntl="yes"
25802     else
25803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25804 $as_echo "no" >&6; }
25805       tst_allow_fcntl="no"
25806     fi
25807   fi
25808   #
25809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25810 $as_echo_n "checking if fcntl might be used... " >&6; }
25811   if test "$tst_links_fcntl" = "yes" &&
25812      test "$tst_proto_fcntl" = "yes" &&
25813      test "$tst_compi_fcntl" = "yes" &&
25814      test "$tst_allow_fcntl" = "yes"; then
25815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25816 $as_echo "yes" >&6; }
25817
25818 cat >>confdefs.h <<_ACEOF
25819 #define HAVE_FCNTL 1
25820 _ACEOF
25821
25822     ac_cv_func_fcntl="yes"
25823
25824   #
25825   tst_compi_fcntl_o_nonblock="unknown"
25826   tst_allow_fcntl_o_nonblock="unknown"
25827   #
25828   case $host_os in
25829     sunos4* | aix3* | beos*)
25830             cares_disallow_fcntl_o_nonblock="yes"
25831       ;;
25832   esac
25833   #
25834   if test "$ac_cv_func_fcntl" = "yes"; then
25835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25836 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h.  */
25839
25840
25841         $cares_includes_fcntl
25842
25843 int main (void)
25844 {
25845
25846         int flags = 0;
25847         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25848           return 1;
25849
25850  ;
25851  return 0;
25852 }
25853
25854 _ACEOF
25855 if ac_fn_c_try_compile "$LINENO"; then :
25856
25857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25858 $as_echo "yes" >&6; }
25859       tst_compi_fcntl_o_nonblock="yes"
25860
25861 else
25862
25863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864 $as_echo "no" >&6; }
25865       tst_compi_fcntl_o_nonblock="no"
25866
25867 fi
25868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25869   fi
25870   #
25871   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25873 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25874     if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
25875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25876 $as_echo "yes" >&6; }
25877       tst_allow_fcntl_o_nonblock="yes"
25878     else
25879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880 $as_echo "no" >&6; }
25881       tst_allow_fcntl_o_nonblock="no"
25882     fi
25883   fi
25884   #
25885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25886 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25887   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25888      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25890 $as_echo "yes" >&6; }
25891
25892 cat >>confdefs.h <<_ACEOF
25893 #define HAVE_FCNTL_O_NONBLOCK 1
25894 _ACEOF
25895
25896     ac_cv_func_fcntl_o_nonblock="yes"
25897   else
25898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25899 $as_echo "no" >&6; }
25900     ac_cv_func_fcntl_o_nonblock="no"
25901   fi
25902
25903   else
25904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25905 $as_echo "no" >&6; }
25906     ac_cv_func_fcntl="no"
25907   fi
25908
25909
25910 cares_includes_netdb="\
25911 /* includes start */
25912 #ifdef HAVE_SYS_TYPES_H
25913 #  include <sys/types.h>
25914 #endif
25915 #ifdef HAVE_NETDB_H
25916 #  include <netdb.h>
25917 #endif
25918 /* includes end */"
25919   for ac_header in sys/types.h netdb.h
25920 do :
25921   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
25923 "
25924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25925   cat >>confdefs.h <<_ACEOF
25926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25927 _ACEOF
25928
25929 fi
25930
25931 done
25932
25933
25934
25935         #
25936   tst_links_freeaddrinfo="unknown"
25937   tst_proto_freeaddrinfo="unknown"
25938   tst_compi_freeaddrinfo="unknown"
25939   tst_allow_freeaddrinfo="unknown"
25940   #
25941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
25942 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
25943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h.  */
25945
25946
25947       $cares_includes_ws2tcpip
25948       $cares_includes_sys_socket
25949       $cares_includes_netdb
25950
25951 int main (void)
25952 {
25953
25954       freeaddrinfo(0);
25955
25956  ;
25957  return 0;
25958 }
25959
25960 _ACEOF
25961 if ac_fn_c_try_link "$LINENO"; then :
25962
25963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25964 $as_echo "yes" >&6; }
25965     tst_links_freeaddrinfo="yes"
25966
25967 else
25968
25969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25970 $as_echo "no" >&6; }
25971     tst_links_freeaddrinfo="no"
25972
25973 fi
25974 rm -f core conftest.err conftest.$ac_objext \
25975     conftest$ac_exeext conftest.$ac_ext
25976   #
25977   if test "$tst_links_freeaddrinfo" = "yes"; then
25978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
25979 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
25980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h.  */
25982
25983       $cares_includes_ws2tcpip
25984       $cares_includes_sys_socket
25985       $cares_includes_netdb
25986
25987 _ACEOF
25988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25989   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
25990
25991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25992 $as_echo "yes" >&6; }
25993       tst_proto_freeaddrinfo="yes"
25994
25995 else
25996
25997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998 $as_echo "no" >&6; }
25999       tst_proto_freeaddrinfo="no"
26000
26001 fi
26002 rm -f conftest*
26003
26004   fi
26005   #
26006   if test "$tst_proto_freeaddrinfo" = "yes"; then
26007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
26008 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
26009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h.  */
26011
26012
26013         $cares_includes_ws2tcpip
26014         $cares_includes_sys_socket
26015         $cares_includes_netdb
26016
26017 int main (void)
26018 {
26019
26020         freeaddrinfo(0);
26021
26022  ;
26023  return 0;
26024 }
26025
26026 _ACEOF
26027 if ac_fn_c_try_compile "$LINENO"; then :
26028
26029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26030 $as_echo "yes" >&6; }
26031       tst_compi_freeaddrinfo="yes"
26032
26033 else
26034
26035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26036 $as_echo "no" >&6; }
26037       tst_compi_freeaddrinfo="no"
26038
26039 fi
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26041   fi
26042   #
26043   if test "$tst_compi_freeaddrinfo" = "yes"; then
26044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
26045 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
26046     if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
26047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26048 $as_echo "yes" >&6; }
26049       tst_allow_freeaddrinfo="yes"
26050     else
26051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26052 $as_echo "no" >&6; }
26053       tst_allow_freeaddrinfo="no"
26054     fi
26055   fi
26056   #
26057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
26058 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
26059   if test "$tst_links_freeaddrinfo" = "yes" &&
26060      test "$tst_proto_freeaddrinfo" = "yes" &&
26061      test "$tst_compi_freeaddrinfo" = "yes" &&
26062      test "$tst_allow_freeaddrinfo" = "yes"; then
26063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26064 $as_echo "yes" >&6; }
26065
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_FREEADDRINFO 1
26068 _ACEOF
26069
26070     ac_cv_func_freeaddrinfo="yes"
26071   else
26072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26073 $as_echo "no" >&6; }
26074     ac_cv_func_freeaddrinfo="no"
26075   fi
26076
26077
26078 cares_includes_stdlib="\
26079 /* includes start */
26080 #ifdef HAVE_SYS_TYPES_H
26081 #  include <sys/types.h>
26082 #endif
26083 #ifdef HAVE_STDLIB_H
26084 #  include <stdlib.h>
26085 #endif
26086 /* includes end */"
26087   for ac_header in sys/types.h stdlib.h
26088 do :
26089   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
26091 "
26092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26093   cat >>confdefs.h <<_ACEOF
26094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26095 _ACEOF
26096
26097 fi
26098
26099 done
26100
26101
26102
26103 cares_includes_string="\
26104 /* includes start */
26105 #ifdef HAVE_SYS_TYPES_H
26106 #  include <sys/types.h>
26107 #endif
26108 #ifdef HAVE_STRING_H
26109 #  include <string.h>
26110 #endif
26111 #ifdef HAVE_STRINGS_H
26112 #  include <strings.h>
26113 #endif
26114 /* includes end */"
26115   for ac_header in sys/types.h string.h strings.h
26116 do :
26117   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
26119 "
26120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26121   cat >>confdefs.h <<_ACEOF
26122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26123 _ACEOF
26124
26125 fi
26126
26127 done
26128
26129
26130
26131               #
26132   tst_links_getaddrinfo="unknown"
26133   tst_proto_getaddrinfo="unknown"
26134   tst_compi_getaddrinfo="unknown"
26135   tst_works_getaddrinfo="unknown"
26136   tst_allow_getaddrinfo="unknown"
26137   tst_tsafe_getaddrinfo="unknown"
26138   #
26139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26140 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26142 /* end confdefs.h.  */
26143
26144
26145       $cares_includes_ws2tcpip
26146       $cares_includes_sys_socket
26147       $cares_includes_netdb
26148
26149 int main (void)
26150 {
26151
26152       if(0 != getaddrinfo(0, 0, 0, 0))
26153         return 1;
26154
26155  ;
26156  return 0;
26157 }
26158
26159 _ACEOF
26160 if ac_fn_c_try_link "$LINENO"; then :
26161
26162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26163 $as_echo "yes" >&6; }
26164     tst_links_getaddrinfo="yes"
26165
26166 else
26167
26168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26169 $as_echo "no" >&6; }
26170     tst_links_getaddrinfo="no"
26171
26172 fi
26173 rm -f core conftest.err conftest.$ac_objext \
26174     conftest$ac_exeext conftest.$ac_ext
26175   #
26176   if test "$tst_links_getaddrinfo" = "yes"; then
26177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26178 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h.  */
26181
26182       $cares_includes_ws2tcpip
26183       $cares_includes_sys_socket
26184       $cares_includes_netdb
26185
26186 _ACEOF
26187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26188   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26189
26190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26191 $as_echo "yes" >&6; }
26192       tst_proto_getaddrinfo="yes"
26193
26194 else
26195
26196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26197 $as_echo "no" >&6; }
26198       tst_proto_getaddrinfo="no"
26199
26200 fi
26201 rm -f conftest*
26202
26203   fi
26204   #
26205   if test "$tst_proto_getaddrinfo" = "yes"; then
26206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26207 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209 /* end confdefs.h.  */
26210
26211
26212         $cares_includes_ws2tcpip
26213         $cares_includes_sys_socket
26214         $cares_includes_netdb
26215
26216 int main (void)
26217 {
26218
26219         if(0 != getaddrinfo(0, 0, 0, 0))
26220           return 1;
26221
26222  ;
26223  return 0;
26224 }
26225
26226 _ACEOF
26227 if ac_fn_c_try_compile "$LINENO"; then :
26228
26229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26230 $as_echo "yes" >&6; }
26231       tst_compi_getaddrinfo="yes"
26232
26233 else
26234
26235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26236 $as_echo "no" >&6; }
26237       tst_compi_getaddrinfo="no"
26238
26239 fi
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241   fi
26242   #
26243     if test "x$cross_compiling" != "xyes" &&
26244     test "$tst_compi_getaddrinfo" = "yes"; then
26245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26246 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26247     if test "$cross_compiling" = yes; then :
26248   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26250 as_fn_error $? "cannot run test program while cross compiling
26251 See \`config.log' for more details" "$LINENO" 5; }
26252 else
26253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h.  */
26255
26256
26257         $cares_includes_ws2tcpip
26258         $cares_includes_stdlib
26259         $cares_includes_string
26260         $cares_includes_sys_socket
26261         $cares_includes_netdb
26262
26263 int main (void)
26264 {
26265
26266         struct addrinfo hints;
26267         struct addrinfo *ai = 0;
26268         int error;
26269
26270         memset(&hints, 0, sizeof(hints));
26271         hints.ai_flags = AI_NUMERICHOST;
26272         hints.ai_family = AF_UNSPEC;
26273         hints.ai_socktype = SOCK_STREAM;
26274         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26275         if(error || !ai)
26276           exit(1); /* fail */
26277         else
26278           exit(0);
26279
26280  ;
26281  return 0;
26282 }
26283
26284 _ACEOF
26285 if ac_fn_c_try_run "$LINENO"; then :
26286
26287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26288 $as_echo "yes" >&6; }
26289       tst_works_getaddrinfo="yes"
26290
26291 else
26292
26293       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26294 $as_echo "no" >&6; }
26295       tst_works_getaddrinfo="no"
26296
26297 fi
26298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26299   conftest.$ac_objext conftest.beam conftest.$ac_ext
26300 fi
26301
26302   fi
26303   #
26304   if test "$tst_compi_getaddrinfo" = "yes" &&
26305     test "$tst_works_getaddrinfo" != "no"; then
26306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26307 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26308     if test "x$cares_disallow_getaddrinfo" != "xyes"; then
26309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26310 $as_echo "yes" >&6; }
26311       tst_allow_getaddrinfo="yes"
26312     else
26313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26315       tst_allow_getaddrinfo="no"
26316     fi
26317   fi
26318   #
26319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26320 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
26321   if test "$tst_links_getaddrinfo" = "yes" &&
26322      test "$tst_proto_getaddrinfo" = "yes" &&
26323      test "$tst_compi_getaddrinfo" = "yes" &&
26324      test "$tst_allow_getaddrinfo" = "yes" &&
26325      test "$tst_works_getaddrinfo" != "no"; then
26326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26327 $as_echo "yes" >&6; }
26328
26329 cat >>confdefs.h <<_ACEOF
26330 #define HAVE_GETADDRINFO 1
26331 _ACEOF
26332
26333     ac_cv_func_getaddrinfo="yes"
26334   else
26335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26336 $as_echo "no" >&6; }
26337     ac_cv_func_getaddrinfo="no"
26338     ac_cv_func_getaddrinfo_threadsafe="no"
26339   fi
26340   #
26341   if test "$ac_cv_func_getaddrinfo" = "yes"; then
26342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26343 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26344     case $host_os in
26345       aix[1234].* | aix5.[01].*)
26346                 tst_tsafe_getaddrinfo="no"
26347         ;;
26348       aix*)
26349                 tst_tsafe_getaddrinfo="yes"
26350         ;;
26351       darwin[12345].*)
26352                 tst_tsafe_getaddrinfo="no"
26353         ;;
26354       darwin*)
26355                 tst_tsafe_getaddrinfo="yes"
26356         ;;
26357       freebsd[1234].* | freebsd5.[1234]*)
26358                 tst_tsafe_getaddrinfo="no"
26359         ;;
26360       freebsd*)
26361                 tst_tsafe_getaddrinfo="yes"
26362         ;;
26363       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26364                 tst_tsafe_getaddrinfo="no"
26365         ;;
26366       hpux*)
26367                 tst_tsafe_getaddrinfo="yes"
26368         ;;
26369       netbsd[123].*)
26370                 tst_tsafe_getaddrinfo="no"
26371         ;;
26372       netbsd*)
26373                 tst_tsafe_getaddrinfo="yes"
26374         ;;
26375       *bsd*)
26376                 tst_tsafe_getaddrinfo="no"
26377         ;;
26378       solaris2*)
26379                 tst_tsafe_getaddrinfo="yes"
26380         ;;
26381     esac
26382     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
26383        test "$ac_cv_native_windows" = "yes"; then
26384       tst_tsafe_getaddrinfo="yes"
26385     fi
26386     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26387
26388
26389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26390 /* end confdefs.h.  */
26391
26392
26393         $cares_includes_sys_socket
26394         $cares_includes_netdb
26395
26396 int main (void)
26397 {
26398 #ifdef h_errno
26399   return 0;
26400 #else
26401   force compilation error
26402 #endif
26403 }
26404
26405
26406 _ACEOF
26407 if ac_fn_c_try_compile "$LINENO"; then :
26408
26409     tst_symbol_defined="yes"
26410
26411 else
26412
26413     tst_symbol_defined="no"
26414
26415 fi
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417   if test "$tst_symbol_defined" = "yes"; then
26418     curl_cv_have_def_h_errno=yes
26419
26420   else
26421     curl_cv_have_def_h_errno=no
26422
26423   fi
26424
26425       if test "$curl_cv_have_def_h_errno" = "yes"; then
26426         tst_h_errno_macro="yes"
26427       else
26428         tst_h_errno_macro="no"
26429       fi
26430       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26431 /* end confdefs.h.  */
26432
26433
26434           $cares_includes_sys_socket
26435           $cares_includes_netdb
26436
26437 int main (void)
26438 {
26439
26440           h_errno = 2;
26441           if(0 != h_errno)
26442             return 1;
26443
26444  ;
26445  return 0;
26446 }
26447
26448 _ACEOF
26449 if ac_fn_c_try_compile "$LINENO"; then :
26450
26451         tst_h_errno_modifiable_lvalue="yes"
26452
26453 else
26454
26455         tst_h_errno_modifiable_lvalue="no"
26456
26457 fi
26458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460 /* end confdefs.h.  */
26461
26462
26463
26464 int main (void)
26465 {
26466
26467 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
26468           return 0;
26469 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
26470           return 0;
26471 #else
26472           force compilation error
26473 #endif
26474
26475  ;
26476  return 0;
26477 }
26478
26479 _ACEOF
26480 if ac_fn_c_try_compile "$LINENO"; then :
26481
26482         tst_h_errno_sbs_issue_7="yes"
26483
26484 else
26485
26486         tst_h_errno_sbs_issue_7="no"
26487
26488 fi
26489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26490       if test "$tst_h_errno_macro" = "no" &&
26491          test "$tst_h_errno_modifiable_lvalue" = "no" &&
26492          test "$tst_h_errno_sbs_issue_7" = "no"; then
26493         tst_tsafe_getaddrinfo="no"
26494       else
26495         tst_tsafe_getaddrinfo="yes"
26496       fi
26497     fi
26498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26499 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
26500     if test "$tst_tsafe_getaddrinfo" = "yes"; then
26501
26502 cat >>confdefs.h <<_ACEOF
26503 #define HAVE_GETADDRINFO_THREADSAFE 1
26504 _ACEOF
26505
26506       ac_cv_func_getaddrinfo_threadsafe="yes"
26507     else
26508       ac_cv_func_getaddrinfo_threadsafe="no"
26509     fi
26510   fi
26511
26512
26513     #
26514   tst_links_getenv="unknown"
26515   tst_proto_getenv="unknown"
26516   tst_compi_getenv="unknown"
26517   tst_allow_getenv="unknown"
26518   #
26519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
26520 $as_echo_n "checking if getenv can be linked... " >&6; }
26521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26522 /* end confdefs.h.  */
26523
26524
26525 #define getenv innocuous_getenv
26526 #ifdef __STDC__
26527 # include <limits.h>
26528 #else
26529 # include <assert.h>
26530 #endif
26531 #undef getenv
26532 #ifdef __cplusplus
26533 extern "C"
26534 #endif
26535 char getenv ();
26536 #if defined __stub_getenv || defined __stub___getenv
26537 choke me
26538 #endif
26539
26540 int main (void)
26541 {
26542 return getenv ();
26543  ;
26544  return 0;
26545 }
26546
26547 _ACEOF
26548 if ac_fn_c_try_link "$LINENO"; then :
26549
26550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26551 $as_echo "yes" >&6; }
26552     tst_links_getenv="yes"
26553
26554 else
26555
26556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26557 $as_echo "no" >&6; }
26558     tst_links_getenv="no"
26559
26560 fi
26561 rm -f core conftest.err conftest.$ac_objext \
26562     conftest$ac_exeext conftest.$ac_ext
26563   #
26564   if test "$tst_links_getenv" = "yes"; then
26565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
26566 $as_echo_n "checking if getenv is prototyped... " >&6; }
26567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26568 /* end confdefs.h.  */
26569
26570       $cares_includes_stdlib
26571
26572 _ACEOF
26573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26574   $EGREP "getenv" >/dev/null 2>&1; then :
26575
26576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26577 $as_echo "yes" >&6; }
26578       tst_proto_getenv="yes"
26579
26580 else
26581
26582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26583 $as_echo "no" >&6; }
26584       tst_proto_getenv="no"
26585
26586 fi
26587 rm -f conftest*
26588
26589   fi
26590   #
26591   if test "$tst_proto_getenv" = "yes"; then
26592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
26593 $as_echo_n "checking if getenv is compilable... " >&6; }
26594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h.  */
26596
26597
26598         $cares_includes_stdlib
26599
26600 int main (void)
26601 {
26602
26603         if(0 != getenv(0))
26604           return 1;
26605
26606  ;
26607  return 0;
26608 }
26609
26610 _ACEOF
26611 if ac_fn_c_try_compile "$LINENO"; then :
26612
26613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26614 $as_echo "yes" >&6; }
26615       tst_compi_getenv="yes"
26616
26617 else
26618
26619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26620 $as_echo "no" >&6; }
26621       tst_compi_getenv="no"
26622
26623 fi
26624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26625   fi
26626   #
26627   if test "$tst_compi_getenv" = "yes"; then
26628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
26629 $as_echo_n "checking if getenv usage allowed... " >&6; }
26630     if test "x$cares_disallow_getenv" != "xyes"; then
26631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26632 $as_echo "yes" >&6; }
26633       tst_allow_getenv="yes"
26634     else
26635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26636 $as_echo "no" >&6; }
26637       tst_allow_getenv="no"
26638     fi
26639   fi
26640   #
26641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
26642 $as_echo_n "checking if getenv might be used... " >&6; }
26643   if test "$tst_links_getenv" = "yes" &&
26644      test "$tst_proto_getenv" = "yes" &&
26645      test "$tst_compi_getenv" = "yes" &&
26646      test "$tst_allow_getenv" = "yes"; then
26647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26648 $as_echo "yes" >&6; }
26649
26650 cat >>confdefs.h <<_ACEOF
26651 #define HAVE_GETENV 1
26652 _ACEOF
26653
26654     ac_cv_func_getenv="yes"
26655   else
26656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657 $as_echo "no" >&6; }
26658     ac_cv_func_getenv="no"
26659   fi
26660
26661
26662       #
26663   tst_links_gethostbyaddr="unknown"
26664   tst_proto_gethostbyaddr="unknown"
26665   tst_compi_gethostbyaddr="unknown"
26666   tst_allow_gethostbyaddr="unknown"
26667   #
26668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26669 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26671 /* end confdefs.h.  */
26672
26673
26674       $cares_includes_winsock2
26675       $cares_includes_netdb
26676
26677 int main (void)
26678 {
26679
26680       if(0 != gethostbyaddr(0, 0, 0))
26681         return 1;
26682
26683  ;
26684  return 0;
26685 }
26686
26687 _ACEOF
26688 if ac_fn_c_try_link "$LINENO"; then :
26689
26690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26691 $as_echo "yes" >&6; }
26692     tst_links_gethostbyaddr="yes"
26693
26694 else
26695
26696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 $as_echo "no" >&6; }
26698     tst_links_gethostbyaddr="no"
26699
26700 fi
26701 rm -f core conftest.err conftest.$ac_objext \
26702     conftest$ac_exeext conftest.$ac_ext
26703   #
26704   if test "$tst_links_gethostbyaddr" = "yes"; then
26705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26706 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h.  */
26709
26710       $cares_includes_winsock2
26711       $cares_includes_netdb
26712
26713 _ACEOF
26714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26715   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26716
26717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26718 $as_echo "yes" >&6; }
26719       tst_proto_gethostbyaddr="yes"
26720
26721 else
26722
26723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26724 $as_echo "no" >&6; }
26725       tst_proto_gethostbyaddr="no"
26726
26727 fi
26728 rm -f conftest*
26729
26730   fi
26731   #
26732   if test "$tst_proto_gethostbyaddr" = "yes"; then
26733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26734 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h.  */
26737
26738
26739         $cares_includes_winsock2
26740         $cares_includes_netdb
26741
26742 int main (void)
26743 {
26744
26745         if(0 != gethostbyaddr(0, 0, 0))
26746           return 1;
26747
26748  ;
26749  return 0;
26750 }
26751
26752 _ACEOF
26753 if ac_fn_c_try_compile "$LINENO"; then :
26754
26755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26756 $as_echo "yes" >&6; }
26757       tst_compi_gethostbyaddr="yes"
26758
26759 else
26760
26761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26762 $as_echo "no" >&6; }
26763       tst_compi_gethostbyaddr="no"
26764
26765 fi
26766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26767   fi
26768   #
26769   if test "$tst_compi_gethostbyaddr" = "yes"; then
26770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26771 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26772     if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
26773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26774 $as_echo "yes" >&6; }
26775       tst_allow_gethostbyaddr="yes"
26776     else
26777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26778 $as_echo "no" >&6; }
26779       tst_allow_gethostbyaddr="no"
26780     fi
26781   fi
26782   #
26783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26784 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26785   if test "$tst_links_gethostbyaddr" = "yes" &&
26786      test "$tst_proto_gethostbyaddr" = "yes" &&
26787      test "$tst_compi_gethostbyaddr" = "yes" &&
26788      test "$tst_allow_gethostbyaddr" = "yes"; then
26789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26790 $as_echo "yes" >&6; }
26791
26792 cat >>confdefs.h <<_ACEOF
26793 #define HAVE_GETHOSTBYADDR 1
26794 _ACEOF
26795
26796     ac_cv_func_gethostbyaddr="yes"
26797   else
26798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26799 $as_echo "no" >&6; }
26800     ac_cv_func_gethostbyaddr="no"
26801   fi
26802
26803
26804       #
26805   tst_links_gethostbyname="unknown"
26806   tst_proto_gethostbyname="unknown"
26807   tst_compi_gethostbyname="unknown"
26808   tst_allow_gethostbyname="unknown"
26809   #
26810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26811 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
26812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h.  */
26814
26815
26816       $cares_includes_winsock2
26817       $cares_includes_netdb
26818
26819 int main (void)
26820 {
26821
26822       if(0 != gethostbyname(0))
26823         return 1;
26824
26825  ;
26826  return 0;
26827 }
26828
26829 _ACEOF
26830 if ac_fn_c_try_link "$LINENO"; then :
26831
26832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26833 $as_echo "yes" >&6; }
26834     tst_links_gethostbyname="yes"
26835
26836 else
26837
26838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26839 $as_echo "no" >&6; }
26840     tst_links_gethostbyname="no"
26841
26842 fi
26843 rm -f core conftest.err conftest.$ac_objext \
26844     conftest$ac_exeext conftest.$ac_ext
26845   #
26846   if test "$tst_links_gethostbyname" = "yes"; then
26847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26848 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26850 /* end confdefs.h.  */
26851
26852       $cares_includes_winsock2
26853       $cares_includes_netdb
26854
26855 _ACEOF
26856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26857   $EGREP "gethostbyname" >/dev/null 2>&1; then :
26858
26859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26860 $as_echo "yes" >&6; }
26861       tst_proto_gethostbyname="yes"
26862
26863 else
26864
26865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866 $as_echo "no" >&6; }
26867       tst_proto_gethostbyname="no"
26868
26869 fi
26870 rm -f conftest*
26871
26872   fi
26873   #
26874   if test "$tst_proto_gethostbyname" = "yes"; then
26875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
26876 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
26877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h.  */
26879
26880
26881         $cares_includes_winsock2
26882         $cares_includes_netdb
26883
26884 int main (void)
26885 {
26886
26887         if(0 != gethostbyname(0))
26888           return 1;
26889
26890  ;
26891  return 0;
26892 }
26893
26894 _ACEOF
26895 if ac_fn_c_try_compile "$LINENO"; then :
26896
26897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26898 $as_echo "yes" >&6; }
26899       tst_compi_gethostbyname="yes"
26900
26901 else
26902
26903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904 $as_echo "no" >&6; }
26905       tst_compi_gethostbyname="no"
26906
26907 fi
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909   fi
26910   #
26911   if test "$tst_compi_gethostbyname" = "yes"; then
26912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
26913 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
26914     if test "x$cares_disallow_gethostbyname" != "xyes"; then
26915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26916 $as_echo "yes" >&6; }
26917       tst_allow_gethostbyname="yes"
26918     else
26919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26920 $as_echo "no" >&6; }
26921       tst_allow_gethostbyname="no"
26922     fi
26923   fi
26924   #
26925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
26926 $as_echo_n "checking if gethostbyname might be used... " >&6; }
26927   if test "$tst_links_gethostbyname" = "yes" &&
26928      test "$tst_proto_gethostbyname" = "yes" &&
26929      test "$tst_compi_gethostbyname" = "yes" &&
26930      test "$tst_allow_gethostbyname" = "yes"; then
26931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26932 $as_echo "yes" >&6; }
26933
26934 cat >>confdefs.h <<_ACEOF
26935 #define HAVE_GETHOSTBYNAME 1
26936 _ACEOF
26937
26938     ac_cv_func_gethostbyname="yes"
26939   else
26940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26941 $as_echo "no" >&6; }
26942     ac_cv_func_gethostbyname="no"
26943   fi
26944
26945
26946 cares_includes_unistd="\
26947 /* includes start */
26948 #ifdef HAVE_SYS_TYPES_H
26949 #  include <sys/types.h>
26950 #endif
26951 #ifdef HAVE_UNISTD_H
26952 #  include <unistd.h>
26953 #endif
26954 /* includes end */"
26955   for ac_header in sys/types.h unistd.h
26956 do :
26957   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
26959 "
26960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26961   cat >>confdefs.h <<_ACEOF
26962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26963 _ACEOF
26964
26965 fi
26966
26967 done
26968
26969
26970
26971         #
26972   tst_links_gethostname="unknown"
26973   tst_proto_gethostname="unknown"
26974   tst_compi_gethostname="unknown"
26975   tst_allow_gethostname="unknown"
26976   #
26977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
26978 $as_echo_n "checking if gethostname can be linked... " >&6; }
26979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h.  */
26981
26982
26983       $cares_includes_winsock2
26984       $cares_includes_unistd
26985
26986 int main (void)
26987 {
26988
26989       if(0 != gethostname(0, 0))
26990         return 1;
26991
26992  ;
26993  return 0;
26994 }
26995
26996 _ACEOF
26997 if ac_fn_c_try_link "$LINENO"; then :
26998
26999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27000 $as_echo "yes" >&6; }
27001     tst_links_gethostname="yes"
27002
27003 else
27004
27005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27006 $as_echo "no" >&6; }
27007     tst_links_gethostname="no"
27008
27009 fi
27010 rm -f core conftest.err conftest.$ac_objext \
27011     conftest$ac_exeext conftest.$ac_ext
27012   #
27013   if test "$tst_links_gethostname" = "yes"; then
27014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27015 $as_echo_n "checking if gethostname is prototyped... " >&6; }
27016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h.  */
27018
27019       $cares_includes_winsock2
27020       $cares_includes_unistd
27021
27022 _ACEOF
27023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27024   $EGREP "gethostname" >/dev/null 2>&1; then :
27025
27026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27028       tst_proto_gethostname="yes"
27029
27030 else
27031
27032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27033 $as_echo "no" >&6; }
27034       tst_proto_gethostname="no"
27035
27036 fi
27037 rm -f conftest*
27038
27039   fi
27040   #
27041   if test "$tst_proto_gethostname" = "yes"; then
27042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27043 $as_echo_n "checking if gethostname is compilable... " >&6; }
27044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h.  */
27046
27047
27048         $cares_includes_winsock2
27049         $cares_includes_unistd
27050
27051 int main (void)
27052 {
27053
27054         if(0 != gethostname(0, 0))
27055           return 1;
27056
27057  ;
27058  return 0;
27059 }
27060
27061 _ACEOF
27062 if ac_fn_c_try_compile "$LINENO"; then :
27063
27064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27065 $as_echo "yes" >&6; }
27066       tst_compi_gethostname="yes"
27067
27068 else
27069
27070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27071 $as_echo "no" >&6; }
27072       tst_compi_gethostname="no"
27073
27074 fi
27075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27076   fi
27077   #
27078   if test "$tst_compi_gethostname" = "yes"; then
27079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
27080 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
27081     tst_gethostname_type_arg2="unknown"
27082     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
27083       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
27084         if test "$tst_gethostname_type_arg2" = "unknown"; then
27085           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27086 /* end confdefs.h.  */
27087
27088
27089               $cares_includes_winsock2
27090               $cares_includes_unistd
27091               $cares_preprocess_callconv
27092               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
27093
27094 int main (void)
27095 {
27096
27097               if(0 != gethostname(0, 0))
27098                 return 1;
27099
27100  ;
27101  return 0;
27102 }
27103
27104 _ACEOF
27105 if ac_fn_c_try_compile "$LINENO"; then :
27106
27107             tst_gethostname_type_arg2="$tst_arg2"
27108
27109 fi
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27111         fi
27112       done
27113     done
27114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
27115 $as_echo "$tst_gethostname_type_arg2" >&6; }
27116     if test "$tst_gethostname_type_arg2" != "unknown"; then
27117
27118 cat >>confdefs.h <<_ACEOF
27119 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
27120 _ACEOF
27121
27122     fi
27123   fi
27124   #
27125   if test "$tst_compi_gethostname" = "yes"; then
27126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27127 $as_echo_n "checking if gethostname usage allowed... " >&6; }
27128     if test "x$cares_disallow_gethostname" != "xyes"; then
27129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27130 $as_echo "yes" >&6; }
27131       tst_allow_gethostname="yes"
27132     else
27133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27134 $as_echo "no" >&6; }
27135       tst_allow_gethostname="no"
27136     fi
27137   fi
27138   #
27139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27140 $as_echo_n "checking if gethostname might be used... " >&6; }
27141   if test "$tst_links_gethostname" = "yes" &&
27142      test "$tst_proto_gethostname" = "yes" &&
27143      test "$tst_compi_gethostname" = "yes" &&
27144      test "$tst_allow_gethostname" = "yes"; then
27145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27146 $as_echo "yes" >&6; }
27147
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_GETHOSTNAME 1
27150 _ACEOF
27151
27152     ac_cv_func_gethostname="yes"
27153   else
27154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27155 $as_echo "no" >&6; }
27156     ac_cv_func_gethostname="no"
27157   fi
27158
27159
27160     #
27161   tst_links_getservbyport_r="unknown"
27162   tst_proto_getservbyport_r="unknown"
27163   tst_compi_getservbyport_r="unknown"
27164   tst_allow_getservbyport_r="unknown"
27165   tst_nargs_getservbyport_r="unknown"
27166   #
27167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27168 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h.  */
27171
27172
27173 #define getservbyport_r innocuous_getservbyport_r
27174 #ifdef __STDC__
27175 # include <limits.h>
27176 #else
27177 # include <assert.h>
27178 #endif
27179 #undef getservbyport_r
27180 #ifdef __cplusplus
27181 extern "C"
27182 #endif
27183 char getservbyport_r ();
27184 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27185 choke me
27186 #endif
27187
27188 int main (void)
27189 {
27190 return getservbyport_r ();
27191  ;
27192  return 0;
27193 }
27194
27195 _ACEOF
27196 if ac_fn_c_try_link "$LINENO"; then :
27197
27198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27199 $as_echo "yes" >&6; }
27200     tst_links_getservbyport_r="yes"
27201
27202 else
27203
27204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27205 $as_echo "no" >&6; }
27206     tst_links_getservbyport_r="no"
27207
27208 fi
27209 rm -f core conftest.err conftest.$ac_objext \
27210     conftest$ac_exeext conftest.$ac_ext
27211   #
27212   if test "$tst_links_getservbyport_r" = "yes"; then
27213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27214 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27216 /* end confdefs.h.  */
27217
27218       $cares_includes_netdb
27219
27220 _ACEOF
27221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27222   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27223
27224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27225 $as_echo "yes" >&6; }
27226       tst_proto_getservbyport_r="yes"
27227
27228 else
27229
27230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27231 $as_echo "no" >&6; }
27232       tst_proto_getservbyport_r="no"
27233
27234 fi
27235 rm -f conftest*
27236
27237   fi
27238   #
27239   if test "$tst_proto_getservbyport_r" = "yes"; then
27240     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27241       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27242 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27243       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27244 /* end confdefs.h.  */
27245
27246
27247           $cares_includes_netdb
27248
27249 int main (void)
27250 {
27251
27252           if(0 != getservbyport_r(0, 0, 0, 0))
27253             return 1;
27254
27255  ;
27256  return 0;
27257 }
27258
27259 _ACEOF
27260 if ac_fn_c_try_compile "$LINENO"; then :
27261
27262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27263 $as_echo "yes" >&6; }
27264         tst_compi_getservbyport_r="yes"
27265         tst_nargs_getservbyport_r="4"
27266
27267 else
27268
27269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27270 $as_echo "no" >&6; }
27271         tst_compi_getservbyport_r="no"
27272
27273 fi
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275     fi
27276     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27278 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h.  */
27281
27282
27283           $cares_includes_netdb
27284
27285 int main (void)
27286 {
27287
27288           if(0 != getservbyport_r(0, 0, 0, 0, 0))
27289             return 1;
27290
27291  ;
27292  return 0;
27293 }
27294
27295 _ACEOF
27296 if ac_fn_c_try_compile "$LINENO"; then :
27297
27298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27299 $as_echo "yes" >&6; }
27300         tst_compi_getservbyport_r="yes"
27301         tst_nargs_getservbyport_r="5"
27302
27303 else
27304
27305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 $as_echo "no" >&6; }
27307         tst_compi_getservbyport_r="no"
27308
27309 fi
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311     fi
27312     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27313       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27314 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h.  */
27317
27318
27319           $cares_includes_netdb
27320
27321 int main (void)
27322 {
27323
27324           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27325             return 1;
27326
27327  ;
27328  return 0;
27329 }
27330
27331 _ACEOF
27332 if ac_fn_c_try_compile "$LINENO"; then :
27333
27334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27335 $as_echo "yes" >&6; }
27336         tst_compi_getservbyport_r="yes"
27337         tst_nargs_getservbyport_r="6"
27338
27339 else
27340
27341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27342 $as_echo "no" >&6; }
27343         tst_compi_getservbyport_r="no"
27344
27345 fi
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347     fi
27348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27349 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27350     if test "$tst_compi_getservbyport_r" = "yes"; then
27351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27352 $as_echo "yes" >&6; }
27353     else
27354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27355 $as_echo "no" >&6; }
27356     fi
27357   fi
27358   #
27359   if test "$tst_compi_getservbyport_r" = "yes"; then
27360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27361 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27362     if test "x$cares_disallow_getservbyport_r" != "xyes"; then
27363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27364 $as_echo "yes" >&6; }
27365       tst_allow_getservbyport_r="yes"
27366     else
27367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27368 $as_echo "no" >&6; }
27369       tst_allow_getservbyport_r="no"
27370     fi
27371   fi
27372   #
27373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27374 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
27375   if test "$tst_links_getservbyport_r" = "yes" &&
27376      test "$tst_proto_getservbyport_r" = "yes" &&
27377      test "$tst_compi_getservbyport_r" = "yes" &&
27378      test "$tst_allow_getservbyport_r" = "yes"; then
27379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27380 $as_echo "yes" >&6; }
27381
27382 cat >>confdefs.h <<_ACEOF
27383 #define HAVE_GETSERVBYPORT_R 1
27384 _ACEOF
27385
27386
27387 cat >>confdefs.h <<_ACEOF
27388 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27389 _ACEOF
27390
27391     if test "$tst_nargs_getservbyport_r" -eq "4"; then
27392
27393 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27394
27395     else
27396
27397 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27398
27399     fi
27400     ac_cv_func_getservbyport_r="yes"
27401   else
27402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27403 $as_echo "no" >&6; }
27404     ac_cv_func_getservbyport_r="no"
27405   fi
27406
27407
27408 cares_includes_arpa_inet="\
27409 /* includes start */
27410 #ifdef HAVE_SYS_TYPES_H
27411 #  include <sys/types.h>
27412 #endif
27413 #ifdef HAVE_SYS_SOCKET_H
27414 #  include <sys/socket.h>
27415 #endif
27416 #ifdef HAVE_NETINET_IN_H
27417 #  include <netinet/in.h>
27418 #endif
27419 #ifdef HAVE_ARPA_INET_H
27420 #  include <arpa/inet.h>
27421 #endif
27422 /* includes end */"
27423   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
27424 do :
27425   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
27427 "
27428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27429   cat >>confdefs.h <<_ACEOF
27430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27431 _ACEOF
27432
27433 fi
27434
27435 done
27436
27437
27438
27439         #
27440   tst_links_inet_net_pton="unknown"
27441   tst_proto_inet_net_pton="unknown"
27442   tst_compi_inet_net_pton="unknown"
27443   tst_works_inet_net_pton="unknown"
27444   tst_allow_inet_net_pton="unknown"
27445   #
27446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
27447 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
27448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449 /* end confdefs.h.  */
27450
27451
27452 #define inet_net_pton innocuous_inet_net_pton
27453 #ifdef __STDC__
27454 # include <limits.h>
27455 #else
27456 # include <assert.h>
27457 #endif
27458 #undef inet_net_pton
27459 #ifdef __cplusplus
27460 extern "C"
27461 #endif
27462 char inet_net_pton ();
27463 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
27464 choke me
27465 #endif
27466
27467 int main (void)
27468 {
27469 return inet_net_pton ();
27470  ;
27471  return 0;
27472 }
27473
27474 _ACEOF
27475 if ac_fn_c_try_link "$LINENO"; then :
27476
27477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27478 $as_echo "yes" >&6; }
27479     tst_links_inet_net_pton="yes"
27480
27481 else
27482
27483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27484 $as_echo "no" >&6; }
27485     tst_links_inet_net_pton="no"
27486
27487 fi
27488 rm -f core conftest.err conftest.$ac_objext \
27489     conftest$ac_exeext conftest.$ac_ext
27490   #
27491   if test "$tst_links_inet_net_pton" = "yes"; then
27492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
27493 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
27494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h.  */
27496
27497       $cares_includes_arpa_inet
27498
27499 _ACEOF
27500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27501   $EGREP "inet_net_pton" >/dev/null 2>&1; then :
27502
27503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27504 $as_echo "yes" >&6; }
27505       tst_proto_inet_net_pton="yes"
27506
27507 else
27508
27509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27510 $as_echo "no" >&6; }
27511       tst_proto_inet_net_pton="no"
27512
27513 fi
27514 rm -f conftest*
27515
27516   fi
27517   #
27518   if test "$tst_proto_inet_net_pton" = "yes"; then
27519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
27520 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
27521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h.  */
27523
27524
27525         $cares_includes_arpa_inet
27526
27527 int main (void)
27528 {
27529
27530         if(0 != inet_net_pton(0, 0, 0, 0))
27531           return 1;
27532
27533  ;
27534  return 0;
27535 }
27536
27537 _ACEOF
27538 if ac_fn_c_try_compile "$LINENO"; then :
27539
27540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27541 $as_echo "yes" >&6; }
27542       tst_compi_inet_net_pton="yes"
27543
27544 else
27545
27546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27547 $as_echo "no" >&6; }
27548       tst_compi_inet_net_pton="no"
27549
27550 fi
27551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27552   fi
27553   #
27554     if test "x$cross_compiling" != "xyes" &&
27555     test "$tst_compi_inet_net_pton" = "yes"; then
27556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
27557 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
27558     if test "$cross_compiling" = yes; then :
27559   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27561 as_fn_error $? "cannot run test program while cross compiling
27562 See \`config.log' for more details" "$LINENO" 5; }
27563 else
27564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27565 /* end confdefs.h.  */
27566
27567
27568         $cares_includes_stdlib
27569         $cares_includes_arpa_inet
27570         $cares_includes_string
27571
27572 int main (void)
27573 {
27574
27575         unsigned char ipv6a[16+1];
27576         unsigned char ipv4a[4+1];
27577         const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
27578         const char *ipv6net2 = "::fffe:7f00:1";
27579         const char *ipv6net3 = "7f20:1::/64";
27580         const char *ipv6net4 = "7f20:1::/2147483649";
27581         const char *ipv4net1 = "192.168.100.1";
27582         const char *ipv4net2 = "192.168.100/32";
27583         const char *ipv4net3 = "192.168.100.1/2147483649";
27584         /* - */
27585         memset(ipv4a, 1, sizeof(ipv4a));
27586         if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
27587           exit(1); /* fail */
27588         /* - */
27589         if( (ipv4a[0x00] != 0xc0) ||
27590             (ipv4a[0x01] != 0xa8) ||
27591             (ipv4a[0x02] != 0x64) ||
27592             (ipv4a[0x03] != 0x01) ||
27593             (ipv4a[0x04] != 0x01) )
27594           exit(1); /* fail */
27595         /* - */
27596         memset(ipv4a, 1, sizeof(ipv4a));
27597         if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
27598           exit(1); /* fail */
27599         /* - */
27600         if( (ipv4a[0x00] != 0xc0) ||
27601             (ipv4a[0x01] != 0xa8) ||
27602             (ipv4a[0x02] != 0x64) ||
27603             (ipv4a[0x03] != 0x00) ||
27604             (ipv4a[0x04] != 0x01) )
27605           exit(1); /* fail */
27606         /* - */
27607         memset(ipv4a, 1, sizeof(ipv4a));
27608         if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
27609           exit(1); /* fail */
27610         /* - */
27611         memset(ipv6a, 1, sizeof(ipv6a));
27612         if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
27613           exit(1); /* fail */
27614         /* - */
27615         if( (ipv6a[0x00] != 0xfe) ||
27616             (ipv6a[0x01] != 0x80) ||
27617             (ipv6a[0x08] != 0x02) ||
27618             (ipv6a[0x09] != 0x14) ||
27619             (ipv6a[0x0a] != 0x4f) ||
27620             (ipv6a[0x0b] != 0xff) ||
27621             (ipv6a[0x0c] != 0xfe) ||
27622             (ipv6a[0x0d] != 0x0b) ||
27623             (ipv6a[0x0e] != 0x76) ||
27624             (ipv6a[0x0f] != 0xc8) ||
27625             (ipv6a[0x10] != 0x01) )
27626           exit(1); /* fail */
27627         /* - */
27628         if( (ipv6a[0x02] != 0x0) ||
27629             (ipv6a[0x03] != 0x0) ||
27630             (ipv6a[0x04] != 0x0) ||
27631             (ipv6a[0x05] != 0x0) ||
27632             (ipv6a[0x06] != 0x0) ||
27633             (ipv6a[0x07] != 0x0) )
27634           exit(1); /* fail */
27635         /* - */
27636         memset(ipv6a, 0, sizeof(ipv6a));
27637         ipv6a[0x10] = 0x01;
27638         if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
27639           exit(1); /* fail */
27640         /* - */
27641         if( (ipv6a[0x0a] != 0xff) ||
27642             (ipv6a[0x0b] != 0xfe) ||
27643             (ipv6a[0x0c] != 0x7f) ||
27644             (ipv6a[0x0f] != 0x01) ||
27645             (ipv6a[0x10] != 0x01) )
27646           exit(1); /* fail */
27647         /* - */
27648         if( (ipv6a[0x00] != 0x0) ||
27649             (ipv6a[0x01] != 0x0) ||
27650             (ipv6a[0x02] != 0x0) ||
27651             (ipv6a[0x03] != 0x0) ||
27652             (ipv6a[0x04] != 0x0) ||
27653             (ipv6a[0x05] != 0x0) ||
27654             (ipv6a[0x06] != 0x0) ||
27655             (ipv6a[0x07] != 0x0) ||
27656             (ipv6a[0x08] != 0x0) ||
27657             (ipv6a[0x09] != 0x0) ||
27658             (ipv6a[0x0d] != 0x0) ||
27659             (ipv6a[0x0e] != 0x0) )
27660           exit(1); /* fail */
27661         /* - */
27662         memset(ipv6a, 1, sizeof(ipv6a));
27663         if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
27664           exit(1); /* fail */
27665         if( (ipv6a[0x00] != 0x7f) ||
27666             (ipv6a[0x01] != 0x20) ||
27667             (ipv6a[0x03] != 0x01) ||
27668             (ipv6a[0x08] != 0x01) ||
27669             (ipv6a[0x09] != 0x01) ||
27670             (ipv6a[0x0a] != 0x01) ||
27671             (ipv6a[0x0b] != 0x01) ||
27672             (ipv6a[0x0c] != 0x01) ||
27673             (ipv6a[0x0d] != 0x01) ||
27674             (ipv6a[0x0e] != 0x01) ||
27675             (ipv6a[0x0f] != 0x01) ||
27676             (ipv6a[0x10] != 0x01) )
27677           exit(1); /* fail */
27678         if( (ipv6a[0x02] != 0x0) ||
27679             (ipv6a[0x04] != 0x0) ||
27680             (ipv6a[0x05] != 0x0) ||
27681             (ipv6a[0x06] != 0x0) ||
27682             (ipv6a[0x07] != 0x0) ||
27683             (ipv6a[0x07] != 0x0) )
27684           exit(1); /* fail */
27685         /* - */
27686         memset(ipv6a, 1, sizeof(ipv6a));
27687         if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
27688           exit(1); /* fail */
27689         /* - */
27690         exit(0);
27691
27692  ;
27693  return 0;
27694 }
27695
27696 _ACEOF
27697 if ac_fn_c_try_run "$LINENO"; then :
27698
27699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27700 $as_echo "yes" >&6; }
27701       tst_works_inet_net_pton="yes"
27702
27703 else
27704
27705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27706 $as_echo "no" >&6; }
27707       tst_works_inet_net_pton="no"
27708
27709 fi
27710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27711   conftest.$ac_objext conftest.beam conftest.$ac_ext
27712 fi
27713
27714   fi
27715   #
27716   if test "$tst_compi_inet_net_pton" = "yes" &&
27717     test "$tst_works_inet_net_pton" != "no"; then
27718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
27719 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
27720     if test "x$cares_disallow_inet_net_pton" != "xyes"; then
27721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27722 $as_echo "yes" >&6; }
27723       tst_allow_inet_net_pton="yes"
27724     else
27725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27726 $as_echo "no" >&6; }
27727       tst_allow_inet_net_pton="no"
27728     fi
27729   fi
27730   #
27731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
27732 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
27733   if test "$tst_links_inet_net_pton" = "yes" &&
27734      test "$tst_proto_inet_net_pton" = "yes" &&
27735      test "$tst_compi_inet_net_pton" = "yes" &&
27736      test "$tst_allow_inet_net_pton" = "yes" &&
27737      test "$tst_works_inet_net_pton" != "no"; then
27738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27739 $as_echo "yes" >&6; }
27740
27741 cat >>confdefs.h <<_ACEOF
27742 #define HAVE_INET_NET_PTON 1
27743 _ACEOF
27744
27745     ac_cv_func_inet_net_pton="yes"
27746   else
27747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27748 $as_echo "no" >&6; }
27749     ac_cv_func_inet_net_pton="no"
27750   fi
27751
27752
27753         #
27754   tst_links_inet_ntop="unknown"
27755   tst_proto_inet_ntop="unknown"
27756   tst_compi_inet_ntop="unknown"
27757   tst_works_inet_ntop="unknown"
27758   tst_allow_inet_ntop="unknown"
27759   #
27760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
27761 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
27762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h.  */
27764
27765
27766 #define inet_ntop innocuous_inet_ntop
27767 #ifdef __STDC__
27768 # include <limits.h>
27769 #else
27770 # include <assert.h>
27771 #endif
27772 #undef inet_ntop
27773 #ifdef __cplusplus
27774 extern "C"
27775 #endif
27776 char inet_ntop ();
27777 #if defined __stub_inet_ntop || defined __stub___inet_ntop
27778 choke me
27779 #endif
27780
27781 int main (void)
27782 {
27783 return inet_ntop ();
27784  ;
27785  return 0;
27786 }
27787
27788 _ACEOF
27789 if ac_fn_c_try_link "$LINENO"; then :
27790
27791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27792 $as_echo "yes" >&6; }
27793     tst_links_inet_ntop="yes"
27794
27795 else
27796
27797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27798 $as_echo "no" >&6; }
27799     tst_links_inet_ntop="no"
27800
27801 fi
27802 rm -f core conftest.err conftest.$ac_objext \
27803     conftest$ac_exeext conftest.$ac_ext
27804   #
27805   if test "$tst_links_inet_ntop" = "yes"; then
27806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
27807 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
27808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h.  */
27810
27811       $cares_includes_arpa_inet
27812
27813 _ACEOF
27814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27815   $EGREP "inet_ntop" >/dev/null 2>&1; then :
27816
27817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27819       tst_proto_inet_ntop="yes"
27820
27821 else
27822
27823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27824 $as_echo "no" >&6; }
27825       tst_proto_inet_ntop="no"
27826
27827 fi
27828 rm -f conftest*
27829
27830   fi
27831   #
27832   if test "$tst_proto_inet_ntop" = "yes"; then
27833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
27834 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
27835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27836 /* end confdefs.h.  */
27837
27838
27839         $cares_includes_arpa_inet
27840
27841 int main (void)
27842 {
27843
27844         if(0 != inet_ntop(0, 0, 0, 0))
27845           return 1;
27846
27847  ;
27848  return 0;
27849 }
27850
27851 _ACEOF
27852 if ac_fn_c_try_compile "$LINENO"; then :
27853
27854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27855 $as_echo "yes" >&6; }
27856       tst_compi_inet_ntop="yes"
27857
27858 else
27859
27860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27861 $as_echo "no" >&6; }
27862       tst_compi_inet_ntop="no"
27863
27864 fi
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866   fi
27867   #
27868     if test "x$cross_compiling" != "xyes" &&
27869     test "$tst_compi_inet_ntop" = "yes"; then
27870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
27871 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
27872     if test "$cross_compiling" = yes; then :
27873   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27875 as_fn_error $? "cannot run test program while cross compiling
27876 See \`config.log' for more details" "$LINENO" 5; }
27877 else
27878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879 /* end confdefs.h.  */
27880
27881
27882         $cares_includes_stdlib
27883         $cares_includes_arpa_inet
27884         $cares_includes_string
27885
27886 int main (void)
27887 {
27888
27889         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
27890         char ipv4res[sizeof "255.255.255.255"];
27891         unsigned char ipv6a[26];
27892         unsigned char ipv4a[5];
27893         char *ipv6ptr = 0;
27894         char *ipv4ptr = 0;
27895         /* - */
27896         ipv4res[0] = '\0';
27897         ipv4a[0] = 0xc0;
27898         ipv4a[1] = 0xa8;
27899         ipv4a[2] = 0x64;
27900         ipv4a[3] = 0x01;
27901         ipv4a[4] = 0x01;
27902         /* - */
27903         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
27904         if(!ipv4ptr)
27905           exit(1); /* fail */
27906         if(ipv4ptr != ipv4res)
27907           exit(1); /* fail */
27908         if(!ipv4ptr[0])
27909           exit(1); /* fail */
27910         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
27911           exit(1); /* fail */
27912         /* - */
27913         ipv6res[0] = '\0';
27914         memset(ipv6a, 0, sizeof(ipv6a));
27915         ipv6a[0] = 0xfe;
27916         ipv6a[1] = 0x80;
27917         ipv6a[8] = 0x02;
27918         ipv6a[9] = 0x14;
27919         ipv6a[10] = 0x4f;
27920         ipv6a[11] = 0xff;
27921         ipv6a[12] = 0xfe;
27922         ipv6a[13] = 0x0b;
27923         ipv6a[14] = 0x76;
27924         ipv6a[15] = 0xc8;
27925         ipv6a[25] = 0x01;
27926         /* - */
27927         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
27928         if(!ipv6ptr)
27929           exit(1); /* fail */
27930         if(ipv6ptr != ipv6res)
27931           exit(1); /* fail */
27932         if(!ipv6ptr[0])
27933           exit(1); /* fail */
27934         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
27935           exit(1); /* fail */
27936         /* - */
27937         exit(0);
27938
27939  ;
27940  return 0;
27941 }
27942
27943 _ACEOF
27944 if ac_fn_c_try_run "$LINENO"; then :
27945
27946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27947 $as_echo "yes" >&6; }
27948       tst_works_inet_ntop="yes"
27949
27950 else
27951
27952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27954       tst_works_inet_ntop="no"
27955
27956 fi
27957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27958   conftest.$ac_objext conftest.beam conftest.$ac_ext
27959 fi
27960
27961   fi
27962   #
27963   if test "$tst_compi_inet_ntop" = "yes" &&
27964     test "$tst_works_inet_ntop" != "no"; then
27965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
27966 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
27967     if test "x$cares_disallow_inet_ntop" != "xyes"; then
27968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27969 $as_echo "yes" >&6; }
27970       tst_allow_inet_ntop="yes"
27971     else
27972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27973 $as_echo "no" >&6; }
27974       tst_allow_inet_ntop="no"
27975     fi
27976   fi
27977   #
27978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
27979 $as_echo_n "checking if inet_ntop might be used... " >&6; }
27980   if test "$tst_links_inet_ntop" = "yes" &&
27981      test "$tst_proto_inet_ntop" = "yes" &&
27982      test "$tst_compi_inet_ntop" = "yes" &&
27983      test "$tst_allow_inet_ntop" = "yes" &&
27984      test "$tst_works_inet_ntop" != "no"; then
27985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27986 $as_echo "yes" >&6; }
27987
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_INET_NTOP 1
27990 _ACEOF
27991
27992     ac_cv_func_inet_ntop="yes"
27993   else
27994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27995 $as_echo "no" >&6; }
27996     ac_cv_func_inet_ntop="no"
27997   fi
27998
27999
28000         #
28001   tst_links_inet_pton="unknown"
28002   tst_proto_inet_pton="unknown"
28003   tst_compi_inet_pton="unknown"
28004   tst_works_inet_pton="unknown"
28005   tst_allow_inet_pton="unknown"
28006   #
28007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28008 $as_echo_n "checking if inet_pton can be linked... " >&6; }
28009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h.  */
28011
28012
28013 #define inet_pton innocuous_inet_pton
28014 #ifdef __STDC__
28015 # include <limits.h>
28016 #else
28017 # include <assert.h>
28018 #endif
28019 #undef inet_pton
28020 #ifdef __cplusplus
28021 extern "C"
28022 #endif
28023 char inet_pton ();
28024 #if defined __stub_inet_pton || defined __stub___inet_pton
28025 choke me
28026 #endif
28027
28028 int main (void)
28029 {
28030 return inet_pton ();
28031  ;
28032  return 0;
28033 }
28034
28035 _ACEOF
28036 if ac_fn_c_try_link "$LINENO"; then :
28037
28038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28039 $as_echo "yes" >&6; }
28040     tst_links_inet_pton="yes"
28041
28042 else
28043
28044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045 $as_echo "no" >&6; }
28046     tst_links_inet_pton="no"
28047
28048 fi
28049 rm -f core conftest.err conftest.$ac_objext \
28050     conftest$ac_exeext conftest.$ac_ext
28051   #
28052   if test "$tst_links_inet_pton" = "yes"; then
28053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28054 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
28055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h.  */
28057
28058       $cares_includes_arpa_inet
28059
28060 _ACEOF
28061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28062   $EGREP "inet_pton" >/dev/null 2>&1; then :
28063
28064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28065 $as_echo "yes" >&6; }
28066       tst_proto_inet_pton="yes"
28067
28068 else
28069
28070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28071 $as_echo "no" >&6; }
28072       tst_proto_inet_pton="no"
28073
28074 fi
28075 rm -f conftest*
28076
28077   fi
28078   #
28079   if test "$tst_proto_inet_pton" = "yes"; then
28080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28081 $as_echo_n "checking if inet_pton is compilable... " >&6; }
28082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28083 /* end confdefs.h.  */
28084
28085
28086         $cares_includes_arpa_inet
28087
28088 int main (void)
28089 {
28090
28091         if(0 != inet_pton(0, 0, 0))
28092           return 1;
28093
28094  ;
28095  return 0;
28096 }
28097
28098 _ACEOF
28099 if ac_fn_c_try_compile "$LINENO"; then :
28100
28101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28102 $as_echo "yes" >&6; }
28103       tst_compi_inet_pton="yes"
28104
28105 else
28106
28107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 $as_echo "no" >&6; }
28109       tst_compi_inet_pton="no"
28110
28111 fi
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113   fi
28114   #
28115     if test "x$cross_compiling" != "xyes" &&
28116     test "$tst_compi_inet_pton" = "yes"; then
28117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28118 $as_echo_n "checking if inet_pton seems to work... " >&6; }
28119     if test "$cross_compiling" = yes; then :
28120   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28122 as_fn_error $? "cannot run test program while cross compiling
28123 See \`config.log' for more details" "$LINENO" 5; }
28124 else
28125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28126 /* end confdefs.h.  */
28127
28128
28129         $cares_includes_stdlib
28130         $cares_includes_arpa_inet
28131         $cares_includes_string
28132
28133 int main (void)
28134 {
28135
28136         unsigned char ipv6a[16+1];
28137         unsigned char ipv4a[4+1];
28138         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28139         const char *ipv4src = "192.168.100.1";
28140         /* - */
28141         memset(ipv4a, 1, sizeof(ipv4a));
28142         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28143           exit(1); /* fail */
28144         /* - */
28145         if( (ipv4a[0] != 0xc0) ||
28146             (ipv4a[1] != 0xa8) ||
28147             (ipv4a[2] != 0x64) ||
28148             (ipv4a[3] != 0x01) ||
28149             (ipv4a[4] != 0x01) )
28150           exit(1); /* fail */
28151         /* - */
28152         memset(ipv6a, 1, sizeof(ipv6a));
28153         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28154           exit(1); /* fail */
28155         /* - */
28156         if( (ipv6a[0]  != 0xfe) ||
28157             (ipv6a[1]  != 0x80) ||
28158             (ipv6a[8]  != 0x02) ||
28159             (ipv6a[9]  != 0x14) ||
28160             (ipv6a[10] != 0x4f) ||
28161             (ipv6a[11] != 0xff) ||
28162             (ipv6a[12] != 0xfe) ||
28163             (ipv6a[13] != 0x0b) ||
28164             (ipv6a[14] != 0x76) ||
28165             (ipv6a[15] != 0xc8) ||
28166             (ipv6a[16] != 0x01) )
28167           exit(1); /* fail */
28168         /* - */
28169         if( (ipv6a[2]  != 0x0) ||
28170             (ipv6a[3]  != 0x0) ||
28171             (ipv6a[4]  != 0x0) ||
28172             (ipv6a[5]  != 0x0) ||
28173             (ipv6a[6]  != 0x0) ||
28174             (ipv6a[7]  != 0x0) )
28175           exit(1); /* fail */
28176         /* - */
28177         exit(0);
28178
28179  ;
28180  return 0;
28181 }
28182
28183 _ACEOF
28184 if ac_fn_c_try_run "$LINENO"; then :
28185
28186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28187 $as_echo "yes" >&6; }
28188       tst_works_inet_pton="yes"
28189
28190 else
28191
28192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193 $as_echo "no" >&6; }
28194       tst_works_inet_pton="no"
28195
28196 fi
28197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28198   conftest.$ac_objext conftest.beam conftest.$ac_ext
28199 fi
28200
28201   fi
28202   #
28203   if test "$tst_compi_inet_pton" = "yes" &&
28204     test "$tst_works_inet_pton" != "no"; then
28205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28206 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
28207     if test "x$cares_disallow_inet_pton" != "xyes"; then
28208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28209 $as_echo "yes" >&6; }
28210       tst_allow_inet_pton="yes"
28211     else
28212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28213 $as_echo "no" >&6; }
28214       tst_allow_inet_pton="no"
28215     fi
28216   fi
28217   #
28218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28219 $as_echo_n "checking if inet_pton might be used... " >&6; }
28220   if test "$tst_links_inet_pton" = "yes" &&
28221      test "$tst_proto_inet_pton" = "yes" &&
28222      test "$tst_compi_inet_pton" = "yes" &&
28223      test "$tst_allow_inet_pton" = "yes" &&
28224      test "$tst_works_inet_pton" != "no"; then
28225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28226 $as_echo "yes" >&6; }
28227
28228 cat >>confdefs.h <<_ACEOF
28229 #define HAVE_INET_PTON 1
28230 _ACEOF
28231
28232     ac_cv_func_inet_pton="yes"
28233   else
28234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28235 $as_echo "no" >&6; }
28236     ac_cv_func_inet_pton="no"
28237   fi
28238
28239
28240 cares_includes_stropts="\
28241 /* includes start */
28242 #ifdef HAVE_SYS_TYPES_H
28243 #  include <sys/types.h>
28244 #endif
28245 #ifdef HAVE_UNISTD_H
28246 #  include <unistd.h>
28247 #endif
28248 #ifdef HAVE_SYS_SOCKET_H
28249 #  include <sys/socket.h>
28250 #endif
28251 #ifdef HAVE_SYS_IOCTL_H
28252 #  include <sys/ioctl.h>
28253 #endif
28254 #ifdef HAVE_STROPTS_H
28255 #  include <stropts.h>
28256 #endif
28257 /* includes end */"
28258   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28259 do :
28260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
28262 "
28263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28264   cat >>confdefs.h <<_ACEOF
28265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28266 _ACEOF
28267
28268 fi
28269
28270 done
28271
28272
28273
28274     #
28275   tst_links_ioctl="unknown"
28276   tst_proto_ioctl="unknown"
28277   tst_compi_ioctl="unknown"
28278   tst_allow_ioctl="unknown"
28279   #
28280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28281 $as_echo_n "checking if ioctl can be linked... " >&6; }
28282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28283 /* end confdefs.h.  */
28284
28285
28286 #define ioctl innocuous_ioctl
28287 #ifdef __STDC__
28288 # include <limits.h>
28289 #else
28290 # include <assert.h>
28291 #endif
28292 #undef ioctl
28293 #ifdef __cplusplus
28294 extern "C"
28295 #endif
28296 char ioctl ();
28297 #if defined __stub_ioctl || defined __stub___ioctl
28298 choke me
28299 #endif
28300
28301 int main (void)
28302 {
28303 return ioctl ();
28304  ;
28305  return 0;
28306 }
28307
28308 _ACEOF
28309 if ac_fn_c_try_link "$LINENO"; then :
28310
28311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28312 $as_echo "yes" >&6; }
28313     tst_links_ioctl="yes"
28314
28315 else
28316
28317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28318 $as_echo "no" >&6; }
28319     tst_links_ioctl="no"
28320
28321 fi
28322 rm -f core conftest.err conftest.$ac_objext \
28323     conftest$ac_exeext conftest.$ac_ext
28324   #
28325   if test "$tst_links_ioctl" = "yes"; then
28326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28327 $as_echo_n "checking if ioctl is prototyped... " >&6; }
28328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28329 /* end confdefs.h.  */
28330
28331       $cares_includes_stropts
28332
28333 _ACEOF
28334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28335   $EGREP "ioctl" >/dev/null 2>&1; then :
28336
28337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28338 $as_echo "yes" >&6; }
28339       tst_proto_ioctl="yes"
28340
28341 else
28342
28343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28344 $as_echo "no" >&6; }
28345       tst_proto_ioctl="no"
28346
28347 fi
28348 rm -f conftest*
28349
28350   fi
28351   #
28352   if test "$tst_proto_ioctl" = "yes"; then
28353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28354 $as_echo_n "checking if ioctl is compilable... " >&6; }
28355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28356 /* end confdefs.h.  */
28357
28358
28359         $cares_includes_stropts
28360
28361 int main (void)
28362 {
28363
28364         if(0 != ioctl(0, 0, 0))
28365           return 1;
28366
28367  ;
28368  return 0;
28369 }
28370
28371 _ACEOF
28372 if ac_fn_c_try_compile "$LINENO"; then :
28373
28374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28375 $as_echo "yes" >&6; }
28376       tst_compi_ioctl="yes"
28377
28378 else
28379
28380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28381 $as_echo "no" >&6; }
28382       tst_compi_ioctl="no"
28383
28384 fi
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28386   fi
28387   #
28388   if test "$tst_compi_ioctl" = "yes"; then
28389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
28390 $as_echo_n "checking if ioctl usage allowed... " >&6; }
28391     if test "x$cares_disallow_ioctl" != "xyes"; then
28392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28393 $as_echo "yes" >&6; }
28394       tst_allow_ioctl="yes"
28395     else
28396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28397 $as_echo "no" >&6; }
28398       tst_allow_ioctl="no"
28399     fi
28400   fi
28401   #
28402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
28403 $as_echo_n "checking if ioctl might be used... " >&6; }
28404   if test "$tst_links_ioctl" = "yes" &&
28405      test "$tst_proto_ioctl" = "yes" &&
28406      test "$tst_compi_ioctl" = "yes" &&
28407      test "$tst_allow_ioctl" = "yes"; then
28408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28409 $as_echo "yes" >&6; }
28410
28411 cat >>confdefs.h <<_ACEOF
28412 #define HAVE_IOCTL 1
28413 _ACEOF
28414
28415     ac_cv_func_ioctl="yes"
28416
28417   #
28418   tst_compi_ioctl_fionbio="unknown"
28419   tst_allow_ioctl_fionbio="unknown"
28420   #
28421   if test "$ac_cv_func_ioctl" = "yes"; then
28422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
28423 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
28424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h.  */
28426
28427
28428         $cares_includes_stropts
28429
28430 int main (void)
28431 {
28432
28433         int flags = 0;
28434         if(0 != ioctl(0, FIONBIO, &flags))
28435           return 1;
28436
28437  ;
28438  return 0;
28439 }
28440
28441 _ACEOF
28442 if ac_fn_c_try_compile "$LINENO"; then :
28443
28444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28445 $as_echo "yes" >&6; }
28446       tst_compi_ioctl_fionbio="yes"
28447
28448 else
28449
28450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28451 $as_echo "no" >&6; }
28452       tst_compi_ioctl_fionbio="no"
28453
28454 fi
28455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28456   fi
28457   #
28458   if test "$tst_compi_ioctl_fionbio" = "yes"; then
28459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
28460 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
28461     if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
28462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463 $as_echo "yes" >&6; }
28464       tst_allow_ioctl_fionbio="yes"
28465     else
28466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467 $as_echo "no" >&6; }
28468       tst_allow_ioctl_fionbio="no"
28469     fi
28470   fi
28471   #
28472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
28473 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
28474   if test "$tst_compi_ioctl_fionbio" = "yes" &&
28475      test "$tst_allow_ioctl_fionbio" = "yes"; then
28476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28477 $as_echo "yes" >&6; }
28478
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE_IOCTL_FIONBIO 1
28481 _ACEOF
28482
28483     ac_cv_func_ioctl_fionbio="yes"
28484   else
28485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28486 $as_echo "no" >&6; }
28487     ac_cv_func_ioctl_fionbio="no"
28488   fi
28489
28490
28491   #
28492   tst_compi_ioctl_siocgifaddr="unknown"
28493   tst_allow_ioctl_siocgifaddr="unknown"
28494   #
28495   if test "$ac_cv_func_ioctl" = "yes"; then
28496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
28497 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
28498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28499 /* end confdefs.h.  */
28500
28501
28502         $cares_includes_stropts
28503         #include <net/if.h>
28504
28505 int main (void)
28506 {
28507
28508         struct ifreq ifr;
28509         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
28510           return 1;
28511
28512  ;
28513  return 0;
28514 }
28515
28516 _ACEOF
28517 if ac_fn_c_try_compile "$LINENO"; then :
28518
28519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28520 $as_echo "yes" >&6; }
28521       tst_compi_ioctl_siocgifaddr="yes"
28522
28523 else
28524
28525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28526 $as_echo "no" >&6; }
28527       tst_compi_ioctl_siocgifaddr="no"
28528
28529 fi
28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531   fi
28532   #
28533   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
28534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
28535 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
28536     if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
28537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538 $as_echo "yes" >&6; }
28539       tst_allow_ioctl_siocgifaddr="yes"
28540     else
28541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28542 $as_echo "no" >&6; }
28543       tst_allow_ioctl_siocgifaddr="no"
28544     fi
28545   fi
28546   #
28547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
28548 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
28549   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
28550      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
28551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28552 $as_echo "yes" >&6; }
28553
28554 cat >>confdefs.h <<_ACEOF
28555 #define HAVE_IOCTL_SIOCGIFADDR 1
28556 _ACEOF
28557
28558     ac_cv_func_ioctl_siocgifaddr="yes"
28559   else
28560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28561 $as_echo "no" >&6; }
28562     ac_cv_func_ioctl_siocgifaddr="no"
28563   fi
28564
28565   else
28566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28567 $as_echo "no" >&6; }
28568     ac_cv_func_ioctl="no"
28569   fi
28570
28571
28572     #
28573   tst_links_ioctlsocket="unknown"
28574   tst_proto_ioctlsocket="unknown"
28575   tst_compi_ioctlsocket="unknown"
28576   tst_allow_ioctlsocket="unknown"
28577   #
28578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
28579 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
28580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28581 /* end confdefs.h.  */
28582
28583
28584       $cares_includes_winsock2
28585
28586 int main (void)
28587 {
28588
28589       if(0 != ioctlsocket(0, 0, 0))
28590         return 1;
28591
28592  ;
28593  return 0;
28594 }
28595
28596 _ACEOF
28597 if ac_fn_c_try_link "$LINENO"; then :
28598
28599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28600 $as_echo "yes" >&6; }
28601     tst_links_ioctlsocket="yes"
28602
28603 else
28604
28605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606 $as_echo "no" >&6; }
28607     tst_links_ioctlsocket="no"
28608
28609 fi
28610 rm -f core conftest.err conftest.$ac_objext \
28611     conftest$ac_exeext conftest.$ac_ext
28612   #
28613   if test "$tst_links_ioctlsocket" = "yes"; then
28614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
28615 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
28616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28617 /* end confdefs.h.  */
28618
28619       $cares_includes_winsock2
28620
28621 _ACEOF
28622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28623   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
28624
28625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28626 $as_echo "yes" >&6; }
28627       tst_proto_ioctlsocket="yes"
28628
28629 else
28630
28631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28632 $as_echo "no" >&6; }
28633       tst_proto_ioctlsocket="no"
28634
28635 fi
28636 rm -f conftest*
28637
28638   fi
28639   #
28640   if test "$tst_proto_ioctlsocket" = "yes"; then
28641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
28642 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
28643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28644 /* end confdefs.h.  */
28645
28646
28647         $cares_includes_winsock2
28648
28649 int main (void)
28650 {
28651
28652         if(0 != ioctlsocket(0, 0, 0))
28653           return 1;
28654
28655  ;
28656  return 0;
28657 }
28658
28659 _ACEOF
28660 if ac_fn_c_try_compile "$LINENO"; then :
28661
28662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28663 $as_echo "yes" >&6; }
28664       tst_compi_ioctlsocket="yes"
28665
28666 else
28667
28668       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28669 $as_echo "no" >&6; }
28670       tst_compi_ioctlsocket="no"
28671
28672 fi
28673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28674   fi
28675   #
28676   if test "$tst_compi_ioctlsocket" = "yes"; then
28677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
28678 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
28679     if test "x$cares_disallow_ioctlsocket" != "xyes"; then
28680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28681 $as_echo "yes" >&6; }
28682       tst_allow_ioctlsocket="yes"
28683     else
28684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28685 $as_echo "no" >&6; }
28686       tst_allow_ioctlsocket="no"
28687     fi
28688   fi
28689   #
28690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
28691 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
28692   if test "$tst_links_ioctlsocket" = "yes" &&
28693      test "$tst_proto_ioctlsocket" = "yes" &&
28694      test "$tst_compi_ioctlsocket" = "yes" &&
28695      test "$tst_allow_ioctlsocket" = "yes"; then
28696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28697 $as_echo "yes" >&6; }
28698
28699 cat >>confdefs.h <<_ACEOF
28700 #define HAVE_IOCTLSOCKET 1
28701 _ACEOF
28702
28703     ac_cv_func_ioctlsocket="yes"
28704
28705   #
28706   tst_compi_ioctlsocket_fionbio="unknown"
28707   tst_allow_ioctlsocket_fionbio="unknown"
28708   #
28709   if test "$ac_cv_func_ioctlsocket" = "yes"; then
28710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
28711 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
28712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h.  */
28714
28715
28716         $cares_includes_winsock2
28717
28718 int main (void)
28719 {
28720
28721         int flags = 0;
28722         if(0 != ioctlsocket(0, FIONBIO, &flags))
28723           return 1;
28724
28725  ;
28726  return 0;
28727 }
28728
28729 _ACEOF
28730 if ac_fn_c_try_compile "$LINENO"; then :
28731
28732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }
28734       tst_compi_ioctlsocket_fionbio="yes"
28735
28736 else
28737
28738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28739 $as_echo "no" >&6; }
28740       tst_compi_ioctlsocket_fionbio="no"
28741
28742 fi
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28744   fi
28745   #
28746   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
28747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
28748 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
28749     if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
28750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751 $as_echo "yes" >&6; }
28752       tst_allow_ioctlsocket_fionbio="yes"
28753     else
28754       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28755 $as_echo "no" >&6; }
28756       tst_allow_ioctlsocket_fionbio="no"
28757     fi
28758   fi
28759   #
28760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
28761 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
28762   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
28763      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
28764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28765 $as_echo "yes" >&6; }
28766
28767 cat >>confdefs.h <<_ACEOF
28768 #define HAVE_IOCTLSOCKET_FIONBIO 1
28769 _ACEOF
28770
28771     ac_cv_func_ioctlsocket_fionbio="yes"
28772   else
28773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28774 $as_echo "no" >&6; }
28775     ac_cv_func_ioctlsocket_fionbio="no"
28776   fi
28777
28778   else
28779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28780 $as_echo "no" >&6; }
28781     ac_cv_func_ioctlsocket="no"
28782   fi
28783
28784
28785     #
28786   tst_links_ioctlsocket_camel="unknown"
28787   tst_proto_ioctlsocket_camel="unknown"
28788   tst_compi_ioctlsocket_camel="unknown"
28789   tst_allow_ioctlsocket_camel="unknown"
28790   #
28791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
28792 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
28793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h.  */
28795
28796
28797 #define IoctlSocket innocuous_IoctlSocket
28798 #ifdef __STDC__
28799 # include <limits.h>
28800 #else
28801 # include <assert.h>
28802 #endif
28803 #undef IoctlSocket
28804 #ifdef __cplusplus
28805 extern "C"
28806 #endif
28807 char IoctlSocket ();
28808 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
28809 choke me
28810 #endif
28811
28812 int main (void)
28813 {
28814 return IoctlSocket ();
28815  ;
28816  return 0;
28817 }
28818
28819 _ACEOF
28820 if ac_fn_c_try_link "$LINENO"; then :
28821
28822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28823 $as_echo "yes" >&6; }
28824     tst_links_ioctlsocket_camel="yes"
28825
28826 else
28827
28828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28829 $as_echo "no" >&6; }
28830     tst_links_ioctlsocket_camel="no"
28831
28832 fi
28833 rm -f core conftest.err conftest.$ac_objext \
28834     conftest$ac_exeext conftest.$ac_ext
28835   #
28836   if test "$tst_links_ioctlsocket_camel" = "yes"; then
28837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
28838 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
28839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28840 /* end confdefs.h.  */
28841
28842       $cares_includes_stropts
28843
28844 _ACEOF
28845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28846   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
28847
28848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849 $as_echo "yes" >&6; }
28850       tst_proto_ioctlsocket_camel="yes"
28851
28852 else
28853
28854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28855 $as_echo "no" >&6; }
28856       tst_proto_ioctlsocket_camel="no"
28857
28858 fi
28859 rm -f conftest*
28860
28861   fi
28862   #
28863   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
28864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
28865 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
28866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28867 /* end confdefs.h.  */
28868
28869
28870         $cares_includes_stropts
28871
28872 int main (void)
28873 {
28874
28875         if(0 != IoctlSocket(0, 0, 0))
28876           return 1;
28877
28878  ;
28879  return 0;
28880 }
28881
28882 _ACEOF
28883 if ac_fn_c_try_compile "$LINENO"; then :
28884
28885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28886 $as_echo "yes" >&6; }
28887       tst_compi_ioctlsocket_camel="yes"
28888
28889 else
28890
28891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28892 $as_echo "no" >&6; }
28893       tst_compi_ioctlsocket_camel="no"
28894
28895 fi
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897   fi
28898   #
28899   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
28900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
28901 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
28902     if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
28903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905       tst_allow_ioctlsocket_camel="yes"
28906     else
28907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908 $as_echo "no" >&6; }
28909       tst_allow_ioctlsocket_camel="no"
28910     fi
28911   fi
28912   #
28913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
28914 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
28915   if test "$tst_links_ioctlsocket_camel" = "yes" &&
28916      test "$tst_proto_ioctlsocket_camel" = "yes" &&
28917      test "$tst_compi_ioctlsocket_camel" = "yes" &&
28918      test "$tst_allow_ioctlsocket_camel" = "yes"; then
28919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28920 $as_echo "yes" >&6; }
28921
28922 cat >>confdefs.h <<_ACEOF
28923 #define HAVE_IOCTLSOCKET_CAMEL 1
28924 _ACEOF
28925
28926     ac_cv_func_ioctlsocket_camel="yes"
28927
28928   #
28929   tst_compi_ioctlsocket_camel_fionbio="unknown"
28930   tst_allow_ioctlsocket_camel_fionbio="unknown"
28931   #
28932   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
28933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
28934 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
28935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28936 /* end confdefs.h.  */
28937
28938
28939         $cares_includes_stropts
28940
28941 int main (void)
28942 {
28943
28944         long flags = 0;
28945         if(0 != ioctlsocket(0, FIONBIO, &flags))
28946           return 1;
28947
28948  ;
28949  return 0;
28950 }
28951
28952 _ACEOF
28953 if ac_fn_c_try_compile "$LINENO"; then :
28954
28955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28956 $as_echo "yes" >&6; }
28957       tst_compi_ioctlsocket_camel_fionbio="yes"
28958
28959 else
28960
28961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28962 $as_echo "no" >&6; }
28963       tst_compi_ioctlsocket_camel_fionbio="no"
28964
28965 fi
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967   fi
28968   #
28969   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
28970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
28971 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
28972     if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
28973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28974 $as_echo "yes" >&6; }
28975       tst_allow_ioctlsocket_camel_fionbio="yes"
28976     else
28977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28978 $as_echo "no" >&6; }
28979       tst_allow_ioctlsocket_camel_fionbio="no"
28980     fi
28981   fi
28982   #
28983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
28984 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
28985   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
28986      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
28987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28988 $as_echo "yes" >&6; }
28989
28990 cat >>confdefs.h <<_ACEOF
28991 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
28992 _ACEOF
28993
28994     ac_cv_func_ioctlsocket_camel_fionbio="yes"
28995   else
28996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28997 $as_echo "no" >&6; }
28998     ac_cv_func_ioctlsocket_camel_fionbio="no"
28999   fi
29000
29001   else
29002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29003 $as_echo "no" >&6; }
29004     ac_cv_func_ioctlsocket_camel="no"
29005   fi
29006
29007
29008       #
29009   tst_links_setsockopt="unknown"
29010   tst_proto_setsockopt="unknown"
29011   tst_compi_setsockopt="unknown"
29012   tst_allow_setsockopt="unknown"
29013   #
29014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
29015 $as_echo_n "checking if setsockopt can be linked... " >&6; }
29016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29017 /* end confdefs.h.  */
29018
29019
29020       $cares_includes_winsock2
29021       $cares_includes_sys_socket
29022
29023 int main (void)
29024 {
29025
29026       if(0 != setsockopt(0, 0, 0, 0, 0))
29027         return 1;
29028
29029  ;
29030  return 0;
29031 }
29032
29033 _ACEOF
29034 if ac_fn_c_try_link "$LINENO"; then :
29035
29036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29037 $as_echo "yes" >&6; }
29038     tst_links_setsockopt="yes"
29039
29040 else
29041
29042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29044     tst_links_setsockopt="no"
29045
29046 fi
29047 rm -f core conftest.err conftest.$ac_objext \
29048     conftest$ac_exeext conftest.$ac_ext
29049   #
29050   if test "$tst_links_setsockopt" = "yes"; then
29051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
29052 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
29053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29054 /* end confdefs.h.  */
29055
29056       $cares_includes_winsock2
29057       $cares_includes_sys_socket
29058
29059 _ACEOF
29060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29061   $EGREP "setsockopt" >/dev/null 2>&1; then :
29062
29063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29064 $as_echo "yes" >&6; }
29065       tst_proto_setsockopt="yes"
29066
29067 else
29068
29069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29070 $as_echo "no" >&6; }
29071       tst_proto_setsockopt="no"
29072
29073 fi
29074 rm -f conftest*
29075
29076   fi
29077   #
29078   if test "$tst_proto_setsockopt" = "yes"; then
29079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
29080 $as_echo_n "checking if setsockopt is compilable... " >&6; }
29081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29082 /* end confdefs.h.  */
29083
29084
29085         $cares_includes_winsock2
29086         $cares_includes_sys_socket
29087
29088 int main (void)
29089 {
29090
29091         if(0 != setsockopt(0, 0, 0, 0, 0))
29092           return 1;
29093
29094  ;
29095  return 0;
29096 }
29097
29098 _ACEOF
29099 if ac_fn_c_try_compile "$LINENO"; then :
29100
29101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29102 $as_echo "yes" >&6; }
29103       tst_compi_setsockopt="yes"
29104
29105 else
29106
29107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29108 $as_echo "no" >&6; }
29109       tst_compi_setsockopt="no"
29110
29111 fi
29112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29113   fi
29114   #
29115   if test "$tst_compi_setsockopt" = "yes"; then
29116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
29117 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
29118     if test "x$cares_disallow_setsockopt" != "xyes"; then
29119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121       tst_allow_setsockopt="yes"
29122     else
29123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29124 $as_echo "no" >&6; }
29125       tst_allow_setsockopt="no"
29126     fi
29127   fi
29128   #
29129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
29130 $as_echo_n "checking if setsockopt might be used... " >&6; }
29131   if test "$tst_links_setsockopt" = "yes" &&
29132      test "$tst_proto_setsockopt" = "yes" &&
29133      test "$tst_compi_setsockopt" = "yes" &&
29134      test "$tst_allow_setsockopt" = "yes"; then
29135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29137
29138 cat >>confdefs.h <<_ACEOF
29139 #define HAVE_SETSOCKOPT 1
29140 _ACEOF
29141
29142     ac_cv_func_setsockopt="yes"
29143
29144   #
29145   tst_compi_setsockopt_so_nonblock="unknown"
29146   tst_allow_setsockopt_so_nonblock="unknown"
29147   #
29148   if test "$ac_cv_func_setsockopt" = "yes"; then
29149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
29150 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
29151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h.  */
29153
29154
29155         $cares_includes_winsock2
29156         $cares_includes_sys_socket
29157
29158 int main (void)
29159 {
29160
29161         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
29162           return 1;
29163
29164  ;
29165  return 0;
29166 }
29167
29168 _ACEOF
29169 if ac_fn_c_try_compile "$LINENO"; then :
29170
29171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29172 $as_echo "yes" >&6; }
29173       tst_compi_setsockopt_so_nonblock="yes"
29174
29175 else
29176
29177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29178 $as_echo "no" >&6; }
29179       tst_compi_setsockopt_so_nonblock="no"
29180
29181 fi
29182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29183   fi
29184   #
29185   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
29186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
29187 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
29188     if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
29189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29190 $as_echo "yes" >&6; }
29191       tst_allow_setsockopt_so_nonblock="yes"
29192     else
29193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29194 $as_echo "no" >&6; }
29195       tst_allow_setsockopt_so_nonblock="no"
29196     fi
29197   fi
29198   #
29199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
29200 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
29201   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
29202      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
29203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29205
29206 cat >>confdefs.h <<_ACEOF
29207 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
29208 _ACEOF
29209
29210     ac_cv_func_setsockopt_so_nonblock="yes"
29211   else
29212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29214     ac_cv_func_setsockopt_so_nonblock="no"
29215   fi
29216
29217   else
29218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29219 $as_echo "no" >&6; }
29220     ac_cv_func_setsockopt="no"
29221   fi
29222
29223
29224         #
29225   tst_links_socket="unknown"
29226   tst_proto_socket="unknown"
29227   tst_compi_socket="unknown"
29228   tst_allow_socket="unknown"
29229   #
29230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
29231 $as_echo_n "checking if socket can be linked... " >&6; }
29232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29233 /* end confdefs.h.  */
29234
29235
29236       $cares_includes_winsock2
29237       $cares_includes_sys_socket
29238       $cares_includes_socket
29239
29240 int main (void)
29241 {
29242
29243       if(0 != socket(0, 0, 0))
29244         return 1;
29245
29246  ;
29247  return 0;
29248 }
29249
29250 _ACEOF
29251 if ac_fn_c_try_link "$LINENO"; then :
29252
29253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29255     tst_links_socket="yes"
29256
29257 else
29258
29259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29260 $as_echo "no" >&6; }
29261     tst_links_socket="no"
29262
29263 fi
29264 rm -f core conftest.err conftest.$ac_objext \
29265     conftest$ac_exeext conftest.$ac_ext
29266   #
29267   if test "$tst_links_socket" = "yes"; then
29268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
29269 $as_echo_n "checking if socket is prototyped... " >&6; }
29270     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29271 /* end confdefs.h.  */
29272
29273       $cares_includes_winsock2
29274       $cares_includes_sys_socket
29275       $cares_includes_socket
29276
29277 _ACEOF
29278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29279   $EGREP "socket" >/dev/null 2>&1; then :
29280
29281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29283       tst_proto_socket="yes"
29284
29285 else
29286
29287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29288 $as_echo "no" >&6; }
29289       tst_proto_socket="no"
29290
29291 fi
29292 rm -f conftest*
29293
29294   fi
29295   #
29296   if test "$tst_proto_socket" = "yes"; then
29297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
29298 $as_echo_n "checking if socket is compilable... " >&6; }
29299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29300 /* end confdefs.h.  */
29301
29302
29303         $cares_includes_winsock2
29304         $cares_includes_sys_socket
29305         $cares_includes_socket
29306
29307 int main (void)
29308 {
29309
29310         if(0 != socket(0, 0, 0))
29311           return 1;
29312
29313  ;
29314  return 0;
29315 }
29316
29317 _ACEOF
29318 if ac_fn_c_try_compile "$LINENO"; then :
29319
29320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29321 $as_echo "yes" >&6; }
29322       tst_compi_socket="yes"
29323
29324 else
29325
29326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327 $as_echo "no" >&6; }
29328       tst_compi_socket="no"
29329
29330 fi
29331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29332   fi
29333   #
29334   if test "$tst_compi_socket" = "yes"; then
29335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
29336 $as_echo_n "checking if socket usage allowed... " >&6; }
29337     if test "x$cares_disallow_socket" != "xyes"; then
29338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29339 $as_echo "yes" >&6; }
29340       tst_allow_socket="yes"
29341     else
29342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29343 $as_echo "no" >&6; }
29344       tst_allow_socket="no"
29345     fi
29346   fi
29347   #
29348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
29349 $as_echo_n "checking if socket might be used... " >&6; }
29350   if test "$tst_links_socket" = "yes" &&
29351      test "$tst_proto_socket" = "yes" &&
29352      test "$tst_compi_socket" = "yes" &&
29353      test "$tst_allow_socket" = "yes"; then
29354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29356
29357 cat >>confdefs.h <<_ACEOF
29358 #define HAVE_SOCKET 1
29359 _ACEOF
29360
29361     ac_cv_func_socket="yes"
29362   else
29363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 $as_echo "no" >&6; }
29365     ac_cv_func_socket="no"
29366   fi
29367
29368
29369     #
29370   tst_links_strcasecmp="unknown"
29371   tst_proto_strcasecmp="unknown"
29372   tst_compi_strcasecmp="unknown"
29373   tst_allow_strcasecmp="unknown"
29374   #
29375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
29376 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
29377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29378 /* end confdefs.h.  */
29379
29380
29381 #define strcasecmp innocuous_strcasecmp
29382 #ifdef __STDC__
29383 # include <limits.h>
29384 #else
29385 # include <assert.h>
29386 #endif
29387 #undef strcasecmp
29388 #ifdef __cplusplus
29389 extern "C"
29390 #endif
29391 char strcasecmp ();
29392 #if defined __stub_strcasecmp || defined __stub___strcasecmp
29393 choke me
29394 #endif
29395
29396 int main (void)
29397 {
29398 return strcasecmp ();
29399  ;
29400  return 0;
29401 }
29402
29403 _ACEOF
29404 if ac_fn_c_try_link "$LINENO"; then :
29405
29406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29407 $as_echo "yes" >&6; }
29408     tst_links_strcasecmp="yes"
29409
29410 else
29411
29412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29413 $as_echo "no" >&6; }
29414     tst_links_strcasecmp="no"
29415
29416 fi
29417 rm -f core conftest.err conftest.$ac_objext \
29418     conftest$ac_exeext conftest.$ac_ext
29419   #
29420   if test "$tst_links_strcasecmp" = "yes"; then
29421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
29422 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
29423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29424 /* end confdefs.h.  */
29425
29426       $cares_includes_string
29427
29428 _ACEOF
29429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29430   $EGREP "strcasecmp" >/dev/null 2>&1; then :
29431
29432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29433 $as_echo "yes" >&6; }
29434       tst_proto_strcasecmp="yes"
29435
29436 else
29437
29438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439 $as_echo "no" >&6; }
29440       tst_proto_strcasecmp="no"
29441
29442 fi
29443 rm -f conftest*
29444
29445   fi
29446   #
29447   if test "$tst_proto_strcasecmp" = "yes"; then
29448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
29449 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
29450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451 /* end confdefs.h.  */
29452
29453
29454         $cares_includes_string
29455
29456 int main (void)
29457 {
29458
29459         if(0 != strcasecmp(0, 0))
29460           return 1;
29461
29462  ;
29463  return 0;
29464 }
29465
29466 _ACEOF
29467 if ac_fn_c_try_compile "$LINENO"; then :
29468
29469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29470 $as_echo "yes" >&6; }
29471       tst_compi_strcasecmp="yes"
29472
29473 else
29474
29475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29476 $as_echo "no" >&6; }
29477       tst_compi_strcasecmp="no"
29478
29479 fi
29480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29481   fi
29482   #
29483   if test "$tst_compi_strcasecmp" = "yes"; then
29484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
29485 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
29486     if test "x$cares_disallow_strcasecmp" != "xyes"; then
29487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29488 $as_echo "yes" >&6; }
29489       tst_allow_strcasecmp="yes"
29490     else
29491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29492 $as_echo "no" >&6; }
29493       tst_allow_strcasecmp="no"
29494     fi
29495   fi
29496   #
29497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
29498 $as_echo_n "checking if strcasecmp might be used... " >&6; }
29499   if test "$tst_links_strcasecmp" = "yes" &&
29500      test "$tst_proto_strcasecmp" = "yes" &&
29501      test "$tst_compi_strcasecmp" = "yes" &&
29502      test "$tst_allow_strcasecmp" = "yes"; then
29503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504 $as_echo "yes" >&6; }
29505
29506 cat >>confdefs.h <<_ACEOF
29507 #define HAVE_STRCASECMP 1
29508 _ACEOF
29509
29510     ac_cv_func_strcasecmp="yes"
29511   else
29512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29513 $as_echo "no" >&6; }
29514     ac_cv_func_strcasecmp="no"
29515   fi
29516
29517
29518     #
29519   tst_links_strcmpi="unknown"
29520   tst_proto_strcmpi="unknown"
29521   tst_compi_strcmpi="unknown"
29522   tst_allow_strcmpi="unknown"
29523   #
29524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
29525 $as_echo_n "checking if strcmpi can be linked... " >&6; }
29526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29527 /* end confdefs.h.  */
29528
29529
29530 #define strcmpi innocuous_strcmpi
29531 #ifdef __STDC__
29532 # include <limits.h>
29533 #else
29534 # include <assert.h>
29535 #endif
29536 #undef strcmpi
29537 #ifdef __cplusplus
29538 extern "C"
29539 #endif
29540 char strcmpi ();
29541 #if defined __stub_strcmpi || defined __stub___strcmpi
29542 choke me
29543 #endif
29544
29545 int main (void)
29546 {
29547 return strcmpi ();
29548  ;
29549  return 0;
29550 }
29551
29552 _ACEOF
29553 if ac_fn_c_try_link "$LINENO"; then :
29554
29555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29556 $as_echo "yes" >&6; }
29557     tst_links_strcmpi="yes"
29558
29559 else
29560
29561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29562 $as_echo "no" >&6; }
29563     tst_links_strcmpi="no"
29564
29565 fi
29566 rm -f core conftest.err conftest.$ac_objext \
29567     conftest$ac_exeext conftest.$ac_ext
29568   #
29569   if test "$tst_links_strcmpi" = "yes"; then
29570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
29571 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
29572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29573 /* end confdefs.h.  */
29574
29575       $cares_includes_string
29576
29577 _ACEOF
29578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29579   $EGREP "strcmpi" >/dev/null 2>&1; then :
29580
29581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29582 $as_echo "yes" >&6; }
29583       tst_proto_strcmpi="yes"
29584
29585 else
29586
29587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29588 $as_echo "no" >&6; }
29589       tst_proto_strcmpi="no"
29590
29591 fi
29592 rm -f conftest*
29593
29594   fi
29595   #
29596   if test "$tst_proto_strcmpi" = "yes"; then
29597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
29598 $as_echo_n "checking if strcmpi is compilable... " >&6; }
29599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29600 /* end confdefs.h.  */
29601
29602
29603         $cares_includes_string
29604
29605 int main (void)
29606 {
29607
29608         if(0 != strcmpi(0, 0))
29609           return 1;
29610
29611  ;
29612  return 0;
29613 }
29614
29615 _ACEOF
29616 if ac_fn_c_try_compile "$LINENO"; then :
29617
29618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29619 $as_echo "yes" >&6; }
29620       tst_compi_strcmpi="yes"
29621
29622 else
29623
29624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29625 $as_echo "no" >&6; }
29626       tst_compi_strcmpi="no"
29627
29628 fi
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630   fi
29631   #
29632   if test "$tst_compi_strcmpi" = "yes"; then
29633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
29634 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
29635     if test "x$cares_disallow_strcmpi" != "xyes"; then
29636       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29637 $as_echo "yes" >&6; }
29638       tst_allow_strcmpi="yes"
29639     else
29640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29641 $as_echo "no" >&6; }
29642       tst_allow_strcmpi="no"
29643     fi
29644   fi
29645   #
29646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
29647 $as_echo_n "checking if strcmpi might be used... " >&6; }
29648   if test "$tst_links_strcmpi" = "yes" &&
29649      test "$tst_proto_strcmpi" = "yes" &&
29650      test "$tst_compi_strcmpi" = "yes" &&
29651      test "$tst_allow_strcmpi" = "yes"; then
29652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29653 $as_echo "yes" >&6; }
29654
29655 cat >>confdefs.h <<_ACEOF
29656 #define HAVE_STRCMPI 1
29657 _ACEOF
29658
29659     ac_cv_func_strcmpi="yes"
29660   else
29661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29662 $as_echo "no" >&6; }
29663     ac_cv_func_strcmpi="no"
29664   fi
29665
29666
29667     #
29668   tst_links_strdup="unknown"
29669   tst_proto_strdup="unknown"
29670   tst_compi_strdup="unknown"
29671   tst_allow_strdup="unknown"
29672   #
29673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
29674 $as_echo_n "checking if strdup can be linked... " >&6; }
29675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29676 /* end confdefs.h.  */
29677
29678
29679 #define strdup innocuous_strdup
29680 #ifdef __STDC__
29681 # include <limits.h>
29682 #else
29683 # include <assert.h>
29684 #endif
29685 #undef strdup
29686 #ifdef __cplusplus
29687 extern "C"
29688 #endif
29689 char strdup ();
29690 #if defined __stub_strdup || defined __stub___strdup
29691 choke me
29692 #endif
29693
29694 int main (void)
29695 {
29696 return strdup ();
29697  ;
29698  return 0;
29699 }
29700
29701 _ACEOF
29702 if ac_fn_c_try_link "$LINENO"; then :
29703
29704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705 $as_echo "yes" >&6; }
29706     tst_links_strdup="yes"
29707
29708 else
29709
29710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29711 $as_echo "no" >&6; }
29712     tst_links_strdup="no"
29713
29714 fi
29715 rm -f core conftest.err conftest.$ac_objext \
29716     conftest$ac_exeext conftest.$ac_ext
29717   #
29718   if test "$tst_links_strdup" = "yes"; then
29719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
29720 $as_echo_n "checking if strdup is prototyped... " >&6; }
29721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h.  */
29723
29724       $cares_includes_string
29725
29726 _ACEOF
29727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29728   $EGREP "strdup" >/dev/null 2>&1; then :
29729
29730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }
29732       tst_proto_strdup="yes"
29733
29734 else
29735
29736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29737 $as_echo "no" >&6; }
29738       tst_proto_strdup="no"
29739
29740 fi
29741 rm -f conftest*
29742
29743   fi
29744   #
29745   if test "$tst_proto_strdup" = "yes"; then
29746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
29747 $as_echo_n "checking if strdup is compilable... " >&6; }
29748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h.  */
29750
29751
29752         $cares_includes_string
29753
29754 int main (void)
29755 {
29756
29757         if(0 != strdup(0))
29758           return 1;
29759
29760  ;
29761  return 0;
29762 }
29763
29764 _ACEOF
29765 if ac_fn_c_try_compile "$LINENO"; then :
29766
29767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29768 $as_echo "yes" >&6; }
29769       tst_compi_strdup="yes"
29770
29771 else
29772
29773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29774 $as_echo "no" >&6; }
29775       tst_compi_strdup="no"
29776
29777 fi
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29779   fi
29780   #
29781   if test "$tst_compi_strdup" = "yes"; then
29782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
29783 $as_echo_n "checking if strdup usage allowed... " >&6; }
29784     if test "x$cares_disallow_strdup" != "xyes"; then
29785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29786 $as_echo "yes" >&6; }
29787       tst_allow_strdup="yes"
29788     else
29789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29790 $as_echo "no" >&6; }
29791       tst_allow_strdup="no"
29792     fi
29793   fi
29794   #
29795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
29796 $as_echo_n "checking if strdup might be used... " >&6; }
29797   if test "$tst_links_strdup" = "yes" &&
29798      test "$tst_proto_strdup" = "yes" &&
29799      test "$tst_compi_strdup" = "yes" &&
29800      test "$tst_allow_strdup" = "yes"; then
29801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29802 $as_echo "yes" >&6; }
29803
29804 cat >>confdefs.h <<_ACEOF
29805 #define HAVE_STRDUP 1
29806 _ACEOF
29807
29808     ac_cv_func_strdup="yes"
29809   else
29810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812     ac_cv_func_strdup="no"
29813   fi
29814
29815
29816     #
29817   tst_links_stricmp="unknown"
29818   tst_proto_stricmp="unknown"
29819   tst_compi_stricmp="unknown"
29820   tst_allow_stricmp="unknown"
29821   #
29822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
29823 $as_echo_n "checking if stricmp can be linked... " >&6; }
29824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29825 /* end confdefs.h.  */
29826
29827
29828 #define stricmp innocuous_stricmp
29829 #ifdef __STDC__
29830 # include <limits.h>
29831 #else
29832 # include <assert.h>
29833 #endif
29834 #undef stricmp
29835 #ifdef __cplusplus
29836 extern "C"
29837 #endif
29838 char stricmp ();
29839 #if defined __stub_stricmp || defined __stub___stricmp
29840 choke me
29841 #endif
29842
29843 int main (void)
29844 {
29845 return stricmp ();
29846  ;
29847  return 0;
29848 }
29849
29850 _ACEOF
29851 if ac_fn_c_try_link "$LINENO"; then :
29852
29853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854 $as_echo "yes" >&6; }
29855     tst_links_stricmp="yes"
29856
29857 else
29858
29859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29861     tst_links_stricmp="no"
29862
29863 fi
29864 rm -f core conftest.err conftest.$ac_objext \
29865     conftest$ac_exeext conftest.$ac_ext
29866   #
29867   if test "$tst_links_stricmp" = "yes"; then
29868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
29869 $as_echo_n "checking if stricmp is prototyped... " >&6; }
29870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29871 /* end confdefs.h.  */
29872
29873       $cares_includes_string
29874
29875 _ACEOF
29876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29877   $EGREP "stricmp" >/dev/null 2>&1; then :
29878
29879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29880 $as_echo "yes" >&6; }
29881       tst_proto_stricmp="yes"
29882
29883 else
29884
29885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29886 $as_echo "no" >&6; }
29887       tst_proto_stricmp="no"
29888
29889 fi
29890 rm -f conftest*
29891
29892   fi
29893   #
29894   if test "$tst_proto_stricmp" = "yes"; then
29895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
29896 $as_echo_n "checking if stricmp is compilable... " >&6; }
29897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898 /* end confdefs.h.  */
29899
29900
29901         $cares_includes_string
29902
29903 int main (void)
29904 {
29905
29906         if(0 != stricmp(0, 0))
29907           return 1;
29908
29909  ;
29910  return 0;
29911 }
29912
29913 _ACEOF
29914 if ac_fn_c_try_compile "$LINENO"; then :
29915
29916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29917 $as_echo "yes" >&6; }
29918       tst_compi_stricmp="yes"
29919
29920 else
29921
29922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923 $as_echo "no" >&6; }
29924       tst_compi_stricmp="no"
29925
29926 fi
29927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29928   fi
29929   #
29930   if test "$tst_compi_stricmp" = "yes"; then
29931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
29932 $as_echo_n "checking if stricmp usage allowed... " >&6; }
29933     if test "x$cares_disallow_stricmp" != "xyes"; then
29934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29935 $as_echo "yes" >&6; }
29936       tst_allow_stricmp="yes"
29937     else
29938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940       tst_allow_stricmp="no"
29941     fi
29942   fi
29943   #
29944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
29945 $as_echo_n "checking if stricmp might be used... " >&6; }
29946   if test "$tst_links_stricmp" = "yes" &&
29947      test "$tst_proto_stricmp" = "yes" &&
29948      test "$tst_compi_stricmp" = "yes" &&
29949      test "$tst_allow_stricmp" = "yes"; then
29950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29951 $as_echo "yes" >&6; }
29952
29953 cat >>confdefs.h <<_ACEOF
29954 #define HAVE_STRICMP 1
29955 _ACEOF
29956
29957     ac_cv_func_stricmp="yes"
29958   else
29959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29960 $as_echo "no" >&6; }
29961     ac_cv_func_stricmp="no"
29962   fi
29963
29964
29965     #
29966   tst_links_strncasecmp="unknown"
29967   tst_proto_strncasecmp="unknown"
29968   tst_compi_strncasecmp="unknown"
29969   tst_allow_strncasecmp="unknown"
29970   #
29971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
29972 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
29973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h.  */
29975
29976
29977 #define strncasecmp innocuous_strncasecmp
29978 #ifdef __STDC__
29979 # include <limits.h>
29980 #else
29981 # include <assert.h>
29982 #endif
29983 #undef strncasecmp
29984 #ifdef __cplusplus
29985 extern "C"
29986 #endif
29987 char strncasecmp ();
29988 #if defined __stub_strncasecmp || defined __stub___strncasecmp
29989 choke me
29990 #endif
29991
29992 int main (void)
29993 {
29994 return strncasecmp ();
29995  ;
29996  return 0;
29997 }
29998
29999 _ACEOF
30000 if ac_fn_c_try_link "$LINENO"; then :
30001
30002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30004     tst_links_strncasecmp="yes"
30005
30006 else
30007
30008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30009 $as_echo "no" >&6; }
30010     tst_links_strncasecmp="no"
30011
30012 fi
30013 rm -f core conftest.err conftest.$ac_objext \
30014     conftest$ac_exeext conftest.$ac_ext
30015   #
30016   if test "$tst_links_strncasecmp" = "yes"; then
30017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
30018 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
30019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30020 /* end confdefs.h.  */
30021
30022       $cares_includes_string
30023
30024 _ACEOF
30025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30026   $EGREP "strncasecmp" >/dev/null 2>&1; then :
30027
30028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30029 $as_echo "yes" >&6; }
30030       tst_proto_strncasecmp="yes"
30031
30032 else
30033
30034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30035 $as_echo "no" >&6; }
30036       tst_proto_strncasecmp="no"
30037
30038 fi
30039 rm -f conftest*
30040
30041   fi
30042   #
30043   if test "$tst_proto_strncasecmp" = "yes"; then
30044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
30045 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
30046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h.  */
30048
30049
30050         $cares_includes_string
30051
30052 int main (void)
30053 {
30054
30055         if(0 != strncasecmp(0, 0, 0))
30056           return 1;
30057
30058  ;
30059  return 0;
30060 }
30061
30062 _ACEOF
30063 if ac_fn_c_try_compile "$LINENO"; then :
30064
30065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066 $as_echo "yes" >&6; }
30067       tst_compi_strncasecmp="yes"
30068
30069 else
30070
30071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30072 $as_echo "no" >&6; }
30073       tst_compi_strncasecmp="no"
30074
30075 fi
30076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30077   fi
30078   #
30079   if test "$tst_compi_strncasecmp" = "yes"; then
30080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
30081 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
30082     if test "x$cares_disallow_strncasecmp" != "xyes"; then
30083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084 $as_echo "yes" >&6; }
30085       tst_allow_strncasecmp="yes"
30086     else
30087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30088 $as_echo "no" >&6; }
30089       tst_allow_strncasecmp="no"
30090     fi
30091   fi
30092   #
30093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
30094 $as_echo_n "checking if strncasecmp might be used... " >&6; }
30095   if test "$tst_links_strncasecmp" = "yes" &&
30096      test "$tst_proto_strncasecmp" = "yes" &&
30097      test "$tst_compi_strncasecmp" = "yes" &&
30098      test "$tst_allow_strncasecmp" = "yes"; then
30099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30100 $as_echo "yes" >&6; }
30101
30102 cat >>confdefs.h <<_ACEOF
30103 #define HAVE_STRNCASECMP 1
30104 _ACEOF
30105
30106     ac_cv_func_strncasecmp="yes"
30107   else
30108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30109 $as_echo "no" >&6; }
30110     ac_cv_func_strncasecmp="no"
30111   fi
30112
30113
30114     #
30115   tst_links_strncmpi="unknown"
30116   tst_proto_strncmpi="unknown"
30117   tst_compi_strncmpi="unknown"
30118   tst_allow_strncmpi="unknown"
30119   #
30120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
30121 $as_echo_n "checking if strncmpi can be linked... " >&6; }
30122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30123 /* end confdefs.h.  */
30124
30125
30126 #define strncmpi innocuous_strncmpi
30127 #ifdef __STDC__
30128 # include <limits.h>
30129 #else
30130 # include <assert.h>
30131 #endif
30132 #undef strncmpi
30133 #ifdef __cplusplus
30134 extern "C"
30135 #endif
30136 char strncmpi ();
30137 #if defined __stub_strncmpi || defined __stub___strncmpi
30138 choke me
30139 #endif
30140
30141 int main (void)
30142 {
30143 return strncmpi ();
30144  ;
30145  return 0;
30146 }
30147
30148 _ACEOF
30149 if ac_fn_c_try_link "$LINENO"; then :
30150
30151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30152 $as_echo "yes" >&6; }
30153     tst_links_strncmpi="yes"
30154
30155 else
30156
30157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30158 $as_echo "no" >&6; }
30159     tst_links_strncmpi="no"
30160
30161 fi
30162 rm -f core conftest.err conftest.$ac_objext \
30163     conftest$ac_exeext conftest.$ac_ext
30164   #
30165   if test "$tst_links_strncmpi" = "yes"; then
30166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
30167 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
30168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30169 /* end confdefs.h.  */
30170
30171       $cares_includes_string
30172
30173 _ACEOF
30174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30175   $EGREP "strncmpi" >/dev/null 2>&1; then :
30176
30177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30178 $as_echo "yes" >&6; }
30179       tst_proto_strncmpi="yes"
30180
30181 else
30182
30183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184 $as_echo "no" >&6; }
30185       tst_proto_strncmpi="no"
30186
30187 fi
30188 rm -f conftest*
30189
30190   fi
30191   #
30192   if test "$tst_proto_strncmpi" = "yes"; then
30193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
30194 $as_echo_n "checking if strncmpi is compilable... " >&6; }
30195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30196 /* end confdefs.h.  */
30197
30198
30199         $cares_includes_string
30200
30201 int main (void)
30202 {
30203
30204         if(0 != strncmpi(0, 0))
30205           return 1;
30206
30207  ;
30208  return 0;
30209 }
30210
30211 _ACEOF
30212 if ac_fn_c_try_compile "$LINENO"; then :
30213
30214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30215 $as_echo "yes" >&6; }
30216       tst_compi_strncmpi="yes"
30217
30218 else
30219
30220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30221 $as_echo "no" >&6; }
30222       tst_compi_strncmpi="no"
30223
30224 fi
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226   fi
30227   #
30228   if test "$tst_compi_strncmpi" = "yes"; then
30229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
30230 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
30231     if test "x$cares_disallow_strncmpi" != "xyes"; then
30232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30233 $as_echo "yes" >&6; }
30234       tst_allow_strncmpi="yes"
30235     else
30236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237 $as_echo "no" >&6; }
30238       tst_allow_strncmpi="no"
30239     fi
30240   fi
30241   #
30242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
30243 $as_echo_n "checking if strncmpi might be used... " >&6; }
30244   if test "$tst_links_strncmpi" = "yes" &&
30245      test "$tst_proto_strncmpi" = "yes" &&
30246      test "$tst_compi_strncmpi" = "yes" &&
30247      test "$tst_allow_strncmpi" = "yes"; then
30248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30249 $as_echo "yes" >&6; }
30250
30251 cat >>confdefs.h <<_ACEOF
30252 #define HAVE_STRNCMPI 1
30253 _ACEOF
30254
30255     ac_cv_func_strncmpi="yes"
30256   else
30257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30258 $as_echo "no" >&6; }
30259     ac_cv_func_strncmpi="no"
30260   fi
30261
30262
30263     #
30264   tst_links_strnicmp="unknown"
30265   tst_proto_strnicmp="unknown"
30266   tst_compi_strnicmp="unknown"
30267   tst_allow_strnicmp="unknown"
30268   #
30269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
30270 $as_echo_n "checking if strnicmp can be linked... " >&6; }
30271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30272 /* end confdefs.h.  */
30273
30274
30275 #define strnicmp innocuous_strnicmp
30276 #ifdef __STDC__
30277 # include <limits.h>
30278 #else
30279 # include <assert.h>
30280 #endif
30281 #undef strnicmp
30282 #ifdef __cplusplus
30283 extern "C"
30284 #endif
30285 char strnicmp ();
30286 #if defined __stub_strnicmp || defined __stub___strnicmp
30287 choke me
30288 #endif
30289
30290 int main (void)
30291 {
30292 return strnicmp ();
30293  ;
30294  return 0;
30295 }
30296
30297 _ACEOF
30298 if ac_fn_c_try_link "$LINENO"; then :
30299
30300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30302     tst_links_strnicmp="yes"
30303
30304 else
30305
30306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30308     tst_links_strnicmp="no"
30309
30310 fi
30311 rm -f core conftest.err conftest.$ac_objext \
30312     conftest$ac_exeext conftest.$ac_ext
30313   #
30314   if test "$tst_links_strnicmp" = "yes"; then
30315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
30316 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
30317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30318 /* end confdefs.h.  */
30319
30320       $cares_includes_string
30321
30322 _ACEOF
30323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30324   $EGREP "strnicmp" >/dev/null 2>&1; then :
30325
30326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30327 $as_echo "yes" >&6; }
30328       tst_proto_strnicmp="yes"
30329
30330 else
30331
30332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30333 $as_echo "no" >&6; }
30334       tst_proto_strnicmp="no"
30335
30336 fi
30337 rm -f conftest*
30338
30339   fi
30340   #
30341   if test "$tst_proto_strnicmp" = "yes"; then
30342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
30343 $as_echo_n "checking if strnicmp is compilable... " >&6; }
30344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30345 /* end confdefs.h.  */
30346
30347
30348         $cares_includes_string
30349
30350 int main (void)
30351 {
30352
30353         if(0 != strnicmp(0, 0))
30354           return 1;
30355
30356  ;
30357  return 0;
30358 }
30359
30360 _ACEOF
30361 if ac_fn_c_try_compile "$LINENO"; then :
30362
30363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30364 $as_echo "yes" >&6; }
30365       tst_compi_strnicmp="yes"
30366
30367 else
30368
30369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30370 $as_echo "no" >&6; }
30371       tst_compi_strnicmp="no"
30372
30373 fi
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30375   fi
30376   #
30377   if test "$tst_compi_strnicmp" = "yes"; then
30378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
30379 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
30380     if test "x$cares_disallow_strnicmp" != "xyes"; then
30381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30382 $as_echo "yes" >&6; }
30383       tst_allow_strnicmp="yes"
30384     else
30385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30387       tst_allow_strnicmp="no"
30388     fi
30389   fi
30390   #
30391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
30392 $as_echo_n "checking if strnicmp might be used... " >&6; }
30393   if test "$tst_links_strnicmp" = "yes" &&
30394      test "$tst_proto_strnicmp" = "yes" &&
30395      test "$tst_compi_strnicmp" = "yes" &&
30396      test "$tst_allow_strnicmp" = "yes"; then
30397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30398 $as_echo "yes" >&6; }
30399
30400 cat >>confdefs.h <<_ACEOF
30401 #define HAVE_STRNICMP 1
30402 _ACEOF
30403
30404     ac_cv_func_strnicmp="yes"
30405   else
30406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407 $as_echo "no" >&6; }
30408     ac_cv_func_strnicmp="no"
30409   fi
30410
30411
30412 cares_includes_sys_uio="\
30413 /* includes start */
30414 #ifdef HAVE_SYS_TYPES_H
30415 #  include <sys/types.h>
30416 #endif
30417 #ifdef HAVE_SYS_UIO_H
30418 #  include <sys/uio.h>
30419 #endif
30420 /* includes end */"
30421   for ac_header in sys/types.h sys/uio.h
30422 do :
30423   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
30425 "
30426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30427   cat >>confdefs.h <<_ACEOF
30428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30429 _ACEOF
30430
30431 fi
30432
30433 done
30434
30435
30436
30437     #
30438   tst_links_writev="unknown"
30439   tst_proto_writev="unknown"
30440   tst_compi_writev="unknown"
30441   tst_allow_writev="unknown"
30442   #
30443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
30444 $as_echo_n "checking if writev can be linked... " >&6; }
30445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30446 /* end confdefs.h.  */
30447
30448
30449 #define writev innocuous_writev
30450 #ifdef __STDC__
30451 # include <limits.h>
30452 #else
30453 # include <assert.h>
30454 #endif
30455 #undef writev
30456 #ifdef __cplusplus
30457 extern "C"
30458 #endif
30459 char writev ();
30460 #if defined __stub_writev || defined __stub___writev
30461 choke me
30462 #endif
30463
30464 int main (void)
30465 {
30466 return writev ();
30467  ;
30468  return 0;
30469 }
30470
30471 _ACEOF
30472 if ac_fn_c_try_link "$LINENO"; then :
30473
30474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30475 $as_echo "yes" >&6; }
30476     tst_links_writev="yes"
30477
30478 else
30479
30480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482     tst_links_writev="no"
30483
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext \
30486     conftest$ac_exeext conftest.$ac_ext
30487   #
30488   if test "$tst_links_writev" = "yes"; then
30489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
30490 $as_echo_n "checking if writev is prototyped... " >&6; }
30491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30492 /* end confdefs.h.  */
30493
30494       $cares_includes_sys_uio
30495
30496 _ACEOF
30497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30498   $EGREP "writev" >/dev/null 2>&1; then :
30499
30500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30501 $as_echo "yes" >&6; }
30502       tst_proto_writev="yes"
30503
30504 else
30505
30506       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507 $as_echo "no" >&6; }
30508       tst_proto_writev="no"
30509
30510 fi
30511 rm -f conftest*
30512
30513   fi
30514   #
30515   if test "$tst_proto_writev" = "yes"; then
30516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
30517 $as_echo_n "checking if writev is compilable... " >&6; }
30518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30519 /* end confdefs.h.  */
30520
30521
30522         $cares_includes_sys_uio
30523
30524 int main (void)
30525 {
30526
30527         if(0 != writev(0, 0, 0))
30528           return 1;
30529
30530  ;
30531  return 0;
30532 }
30533
30534 _ACEOF
30535 if ac_fn_c_try_compile "$LINENO"; then :
30536
30537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30538 $as_echo "yes" >&6; }
30539       tst_compi_writev="yes"
30540
30541 else
30542
30543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30544 $as_echo "no" >&6; }
30545       tst_compi_writev="no"
30546
30547 fi
30548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549   fi
30550   #
30551   if test "$tst_compi_writev" = "yes"; then
30552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
30553 $as_echo_n "checking if writev usage allowed... " >&6; }
30554     if test "x$cares_disallow_writev" != "xyes"; then
30555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556 $as_echo "yes" >&6; }
30557       tst_allow_writev="yes"
30558     else
30559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30560 $as_echo "no" >&6; }
30561       tst_allow_writev="no"
30562     fi
30563   fi
30564   #
30565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
30566 $as_echo_n "checking if writev might be used... " >&6; }
30567   if test "$tst_links_writev" = "yes" &&
30568      test "$tst_proto_writev" = "yes" &&
30569      test "$tst_compi_writev" = "yes" &&
30570      test "$tst_allow_writev" = "yes"; then
30571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30572 $as_echo "yes" >&6; }
30573
30574 cat >>confdefs.h <<_ACEOF
30575 #define HAVE_WRITEV 1
30576 _ACEOF
30577
30578     ac_cv_func_writev="yes"
30579   else
30580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 $as_echo "no" >&6; }
30582     ac_cv_func_writev="no"
30583   fi
30584
30585
30586
30587
30588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
30589 $as_echo_n "checking for PF_INET6... " >&6; }
30590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h.  */
30592
30593
30594 #undef inline
30595 #ifdef HAVE_WINDOWS_H
30596 #ifndef WIN32_LEAN_AND_MEAN
30597 #define WIN32_LEAN_AND_MEAN
30598 #endif
30599 #include <windows.h>
30600 #ifdef HAVE_WINSOCK2_H
30601 #include <winsock2.h>
30602 #endif
30603 #else
30604 #ifdef HAVE_SYS_TYPES_H
30605 #include <sys/types.h>
30606 #endif
30607 #ifdef HAVE_SYS_SOCKET_H
30608 #include <sys/socket.h>
30609 #endif
30610 #endif
30611
30612
30613       #ifdef PF_INET6
30614         VARIABLEWASDEFINED
30615       #else
30616         NJET
30617       #endif
30618
30619 _ACEOF
30620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30621   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30622   ac_constant="yes"
30623 else
30624   ac_constant="no"
30625
30626 fi
30627 rm -f conftest*
30628
30629   if test "$ac_constant" = "yes" ; then
30630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30631 $as_echo "yes" >&6; }
30632
30633 cat >>confdefs.h <<_ACEOF
30634 #define HAVE_PF_INET6 1
30635 _ACEOF
30636
30637
30638   else
30639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30640 $as_echo "no" >&6; }
30641
30642   fi
30643
30644
30645
30646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
30647 $as_echo_n "checking for AF_INET6... " >&6; }
30648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30649 /* end confdefs.h.  */
30650
30651
30652 #undef inline
30653 #ifdef HAVE_WINDOWS_H
30654 #ifndef WIN32_LEAN_AND_MEAN
30655 #define WIN32_LEAN_AND_MEAN
30656 #endif
30657 #include <windows.h>
30658 #ifdef HAVE_WINSOCK2_H
30659 #include <winsock2.h>
30660 #endif
30661 #else
30662 #ifdef HAVE_SYS_TYPES_H
30663 #include <sys/types.h>
30664 #endif
30665 #ifdef HAVE_SYS_SOCKET_H
30666 #include <sys/socket.h>
30667 #endif
30668 #endif
30669
30670
30671       #ifdef AF_INET6
30672         VARIABLEWASDEFINED
30673       #else
30674         NJET
30675       #endif
30676
30677 _ACEOF
30678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30679   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30680   ac_constant="yes"
30681 else
30682   ac_constant="no"
30683
30684 fi
30685 rm -f conftest*
30686
30687   if test "$ac_constant" = "yes" ; then
30688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689 $as_echo "yes" >&6; }
30690
30691 cat >>confdefs.h <<_ACEOF
30692 #define HAVE_AF_INET6 1
30693 _ACEOF
30694
30695
30696   else
30697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30698 $as_echo "no" >&6; }
30699
30700   fi
30701
30702
30703
30704
30705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
30706 $as_echo_n "checking for struct in6_addr... " >&6; }
30707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h.  */
30709
30710 #undef inline
30711 #ifdef HAVE_WINDOWS_H
30712 #ifndef WIN32_LEAN_AND_MEAN
30713 #define WIN32_LEAN_AND_MEAN
30714 #endif
30715 #include <windows.h>
30716 #ifdef HAVE_WINSOCK2_H
30717 #include <winsock2.h>
30718 #ifdef HAVE_WS2TCPIP_H
30719 #include <ws2tcpip.h>
30720 #endif
30721 #endif
30722 #else
30723 #ifdef HAVE_SYS_TYPES_H
30724 #include <sys/types.h>
30725 #endif
30726 #ifdef HAVE_NETINET_IN_H
30727 #include <netinet/in.h>
30728 #endif
30729 #endif
30730
30731 int main (void)
30732 {
30733
30734       struct in6_addr struct_instance;
30735
30736  ;
30737  return 0;
30738 }
30739 _ACEOF
30740 if ac_fn_c_try_compile "$LINENO"; then :
30741   ac_struct="yes"
30742 else
30743   ac_found="no"
30744 fi
30745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30746   if test "$ac_struct" = "yes" ; then
30747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30748 $as_echo "yes" >&6; }
30749
30750 cat >>confdefs.h <<_ACEOF
30751 #define HAVE_STRUCT_IN6_ADDR 1
30752 _ACEOF
30753
30754
30755   else
30756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30757 $as_echo "no" >&6; }
30758
30759   fi
30760
30761
30762
30763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
30764 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
30765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30766 /* end confdefs.h.  */
30767
30768 #undef inline
30769 #ifdef HAVE_WINDOWS_H
30770 #ifndef WIN32_LEAN_AND_MEAN
30771 #define WIN32_LEAN_AND_MEAN
30772 #endif
30773 #include <windows.h>
30774 #ifdef HAVE_WINSOCK2_H
30775 #include <winsock2.h>
30776 #ifdef HAVE_WS2TCPIP_H
30777 #include <ws2tcpip.h>
30778 #endif
30779 #endif
30780 #else
30781 #ifdef HAVE_SYS_TYPES_H
30782 #include <sys/types.h>
30783 #endif
30784 #ifdef HAVE_NETINET_IN_H
30785 #include <netinet/in.h>
30786 #endif
30787 #endif
30788
30789 int main (void)
30790 {
30791
30792       struct sockaddr_in6 struct_instance;
30793
30794  ;
30795  return 0;
30796 }
30797 _ACEOF
30798 if ac_fn_c_try_compile "$LINENO"; then :
30799   ac_struct="yes"
30800 else
30801   ac_found="no"
30802 fi
30803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30804   if test "$ac_struct" = "yes" ; then
30805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30806 $as_echo "yes" >&6; }
30807
30808 cat >>confdefs.h <<_ACEOF
30809 #define HAVE_STRUCT_SOCKADDR_IN6 1
30810 _ACEOF
30811  ac_have_sockaddr_in6=yes
30812
30813   else
30814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30815 $as_echo "no" >&6; }
30816
30817   fi
30818
30819
30820 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
30821 #undef inline
30822 #ifdef HAVE_WINDOWS_H
30823 #ifndef WIN32_LEAN_AND_MEAN
30824 #define WIN32_LEAN_AND_MEAN
30825 #endif
30826 #include <windows.h>
30827 #ifdef HAVE_WINSOCK2_H
30828 #include <winsock2.h>
30829 #ifdef HAVE_WS2TCPIP_H
30830 #include <ws2tcpip.h>
30831 #endif
30832 #endif
30833 #else
30834 #ifdef HAVE_SYS_TYPES_H
30835 #include <sys/types.h>
30836 #endif
30837 #ifdef HAVE_NETINET_IN_H
30838 #include <netinet/in.h>
30839 #endif
30840 #endif
30841
30842 "
30843 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
30844
30845 cat >>confdefs.h <<_ACEOF
30846 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
30847 _ACEOF
30848
30849
30850 fi
30851
30852
30853 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
30854 #undef inline
30855 #ifdef HAVE_WINDOWS_H
30856 #ifndef WIN32_LEAN_AND_MEAN
30857 #define WIN32_LEAN_AND_MEAN
30858 #endif
30859 #include <windows.h>
30860 #ifdef HAVE_WINSOCK2_H
30861 #include <winsock2.h>
30862 #ifdef HAVE_WS2TCPIP_H
30863 #include <ws2tcpip.h>
30864 #endif
30865 #endif
30866 #else
30867 #ifdef HAVE_SYS_TYPES_H
30868 #include <sys/types.h>
30869 #endif
30870 #ifdef HAVE_NETINET_IN_H
30871 #include <netinet/in.h>
30872 #endif
30873 #ifdef HAVE_SYS_SOCKET_H
30874 #include <sys/socket.h>
30875 #endif
30876 #ifdef HAVE_NETDB_H
30877 #include <netdb.h>
30878 #endif
30879 #endif
30880
30881
30882 "
30883 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
30884
30885 cat >>confdefs.h <<_ACEOF
30886 #define HAVE_STRUCT_ADDRINFO 1
30887 _ACEOF
30888
30889 fi
30890
30891
30892
30893 for ac_func in bitncmp \
30894   gettimeofday \
30895   if_indextoname
30896
30897 do :
30898   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30901   cat >>confdefs.h <<_ACEOF
30902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30903 _ACEOF
30904
30905
30906 else
30907
30908   func="$ac_func"
30909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
30910 $as_echo_n "checking deeper for $func... " >&6; }
30911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912 /* end confdefs.h.  */
30913
30914
30915
30916 int main (void)
30917 {
30918
30919       $func ();
30920
30921  ;
30922  return 0;
30923 }
30924
30925 _ACEOF
30926 if ac_fn_c_try_link "$LINENO"; then :
30927
30928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30929 $as_echo "yes" >&6; }
30930     eval "ac_cv_func_$func=yes"
30931
30932 cat >>confdefs.h <<_ACEOF
30933 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
30934 _ACEOF
30935
30936
30937 else
30938
30939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
30940 $as_echo "but still no" >&6; }
30941
30942 fi
30943 rm -f core conftest.err conftest.$ac_objext \
30944     conftest$ac_exeext conftest.$ac_ext
30945
30946 fi
30947 done
30948
30949
30950 ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
30951 if test "x$ac_cv_func___system_property_get" = xyes; then :
30952
30953
30954 $as_echo "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
30955
30956
30957 fi
30958
30959
30960
30961     for ac_header in sys/types.h sys/socket.h netdb.h
30962 do :
30963   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30966   cat >>confdefs.h <<_ACEOF
30967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30968 _ACEOF
30969
30970 fi
30971
30972 done
30973
30974   #
30975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
30976 $as_echo_n "checking for getnameinfo... " >&6; }
30977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30978 /* end confdefs.h.  */
30979
30980
30981 #define getnameinfo innocuous_getnameinfo
30982 #ifdef __STDC__
30983 # include <limits.h>
30984 #else
30985 # include <assert.h>
30986 #endif
30987 #undef getnameinfo
30988 #ifdef __cplusplus
30989 extern "C"
30990 #endif
30991 char getnameinfo ();
30992 #if defined __stub_getnameinfo || defined __stub___getnameinfo
30993 choke me
30994 #endif
30995
30996 int main (void)
30997 {
30998 return getnameinfo ();
30999  ;
31000  return 0;
31001 }
31002
31003 _ACEOF
31004 if ac_fn_c_try_link "$LINENO"; then :
31005
31006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31007 $as_echo "yes" >&6; }
31008     curl_cv_getnameinfo="yes"
31009
31010 else
31011
31012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31013 $as_echo "no" >&6; }
31014     curl_cv_getnameinfo="no"
31015
31016 fi
31017 rm -f core conftest.err conftest.$ac_objext \
31018     conftest$ac_exeext conftest.$ac_ext
31019   #
31020   if test "$curl_cv_getnameinfo" != "yes"; then
31021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
31022 $as_echo_n "checking deeper for getnameinfo... " >&6; }
31023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024 /* end confdefs.h.  */
31025
31026
31027
31028 int main (void)
31029 {
31030
31031         getnameinfo();
31032
31033  ;
31034  return 0;
31035 }
31036
31037 _ACEOF
31038 if ac_fn_c_try_link "$LINENO"; then :
31039
31040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31041 $as_echo "yes" >&6; }
31042       curl_cv_getnameinfo="yes"
31043
31044 else
31045
31046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31047 $as_echo "but still no" >&6; }
31048       curl_cv_getnameinfo="no"
31049
31050 fi
31051 rm -f core conftest.err conftest.$ac_objext \
31052     conftest$ac_exeext conftest.$ac_ext
31053   fi
31054   #
31055   if test "$curl_cv_getnameinfo" != "yes"; then
31056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
31057 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
31058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31059 /* end confdefs.h.  */
31060
31061
31062 #undef inline
31063 #ifdef HAVE_WINDOWS_H
31064 #ifndef WIN32_LEAN_AND_MEAN
31065 #define WIN32_LEAN_AND_MEAN
31066 #endif
31067 #include <windows.h>
31068 #ifdef HAVE_WINSOCK2_H
31069 #include <winsock2.h>
31070 #ifdef HAVE_WS2TCPIP_H
31071 #include <ws2tcpip.h>
31072 #endif
31073 #endif
31074 #else
31075 #ifdef HAVE_SYS_TYPES_H
31076 #include <sys/types.h>
31077 #endif
31078 #ifdef HAVE_SYS_SOCKET_H
31079 #include <sys/socket.h>
31080 #endif
31081 #ifdef HAVE_NETDB_H
31082 #include <netdb.h>
31083 #endif
31084 #endif
31085
31086 int main (void)
31087 {
31088
31089         getnameinfo(0, 0, 0, 0, 0, 0, 0);
31090
31091  ;
31092  return 0;
31093 }
31094
31095 _ACEOF
31096 if ac_fn_c_try_link "$LINENO"; then :
31097
31098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31099 $as_echo "yes" >&6; }
31100       curl_cv_getnameinfo="yes"
31101
31102 else
31103
31104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31105 $as_echo "but still no" >&6; }
31106       curl_cv_getnameinfo="no"
31107
31108 fi
31109 rm -f core conftest.err conftest.$ac_objext \
31110     conftest$ac_exeext conftest.$ac_ext
31111   fi
31112   #
31113   if test "$curl_cv_getnameinfo" = "yes"; then
31114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
31115 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
31116 if ${curl_cv_func_getnameinfo_args+:} false; then :
31117   $as_echo_n "(cached) " >&6
31118 else
31119
31120       curl_cv_func_getnameinfo_args="unknown"
31121       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
31122         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
31123           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
31124             for gni_arg7 in 'int' 'unsigned int'; do
31125               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31126                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31127 /* end confdefs.h.  */
31128
31129
31130 #undef inline
31131 #ifdef HAVE_WINDOWS_H
31132 #ifndef WIN32_LEAN_AND_MEAN
31133 #define WIN32_LEAN_AND_MEAN
31134 #endif
31135 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
31136 #undef _WIN32_WINNT
31137 #define _WIN32_WINNT 0x0501
31138 #endif
31139 #include <windows.h>
31140 #ifdef HAVE_WINSOCK2_H
31141 #include <winsock2.h>
31142 #ifdef HAVE_WS2TCPIP_H
31143 #include <ws2tcpip.h>
31144 #endif
31145 #endif
31146 #define GNICALLCONV WSAAPI
31147 #else
31148 #ifdef HAVE_SYS_TYPES_H
31149 #include <sys/types.h>
31150 #endif
31151 #ifdef HAVE_SYS_SOCKET_H
31152 #include <sys/socket.h>
31153 #endif
31154 #ifdef HAVE_NETDB_H
31155 #include <netdb.h>
31156 #endif
31157 #define GNICALLCONV
31158 #endif
31159                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
31160                                            char *, $gni_arg46,
31161                                            char *, $gni_arg46,
31162                                            $gni_arg7);
31163
31164 int main (void)
31165 {
31166
31167                     $gni_arg2 salen=0;
31168                     $gni_arg46 hostlen=0;
31169                     $gni_arg46 servlen=0;
31170                     $gni_arg7 flags=0;
31171                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
31172
31173  ;
31174  return 0;
31175 }
31176
31177 _ACEOF
31178 if ac_fn_c_try_compile "$LINENO"; then :
31179
31180                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
31181
31182 fi
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184               fi
31185             done
31186           done
31187         done
31188       done
31189
31190 fi
31191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
31192 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
31193     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31194       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
31195 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
31196       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
31197 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
31198     else
31199       gni_prev_IFS=$IFS; IFS=','
31200       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
31201       IFS=$gni_prev_IFS
31202       shift
31203       #
31204       gni_qual_type_arg1=$1
31205       #
31206
31207 cat >>confdefs.h <<_ACEOF
31208 #define GETNAMEINFO_TYPE_ARG2 $2
31209 _ACEOF
31210
31211
31212 cat >>confdefs.h <<_ACEOF
31213 #define GETNAMEINFO_TYPE_ARG46 $3
31214 _ACEOF
31215
31216
31217 cat >>confdefs.h <<_ACEOF
31218 #define GETNAMEINFO_TYPE_ARG7 $4
31219 _ACEOF
31220
31221       #
31222       prev_sh_opts=$-
31223       #
31224       case $prev_sh_opts in
31225         *f*)
31226           ;;
31227         *)
31228           set -f
31229           ;;
31230       esac
31231       #
31232       case "$gni_qual_type_arg1" in
31233         const*)
31234           gni_qual_arg1=const
31235           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
31236         ;;
31237         *)
31238           gni_qual_arg1=
31239           gni_type_arg1=$gni_qual_type_arg1
31240         ;;
31241       esac
31242       #
31243
31244 cat >>confdefs.h <<_ACEOF
31245 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
31246 _ACEOF
31247
31248
31249 cat >>confdefs.h <<_ACEOF
31250 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
31251 _ACEOF
31252
31253       #
31254       case $prev_sh_opts in
31255         *f*)
31256           ;;
31257         *)
31258           set +f
31259           ;;
31260       esac
31261       #
31262
31263 cat >>confdefs.h <<_ACEOF
31264 #define HAVE_GETNAMEINFO 1
31265 _ACEOF
31266
31267       ac_cv_func_getnameinfo="yes"
31268     fi
31269   fi
31270
31271
31272
31273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
31274 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
31275 if ${ac_cv_c_bigendian+:} false; then :
31276   $as_echo_n "(cached) " >&6
31277 else
31278   ac_cv_c_bigendian=unknown
31279     # See if we're dealing with a universal compiler.
31280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281 /* end confdefs.h.  */
31282 #ifndef __APPLE_CC__
31283                not a universal capable compiler
31284              #endif
31285              typedef int dummy;
31286
31287 _ACEOF
31288 if ac_fn_c_try_compile "$LINENO"; then :
31289
31290         # Check for potential -arch flags.  It is not universal unless
31291         # there are at least two -arch flags with different values.
31292         ac_arch=
31293         ac_prev=
31294         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
31295          if test -n "$ac_prev"; then
31296            case $ac_word in
31297              i?86 | x86_64 | ppc | ppc64)
31298                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
31299                  ac_arch=$ac_word
31300                else
31301                  ac_cv_c_bigendian=universal
31302                  break
31303                fi
31304                ;;
31305            esac
31306            ac_prev=
31307          elif test "x$ac_word" = "x-arch"; then
31308            ac_prev=arch
31309          fi
31310        done
31311 fi
31312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31313     if test $ac_cv_c_bigendian = unknown; then
31314       # See if sys/param.h defines the BYTE_ORDER macro.
31315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31316 /* end confdefs.h.  */
31317 #include <sys/types.h>
31318              #include <sys/param.h>
31319
31320 int main (void)
31321 {
31322 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
31323                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
31324                      && LITTLE_ENDIAN)
31325               bogus endian macros
31326              #endif
31327
31328  ;
31329  return 0;
31330 }
31331 _ACEOF
31332 if ac_fn_c_try_compile "$LINENO"; then :
31333   # It does; now see whether it defined to BIG_ENDIAN or not.
31334          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335 /* end confdefs.h.  */
31336 #include <sys/types.h>
31337                 #include <sys/param.h>
31338
31339 int main (void)
31340 {
31341 #if BYTE_ORDER != BIG_ENDIAN
31342                  not big endian
31343                 #endif
31344
31345  ;
31346  return 0;
31347 }
31348 _ACEOF
31349 if ac_fn_c_try_compile "$LINENO"; then :
31350   ac_cv_c_bigendian=yes
31351 else
31352   ac_cv_c_bigendian=no
31353 fi
31354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31355 fi
31356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31357     fi
31358     if test $ac_cv_c_bigendian = unknown; then
31359       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
31360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31361 /* end confdefs.h.  */
31362 #include <limits.h>
31363
31364 int main (void)
31365 {
31366 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
31367               bogus endian macros
31368              #endif
31369
31370  ;
31371  return 0;
31372 }
31373 _ACEOF
31374 if ac_fn_c_try_compile "$LINENO"; then :
31375   # It does; now see whether it defined to _BIG_ENDIAN or not.
31376          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31377 /* end confdefs.h.  */
31378 #include <limits.h>
31379
31380 int main (void)
31381 {
31382 #ifndef _BIG_ENDIAN
31383                  not big endian
31384                 #endif
31385
31386  ;
31387  return 0;
31388 }
31389 _ACEOF
31390 if ac_fn_c_try_compile "$LINENO"; then :
31391   ac_cv_c_bigendian=yes
31392 else
31393   ac_cv_c_bigendian=no
31394 fi
31395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396 fi
31397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31398     fi
31399     if test $ac_cv_c_bigendian = unknown; then
31400       # Compile a test program.
31401       if test "$cross_compiling" = yes; then :
31402   # Try to guess by grepping values from an object file.
31403          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31404 /* end confdefs.h.  */
31405 short int ascii_mm[] =
31406                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31407                 short int ascii_ii[] =
31408                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31409                 int use_ascii (int i) {
31410                   return ascii_mm[i] + ascii_ii[i];
31411                 }
31412                 short int ebcdic_ii[] =
31413                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31414                 short int ebcdic_mm[] =
31415                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31416                 int use_ebcdic (int i) {
31417                   return ebcdic_mm[i] + ebcdic_ii[i];
31418                 }
31419                 extern int foo;
31420
31421 int main (void)
31422 {
31423 return use_ascii (foo) == use_ebcdic (foo);
31424  ;
31425  return 0;
31426 }
31427 _ACEOF
31428 if ac_fn_c_try_compile "$LINENO"; then :
31429   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
31430               ac_cv_c_bigendian=yes
31431             fi
31432             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31433               if test "$ac_cv_c_bigendian" = unknown; then
31434                 ac_cv_c_bigendian=no
31435               else
31436                 # finding both strings is unlikely to happen, but who knows?
31437                 ac_cv_c_bigendian=unknown
31438               fi
31439             fi
31440 fi
31441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31442 else
31443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31444 /* end confdefs.h.  */
31445 $ac_includes_default
31446 int main (void)
31447 {
31448
31449              /* Are we little or big endian?  From Harbison&Steele.  */
31450              union
31451              {
31452                long int l;
31453                char c[sizeof (long int)];
31454              } u;
31455              u.l = 1;
31456              return u.c[sizeof (long int) - 1] == 1;
31457
31458  ;
31459  return 0;
31460 }
31461 _ACEOF
31462 if ac_fn_c_try_run "$LINENO"; then :
31463   ac_cv_c_bigendian=no
31464 else
31465   ac_cv_c_bigendian=yes
31466 fi
31467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31468   conftest.$ac_objext conftest.beam conftest.$ac_ext
31469 fi
31470
31471     fi
31472 fi
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
31474 $as_echo "$ac_cv_c_bigendian" >&6; }
31475  case $ac_cv_c_bigendian in #(
31476    yes)
31477
31478 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
31479 ;; #(
31480    no)
31481       ;; #(
31482    universal)
31483
31484 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
31485
31486      ;; #(
31487    *)
31488      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
31489 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
31490  ;;
31491  esac
31492
31493
31494
31495 # Check whether --with-random was given.
31496 if test "${with_random+set}" = set; then :
31497   withval=$with_random;  RANDOM_FILE="$withval"
31498 else
31499
31500                                 if test "$cross_compiling" = "no"; then
31501           as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
31503 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
31504 if eval \${$as_ac_File+:} false; then :
31505   $as_echo_n "(cached) " >&6
31506 else
31507   test "$cross_compiling" = yes &&
31508   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
31509 if test -r ""/dev/urandom""; then
31510   eval "$as_ac_File=yes"
31511 else
31512   eval "$as_ac_File=no"
31513 fi
31514 fi
31515 eval ac_res=\$$as_ac_File
31516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31517 $as_echo "$ac_res" >&6; }
31518 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
31519    RANDOM_FILE="/dev/urandom"
31520 fi
31521
31522         else
31523           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
31524 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
31525         fi
31526
31527
31528
31529 fi
31530
31531 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31532
31533
31534 cat >>confdefs.h <<_ACEOF
31535 #define RANDOM_FILE "$RANDOM_FILE"
31536 _ACEOF
31537
31538 fi
31539
31540
31541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
31542 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
31543   OPT_NONBLOCKING="default"
31544   # Check whether --enable-nonblocking was given.
31545 if test "${enable_nonblocking+set}" = set; then :
31546   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
31547 fi
31548
31549   case "$OPT_NONBLOCKING" in
31550     no)
31551             want_nonblocking="no"
31552       ;;
31553     default)
31554             want_nonblocking="yes"
31555       ;;
31556     *)
31557             want_nonblocking="yes"
31558       ;;
31559   esac
31560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
31561 $as_echo "$want_nonblocking" >&6; }
31562
31563
31564               #
31565   tst_method="unknown"
31566   if test "$want_nonblocking" = "yes"; then
31567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
31568 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
31569     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
31570       tst_method="fcntl O_NONBLOCK"
31571     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
31572       tst_method="ioctl FIONBIO"
31573     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
31574       tst_method="ioctlsocket FIONBIO"
31575     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
31576       tst_method="IoctlSocket FIONBIO"
31577     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
31578       tst_method="setsockopt SO_NONBLOCK"
31579     fi
31580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
31581 $as_echo "$tst_method" >&6; }
31582     if test "$tst_method" = "unknown"; then
31583       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
31584 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
31585     fi
31586   fi
31587   if test "$tst_method" = "unknown"; then
31588
31589 cat >>confdefs.h <<_ACEOF
31590 #define USE_BLOCKING_SOCKETS 1
31591 _ACEOF
31592
31593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
31594 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
31595   fi
31596
31597
31598
31599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
31600 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
31601   CFLAG_CARES_SYMBOL_HIDING=""
31602   doing_symbol_hiding="no"
31603   if test x"$ac_cv_native_windows" != "xyes" &&
31604     test "$want_symbol_hiding" = "yes" &&
31605     test "$supports_symbol_hiding" = "yes"; then
31606     doing_symbol_hiding="yes"
31607     CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
31608
31609 cat >>confdefs.h <<_ACEOF
31610 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
31611 _ACEOF
31612
31613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31614 $as_echo "yes" >&6; }
31615   else
31616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 $as_echo "no" >&6; }
31618   fi
31619    if test x$doing_symbol_hiding = xyes; then
31620   DOING_CARES_SYMBOL_HIDING_TRUE=
31621   DOING_CARES_SYMBOL_HIDING_FALSE='#'
31622 else
31623   DOING_CARES_SYMBOL_HIDING_TRUE='#'
31624   DOING_CARES_SYMBOL_HIDING_FALSE=
31625 fi
31626
31627
31628   if test "$doing_symbol_hiding" = "yes"; then
31629
31630 cat >>confdefs.h <<_ACEOF
31631 #define CARES_SYMBOL_HIDING 1
31632 _ACEOF
31633
31634   fi
31635
31636
31637 CARES_PRIVATE_LIBS="$LIBS"
31638
31639
31640 CARES_CFLAG_EXTRAS=""
31641 if test X"$want_werror" = Xyes; then
31642   CARES_CFLAG_EXTRAS="-Werror"
31643 fi
31644
31645
31646
31647 squeeze CFLAGS
31648 squeeze CPPFLAGS
31649 squeeze DEFS
31650 squeeze LDFLAGS
31651 squeeze LIBS
31652
31653 squeeze CARES_PRIVATE_LIBS
31654
31655
31656
31657   xc_bad_var_libs=no
31658   for xc_word in $LIBS; do
31659     case "$xc_word" in
31660       -l* | --library=*)
31661         :
31662         ;;
31663       *)
31664         xc_bad_var_libs=yes
31665         ;;
31666     esac
31667   done
31668   if test $xc_bad_var_libs = yes; then
31669     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
31670 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
31671     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
31672 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
31673   fi
31674
31675
31676   xc_bad_var_ldflags=no
31677   for xc_word in $LDFLAGS; do
31678     case "$xc_word" in
31679       -D*)
31680         xc_bad_var_ldflags=yes
31681         ;;
31682       -U*)
31683         xc_bad_var_ldflags=yes
31684         ;;
31685       -I*)
31686         xc_bad_var_ldflags=yes
31687         ;;
31688       -l* | --library=*)
31689         xc_bad_var_ldflags=yes
31690         ;;
31691     esac
31692   done
31693   if test $xc_bad_var_ldflags = yes; then
31694     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
31695 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
31696     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
31697     for xc_word in $LDFLAGS; do
31698       case "$xc_word" in
31699         -D*)
31700           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31701 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31702           ;;
31703         -U*)
31704           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31705 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31706           ;;
31707         -I*)
31708           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31709 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31710           ;;
31711         -l* | --library=*)
31712           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31713 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31714           ;;
31715       esac
31716     done
31717   fi
31718
31719
31720   xc_bad_var_cppflags=no
31721   for xc_word in $CPPFLAGS; do
31722     case "$xc_word" in
31723       -rpath*)
31724         xc_bad_var_cppflags=yes
31725         ;;
31726       -L* | --library-path=*)
31727         xc_bad_var_cppflags=yes
31728         ;;
31729       -l* | --library=*)
31730         xc_bad_var_cppflags=yes
31731         ;;
31732     esac
31733   done
31734   if test $xc_bad_var_cppflags = yes; then
31735     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
31736 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
31737     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
31738     for xc_word in $CPPFLAGS; do
31739       case "$xc_word" in
31740         -rpath*)
31741           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31742 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31743           ;;
31744         -L* | --library-path=*)
31745           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31746 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31747           ;;
31748         -l* | --library=*)
31749           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31750 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31751           ;;
31752       esac
31753     done
31754   fi
31755
31756
31757   xc_bad_var_cflags=no
31758   for xc_word in $CFLAGS; do
31759     case "$xc_word" in
31760       -D*)
31761         xc_bad_var_cflags=yes
31762         ;;
31763       -U*)
31764         xc_bad_var_cflags=yes
31765         ;;
31766       -I*)
31767         xc_bad_var_cflags=yes
31768         ;;
31769       -rpath*)
31770         xc_bad_var_cflags=yes
31771         ;;
31772       -L* | --library-path=*)
31773         xc_bad_var_cflags=yes
31774         ;;
31775       -l* | --library=*)
31776         xc_bad_var_cflags=yes
31777         ;;
31778     esac
31779   done
31780   if test $xc_bad_var_cflags = yes; then
31781     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
31782 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
31783     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
31784     for xc_word in $CFLAGS; do
31785       case "$xc_word" in
31786         -D*)
31787           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31788 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31789           ;;
31790         -U*)
31791           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31792 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31793           ;;
31794         -I*)
31795           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31796 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31797           ;;
31798         -rpath*)
31799           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31800 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31801           ;;
31802         -L* | --library-path=*)
31803           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31804 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31805           ;;
31806         -l* | --library=*)
31807           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31808 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31809           ;;
31810       esac
31811     done
31812   fi
31813
31814   if test $xc_bad_var_libs = yes ||
31815      test $xc_bad_var_cflags = yes ||
31816      test $xc_bad_var_ldflags = yes ||
31817      test $xc_bad_var_cppflags = yes; then
31818      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
31819 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
31820   fi
31821
31822
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
31824 $as_echo_n "checking whether to build tests... " >&6; }
31825 # Check whether --enable-tests was given.
31826 if test "${enable_tests+set}" = set; then :
31827   enableval=$enable_tests;  build_tests="$enableval"
31828 else
31829    if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
31830             build_tests="yes"
31831           else
31832             build_tests="no"
31833           fi
31834
31835
31836 fi
31837
31838
31839 if test "x$build_tests" = "xyes" ; then
31840         if test "x$HAVE_CXX11" = "0" ; then
31841                 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
31842         fi
31843         if test "x$cross_compiling" = "xyes" ; then
31844                 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
31845         fi
31846 fi
31847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
31848 $as_echo "$build_tests" >&6; }
31849
31850
31851 BUILD_SUBDIRS="include src docs"
31852 if test "x$build_tests" = "xyes" ; then
31853
31854
31855 subdirs="$subdirs test"
31856
31857   BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
31858 fi
31859
31860
31861
31862 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
31863
31864
31865 cat >confcache <<\_ACEOF
31866 # This file is a shell script that caches the results of configure
31867 # tests run on this system so they can be shared between configure
31868 # scripts and configure runs, see configure's option --config-cache.
31869 # It is not useful on other systems.  If it contains results you don't
31870 # want to keep, you may remove or edit it.
31871 #
31872 # config.status only pays attention to the cache file if you give it
31873 # the --recheck option to rerun configure.
31874 #
31875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31877 # following values.
31878
31879 _ACEOF
31880
31881 # The following way of writing the cache mishandles newlines in values,
31882 # but we know of no workaround that is simple, portable, and efficient.
31883 # So, we kill variables containing newlines.
31884 # Ultrix sh set writes to stderr and can't be redirected directly,
31885 # and sets the high bit in the cache file unless we assign to the vars.
31886 (
31887   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31888     eval ac_val=\$$ac_var
31889     case $ac_val in #(
31890     *${as_nl}*)
31891       case $ac_var in #(
31892       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31894       esac
31895       case $ac_var in #(
31896       _ | IFS | as_nl) ;; #(
31897       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31898       *) { eval $ac_var=; unset $ac_var;} ;;
31899       esac ;;
31900     esac
31901   done
31902
31903   (set) 2>&1 |
31904     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31905     *${as_nl}ac_space=\ *)
31906       # `set' does not quote correctly, so add quotes: double-quote
31907       # substitution turns \\\\ into \\, and sed turns \\ into \.
31908       sed -n \
31909         "s/'/'\\\\''/g;
31910           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31911       ;; #(
31912     *)
31913       # `set' quotes correctly as required by POSIX, so do not add quotes.
31914       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31915       ;;
31916     esac |
31917     sort
31918 ) |
31919   sed '
31920      /^ac_cv_env_/b end
31921      t clear
31922      :clear
31923      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31924      t end
31925      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31926      :end' >>confcache
31927 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31928   if test -w "$cache_file"; then
31929     if test "x$cache_file" != "x/dev/null"; then
31930       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31931 $as_echo "$as_me: updating cache $cache_file" >&6;}
31932       if test ! -f "$cache_file" || test -h "$cache_file"; then
31933         cat confcache >"$cache_file"
31934       else
31935         case $cache_file in #(
31936         */* | ?:*)
31937           mv -f confcache "$cache_file"$$ &&
31938           mv -f "$cache_file"$$ "$cache_file" ;; #(
31939         *)
31940           mv -f confcache "$cache_file" ;;
31941         esac
31942       fi
31943     fi
31944   else
31945     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31947   fi
31948 fi
31949 rm -f confcache
31950
31951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31952 # Let make expand exec_prefix.
31953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31954
31955 DEFS=-DHAVE_CONFIG_H
31956
31957 ac_libobjs=
31958 ac_ltlibobjs=
31959 U=
31960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31961   # 1. Remove the extension, and $U if already installed.
31962   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31963   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31964   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31965   #    will be set to the directory where LIBOBJS objects are built.
31966   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31967   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31968 done
31969 LIBOBJS=$ac_libobjs
31970
31971 LTLIBOBJS=$ac_ltlibobjs
31972
31973
31974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31975   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31977 fi
31978 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
31979   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
31980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31981 fi
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31983 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31984    if test -n "$am_sleep_pid"; then
31985      # Hide warnings about reused PIDs.
31986      wait $am_sleep_pid 2>/dev/null
31987    fi
31988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31989 $as_echo "done" >&6; }
31990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31991   as_fn_error $? "conditional \"AMDEP\" was never defined.
31992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31993 fi
31994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31995   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31997 fi
31998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31999   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32001 fi
32002  if test -n "$EXEEXT"; then
32003   am__EXEEXT_TRUE=
32004   am__EXEEXT_FALSE='#'
32005 else
32006   am__EXEEXT_TRUE='#'
32007   am__EXEEXT_FALSE=
32008 fi
32009
32010 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
32011   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
32012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32013 fi
32014 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
32015   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
32016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32017 fi
32018 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
32019   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
32020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32021 fi
32022 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
32023   as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
32024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32025 fi
32026 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
32027   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
32028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32029 fi
32030
32031 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
32032   as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
32033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32034 fi
32035
32036 : "${CONFIG_STATUS=./config.status}"
32037 ac_write_fail=0
32038 ac_clean_files_save=$ac_clean_files
32039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32042 as_write_fail=0
32043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32044 #! $SHELL
32045 # Generated by $as_me.
32046 # Run this file to recreate the current configuration.
32047 # Compiler output produced by configure, useful for debugging
32048 # configure, is in config.log if it exists.
32049
32050 debug=false
32051 ac_cs_recheck=false
32052 ac_cs_silent=false
32053
32054 SHELL=\${CONFIG_SHELL-$SHELL}
32055 export SHELL
32056 _ASEOF
32057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32058 ## -------------------- ##
32059 ## M4sh Initialization. ##
32060 ## -------------------- ##
32061
32062 # Be more Bourne compatible
32063 DUALCASE=1; export DUALCASE # for MKS sh
32064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32065   emulate sh
32066   NULLCMD=:
32067   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32068   # is contrary to our usage.  Disable this feature.
32069   alias -g '${1+"$@"}'='"$@"'
32070   setopt NO_GLOB_SUBST
32071 else
32072   case `(set -o) 2>/dev/null` in #(
32073   *posix*) :
32074     set -o posix ;; #(
32075   *) :
32076      ;;
32077 esac
32078 fi
32079
32080
32081 as_nl='
32082 '
32083 export as_nl
32084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32088 # Prefer a ksh shell builtin over an external printf program on Solaris,
32089 # but without wasting forks for bash or zsh.
32090 if test -z "$BASH_VERSION$ZSH_VERSION" \
32091     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32092   as_echo='print -r --'
32093   as_echo_n='print -rn --'
32094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32095   as_echo='printf %s\n'
32096   as_echo_n='printf %s'
32097 else
32098   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32099     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32100     as_echo_n='/usr/ucb/echo -n'
32101   else
32102     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32103     as_echo_n_body='eval
32104       arg=$1;
32105       case $arg in #(
32106       *"$as_nl"*)
32107         expr "X$arg" : "X\\(.*\\)$as_nl";
32108         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32109       esac;
32110       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32111     '
32112     export as_echo_n_body
32113     as_echo_n='sh -c $as_echo_n_body as_echo'
32114   fi
32115   export as_echo_body
32116   as_echo='sh -c $as_echo_body as_echo'
32117 fi
32118
32119
32120
32121 # IFS
32122 # We need space, tab and new line, in precisely that order.  Quoting is
32123 # there to prevent editors from complaining about space-tab.
32124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32125 # splitting by setting IFS to empty value.)
32126 IFS=" ""        $as_nl"
32127
32128 # Find who we are.  Look in the path if we contain no directory separator.
32129 as_myself=
32130 case $0 in #((
32131   *[\\/]* ) as_myself=$0 ;;
32132   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32133 for as_dir in $PATH
32134 do
32135   IFS=$as_save_IFS
32136   test -z "$as_dir" && as_dir=.
32137     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32138   done
32139 IFS=$as_save_IFS
32140
32141      ;;
32142 esac
32143 # We did not find ourselves, most probably we were run as `sh COMMAND'
32144 # in which case we are not to be found in the path.
32145 if test "x$as_myself" = x; then
32146   as_myself=$0
32147 fi
32148 if test ! -f "$as_myself"; then
32149   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32150   exit 1
32151 fi
32152
32153 # Unset variables that we do not need and which cause bugs (e.g. in
32154 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32155 # suppresses any "Segmentation fault" message there.  '((' could
32156 # trigger a bug in pdksh 5.2.14.
32157 for as_var in BASH_ENV ENV MAIL MAILPATH
32158 do eval test x\${$as_var+set} = xset \
32159   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32160 done
32161 PS1='$ '
32162 PS2='> '
32163 PS4='+ '
32164
32165 # NLS nuisances.
32166 LC_ALL=C
32167 export LC_ALL
32168 LANGUAGE=C
32169 export LANGUAGE
32170
32171 # CDPATH.
32172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32173
32174
32175 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32176 # ----------------------------------------
32177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32179 # script with STATUS, using 1 if that was 0.
32180 as_fn_error ()
32181 {
32182   as_status=$1; test $as_status -eq 0 && as_status=1
32183   if test "$4"; then
32184     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32185     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32186   fi
32187   $as_echo "$as_me: error: $2" >&2
32188   as_fn_exit $as_status
32189 } # as_fn_error
32190
32191
32192 # as_fn_set_status STATUS
32193 # -----------------------
32194 # Set $? to STATUS, without forking.
32195 as_fn_set_status ()
32196 {
32197   return $1
32198 } # as_fn_set_status
32199
32200 # as_fn_exit STATUS
32201 # -----------------
32202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32203 as_fn_exit ()
32204 {
32205   set +e
32206   as_fn_set_status $1
32207   exit $1
32208 } # as_fn_exit
32209
32210 # as_fn_unset VAR
32211 # ---------------
32212 # Portably unset VAR.
32213 as_fn_unset ()
32214 {
32215   { eval $1=; unset $1;}
32216 }
32217 as_unset=as_fn_unset
32218 # as_fn_append VAR VALUE
32219 # ----------------------
32220 # Append the text in VALUE to the end of the definition contained in VAR. Take
32221 # advantage of any shell optimizations that allow amortized linear growth over
32222 # repeated appends, instead of the typical quadratic growth present in naive
32223 # implementations.
32224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32225   eval 'as_fn_append ()
32226   {
32227     eval $1+=\$2
32228   }'
32229 else
32230   as_fn_append ()
32231   {
32232     eval $1=\$$1\$2
32233   }
32234 fi # as_fn_append
32235
32236 # as_fn_arith ARG...
32237 # ------------------
32238 # Perform arithmetic evaluation on the ARGs, and store the result in the
32239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32240 # must be portable across $(()) and expr.
32241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32242   eval 'as_fn_arith ()
32243   {
32244     as_val=$(( $* ))
32245   }'
32246 else
32247   as_fn_arith ()
32248   {
32249     as_val=`expr "$@" || test $? -eq 1`
32250   }
32251 fi # as_fn_arith
32252
32253
32254 if expr a : '\(a\)' >/dev/null 2>&1 &&
32255    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32256   as_expr=expr
32257 else
32258   as_expr=false
32259 fi
32260
32261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32262   as_basename=basename
32263 else
32264   as_basename=false
32265 fi
32266
32267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32268   as_dirname=dirname
32269 else
32270   as_dirname=false
32271 fi
32272
32273 as_me=`$as_basename -- "$0" ||
32274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32275          X"$0" : 'X\(//\)$' \| \
32276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32277 $as_echo X/"$0" |
32278     sed '/^.*\/\([^/][^/]*\)\/*$/{
32279             s//\1/
32280             q
32281           }
32282           /^X\/\(\/\/\)$/{
32283             s//\1/
32284             q
32285           }
32286           /^X\/\(\/\).*/{
32287             s//\1/
32288             q
32289           }
32290           s/.*/./; q'`
32291
32292 # Avoid depending upon Character Ranges.
32293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32296 as_cr_digits='0123456789'
32297 as_cr_alnum=$as_cr_Letters$as_cr_digits
32298
32299 ECHO_C= ECHO_N= ECHO_T=
32300 case `echo -n x` in #(((((
32301 -n*)
32302   case `echo 'xy\c'` in
32303   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32304   xy)  ECHO_C='\c';;
32305   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32306        ECHO_T=' ';;
32307   esac;;
32308 *)
32309   ECHO_N='-n';;
32310 esac
32311
32312 rm -f conf$$ conf$$.exe conf$$.file
32313 if test -d conf$$.dir; then
32314   rm -f conf$$.dir/conf$$.file
32315 else
32316   rm -f conf$$.dir
32317   mkdir conf$$.dir 2>/dev/null
32318 fi
32319 if (echo >conf$$.file) 2>/dev/null; then
32320   if ln -s conf$$.file conf$$ 2>/dev/null; then
32321     as_ln_s='ln -s'
32322     # ... but there are two gotchas:
32323     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32324     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32325     # In both cases, we have to default to `cp -pR'.
32326     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32327       as_ln_s='cp -pR'
32328   elif ln conf$$.file conf$$ 2>/dev/null; then
32329     as_ln_s=ln
32330   else
32331     as_ln_s='cp -pR'
32332   fi
32333 else
32334   as_ln_s='cp -pR'
32335 fi
32336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32337 rmdir conf$$.dir 2>/dev/null
32338
32339
32340 # as_fn_mkdir_p
32341 # -------------
32342 # Create "$as_dir" as a directory, including parents if necessary.
32343 as_fn_mkdir_p ()
32344 {
32345
32346   case $as_dir in #(
32347   -*) as_dir=./$as_dir;;
32348   esac
32349   test -d "$as_dir" || eval $as_mkdir_p || {
32350     as_dirs=
32351     while :; do
32352       case $as_dir in #(
32353       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32354       *) as_qdir=$as_dir;;
32355       esac
32356       as_dirs="'$as_qdir' $as_dirs"
32357       as_dir=`$as_dirname -- "$as_dir" ||
32358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32359          X"$as_dir" : 'X\(//\)[^/]' \| \
32360          X"$as_dir" : 'X\(//\)$' \| \
32361          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32362 $as_echo X"$as_dir" |
32363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32364             s//\1/
32365             q
32366           }
32367           /^X\(\/\/\)[^/].*/{
32368             s//\1/
32369             q
32370           }
32371           /^X\(\/\/\)$/{
32372             s//\1/
32373             q
32374           }
32375           /^X\(\/\).*/{
32376             s//\1/
32377             q
32378           }
32379           s/.*/./; q'`
32380       test -d "$as_dir" && break
32381     done
32382     test -z "$as_dirs" || eval "mkdir $as_dirs"
32383   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32384
32385
32386 } # as_fn_mkdir_p
32387 if mkdir -p . 2>/dev/null; then
32388   as_mkdir_p='mkdir -p "$as_dir"'
32389 else
32390   test -d ./-p && rmdir ./-p
32391   as_mkdir_p=false
32392 fi
32393
32394
32395 # as_fn_executable_p FILE
32396 # -----------------------
32397 # Test if FILE is an executable regular file.
32398 as_fn_executable_p ()
32399 {
32400   test -f "$1" && test -x "$1"
32401 } # as_fn_executable_p
32402 as_test_x='test -x'
32403 as_executable_p=as_fn_executable_p
32404
32405 # Sed expression to map a string onto a valid CPP name.
32406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32407
32408 # Sed expression to map a string onto a valid variable name.
32409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32410
32411
32412 exec 6>&1
32413 ## ----------------------------------- ##
32414 ## Main body of $CONFIG_STATUS script. ##
32415 ## ----------------------------------- ##
32416 _ASEOF
32417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32418
32419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32420 # Save the log message, to keep $0 and so on meaningful, and to
32421 # report actual input values of CONFIG_FILES etc. instead of their
32422 # values after options handling.
32423 ac_log="
32424 This file was extended by c-ares $as_me 1.17.1, which was
32425 generated by GNU Autoconf 2.69.  Invocation command line was
32426
32427   CONFIG_FILES    = $CONFIG_FILES
32428   CONFIG_HEADERS  = $CONFIG_HEADERS
32429   CONFIG_LINKS    = $CONFIG_LINKS
32430   CONFIG_COMMANDS = $CONFIG_COMMANDS
32431   $ $0 $@
32432
32433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32434 "
32435
32436 _ACEOF
32437
32438 case $ac_config_files in *"
32439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32440 esac
32441
32442 case $ac_config_headers in *"
32443 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32444 esac
32445
32446
32447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32448 # Files that config.status was made for.
32449 config_files="$ac_config_files"
32450 config_headers="$ac_config_headers"
32451 config_commands="$ac_config_commands"
32452
32453 _ACEOF
32454
32455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32456 ac_cs_usage="\
32457 \`$as_me' instantiates files and other configuration actions
32458 from templates according to the current configuration.  Unless the files
32459 and actions are specified as TAGs, all are instantiated by default.
32460
32461 Usage: $0 [OPTION]... [TAG]...
32462
32463   -h, --help       print this help, then exit
32464   -V, --version    print version number and configuration settings, then exit
32465       --config     print configuration, then exit
32466   -q, --quiet, --silent
32467                    do not print progress messages
32468   -d, --debug      don't remove temporary files
32469       --recheck    update $as_me by reconfiguring in the same conditions
32470       --file=FILE[:TEMPLATE]
32471                    instantiate the configuration file FILE
32472       --header=FILE[:TEMPLATE]
32473                    instantiate the configuration header FILE
32474
32475 Configuration files:
32476 $config_files
32477
32478 Configuration headers:
32479 $config_headers
32480
32481 Configuration commands:
32482 $config_commands
32483
32484 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
32485
32486 _ACEOF
32487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32488 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32489 ac_cs_version="\\
32490 c-ares config.status 1.17.1
32491 configured by $0, generated by GNU Autoconf 2.69,
32492   with options \\"\$ac_cs_config\\"
32493
32494 Copyright (C) 2012 Free Software Foundation, Inc.
32495 This config.status script is free software; the Free Software Foundation
32496 gives unlimited permission to copy, distribute and modify it."
32497
32498 ac_pwd='$ac_pwd'
32499 srcdir='$srcdir'
32500 INSTALL='$INSTALL'
32501 MKDIR_P='$MKDIR_P'
32502 AWK='$AWK'
32503 test -n "\$AWK" || AWK=awk
32504 _ACEOF
32505
32506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32507 # The default lists apply if the user does not specify any file.
32508 ac_need_defaults=:
32509 while test $# != 0
32510 do
32511   case $1 in
32512   --*=?*)
32513     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32514     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32515     ac_shift=:
32516     ;;
32517   --*=)
32518     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32519     ac_optarg=
32520     ac_shift=:
32521     ;;
32522   *)
32523     ac_option=$1
32524     ac_optarg=$2
32525     ac_shift=shift
32526     ;;
32527   esac
32528
32529   case $ac_option in
32530   # Handling of the options.
32531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32532     ac_cs_recheck=: ;;
32533   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32534     $as_echo "$ac_cs_version"; exit ;;
32535   --config | --confi | --conf | --con | --co | --c )
32536     $as_echo "$ac_cs_config"; exit ;;
32537   --debug | --debu | --deb | --de | --d | -d )
32538     debug=: ;;
32539   --file | --fil | --fi | --f )
32540     $ac_shift
32541     case $ac_optarg in
32542     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32543     '') as_fn_error $? "missing file argument" ;;
32544     esac
32545     as_fn_append CONFIG_FILES " '$ac_optarg'"
32546     ac_need_defaults=false;;
32547   --header | --heade | --head | --hea )
32548     $ac_shift
32549     case $ac_optarg in
32550     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32551     esac
32552     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32553     ac_need_defaults=false;;
32554   --he | --h)
32555     # Conflict between --help and --header
32556     as_fn_error $? "ambiguous option: \`$1'
32557 Try \`$0 --help' for more information.";;
32558   --help | --hel | -h )
32559     $as_echo "$ac_cs_usage"; exit ;;
32560   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32561   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32562     ac_cs_silent=: ;;
32563
32564   # This is an error.
32565   -*) as_fn_error $? "unrecognized option: \`$1'
32566 Try \`$0 --help' for more information." ;;
32567
32568   *) as_fn_append ac_config_targets " $1"
32569      ac_need_defaults=false ;;
32570
32571   esac
32572   shift
32573 done
32574
32575 ac_configure_extra_args=
32576
32577 if $ac_cs_silent; then
32578   exec 6>/dev/null
32579   ac_configure_extra_args="$ac_configure_extra_args --silent"
32580 fi
32581
32582 _ACEOF
32583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32584 if \$ac_cs_recheck; then
32585   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32586   shift
32587   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32588   CONFIG_SHELL='$SHELL'
32589   export CONFIG_SHELL
32590   exec "\$@"
32591 fi
32592
32593 _ACEOF
32594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32595 exec 5>>config.log
32596 {
32597   echo
32598   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32599 ## Running $as_me. ##
32600 _ASBOX
32601   $as_echo "$ac_log"
32602 } >&5
32603
32604 _ACEOF
32605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32606 #
32607 # INIT-COMMANDS
32608 #
32609 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
32610
32611
32612 # The HP-UX ksh and POSIX shell print the target directory to stdout
32613 # if CDPATH is set.
32614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32615
32616 sed_quote_subst='$sed_quote_subst'
32617 double_quote_subst='$double_quote_subst'
32618 delay_variable_subst='$delay_variable_subst'
32619 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32620 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32621 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32622 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32624 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32625 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32626 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32627 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32628 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32629 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32630 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32631 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32632 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32633 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32634 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32635 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32636 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32637 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32638 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32639 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32640 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32641 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32642 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32643 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32644 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32645 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32646 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32647 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32648 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32649 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32650 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32651 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32652 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32653 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32654 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32655 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32656 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32657 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32658 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32659 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32660 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32661 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32662 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32663 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32664 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32665 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32666 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32667 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32668 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32669 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32670 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32671 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32672 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32673 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32674 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32675 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32676 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32677 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32678 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"`'
32679 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32680 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32681 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32682 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32683 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32684 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32685 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32686 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32687 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32688 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32689 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32690 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32691 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32692 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32693 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32694 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32695 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32696 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32697 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32698 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32699 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32700 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32701 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32702 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32703 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32704 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32705 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32706 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32707 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32708 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32709 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32710 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32711 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32712 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32713 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32714 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32715 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32716 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32717 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32718 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32719 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32720 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32721 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32722 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32723 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32724 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32725 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32726 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32727 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32728 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32729 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32730 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32731 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32732 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32733 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32734 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32735 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32736 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32737 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32738 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32739 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32740 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32741 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32742 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32743 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32744 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32745 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32746 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32747 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32748 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32749 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32750 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32751 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32752 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32753 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32754 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32755 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32756 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32757 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32758 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32759 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32760 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32761 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32762 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32763 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32764 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32765 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32766 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32767 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32768 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32769 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32770 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32771 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32772 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32773 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32774 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32775 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32776 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32777 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32778 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32779 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32780 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32781 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32782 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32783 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32784 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32785 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32786 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32787 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32788 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32789 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32790 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32791 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32792 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32793 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32794 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32795 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32796 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32797 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32798 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32799 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32800 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32801 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32802 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32803 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32804 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32805 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32806 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32807 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32808 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32809
32810 LTCC='$LTCC'
32811 LTCFLAGS='$LTCFLAGS'
32812 compiler='$compiler_DEFAULT'
32813
32814 # A function that is used when there is no print builtin or printf.
32815 func_fallback_echo ()
32816 {
32817   eval 'cat <<_LTECHO_EOF
32818 \$1
32819 _LTECHO_EOF'
32820 }
32821
32822 # Quote evaled strings.
32823 for var in AS \
32824 DLLTOOL \
32825 OBJDUMP \
32826 SHELL \
32827 ECHO \
32828 PATH_SEPARATOR \
32829 SED \
32830 GREP \
32831 EGREP \
32832 FGREP \
32833 LD \
32834 NM \
32835 LN_S \
32836 lt_SP2NL \
32837 lt_NL2SP \
32838 reload_flag \
32839 deplibs_check_method \
32840 file_magic_cmd \
32841 file_magic_glob \
32842 want_nocaseglob \
32843 sharedlib_from_linklib_cmd \
32844 AR \
32845 AR_FLAGS \
32846 archiver_list_spec \
32847 STRIP \
32848 RANLIB \
32849 CC \
32850 CFLAGS \
32851 compiler \
32852 lt_cv_sys_global_symbol_pipe \
32853 lt_cv_sys_global_symbol_to_cdecl \
32854 lt_cv_sys_global_symbol_to_import \
32855 lt_cv_sys_global_symbol_to_c_name_address \
32856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32857 lt_cv_nm_interface \
32858 nm_file_list_spec \
32859 lt_cv_truncate_bin \
32860 lt_prog_compiler_no_builtin_flag \
32861 lt_prog_compiler_pic \
32862 lt_prog_compiler_wl \
32863 lt_prog_compiler_static \
32864 lt_cv_prog_compiler_c_o \
32865 need_locks \
32866 MANIFEST_TOOL \
32867 DSYMUTIL \
32868 NMEDIT \
32869 LIPO \
32870 OTOOL \
32871 OTOOL64 \
32872 shrext_cmds \
32873 export_dynamic_flag_spec \
32874 whole_archive_flag_spec \
32875 compiler_needs_object \
32876 with_gnu_ld \
32877 allow_undefined_flag \
32878 no_undefined_flag \
32879 hardcode_libdir_flag_spec \
32880 hardcode_libdir_separator \
32881 exclude_expsyms \
32882 include_expsyms \
32883 file_list_spec \
32884 variables_saved_for_relink \
32885 libname_spec \
32886 library_names_spec \
32887 soname_spec \
32888 install_override_mode \
32889 finish_eval \
32890 old_striplib \
32891 striplib \
32892 compiler_lib_search_dirs \
32893 predep_objects \
32894 postdep_objects \
32895 predeps \
32896 postdeps \
32897 compiler_lib_search_path \
32898 LD_CXX \
32899 reload_flag_CXX \
32900 compiler_CXX \
32901 lt_prog_compiler_no_builtin_flag_CXX \
32902 lt_prog_compiler_pic_CXX \
32903 lt_prog_compiler_wl_CXX \
32904 lt_prog_compiler_static_CXX \
32905 lt_cv_prog_compiler_c_o_CXX \
32906 export_dynamic_flag_spec_CXX \
32907 whole_archive_flag_spec_CXX \
32908 compiler_needs_object_CXX \
32909 with_gnu_ld_CXX \
32910 allow_undefined_flag_CXX \
32911 no_undefined_flag_CXX \
32912 hardcode_libdir_flag_spec_CXX \
32913 hardcode_libdir_separator_CXX \
32914 exclude_expsyms_CXX \
32915 include_expsyms_CXX \
32916 file_list_spec_CXX \
32917 compiler_lib_search_dirs_CXX \
32918 predep_objects_CXX \
32919 postdep_objects_CXX \
32920 predeps_CXX \
32921 postdeps_CXX \
32922 compiler_lib_search_path_CXX; do
32923     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32924     *[\\\\\\\`\\"\\\$]*)
32925       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32926       ;;
32927     *)
32928       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32929       ;;
32930     esac
32931 done
32932
32933 # Double-quote double-evaled strings.
32934 for var in reload_cmds \
32935 old_postinstall_cmds \
32936 old_postuninstall_cmds \
32937 old_archive_cmds \
32938 extract_expsyms_cmds \
32939 old_archive_from_new_cmds \
32940 old_archive_from_expsyms_cmds \
32941 archive_cmds \
32942 archive_expsym_cmds \
32943 module_cmds \
32944 module_expsym_cmds \
32945 export_symbols_cmds \
32946 prelink_cmds \
32947 postlink_cmds \
32948 postinstall_cmds \
32949 postuninstall_cmds \
32950 finish_cmds \
32951 sys_lib_search_path_spec \
32952 configure_time_dlsearch_path \
32953 configure_time_lt_sys_library_path \
32954 reload_cmds_CXX \
32955 old_archive_cmds_CXX \
32956 old_archive_from_new_cmds_CXX \
32957 old_archive_from_expsyms_cmds_CXX \
32958 archive_cmds_CXX \
32959 archive_expsym_cmds_CXX \
32960 module_cmds_CXX \
32961 module_expsym_cmds_CXX \
32962 export_symbols_cmds_CXX \
32963 prelink_cmds_CXX \
32964 postlink_cmds_CXX; do
32965     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32966     *[\\\\\\\`\\"\\\$]*)
32967       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32968       ;;
32969     *)
32970       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32971       ;;
32972     esac
32973 done
32974
32975 ac_aux_dir='$ac_aux_dir'
32976
32977 # See if we are running on zsh, and set the options that allow our
32978 # commands through without removal of \ escapes INIT.
32979 if test -n "\${ZSH_VERSION+set}"; then
32980    setopt NO_GLOB_SUBST
32981 fi
32982
32983
32984     PACKAGE='$PACKAGE'
32985     VERSION='$VERSION'
32986     RM='$RM'
32987     ofile='$ofile'
32988
32989
32990
32991
32992
32993
32994 _ACEOF
32995
32996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32997
32998 # Handling of arguments.
32999 for ac_config_target in $ac_config_targets
33000 do
33001   case $ac_config_target in
33002     "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
33003     "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
33004     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33005     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33006     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33007     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
33008     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33009     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
33010     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
33011     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
33012     "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
33013
33014   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33015   esac
33016 done
33017
33018
33019 # If the user did not use the arguments to specify the items to instantiate,
33020 # then the envvar interface is used.  Set only those that are not.
33021 # We use the long form for the default assignment because of an extremely
33022 # bizarre bug on SunOS 4.1.3.
33023 if $ac_need_defaults; then
33024   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33025   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33026   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33027 fi
33028
33029 # Have a temporary directory for convenience.  Make it in the build tree
33030 # simply because there is no reason against having it here, and in addition,
33031 # creating and moving files from /tmp can sometimes cause problems.
33032 # Hook for its removal unless debugging.
33033 # Note that there is a small window in which the directory will not be cleaned:
33034 # after its creation but before its name has been assigned to `$tmp'.
33035 $debug ||
33036 {
33037   tmp= ac_tmp=
33038   trap 'exit_status=$?
33039   : "${ac_tmp:=$tmp}"
33040   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33041 ' 0
33042   trap 'as_fn_exit 1' 1 2 13 15
33043 }
33044 # Create a (secure) tmp directory for tmp files.
33045
33046 {
33047   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33048   test -d "$tmp"
33049 }  ||
33050 {
33051   tmp=./conf$$-$RANDOM
33052   (umask 077 && mkdir "$tmp")
33053 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33054 ac_tmp=$tmp
33055
33056 # Set up the scripts for CONFIG_FILES section.
33057 # No need to generate them if there are no CONFIG_FILES.
33058 # This happens for instance with `./config.status config.h'.
33059 if test -n "$CONFIG_FILES"; then
33060
33061
33062 ac_cr=`echo X | tr X '\015'`
33063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33064 # But we know of no other shell where ac_cr would be empty at this
33065 # point, so we can use a bashism as a fallback.
33066 if test "x$ac_cr" = x; then
33067   eval ac_cr=\$\'\\r\'
33068 fi
33069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33071   ac_cs_awk_cr='\\r'
33072 else
33073   ac_cs_awk_cr=$ac_cr
33074 fi
33075
33076 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33077 _ACEOF
33078
33079
33080 {
33081   echo "cat >conf$$subs.awk <<_ACEOF" &&
33082   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33083   echo "_ACEOF"
33084 } >conf$$subs.sh ||
33085   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33086 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33087 ac_delim='%!_!# '
33088 for ac_last_try in false false false false false :; do
33089   . ./conf$$subs.sh ||
33090     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33091
33092   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33093   if test $ac_delim_n = $ac_delim_num; then
33094     break
33095   elif $ac_last_try; then
33096     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33097   else
33098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33099   fi
33100 done
33101 rm -f conf$$subs.sh
33102
33103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33104 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33105 _ACEOF
33106 sed -n '
33107 h
33108 s/^/S["/; s/!.*/"]=/
33109 p
33110 g
33111 s/^[^!]*!//
33112 :repl
33113 t repl
33114 s/'"$ac_delim"'$//
33115 t delim
33116 :nl
33117 h
33118 s/\(.\{148\}\)..*/\1/
33119 t more1
33120 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33121 p
33122 n
33123 b repl
33124 :more1
33125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33126 p
33127 g
33128 s/.\{148\}//
33129 t nl
33130 :delim
33131 h
33132 s/\(.\{148\}\)..*/\1/
33133 t more2
33134 s/["\\]/\\&/g; s/^/"/; s/$/"/
33135 p
33136 b
33137 :more2
33138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33139 p
33140 g
33141 s/.\{148\}//
33142 t delim
33143 ' <conf$$subs.awk | sed '
33144 /^[^""]/{
33145   N
33146   s/\n//
33147 }
33148 ' >>$CONFIG_STATUS || ac_write_fail=1
33149 rm -f conf$$subs.awk
33150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33151 _ACAWK
33152 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33153   for (key in S) S_is_set[key] = 1
33154   FS = "\a"
33155
33156 }
33157 {
33158   line = $ 0
33159   nfields = split(line, field, "@")
33160   substed = 0
33161   len = length(field[1])
33162   for (i = 2; i < nfields; i++) {
33163     key = field[i]
33164     keylen = length(key)
33165     if (S_is_set[key]) {
33166       value = S[key]
33167       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33168       len += length(value) + length(field[++i])
33169       substed = 1
33170     } else
33171       len += 1 + keylen
33172   }
33173
33174   print line
33175 }
33176
33177 _ACAWK
33178 _ACEOF
33179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33180 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33181   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33182 else
33183   cat
33184 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33185   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33186 _ACEOF
33187
33188 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33189 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33190 # trailing colons and then remove the whole line if VPATH becomes empty
33191 # (actually we leave an empty line to preserve line numbers).
33192 if test "x$srcdir" = x.; then
33193   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
33194 h
33195 s///
33196 s/^/:/
33197 s/[      ]*$/:/
33198 s/:\$(srcdir):/:/g
33199 s/:\${srcdir}:/:/g
33200 s/:@srcdir@:/:/g
33201 s/^:*//
33202 s/:*$//
33203 x
33204 s/\(=[   ]*\).*/\1/
33205 G
33206 s/\n//
33207 s/^[^=]*=[       ]*$//
33208 }'
33209 fi
33210
33211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33212 fi # test -n "$CONFIG_FILES"
33213
33214 # Set up the scripts for CONFIG_HEADERS section.
33215 # No need to generate them if there are no CONFIG_HEADERS.
33216 # This happens for instance with `./config.status Makefile'.
33217 if test -n "$CONFIG_HEADERS"; then
33218 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33219 BEGIN {
33220 _ACEOF
33221
33222 # Transform confdefs.h into an awk script `defines.awk', embedded as
33223 # here-document in config.status, that substitutes the proper values into
33224 # config.h.in to produce config.h.
33225
33226 # Create a delimiter string that does not exist in confdefs.h, to ease
33227 # handling of long lines.
33228 ac_delim='%!_!# '
33229 for ac_last_try in false false :; do
33230   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33231   if test -z "$ac_tt"; then
33232     break
33233   elif $ac_last_try; then
33234     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33235   else
33236     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33237   fi
33238 done
33239
33240 # For the awk script, D is an array of macro values keyed by name,
33241 # likewise P contains macro parameters if any.  Preserve backslash
33242 # newline sequences.
33243
33244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33245 sed -n '
33246 s/.\{148\}/&'"$ac_delim"'/g
33247 t rset
33248 :rset
33249 s/^[     ]*#[    ]*define[       ][      ]*/ /
33250 t def
33251 d
33252 :def
33253 s/\\$//
33254 t bsnl
33255 s/["\\]/\\&/g
33256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33257 D["\1"]=" \3"/p
33258 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
33259 d
33260 :bsnl
33261 s/["\\]/\\&/g
33262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33263 D["\1"]=" \3\\\\\\n"\\/p
33264 t cont
33265 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33266 t cont
33267 d
33268 :cont
33269 n
33270 s/.\{148\}/&'"$ac_delim"'/g
33271 t clear
33272 :clear
33273 s/\\$//
33274 t bsnlc
33275 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33276 d
33277 :bsnlc
33278 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33279 b cont
33280 ' <confdefs.h | sed '
33281 s/'"$ac_delim"'/"\\\
33282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33283
33284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33285   for (key in D) D_is_set[key] = 1
33286   FS = "\a"
33287 }
33288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33289   line = \$ 0
33290   split(line, arg, " ")
33291   if (arg[1] == "#") {
33292     defundef = arg[2]
33293     mac1 = arg[3]
33294   } else {
33295     defundef = substr(arg[1], 2)
33296     mac1 = arg[2]
33297   }
33298   split(mac1, mac2, "(") #)
33299   macro = mac2[1]
33300   prefix = substr(line, 1, index(line, defundef) - 1)
33301   if (D_is_set[macro]) {
33302     # Preserve the white space surrounding the "#".
33303     print prefix "define", macro P[macro] D[macro]
33304     next
33305   } else {
33306     # Replace #undef with comments.  This is necessary, for example,
33307     # in the case of _POSIX_SOURCE, which is predefined and required
33308     # on some systems where configure will not decide to define it.
33309     if (defundef == "undef") {
33310       print "/*", prefix defundef, macro, "*/"
33311       next
33312     }
33313   }
33314 }
33315 { print }
33316 _ACAWK
33317 _ACEOF
33318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33319   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33320 fi # test -n "$CONFIG_HEADERS"
33321
33322
33323 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33324 shift
33325 for ac_tag
33326 do
33327   case $ac_tag in
33328   :[FHLC]) ac_mode=$ac_tag; continue;;
33329   esac
33330   case $ac_mode$ac_tag in
33331   :[FHL]*:*);;
33332   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33333   :[FH]-) ac_tag=-:-;;
33334   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33335   esac
33336   ac_save_IFS=$IFS
33337   IFS=:
33338   set x $ac_tag
33339   IFS=$ac_save_IFS
33340   shift
33341   ac_file=$1
33342   shift
33343
33344   case $ac_mode in
33345   :L) ac_source=$1;;
33346   :[FH])
33347     ac_file_inputs=
33348     for ac_f
33349     do
33350       case $ac_f in
33351       -) ac_f="$ac_tmp/stdin";;
33352       *) # Look for the file first in the build tree, then in the source tree
33353          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33354          # because $ac_f cannot contain `:'.
33355          test -f "$ac_f" ||
33356            case $ac_f in
33357            [\\/$]*) false;;
33358            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33359            esac ||
33360            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33361       esac
33362       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33363       as_fn_append ac_file_inputs " '$ac_f'"
33364     done
33365
33366     # Let's still pretend it is `configure' which instantiates (i.e., don't
33367     # use $as_me), people would be surprised to read:
33368     #    /* config.h.  Generated by config.status.  */
33369     configure_input='Generated from '`
33370           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33371         `' by configure.'
33372     if test x"$ac_file" != x-; then
33373       configure_input="$ac_file.  $configure_input"
33374       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33375 $as_echo "$as_me: creating $ac_file" >&6;}
33376     fi
33377     # Neutralize special characters interpreted by sed in replacement strings.
33378     case $configure_input in #(
33379     *\&* | *\|* | *\\* )
33380        ac_sed_conf_input=`$as_echo "$configure_input" |
33381        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33382     *) ac_sed_conf_input=$configure_input;;
33383     esac
33384
33385     case $ac_tag in
33386     *:-:* | *:-) cat >"$ac_tmp/stdin" \
33387       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33388     esac
33389     ;;
33390   esac
33391
33392   ac_dir=`$as_dirname -- "$ac_file" ||
33393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33394          X"$ac_file" : 'X\(//\)[^/]' \| \
33395          X"$ac_file" : 'X\(//\)$' \| \
33396          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33397 $as_echo X"$ac_file" |
33398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33399             s//\1/
33400             q
33401           }
33402           /^X\(\/\/\)[^/].*/{
33403             s//\1/
33404             q
33405           }
33406           /^X\(\/\/\)$/{
33407             s//\1/
33408             q
33409           }
33410           /^X\(\/\).*/{
33411             s//\1/
33412             q
33413           }
33414           s/.*/./; q'`
33415   as_dir="$ac_dir"; as_fn_mkdir_p
33416   ac_builddir=.
33417
33418 case "$ac_dir" in
33419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33420 *)
33421   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33422   # A ".." for each directory in $ac_dir_suffix.
33423   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33424   case $ac_top_builddir_sub in
33425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33427   esac ;;
33428 esac
33429 ac_abs_top_builddir=$ac_pwd
33430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33431 # for backward compatibility:
33432 ac_top_builddir=$ac_top_build_prefix
33433
33434 case $srcdir in
33435   .)  # We are building in place.
33436     ac_srcdir=.
33437     ac_top_srcdir=$ac_top_builddir_sub
33438     ac_abs_top_srcdir=$ac_pwd ;;
33439   [\\/]* | ?:[\\/]* )  # Absolute name.
33440     ac_srcdir=$srcdir$ac_dir_suffix;
33441     ac_top_srcdir=$srcdir
33442     ac_abs_top_srcdir=$srcdir ;;
33443   *) # Relative name.
33444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33445     ac_top_srcdir=$ac_top_build_prefix$srcdir
33446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33447 esac
33448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33449
33450
33451   case $ac_mode in
33452   :F)
33453   #
33454   # CONFIG_FILE
33455   #
33456
33457   case $INSTALL in
33458   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33459   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33460   esac
33461   ac_MKDIR_P=$MKDIR_P
33462   case $MKDIR_P in
33463   [\\/$]* | ?:[\\/]* ) ;;
33464   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33465   esac
33466 _ACEOF
33467
33468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33469 # If the template does not know about datarootdir, expand it.
33470 # FIXME: This hack should be removed a few years after 2.60.
33471 ac_datarootdir_hack=; ac_datarootdir_seen=
33472 ac_sed_dataroot='
33473 /datarootdir/ {
33474   p
33475   q
33476 }
33477 /@datadir@/p
33478 /@docdir@/p
33479 /@infodir@/p
33480 /@localedir@/p
33481 /@mandir@/p'
33482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33483 *datarootdir*) ac_datarootdir_seen=yes;;
33484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33485   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33487 _ACEOF
33488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33489   ac_datarootdir_hack='
33490   s&@datadir@&$datadir&g
33491   s&@docdir@&$docdir&g
33492   s&@infodir@&$infodir&g
33493   s&@localedir@&$localedir&g
33494   s&@mandir@&$mandir&g
33495   s&\\\${datarootdir}&$datarootdir&g' ;;
33496 esac
33497 _ACEOF
33498
33499 # Neutralize VPATH when `$srcdir' = `.'.
33500 # Shell code in configure.ac might set extrasub.
33501 # FIXME: do we really want to maintain this feature?
33502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33503 ac_sed_extra="$ac_vpsub
33504 $extrasub
33505 _ACEOF
33506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33507 :t
33508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33509 s|@configure_input@|$ac_sed_conf_input|;t t
33510 s&@top_builddir@&$ac_top_builddir_sub&;t t
33511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33512 s&@srcdir@&$ac_srcdir&;t t
33513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33514 s&@top_srcdir@&$ac_top_srcdir&;t t
33515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33516 s&@builddir@&$ac_builddir&;t t
33517 s&@abs_builddir@&$ac_abs_builddir&;t t
33518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33519 s&@INSTALL@&$ac_INSTALL&;t t
33520 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33521 $ac_datarootdir_hack
33522 "
33523 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33524   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33525
33526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33527   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33528   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
33529       "$ac_tmp/out"`; test -z "$ac_out"; } &&
33530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33531 which seems to be undefined.  Please make sure it is defined" >&5
33532 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33533 which seems to be undefined.  Please make sure it is defined" >&2;}
33534
33535   rm -f "$ac_tmp/stdin"
33536   case $ac_file in
33537   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33538   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33539   esac \
33540   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33541  ;;
33542   :H)
33543   #
33544   # CONFIG_HEADER
33545   #
33546   if test x"$ac_file" != x-; then
33547     {
33548       $as_echo "/* $configure_input  */" \
33549       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33550     } >"$ac_tmp/config.h" \
33551       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33552     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33553       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33554 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33555     else
33556       rm -f "$ac_file"
33557       mv "$ac_tmp/config.h" "$ac_file" \
33558         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33559     fi
33560   else
33561     $as_echo "/* $configure_input  */" \
33562       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33563       || as_fn_error $? "could not create -" "$LINENO" 5
33564   fi
33565 # Compute "$ac_file"'s index in $config_headers.
33566 _am_arg="$ac_file"
33567 _am_stamp_count=1
33568 for _am_header in $config_headers :; do
33569   case $_am_header in
33570     $_am_arg | $_am_arg:* )
33571       break ;;
33572     * )
33573       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33574   esac
33575 done
33576 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33577 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33578          X"$_am_arg" : 'X\(//\)[^/]' \| \
33579          X"$_am_arg" : 'X\(//\)$' \| \
33580          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33581 $as_echo X"$_am_arg" |
33582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33583             s//\1/
33584             q
33585           }
33586           /^X\(\/\/\)[^/].*/{
33587             s//\1/
33588             q
33589           }
33590           /^X\(\/\/\)$/{
33591             s//\1/
33592             q
33593           }
33594           /^X\(\/\).*/{
33595             s//\1/
33596             q
33597           }
33598           s/.*/./; q'`/stamp-h$_am_stamp_count
33599  ;;
33600
33601   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33602 $as_echo "$as_me: executing $ac_file commands" >&6;}
33603  ;;
33604   esac
33605
33606
33607   case $ac_file$ac_mode in
33608     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33609   # Older Autoconf quotes --file arguments for eval, but not when files
33610   # are listed without --file.  Let's play safe and only enable the eval
33611   # if we detect the quoting.
33612   # TODO: see whether this extra hack can be removed once we start
33613   # requiring Autoconf 2.70 or later.
33614   case $CONFIG_FILES in #(
33615   *\'*) :
33616     eval set x "$CONFIG_FILES" ;; #(
33617   *) :
33618     set x $CONFIG_FILES ;; #(
33619   *) :
33620      ;;
33621 esac
33622   shift
33623   # Used to flag and report bootstrapping failures.
33624   am_rc=0
33625   for am_mf
33626   do
33627     # Strip MF so we end up with the name of the file.
33628     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
33629     # Check whether this is an Automake generated Makefile which includes
33630     # dependency-tracking related rules and includes.
33631     # Grep'ing the whole file directly is not great: AIX grep has a line
33632     # limit of 2048, but all sed's we know have understand at least 4000.
33633     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
33634       || continue
33635     am_dirpart=`$as_dirname -- "$am_mf" ||
33636 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33637          X"$am_mf" : 'X\(//\)[^/]' \| \
33638          X"$am_mf" : 'X\(//\)$' \| \
33639          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33640 $as_echo X"$am_mf" |
33641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33642             s//\1/
33643             q
33644           }
33645           /^X\(\/\/\)[^/].*/{
33646             s//\1/
33647             q
33648           }
33649           /^X\(\/\/\)$/{
33650             s//\1/
33651             q
33652           }
33653           /^X\(\/\).*/{
33654             s//\1/
33655             q
33656           }
33657           s/.*/./; q'`
33658     am_filepart=`$as_basename -- "$am_mf" ||
33659 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
33660          X"$am_mf" : 'X\(//\)$' \| \
33661          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33662 $as_echo X/"$am_mf" |
33663     sed '/^.*\/\([^/][^/]*\)\/*$/{
33664             s//\1/
33665             q
33666           }
33667           /^X\/\(\/\/\)$/{
33668             s//\1/
33669             q
33670           }
33671           /^X\/\(\/\).*/{
33672             s//\1/
33673             q
33674           }
33675           s/.*/./; q'`
33676     { echo "$as_me:$LINENO: cd "$am_dirpart" \
33677       && sed -e '/# am--include-marker/d' "$am_filepart" \
33678         | $MAKE -f - am--depfiles" >&5
33679    (cd "$am_dirpart" \
33680       && sed -e '/# am--include-marker/d' "$am_filepart" \
33681         | $MAKE -f - am--depfiles) >&5 2>&5
33682    ac_status=$?
33683    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684    (exit $ac_status); } || am_rc=$?
33685   done
33686   if test $am_rc -ne 0; then
33687     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33689 as_fn_error $? "Something went wrong bootstrapping makefile fragments
33690     for automatic dependency tracking.  If GNU make was not used, consider
33691     re-running the configure script with MAKE=\"gmake\" (or whatever is
33692     necessary).  You can also try re-running configure with the
33693     '--disable-dependency-tracking' option to at least be able to build
33694     the package (albeit without support for automatic dependency tracking).
33695 See \`config.log' for more details" "$LINENO" 5; }
33696   fi
33697   { am_dirpart=; unset am_dirpart;}
33698   { am_filepart=; unset am_filepart;}
33699   { am_mf=; unset am_mf;}
33700   { am_rc=; unset am_rc;}
33701   rm -f conftest-deps.mk
33702 }
33703  ;;
33704     "libtool":C)
33705
33706     # See if we are running on zsh, and set the options that allow our
33707     # commands through without removal of \ escapes.
33708     if test -n "${ZSH_VERSION+set}"; then
33709       setopt NO_GLOB_SUBST
33710     fi
33711
33712     cfgfile=${ofile}T
33713     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33714     $RM "$cfgfile"
33715
33716     cat <<_LT_EOF >> "$cfgfile"
33717 #! $SHELL
33718 # Generated automatically by $as_me ($PACKAGE) $VERSION
33719 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33720
33721 # Provide generalized library-building support services.
33722 # Written by Gordon Matzigkeit, 1996
33723
33724 # Copyright (C) 2014 Free Software Foundation, Inc.
33725 # This is free software; see the source for copying conditions.  There is NO
33726 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33727
33728 # GNU Libtool is free software; you can redistribute it and/or modify
33729 # it under the terms of the GNU General Public License as published by
33730 # the Free Software Foundation; either version 2 of of the License, or
33731 # (at your option) any later version.
33732 #
33733 # As a special exception to the GNU General Public License, if you
33734 # distribute this file as part of a program or library that is built
33735 # using GNU Libtool, you may include this file under the  same
33736 # distribution terms that you use for the rest of that program.
33737 #
33738 # GNU Libtool is distributed in the hope that it will be useful, but
33739 # WITHOUT ANY WARRANTY; without even the implied warranty of
33740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33741 # GNU General Public License for more details.
33742 #
33743 # You should have received a copy of the GNU General Public License
33744 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
33745
33746
33747 # The names of the tagged configurations supported by this script.
33748 available_tags='CXX '
33749
33750 # Configured defaults for sys_lib_dlsearch_path munging.
33751 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33752
33753 # ### BEGIN LIBTOOL CONFIG
33754
33755 # Which release of libtool.m4 was used?
33756 macro_version=$macro_version
33757 macro_revision=$macro_revision
33758
33759 # Assembler program.
33760 AS=$lt_AS
33761
33762 # DLL creation program.
33763 DLLTOOL=$lt_DLLTOOL
33764
33765 # Object dumper program.
33766 OBJDUMP=$lt_OBJDUMP
33767
33768 # Whether or not to build shared libraries.
33769 build_libtool_libs=$enable_shared
33770
33771 # Whether or not to build static libraries.
33772 build_old_libs=$enable_static
33773
33774 # What type of objects to build.
33775 pic_mode=$pic_mode
33776
33777 # Whether or not to optimize for fast installation.
33778 fast_install=$enable_fast_install
33779
33780 # Shared archive member basename,for filename based shared library versioning on AIX.
33781 shared_archive_member_spec=$shared_archive_member_spec
33782
33783 # Shell to use when invoking shell scripts.
33784 SHELL=$lt_SHELL
33785
33786 # An echo program that protects backslashes.
33787 ECHO=$lt_ECHO
33788
33789 # The PATH separator for the build system.
33790 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33791
33792 # The host system.
33793 host_alias=$host_alias
33794 host=$host
33795 host_os=$host_os
33796
33797 # The build system.
33798 build_alias=$build_alias
33799 build=$build
33800 build_os=$build_os
33801
33802 # A sed program that does not truncate output.
33803 SED=$lt_SED
33804
33805 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33806 Xsed="\$SED -e 1s/^X//"
33807
33808 # A grep program that handles long lines.
33809 GREP=$lt_GREP
33810
33811 # An ERE matcher.
33812 EGREP=$lt_EGREP
33813
33814 # A literal string matcher.
33815 FGREP=$lt_FGREP
33816
33817 # A BSD- or MS-compatible name lister.
33818 NM=$lt_NM
33819
33820 # Whether we need soft or hard links.
33821 LN_S=$lt_LN_S
33822
33823 # What is the maximum length of a command?
33824 max_cmd_len=$max_cmd_len
33825
33826 # Object file suffix (normally "o").
33827 objext=$ac_objext
33828
33829 # Executable file suffix (normally "").
33830 exeext=$exeext
33831
33832 # whether the shell understands "unset".
33833 lt_unset=$lt_unset
33834
33835 # turn spaces into newlines.
33836 SP2NL=$lt_lt_SP2NL
33837
33838 # turn newlines into spaces.
33839 NL2SP=$lt_lt_NL2SP
33840
33841 # convert \$build file names to \$host format.
33842 to_host_file_cmd=$lt_cv_to_host_file_cmd
33843
33844 # convert \$build files to toolchain format.
33845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33846
33847 # Method to check whether dependent libraries are shared objects.
33848 deplibs_check_method=$lt_deplibs_check_method
33849
33850 # Command to use when deplibs_check_method = "file_magic".
33851 file_magic_cmd=$lt_file_magic_cmd
33852
33853 # How to find potential files when deplibs_check_method = "file_magic".
33854 file_magic_glob=$lt_file_magic_glob
33855
33856 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33857 want_nocaseglob=$lt_want_nocaseglob
33858
33859 # Command to associate shared and link libraries.
33860 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33861
33862 # The archiver.
33863 AR=$lt_AR
33864
33865 # Flags to create an archive.
33866 AR_FLAGS=$lt_AR_FLAGS
33867
33868 # How to feed a file listing to the archiver.
33869 archiver_list_spec=$lt_archiver_list_spec
33870
33871 # A symbol stripping program.
33872 STRIP=$lt_STRIP
33873
33874 # Commands used to install an old-style archive.
33875 RANLIB=$lt_RANLIB
33876 old_postinstall_cmds=$lt_old_postinstall_cmds
33877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33878
33879 # Whether to use a lock for old archive extraction.
33880 lock_old_archive_extraction=$lock_old_archive_extraction
33881
33882 # A C compiler.
33883 LTCC=$lt_CC
33884
33885 # LTCC compiler flags.
33886 LTCFLAGS=$lt_CFLAGS
33887
33888 # Take the output of nm and produce a listing of raw symbols and C names.
33889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33890
33891 # Transform the output of nm in a proper C declaration.
33892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33893
33894 # Transform the output of nm into a list of symbols to manually relocate.
33895 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33896
33897 # Transform the output of nm in a C name address pair.
33898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33899
33900 # Transform the output of nm in a C name address pair when lib prefix is needed.
33901 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33902
33903 # The name lister interface.
33904 nm_interface=$lt_lt_cv_nm_interface
33905
33906 # Specify filename containing input files for \$NM.
33907 nm_file_list_spec=$lt_nm_file_list_spec
33908
33909 # The root where to search for dependent libraries,and where our libraries should be installed.
33910 lt_sysroot=$lt_sysroot
33911
33912 # Command to truncate a binary pipe.
33913 lt_truncate_bin=$lt_lt_cv_truncate_bin
33914
33915 # The name of the directory that contains temporary libtool files.
33916 objdir=$objdir
33917
33918 # Used to examine libraries when file_magic_cmd begins with "file".
33919 MAGIC_CMD=$MAGIC_CMD
33920
33921 # Must we lock files when doing compilation?
33922 need_locks=$lt_need_locks
33923
33924 # Manifest tool.
33925 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33926
33927 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33928 DSYMUTIL=$lt_DSYMUTIL
33929
33930 # Tool to change global to local symbols on Mac OS X.
33931 NMEDIT=$lt_NMEDIT
33932
33933 # Tool to manipulate fat objects and archives on Mac OS X.
33934 LIPO=$lt_LIPO
33935
33936 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33937 OTOOL=$lt_OTOOL
33938
33939 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33940 OTOOL64=$lt_OTOOL64
33941
33942 # Old archive suffix (normally "a").
33943 libext=$libext
33944
33945 # Shared library suffix (normally ".so").
33946 shrext_cmds=$lt_shrext_cmds
33947
33948 # The commands to extract the exported symbol list from a shared archive.
33949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33950
33951 # Variables whose values should be saved in libtool wrapper scripts and
33952 # restored at link time.
33953 variables_saved_for_relink=$lt_variables_saved_for_relink
33954
33955 # Do we need the "lib" prefix for modules?
33956 need_lib_prefix=$need_lib_prefix
33957
33958 # Do we need a version for libraries?
33959 need_version=$need_version
33960
33961 # Library versioning type.
33962 version_type=$version_type
33963
33964 # Shared library runtime path variable.
33965 runpath_var=$runpath_var
33966
33967 # Shared library path variable.
33968 shlibpath_var=$shlibpath_var
33969
33970 # Is shlibpath searched before the hard-coded library search path?
33971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33972
33973 # Format of library name prefix.
33974 libname_spec=$lt_libname_spec
33975
33976 # List of archive names.  First name is the real one, the rest are links.
33977 # The last name is the one that the linker finds with -lNAME
33978 library_names_spec=$lt_library_names_spec
33979
33980 # The coded name of the library, if different from the real name.
33981 soname_spec=$lt_soname_spec
33982
33983 # Permission mode override for installation of shared libraries.
33984 install_override_mode=$lt_install_override_mode
33985
33986 # Command to use after installation of a shared archive.
33987 postinstall_cmds=$lt_postinstall_cmds
33988
33989 # Command to use after uninstallation of a shared archive.
33990 postuninstall_cmds=$lt_postuninstall_cmds
33991
33992 # Commands used to finish a libtool library installation in a directory.
33993 finish_cmds=$lt_finish_cmds
33994
33995 # As "finish_cmds", except a single script fragment to be evaled but
33996 # not shown.
33997 finish_eval=$lt_finish_eval
33998
33999 # Whether we should hardcode library paths into libraries.
34000 hardcode_into_libs=$hardcode_into_libs
34001
34002 # Compile-time system search path for libraries.
34003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34004
34005 # Detected run-time system search path for libraries.
34006 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34007
34008 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34009 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34010
34011 # Whether dlopen is supported.
34012 dlopen_support=$enable_dlopen
34013
34014 # Whether dlopen of programs is supported.
34015 dlopen_self=$enable_dlopen_self
34016
34017 # Whether dlopen of statically linked programs is supported.
34018 dlopen_self_static=$enable_dlopen_self_static
34019
34020 # Commands to strip libraries.
34021 old_striplib=$lt_old_striplib
34022 striplib=$lt_striplib
34023
34024
34025 # The linker used to build libraries.
34026 LD=$lt_LD
34027
34028 # How to create reloadable object files.
34029 reload_flag=$lt_reload_flag
34030 reload_cmds=$lt_reload_cmds
34031
34032 # Commands used to build an old-style archive.
34033 old_archive_cmds=$lt_old_archive_cmds
34034
34035 # A language specific compiler.
34036 CC=$lt_compiler
34037
34038 # Is the compiler the GNU compiler?
34039 with_gcc=$GCC
34040
34041 # Compiler flag to turn off builtin functions.
34042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34043
34044 # Additional compiler flags for building library objects.
34045 pic_flag=$lt_lt_prog_compiler_pic
34046
34047 # How to pass a linker flag through the compiler.
34048 wl=$lt_lt_prog_compiler_wl
34049
34050 # Compiler flag to prevent dynamic linking.
34051 link_static_flag=$lt_lt_prog_compiler_static
34052
34053 # Does compiler simultaneously support -c and -o options?
34054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34055
34056 # Whether or not to add -lc for building shared libraries.
34057 build_libtool_need_lc=$archive_cmds_need_lc
34058
34059 # Whether or not to disallow shared libs when runtime libs are static.
34060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34061
34062 # Compiler flag to allow reflexive dlopens.
34063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34064
34065 # Compiler flag to generate shared objects directly from archives.
34066 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34067
34068 # Whether the compiler copes with passing no objects directly.
34069 compiler_needs_object=$lt_compiler_needs_object
34070
34071 # Create an old-style archive from a shared archive.
34072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34073
34074 # Create a temporary old-style archive to link instead of a shared archive.
34075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34076
34077 # Commands used to build a shared archive.
34078 archive_cmds=$lt_archive_cmds
34079 archive_expsym_cmds=$lt_archive_expsym_cmds
34080
34081 # Commands used to build a loadable module if different from building
34082 # a shared archive.
34083 module_cmds=$lt_module_cmds
34084 module_expsym_cmds=$lt_module_expsym_cmds
34085
34086 # Whether we are building with GNU ld or not.
34087 with_gnu_ld=$lt_with_gnu_ld
34088
34089 # Flag that allows shared libraries with undefined symbols to be built.
34090 allow_undefined_flag=$lt_allow_undefined_flag
34091
34092 # Flag that enforces no undefined symbols.
34093 no_undefined_flag=$lt_no_undefined_flag
34094
34095 # Flag to hardcode \$libdir into a binary during linking.
34096 # This must work even if \$libdir does not exist
34097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34098
34099 # Whether we need a single "-rpath" flag with a separated argument.
34100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34101
34102 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34103 # DIR into the resulting binary.
34104 hardcode_direct=$hardcode_direct
34105
34106 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34107 # DIR into the resulting binary and the resulting library dependency is
34108 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34109 # library is relocated.
34110 hardcode_direct_absolute=$hardcode_direct_absolute
34111
34112 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34113 # into the resulting binary.
34114 hardcode_minus_L=$hardcode_minus_L
34115
34116 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34117 # into the resulting binary.
34118 hardcode_shlibpath_var=$hardcode_shlibpath_var
34119
34120 # Set to "yes" if building a shared library automatically hardcodes DIR
34121 # into the library and all subsequent libraries and executables linked
34122 # against it.
34123 hardcode_automatic=$hardcode_automatic
34124
34125 # Set to yes if linker adds runtime paths of dependent libraries
34126 # to runtime path list.
34127 inherit_rpath=$inherit_rpath
34128
34129 # Whether libtool must link a program against all its dependency libraries.
34130 link_all_deplibs=$link_all_deplibs
34131
34132 # Set to "yes" if exported symbols are required.
34133 always_export_symbols=$always_export_symbols
34134
34135 # The commands to list exported symbols.
34136 export_symbols_cmds=$lt_export_symbols_cmds
34137
34138 # Symbols that should not be listed in the preloaded symbols.
34139 exclude_expsyms=$lt_exclude_expsyms
34140
34141 # Symbols that must always be exported.
34142 include_expsyms=$lt_include_expsyms
34143
34144 # Commands necessary for linking programs (against libraries) with templates.
34145 prelink_cmds=$lt_prelink_cmds
34146
34147 # Commands necessary for finishing linking programs.
34148 postlink_cmds=$lt_postlink_cmds
34149
34150 # Specify filename containing input files.
34151 file_list_spec=$lt_file_list_spec
34152
34153 # How to hardcode a shared library path into an executable.
34154 hardcode_action=$hardcode_action
34155
34156 # The directories searched by this compiler when creating a shared library.
34157 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34158
34159 # Dependencies to place before and after the objects being linked to
34160 # create a shared library.
34161 predep_objects=$lt_predep_objects
34162 postdep_objects=$lt_postdep_objects
34163 predeps=$lt_predeps
34164 postdeps=$lt_postdeps
34165
34166 # The library search path used internally by the compiler when linking
34167 # a shared library.
34168 compiler_lib_search_path=$lt_compiler_lib_search_path
34169
34170 # ### END LIBTOOL CONFIG
34171
34172 _LT_EOF
34173
34174     cat <<'_LT_EOF' >> "$cfgfile"
34175
34176 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34177
34178 # func_munge_path_list VARIABLE PATH
34179 # -----------------------------------
34180 # VARIABLE is name of variable containing _space_ separated list of
34181 # directories to be munged by the contents of PATH, which is string
34182 # having a format:
34183 # "DIR[:DIR]:"
34184 #       string "DIR[ DIR]" will be prepended to VARIABLE
34185 # ":DIR[:DIR]"
34186 #       string "DIR[ DIR]" will be appended to VARIABLE
34187 # "DIRP[:DIRP]::[DIRA:]DIRA"
34188 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34189 #       "DIRA[ DIRA]" will be appended to VARIABLE
34190 # "DIR[:DIR]"
34191 #       VARIABLE will be replaced by "DIR[ DIR]"
34192 func_munge_path_list ()
34193 {
34194     case x$2 in
34195     x)
34196         ;;
34197     *:)
34198         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34199         ;;
34200     x:*)
34201         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34202         ;;
34203     *::*)
34204         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34205         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34206         ;;
34207     *)
34208         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34209         ;;
34210     esac
34211 }
34212
34213
34214 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
34215 func_cc_basename ()
34216 {
34217     for cc_temp in $*""; do
34218       case $cc_temp in
34219         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34220         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34221         \-*) ;;
34222         *) break;;
34223       esac
34224     done
34225     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34226 }
34227
34228
34229 # ### END FUNCTIONS SHARED WITH CONFIGURE
34230
34231 _LT_EOF
34232
34233   case $host_os in
34234   aix3*)
34235     cat <<\_LT_EOF >> "$cfgfile"
34236 # AIX sometimes has problems with the GCC collect2 program.  For some
34237 # reason, if we set the COLLECT_NAMES environment variable, the problems
34238 # vanish in a puff of smoke.
34239 if test set != "${COLLECT_NAMES+set}"; then
34240   COLLECT_NAMES=
34241   export COLLECT_NAMES
34242 fi
34243 _LT_EOF
34244     ;;
34245   esac
34246
34247
34248 ltmain=$ac_aux_dir/ltmain.sh
34249
34250
34251   # We use sed instead of cat because bash on DJGPP gets confused if
34252   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34253   # text mode, it properly converts lines to CR/LF.  This bash problem
34254   # is reportedly fixed, but why not run on old versions too?
34255   sed '$q' "$ltmain" >> "$cfgfile" \
34256      || (rm -f "$cfgfile"; exit 1)
34257
34258    mv -f "$cfgfile" "$ofile" ||
34259     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34260   chmod +x "$ofile"
34261
34262
34263     cat <<_LT_EOF >> "$ofile"
34264
34265 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34266
34267 # The linker used to build libraries.
34268 LD=$lt_LD_CXX
34269
34270 # How to create reloadable object files.
34271 reload_flag=$lt_reload_flag_CXX
34272 reload_cmds=$lt_reload_cmds_CXX
34273
34274 # Commands used to build an old-style archive.
34275 old_archive_cmds=$lt_old_archive_cmds_CXX
34276
34277 # A language specific compiler.
34278 CC=$lt_compiler_CXX
34279
34280 # Is the compiler the GNU compiler?
34281 with_gcc=$GCC_CXX
34282
34283 # Compiler flag to turn off builtin functions.
34284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34285
34286 # Additional compiler flags for building library objects.
34287 pic_flag=$lt_lt_prog_compiler_pic_CXX
34288
34289 # How to pass a linker flag through the compiler.
34290 wl=$lt_lt_prog_compiler_wl_CXX
34291
34292 # Compiler flag to prevent dynamic linking.
34293 link_static_flag=$lt_lt_prog_compiler_static_CXX
34294
34295 # Does compiler simultaneously support -c and -o options?
34296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34297
34298 # Whether or not to add -lc for building shared libraries.
34299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34300
34301 # Whether or not to disallow shared libs when runtime libs are static.
34302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34303
34304 # Compiler flag to allow reflexive dlopens.
34305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34306
34307 # Compiler flag to generate shared objects directly from archives.
34308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34309
34310 # Whether the compiler copes with passing no objects directly.
34311 compiler_needs_object=$lt_compiler_needs_object_CXX
34312
34313 # Create an old-style archive from a shared archive.
34314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34315
34316 # Create a temporary old-style archive to link instead of a shared archive.
34317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34318
34319 # Commands used to build a shared archive.
34320 archive_cmds=$lt_archive_cmds_CXX
34321 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34322
34323 # Commands used to build a loadable module if different from building
34324 # a shared archive.
34325 module_cmds=$lt_module_cmds_CXX
34326 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34327
34328 # Whether we are building with GNU ld or not.
34329 with_gnu_ld=$lt_with_gnu_ld_CXX
34330
34331 # Flag that allows shared libraries with undefined symbols to be built.
34332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34333
34334 # Flag that enforces no undefined symbols.
34335 no_undefined_flag=$lt_no_undefined_flag_CXX
34336
34337 # Flag to hardcode \$libdir into a binary during linking.
34338 # This must work even if \$libdir does not exist
34339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34340
34341 # Whether we need a single "-rpath" flag with a separated argument.
34342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34343
34344 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34345 # DIR into the resulting binary.
34346 hardcode_direct=$hardcode_direct_CXX
34347
34348 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34349 # DIR into the resulting binary and the resulting library dependency is
34350 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34351 # library is relocated.
34352 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34353
34354 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34355 # into the resulting binary.
34356 hardcode_minus_L=$hardcode_minus_L_CXX
34357
34358 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34359 # into the resulting binary.
34360 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34361
34362 # Set to "yes" if building a shared library automatically hardcodes DIR
34363 # into the library and all subsequent libraries and executables linked
34364 # against it.
34365 hardcode_automatic=$hardcode_automatic_CXX
34366
34367 # Set to yes if linker adds runtime paths of dependent libraries
34368 # to runtime path list.
34369 inherit_rpath=$inherit_rpath_CXX
34370
34371 # Whether libtool must link a program against all its dependency libraries.
34372 link_all_deplibs=$link_all_deplibs_CXX
34373
34374 # Set to "yes" if exported symbols are required.
34375 always_export_symbols=$always_export_symbols_CXX
34376
34377 # The commands to list exported symbols.
34378 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34379
34380 # Symbols that should not be listed in the preloaded symbols.
34381 exclude_expsyms=$lt_exclude_expsyms_CXX
34382
34383 # Symbols that must always be exported.
34384 include_expsyms=$lt_include_expsyms_CXX
34385
34386 # Commands necessary for linking programs (against libraries) with templates.
34387 prelink_cmds=$lt_prelink_cmds_CXX
34388
34389 # Commands necessary for finishing linking programs.
34390 postlink_cmds=$lt_postlink_cmds_CXX
34391
34392 # Specify filename containing input files.
34393 file_list_spec=$lt_file_list_spec_CXX
34394
34395 # How to hardcode a shared library path into an executable.
34396 hardcode_action=$hardcode_action_CXX
34397
34398 # The directories searched by this compiler when creating a shared library.
34399 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34400
34401 # Dependencies to place before and after the objects being linked to
34402 # create a shared library.
34403 predep_objects=$lt_predep_objects_CXX
34404 postdep_objects=$lt_postdep_objects_CXX
34405 predeps=$lt_predeps_CXX
34406 postdeps=$lt_postdeps_CXX
34407
34408 # The library search path used internally by the compiler when linking
34409 # a shared library.
34410 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34411
34412 # ### END LIBTOOL TAG CONFIG: CXX
34413 _LT_EOF
34414
34415  ;;
34416
34417   esac
34418 done # for ac_tag
34419
34420
34421 as_fn_exit 0
34422 _ACEOF
34423 ac_clean_files=$ac_clean_files_save
34424
34425 test $ac_write_fail = 0 ||
34426   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34427
34428
34429 # configure is writing to config.log, and then calls config.status.
34430 # config.status does its own redirection, appending to config.log.
34431 # Unfortunately, on DOS this fails, as config.log is still kept open
34432 # by configure, so config.status won't be able to write to it; its
34433 # output is simply discarded.  So we exec the FD to /dev/null,
34434 # effectively closing config.log, so it can be properly (re)opened and
34435 # appended to by config.status.  When coming back to configure, we
34436 # need to make the FD available again.
34437 if test "$no_create" != yes; then
34438   ac_cs_success=:
34439   ac_config_status_args=
34440   test "$silent" = yes &&
34441     ac_config_status_args="$ac_config_status_args --quiet"
34442   exec 5>/dev/null
34443   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34444   exec 5>>config.log
34445   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34446   # would make configure fail if this is the last instruction.
34447   $ac_cs_success || as_fn_exit 1
34448 fi
34449
34450 #
34451 # CONFIG_SUBDIRS section.
34452 #
34453 if test "$no_recursion" != yes; then
34454
34455   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34456   # so they do not pile up.
34457   ac_sub_configure_args=
34458   ac_prev=
34459   eval "set x $ac_configure_args"
34460   shift
34461   for ac_arg
34462   do
34463     if test -n "$ac_prev"; then
34464       ac_prev=
34465       continue
34466     fi
34467     case $ac_arg in
34468     -cache-file | --cache-file | --cache-fil | --cache-fi \
34469     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34470       ac_prev=cache_file ;;
34471     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34472     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34473     | --c=*)
34474       ;;
34475     --config-cache | -C)
34476       ;;
34477     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34478       ac_prev=srcdir ;;
34479     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34480       ;;
34481     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34482       ac_prev=prefix ;;
34483     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34484       ;;
34485     --disable-option-checking)
34486       ;;
34487     *)
34488       case $ac_arg in
34489       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34490       esac
34491       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34492     esac
34493   done
34494
34495   # Always prepend --prefix to ensure using the same prefix
34496   # in subdir configurations.
34497   ac_arg="--prefix=$prefix"
34498   case $ac_arg in
34499   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34500   esac
34501   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34502
34503   # Pass --silent
34504   if test "$silent" = yes; then
34505     ac_sub_configure_args="--silent $ac_sub_configure_args"
34506   fi
34507
34508   # Always prepend --disable-option-checking to silence warnings, since
34509   # different subdirs can have different --enable and --with options.
34510   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34511
34512   ac_popdir=`pwd`
34513   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34514
34515     # Do not complain, so a configure script can configure whichever
34516     # parts of a large source tree are present.
34517     test -d "$srcdir/$ac_dir" || continue
34518
34519     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34520     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34521     $as_echo "$ac_msg" >&6
34522     as_dir="$ac_dir"; as_fn_mkdir_p
34523     ac_builddir=.
34524
34525 case "$ac_dir" in
34526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34527 *)
34528   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34529   # A ".." for each directory in $ac_dir_suffix.
34530   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34531   case $ac_top_builddir_sub in
34532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34534   esac ;;
34535 esac
34536 ac_abs_top_builddir=$ac_pwd
34537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34538 # for backward compatibility:
34539 ac_top_builddir=$ac_top_build_prefix
34540
34541 case $srcdir in
34542   .)  # We are building in place.
34543     ac_srcdir=.
34544     ac_top_srcdir=$ac_top_builddir_sub
34545     ac_abs_top_srcdir=$ac_pwd ;;
34546   [\\/]* | ?:[\\/]* )  # Absolute name.
34547     ac_srcdir=$srcdir$ac_dir_suffix;
34548     ac_top_srcdir=$srcdir
34549     ac_abs_top_srcdir=$srcdir ;;
34550   *) # Relative name.
34551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34552     ac_top_srcdir=$ac_top_build_prefix$srcdir
34553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34554 esac
34555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34556
34557
34558     cd "$ac_dir"
34559
34560     # Check for guested configure; otherwise get Cygnus style configure.
34561     if test -f "$ac_srcdir/configure.gnu"; then
34562       ac_sub_configure=$ac_srcdir/configure.gnu
34563     elif test -f "$ac_srcdir/configure"; then
34564       ac_sub_configure=$ac_srcdir/configure
34565     elif test -f "$ac_srcdir/configure.in"; then
34566       # This should be Cygnus configure.
34567       ac_sub_configure=$ac_aux_dir/configure
34568     else
34569       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34571       ac_sub_configure=
34572     fi
34573
34574     # The recursion is here.
34575     if test -n "$ac_sub_configure"; then
34576       # Make the cache file name correct relative to the subdirectory.
34577       case $cache_file in
34578       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34579       *) # Relative name.
34580         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34581       esac
34582
34583       { $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
34584 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34585       # The eval makes quoting arguments work.
34586       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34587            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34588         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34589     fi
34590
34591     cd "$ac_popdir"
34592   done
34593 fi
34594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34597 fi
34598
34599
34600 ## ---------------------------------- ##
34601 ##  Start of distclean amending code  ##
34602 ## ---------------------------------- ##
34603
34604 for xc_subdir in '.'
34605 do
34606
34607 if test ! -f "$xc_subdir/Makefile"; then
34608   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
34609   exit 1
34610 fi
34611
34612 # Fetch dependency tracking file list from Makefile include lines.
34613
34614 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
34615 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
34616
34617 # --disable-dependency-tracking might have been used, consequently
34618 # there is nothing to amend without a dependency tracking file list.
34619
34620 if test $xc_cnt_words -gt 0; then
34621
34622 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
34623 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
34624
34625 # Build Makefile specific patch hunk.
34626
34627 xc_p="$xc_subdir/xc_patch.tmp"
34628
34629 xc_rm_depfiles=`echo "$xc_inc_lines" \
34630   | $SED 's%include%    -rm -f%' 2>/dev/null`
34631
34632 xc_dep_subdirs=`echo "$xc_inc_lines" \
34633   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
34634   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
34635   | sort | uniq`
34636
34637 echo "$xc_rm_depfiles" >$xc_p
34638
34639 for xc_dep_dir in $xc_dep_subdirs; do
34640   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
34641   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
34642   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
34643   echo "${xc_tab}fi"                                                                >>$xc_p
34644 done
34645
34646 # Build Makefile patching sed scripts.
34647
34648 xc_s1="$xc_subdir/xc_script_1.tmp"
34649 xc_s2="$xc_subdir/xc_script_2.tmp"
34650 xc_s3="$xc_subdir/xc_script_3.tmp"
34651
34652 cat >$xc_s1 <<\_EOT
34653 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
34654   s/^.*(DEPDIR)/___xc_depdir_line___/
34655 }
34656 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
34657   s/^.*(DEPDIR)/___xc_depdir_line___/
34658 }
34659 _EOT
34660
34661 cat >$xc_s2 <<\_EOT
34662 /___xc_depdir_line___$/{
34663   N
34664   /___xc_depdir_line___$/D
34665 }
34666 _EOT
34667
34668 cat >$xc_s3 <<_EOT
34669 /^___xc_depdir_line___/{
34670   r $xc_p
34671   d
34672 }
34673 _EOT
34674
34675 # Apply patch to Makefile and cleanup.
34676
34677 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
34678 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
34679 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
34680
34681 if test -f "$xc_subdir/Makefile.tmp3"; then
34682   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
34683 fi
34684
34685 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
34686 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
34687 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
34688
34689 test -f "$xc_p"  && rm -f "$xc_p"
34690 test -f "$xc_s1" && rm -f "$xc_s1"
34691 test -f "$xc_s2" && rm -f "$xc_s2"
34692 test -f "$xc_s3" && rm -f "$xc_s3"
34693
34694 fi
34695
34696 done
34697
34698 ## -------------------------------- ##
34699 ##  End of distclean amending code  ##
34700 ## -------------------------------- ##
34701
34702