Upgrade to 1.18.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.71 for c-ares 1.18.1.
4 #
5 # Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14
15 ## -------------------------------- ##
16 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
17 ## -------------------------------- ##
18
19 xc_configure_preamble_ver_major='1'
20 xc_configure_preamble_ver_minor='0'
21
22 #
23 # Set IFS to space, tab and newline.
24 #
25
26 xc_space=' '
27 xc_tab='        '
28 xc_newline='
29 '
30 IFS="$xc_space$xc_tab$xc_newline"
31
32 #
33 # Set internationalization behavior variables.
34 #
35
36 LANG='C'
37 LC_ALL='C'
38 LANGUAGE='C'
39 export LANG
40 export LC_ALL
41 export LANGUAGE
42
43 #
44 # Some useful variables.
45 #
46
47 xc_msg_warn='configure: WARNING:'
48 xc_msg_abrt='Can not continue.'
49 xc_msg_err='configure: error:'
50
51 #
52 # Verify that 'echo' command is available, otherwise abort.
53 #
54
55 xc_tst_str='unknown'
56 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
57 case "x$xc_tst_str" in # ((
58   xsuccess)
59     :
60     ;;
61   *)
62     # Try built-in echo, and fail.
63     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
64     exit 1
65     ;;
66 esac
67
68 #
69 # Verify that 'test' command is available, otherwise abort.
70 #
71
72 xc_tst_str='unknown'
73 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
74 case "x$xc_tst_str" in # ((
75   xsuccess)
76     :
77     ;;
78   *)
79     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
80     exit 1
81     ;;
82 esac
83
84 #
85 # Verify that 'PATH' variable is set, otherwise abort.
86 #
87
88 xc_tst_str='unknown'
89 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
90 case "x$xc_tst_str" in # ((
91   xsuccess)
92     :
93     ;;
94   *)
95     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
96     exit 1
97     ;;
98 esac
99
100 #
101 # Verify that 'expr' command is available, otherwise abort.
102 #
103
104 xc_tst_str='unknown'
105 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
106 case "x$xc_tst_str" in # ((
107   x7)
108     :
109     ;;
110   *)
111     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
112     exit 1
113     ;;
114 esac
115
116 #
117 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
118 #
119
120 xc_tst_str='unknown'
121 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
122   | sed -e 's:unknown:success:' 2>/dev/null`
123 case "x$xc_tst_str" in # ((
124   xsuccess)
125     :
126     ;;
127   *)
128     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
129     exit 1
130     ;;
131 esac
132
133 #
134 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
135 #
136
137 xc_tst_str='unknown'
138 (`echo "$xc_tst_str" 2>/dev/null \
139   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
140 case "x$xc_tst_str" in # ((
141   xsuccess)
142     :
143     ;;
144   *)
145     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
146     exit 1
147     ;;
148 esac
149
150 #
151 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
152 #
153
154 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
155 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
156   | tr -d "0123456789$xc_tab" 2>/dev/null`
157 case "x$xc_tst_str" in # ((
158   xsuccess)
159     :
160     ;;
161   *)
162     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
163     exit 1
164     ;;
165 esac
166
167 #
168 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
169 #
170
171 xc_tst_str='unknown unknown unknown unknown'
172 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
173   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
174 case "x$xc_tst_str" in # ((
175   x4)
176     :
177     ;;
178   *)
179     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
180     exit 1
181     ;;
182 esac
183
184 #
185 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
186 #
187
188 xc_tst_str='unknown'
189 xc_tst_str=`cat <<_EOT 2>/dev/null \
190   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
191 unknown
192 unknown
193 unknown
194 _EOT`
195 case "x$xc_tst_str" in # ((
196   x3)
197     :
198     ;;
199   *)
200     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
201     exit 1
202     ;;
203 esac
204
205 #
206 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
207 #
208
209 # Directory count in 'PATH' when using a colon separator.
210 xc_tst_dirs_col='x'
211 xc_tst_prev_IFS=$IFS; IFS=':'
212 for xc_tst_dir in $PATH; do
213   IFS=$xc_tst_prev_IFS
214   xc_tst_dirs_col="x$xc_tst_dirs_col"
215 done
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
218
219 # Directory count in 'PATH' when using a semicolon separator.
220 xc_tst_dirs_sem='x'
221 xc_tst_prev_IFS=$IFS; IFS=';'
222 for xc_tst_dir in $PATH; do
223   IFS=$xc_tst_prev_IFS
224   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
225 done
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
228
229 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
230   # When both counting methods give the same result we do not want to
231   # chose one over the other, and consider auto-detection not possible.
232   if test -z "$PATH_SEPARATOR"; then
233     # Stop dead until user provides 'PATH_SEPARATOR' definition.
234     echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
235     exit 1
236   fi
237 else
238   # Separator with the greater directory count is the auto-detected one.
239   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
240     xc_tst_auto_separator=';'
241   else
242     xc_tst_auto_separator=':'
243   fi
244   if test -z "$PATH_SEPARATOR"; then
245     # Simply use the auto-detected one when not already set.
246     PATH_SEPARATOR=$xc_tst_auto_separator
247   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
248     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
249   fi
250 fi
251 xc_PATH_SEPARATOR=$PATH_SEPARATOR
252
253 xc_configure_preamble_result='yes'
254
255
256 ## -------------------- ##
257 ## M4sh Initialization. ##
258 ## -------------------- ##
259
260 # Be more Bourne compatible
261 DUALCASE=1; export DUALCASE # for MKS sh
262 as_nop=:
263 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
264 then :
265   emulate sh
266   NULLCMD=:
267   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else $as_nop
272   case `(set -o) 2>/dev/null` in #(
273   *posix*) :
274     set -o posix ;; #(
275   *) :
276      ;;
277 esac
278 fi
279
280
281
282 # Reset variables that may have inherited troublesome values from
283 # the environment.
284
285 # IFS needs to be set, to space, tab, and newline, in precisely that order.
286 # (If _AS_PATH_WALK were called with IFS unset, it would have the
287 # side effect of setting IFS to empty, thus disabling word splitting.)
288 # Quoting is to prevent editors from complaining about space-tab.
289 as_nl='
290 '
291 export as_nl
292 IFS=" ""        $as_nl"
293
294 PS1='$ '
295 PS2='> '
296 PS4='+ '
297
298 # Ensure predictable behavior from utilities with locale-dependent output.
299 LC_ALL=C
300 export LC_ALL
301 LANGUAGE=C
302 export LANGUAGE
303
304 # We cannot yet rely on "unset" to work, but we need these variables
305 # to be unset--not just set to an empty or harmless value--now, to
306 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
307 # also avoids known problems related to "unset" and subshell syntax
308 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
309 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
310 do eval test \${$as_var+y} \
311   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
312 done
313
314 # Ensure that fds 0, 1, and 2 are open.
315 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
316 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
317 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
318
319
320
321 # Find who we are.  Look in the path if we contain no directory separator.
322 as_myself=
323 case $0 in #((
324   *[\\/]* ) as_myself=$0 ;;
325   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
326 for as_dir in $PATH
327 do
328   IFS=$as_save_IFS
329   case $as_dir in #(((
330     '') as_dir=./ ;;
331     */) ;;
332     *) as_dir=$as_dir/ ;;
333   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
347   exit 1
348 fi
349
350
351 # Use a proper internal environment variable to ensure we don't fall
352   # into an infinite loop, continuously re-executing ourselves.
353   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
354     _as_can_reexec=no; export _as_can_reexec;
355     # We cannot yet assume a decent shell, so we have to provide a
356 # neutralization value for shells without unset; and this also
357 # works around shells that cannot unset nonexistent variables.
358 # Preserve -v and -x to the replacement shell.
359 BASH_ENV=/dev/null
360 ENV=/dev/null
361 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
362 case $- in # ((((
363   *v*x* | *x*v* ) as_opts=-vx ;;
364   *v* ) as_opts=-v ;;
365   *x* ) as_opts=-x ;;
366   * ) as_opts= ;;
367 esac
368 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
369 # Admittedly, this is quite paranoid, since all the known shells bail
370 # out after a failed `exec'.
371 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
372 exit 255
373   fi
374   # We don't want this to propagate to other subprocesses.
375           { _as_can_reexec=; unset _as_can_reexec;}
376 if test "x$CONFIG_SHELL" = x; then
377   as_bourne_compatible="as_nop=:
378 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
379 then :
380   emulate sh
381   NULLCMD=:
382   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
383   # is contrary to our usage.  Disable this feature.
384   alias -g '\${1+\"\$@\"}'='\"\$@\"'
385   setopt NO_GLOB_SUBST
386 else \$as_nop
387   case \`(set -o) 2>/dev/null\` in #(
388   *posix*) :
389     set -o posix ;; #(
390   *) :
391      ;;
392 esac
393 fi
394 "
395   as_required="as_fn_return () { (exit \$1); }
396 as_fn_success () { as_fn_return 0; }
397 as_fn_failure () { as_fn_return 1; }
398 as_fn_ret_success () { return 0; }
399 as_fn_ret_failure () { return 1; }
400
401 exitcode=0
402 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
403 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
404 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
405 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
406 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
407 then :
408
409 else \$as_nop
410   exitcode=1; echo positional parameters were not saved.
411 fi
412 test x\$exitcode = x0 || exit 1
413 blah=\$(echo \$(echo blah))
414 test x\"\$blah\" = xblah || exit 1
415 test -x / || exit 1"
416   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
417   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
418   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
419   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
420 test \$(( 1 + 1 )) = 2 || exit 1
421
422   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
423     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
424     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
425     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
426     PATH=/empty FPATH=/empty; export PATH FPATH
427     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
428       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
429   if (eval "$as_required") 2>/dev/null
430 then :
431   as_have_required=yes
432 else $as_nop
433   as_have_required=no
434 fi
435   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
436 then :
437
438 else $as_nop
439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
440 as_found=false
441 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
442 do
443   IFS=$as_save_IFS
444   case $as_dir in #(((
445     '') as_dir=./ ;;
446     */) ;;
447     *) as_dir=$as_dir/ ;;
448   esac
449   as_found=:
450   case $as_dir in #(
451          /*)
452            for as_base in sh bash ksh sh5; do
453              # Try only shells that exist, to save several forks.
454              as_shell=$as_dir$as_base
455              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
456                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
457 then :
458   CONFIG_SHELL=$as_shell as_have_required=yes
459                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
460 then :
461   break 2
462 fi
463 fi
464            done;;
465        esac
466   as_found=false
467 done
468 IFS=$as_save_IFS
469 if $as_found
470 then :
471
472 else $as_nop
473   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
474               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
475 then :
476   CONFIG_SHELL=$SHELL as_have_required=yes
477 fi
478 fi
479
480
481       if test "x$CONFIG_SHELL" != x
482 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
501 exit 255
502 fi
503
504     if test x$as_have_required = xno
505 then :
506   printf "%s\n" "$0: This script requires a shell more modern than all"
507   printf "%s\n" "$0: the shells that I found on your system."
508   if test ${ZSH_VERSION+y} ; then
509     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
510     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
511   else
512     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
513 $0: list: http://lists.haxx.se/listinfo/c-ares about your
514 $0: system, including any error possibly output before this
515 $0: message. Then install a modern shell, or manually run
516 $0: the script under such a shell if you do have one."
517   fi
518   exit 1
519 fi
520 fi
521 fi
522 SHELL=${CONFIG_SHELL-/bin/sh}
523 export SHELL
524 # Unset more variables known to interfere with behavior of common tools.
525 CLICOLOR_FORCE= GREP_OPTIONS=
526 unset CLICOLOR_FORCE GREP_OPTIONS
527
528 ## --------------------- ##
529 ## M4sh Shell Functions. ##
530 ## --------------------- ##
531 # as_fn_unset VAR
532 # ---------------
533 # Portably unset VAR.
534 as_fn_unset ()
535 {
536   { eval $1=; unset $1;}
537 }
538 as_unset=as_fn_unset
539
540
541 # as_fn_set_status STATUS
542 # -----------------------
543 # Set $? to STATUS, without forking.
544 as_fn_set_status ()
545 {
546   return $1
547 } # as_fn_set_status
548
549 # as_fn_exit STATUS
550 # -----------------
551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
552 as_fn_exit ()
553 {
554   set +e
555   as_fn_set_status $1
556   exit $1
557 } # as_fn_exit
558 # as_fn_nop
559 # ---------
560 # Do nothing but, unlike ":", preserve the value of $?.
561 as_fn_nop ()
562 {
563   return $?
564 }
565 as_nop=as_fn_nop
566
567 # as_fn_mkdir_p
568 # -------------
569 # Create "$as_dir" as a directory, including parents if necessary.
570 as_fn_mkdir_p ()
571 {
572
573   case $as_dir in #(
574   -*) as_dir=./$as_dir;;
575   esac
576   test -d "$as_dir" || eval $as_mkdir_p || {
577     as_dirs=
578     while :; do
579       case $as_dir in #(
580       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
581       *) as_qdir=$as_dir;;
582       esac
583       as_dirs="'$as_qdir' $as_dirs"
584       as_dir=`$as_dirname -- "$as_dir" ||
585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
586          X"$as_dir" : 'X\(//\)[^/]' \| \
587          X"$as_dir" : 'X\(//\)$' \| \
588          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
589 printf "%s\n" X"$as_dir" |
590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
591             s//\1/
592             q
593           }
594           /^X\(\/\/\)[^/].*/{
595             s//\1/
596             q
597           }
598           /^X\(\/\/\)$/{
599             s//\1/
600             q
601           }
602           /^X\(\/\).*/{
603             s//\1/
604             q
605           }
606           s/.*/./; q'`
607       test -d "$as_dir" && break
608     done
609     test -z "$as_dirs" || eval "mkdir $as_dirs"
610   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
611
612
613 } # as_fn_mkdir_p
614
615 # as_fn_executable_p FILE
616 # -----------------------
617 # Test if FILE is an executable regular file.
618 as_fn_executable_p ()
619 {
620   test -f "$1" && test -x "$1"
621 } # as_fn_executable_p
622 # as_fn_append VAR VALUE
623 # ----------------------
624 # Append the text in VALUE to the end of the definition contained in VAR. Take
625 # advantage of any shell optimizations that allow amortized linear growth over
626 # repeated appends, instead of the typical quadratic growth present in naive
627 # implementations.
628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
629 then :
630   eval 'as_fn_append ()
631   {
632     eval $1+=\$2
633   }'
634 else $as_nop
635   as_fn_append ()
636   {
637     eval $1=\$$1\$2
638   }
639 fi # as_fn_append
640
641 # as_fn_arith ARG...
642 # ------------------
643 # Perform arithmetic evaluation on the ARGs, and store the result in the
644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
645 # must be portable across $(()) and expr.
646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
647 then :
648   eval 'as_fn_arith ()
649   {
650     as_val=$(( $* ))
651   }'
652 else $as_nop
653   as_fn_arith ()
654   {
655     as_val=`expr "$@" || test $? -eq 1`
656   }
657 fi # as_fn_arith
658
659 # as_fn_nop
660 # ---------
661 # Do nothing but, unlike ":", preserve the value of $?.
662 as_fn_nop ()
663 {
664   return $?
665 }
666 as_nop=as_fn_nop
667
668 # as_fn_error STATUS ERROR [LINENO LOG_FD]
669 # ----------------------------------------
670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
672 # script with STATUS, using 1 if that was 0.
673 as_fn_error ()
674 {
675   as_status=$1; test $as_status -eq 0 && as_status=1
676   if test "$4"; then
677     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
678     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
679   fi
680   printf "%s\n" "$as_me: error: $2" >&2
681   as_fn_exit $as_status
682 } # as_fn_error
683
684 if expr a : '\(a\)' >/dev/null 2>&1 &&
685    test "X`expr 00001 : '.*\(...\)'`" = X001; then
686   as_expr=expr
687 else
688   as_expr=false
689 fi
690
691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
692   as_basename=basename
693 else
694   as_basename=false
695 fi
696
697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
698   as_dirname=dirname
699 else
700   as_dirname=false
701 fi
702
703 as_me=`$as_basename -- "$0" ||
704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
705          X"$0" : 'X\(//\)$' \| \
706          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
707 printf "%s\n" X/"$0" |
708     sed '/^.*\/\([^/][^/]*\)\/*$/{
709             s//\1/
710             q
711           }
712           /^X\/\(\/\/\)$/{
713             s//\1/
714             q
715           }
716           /^X\/\(\/\).*/{
717             s//\1/
718             q
719           }
720           s/.*/./; q'`
721
722 # Avoid depending upon Character Ranges.
723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
726 as_cr_digits='0123456789'
727 as_cr_alnum=$as_cr_Letters$as_cr_digits
728
729
730   as_lineno_1=$LINENO as_lineno_1a=$LINENO
731   as_lineno_2=$LINENO as_lineno_2a=$LINENO
732   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
733   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
734   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
735   sed -n '
736     p
737     /[$]LINENO/=
738   ' <$as_myself |
739     sed '
740       s/[$]LINENO.*/&-/
741       t lineno
742       b
743       :lineno
744       N
745       :loop
746       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
747       t loop
748       s/-\n.*//
749     ' >$as_me.lineno &&
750   chmod +x "$as_me.lineno" ||
751     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
752
753   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
754   # already done that, so ensure we don't try to do so again and fall
755   # in an infinite loop.  This has already happened in practice.
756   _as_can_reexec=no; export _as_can_reexec
757   # Don't try to exec as it changes $[0], causing all sort of problems
758   # (the dirname of $[0] is not the place where we might find the
759   # original and so on.  Autoconf is especially sensitive to this).
760   . "./$as_me.lineno"
761   # Exit status is that of the last command.
762   exit
763 }
764
765
766 # Determine whether it's possible to make 'echo' print without a newline.
767 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
768 # for compatibility with existing Makefiles.
769 ECHO_C= ECHO_N= ECHO_T=
770 case `echo -n x` in #(((((
771 -n*)
772   case `echo 'xy\c'` in
773   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
774   xy)  ECHO_C='\c';;
775   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
776        ECHO_T=' ';;
777   esac;;
778 *)
779   ECHO_N='-n';;
780 esac
781
782 # For backward compatibility with old third-party macros, we provide
783 # the shell variables $as_echo and $as_echo_n.  New code should use
784 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
785 as_echo='printf %s\n'
786 as_echo_n='printf %s'
787
788
789 rm -f conf$$ conf$$.exe conf$$.file
790 if test -d conf$$.dir; then
791   rm -f conf$$.dir/conf$$.file
792 else
793   rm -f conf$$.dir
794   mkdir conf$$.dir 2>/dev/null
795 fi
796 if (echo >conf$$.file) 2>/dev/null; then
797   if ln -s conf$$.file conf$$ 2>/dev/null; then
798     as_ln_s='ln -s'
799     # ... but there are two gotchas:
800     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
801     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
802     # In both cases, we have to default to `cp -pR'.
803     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
804       as_ln_s='cp -pR'
805   elif ln conf$$.file conf$$ 2>/dev/null; then
806     as_ln_s=ln
807   else
808     as_ln_s='cp -pR'
809   fi
810 else
811   as_ln_s='cp -pR'
812 fi
813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
814 rmdir conf$$.dir 2>/dev/null
815
816 if mkdir -p . 2>/dev/null; then
817   as_mkdir_p='mkdir -p "$as_dir"'
818 else
819   test -d ./-p && rmdir ./-p
820   as_mkdir_p=false
821 fi
822
823 as_test_x='test -x'
824 as_executable_p=as_fn_executable_p
825
826 # Sed expression to map a string onto a valid CPP name.
827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
828
829 # Sed expression to map a string onto a valid variable name.
830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
831
832 SHELL=${CONFIG_SHELL-/bin/sh}
833
834
835 test -n "$DJDIR" || exec 7<&0 </dev/null
836 exec 6>&1
837
838 # Name of the host.
839 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
840 # so uname gets run too.
841 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
842
843 #
844 # Initializations.
845 #
846 ac_default_prefix=/usr/local
847 ac_clean_files=
848 ac_config_libobj_dir=.
849 LIBOBJS=
850 cross_compiling=no
851 subdirs=
852 MFLAGS=
853 MAKEFLAGS=
854
855 # Identity of this package.
856 PACKAGE_NAME='c-ares'
857 PACKAGE_TARNAME='c-ares'
858 PACKAGE_VERSION='1.18.1'
859 PACKAGE_STRING='c-ares 1.18.1'
860 PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares'
861 PACKAGE_URL=''
862
863 ac_unique_file="src/lib/ares_ipv6.h"
864 # Factoring default headers for most tests.
865 ac_includes_default="\
866 #include <stddef.h>
867 #ifdef HAVE_STDIO_H
868 # include <stdio.h>
869 #endif
870 #ifdef HAVE_STDLIB_H
871 # include <stdlib.h>
872 #endif
873 #ifdef HAVE_STRING_H
874 # include <string.h>
875 #endif
876 #ifdef HAVE_INTTYPES_H
877 # include <inttypes.h>
878 #endif
879 #ifdef HAVE_STDINT_H
880 # include <stdint.h>
881 #endif
882 #ifdef HAVE_STRINGS_H
883 # include <strings.h>
884 #endif
885 #ifdef HAVE_SYS_TYPES_H
886 # include <sys/types.h>
887 #endif
888 #ifdef HAVE_SYS_STAT_H
889 # include <sys/stat.h>
890 #endif
891 #ifdef HAVE_UNISTD_H
892 # include <unistd.h>
893 #endif"
894
895 ac_header_c_list=
896 enable_option_checking=no
897 ac_subst_vars='am__EXEEXT_FALSE
898 am__EXEEXT_TRUE
899 LTLIBOBJS
900 LIBOBJS
901 BUILD_SUBDIRS
902 subdirs
903 CARES_CFLAG_EXTRAS
904 CARES_PRIVATE_LIBS
905 CFLAG_CARES_SYMBOL_HIDING
906 DOING_CARES_SYMBOL_HIDING_FALSE
907 DOING_CARES_SYMBOL_HIDING_TRUE
908 CARES_RANDOM_FILE
909 DOING_NATIVE_WINDOWS_FALSE
910 DOING_NATIVE_WINDOWS_TRUE
911 CPPFLAG_CARES_STATICLIB
912 USE_CPPFLAG_CARES_STATICLIB_FALSE
913 USE_CPPFLAG_CARES_STATICLIB_TRUE
914 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
915 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
916 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
917 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
918 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
919 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
920 CXXCPP
921 LT_SYS_LIBRARY_PATH
922 OTOOL64
923 OTOOL
924 LIPO
925 NMEDIT
926 DSYMUTIL
927 MANIFEST_TOOL
928 RANLIB
929 ac_ct_AR
930 LN_S
931 NM
932 ac_ct_DUMPBIN
933 DUMPBIN
934 LD
935 FGREP
936 LIBTOOL
937 OBJDUMP
938 DLLTOOL
939 AS
940 CSCOPE
941 ETAGS
942 CTAGS
943 am__fastdepCXX_FALSE
944 am__fastdepCXX_TRUE
945 CXXDEPMODE
946 am__fastdepCC_FALSE
947 am__fastdepCC_TRUE
948 CCDEPMODE
949 am__nodep
950 AMDEPBACKSLASH
951 AMDEP_FALSE
952 AMDEP_TRUE
953 am__include
954 DEPDIR
955 am__untar
956 am__tar
957 AMTAR
958 am__leading_dot
959 SET_MAKE
960 mkdir_p
961 MKDIR_P
962 INSTALL_STRIP_PROGRAM
963 STRIP
964 install_sh
965 MAKEINFO
966 AUTOHEADER
967 AUTOMAKE
968 AUTOCONF
969 ACLOCAL
970 VERSION
971 PACKAGE
972 CYGPATH_W
973 am__isrc
974 HAVE_CXX11
975 ac_ct_CXX
976 CXXFLAGS
977 CXX
978 CPP
979 OBJEXT
980 EXEEXT
981 ac_ct_CC
982 CPPFLAGS
983 LDFLAGS
984 CFLAGS
985 CC
986 INSTALL_DATA
987 INSTALL_SCRIPT
988 INSTALL_PROGRAM
989 host_os
990 host_vendor
991 host_cpu
992 host
993 build_os
994 build_vendor
995 build_cpu
996 build
997 CODE_COVERAGE_LIBS
998 CODE_COVERAGE_CXXFLAGS
999 CODE_COVERAGE_CFLAGS
1000 CODE_COVERAGE_CPPFLAGS
1001 GENHTML
1002 LCOV
1003 GCOV
1004 ifnGNUmake
1005 ifGNUmake
1006 AWK
1007 CODE_COVERAGE_ENABLED
1008 CODE_COVERAGE_ENABLED_FALSE
1009 CODE_COVERAGE_ENABLED_TRUE
1010 AR
1011 EGREP
1012 GREP
1013 SED
1014 AM_BACKSLASH
1015 AM_DEFAULT_VERBOSITY
1016 AM_DEFAULT_V
1017 AM_V
1018 MAINT
1019 MAINTAINER_MODE_FALSE
1020 MAINTAINER_MODE_TRUE
1021 CARES_VERSION_INFO
1022 target_alias
1023 host_alias
1024 build_alias
1025 LIBS
1026 ECHO_T
1027 ECHO_N
1028 ECHO_C
1029 DEFS
1030 mandir
1031 localedir
1032 libdir
1033 psdir
1034 pdfdir
1035 dvidir
1036 htmldir
1037 infodir
1038 docdir
1039 oldincludedir
1040 includedir
1041 runstatedir
1042 localstatedir
1043 sharedstatedir
1044 sysconfdir
1045 datadir
1046 datarootdir
1047 libexecdir
1048 sbindir
1049 bindir
1050 program_transform_name
1051 prefix
1052 exec_prefix
1053 PACKAGE_URL
1054 PACKAGE_BUGREPORT
1055 PACKAGE_STRING
1056 PACKAGE_VERSION
1057 PACKAGE_TARNAME
1058 PACKAGE_NAME
1059 SHELL
1060 PATH_SEPARATOR
1061 am__quote'
1062 ac_subst_files=''
1063 ac_user_opts='
1064 enable_option_checking
1065 enable_maintainer_mode
1066 enable_silent_rules
1067 enable_debug
1068 enable_optimize
1069 enable_warnings
1070 enable_werror
1071 enable_symbol_hiding
1072 enable_expose_statics
1073 with_gcov
1074 enable_code_coverage
1075 enable_dependency_tracking
1076 enable_largefile
1077 enable_shared
1078 enable_static
1079 with_pic
1080 enable_fast_install
1081 with_aix_soname
1082 with_gnu_ld
1083 with_sysroot
1084 enable_libtool_lock
1085 enable_libgcc
1086 with_random
1087 enable_nonblocking
1088 enable_tests
1089 '
1090       ac_precious_vars='build_alias
1091 host_alias
1092 target_alias
1093 CC
1094 CFLAGS
1095 LDFLAGS
1096 LIBS
1097 CPPFLAGS
1098 CPP
1099 CXX
1100 CXXFLAGS
1101 CCC
1102 LT_SYS_LIBRARY_PATH
1103 CXXCPP'
1104 ac_subdirs_all='test'
1105
1106 # Initialize some variables set by options.
1107 ac_init_help=
1108 ac_init_version=false
1109 ac_unrecognized_opts=
1110 ac_unrecognized_sep=
1111 # The variables have the same names as the options, with
1112 # dashes changed to underlines.
1113 cache_file=/dev/null
1114 exec_prefix=NONE
1115 no_create=
1116 no_recursion=
1117 prefix=NONE
1118 program_prefix=NONE
1119 program_suffix=NONE
1120 program_transform_name=s,x,x,
1121 silent=
1122 site=
1123 srcdir=
1124 verbose=
1125 x_includes=NONE
1126 x_libraries=NONE
1127
1128 # Installation directory options.
1129 # These are left unexpanded so users can "make install exec_prefix=/foo"
1130 # and all the variables that are supposed to be based on exec_prefix
1131 # by default will actually change.
1132 # Use braces instead of parens because sh, perl, etc. also accept them.
1133 # (The list follows the same order as the GNU Coding Standards.)
1134 bindir='${exec_prefix}/bin'
1135 sbindir='${exec_prefix}/sbin'
1136 libexecdir='${exec_prefix}/libexec'
1137 datarootdir='${prefix}/share'
1138 datadir='${datarootdir}'
1139 sysconfdir='${prefix}/etc'
1140 sharedstatedir='${prefix}/com'
1141 localstatedir='${prefix}/var'
1142 runstatedir='${localstatedir}/run'
1143 includedir='${prefix}/include'
1144 oldincludedir='/usr/include'
1145 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1146 infodir='${datarootdir}/info'
1147 htmldir='${docdir}'
1148 dvidir='${docdir}'
1149 pdfdir='${docdir}'
1150 psdir='${docdir}'
1151 libdir='${exec_prefix}/lib'
1152 localedir='${datarootdir}/locale'
1153 mandir='${datarootdir}/man'
1154
1155 ac_prev=
1156 ac_dashdash=
1157 for ac_option
1158 do
1159   # If the previous option needs an argument, assign it.
1160   if test -n "$ac_prev"; then
1161     eval $ac_prev=\$ac_option
1162     ac_prev=
1163     continue
1164   fi
1165
1166   case $ac_option in
1167   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1168   *=)   ac_optarg= ;;
1169   *)    ac_optarg=yes ;;
1170   esac
1171
1172   case $ac_dashdash$ac_option in
1173   --)
1174     ac_dashdash=yes ;;
1175
1176   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1177     ac_prev=bindir ;;
1178   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1179     bindir=$ac_optarg ;;
1180
1181   -build | --build | --buil | --bui | --bu)
1182     ac_prev=build_alias ;;
1183   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1184     build_alias=$ac_optarg ;;
1185
1186   -cache-file | --cache-file | --cache-fil | --cache-fi \
1187   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1188     ac_prev=cache_file ;;
1189   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1190   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1191     cache_file=$ac_optarg ;;
1192
1193   --config-cache | -C)
1194     cache_file=config.cache ;;
1195
1196   -datadir | --datadir | --datadi | --datad)
1197     ac_prev=datadir ;;
1198   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1199     datadir=$ac_optarg ;;
1200
1201   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1202   | --dataroo | --dataro | --datar)
1203     ac_prev=datarootdir ;;
1204   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1205   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1206     datarootdir=$ac_optarg ;;
1207
1208   -disable-* | --disable-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "enable_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval enable_$ac_useropt=no ;;
1223
1224   -docdir | --docdir | --docdi | --doc | --do)
1225     ac_prev=docdir ;;
1226   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1227     docdir=$ac_optarg ;;
1228
1229   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1230     ac_prev=dvidir ;;
1231   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1232     dvidir=$ac_optarg ;;
1233
1234   -enable-* | --enable-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "enable_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval enable_$ac_useropt=\$ac_optarg ;;
1249
1250   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1251   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1252   | --exec | --exe | --ex)
1253     ac_prev=exec_prefix ;;
1254   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1255   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1256   | --exec=* | --exe=* | --ex=*)
1257     exec_prefix=$ac_optarg ;;
1258
1259   -gas | --gas | --ga | --g)
1260     # Obsolete; use --with-gas.
1261     with_gas=yes ;;
1262
1263   -help | --help | --hel | --he | -h)
1264     ac_init_help=long ;;
1265   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1266     ac_init_help=recursive ;;
1267   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1268     ac_init_help=short ;;
1269
1270   -host | --host | --hos | --ho)
1271     ac_prev=host_alias ;;
1272   -host=* | --host=* | --hos=* | --ho=*)
1273     host_alias=$ac_optarg ;;
1274
1275   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1276     ac_prev=htmldir ;;
1277   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1278   | --ht=*)
1279     htmldir=$ac_optarg ;;
1280
1281   -includedir | --includedir | --includedi | --included | --include \
1282   | --includ | --inclu | --incl | --inc)
1283     ac_prev=includedir ;;
1284   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1285   | --includ=* | --inclu=* | --incl=* | --inc=*)
1286     includedir=$ac_optarg ;;
1287
1288   -infodir | --infodir | --infodi | --infod | --info | --inf)
1289     ac_prev=infodir ;;
1290   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1291     infodir=$ac_optarg ;;
1292
1293   -libdir | --libdir | --libdi | --libd)
1294     ac_prev=libdir ;;
1295   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1296     libdir=$ac_optarg ;;
1297
1298   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1299   | --libexe | --libex | --libe)
1300     ac_prev=libexecdir ;;
1301   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1302   | --libexe=* | --libex=* | --libe=*)
1303     libexecdir=$ac_optarg ;;
1304
1305   -localedir | --localedir | --localedi | --localed | --locale)
1306     ac_prev=localedir ;;
1307   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1308     localedir=$ac_optarg ;;
1309
1310   -localstatedir | --localstatedir | --localstatedi | --localstated \
1311   | --localstate | --localstat | --localsta | --localst | --locals)
1312     ac_prev=localstatedir ;;
1313   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1314   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1315     localstatedir=$ac_optarg ;;
1316
1317   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1318     ac_prev=mandir ;;
1319   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1320     mandir=$ac_optarg ;;
1321
1322   -nfp | --nfp | --nf)
1323     # Obsolete; use --without-fp.
1324     with_fp=no ;;
1325
1326   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1327   | --no-cr | --no-c | -n)
1328     no_create=yes ;;
1329
1330   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1331   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1332     no_recursion=yes ;;
1333
1334   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1335   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1336   | --oldin | --oldi | --old | --ol | --o)
1337     ac_prev=oldincludedir ;;
1338   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1339   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1340   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1341     oldincludedir=$ac_optarg ;;
1342
1343   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1344     ac_prev=prefix ;;
1345   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1346     prefix=$ac_optarg ;;
1347
1348   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1349   | --program-pre | --program-pr | --program-p)
1350     ac_prev=program_prefix ;;
1351   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1352   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1353     program_prefix=$ac_optarg ;;
1354
1355   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1356   | --program-suf | --program-su | --program-s)
1357     ac_prev=program_suffix ;;
1358   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1359   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1360     program_suffix=$ac_optarg ;;
1361
1362   -program-transform-name | --program-transform-name \
1363   | --program-transform-nam | --program-transform-na \
1364   | --program-transform-n | --program-transform- \
1365   | --program-transform | --program-transfor \
1366   | --program-transfo | --program-transf \
1367   | --program-trans | --program-tran \
1368   | --progr-tra | --program-tr | --program-t)
1369     ac_prev=program_transform_name ;;
1370   -program-transform-name=* | --program-transform-name=* \
1371   | --program-transform-nam=* | --program-transform-na=* \
1372   | --program-transform-n=* | --program-transform-=* \
1373   | --program-transform=* | --program-transfor=* \
1374   | --program-transfo=* | --program-transf=* \
1375   | --program-trans=* | --program-tran=* \
1376   | --progr-tra=* | --program-tr=* | --program-t=*)
1377     program_transform_name=$ac_optarg ;;
1378
1379   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1380     ac_prev=pdfdir ;;
1381   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1382     pdfdir=$ac_optarg ;;
1383
1384   -psdir | --psdir | --psdi | --psd | --ps)
1385     ac_prev=psdir ;;
1386   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1387     psdir=$ac_optarg ;;
1388
1389   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390   | -silent | --silent | --silen | --sile | --sil)
1391     silent=yes ;;
1392
1393   -runstatedir | --runstatedir | --runstatedi | --runstated \
1394   | --runstate | --runstat | --runsta | --runst | --runs \
1395   | --run | --ru | --r)
1396     ac_prev=runstatedir ;;
1397   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1398   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1399   | --run=* | --ru=* | --r=*)
1400     runstatedir=$ac_optarg ;;
1401
1402   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1403     ac_prev=sbindir ;;
1404   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1405   | --sbi=* | --sb=*)
1406     sbindir=$ac_optarg ;;
1407
1408   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410   | --sharedst | --shareds | --shared | --share | --shar \
1411   | --sha | --sh)
1412     ac_prev=sharedstatedir ;;
1413   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1416   | --sha=* | --sh=*)
1417     sharedstatedir=$ac_optarg ;;
1418
1419   -site | --site | --sit)
1420     ac_prev=site ;;
1421   -site=* | --site=* | --sit=*)
1422     site=$ac_optarg ;;
1423
1424   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1425     ac_prev=srcdir ;;
1426   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427     srcdir=$ac_optarg ;;
1428
1429   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430   | --syscon | --sysco | --sysc | --sys | --sy)
1431     ac_prev=sysconfdir ;;
1432   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434     sysconfdir=$ac_optarg ;;
1435
1436   -target | --target | --targe | --targ | --tar | --ta | --t)
1437     ac_prev=target_alias ;;
1438   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439     target_alias=$ac_optarg ;;
1440
1441   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1442     verbose=yes ;;
1443
1444   -version | --version | --versio | --versi | --vers | -V)
1445     ac_init_version=: ;;
1446
1447   -with-* | --with-*)
1448     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449     # Reject names that are not valid shell variable names.
1450     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451       as_fn_error $? "invalid package name: \`$ac_useropt'"
1452     ac_useropt_orig=$ac_useropt
1453     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1454     case $ac_user_opts in
1455       *"
1456 "with_$ac_useropt"
1457 "*) ;;
1458       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459          ac_unrecognized_sep=', ';;
1460     esac
1461     eval with_$ac_useropt=\$ac_optarg ;;
1462
1463   -without-* | --without-*)
1464     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465     # Reject names that are not valid shell variable names.
1466     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467       as_fn_error $? "invalid package name: \`$ac_useropt'"
1468     ac_useropt_orig=$ac_useropt
1469     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1470     case $ac_user_opts in
1471       *"
1472 "with_$ac_useropt"
1473 "*) ;;
1474       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475          ac_unrecognized_sep=', ';;
1476     esac
1477     eval with_$ac_useropt=no ;;
1478
1479   --x)
1480     # Obsolete; use --with-x.
1481     with_x=yes ;;
1482
1483   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484   | --x-incl | --x-inc | --x-in | --x-i)
1485     ac_prev=x_includes ;;
1486   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488     x_includes=$ac_optarg ;;
1489
1490   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492     ac_prev=x_libraries ;;
1493   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495     x_libraries=$ac_optarg ;;
1496
1497   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information"
1499     ;;
1500
1501   *=*)
1502     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503     # Reject names that are not valid shell variable names.
1504     case $ac_envvar in #(
1505       '' | [0-9]* | *[!_$as_cr_alnum]* )
1506       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1507     esac
1508     eval $ac_envvar=\$ac_optarg
1509     export $ac_envvar ;;
1510
1511   *)
1512     # FIXME: should be removed in autoconf 3.0.
1513     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1514     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1516     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1517     ;;
1518
1519   esac
1520 done
1521
1522 if test -n "$ac_prev"; then
1523   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524   as_fn_error $? "missing argument to $ac_option"
1525 fi
1526
1527 if test -n "$ac_unrecognized_opts"; then
1528   case $enable_option_checking in
1529     no) ;;
1530     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1531     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1532   esac
1533 fi
1534
1535 # Check all directory arguments for consistency.
1536 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537                 datadir sysconfdir sharedstatedir localstatedir includedir \
1538                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539                 libdir localedir mandir runstatedir
1540 do
1541   eval ac_val=\$$ac_var
1542   # Remove trailing slashes.
1543   case $ac_val in
1544     */ )
1545       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546       eval $ac_var=\$ac_val;;
1547   esac
1548   # Be sure to have absolute directory names.
1549   case $ac_val in
1550     [\\/$]* | ?:[\\/]* )  continue;;
1551     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1552   esac
1553   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1554 done
1555
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1559 build=$build_alias
1560 host=$host_alias
1561 target=$target_alias
1562
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565   if test "x$build_alias" = x; then
1566     cross_compiling=maybe
1567   elif test "x$build_alias" != "x$host_alias"; then
1568     cross_compiling=yes
1569   fi
1570 fi
1571
1572 ac_tool_prefix=
1573 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1574
1575 test "$silent" = yes && exec 6>/dev/null
1576
1577
1578 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1579 ac_ls_di=`ls -di .` &&
1580 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1581   as_fn_error $? "working directory cannot be determined"
1582 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1583   as_fn_error $? "pwd does not report name of working directory"
1584
1585
1586 # Find the source files, if location was not specified.
1587 if test -z "$srcdir"; then
1588   ac_srcdir_defaulted=yes
1589   # Try the directory containing this script, then the parent directory.
1590   ac_confdir=`$as_dirname -- "$as_myself" ||
1591 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1592          X"$as_myself" : 'X\(//\)[^/]' \| \
1593          X"$as_myself" : 'X\(//\)$' \| \
1594          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1595 printf "%s\n" X"$as_myself" |
1596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1597             s//\1/
1598             q
1599           }
1600           /^X\(\/\/\)[^/].*/{
1601             s//\1/
1602             q
1603           }
1604           /^X\(\/\/\)$/{
1605             s//\1/
1606             q
1607           }
1608           /^X\(\/\).*/{
1609             s//\1/
1610             q
1611           }
1612           s/.*/./; q'`
1613   srcdir=$ac_confdir
1614   if test ! -r "$srcdir/$ac_unique_file"; then
1615     srcdir=..
1616   fi
1617 else
1618   ac_srcdir_defaulted=no
1619 fi
1620 if test ! -r "$srcdir/$ac_unique_file"; then
1621   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1622   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1623 fi
1624 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1625 ac_abs_confdir=`(
1626         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1627         pwd)`
1628 # When building in place, set srcdir=.
1629 if test "$ac_abs_confdir" = "$ac_pwd"; then
1630   srcdir=.
1631 fi
1632 # Remove unnecessary trailing slashes from srcdir.
1633 # Double slashes in file names in object file debugging info
1634 # mess up M-x gdb in Emacs.
1635 case $srcdir in
1636 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1637 esac
1638 for ac_var in $ac_precious_vars; do
1639   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1640   eval ac_env_${ac_var}_value=\$${ac_var}
1641   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1642   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1643 done
1644
1645 #
1646 # Report the --help message.
1647 #
1648 if test "$ac_init_help" = "long"; then
1649   # Omit some internal or obsolete options to make the list less imposing.
1650   # This message is too long to be a string in the A/UX 3.1 sh.
1651   cat <<_ACEOF
1652 \`configure' configures c-ares 1.18.1 to adapt to many kinds of systems.
1653
1654 Usage: $0 [OPTION]... [VAR=VALUE]...
1655
1656 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1657 VAR=VALUE.  See below for descriptions of some of the useful variables.
1658
1659 Defaults for the options are specified in brackets.
1660
1661 Configuration:
1662   -h, --help              display this help and exit
1663       --help=short        display options specific to this package
1664       --help=recursive    display the short help of all the included packages
1665   -V, --version           display version information and exit
1666   -q, --quiet, --silent   do not print \`checking ...' messages
1667       --cache-file=FILE   cache test results in FILE [disabled]
1668   -C, --config-cache      alias for \`--cache-file=config.cache'
1669   -n, --no-create         do not create output files
1670       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1671
1672 Installation directories:
1673   --prefix=PREFIX         install architecture-independent files in PREFIX
1674                           [$ac_default_prefix]
1675   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1676                           [PREFIX]
1677
1678 By default, \`make install' will install all the files in
1679 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1680 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1681 for instance \`--prefix=\$HOME'.
1682
1683 For better control, use the options below.
1684
1685 Fine tuning of the installation directories:
1686   --bindir=DIR            user executables [EPREFIX/bin]
1687   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1688   --libexecdir=DIR        program executables [EPREFIX/libexec]
1689   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1690   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1691   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1692   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1693   --libdir=DIR            object code libraries [EPREFIX/lib]
1694   --includedir=DIR        C header files [PREFIX/include]
1695   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1696   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1697   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1698   --infodir=DIR           info documentation [DATAROOTDIR/info]
1699   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1700   --mandir=DIR            man documentation [DATAROOTDIR/man]
1701   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1702   --htmldir=DIR           html documentation [DOCDIR]
1703   --dvidir=DIR            dvi documentation [DOCDIR]
1704   --pdfdir=DIR            pdf documentation [DOCDIR]
1705   --psdir=DIR             ps documentation [DOCDIR]
1706 _ACEOF
1707
1708   cat <<\_ACEOF
1709
1710 Program names:
1711   --program-prefix=PREFIX            prepend PREFIX to installed program names
1712   --program-suffix=SUFFIX            append SUFFIX to installed program names
1713   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1714
1715 System types:
1716   --build=BUILD     configure for building on BUILD [guessed]
1717   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1718 _ACEOF
1719 fi
1720
1721 if test -n "$ac_init_help"; then
1722   case $ac_init_help in
1723      short | recursive ) echo "Configuration of c-ares 1.18.1:";;
1724    esac
1725   cat <<\_ACEOF
1726
1727 Optional Features:
1728   --disable-option-checking  ignore unrecognized --enable/--with options
1729   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1730   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1731   --enable-maintainer-mode
1732                           enable make rules and dependencies not useful (and
1733                           sometimes confusing) to the casual installer
1734   --enable-silent-rules   less verbose build output (undo: "make V=1")
1735   --disable-silent-rules  verbose build output (undo: "make V=0")
1736   --enable-debug          Enable debug build options
1737   --disable-debug         Disable debug build options
1738   --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1739   --disable-optimize      Disable compiler optimizations
1740   --enable-warnings       Enable strict compiler warnings
1741   --disable-warnings      Disable strict compiler warnings
1742   --enable-werror         Enable compiler warnings as errors
1743   --disable-werror        Disable compiler warnings as errors
1744   --enable-symbol-hiding  Enable hiding of library internal symbols
1745   --disable-symbol-hiding Disable hiding of library internal symbols
1746   --enable-expose-statics Enable exposure of internal static functions for
1747                           testing
1748   --disable-expose-statics
1749                           Disable exposure of internal static functions for
1750                           testing
1751   --enable-code-coverage  Whether to enable code coverage support
1752   --enable-dependency-tracking
1753                           do not reject slow dependency extractors
1754   --disable-dependency-tracking
1755                           speeds up one-time build
1756   --disable-largefile     omit support for large files
1757   --enable-shared[=PKGS]  build shared libraries [default=yes]
1758   --enable-static[=PKGS]  build static libraries [default=yes]
1759   --enable-fast-install[=PKGS]
1760                           optimize for fast installation [default=yes]
1761   --disable-libtool-lock  avoid locking (might break parallel builds)
1762   --enable-libgcc         use libgcc when linking
1763   --enable-nonblocking    Enable non-blocking communications
1764   --disable-nonblocking   Disable non-blocking communications
1765   --enable-tests          build test suite
1766
1767 Optional Packages:
1768   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1769   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1770   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1771   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1772                           both]
1773   --with-aix-soname=aix|svr4|both
1774                           shared library versioning (aka "SONAME") variant to
1775                           provide on AIX, [default=aix].
1776   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1777   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1778                           compiler's sysroot if not specified).
1779   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1780
1781 Some influential environment variables:
1782   CC          C compiler command
1783   CFLAGS      C compiler flags
1784   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1785               nonstandard directory <lib dir>
1786   LIBS        libraries to pass to the linker, e.g. -l<library>
1787   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1788               you have headers in a nonstandard directory <include dir>
1789   CPP         C preprocessor
1790   CXX         C++ compiler command
1791   CXXFLAGS    C++ compiler flags
1792   LT_SYS_LIBRARY_PATH
1793               User-defined run-time library search path.
1794   CXXCPP      C++ preprocessor
1795
1796 Use these variables to override the choices made by `configure' or to help
1797 it to find libraries and programs with nonstandard names/locations.
1798
1799 Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
1800 _ACEOF
1801 ac_status=$?
1802 fi
1803
1804 if test "$ac_init_help" = "recursive"; then
1805   # If there are subdirs, report their specific --help.
1806   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807     test -d "$ac_dir" ||
1808       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1809       continue
1810     ac_builddir=.
1811
1812 case "$ac_dir" in
1813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *)
1815   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1816   # A ".." for each directory in $ac_dir_suffix.
1817   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1818   case $ac_top_builddir_sub in
1819   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1820   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1821   esac ;;
1822 esac
1823 ac_abs_top_builddir=$ac_pwd
1824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1825 # for backward compatibility:
1826 ac_top_builddir=$ac_top_build_prefix
1827
1828 case $srcdir in
1829   .)  # We are building in place.
1830     ac_srcdir=.
1831     ac_top_srcdir=$ac_top_builddir_sub
1832     ac_abs_top_srcdir=$ac_pwd ;;
1833   [\\/]* | ?:[\\/]* )  # Absolute name.
1834     ac_srcdir=$srcdir$ac_dir_suffix;
1835     ac_top_srcdir=$srcdir
1836     ac_abs_top_srcdir=$srcdir ;;
1837   *) # Relative name.
1838     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1839     ac_top_srcdir=$ac_top_build_prefix$srcdir
1840     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1841 esac
1842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1843
1844     cd "$ac_dir" || { ac_status=$?; continue; }
1845     # Check for configure.gnu first; this name is used for a wrapper for
1846     # Metaconfig's "Configure" on case-insensitive file systems.
1847     if test -f "$ac_srcdir/configure.gnu"; then
1848       echo &&
1849       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1850     elif test -f "$ac_srcdir/configure"; then
1851       echo &&
1852       $SHELL "$ac_srcdir/configure" --help=recursive
1853     else
1854       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1855     fi || ac_status=$?
1856     cd "$ac_pwd" || { ac_status=$?; break; }
1857   done
1858 fi
1859
1860 test -n "$ac_init_help" && exit $ac_status
1861 if $ac_init_version; then
1862   cat <<\_ACEOF
1863 c-ares configure 1.18.1
1864 generated by GNU Autoconf 2.71
1865
1866 Copyright (C) 2021 Free Software Foundation, Inc.
1867 This configure script is free software; the Free Software Foundation
1868 gives unlimited permission to copy, distribute and modify it.
1869 _ACEOF
1870   exit
1871 fi
1872
1873 ## ------------------------ ##
1874 ## Autoconf initialization. ##
1875 ## ------------------------ ##
1876
1877 # ac_fn_c_try_compile LINENO
1878 # --------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_compile ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   rm -f conftest.$ac_objext conftest.beam
1884   if { { ac_try="$ac_compile"
1885 case "(($ac_try" in
1886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887   *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 printf "%s\n" "$ac_try_echo"; } >&5
1891   (eval "$ac_compile") 2>conftest.err
1892   ac_status=$?
1893   if test -s conftest.err; then
1894     grep -v '^ *+' conftest.err >conftest.er1
1895     cat conftest.er1 >&5
1896     mv -f conftest.er1 conftest.err
1897   fi
1898   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } && {
1900          test -z "$ac_c_werror_flag" ||
1901          test ! -s conftest.err
1902        } && test -s conftest.$ac_objext
1903 then :
1904   ac_retval=0
1905 else $as_nop
1906   printf "%s\n" "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909         ac_retval=1
1910 fi
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_compile
1915
1916 # ac_fn_c_try_cpp LINENO
1917 # ----------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_cpp ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925   *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 printf "%s\n" "$ac_try_echo"; } >&5
1929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930   ac_status=$?
1931   if test -s conftest.err; then
1932     grep -v '^ *+' conftest.err >conftest.er1
1933     cat conftest.er1 >&5
1934     mv -f conftest.er1 conftest.err
1935   fi
1936   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937   test $ac_status = 0; } > conftest.i && {
1938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939          test ! -s conftest.err
1940        }
1941 then :
1942   ac_retval=0
1943 else $as_nop
1944   printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947     ac_retval=1
1948 fi
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950   as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_cpp
1953
1954 # ac_fn_cxx_try_compile LINENO
1955 # ----------------------------
1956 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_compile ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   rm -f conftest.$ac_objext conftest.beam
1961   if { { ac_try="$ac_compile"
1962 case "(($ac_try" in
1963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964   *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968   (eval "$ac_compile") 2>conftest.err
1969   ac_status=$?
1970   if test -s conftest.err; then
1971     grep -v '^ *+' conftest.err >conftest.er1
1972     cat conftest.er1 >&5
1973     mv -f conftest.er1 conftest.err
1974   fi
1975   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976   test $ac_status = 0; } && {
1977          test -z "$ac_cxx_werror_flag" ||
1978          test ! -s conftest.err
1979        } && test -s conftest.$ac_objext
1980 then :
1981   ac_retval=0
1982 else $as_nop
1983   printf "%s\n" "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986         ac_retval=1
1987 fi
1988   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989   as_fn_set_status $ac_retval
1990
1991 } # ac_fn_cxx_try_compile
1992
1993 # ac_fn_c_try_link LINENO
1994 # -----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_c_try_link ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2000   if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003   *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 printf "%s\n" "$ac_try_echo"; } >&5
2007   (eval "$ac_link") 2>conftest.err
2008   ac_status=$?
2009   if test -s conftest.err; then
2010     grep -v '^ *+' conftest.err >conftest.er1
2011     cat conftest.er1 >&5
2012     mv -f conftest.er1 conftest.err
2013   fi
2014   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015   test $ac_status = 0; } && {
2016          test -z "$ac_c_werror_flag" ||
2017          test ! -s conftest.err
2018        } && test -s conftest$ac_exeext && {
2019          test "$cross_compiling" = yes ||
2020          test -x conftest$ac_exeext
2021        }
2022 then :
2023   ac_retval=0
2024 else $as_nop
2025   printf "%s\n" "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028         ac_retval=1
2029 fi
2030   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2031   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2032   # interfere with the next link command; also delete a directory that is
2033   # left behind by Apple's compiler.  We do this before executing the actions.
2034   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036   as_fn_set_status $ac_retval
2037
2038 } # ac_fn_c_try_link
2039
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 printf %s "checking for $2... " >&6; }
2049 if eval test \${$3+y}
2050 then :
2051   printf %s "(cached) " >&6
2052 else $as_nop
2053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"
2059 then :
2060   eval "$3=yes"
2061 else $as_nop
2062   eval "$3=no"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 printf "%s\n" "$ac_res" >&6; }
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_header_compile
2072
2073 # ac_fn_c_check_func LINENO FUNC VAR
2074 # ----------------------------------
2075 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2076 ac_fn_c_check_func ()
2077 {
2078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 printf %s "checking for $2... " >&6; }
2081 if eval test \${$3+y}
2082 then :
2083   printf %s "(cached) " >&6
2084 else $as_nop
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2089 #define $2 innocuous_$2
2090
2091 /* System header to define __stub macros and hopefully few prototypes,
2092    which can conflict with char $2 (); below.  */
2093
2094 #include <limits.h>
2095 #undef $2
2096
2097 /* Override any GCC internal prototype to avoid an error.
2098    Use char because int might match the return type of a GCC
2099    builtin and then its argument prototype would still apply.  */
2100 #ifdef __cplusplus
2101 extern "C"
2102 #endif
2103 char $2 ();
2104 /* The GNU C library defines this for functions which it implements
2105     to always fail with ENOSYS.  Some functions are actually named
2106     something starting with __ and the normal name is an alias.  */
2107 #if defined __stub_$2 || defined __stub___$2
2108 choke me
2109 #endif
2110
2111 int
2112 main (void)
2113 {
2114 return $2 ();
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_link "$LINENO"
2120 then :
2121   eval "$3=yes"
2122 else $as_nop
2123   eval "$3=no"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2126     conftest$ac_exeext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 printf "%s\n" "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_func
2134
2135 # ac_fn_cxx_try_cpp LINENO
2136 # ------------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_cpp ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 case "(($ac_try" in
2143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144   *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 printf "%s\n" "$ac_try_echo"; } >&5
2148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149   ac_status=$?
2150   if test -s conftest.err; then
2151     grep -v '^ *+' conftest.err >conftest.er1
2152     cat conftest.er1 >&5
2153     mv -f conftest.er1 conftest.err
2154   fi
2155   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156   test $ac_status = 0; } > conftest.i && {
2157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2158          test ! -s conftest.err
2159        }
2160 then :
2161   ac_retval=0
2162 else $as_nop
2163   printf "%s\n" "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166     ac_retval=1
2167 fi
2168   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169   as_fn_set_status $ac_retval
2170
2171 } # ac_fn_cxx_try_cpp
2172
2173 # ac_fn_cxx_try_link LINENO
2174 # -------------------------
2175 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_cxx_try_link ()
2177 {
2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2180   if { { ac_try="$ac_link"
2181 case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 printf "%s\n" "$ac_try_echo"; } >&5
2187   (eval "$ac_link") 2>conftest.err
2188   ac_status=$?
2189   if test -s conftest.err; then
2190     grep -v '^ *+' conftest.err >conftest.er1
2191     cat conftest.er1 >&5
2192     mv -f conftest.er1 conftest.err
2193   fi
2194   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195   test $ac_status = 0; } && {
2196          test -z "$ac_cxx_werror_flag" ||
2197          test ! -s conftest.err
2198        } && test -s conftest$ac_exeext && {
2199          test "$cross_compiling" = yes ||
2200          test -x conftest$ac_exeext
2201        }
2202 then :
2203   ac_retval=0
2204 else $as_nop
2205   printf "%s\n" "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208         ac_retval=1
2209 fi
2210   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2211   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2212   # interfere with the next link command; also delete a directory that is
2213   # left behind by Apple's compiler.  We do this before executing the actions.
2214   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_cxx_try_link
2219
2220 # ac_fn_c_try_run LINENO
2221 # ----------------------
2222 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2223 # executables *can* be run.
2224 ac_fn_c_try_run ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if { { ac_try="$ac_link"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 printf "%s\n" "$ac_try_echo"; } >&5
2234   (eval "$ac_link") 2>&5
2235   ac_status=$?
2236   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2238   { { case "(($ac_try" in
2239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240   *) ac_try_echo=$ac_try;;
2241 esac
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 printf "%s\n" "$ac_try_echo"; } >&5
2244   (eval "$ac_try") 2>&5
2245   ac_status=$?
2246   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247   test $ac_status = 0; }; }
2248 then :
2249   ac_retval=0
2250 else $as_nop
2251   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2252        printf "%s\n" "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255        ac_retval=$ac_status
2256 fi
2257   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259   as_fn_set_status $ac_retval
2260
2261 } # ac_fn_c_try_run
2262
2263 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2264 # ------------------------------------------------------------------
2265 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2267 ac_fn_check_decl ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   as_decl_name=`echo $2|sed 's/ *(.*//'`
2271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272 printf %s "checking whether $as_decl_name is declared... " >&6; }
2273 if eval test \${$3+y}
2274 then :
2275   printf %s "(cached) " >&6
2276 else $as_nop
2277   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278   eval ac_save_FLAGS=\$$6
2279   as_fn_append $6 " $5"
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main (void)
2285 {
2286 #ifndef $as_decl_name
2287 #ifdef __cplusplus
2288   (void) $as_decl_use;
2289 #else
2290   (void) $as_decl_name;
2291 #endif
2292 #endif
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"
2299 then :
2300   eval "$3=yes"
2301 else $as_nop
2302   eval "$3=no"
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2305   eval $6=\$ac_save_FLAGS
2306
2307 fi
2308 eval ac_res=\$$3
2309                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 printf "%s\n" "$ac_res" >&6; }
2311   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_check_decl
2314
2315 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2316 # -------------------------------------------
2317 # Tests whether TYPE exists after having included INCLUDES, setting cache
2318 # variable VAR accordingly.
2319 ac_fn_c_check_type ()
2320 {
2321   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 printf %s "checking for $2... " >&6; }
2324 if eval test \${$3+y}
2325 then :
2326   printf %s "(cached) " >&6
2327 else $as_nop
2328   eval "$3=no"
2329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 int
2333 main (void)
2334 {
2335 if (sizeof ($2))
2336          return 0;
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"
2342 then :
2343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h.  */
2345 $4
2346 int
2347 main (void)
2348 {
2349 if (sizeof (($2)))
2350             return 0;
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"
2356 then :
2357
2358 else $as_nop
2359   eval "$3=yes"
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2364 fi
2365 eval ac_res=\$$3
2366                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 printf "%s\n" "$ac_res" >&6; }
2368   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370 } # ac_fn_c_check_type
2371
2372 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2373 # ----------------------------------------------------
2374 # Tries to find if the field MEMBER exists in type AGGR, after including
2375 # INCLUDES, setting cache variable VAR accordingly.
2376 ac_fn_c_check_member ()
2377 {
2378   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2380 printf %s "checking for $2.$3... " >&6; }
2381 if eval test \${$4+y}
2382 then :
2383   printf %s "(cached) " >&6
2384 else $as_nop
2385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h.  */
2387 $5
2388 int
2389 main (void)
2390 {
2391 static $2 ac_aggr;
2392 if (ac_aggr.$3)
2393 return 0;
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"
2399 then :
2400   eval "$4=yes"
2401 else $as_nop
2402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h.  */
2404 $5
2405 int
2406 main (void)
2407 {
2408 static $2 ac_aggr;
2409 if (sizeof ac_aggr.$3)
2410 return 0;
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"
2416 then :
2417   eval "$4=yes"
2418 else $as_nop
2419   eval "$4=no"
2420 fi
2421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2424 fi
2425 eval ac_res=\$$4
2426                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 printf "%s\n" "$ac_res" >&6; }
2428   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430 } # ac_fn_c_check_member
2431 ac_configure_args_raw=
2432 for ac_arg
2433 do
2434   case $ac_arg in
2435   *\'*)
2436     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2437   esac
2438   as_fn_append ac_configure_args_raw " '$ac_arg'"
2439 done
2440
2441 case $ac_configure_args_raw in
2442   *$as_nl*)
2443     ac_safe_unquote= ;;
2444   *)
2445     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2446     ac_unsafe_a="$ac_unsafe_z#~"
2447     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2448     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2449 esac
2450
2451 cat >config.log <<_ACEOF
2452 This file contains any messages produced by compilers while
2453 running configure, to aid debugging if configure makes a mistake.
2454
2455 It was created by c-ares $as_me 1.18.1, which was
2456 generated by GNU Autoconf 2.71.  Invocation command line was
2457
2458   $ $0$ac_configure_args_raw
2459
2460 _ACEOF
2461 exec 5>>config.log
2462 {
2463 cat <<_ASUNAME
2464 ## --------- ##
2465 ## Platform. ##
2466 ## --------- ##
2467
2468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2473
2474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2475 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2476
2477 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2478 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2480 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2481 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2482 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2483 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2484
2485 _ASUNAME
2486
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   case $as_dir in #(((
2492     '') as_dir=./ ;;
2493     */) ;;
2494     *) as_dir=$as_dir/ ;;
2495   esac
2496     printf "%s\n" "PATH: $as_dir"
2497   done
2498 IFS=$as_save_IFS
2499
2500 } >&5
2501
2502 cat >&5 <<_ACEOF
2503
2504
2505 ## ----------- ##
2506 ## Core tests. ##
2507 ## ----------- ##
2508
2509 _ACEOF
2510
2511
2512 # Keep a trace of the command line.
2513 # Strip out --no-create and --no-recursion so they do not pile up.
2514 # Strip out --silent because we don't want to record it for future runs.
2515 # Also quote any args containing shell meta-characters.
2516 # Make two passes to allow for proper duplicate-argument suppression.
2517 ac_configure_args=
2518 ac_configure_args0=
2519 ac_configure_args1=
2520 ac_must_keep_next=false
2521 for ac_pass in 1 2
2522 do
2523   for ac_arg
2524   do
2525     case $ac_arg in
2526     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528     | -silent | --silent | --silen | --sile | --sil)
2529       continue ;;
2530     *\'*)
2531       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2532     esac
2533     case $ac_pass in
2534     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2535     2)
2536       as_fn_append ac_configure_args1 " '$ac_arg'"
2537       if test $ac_must_keep_next = true; then
2538         ac_must_keep_next=false # Got value, back to normal.
2539       else
2540         case $ac_arg in
2541           *=* | --config-cache | -C | -disable-* | --disable-* \
2542           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544           | -with-* | --with-* | -without-* | --without-* | --x)
2545             case "$ac_configure_args0 " in
2546               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2547             esac
2548             ;;
2549           -* ) ac_must_keep_next=true ;;
2550         esac
2551       fi
2552       as_fn_append ac_configure_args " '$ac_arg'"
2553       ;;
2554     esac
2555   done
2556 done
2557 { ac_configure_args0=; unset ac_configure_args0;}
2558 { ac_configure_args1=; unset ac_configure_args1;}
2559
2560 # When interrupted or exit'd, cleanup temporary files, and complete
2561 # config.log.  We remove comments because anyway the quotes in there
2562 # would cause problems or look ugly.
2563 # WARNING: Use '\'' to represent an apostrophe within the trap.
2564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565 trap 'exit_status=$?
2566   # Sanitize IFS.
2567   IFS=" ""      $as_nl"
2568   # Save into config.log some information that might help in debugging.
2569   {
2570     echo
2571
2572     printf "%s\n" "## ---------------- ##
2573 ## Cache variables. ##
2574 ## ---------------- ##"
2575     echo
2576     # The following way of writing the cache mishandles newlines in values,
2577 (
2578   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579     eval ac_val=\$$ac_var
2580     case $ac_val in #(
2581     *${as_nl}*)
2582       case $ac_var in #(
2583       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2585       esac
2586       case $ac_var in #(
2587       _ | IFS | as_nl) ;; #(
2588       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589       *) { eval $ac_var=; unset $ac_var;} ;;
2590       esac ;;
2591     esac
2592   done
2593   (set) 2>&1 |
2594     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595     *${as_nl}ac_space=\ *)
2596       sed -n \
2597         "s/'\''/'\''\\\\'\'''\''/g;
2598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2599       ;; #(
2600     *)
2601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602       ;;
2603     esac |
2604     sort
2605 )
2606     echo
2607
2608     printf "%s\n" "## ----------------- ##
2609 ## Output variables. ##
2610 ## ----------------- ##"
2611     echo
2612     for ac_var in $ac_subst_vars
2613     do
2614       eval ac_val=\$$ac_var
2615       case $ac_val in
2616       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617       esac
2618       printf "%s\n" "$ac_var='\''$ac_val'\''"
2619     done | sort
2620     echo
2621
2622     if test -n "$ac_subst_files"; then
2623       printf "%s\n" "## ------------------- ##
2624 ## File substitutions. ##
2625 ## ------------------- ##"
2626       echo
2627       for ac_var in $ac_subst_files
2628       do
2629         eval ac_val=\$$ac_var
2630         case $ac_val in
2631         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632         esac
2633         printf "%s\n" "$ac_var='\''$ac_val'\''"
2634       done | sort
2635       echo
2636     fi
2637
2638     if test -s confdefs.h; then
2639       printf "%s\n" "## ----------- ##
2640 ## confdefs.h. ##
2641 ## ----------- ##"
2642       echo
2643       cat confdefs.h
2644       echo
2645     fi
2646     test "$ac_signal" != 0 &&
2647       printf "%s\n" "$as_me: caught signal $ac_signal"
2648     printf "%s\n" "$as_me: exit $exit_status"
2649   } >&5
2650   rm -f core *.core core.conftest.* &&
2651     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2652     exit $exit_status
2653 ' 0
2654 for ac_signal in 1 2 13 15; do
2655   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 done
2657 ac_signal=0
2658
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest* confdefs.h
2661
2662 printf "%s\n" "/* confdefs.h */" > confdefs.h
2663
2664 # Predefined preprocessor variables.
2665
2666 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2667
2668 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2669
2670 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2671
2672 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2673
2674 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2675
2676 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2677
2678
2679 # Let the site file select an alternate cache file if it wants to.
2680 # Prefer an explicitly selected file to automatically selected ones.
2681 if test -n "$CONFIG_SITE"; then
2682   ac_site_files="$CONFIG_SITE"
2683 elif test "x$prefix" != xNONE; then
2684   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2685 else
2686   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2687 fi
2688
2689 for ac_site_file in $ac_site_files
2690 do
2691   case $ac_site_file in #(
2692   */*) :
2693      ;; #(
2694   *) :
2695     ac_site_file=./$ac_site_file ;;
2696 esac
2697   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2698     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2699 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2700     sed 's/^/| /' "$ac_site_file" >&5
2701     . "$ac_site_file" \
2702       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error $? "failed to load site script $ac_site_file
2705 See \`config.log' for more details" "$LINENO" 5; }
2706   fi
2707 done
2708
2709 if test -r "$cache_file"; then
2710   # Some versions of bash will fail to source /dev/null (special files
2711   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2712   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2715     case $cache_file in
2716       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717       *)                      . "./$cache_file";;
2718     esac
2719   fi
2720 else
2721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2723   >$cache_file
2724 fi
2725
2726 # Test code for whether the C compiler supports C89 (global declarations)
2727 ac_c_conftest_c89_globals='
2728 /* Does the compiler advertise C89 conformance?
2729    Do not test the value of __STDC__, because some compilers set it to 0
2730    while being otherwise adequately conformant. */
2731 #if !defined __STDC__
2732 # error "Compiler does not advertise C89 conformance"
2733 #endif
2734
2735 #include <stddef.h>
2736 #include <stdarg.h>
2737 struct stat;
2738 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2739 struct buf { int x; };
2740 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742      char **p;
2743      int i;
2744 {
2745   return p[i];
2746 }
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2748 {
2749   char *s;
2750   va_list v;
2751   va_start (v,p);
2752   s = g (p, va_arg (v,int));
2753   va_end (v);
2754   return s;
2755 }
2756
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2758    function prototypes and stuff, but not \xHH hex character constants.
2759    These do not provoke an error unfortunately, instead are silently treated
2760    as an "x".  The following induces an error, until -std is added to get
2761    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2762    array size at least.  It is necessary to write \x00 == 0 to get something
2763    that is true only with -std.  */
2764 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2765
2766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2767    inside strings and character constants.  */
2768 #define FOO(x) '\''x'\''
2769 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2770
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2775                int, int);'
2776
2777 # Test code for whether the C compiler supports C89 (body of main).
2778 ac_c_conftest_c89_main='
2779 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2780 '
2781
2782 # Test code for whether the C compiler supports C99 (global declarations)
2783 ac_c_conftest_c99_globals='
2784 // Does the compiler advertise C99 conformance?
2785 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2786 # error "Compiler does not advertise C99 conformance"
2787 #endif
2788
2789 #include <stdbool.h>
2790 extern int puts (const char *);
2791 extern int printf (const char *, ...);
2792 extern int dprintf (int, const char *, ...);
2793 extern void *malloc (size_t);
2794
2795 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2796 // dprintf is used instead of fprintf to avoid needing to declare
2797 // FILE and stderr.
2798 #define debug(...) dprintf (2, __VA_ARGS__)
2799 #define showlist(...) puts (#__VA_ARGS__)
2800 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2801 static void
2802 test_varargs_macros (void)
2803 {
2804   int x = 1234;
2805   int y = 5678;
2806   debug ("Flag");
2807   debug ("X = %d\n", x);
2808   showlist (The first, second, and third items.);
2809   report (x>y, "x is %d but y is %d", x, y);
2810 }
2811
2812 // Check long long types.
2813 #define BIG64 18446744073709551615ull
2814 #define BIG32 4294967295ul
2815 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2816 #if !BIG_OK
2817   #error "your preprocessor is broken"
2818 #endif
2819 #if BIG_OK
2820 #else
2821   #error "your preprocessor is broken"
2822 #endif
2823 static long long int bignum = -9223372036854775807LL;
2824 static unsigned long long int ubignum = BIG64;
2825
2826 struct incomplete_array
2827 {
2828   int datasize;
2829   double data[];
2830 };
2831
2832 struct named_init {
2833   int number;
2834   const wchar_t *name;
2835   double average;
2836 };
2837
2838 typedef const char *ccp;
2839
2840 static inline int
2841 test_restrict (ccp restrict text)
2842 {
2843   // See if C++-style comments work.
2844   // Iterate through items via the restricted pointer.
2845   // Also check for declarations in for loops.
2846   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2847     continue;
2848   return 0;
2849 }
2850
2851 // Check varargs and va_copy.
2852 static bool
2853 test_varargs (const char *format, ...)
2854 {
2855   va_list args;
2856   va_start (args, format);
2857   va_list args_copy;
2858   va_copy (args_copy, args);
2859
2860   const char *str = "";
2861   int number = 0;
2862   float fnumber = 0;
2863
2864   while (*format)
2865     {
2866       switch (*format++)
2867         {
2868         case '\''s'\'': // string
2869           str = va_arg (args_copy, const char *);
2870           break;
2871         case '\''d'\'': // int
2872           number = va_arg (args_copy, int);
2873           break;
2874         case '\''f'\'': // float
2875           fnumber = va_arg (args_copy, double);
2876           break;
2877         default:
2878           break;
2879         }
2880     }
2881   va_end (args_copy);
2882   va_end (args);
2883
2884   return *str && number && fnumber;
2885 }
2886 '
2887
2888 # Test code for whether the C compiler supports C99 (body of main).
2889 ac_c_conftest_c99_main='
2890   // Check bool.
2891   _Bool success = false;
2892   success |= (argc != 0);
2893
2894   // Check restrict.
2895   if (test_restrict ("String literal") == 0)
2896     success = true;
2897   char *restrict newvar = "Another string";
2898
2899   // Check varargs.
2900   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2901   test_varargs_macros ();
2902
2903   // Check flexible array members.
2904   struct incomplete_array *ia =
2905     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2906   ia->datasize = 10;
2907   for (int i = 0; i < ia->datasize; ++i)
2908     ia->data[i] = i * 1.234;
2909
2910   // Check named initializers.
2911   struct named_init ni = {
2912     .number = 34,
2913     .name = L"Test wide string",
2914     .average = 543.34343,
2915   };
2916
2917   ni.number = 58;
2918
2919   int dynamic_array[ni.number];
2920   dynamic_array[0] = argv[0][0];
2921   dynamic_array[ni.number - 1] = 543;
2922
2923   // work around unused variable warnings
2924   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2925          || dynamic_array[ni.number - 1] != 543);
2926 '
2927
2928 # Test code for whether the C compiler supports C11 (global declarations)
2929 ac_c_conftest_c11_globals='
2930 // Does the compiler advertise C11 conformance?
2931 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2932 # error "Compiler does not advertise C11 conformance"
2933 #endif
2934
2935 // Check _Alignas.
2936 char _Alignas (double) aligned_as_double;
2937 char _Alignas (0) no_special_alignment;
2938 extern char aligned_as_int;
2939 char _Alignas (0) _Alignas (int) aligned_as_int;
2940
2941 // Check _Alignof.
2942 enum
2943 {
2944   int_alignment = _Alignof (int),
2945   int_array_alignment = _Alignof (int[100]),
2946   char_alignment = _Alignof (char)
2947 };
2948 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2949
2950 // Check _Noreturn.
2951 int _Noreturn does_not_return (void) { for (;;) continue; }
2952
2953 // Check _Static_assert.
2954 struct test_static_assert
2955 {
2956   int x;
2957   _Static_assert (sizeof (int) <= sizeof (long int),
2958                   "_Static_assert does not work in struct");
2959   long int y;
2960 };
2961
2962 // Check UTF-8 literals.
2963 #define u8 syntax error!
2964 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2965
2966 // Check duplicate typedefs.
2967 typedef long *long_ptr;
2968 typedef long int *long_ptr;
2969 typedef long_ptr long_ptr;
2970
2971 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2972 struct anonymous
2973 {
2974   union {
2975     struct { int i; int j; };
2976     struct { int k; long int l; } w;
2977   };
2978   int m;
2979 } v1;
2980 '
2981
2982 # Test code for whether the C compiler supports C11 (body of main).
2983 ac_c_conftest_c11_main='
2984   _Static_assert ((offsetof (struct anonymous, i)
2985                    == offsetof (struct anonymous, w.k)),
2986                   "Anonymous union alignment botch");
2987   v1.i = 2;
2988   v1.w.k = 5;
2989   ok |= v1.i != 5;
2990 '
2991
2992 # Test code for whether the C compiler supports C11 (complete).
2993 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2994 ${ac_c_conftest_c99_globals}
2995 ${ac_c_conftest_c11_globals}
2996
2997 int
2998 main (int argc, char **argv)
2999 {
3000   int ok = 0;
3001   ${ac_c_conftest_c89_main}
3002   ${ac_c_conftest_c99_main}
3003   ${ac_c_conftest_c11_main}
3004   return ok;
3005 }
3006 "
3007
3008 # Test code for whether the C compiler supports C99 (complete).
3009 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3010 ${ac_c_conftest_c99_globals}
3011
3012 int
3013 main (int argc, char **argv)
3014 {
3015   int ok = 0;
3016   ${ac_c_conftest_c89_main}
3017   ${ac_c_conftest_c99_main}
3018   return ok;
3019 }
3020 "
3021
3022 # Test code for whether the C compiler supports C89 (complete).
3023 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3024
3025 int
3026 main (int argc, char **argv)
3027 {
3028   int ok = 0;
3029   ${ac_c_conftest_c89_main}
3030   return ok;
3031 }
3032 "
3033
3034 # Test code for whether the C++ compiler supports C++98 (global declarations)
3035 ac_cxx_conftest_cxx98_globals='
3036 // Does the compiler advertise C++98 conformance?
3037 #if !defined __cplusplus || __cplusplus < 199711L
3038 # error "Compiler does not advertise C++98 conformance"
3039 #endif
3040
3041 // These inclusions are to reject old compilers that
3042 // lack the unsuffixed header files.
3043 #include <cstdlib>
3044 #include <exception>
3045
3046 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3047 extern void assert (int);
3048 namespace std {
3049   extern int strcmp (const char *, const char *);
3050 }
3051
3052 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3053 using std::exception;
3054 using std::strcmp;
3055
3056 namespace {
3057
3058 void test_exception_syntax()
3059 {
3060   try {
3061     throw "test";
3062   } catch (const char *s) {
3063     // Extra parentheses suppress a warning when building autoconf itself,
3064     // due to lint rules shared with more typical C programs.
3065     assert (!(strcmp) (s, "test"));
3066   }
3067 }
3068
3069 template <typename T> struct test_template
3070 {
3071   T const val;
3072   explicit test_template(T t) : val(t) {}
3073   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3074 };
3075
3076 } // anonymous namespace
3077 '
3078
3079 # Test code for whether the C++ compiler supports C++98 (body of main)
3080 ac_cxx_conftest_cxx98_main='
3081   assert (argc);
3082   assert (! argv[0]);
3083 {
3084   test_exception_syntax ();
3085   test_template<double> tt (2.0);
3086   assert (tt.add (4) == 6.0);
3087   assert (true && !false);
3088 }
3089 '
3090
3091 # Test code for whether the C++ compiler supports C++11 (global declarations)
3092 ac_cxx_conftest_cxx11_globals='
3093 // Does the compiler advertise C++ 2011 conformance?
3094 #if !defined __cplusplus || __cplusplus < 201103L
3095 # error "Compiler does not advertise C++11 conformance"
3096 #endif
3097
3098 namespace cxx11test
3099 {
3100   constexpr int get_val() { return 20; }
3101
3102   struct testinit
3103   {
3104     int i;
3105     double d;
3106   };
3107
3108   class delegate
3109   {
3110   public:
3111     delegate(int n) : n(n) {}
3112     delegate(): delegate(2354) {}
3113
3114     virtual int getval() { return this->n; };
3115   protected:
3116     int n;
3117   };
3118
3119   class overridden : public delegate
3120   {
3121   public:
3122     overridden(int n): delegate(n) {}
3123     virtual int getval() override final { return this->n * 2; }
3124   };
3125
3126   class nocopy
3127   {
3128   public:
3129     nocopy(int i): i(i) {}
3130     nocopy() = default;
3131     nocopy(const nocopy&) = delete;
3132     nocopy & operator=(const nocopy&) = delete;
3133   private:
3134     int i;
3135   };
3136
3137   // for testing lambda expressions
3138   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3139   {
3140     return f(v);
3141   }
3142
3143   // for testing variadic templates and trailing return types
3144   template <typename V> auto sum(V first) -> V
3145   {
3146     return first;
3147   }
3148   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3149   {
3150     return first + sum(rest...);
3151   }
3152 }
3153 '
3154
3155 # Test code for whether the C++ compiler supports C++11 (body of main)
3156 ac_cxx_conftest_cxx11_main='
3157 {
3158   // Test auto and decltype
3159   auto a1 = 6538;
3160   auto a2 = 48573953.4;
3161   auto a3 = "String literal";
3162
3163   int total = 0;
3164   for (auto i = a3; *i; ++i) { total += *i; }
3165
3166   decltype(a2) a4 = 34895.034;
3167 }
3168 {
3169   // Test constexpr
3170   short sa[cxx11test::get_val()] = { 0 };
3171 }
3172 {
3173   // Test initializer lists
3174   cxx11test::testinit il = { 4323, 435234.23544 };
3175 }
3176 {
3177   // Test range-based for
3178   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3179                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3180   for (auto &x : array) { x += 23; }
3181 }
3182 {
3183   // Test lambda expressions
3184   using cxx11test::eval;
3185   assert (eval ([](int x) { return x*2; }, 21) == 42);
3186   double d = 2.0;
3187   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3188   assert (d == 5.0);
3189   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3190   assert (d == 5.0);
3191 }
3192 {
3193   // Test use of variadic templates
3194   using cxx11test::sum;
3195   auto a = sum(1);
3196   auto b = sum(1, 2);
3197   auto c = sum(1.0, 2.0, 3.0);
3198 }
3199 {
3200   // Test constructor delegation
3201   cxx11test::delegate d1;
3202   cxx11test::delegate d2();
3203   cxx11test::delegate d3(45);
3204 }
3205 {
3206   // Test override and final
3207   cxx11test::overridden o1(55464);
3208 }
3209 {
3210   // Test nullptr
3211   char *c = nullptr;
3212 }
3213 {
3214   // Test template brackets
3215   test_template<::test_template<int>> v(test_template<int>(12));
3216 }
3217 {
3218   // Unicode literals
3219   char const *utf8 = u8"UTF-8 string \u2500";
3220   char16_t const *utf16 = u"UTF-8 string \u2500";
3221   char32_t const *utf32 = U"UTF-32 string \u2500";
3222 }
3223 '
3224
3225 # Test code for whether the C compiler supports C++11 (complete).
3226 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3227 ${ac_cxx_conftest_cxx11_globals}
3228
3229 int
3230 main (int argc, char **argv)
3231 {
3232   int ok = 0;
3233   ${ac_cxx_conftest_cxx98_main}
3234   ${ac_cxx_conftest_cxx11_main}
3235   return ok;
3236 }
3237 "
3238
3239 # Test code for whether the C compiler supports C++98 (complete).
3240 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3241 int
3242 main (int argc, char **argv)
3243 {
3244   int ok = 0;
3245   ${ac_cxx_conftest_cxx98_main}
3246   return ok;
3247 }
3248 "
3249
3250 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3251 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3252 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3253 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3254 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3255 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3256 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3257 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3258 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3259 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3260
3261 # Auxiliary files required by this configure script.
3262 ac_aux_files="ltmain.sh missing compile install-sh config.guess config.sub"
3263
3264 # Locations in which to look for auxiliary files.
3265 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3266
3267 # Search for a directory containing all of the required auxiliary files,
3268 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3269 # If we don't find one directory that contains all the files we need,
3270 # we report the set of missing files from the *first* directory in
3271 # $ac_aux_dir_candidates and give up.
3272 ac_missing_aux_files=""
3273 ac_first_candidate=:
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 as_found=false
3277 for as_dir in $ac_aux_dir_candidates
3278 do
3279   IFS=$as_save_IFS
3280   case $as_dir in #(((
3281     '') as_dir=./ ;;
3282     */) ;;
3283     *) as_dir=$as_dir/ ;;
3284   esac
3285   as_found=:
3286
3287   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3288   ac_aux_dir_found=yes
3289   ac_install_sh=
3290   for ac_aux in $ac_aux_files
3291   do
3292     # As a special case, if "install-sh" is required, that requirement
3293     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3294     # and $ac_install_sh is set appropriately for whichever one is found.
3295     if test x"$ac_aux" = x"install-sh"
3296     then
3297       if test -f "${as_dir}install-sh"; then
3298         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3299         ac_install_sh="${as_dir}install-sh -c"
3300       elif test -f "${as_dir}install.sh"; then
3301         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3302         ac_install_sh="${as_dir}install.sh -c"
3303       elif test -f "${as_dir}shtool"; then
3304         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3305         ac_install_sh="${as_dir}shtool install -c"
3306       else
3307         ac_aux_dir_found=no
3308         if $ac_first_candidate; then
3309           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3310         else
3311           break
3312         fi
3313       fi
3314     else
3315       if test -f "${as_dir}${ac_aux}"; then
3316         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3317       else
3318         ac_aux_dir_found=no
3319         if $ac_first_candidate; then
3320           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3321         else
3322           break
3323         fi
3324       fi
3325     fi
3326   done
3327   if test "$ac_aux_dir_found" = yes; then
3328     ac_aux_dir="$as_dir"
3329     break
3330   fi
3331   ac_first_candidate=false
3332
3333   as_found=false
3334 done
3335 IFS=$as_save_IFS
3336 if $as_found
3337 then :
3338
3339 else $as_nop
3340   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3341 fi
3342
3343
3344 # These three variables are undocumented and unsupported,
3345 # and are intended to be withdrawn in a future Autoconf release.
3346 # They can cause serious problems if a builder's source tree is in a directory
3347 # whose full name contains unusual characters.
3348 if test -f "${ac_aux_dir}config.guess"; then
3349   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3350 fi
3351 if test -f "${ac_aux_dir}config.sub"; then
3352   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3353 fi
3354 if test -f "$ac_aux_dir/configure"; then
3355   ac_configure="$SHELL ${ac_aux_dir}configure"
3356 fi
3357
3358 # Check that the precious variables saved in the cache have kept the same
3359 # value.
3360 ac_cache_corrupted=false
3361 for ac_var in $ac_precious_vars; do
3362   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3363   eval ac_new_set=\$ac_env_${ac_var}_set
3364   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3365   eval ac_new_val=\$ac_env_${ac_var}_value
3366   case $ac_old_set,$ac_new_set in
3367     set,)
3368       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3369 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3370       ac_cache_corrupted=: ;;
3371     ,set)
3372       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3373 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3374       ac_cache_corrupted=: ;;
3375     ,);;
3376     *)
3377       if test "x$ac_old_val" != "x$ac_new_val"; then
3378         # differences in whitespace do not lead to failure.
3379         ac_old_val_w=`echo x $ac_old_val`
3380         ac_new_val_w=`echo x $ac_new_val`
3381         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3382           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3383 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3384           ac_cache_corrupted=:
3385         else
3386           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3387 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3388           eval $ac_var=\$ac_old_val
3389         fi
3390         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3391 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3392         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3393 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3394       fi;;
3395   esac
3396   # Pass precious variables to config.status.
3397   if test "$ac_new_set" = set; then
3398     case $ac_new_val in
3399     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3400     *) ac_arg=$ac_var=$ac_new_val ;;
3401     esac
3402     case " $ac_configure_args " in
3403       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3404       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3405     esac
3406   fi
3407 done
3408 if $ac_cache_corrupted; then
3409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3411   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3412 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3413   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3414             and start over" "$LINENO" 5
3415 fi
3416 ## -------------------- ##
3417 ## Main body of script. ##
3418 ## -------------------- ##
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427
3428 CARES_VERSION_INFO="7:1:5"
3429
3430
3431
3432 ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
3433
3434
3435
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3437 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3438     # Check whether --enable-maintainer-mode was given.
3439 if test ${enable_maintainer_mode+y}
3440 then :
3441   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3442 else $as_nop
3443   USE_MAINTAINER_MODE=no
3444 fi
3445
3446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3447 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3448    if test $USE_MAINTAINER_MODE = yes; then
3449   MAINTAINER_MODE_TRUE=
3450   MAINTAINER_MODE_FALSE='#'
3451 else
3452   MAINTAINER_MODE_TRUE='#'
3453   MAINTAINER_MODE_FALSE=
3454 fi
3455
3456   MAINT=$MAINTAINER_MODE_TRUE
3457
3458
3459 # Check whether --enable-silent-rules was given.
3460 if test ${enable_silent_rules+y}
3461 then :
3462   enableval=$enable_silent_rules;
3463 fi
3464
3465 case $enable_silent_rules in # (((
3466   yes) AM_DEFAULT_VERBOSITY=0;;
3467    no) AM_DEFAULT_VERBOSITY=1;;
3468     *) AM_DEFAULT_VERBOSITY=0;;
3469 esac
3470 am_make=${MAKE-make}
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3472 printf %s "checking whether $am_make supports nested variables... " >&6; }
3473 if test ${am_cv_make_support_nested_variables+y}
3474 then :
3475   printf %s "(cached) " >&6
3476 else $as_nop
3477   if printf "%s\n" 'TRUE=$(BAR$(V))
3478 BAR0=false
3479 BAR1=true
3480 V=1
3481 am__doit:
3482         @$(TRUE)
3483 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3484   am_cv_make_support_nested_variables=yes
3485 else
3486   am_cv_make_support_nested_variables=no
3487 fi
3488 fi
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3490 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3491 if test $am_cv_make_support_nested_variables = yes; then
3492     AM_V='$(V)'
3493   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3494 else
3495   AM_V=$AM_DEFAULT_VERBOSITY
3496   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3497 fi
3498 AM_BACKSLASH='\'
3499
3500
3501
3502
3503
3504
3505       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3506 printf %s "checking whether to enable debug build options... " >&6; }
3507   OPT_DEBUG_BUILD="default"
3508   # Check whether --enable-debug was given.
3509 if test ${enable_debug+y}
3510 then :
3511   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3512 fi
3513
3514   case "$OPT_DEBUG_BUILD" in
3515     no)
3516             want_debug="no"
3517       ;;
3518     default)
3519             want_debug="no"
3520       ;;
3521     *)
3522             want_debug="yes"
3523       ;;
3524   esac
3525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3526 printf "%s\n" "$want_debug" >&6; }
3527
3528
3529       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3530 printf %s "checking whether to enable compiler optimizer... " >&6; }
3531   OPT_COMPILER_OPTIMIZE="default"
3532   # Check whether --enable-optimize was given.
3533 if test ${enable_optimize+y}
3534 then :
3535   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3536 fi
3537
3538   case "$OPT_COMPILER_OPTIMIZE" in
3539     no)
3540                               want_optimize="no"
3541       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 printf "%s\n" "no" >&6; }
3543       ;;
3544     default)
3545                                                                         if test "$want_debug" = "yes"; then
3546         want_optimize="assume_no"
3547         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
3548 printf "%s\n" "not specified (assuming no)" >&6; }
3549       else
3550         want_optimize="assume_yes"
3551         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
3552 printf "%s\n" "not specified (assuming yes)" >&6; }
3553       fi
3554       ;;
3555     *)
3556                               want_optimize="yes"
3557       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 printf "%s\n" "yes" >&6; }
3559       ;;
3560   esac
3561
3562
3563         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3564 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3565   OPT_COMPILER_WARNINGS="default"
3566   # Check whether --enable-warnings was given.
3567 if test ${enable_warnings+y}
3568 then :
3569   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3570 fi
3571
3572   case "$OPT_COMPILER_WARNINGS" in
3573     no)
3574             want_warnings="no"
3575       ;;
3576     default)
3577                   want_warnings="$want_debug"
3578       ;;
3579     *)
3580             want_warnings="yes"
3581       ;;
3582   esac
3583   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3584 printf "%s\n" "$want_warnings" >&6; }
3585
3586
3587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3588 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3589   OPT_COMPILER_WERROR="default"
3590   # Check whether --enable-werror was given.
3591 if test ${enable_werror+y}
3592 then :
3593   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3594 fi
3595
3596   case "$OPT_COMPILER_WERROR" in
3597     no)
3598             want_werror="no"
3599       ;;
3600     default)
3601             want_werror="no"
3602       ;;
3603     *)
3604             want_werror="yes"
3605       ;;
3606   esac
3607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3608 printf "%s\n" "$want_werror" >&6; }
3609
3610
3611     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3612 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3613   OPT_SYMBOL_HIDING="default"
3614   # Check whether --enable-symbol-hiding was given.
3615 if test ${enable_symbol_hiding+y}
3616 then :
3617   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3618 fi
3619
3620   case "$OPT_SYMBOL_HIDING" in
3621     no)
3622                               want_symbol_hiding="no"
3623       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3625       ;;
3626     default)
3627                   want_symbol_hiding="yes"
3628       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 printf "%s\n" "yes" >&6; }
3630       ;;
3631     *)
3632                         want_symbol_hiding="yes"
3633       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3634 printf "%s\n" "yes" >&6; }
3635       ;;
3636   esac
3637
3638
3639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
3640 printf %s "checking whether to expose internal static functions for testing... " >&6; }
3641   OPT_EXPOSE_STATICS="default"
3642   # Check whether --enable-expose-statics was given.
3643 if test ${enable_expose_statics+y}
3644 then :
3645   enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
3646 fi
3647
3648   case "$OPT_EXPOSE_STATICS" in
3649     no)
3650             want_expose_statics="no"
3651       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653       ;;
3654     default)
3655                   want_expose_statics="no"
3656       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658       ;;
3659     *)
3660             want_expose_statics="yes"
3661       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 printf "%s\n" "yes" >&6; }
3663       ;;
3664   esac
3665   if test "$want_expose_statics" = "yes"; then
3666
3667 printf "%s\n" "#define CARES_EXPOSE_STATICS 1" >>confdefs.h
3668
3669   fi
3670
3671
3672 #
3673 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3674 #
3675
3676 if test -z "$xc_configure_preamble_result"; then
3677   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3678 fi
3679
3680 #
3681 # Check that 'PATH_SEPARATOR' has already been set.
3682 #
3683
3684 if test -z "$xc_PATH_SEPARATOR"; then
3685   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3686 fi
3687 if test -z "$PATH_SEPARATOR"; then
3688   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3689 fi
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3691 printf %s "checking for path separator... " >&6; }
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3693 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3694 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3696 printf %s "checking for initial path separator... " >&6; }
3697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3698 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3699   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3700 fi
3701
3702
3703 # Extract the first word of "sed", so it can be a program name with args.
3704 set dummy sed; ac_word=$2
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 printf %s "checking for $ac_word... " >&6; }
3707 if test ${ac_cv_path_SED+y}
3708 then :
3709   printf %s "(cached) " >&6
3710 else $as_nop
3711   case $SED in
3712   [\\/]* | ?:[\\/]*)
3713   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3714   ;;
3715   *)
3716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3718 for as_dir in $as_dummy
3719 do
3720   IFS=$as_save_IFS
3721   case $as_dir in #(((
3722     '') as_dir=./ ;;
3723     */) ;;
3724     *) as_dir=$as_dir/ ;;
3725   esac
3726     for ac_exec_ext in '' $ac_executable_extensions; do
3727   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3728     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3729     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733   done
3734 IFS=$as_save_IFS
3735
3736   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3737   ;;
3738 esac
3739 fi
3740 SED=$ac_cv_path_SED
3741 if test -n "$SED"; then
3742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3743 printf "%s\n" "$SED" >&6; }
3744 else
3745   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 printf "%s\n" "no" >&6; }
3747 fi
3748
3749
3750 if test -z "$SED" || test "$SED" = "not_found"; then
3751   as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3752 fi
3753
3754
3755 # Extract the first word of "grep", so it can be a program name with args.
3756 set dummy grep; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_path_GREP+y}
3760 then :
3761   printf %s "(cached) " >&6
3762 else $as_nop
3763   case $GREP in
3764   [\\/]* | ?:[\\/]*)
3765   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3766   ;;
3767   *)
3768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3770 for as_dir in $as_dummy
3771 do
3772   IFS=$as_save_IFS
3773   case $as_dir in #(((
3774     '') as_dir=./ ;;
3775     */) ;;
3776     *) as_dir=$as_dir/ ;;
3777   esac
3778     for ac_exec_ext in '' $ac_executable_extensions; do
3779   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780     ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3781     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785   done
3786 IFS=$as_save_IFS
3787
3788   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3789   ;;
3790 esac
3791 fi
3792 GREP=$ac_cv_path_GREP
3793 if test -n "$GREP"; then
3794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3795 printf "%s\n" "$GREP" >&6; }
3796 else
3797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3799 fi
3800
3801
3802 if test -z "$GREP" || test "$GREP" = "not_found"; then
3803   as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3804 fi
3805
3806
3807 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3809 printf %s "checking for egrep... " >&6; }
3810   EGREP="$GREP -E"
3811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3812 printf "%s\n" "$EGREP" >&6; }
3813 else
3814   # Extract the first word of "egrep", so it can be a program name with args.
3815 set dummy egrep; ac_word=$2
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 printf %s "checking for $ac_word... " >&6; }
3818 if test ${ac_cv_path_EGREP+y}
3819 then :
3820   printf %s "(cached) " >&6
3821 else $as_nop
3822   case $EGREP in
3823   [\\/]* | ?:[\\/]*)
3824   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3825   ;;
3826   *)
3827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3829 for as_dir in $as_dummy
3830 do
3831   IFS=$as_save_IFS
3832   case $as_dir in #(((
3833     '') as_dir=./ ;;
3834     */) ;;
3835     *) as_dir=$as_dir/ ;;
3836   esac
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3839     ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844   done
3845 IFS=$as_save_IFS
3846
3847   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3848   ;;
3849 esac
3850 fi
3851 EGREP=$ac_cv_path_EGREP
3852 if test -n "$EGREP"; then
3853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3854 printf "%s\n" "$EGREP" >&6; }
3855 else
3856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3863   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3864 fi
3865
3866
3867 if test -z "$AR"; then
3868     if test -n "$ac_tool_prefix"; then
3869   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}ar; ac_word=$2
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 printf %s "checking for $ac_word... " >&6; }
3873 if test ${ac_cv_path_AR+y}
3874 then :
3875   printf %s "(cached) " >&6
3876 else $as_nop
3877   case $AR in
3878   [\\/]* | ?:[\\/]*)
3879   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3880   ;;
3881   *)
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3884 for as_dir in $as_dummy
3885 do
3886   IFS=$as_save_IFS
3887   case $as_dir in #(((
3888     '') as_dir=./ ;;
3889     */) ;;
3890     *) as_dir=$as_dir/ ;;
3891   esac
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
3895     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899   done
3900 IFS=$as_save_IFS
3901
3902   ;;
3903 esac
3904 fi
3905 AR=$ac_cv_path_AR
3906 if test -n "$AR"; then
3907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3908 printf "%s\n" "$AR" >&6; }
3909 else
3910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 printf "%s\n" "no" >&6; }
3912 fi
3913
3914
3915 fi
3916 if test -z "$ac_cv_path_AR"; then
3917   ac_pt_AR=$AR
3918   # Extract the first word of "ar", so it can be a program name with args.
3919 set dummy ar; ac_word=$2
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 printf %s "checking for $ac_word... " >&6; }
3922 if test ${ac_cv_path_ac_pt_AR+y}
3923 then :
3924   printf %s "(cached) " >&6
3925 else $as_nop
3926   case $ac_pt_AR in
3927   [\\/]* | ?:[\\/]*)
3928   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3929   ;;
3930   *)
3931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3933 for as_dir in $as_dummy
3934 do
3935   IFS=$as_save_IFS
3936   case $as_dir in #(((
3937     '') as_dir=./ ;;
3938     */) ;;
3939     *) as_dir=$as_dir/ ;;
3940   esac
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
3944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948   done
3949 IFS=$as_save_IFS
3950
3951   ;;
3952 esac
3953 fi
3954 ac_pt_AR=$ac_cv_path_ac_pt_AR
3955 if test -n "$ac_pt_AR"; then
3956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3957 printf "%s\n" "$ac_pt_AR" >&6; }
3958 else
3959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3961 fi
3962
3963   if test "x$ac_pt_AR" = x; then
3964     AR="not_found"
3965   else
3966     case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972     AR=$ac_pt_AR
3973   fi
3974 else
3975   AR="$ac_cv_path_AR"
3976 fi
3977
3978   if test -z "$AR" || test "$AR" = "not_found"; then
3979     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3980   fi
3981 fi
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998         # allow to override gcov location
3999
4000 # Check whether --with-gcov was given.
4001 if test ${with_gcov+y}
4002 then :
4003   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4004 else $as_nop
4005   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4006 fi
4007
4008
4009         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4010 printf %s "checking whether to build with code coverage support... " >&6; }
4011         # Check whether --enable-code-coverage was given.
4012 if test ${enable_code_coverage+y}
4013 then :
4014   enableval=$enable_code_coverage;
4015 else $as_nop
4016   enable_code_coverage=no
4017 fi
4018
4019
4020          if test "x$enable_code_coverage" = xyes; then
4021   CODE_COVERAGE_ENABLED_TRUE=
4022   CODE_COVERAGE_ENABLED_FALSE='#'
4023 else
4024   CODE_COVERAGE_ENABLED_TRUE='#'
4025   CODE_COVERAGE_ENABLED_FALSE=
4026 fi
4027
4028         CODE_COVERAGE_ENABLED=$enable_code_coverage
4029
4030         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
4031 printf "%s\n" "$enable_code_coverage" >&6; }
4032
4033         if  test "x$enable_code_coverage" = xyes
4034 then :
4035
4036
4037           for ac_prog in gawk mawk nawk awk
4038 do
4039   # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 printf %s "checking for $ac_word... " >&6; }
4043 if test ${ac_cv_prog_AWK+y}
4044 then :
4045   printf %s "(cached) " >&6
4046 else $as_nop
4047   if test -n "$AWK"; then
4048   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   case $as_dir in #(((
4055     '') as_dir=./ ;;
4056     */) ;;
4057     *) as_dir=$as_dir/ ;;
4058   esac
4059     for ac_exec_ext in '' $ac_executable_extensions; do
4060   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4061     ac_cv_prog_AWK="$ac_prog"
4062     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066   done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 AWK=$ac_cv_prog_AWK
4072 if test -n "$AWK"; then
4073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4074 printf "%s\n" "$AWK" >&6; }
4075 else
4076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4078 fi
4079
4080
4081   test -n "$AWK" && break
4082 done
4083
4084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4085 printf %s "checking for GNU make... " >&6; }
4086 if test ${_cv_gnu_make_command+y}
4087 then :
4088   printf %s "(cached) " >&6
4089 else $as_nop
4090       _cv_gnu_make_command="" ;
4091     for a in "$MAKE" make gmake gnumake ; do
4092       if test -z "$a" ; then continue ; fi ;
4093       if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
4094         _cv_gnu_make_command=$a ;
4095         AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
4096         ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
4097         break ;
4098       fi
4099     done ;
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
4102 printf "%s\n" "$_cv_gnu_make_command" >&6; }
4103   if test "x$_cv_gnu_make_command" = x""
4104 then :
4105   ifGNUmake="#"
4106 else $as_nop
4107   ifGNUmake=""
4108 fi
4109   if test "x$_cv_gnu_make_command" = x""
4110 then :
4111   ifnGNUmake=""
4112 else $as_nop
4113   ifnGNUmake="#"
4114 fi
4115   if test "x$_cv_gnu_make_command" = x""
4116 then :
4117   { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
4118 else $as_nop
4119   ax_cv_gnu_make_command=${_cv_gnu_make_command}
4120 fi
4121   if test "x$_cv_gnu_make_command" = x""
4122 then :
4123   as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
4124 fi
4125
4126
4127
4128
4129         # check for gcov
4130         if test -n "$ac_tool_prefix"; then
4131   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 printf %s "checking for $ac_word... " >&6; }
4135 if test ${ac_cv_prog_GCOV+y}
4136 then :
4137   printf %s "(cached) " >&6
4138 else $as_nop
4139   if test -n "$GCOV"; then
4140   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145   IFS=$as_save_IFS
4146   case $as_dir in #(((
4147     '') as_dir=./ ;;
4148     */) ;;
4149     *) as_dir=$as_dir/ ;;
4150   esac
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4153     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
4154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158   done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 GCOV=$ac_cv_prog_GCOV
4164 if test -n "$GCOV"; then
4165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
4166 printf "%s\n" "$GCOV" >&6; }
4167 else
4168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 printf "%s\n" "no" >&6; }
4170 fi
4171
4172
4173 fi
4174 if test -z "$ac_cv_prog_GCOV"; then
4175   ac_ct_GCOV=$GCOV
4176   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
4177 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 printf %s "checking for $ac_word... " >&6; }
4180 if test ${ac_cv_prog_ac_ct_GCOV+y}
4181 then :
4182   printf %s "(cached) " >&6
4183 else $as_nop
4184   if test -n "$ac_ct_GCOV"; then
4185   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   case $as_dir in #(((
4192     '') as_dir=./ ;;
4193     */) ;;
4194     *) as_dir=$as_dir/ ;;
4195   esac
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4198     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
4199     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203   done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
4209 if test -n "$ac_ct_GCOV"; then
4210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
4211 printf "%s\n" "$ac_ct_GCOV" >&6; }
4212 else
4213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 printf "%s\n" "no" >&6; }
4215 fi
4216
4217   if test "x$ac_ct_GCOV" = x; then
4218     GCOV=":"
4219   else
4220     case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226     GCOV=$ac_ct_GCOV
4227   fi
4228 else
4229   GCOV="$ac_cv_prog_GCOV"
4230 fi
4231
4232         if test "X$GCOV" = "X:"
4233 then :
4234   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
4235 fi
4236
4237
4238                 if  test "$GCC" = "no"
4239 then :
4240
4241                 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
4242
4243 fi
4244
4245         # Extract the first word of "lcov", so it can be a program name with args.
4246 set dummy lcov; ac_word=$2
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printf %s "checking for $ac_word... " >&6; }
4249 if test ${ac_cv_prog_LCOV+y}
4250 then :
4251   printf %s "(cached) " >&6
4252 else $as_nop
4253   if test -n "$LCOV"; then
4254   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   case $as_dir in #(((
4261     '') as_dir=./ ;;
4262     */) ;;
4263     *) as_dir=$as_dir/ ;;
4264   esac
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4267     ac_cv_prog_LCOV="lcov"
4268     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272   done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 LCOV=$ac_cv_prog_LCOV
4278 if test -n "$LCOV"; then
4279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
4280 printf "%s\n" "$LCOV" >&6; }
4281 else
4282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 printf "%s\n" "no" >&6; }
4284 fi
4285
4286
4287         # Extract the first word of "genhtml", so it can be a program name with args.
4288 set dummy genhtml; ac_word=$2
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 printf %s "checking for $ac_word... " >&6; }
4291 if test ${ac_cv_prog_GENHTML+y}
4292 then :
4293   printf %s "(cached) " >&6
4294 else $as_nop
4295   if test -n "$GENHTML"; then
4296   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   case $as_dir in #(((
4303     '') as_dir=./ ;;
4304     */) ;;
4305     *) as_dir=$as_dir/ ;;
4306   esac
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4309     ac_cv_prog_GENHTML="genhtml"
4310     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314   done
4315 IFS=$as_save_IFS
4316
4317 fi
4318 fi
4319 GENHTML=$ac_cv_prog_GENHTML
4320 if test -n "$GENHTML"; then
4321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
4322 printf "%s\n" "$GENHTML" >&6; }
4323 else
4324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 printf "%s\n" "no" >&6; }
4326 fi
4327
4328
4329
4330         if  test x"$LCOV" = x
4331 then :
4332
4333                 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4334
4335 fi
4336
4337         if  test x"$GENHTML" = x
4338 then :
4339
4340                 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4341
4342 fi
4343
4344                         CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4345         CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4346         CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4347         CODE_COVERAGE_LIBS="-lgcov"
4348
4349
4350
4351
4352
4353
4354
4355 fi
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373   # Make sure we can run config.sub.
4374 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4375   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4376
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4378 printf %s "checking build system type... " >&6; }
4379 if test ${ac_cv_build+y}
4380 then :
4381   printf %s "(cached) " >&6
4382 else $as_nop
4383   ac_build_alias=$build_alias
4384 test "x$ac_build_alias" = x &&
4385   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4386 test "x$ac_build_alias" = x &&
4387   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4388 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4389   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4390
4391 fi
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4393 printf "%s\n" "$ac_cv_build" >&6; }
4394 case $ac_cv_build in
4395 *-*-*) ;;
4396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4397 esac
4398 build=$ac_cv_build
4399 ac_save_IFS=$IFS; IFS='-'
4400 set x $ac_cv_build
4401 shift
4402 build_cpu=$1
4403 build_vendor=$2
4404 shift; shift
4405 # Remember, the first character of IFS is used to create $*,
4406 # except with old shells:
4407 build_os=$*
4408 IFS=$ac_save_IFS
4409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4410
4411
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4413 printf %s "checking host system type... " >&6; }
4414 if test ${ac_cv_host+y}
4415 then :
4416   printf %s "(cached) " >&6
4417 else $as_nop
4418   if test "x$host_alias" = x; then
4419   ac_cv_host=$ac_cv_build
4420 else
4421   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4422     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4423 fi
4424
4425 fi
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4427 printf "%s\n" "$ac_cv_host" >&6; }
4428 case $ac_cv_host in
4429 *-*-*) ;;
4430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4431 esac
4432 host=$ac_cv_host
4433 ac_save_IFS=$IFS; IFS='-'
4434 set x $ac_cv_host
4435 shift
4436 host_cpu=$1
4437 host_vendor=$2
4438 shift; shift
4439 # Remember, the first character of IFS is used to create $*,
4440 # except with old shells:
4441 host_os=$*
4442 IFS=$ac_save_IFS
4443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4444
4445
4446
4447 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
4448
4449
4450
4451   xc_prog_cc_prev_IFS=$IFS
4452   xc_prog_cc_prev_LIBS=$LIBS
4453   xc_prog_cc_prev_CFLAGS=$CFLAGS
4454   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4455   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4456
4457
4458
4459   xc_bad_var_libs=no
4460   for xc_word in $LIBS; do
4461     case "$xc_word" in
4462       -l* | --library=*)
4463         :
4464         ;;
4465       *)
4466         xc_bad_var_libs=yes
4467         ;;
4468     esac
4469   done
4470   if test $xc_bad_var_libs = yes; then
4471     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4472 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4473     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
4474 printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
4475   fi
4476
4477
4478   xc_bad_var_ldflags=no
4479   for xc_word in $LDFLAGS; do
4480     case "$xc_word" in
4481       -D*)
4482         xc_bad_var_ldflags=yes
4483         ;;
4484       -U*)
4485         xc_bad_var_ldflags=yes
4486         ;;
4487       -I*)
4488         xc_bad_var_ldflags=yes
4489         ;;
4490       -l* | --library=*)
4491         xc_bad_var_ldflags=yes
4492         ;;
4493     esac
4494   done
4495   if test $xc_bad_var_ldflags = yes; then
4496     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4497 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4498     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
4499     for xc_word in $LDFLAGS; do
4500       case "$xc_word" in
4501         -D*)
4502           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4503 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4504           ;;
4505         -U*)
4506           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4507 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4508           ;;
4509         -I*)
4510           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4511 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4512           ;;
4513         -l* | --library=*)
4514           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4515 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4516           ;;
4517       esac
4518     done
4519   fi
4520
4521
4522   xc_bad_var_cppflags=no
4523   for xc_word in $CPPFLAGS; do
4524     case "$xc_word" in
4525       -rpath*)
4526         xc_bad_var_cppflags=yes
4527         ;;
4528       -L* | --library-path=*)
4529         xc_bad_var_cppflags=yes
4530         ;;
4531       -l* | --library=*)
4532         xc_bad_var_cppflags=yes
4533         ;;
4534     esac
4535   done
4536   if test $xc_bad_var_cppflags = yes; then
4537     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4538 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4539     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
4540     for xc_word in $CPPFLAGS; do
4541       case "$xc_word" in
4542         -rpath*)
4543           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4544 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4545           ;;
4546         -L* | --library-path=*)
4547           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4548 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4549           ;;
4550         -l* | --library=*)
4551           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4552 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4553           ;;
4554       esac
4555     done
4556   fi
4557
4558
4559   xc_bad_var_cflags=no
4560   for xc_word in $CFLAGS; do
4561     case "$xc_word" in
4562       -D*)
4563         xc_bad_var_cflags=yes
4564         ;;
4565       -U*)
4566         xc_bad_var_cflags=yes
4567         ;;
4568       -I*)
4569         xc_bad_var_cflags=yes
4570         ;;
4571       -rpath*)
4572         xc_bad_var_cflags=yes
4573         ;;
4574       -L* | --library-path=*)
4575         xc_bad_var_cflags=yes
4576         ;;
4577       -l* | --library=*)
4578         xc_bad_var_cflags=yes
4579         ;;
4580     esac
4581   done
4582   if test $xc_bad_var_cflags = yes; then
4583     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4584 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4585     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
4586     for xc_word in $CFLAGS; do
4587       case "$xc_word" in
4588         -D*)
4589           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4590 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4591           ;;
4592         -U*)
4593           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4594 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4595           ;;
4596         -I*)
4597           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4598 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4599           ;;
4600         -rpath*)
4601           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4602 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4603           ;;
4604         -L* | --library-path=*)
4605           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4606 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4607           ;;
4608         -l* | --library=*)
4609           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4610 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4611           ;;
4612       esac
4613     done
4614   fi
4615
4616   if test $xc_bad_var_libs = yes ||
4617      test $xc_bad_var_cflags = yes ||
4618      test $xc_bad_var_ldflags = yes ||
4619      test $xc_bad_var_cppflags = yes; then
4620      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4621 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4622   fi
4623
4624
4625   # Find a good install program.  We prefer a C program (faster),
4626 # so one script is as good as another.  But avoid the broken or
4627 # incompatible versions:
4628 # SysV /etc/install, /usr/sbin/install
4629 # SunOS /usr/etc/install
4630 # IRIX /sbin/install
4631 # AIX /bin/install
4632 # AmigaOS /C/install, which installs bootblocks on floppy discs
4633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4636 # OS/2's system install, which has a completely different semantic
4637 # ./install, which can be erroneously created by make from ./install.sh.
4638 # Reject install programs that cannot install multiple files.
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4640 printf %s "checking for a BSD-compatible install... " >&6; }
4641 if test -z "$INSTALL"; then
4642 if test ${ac_cv_path_install+y}
4643 then :
4644   printf %s "(cached) " >&6
4645 else $as_nop
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   case $as_dir in #(((
4651     '') as_dir=./ ;;
4652     */) ;;
4653     *) as_dir=$as_dir/ ;;
4654   esac
4655     # Account for fact that we put trailing slashes in our PATH walk.
4656 case $as_dir in #((
4657   ./ | /[cC]/* | \
4658   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4659   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4660   /usr/ucb/* ) ;;
4661   *)
4662     # OSF1 and SCO ODT 3.0 have their own names for install.
4663     # Don't use installbsd from OSF since it installs stuff as root
4664     # by default.
4665     for ac_prog in ginstall scoinst install; do
4666       for ac_exec_ext in '' $ac_executable_extensions; do
4667         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4668           if test $ac_prog = install &&
4669             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4670             # AIX install.  It has an incompatible calling convention.
4671             :
4672           elif test $ac_prog = install &&
4673             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4674             # program-specific install script used by HP pwplus--don't use.
4675             :
4676           else
4677             rm -rf conftest.one conftest.two conftest.dir
4678             echo one > conftest.one
4679             echo two > conftest.two
4680             mkdir conftest.dir
4681             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4682               test -s conftest.one && test -s conftest.two &&
4683               test -s conftest.dir/conftest.one &&
4684               test -s conftest.dir/conftest.two
4685             then
4686               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4687               break 3
4688             fi
4689           fi
4690         fi
4691       done
4692     done
4693     ;;
4694 esac
4695
4696   done
4697 IFS=$as_save_IFS
4698
4699 rm -rf conftest.one conftest.two conftest.dir
4700
4701 fi
4702   if test ${ac_cv_path_install+y}; then
4703     INSTALL=$ac_cv_path_install
4704   else
4705     # As a last resort, use the slow shell script.  Don't cache a
4706     # value for INSTALL within a source directory, because that will
4707     # break other packages using the cache if that directory is
4708     # removed, or if the value is a relative name.
4709     INSTALL=$ac_install_sh
4710   fi
4711 fi
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4713 printf "%s\n" "$INSTALL" >&6; }
4714
4715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4716 # It thinks the first close brace ends the variable substitution.
4717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4718
4719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4720
4721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733 # Expand $ac_aux_dir to an absolute path.
4734 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4735
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 if test -n "$ac_tool_prefix"; then
4742   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 printf %s "checking for $ac_word... " >&6; }
4746 if test ${ac_cv_prog_CC+y}
4747 then :
4748   printf %s "(cached) " >&6
4749 else $as_nop
4750   if test -n "$CC"; then
4751   ac_cv_prog_CC="$CC" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   case $as_dir in #(((
4758     '') as_dir=./ ;;
4759     */) ;;
4760     *) as_dir=$as_dir/ ;;
4761   esac
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4765     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 CC=$ac_cv_prog_CC
4775 if test -n "$CC"; then
4776   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 printf "%s\n" "$CC" >&6; }
4778 else
4779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 printf "%s\n" "no" >&6; }
4781 fi
4782
4783
4784 fi
4785 if test -z "$ac_cv_prog_CC"; then
4786   ac_ct_CC=$CC
4787   # Extract the first word of "gcc", so it can be a program name with args.
4788 set dummy gcc; ac_word=$2
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 printf %s "checking for $ac_word... " >&6; }
4791 if test ${ac_cv_prog_ac_ct_CC+y}
4792 then :
4793   printf %s "(cached) " >&6
4794 else $as_nop
4795   if test -n "$ac_ct_CC"; then
4796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   case $as_dir in #(((
4803     '') as_dir=./ ;;
4804     */) ;;
4805     *) as_dir=$as_dir/ ;;
4806   esac
4807     for ac_exec_ext in '' $ac_executable_extensions; do
4808   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4809     ac_cv_prog_ac_ct_CC="gcc"
4810     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814   done
4815 IFS=$as_save_IFS
4816
4817 fi
4818 fi
4819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4820 if test -n "$ac_ct_CC"; then
4821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4822 printf "%s\n" "$ac_ct_CC" >&6; }
4823 else
4824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 printf "%s\n" "no" >&6; }
4826 fi
4827
4828   if test "x$ac_ct_CC" = x; then
4829     CC=""
4830   else
4831     case $cross_compiling:$ac_tool_warned in
4832 yes:)
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4836 esac
4837     CC=$ac_ct_CC
4838   fi
4839 else
4840   CC="$ac_cv_prog_CC"
4841 fi
4842
4843 if test -z "$CC"; then
4844           if test -n "$ac_tool_prefix"; then
4845     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4846 set dummy ${ac_tool_prefix}cc; ac_word=$2
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 printf %s "checking for $ac_word... " >&6; }
4849 if test ${ac_cv_prog_CC+y}
4850 then :
4851   printf %s "(cached) " >&6
4852 else $as_nop
4853   if test -n "$CC"; then
4854   ac_cv_prog_CC="$CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   case $as_dir in #(((
4861     '') as_dir=./ ;;
4862     */) ;;
4863     *) as_dir=$as_dir/ ;;
4864   esac
4865     for ac_exec_ext in '' $ac_executable_extensions; do
4866   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4867     ac_cv_prog_CC="${ac_tool_prefix}cc"
4868     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872   done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 CC=$ac_cv_prog_CC
4878 if test -n "$CC"; then
4879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4880 printf "%s\n" "$CC" >&6; }
4881 else
4882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 printf "%s\n" "no" >&6; }
4884 fi
4885
4886
4887   fi
4888 fi
4889 if test -z "$CC"; then
4890   # Extract the first word of "cc", so it can be a program name with args.
4891 set dummy cc; ac_word=$2
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 printf %s "checking for $ac_word... " >&6; }
4894 if test ${ac_cv_prog_CC+y}
4895 then :
4896   printf %s "(cached) " >&6
4897 else $as_nop
4898   if test -n "$CC"; then
4899   ac_cv_prog_CC="$CC" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   case $as_dir in #(((
4907     '') as_dir=./ ;;
4908     */) ;;
4909     *) as_dir=$as_dir/ ;;
4910   esac
4911     for ac_exec_ext in '' $ac_executable_extensions; do
4912   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4914        ac_prog_rejected=yes
4915        continue
4916      fi
4917     ac_cv_prog_CC="cc"
4918     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925 if test $ac_prog_rejected = yes; then
4926   # We found a bogon in the path, so make sure we never use it.
4927   set dummy $ac_cv_prog_CC
4928   shift
4929   if test $# != 0; then
4930     # We chose a different compiler from the bogus one.
4931     # However, it has the same basename, so the bogon will be chosen
4932     # first if we set CC to just the basename; use the full file name.
4933     shift
4934     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4935   fi
4936 fi
4937 fi
4938 fi
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 printf "%s\n" "$CC" >&6; }
4943 else
4944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 printf "%s\n" "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$CC"; then
4951   if test -n "$ac_tool_prefix"; then
4952   for ac_prog in cl.exe
4953   do
4954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_CC+y}
4959 then :
4960   printf %s "(cached) " >&6
4961 else $as_nop
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   case $as_dir in #(((
4970     '') as_dir=./ ;;
4971     */) ;;
4972     *) as_dir=$as_dir/ ;;
4973   esac
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4977     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 CC=$ac_cv_prog_CC
4987 if test -n "$CC"; then
4988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 printf "%s\n" "$CC" >&6; }
4990 else
4991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 printf "%s\n" "no" >&6; }
4993 fi
4994
4995
4996     test -n "$CC" && break
4997   done
4998 fi
4999 if test -z "$CC"; then
5000   ac_ct_CC=$CC
5001   for ac_prog in cl.exe
5002 do
5003   # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 printf %s "checking for $ac_word... " >&6; }
5007 if test ${ac_cv_prog_ac_ct_CC+y}
5008 then :
5009   printf %s "(cached) " >&6
5010 else $as_nop
5011   if test -n "$ac_ct_CC"; then
5012   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   case $as_dir in #(((
5019     '') as_dir=./ ;;
5020     */) ;;
5021     *) as_dir=$as_dir/ ;;
5022   esac
5023     for ac_exec_ext in '' $ac_executable_extensions; do
5024   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5025     ac_cv_prog_ac_ct_CC="$ac_prog"
5026     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5036 if test -n "$ac_ct_CC"; then
5037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5038 printf "%s\n" "$ac_ct_CC" >&6; }
5039 else
5040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 printf "%s\n" "no" >&6; }
5042 fi
5043
5044
5045   test -n "$ac_ct_CC" && break
5046 done
5047
5048   if test "x$ac_ct_CC" = x; then
5049     CC=""
5050   else
5051     case $cross_compiling:$ac_tool_warned in
5052 yes:)
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057     CC=$ac_ct_CC
5058   fi
5059 fi
5060
5061 fi
5062 if test -z "$CC"; then
5063   if test -n "$ac_tool_prefix"; then
5064   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}clang; ac_word=$2
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 printf %s "checking for $ac_word... " >&6; }
5068 if test ${ac_cv_prog_CC+y}
5069 then :
5070   printf %s "(cached) " >&6
5071 else $as_nop
5072   if test -n "$CC"; then
5073   ac_cv_prog_CC="$CC" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078   IFS=$as_save_IFS
5079   case $as_dir in #(((
5080     '') as_dir=./ ;;
5081     */) ;;
5082     *) as_dir=$as_dir/ ;;
5083   esac
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5086     ac_cv_prog_CC="${ac_tool_prefix}clang"
5087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 CC=$ac_cv_prog_CC
5097 if test -n "$CC"; then
5098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099 printf "%s\n" "$CC" >&6; }
5100 else
5101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 printf "%s\n" "no" >&6; }
5103 fi
5104
5105
5106 fi
5107 if test -z "$ac_cv_prog_CC"; then
5108   ac_ct_CC=$CC
5109   # Extract the first word of "clang", so it can be a program name with args.
5110 set dummy clang; ac_word=$2
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 printf %s "checking for $ac_word... " >&6; }
5113 if test ${ac_cv_prog_ac_ct_CC+y}
5114 then :
5115   printf %s "(cached) " >&6
5116 else $as_nop
5117   if test -n "$ac_ct_CC"; then
5118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123   IFS=$as_save_IFS
5124   case $as_dir in #(((
5125     '') as_dir=./ ;;
5126     */) ;;
5127     *) as_dir=$as_dir/ ;;
5128   esac
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5131     ac_cv_prog_ac_ct_CC="clang"
5132     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142 if test -n "$ac_ct_CC"; then
5143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144 printf "%s\n" "$ac_ct_CC" >&6; }
5145 else
5146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 printf "%s\n" "no" >&6; }
5148 fi
5149
5150   if test "x$ac_ct_CC" = x; then
5151     CC=""
5152   else
5153     case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5158 esac
5159     CC=$ac_ct_CC
5160   fi
5161 else
5162   CC="$ac_cv_prog_CC"
5163 fi
5164
5165 fi
5166
5167
5168 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5169 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5170 as_fn_error $? "no acceptable C compiler found in \$PATH
5171 See \`config.log' for more details" "$LINENO" 5; }
5172
5173 # Provide some information about the compiler.
5174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5175 set X $ac_compile
5176 ac_compiler=$2
5177 for ac_option in --version -v -V -qversion -version; do
5178   { { ac_try="$ac_compiler $ac_option >&5"
5179 case "(($ac_try" in
5180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181   *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184 printf "%s\n" "$ac_try_echo"; } >&5
5185   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5186   ac_status=$?
5187   if test -s conftest.err; then
5188     sed '10a\
5189 ... rest of stderr output deleted ...
5190          10q' conftest.err >conftest.er1
5191     cat conftest.er1 >&5
5192   fi
5193   rm -f conftest.er1 conftest.err
5194   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5195   test $ac_status = 0; }
5196 done
5197
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200
5201 int
5202 main (void)
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 ac_clean_files_save=$ac_clean_files
5210 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5211 # Try to create an executable without -o first, disregard a.out.
5212 # It will help us diagnose broken compilers, and finding out an intuition
5213 # of exeext.
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5215 printf %s "checking whether the C compiler works... " >&6; }
5216 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5217
5218 # The possible output files:
5219 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5220
5221 ac_rmfiles=
5222 for ac_file in $ac_files
5223 do
5224   case $ac_file in
5225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5226     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5227   esac
5228 done
5229 rm -f $ac_rmfiles
5230
5231 if { { ac_try="$ac_link_default"
5232 case "(($ac_try" in
5233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234   *) ac_try_echo=$ac_try;;
5235 esac
5236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5237 printf "%s\n" "$ac_try_echo"; } >&5
5238   (eval "$ac_link_default") 2>&5
5239   ac_status=$?
5240   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5241   test $ac_status = 0; }
5242 then :
5243   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5245 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5246 # so that the user can short-circuit this test for compilers unknown to
5247 # Autoconf.
5248 for ac_file in $ac_files ''
5249 do
5250   test -f "$ac_file" || continue
5251   case $ac_file in
5252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5253         ;;
5254     [ab].out )
5255         # We found the default executable, but exeext='' is most
5256         # certainly right.
5257         break;;
5258     *.* )
5259         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5260         then :; else
5261            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5262         fi
5263         # We set ac_cv_exeext here because the later test for it is not
5264         # safe: cross compilers may not add the suffix if given an `-o'
5265         # argument, so we may need to know it at that point already.
5266         # Even if this section looks crufty: it has the advantage of
5267         # actually working.
5268         break;;
5269     * )
5270         break;;
5271   esac
5272 done
5273 test "$ac_cv_exeext" = no && ac_cv_exeext=
5274
5275 else $as_nop
5276   ac_file=''
5277 fi
5278 if test -z "$ac_file"
5279 then :
5280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5282 printf "%s\n" "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5286 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5287 as_fn_error 77 "C compiler cannot create executables
5288 See \`config.log' for more details" "$LINENO" 5; }
5289 else $as_nop
5290   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 printf "%s\n" "yes" >&6; }
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5294 printf %s "checking for C compiler default output file name... " >&6; }
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5296 printf "%s\n" "$ac_file" >&6; }
5297 ac_exeext=$ac_cv_exeext
5298
5299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5300 ac_clean_files=$ac_clean_files_save
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5302 printf %s "checking for suffix of executables... " >&6; }
5303 if { { ac_try="$ac_link"
5304 case "(($ac_try" in
5305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306   *) ac_try_echo=$ac_try;;
5307 esac
5308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 printf "%s\n" "$ac_try_echo"; } >&5
5310   (eval "$ac_link") 2>&5
5311   ac_status=$?
5312   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313   test $ac_status = 0; }
5314 then :
5315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5318 # `rm'.
5319 for ac_file in conftest.exe conftest conftest.*; do
5320   test -f "$ac_file" || continue
5321   case $ac_file in
5322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5324           break;;
5325     * ) break;;
5326   esac
5327 done
5328 else $as_nop
5329   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5330 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5331 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details" "$LINENO" 5; }
5333 fi
5334 rm -f conftest conftest$ac_cv_exeext
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5336 printf "%s\n" "$ac_cv_exeext" >&6; }
5337
5338 rm -f conftest.$ac_ext
5339 EXEEXT=$ac_cv_exeext
5340 ac_exeext=$EXEEXT
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343 #include <stdio.h>
5344 int
5345 main (void)
5346 {
5347 FILE *f = fopen ("conftest.out", "w");
5348  return ferror (f) || fclose (f) != 0;
5349
5350   ;
5351   return 0;
5352 }
5353 _ACEOF
5354 ac_clean_files="$ac_clean_files conftest.out"
5355 # Check that the compiler produces executables we can run.  If not, either
5356 # the compiler is broken, or we cross compile.
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5358 printf %s "checking whether we are cross compiling... " >&6; }
5359 if test "$cross_compiling" != yes; then
5360   { { ac_try="$ac_link"
5361 case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5366 printf "%s\n" "$ac_try_echo"; } >&5
5367   (eval "$ac_link") 2>&5
5368   ac_status=$?
5369   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5370   test $ac_status = 0; }
5371   if { ac_try='./conftest$ac_cv_exeext'
5372   { { case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5377 printf "%s\n" "$ac_try_echo"; } >&5
5378   (eval "$ac_try") 2>&5
5379   ac_status=$?
5380   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5381   test $ac_status = 0; }; }; then
5382     cross_compiling=no
5383   else
5384     if test "$cross_compiling" = maybe; then
5385         cross_compiling=yes
5386     else
5387         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5388 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5389 as_fn_error 77 "cannot run C compiled programs.
5390 If you meant to cross compile, use \`--host'.
5391 See \`config.log' for more details" "$LINENO" 5; }
5392     fi
5393   fi
5394 fi
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5396 printf "%s\n" "$cross_compiling" >&6; }
5397
5398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5399 ac_clean_files=$ac_clean_files_save
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5401 printf %s "checking for suffix of object files... " >&6; }
5402 if test ${ac_cv_objext+y}
5403 then :
5404   printf %s "(cached) " >&6
5405 else $as_nop
5406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h.  */
5408
5409 int
5410 main (void)
5411 {
5412
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.o conftest.obj
5418 if { { ac_try="$ac_compile"
5419 case "(($ac_try" in
5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421   *) ac_try_echo=$ac_try;;
5422 esac
5423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5424 printf "%s\n" "$ac_try_echo"; } >&5
5425   (eval "$ac_compile") 2>&5
5426   ac_status=$?
5427   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428   test $ac_status = 0; }
5429 then :
5430   for ac_file in conftest.o conftest.obj conftest.*; do
5431   test -f "$ac_file" || continue;
5432   case $ac_file in
5433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5435        break;;
5436   esac
5437 done
5438 else $as_nop
5439   printf "%s\n" "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5444 as_fn_error $? "cannot compute suffix of object files: cannot compile
5445 See \`config.log' for more details" "$LINENO" 5; }
5446 fi
5447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5448 fi
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5450 printf "%s\n" "$ac_cv_objext" >&6; }
5451 OBJEXT=$ac_cv_objext
5452 ac_objext=$OBJEXT
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5454 printf %s "checking whether the compiler supports GNU C... " >&6; }
5455 if test ${ac_cv_c_compiler_gnu+y}
5456 then :
5457   printf %s "(cached) " >&6
5458 else $as_nop
5459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h.  */
5461
5462 int
5463 main (void)
5464 {
5465 #ifndef __GNUC__
5466        choke me
5467 #endif
5468
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"
5474 then :
5475   ac_compiler_gnu=yes
5476 else $as_nop
5477   ac_compiler_gnu=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5481
5482 fi
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5484 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487 if test $ac_compiler_gnu = yes; then
5488   GCC=yes
5489 else
5490   GCC=
5491 fi
5492 ac_test_CFLAGS=${CFLAGS+y}
5493 ac_save_CFLAGS=$CFLAGS
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5495 printf %s "checking whether $CC accepts -g... " >&6; }
5496 if test ${ac_cv_prog_cc_g+y}
5497 then :
5498   printf %s "(cached) " >&6
5499 else $as_nop
5500   ac_save_c_werror_flag=$ac_c_werror_flag
5501    ac_c_werror_flag=yes
5502    ac_cv_prog_cc_g=no
5503    CFLAGS="-g"
5504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506
5507 int
5508 main (void)
5509 {
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"
5516 then :
5517   ac_cv_prog_cc_g=yes
5518 else $as_nop
5519   CFLAGS=""
5520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522
5523 int
5524 main (void)
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"
5532 then :
5533
5534 else $as_nop
5535   ac_c_werror_flag=$ac_save_c_werror_flag
5536          CFLAGS="-g"
5537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539
5540 int
5541 main (void)
5542 {
5543
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"
5549 then :
5550   ac_cv_prog_cc_g=yes
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5557    ac_c_werror_flag=$ac_save_c_werror_flag
5558 fi
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5560 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5561 if test $ac_test_CFLAGS; then
5562   CFLAGS=$ac_save_CFLAGS
5563 elif test $ac_cv_prog_cc_g = yes; then
5564   if test "$GCC" = yes; then
5565     CFLAGS="-g -O2"
5566   else
5567     CFLAGS="-g"
5568   fi
5569 else
5570   if test "$GCC" = yes; then
5571     CFLAGS="-O2"
5572   else
5573     CFLAGS=
5574   fi
5575 fi
5576 ac_prog_cc_stdc=no
5577 if test x$ac_prog_cc_stdc = xno
5578 then :
5579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5580 printf %s "checking for $CC option to enable C11 features... " >&6; }
5581 if test ${ac_cv_prog_cc_c11+y}
5582 then :
5583   printf %s "(cached) " >&6
5584 else $as_nop
5585   ac_cv_prog_cc_c11=no
5586 ac_save_CC=$CC
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h.  */
5589 $ac_c_conftest_c11_program
5590 _ACEOF
5591 for ac_arg in '' -std=gnu11
5592 do
5593   CC="$ac_save_CC $ac_arg"
5594   if ac_fn_c_try_compile "$LINENO"
5595 then :
5596   ac_cv_prog_cc_c11=$ac_arg
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.beam
5599   test "x$ac_cv_prog_cc_c11" != "xno" && break
5600 done
5601 rm -f conftest.$ac_ext
5602 CC=$ac_save_CC
5603 fi
5604
5605 if test "x$ac_cv_prog_cc_c11" = xno
5606 then :
5607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5608 printf "%s\n" "unsupported" >&6; }
5609 else $as_nop
5610   if test "x$ac_cv_prog_cc_c11" = x
5611 then :
5612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5613 printf "%s\n" "none needed" >&6; }
5614 else $as_nop
5615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5616 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5617      CC="$CC $ac_cv_prog_cc_c11"
5618 fi
5619   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5620   ac_prog_cc_stdc=c11
5621 fi
5622 fi
5623 if test x$ac_prog_cc_stdc = xno
5624 then :
5625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5626 printf %s "checking for $CC option to enable C99 features... " >&6; }
5627 if test ${ac_cv_prog_cc_c99+y}
5628 then :
5629   printf %s "(cached) " >&6
5630 else $as_nop
5631   ac_cv_prog_cc_c99=no
5632 ac_save_CC=$CC
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 $ac_c_conftest_c99_program
5636 _ACEOF
5637 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5638 do
5639   CC="$ac_save_CC $ac_arg"
5640   if ac_fn_c_try_compile "$LINENO"
5641 then :
5642   ac_cv_prog_cc_c99=$ac_arg
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.beam
5645   test "x$ac_cv_prog_cc_c99" != "xno" && break
5646 done
5647 rm -f conftest.$ac_ext
5648 CC=$ac_save_CC
5649 fi
5650
5651 if test "x$ac_cv_prog_cc_c99" = xno
5652 then :
5653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5654 printf "%s\n" "unsupported" >&6; }
5655 else $as_nop
5656   if test "x$ac_cv_prog_cc_c99" = x
5657 then :
5658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5659 printf "%s\n" "none needed" >&6; }
5660 else $as_nop
5661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5662 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5663      CC="$CC $ac_cv_prog_cc_c99"
5664 fi
5665   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5666   ac_prog_cc_stdc=c99
5667 fi
5668 fi
5669 if test x$ac_prog_cc_stdc = xno
5670 then :
5671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5672 printf %s "checking for $CC option to enable C89 features... " >&6; }
5673 if test ${ac_cv_prog_cc_c89+y}
5674 then :
5675   printf %s "(cached) " >&6
5676 else $as_nop
5677   ac_cv_prog_cc_c89=no
5678 ac_save_CC=$CC
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h.  */
5681 $ac_c_conftest_c89_program
5682 _ACEOF
5683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5684 do
5685   CC="$ac_save_CC $ac_arg"
5686   if ac_fn_c_try_compile "$LINENO"
5687 then :
5688   ac_cv_prog_cc_c89=$ac_arg
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.beam
5691   test "x$ac_cv_prog_cc_c89" != "xno" && break
5692 done
5693 rm -f conftest.$ac_ext
5694 CC=$ac_save_CC
5695 fi
5696
5697 if test "x$ac_cv_prog_cc_c89" = xno
5698 then :
5699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5700 printf "%s\n" "unsupported" >&6; }
5701 else $as_nop
5702   if test "x$ac_cv_prog_cc_c89" = x
5703 then :
5704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5705 printf "%s\n" "none needed" >&6; }
5706 else $as_nop
5707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5708 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5709      CC="$CC $ac_cv_prog_cc_c89"
5710 fi
5711   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5712   ac_prog_cc_stdc=c89
5713 fi
5714 fi
5715
5716 ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722
5723   ac_ext=c
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5729 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5730 if test ${am_cv_prog_cc_c_o+y}
5731 then :
5732   printf %s "(cached) " >&6
5733 else $as_nop
5734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h.  */
5736
5737 int
5738 main (void)
5739 {
5740
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745   # Make sure it works both with $CC and with simple cc.
5746   # Following AC_PROG_CC_C_O, we do the test twice because some
5747   # compilers refuse to overwrite an existing .o file with -o,
5748   # though they will create one.
5749   am_cv_prog_cc_c_o=yes
5750   for am_i in 1 2; do
5751     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5752    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5753    ac_status=$?
5754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755    (exit $ac_status); } \
5756          && test -f conftest2.$ac_objext; then
5757       : OK
5758     else
5759       am_cv_prog_cc_c_o=no
5760       break
5761     fi
5762   done
5763   rm -f core conftest*
5764   unset am_i
5765 fi
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5767 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5768 if test "$am_cv_prog_cc_c_o" != yes; then
5769    # Losing compiler, so override with the script.
5770    # FIXME: It is wrong to rewrite CC.
5771    # But if we don't then we get into trouble of one sort or another.
5772    # A longer-term fix would be to have automake use am__CC in this case,
5773    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5774    CC="$am_aux_dir/compile $CC"
5775 fi
5776 ac_ext=c
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782
5783
5784 ac_ext=c
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5790 printf %s "checking how to run the C preprocessor... " >&6; }
5791 # On Suns, sometimes $CPP names a directory.
5792 if test -n "$CPP" && test -d "$CPP"; then
5793   CPP=
5794 fi
5795 if test -z "$CPP"; then
5796   if test ${ac_cv_prog_CPP+y}
5797 then :
5798   printf %s "(cached) " >&6
5799 else $as_nop
5800       # Double quotes because $CC needs to be expanded
5801     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5802     do
5803       ac_preproc_ok=false
5804 for ac_c_preproc_warn_flag in '' yes
5805 do
5806   # Use a header file that comes with gcc, so configuring glibc
5807   # with a fresh cross-compiler works.
5808   # On the NeXT, cc -E runs the code through the compiler's parser,
5809   # not just through cpp. "Syntax error" is here to catch this case.
5810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h.  */
5812 #include <limits.h>
5813                      Syntax error
5814 _ACEOF
5815 if ac_fn_c_try_cpp "$LINENO"
5816 then :
5817
5818 else $as_nop
5819   # Broken: fails on valid input.
5820 continue
5821 fi
5822 rm -f conftest.err conftest.i conftest.$ac_ext
5823
5824   # OK, works on sane cases.  Now check whether nonexistent headers
5825   # can be detected and how.
5826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h.  */
5828 #include <ac_nonexistent.h>
5829 _ACEOF
5830 if ac_fn_c_try_cpp "$LINENO"
5831 then :
5832   # Broken: success on invalid input.
5833 continue
5834 else $as_nop
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839 rm -f conftest.err conftest.i conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.i conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok
5845 then :
5846   break
5847 fi
5848
5849     done
5850     ac_cv_prog_CPP=$CPP
5851
5852 fi
5853   CPP=$ac_cv_prog_CPP
5854 else
5855   ac_cv_prog_CPP=$CPP
5856 fi
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5858 printf "%s\n" "$CPP" >&6; }
5859 ac_preproc_ok=false
5860 for ac_c_preproc_warn_flag in '' yes
5861 do
5862   # Use a header file that comes with gcc, so configuring glibc
5863   # with a fresh cross-compiler works.
5864   # On the NeXT, cc -E runs the code through the compiler's parser,
5865   # not just through cpp. "Syntax error" is here to catch this case.
5866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h.  */
5868 #include <limits.h>
5869                      Syntax error
5870 _ACEOF
5871 if ac_fn_c_try_cpp "$LINENO"
5872 then :
5873
5874 else $as_nop
5875   # Broken: fails on valid input.
5876 continue
5877 fi
5878 rm -f conftest.err conftest.i conftest.$ac_ext
5879
5880   # OK, works on sane cases.  Now check whether nonexistent headers
5881   # can be detected and how.
5882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h.  */
5884 #include <ac_nonexistent.h>
5885 _ACEOF
5886 if ac_fn_c_try_cpp "$LINENO"
5887 then :
5888   # Broken: success on invalid input.
5889 continue
5890 else $as_nop
5891   # Passes both tests.
5892 ac_preproc_ok=:
5893 break
5894 fi
5895 rm -f conftest.err conftest.i conftest.$ac_ext
5896
5897 done
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.i conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok
5901 then :
5902
5903 else $as_nop
5904   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5907 See \`config.log' for more details" "$LINENO" 5; }
5908 fi
5909
5910 ac_ext=c
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5915
5916
5917   IFS=$xc_prog_cc_prev_IFS
5918   LIBS=$xc_prog_cc_prev_LIBS
5919   CFLAGS=$xc_prog_cc_prev_CFLAGS
5920   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5921   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 ac_ext=cpp
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938 if test -z "$CXX"; then
5939   if test -n "$CCC"; then
5940     CXX=$CCC
5941   else
5942     if test -n "$ac_tool_prefix"; then
5943   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5944   do
5945     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_CXX+y}
5950 then :
5951   printf %s "(cached) " >&6
5952 else $as_nop
5953   if test -n "$CXX"; then
5954   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   case $as_dir in #(((
5961     '') as_dir=./ ;;
5962     */) ;;
5963     *) as_dir=$as_dir/ ;;
5964   esac
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5968     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972   done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 CXX=$ac_cv_prog_CXX
5978 if test -n "$CXX"; then
5979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5980 printf "%s\n" "$CXX" >&6; }
5981 else
5982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 printf "%s\n" "no" >&6; }
5984 fi
5985
5986
5987     test -n "$CXX" && break
5988   done
5989 fi
5990 if test -z "$CXX"; then
5991   ac_ct_CXX=$CXX
5992   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5993 do
5994   # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 printf %s "checking for $ac_word... " >&6; }
5998 if test ${ac_cv_prog_ac_ct_CXX+y}
5999 then :
6000   printf %s "(cached) " >&6
6001 else $as_nop
6002   if test -n "$ac_ct_CXX"; then
6003   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   case $as_dir in #(((
6010     '') as_dir=./ ;;
6011     */) ;;
6012     *) as_dir=$as_dir/ ;;
6013   esac
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_ac_ct_CXX="$ac_prog"
6017     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6027 if test -n "$ac_ct_CXX"; then
6028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6029 printf "%s\n" "$ac_ct_CXX" >&6; }
6030 else
6031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 printf "%s\n" "no" >&6; }
6033 fi
6034
6035
6036   test -n "$ac_ct_CXX" && break
6037 done
6038
6039   if test "x$ac_ct_CXX" = x; then
6040     CXX="g++"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     CXX=$ac_ct_CXX
6049   fi
6050 fi
6051
6052   fi
6053 fi
6054 # Provide some information about the compiler.
6055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6056 set X $ac_compile
6057 ac_compiler=$2
6058 for ac_option in --version -v -V -qversion; do
6059   { { ac_try="$ac_compiler $ac_option >&5"
6060 case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6065 printf "%s\n" "$ac_try_echo"; } >&5
6066   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6067   ac_status=$?
6068   if test -s conftest.err; then
6069     sed '10a\
6070 ... rest of stderr output deleted ...
6071          10q' conftest.err >conftest.er1
6072     cat conftest.er1 >&5
6073   fi
6074   rm -f conftest.er1 conftest.err
6075   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076   test $ac_status = 0; }
6077 done
6078
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6080 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6081 if test ${ac_cv_cxx_compiler_gnu+y}
6082 then :
6083   printf %s "(cached) " >&6
6084 else $as_nop
6085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h.  */
6087
6088 int
6089 main (void)
6090 {
6091 #ifndef __GNUC__
6092        choke me
6093 #endif
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 if ac_fn_cxx_try_compile "$LINENO"
6100 then :
6101   ac_compiler_gnu=yes
6102 else $as_nop
6103   ac_compiler_gnu=no
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6107
6108 fi
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6110 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6112
6113 if test $ac_compiler_gnu = yes; then
6114   GXX=yes
6115 else
6116   GXX=
6117 fi
6118 ac_test_CXXFLAGS=${CXXFLAGS+y}
6119 ac_save_CXXFLAGS=$CXXFLAGS
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6121 printf %s "checking whether $CXX accepts -g... " >&6; }
6122 if test ${ac_cv_prog_cxx_g+y}
6123 then :
6124   printf %s "(cached) " >&6
6125 else $as_nop
6126   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6127    ac_cxx_werror_flag=yes
6128    ac_cv_prog_cxx_g=no
6129    CXXFLAGS="-g"
6130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132
6133 int
6134 main (void)
6135 {
6136
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_cxx_try_compile "$LINENO"
6142 then :
6143   ac_cv_prog_cxx_g=yes
6144 else $as_nop
6145   CXXFLAGS=""
6146       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h.  */
6148
6149 int
6150 main (void)
6151 {
6152
6153   ;
6154   return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_cxx_try_compile "$LINENO"
6158 then :
6159
6160 else $as_nop
6161   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6162          CXXFLAGS="-g"
6163          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h.  */
6165
6166 int
6167 main (void)
6168 {
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_cxx_try_compile "$LINENO"
6175 then :
6176   ac_cv_prog_cxx_g=yes
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6183    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6184 fi
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6186 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6187 if test $ac_test_CXXFLAGS; then
6188   CXXFLAGS=$ac_save_CXXFLAGS
6189 elif test $ac_cv_prog_cxx_g = yes; then
6190   if test "$GXX" = yes; then
6191     CXXFLAGS="-g -O2"
6192   else
6193     CXXFLAGS="-g"
6194   fi
6195 else
6196   if test "$GXX" = yes; then
6197     CXXFLAGS="-O2"
6198   else
6199     CXXFLAGS=
6200   fi
6201 fi
6202 ac_prog_cxx_stdcxx=no
6203 if test x$ac_prog_cxx_stdcxx = xno
6204 then :
6205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6206 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6207 if test ${ac_cv_prog_cxx_11+y}
6208 then :
6209   printf %s "(cached) " >&6
6210 else $as_nop
6211   ac_cv_prog_cxx_11=no
6212 ac_save_CXX=$CXX
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h.  */
6215 $ac_cxx_conftest_cxx11_program
6216 _ACEOF
6217 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6218 do
6219   CXX="$ac_save_CXX $ac_arg"
6220   if ac_fn_cxx_try_compile "$LINENO"
6221 then :
6222   ac_cv_prog_cxx_cxx11=$ac_arg
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam
6225   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6226 done
6227 rm -f conftest.$ac_ext
6228 CXX=$ac_save_CXX
6229 fi
6230
6231 if test "x$ac_cv_prog_cxx_cxx11" = xno
6232 then :
6233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6234 printf "%s\n" "unsupported" >&6; }
6235 else $as_nop
6236   if test "x$ac_cv_prog_cxx_cxx11" = x
6237 then :
6238   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6239 printf "%s\n" "none needed" >&6; }
6240 else $as_nop
6241   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6242 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6243      CXX="$CXX $ac_cv_prog_cxx_cxx11"
6244 fi
6245   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6246   ac_prog_cxx_stdcxx=cxx11
6247 fi
6248 fi
6249 if test x$ac_prog_cxx_stdcxx = xno
6250 then :
6251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6252 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6253 if test ${ac_cv_prog_cxx_98+y}
6254 then :
6255   printf %s "(cached) " >&6
6256 else $as_nop
6257   ac_cv_prog_cxx_98=no
6258 ac_save_CXX=$CXX
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261 $ac_cxx_conftest_cxx98_program
6262 _ACEOF
6263 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6264 do
6265   CXX="$ac_save_CXX $ac_arg"
6266   if ac_fn_cxx_try_compile "$LINENO"
6267 then :
6268   ac_cv_prog_cxx_cxx98=$ac_arg
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.beam
6271   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6272 done
6273 rm -f conftest.$ac_ext
6274 CXX=$ac_save_CXX
6275 fi
6276
6277 if test "x$ac_cv_prog_cxx_cxx98" = xno
6278 then :
6279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6280 printf "%s\n" "unsupported" >&6; }
6281 else $as_nop
6282   if test "x$ac_cv_prog_cxx_cxx98" = x
6283 then :
6284   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6285 printf "%s\n" "none needed" >&6; }
6286 else $as_nop
6287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6288 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6289      CXX="$CXX $ac_cv_prog_cxx_cxx98"
6290 fi
6291   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6292   ac_prog_cxx_stdcxx=cxx98
6293 fi
6294 fi
6295
6296 ac_ext=cpp
6297 ac_cpp='$CXXCPP $CPPFLAGS'
6298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6301
6302
6303     ax_cxx_compile_cxx11_required=false
6304   ac_ext=cpp
6305 ac_cpp='$CXXCPP $CPPFLAGS'
6306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6309   ac_success=no
6310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6311 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6312 if test ${ax_cv_cxx_compile_cxx11+y}
6313 then :
6314   printf %s "(cached) " >&6
6315 else $as_nop
6316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h.  */
6318
6319   template <typename T>
6320     struct check
6321     {
6322       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6323     };
6324
6325     struct Base {
6326     virtual void f() {}
6327     };
6328     struct Child : public Base {
6329     virtual void f() override {}
6330     };
6331
6332     typedef check<check<bool>> right_angle_brackets;
6333
6334     int a;
6335     decltype(a) b;
6336
6337     typedef check<int> check_type;
6338     check_type c;
6339     check_type&& cr = static_cast<check_type&&>(c);
6340
6341     auto d = a;
6342     auto l = [](){};
6343
6344     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6345     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
6346     namespace test_template_alias_sfinae {
6347         struct foo {};
6348
6349         template<typename T>
6350         using member = typename T::member_type;
6351
6352         template<typename T>
6353         void func(...) {}
6354
6355         template<typename T>
6356         void func(member<T>*) {}
6357
6358         void test();
6359
6360         void test() {
6361             func<foo>(0);
6362         }
6363     }
6364
6365 _ACEOF
6366 if ac_fn_cxx_try_compile "$LINENO"
6367 then :
6368   ax_cv_cxx_compile_cxx11=yes
6369 else $as_nop
6370   ax_cv_cxx_compile_cxx11=no
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6373 fi
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6375 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6376   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6377     ac_success=yes
6378   fi
6379
6380
6381
6382     if test x$ac_success = xno; then
6383     for switch in -std=c++11 -std=c++0x; do
6384       cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6385       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6386 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6387 if eval test \${$cachevar+y}
6388 then :
6389   printf %s "(cached) " >&6
6390 else $as_nop
6391   ac_save_CXXFLAGS="$CXXFLAGS"
6392          CXXFLAGS="$CXXFLAGS $switch"
6393          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h.  */
6395
6396   template <typename T>
6397     struct check
6398     {
6399       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6400     };
6401
6402     struct Base {
6403     virtual void f() {}
6404     };
6405     struct Child : public Base {
6406     virtual void f() override {}
6407     };
6408
6409     typedef check<check<bool>> right_angle_brackets;
6410
6411     int a;
6412     decltype(a) b;
6413
6414     typedef check<int> check_type;
6415     check_type c;
6416     check_type&& cr = static_cast<check_type&&>(c);
6417
6418     auto d = a;
6419     auto l = [](){};
6420
6421     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6422     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
6423     namespace test_template_alias_sfinae {
6424         struct foo {};
6425
6426         template<typename T>
6427         using member = typename T::member_type;
6428
6429         template<typename T>
6430         void func(...) {}
6431
6432         template<typename T>
6433         void func(member<T>*) {}
6434
6435         void test();
6436
6437         void test() {
6438             func<foo>(0);
6439         }
6440     }
6441
6442 _ACEOF
6443 if ac_fn_cxx_try_compile "$LINENO"
6444 then :
6445   eval $cachevar=yes
6446 else $as_nop
6447   eval $cachevar=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450          CXXFLAGS="$ac_save_CXXFLAGS"
6451 fi
6452 eval ac_res=\$$cachevar
6453                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 printf "%s\n" "$ac_res" >&6; }
6455       if eval test x\$$cachevar = xyes; then
6456         CXXFLAGS="$CXXFLAGS $switch"
6457         ac_success=yes
6458         break
6459       fi
6460     done
6461   fi
6462   ac_ext=c
6463 ac_cpp='$CPP $CPPFLAGS'
6464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467
6468   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6469     if test x$ac_success = xno; then
6470       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6471     fi
6472   else
6473     if test x$ac_success = xno; then
6474       HAVE_CXX11=0
6475       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6476 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6477     else
6478       HAVE_CXX11=1
6479
6480 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6481
6482     fi
6483
6484
6485   fi
6486
6487
6488 am__api_version='1.16'
6489
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6491 printf %s "checking whether build environment is sane... " >&6; }
6492 # Reject unsafe characters in $srcdir or the absolute working directory
6493 # name.  Accept space and tab only in the latter.
6494 am_lf='
6495 '
6496 case `pwd` in
6497   *[\\\"\#\$\&\'\`$am_lf]*)
6498     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6499 esac
6500 case $srcdir in
6501   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6502     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6503 esac
6504
6505 # Do 'set' in a subshell so we don't clobber the current shell's
6506 # arguments.  Must try -L first in case configure is actually a
6507 # symlink; some systems play weird games with the mod time of symlinks
6508 # (eg FreeBSD returns the mod time of the symlink's containing
6509 # directory).
6510 if (
6511    am_has_slept=no
6512    for am_try in 1 2; do
6513      echo "timestamp, slept: $am_has_slept" > conftest.file
6514      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6515      if test "$*" = "X"; then
6516         # -L didn't work.
6517         set X `ls -t "$srcdir/configure" conftest.file`
6518      fi
6519      if test "$*" != "X $srcdir/configure conftest.file" \
6520         && test "$*" != "X conftest.file $srcdir/configure"; then
6521
6522         # If neither matched, then we have a broken ls.  This can happen
6523         # if, for instance, CONFIG_SHELL is bash and it inherits a
6524         # broken ls alias from the environment.  This has actually
6525         # happened.  Such a system could not be considered "sane".
6526         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6527   alias in your environment" "$LINENO" 5
6528      fi
6529      if test "$2" = conftest.file || test $am_try -eq 2; then
6530        break
6531      fi
6532      # Just in case.
6533      sleep 1
6534      am_has_slept=yes
6535    done
6536    test "$2" = conftest.file
6537    )
6538 then
6539    # Ok.
6540    :
6541 else
6542    as_fn_error $? "newly created file is older than distributed files!
6543 Check your system clock" "$LINENO" 5
6544 fi
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6546 printf "%s\n" "yes" >&6; }
6547 # If we didn't sleep, we still need to ensure time stamps of config.status and
6548 # generated files are strictly newer.
6549 am_sleep_pid=
6550 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6551   ( sleep 1 ) &
6552   am_sleep_pid=$!
6553 fi
6554
6555 rm -f conftest.file
6556
6557 test "$program_prefix" != NONE &&
6558   program_transform_name="s&^&$program_prefix&;$program_transform_name"
6559 # Use a double $ so make ignores it.
6560 test "$program_suffix" != NONE &&
6561   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6562 # Double any \ or $.
6563 # By default was `s,x,x', remove it if useless.
6564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6565 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6566
6567
6568   if test x"${MISSING+set}" != xset; then
6569   MISSING="\${SHELL} '$am_aux_dir/missing'"
6570 fi
6571 # Use eval to expand $SHELL
6572 if eval "$MISSING --is-lightweight"; then
6573   am_missing_run="$MISSING "
6574 else
6575   am_missing_run=
6576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6577 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6578 fi
6579
6580 if test x"${install_sh+set}" != xset; then
6581   case $am_aux_dir in
6582   *\ * | *\     *)
6583     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6584   *)
6585     install_sh="\${SHELL} $am_aux_dir/install-sh"
6586   esac
6587 fi
6588
6589 # Installed binaries are usually stripped using 'strip' when the user
6590 # run "make install-strip".  However 'strip' might not be the right
6591 # tool to use in cross-compilation environments, therefore Automake
6592 # will honor the 'STRIP' environment variable to overrule this program.
6593 if test "$cross_compiling" != no; then
6594   if test -n "$ac_tool_prefix"; then
6595   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}strip; ac_word=$2
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 printf %s "checking for $ac_word... " >&6; }
6599 if test ${ac_cv_prog_STRIP+y}
6600 then :
6601   printf %s "(cached) " >&6
6602 else $as_nop
6603   if test -n "$STRIP"; then
6604   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   case $as_dir in #(((
6611     '') as_dir=./ ;;
6612     */) ;;
6613     *) as_dir=$as_dir/ ;;
6614   esac
6615     for ac_exec_ext in '' $ac_executable_extensions; do
6616   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6617     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6618     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622   done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 STRIP=$ac_cv_prog_STRIP
6628 if test -n "$STRIP"; then
6629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6630 printf "%s\n" "$STRIP" >&6; }
6631 else
6632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 printf "%s\n" "no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_STRIP"; then
6639   ac_ct_STRIP=$STRIP
6640   # Extract the first word of "strip", so it can be a program name with args.
6641 set dummy strip; ac_word=$2
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 printf %s "checking for $ac_word... " >&6; }
6644 if test ${ac_cv_prog_ac_ct_STRIP+y}
6645 then :
6646   printf %s "(cached) " >&6
6647 else $as_nop
6648   if test -n "$ac_ct_STRIP"; then
6649   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   case $as_dir in #(((
6656     '') as_dir=./ ;;
6657     */) ;;
6658     *) as_dir=$as_dir/ ;;
6659   esac
6660     for ac_exec_ext in '' $ac_executable_extensions; do
6661   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6662     ac_cv_prog_ac_ct_STRIP="strip"
6663     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667   done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673 if test -n "$ac_ct_STRIP"; then
6674   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6675 printf "%s\n" "$ac_ct_STRIP" >&6; }
6676 else
6677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 printf "%s\n" "no" >&6; }
6679 fi
6680
6681   if test "x$ac_ct_STRIP" = x; then
6682     STRIP=":"
6683   else
6684     case $cross_compiling:$ac_tool_warned in
6685 yes:)
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688 ac_tool_warned=yes ;;
6689 esac
6690     STRIP=$ac_ct_STRIP
6691   fi
6692 else
6693   STRIP="$ac_cv_prog_STRIP"
6694 fi
6695
6696 fi
6697 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6698
6699
6700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6701 printf %s "checking for a race-free mkdir -p... " >&6; }
6702 if test -z "$MKDIR_P"; then
6703   if test ${ac_cv_path_mkdir+y}
6704 then :
6705   printf %s "(cached) " >&6
6706 else $as_nop
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6709 do
6710   IFS=$as_save_IFS
6711   case $as_dir in #(((
6712     '') as_dir=./ ;;
6713     */) ;;
6714     *) as_dir=$as_dir/ ;;
6715   esac
6716     for ac_prog in mkdir gmkdir; do
6717          for ac_exec_ext in '' $ac_executable_extensions; do
6718            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6719            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6720              'mkdir ('*'coreutils) '* | \
6721              'BusyBox '* | \
6722              'mkdir (fileutils) '4.1*)
6723                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6724                break 3;;
6725            esac
6726          done
6727        done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732
6733   test -d ./--version && rmdir ./--version
6734   if test ${ac_cv_path_mkdir+y}; then
6735     MKDIR_P="$ac_cv_path_mkdir -p"
6736   else
6737     # As a last resort, use the slow shell script.  Don't cache a
6738     # value for MKDIR_P within a source directory, because that will
6739     # break other packages using the cache if that directory is
6740     # removed, or if the value is a relative name.
6741     MKDIR_P="$ac_install_sh -d"
6742   fi
6743 fi
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6745 printf "%s\n" "$MKDIR_P" >&6; }
6746
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6748 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6749 set x ${MAKE-make}
6750 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6751 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6752 then :
6753   printf %s "(cached) " >&6
6754 else $as_nop
6755   cat >conftest.make <<\_ACEOF
6756 SHELL = /bin/sh
6757 all:
6758         @echo '@@@%%%=$(MAKE)=@@@%%%'
6759 _ACEOF
6760 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6761 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6762   *@@@%%%=?*=@@@%%%*)
6763     eval ac_cv_prog_make_${ac_make}_set=yes;;
6764   *)
6765     eval ac_cv_prog_make_${ac_make}_set=no;;
6766 esac
6767 rm -f conftest.make
6768 fi
6769 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6771 printf "%s\n" "yes" >&6; }
6772   SET_MAKE=
6773 else
6774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 printf "%s\n" "no" >&6; }
6776   SET_MAKE="MAKE=${MAKE-make}"
6777 fi
6778
6779 rm -rf .tst 2>/dev/null
6780 mkdir .tst 2>/dev/null
6781 if test -d .tst; then
6782   am__leading_dot=.
6783 else
6784   am__leading_dot=_
6785 fi
6786 rmdir .tst 2>/dev/null
6787
6788 DEPDIR="${am__leading_dot}deps"
6789
6790 ac_config_commands="$ac_config_commands depfiles"
6791
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6793 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6794 cat > confinc.mk << 'END'
6795 am__doit:
6796         @echo this is the am__doit target >confinc.out
6797 .PHONY: am__doit
6798 END
6799 am__include="#"
6800 am__quote=
6801 # BSD make does it like this.
6802 echo '.include "confinc.mk" # ignored' > confmf.BSD
6803 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6804 echo 'include confinc.mk # ignored' > confmf.GNU
6805 _am_result=no
6806 for s in GNU BSD; do
6807   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6808    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6809    ac_status=$?
6810    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811    (exit $ac_status); }
6812   case $?:`cat confinc.out 2>/dev/null` in #(
6813   '0:this is the am__doit target') :
6814     case $s in #(
6815   BSD) :
6816     am__include='.include' am__quote='"' ;; #(
6817   *) :
6818     am__include='include' am__quote='' ;;
6819 esac ;; #(
6820   *) :
6821      ;;
6822 esac
6823   if test "$am__include" != "#"; then
6824     _am_result="yes ($s style)"
6825     break
6826   fi
6827 done
6828 rm -f confinc.* confmf.*
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6830 printf "%s\n" "${_am_result}" >&6; }
6831
6832 # Check whether --enable-dependency-tracking was given.
6833 if test ${enable_dependency_tracking+y}
6834 then :
6835   enableval=$enable_dependency_tracking;
6836 fi
6837
6838 if test "x$enable_dependency_tracking" != xno; then
6839   am_depcomp="$ac_aux_dir/depcomp"
6840   AMDEPBACKSLASH='\'
6841   am__nodep='_no'
6842 fi
6843  if test "x$enable_dependency_tracking" != xno; then
6844   AMDEP_TRUE=
6845   AMDEP_FALSE='#'
6846 else
6847   AMDEP_TRUE='#'
6848   AMDEP_FALSE=
6849 fi
6850
6851
6852 ## --------------------------------------- ##
6853 ##  Start of automake initialization code  ##
6854 ## --------------------------------------- ##
6855
6856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6857   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6858   # is not polluted with repeated "-I."
6859   am__isrc=' -I$(srcdir)'
6860   # test to see if srcdir already configured
6861   if test -f $srcdir/config.status; then
6862     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6863   fi
6864 fi
6865
6866 # test whether we have cygpath
6867 if test -z "$CYGPATH_W"; then
6868   if (cygpath --version) >/dev/null 2>/dev/null; then
6869     CYGPATH_W='cygpath -w'
6870   else
6871     CYGPATH_W=echo
6872   fi
6873 fi
6874
6875
6876 # Define the identity of the package.
6877  PACKAGE='c-ares'
6878  VERSION='1.18.1'
6879
6880
6881 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6882
6883
6884 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6885
6886 # Some tools Automake needs.
6887
6888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6889
6890
6891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6892
6893
6894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6895
6896
6897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6898
6899
6900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6901
6902 # For better backward compatibility.  To be removed once Automake 1.9.x
6903 # dies out for good.  For more background, see:
6904 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6905 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6906 mkdir_p='$(MKDIR_P)'
6907
6908 # We need awk for the "check" target (and possibly the TAP driver).  The
6909 # system "awk" is bad on some platforms.
6910 # Always define AMTAR for backward compatibility.  Yes, it's still used
6911 # in the wild :-(  We should find a proper way to deprecate it ...
6912 AMTAR='$${TAR-tar}'
6913
6914
6915 # We'll loop over all known methods to create a tar archive until one works.
6916 _am_tools='gnutar  pax cpio none'
6917
6918 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6919
6920
6921
6922
6923
6924 depcc="$CC"   am_compiler_list=
6925
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6927 printf %s "checking dependency style of $depcc... " >&6; }
6928 if test ${am_cv_CC_dependencies_compiler_type+y}
6929 then :
6930   printf %s "(cached) " >&6
6931 else $as_nop
6932   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6933   # We make a subdir and do the tests there.  Otherwise we can end up
6934   # making bogus files that we don't know about and never remove.  For
6935   # instance it was reported that on HP-UX the gcc test will end up
6936   # making a dummy file named 'D' -- because '-MD' means "put the output
6937   # in D".
6938   rm -rf conftest.dir
6939   mkdir conftest.dir
6940   # Copy depcomp to subdir because otherwise we won't find it if we're
6941   # using a relative directory.
6942   cp "$am_depcomp" conftest.dir
6943   cd conftest.dir
6944   # We will build objects and dependencies in a subdirectory because
6945   # it helps to detect inapplicable dependency modes.  For instance
6946   # both Tru64's cc and ICC support -MD to output dependencies as a
6947   # side effect of compilation, but ICC will put the dependencies in
6948   # the current directory while Tru64 will put them in the object
6949   # directory.
6950   mkdir sub
6951
6952   am_cv_CC_dependencies_compiler_type=none
6953   if test "$am_compiler_list" = ""; then
6954      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6955   fi
6956   am__universal=false
6957   case " $depcc " in #(
6958      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6959      esac
6960
6961   for depmode in $am_compiler_list; do
6962     # Setup a source with many dependencies, because some compilers
6963     # like to wrap large dependency lists on column 80 (with \), and
6964     # we should not choose a depcomp mode which is confused by this.
6965     #
6966     # We need to recreate these files for each test, as the compiler may
6967     # overwrite some of them when testing with obscure command lines.
6968     # This happens at least with the AIX C compiler.
6969     : > sub/conftest.c
6970     for i in 1 2 3 4 5 6; do
6971       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6972       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6973       # Solaris 10 /bin/sh.
6974       echo '/* dummy */' > sub/conftst$i.h
6975     done
6976     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6977
6978     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6979     # mode.  It turns out that the SunPro C++ compiler does not properly
6980     # handle '-M -o', and we need to detect this.  Also, some Intel
6981     # versions had trouble with output in subdirs.
6982     am__obj=sub/conftest.${OBJEXT-o}
6983     am__minus_obj="-o $am__obj"
6984     case $depmode in
6985     gcc)
6986       # This depmode causes a compiler race in universal mode.
6987       test "$am__universal" = false || continue
6988       ;;
6989     nosideeffect)
6990       # After this tag, mechanisms are not by side-effect, so they'll
6991       # only be used when explicitly requested.
6992       if test "x$enable_dependency_tracking" = xyes; then
6993         continue
6994       else
6995         break
6996       fi
6997       ;;
6998     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6999       # This compiler won't grok '-c -o', but also, the minuso test has
7000       # not run yet.  These depmodes are late enough in the game, and
7001       # so weak that their functioning should not be impacted.
7002       am__obj=conftest.${OBJEXT-o}
7003       am__minus_obj=
7004       ;;
7005     none) break ;;
7006     esac
7007     if depmode=$depmode \
7008        source=sub/conftest.c object=$am__obj \
7009        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7010        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7011          >/dev/null 2>conftest.err &&
7012        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7014        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7016       # icc doesn't choke on unknown options, it will just issue warnings
7017       # or remarks (even with -Werror).  So we grep stderr for any message
7018       # that says an option was ignored or not supported.
7019       # When given -MP, icc 7.0 and 7.1 complain thusly:
7020       #   icc: Command line warning: ignoring option '-M'; no argument required
7021       # The diagnosis changed in icc 8.0:
7022       #   icc: Command line remark: option '-MP' not supported
7023       if (grep 'ignoring option' conftest.err ||
7024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7025         am_cv_CC_dependencies_compiler_type=$depmode
7026         break
7027       fi
7028     fi
7029   done
7030
7031   cd ..
7032   rm -rf conftest.dir
7033 else
7034   am_cv_CC_dependencies_compiler_type=none
7035 fi
7036
7037 fi
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7039 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7041
7042  if
7043   test "x$enable_dependency_tracking" != xno \
7044   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7045   am__fastdepCC_TRUE=
7046   am__fastdepCC_FALSE='#'
7047 else
7048   am__fastdepCC_TRUE='#'
7049   am__fastdepCC_FALSE=
7050 fi
7051
7052
7053 depcc="$CXX"  am_compiler_list=
7054
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7056 printf %s "checking dependency style of $depcc... " >&6; }
7057 if test ${am_cv_CXX_dependencies_compiler_type+y}
7058 then :
7059   printf %s "(cached) " >&6
7060 else $as_nop
7061   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7062   # We make a subdir and do the tests there.  Otherwise we can end up
7063   # making bogus files that we don't know about and never remove.  For
7064   # instance it was reported that on HP-UX the gcc test will end up
7065   # making a dummy file named 'D' -- because '-MD' means "put the output
7066   # in D".
7067   rm -rf conftest.dir
7068   mkdir conftest.dir
7069   # Copy depcomp to subdir because otherwise we won't find it if we're
7070   # using a relative directory.
7071   cp "$am_depcomp" conftest.dir
7072   cd conftest.dir
7073   # We will build objects and dependencies in a subdirectory because
7074   # it helps to detect inapplicable dependency modes.  For instance
7075   # both Tru64's cc and ICC support -MD to output dependencies as a
7076   # side effect of compilation, but ICC will put the dependencies in
7077   # the current directory while Tru64 will put them in the object
7078   # directory.
7079   mkdir sub
7080
7081   am_cv_CXX_dependencies_compiler_type=none
7082   if test "$am_compiler_list" = ""; then
7083      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7084   fi
7085   am__universal=false
7086   case " $depcc " in #(
7087      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7088      esac
7089
7090   for depmode in $am_compiler_list; do
7091     # Setup a source with many dependencies, because some compilers
7092     # like to wrap large dependency lists on column 80 (with \), and
7093     # we should not choose a depcomp mode which is confused by this.
7094     #
7095     # We need to recreate these files for each test, as the compiler may
7096     # overwrite some of them when testing with obscure command lines.
7097     # This happens at least with the AIX C compiler.
7098     : > sub/conftest.c
7099     for i in 1 2 3 4 5 6; do
7100       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7101       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7102       # Solaris 10 /bin/sh.
7103       echo '/* dummy */' > sub/conftst$i.h
7104     done
7105     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7106
7107     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7108     # mode.  It turns out that the SunPro C++ compiler does not properly
7109     # handle '-M -o', and we need to detect this.  Also, some Intel
7110     # versions had trouble with output in subdirs.
7111     am__obj=sub/conftest.${OBJEXT-o}
7112     am__minus_obj="-o $am__obj"
7113     case $depmode in
7114     gcc)
7115       # This depmode causes a compiler race in universal mode.
7116       test "$am__universal" = false || continue
7117       ;;
7118     nosideeffect)
7119       # After this tag, mechanisms are not by side-effect, so they'll
7120       # only be used when explicitly requested.
7121       if test "x$enable_dependency_tracking" = xyes; then
7122         continue
7123       else
7124         break
7125       fi
7126       ;;
7127     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7128       # This compiler won't grok '-c -o', but also, the minuso test has
7129       # not run yet.  These depmodes are late enough in the game, and
7130       # so weak that their functioning should not be impacted.
7131       am__obj=conftest.${OBJEXT-o}
7132       am__minus_obj=
7133       ;;
7134     none) break ;;
7135     esac
7136     if depmode=$depmode \
7137        source=sub/conftest.c object=$am__obj \
7138        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7139        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7140          >/dev/null 2>conftest.err &&
7141        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7142        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7143        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7144        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7145       # icc doesn't choke on unknown options, it will just issue warnings
7146       # or remarks (even with -Werror).  So we grep stderr for any message
7147       # that says an option was ignored or not supported.
7148       # When given -MP, icc 7.0 and 7.1 complain thusly:
7149       #   icc: Command line warning: ignoring option '-M'; no argument required
7150       # The diagnosis changed in icc 8.0:
7151       #   icc: Command line remark: option '-MP' not supported
7152       if (grep 'ignoring option' conftest.err ||
7153           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7154         am_cv_CXX_dependencies_compiler_type=$depmode
7155         break
7156       fi
7157     fi
7158   done
7159
7160   cd ..
7161   rm -rf conftest.dir
7162 else
7163   am_cv_CXX_dependencies_compiler_type=none
7164 fi
7165
7166 fi
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7168 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7170
7171  if
7172   test "x$enable_dependency_tracking" != xno \
7173   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7174   am__fastdepCXX_TRUE=
7175   am__fastdepCXX_FALSE='#'
7176 else
7177   am__fastdepCXX_TRUE='#'
7178   am__fastdepCXX_FALSE=
7179 fi
7180
7181
7182 # Variables for tags utilities; see am/tags.am
7183 if test -z "$CTAGS"; then
7184   CTAGS=ctags
7185 fi
7186
7187 if test -z "$ETAGS"; then
7188   ETAGS=etags
7189 fi
7190
7191 if test -z "$CSCOPE"; then
7192   CSCOPE=cscope
7193 fi
7194
7195
7196
7197 # POSIX will say in a future version that running "rm -f" with no argument
7198 # is OK; and we want to be able to make that assumption in our Makefile
7199 # recipes.  So use an aggressive probe to check that the usage we want is
7200 # actually supported "in the wild" to an acceptable degree.
7201 # See automake bug#10828.
7202 # To make any issue more visible, cause the running configure to be aborted
7203 # by default if the 'rm' program in use doesn't match our expectations; the
7204 # user can still override this though.
7205 if rm -f && rm -fr && rm -rf; then : OK; else
7206   cat >&2 <<'END'
7207 Oops!
7208
7209 Your 'rm' program seems unable to run without file operands specified
7210 on the command line, even when the '-f' option is present.  This is contrary
7211 to the behaviour of most rm programs out there, and not conforming with
7212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
7213
7214 Please tell bug-automake@gnu.org about your system, including the value
7215 of your $PATH and any error possibly output before this message.  This
7216 can help us improve future automake versions.
7217
7218 END
7219   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
7220     echo 'Configuration will proceed anyway, since you have set the' >&2
7221     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
7222     echo >&2
7223   else
7224     cat >&2 <<'END'
7225 Aborting the configuration process, to ensure you take notice of the issue.
7226
7227 You can download and install GNU coreutils to get an 'rm' implementation
7228 that behaves properly: <https://www.gnu.org/software/coreutils/>.
7229
7230 If you want to complete the configuration process using your problematic
7231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
7232 to "yes", and re-run configure.
7233
7234 END
7235     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
7236   fi
7237 fi
7238
7239 ## ------------------------------------- ##
7240 ##  End of automake initialization code  ##
7241 ## ------------------------------------- ##
7242
7243
7244
7245
7246
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7248 printf %s "checking for grep that handles long lines and -e... " >&6; }
7249 if test ${ac_cv_path_GREP+y}
7250 then :
7251   printf %s "(cached) " >&6
7252 else $as_nop
7253   if test -z "$GREP"; then
7254   ac_path_GREP_found=false
7255   # Loop through the user's path and test for each of PROGNAME-LIST
7256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7258 do
7259   IFS=$as_save_IFS
7260   case $as_dir in #(((
7261     '') as_dir=./ ;;
7262     */) ;;
7263     *) as_dir=$as_dir/ ;;
7264   esac
7265     for ac_prog in grep ggrep
7266    do
7267     for ac_exec_ext in '' $ac_executable_extensions; do
7268       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7269       as_fn_executable_p "$ac_path_GREP" || continue
7270 # Check for GNU ac_path_GREP and select it if it is found.
7271   # Check for GNU $ac_path_GREP
7272 case `"$ac_path_GREP" --version 2>&1` in
7273 *GNU*)
7274   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7275 *)
7276   ac_count=0
7277   printf %s 0123456789 >"conftest.in"
7278   while :
7279   do
7280     cat "conftest.in" "conftest.in" >"conftest.tmp"
7281     mv "conftest.tmp" "conftest.in"
7282     cp "conftest.in" "conftest.nl"
7283     printf "%s\n" 'GREP' >> "conftest.nl"
7284     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7285     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7286     as_fn_arith $ac_count + 1 && ac_count=$as_val
7287     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7288       # Best one so far, save it but keep looking for a better one
7289       ac_cv_path_GREP="$ac_path_GREP"
7290       ac_path_GREP_max=$ac_count
7291     fi
7292     # 10*(2^10) chars as input seems more than enough
7293     test $ac_count -gt 10 && break
7294   done
7295   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7296 esac
7297
7298       $ac_path_GREP_found && break 3
7299     done
7300   done
7301   done
7302 IFS=$as_save_IFS
7303   if test -z "$ac_cv_path_GREP"; then
7304     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7305   fi
7306 else
7307   ac_cv_path_GREP=$GREP
7308 fi
7309
7310 fi
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7312 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7313  GREP="$ac_cv_path_GREP"
7314
7315
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7317 printf %s "checking for egrep... " >&6; }
7318 if test ${ac_cv_path_EGREP+y}
7319 then :
7320   printf %s "(cached) " >&6
7321 else $as_nop
7322   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7323    then ac_cv_path_EGREP="$GREP -E"
7324    else
7325      if test -z "$EGREP"; then
7326   ac_path_EGREP_found=false
7327   # Loop through the user's path and test for each of PROGNAME-LIST
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7330 do
7331   IFS=$as_save_IFS
7332   case $as_dir in #(((
7333     '') as_dir=./ ;;
7334     */) ;;
7335     *) as_dir=$as_dir/ ;;
7336   esac
7337     for ac_prog in egrep
7338    do
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7341       as_fn_executable_p "$ac_path_EGREP" || continue
7342 # Check for GNU ac_path_EGREP and select it if it is found.
7343   # Check for GNU $ac_path_EGREP
7344 case `"$ac_path_EGREP" --version 2>&1` in
7345 *GNU*)
7346   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7347 *)
7348   ac_count=0
7349   printf %s 0123456789 >"conftest.in"
7350   while :
7351   do
7352     cat "conftest.in" "conftest.in" >"conftest.tmp"
7353     mv "conftest.tmp" "conftest.in"
7354     cp "conftest.in" "conftest.nl"
7355     printf "%s\n" 'EGREP' >> "conftest.nl"
7356     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7358     as_fn_arith $ac_count + 1 && ac_count=$as_val
7359     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7360       # Best one so far, save it but keep looking for a better one
7361       ac_cv_path_EGREP="$ac_path_EGREP"
7362       ac_path_EGREP_max=$ac_count
7363     fi
7364     # 10*(2^10) chars as input seems more than enough
7365     test $ac_count -gt 10 && break
7366   done
7367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7368 esac
7369
7370       $ac_path_EGREP_found && break 3
7371     done
7372   done
7373   done
7374 IFS=$as_save_IFS
7375   if test -z "$ac_cv_path_EGREP"; then
7376     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7377   fi
7378 else
7379   ac_cv_path_EGREP=$EGREP
7380 fi
7381
7382    fi
7383 fi
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7385 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7386  EGREP="$ac_cv_path_EGREP"
7387
7388
7389
7390
7391       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7392 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395
7396 #ifdef _AIX
7397    yes_this_is_aix
7398 #endif
7399
7400 _ACEOF
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402   $EGREP "yes_this_is_aix" >/dev/null 2>&1
7403 then :
7404
7405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 printf "%s\n" "yes" >&6; }
7407     printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7408
7409
7410 else $as_nop
7411
7412     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 printf "%s\n" "no" >&6; }
7414
7415 fi
7416 rm -rf conftest*
7417
7418
7419
7420
7421     #
7422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7423 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h.  */
7426
7427
7428
7429 int
7430 main (void)
7431 {
7432
7433 #ifdef _THREAD_SAFE
7434       int dummy=1;
7435 #else
7436       force compilation error
7437 #endif
7438
7439   ;
7440   return 0;
7441 }
7442
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"
7445 then :
7446
7447     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448 printf "%s\n" "yes" >&6; }
7449     tmp_thread_safe_initially_defined="yes"
7450
7451 else $as_nop
7452
7453     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 printf "%s\n" "no" >&6; }
7455     tmp_thread_safe_initially_defined="no"
7456
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7459   #
7460   if test "$tmp_thread_safe_initially_defined" = "no"; then
7461     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7462 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7463
7464   case $host_os in
7465     aix[123].* | aix4.[012].*)
7466             tmp_need_thread_safe="no"
7467       ;;
7468     aix*)
7469             tmp_need_thread_safe="yes"
7470       ;;
7471     *)
7472       tmp_need_thread_safe="no"
7473       ;;
7474   esac
7475
7476     if test "$tmp_need_thread_safe" = "yes"; then
7477       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7478 printf "%s\n" "yes" >&6; }
7479     else
7480       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 printf "%s\n" "no" >&6; }
7482     fi
7483   fi
7484   #
7485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7486 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7487   if test "$tmp_thread_safe_initially_defined" = "yes" ||
7488     test "$tmp_need_thread_safe" = "yes"; then
7489
7490
7491 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7492
7493 cat >>confdefs.h <<_EOF
7494 #ifndef _THREAD_SAFE
7495 #  define _THREAD_SAFE
7496 #endif
7497 _EOF
7498
7499     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 printf "%s\n" "yes" >&6; }
7501   else
7502     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7504   fi
7505   #
7506
7507
7508     #
7509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7510 printf %s "checking if _REENTRANT is already defined... " >&6; }
7511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514
7515
7516 int
7517 main (void)
7518 {
7519
7520 #ifdef _REENTRANT
7521       int dummy=1;
7522 #else
7523       force compilation error
7524 #endif
7525
7526   ;
7527   return 0;
7528 }
7529
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"
7532 then :
7533
7534     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7535 printf "%s\n" "yes" >&6; }
7536     tmp_reentrant_initially_defined="yes"
7537
7538 else $as_nop
7539
7540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 printf "%s\n" "no" >&6; }
7542     tmp_reentrant_initially_defined="no"
7543
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7546   #
7547   if test "$tmp_reentrant_initially_defined" = "no"; then
7548     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7549 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7550
7551   case $host_os in
7552     solaris*)
7553       tmp_need_reentrant="yes"
7554       ;;
7555     *)
7556       tmp_need_reentrant="no"
7557       ;;
7558   esac
7559
7560     if test "$tmp_need_reentrant" = "no"; then
7561
7562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h.  */
7564
7565
7566 #include <errno.h>
7567
7568 int
7569 main (void)
7570 {
7571
7572       if(0 != errno)
7573         return 1;
7574
7575   ;
7576   return 0;
7577 }
7578
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"
7581 then :
7582
7583     tmp_errno="yes"
7584
7585 else $as_nop
7586
7587     tmp_errno="no"
7588
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7591   if test "$tmp_errno" = "yes"; then
7592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594
7595
7596 #include <errno.h>
7597
7598 int
7599 main (void)
7600 {
7601
7602 #ifdef errno
7603         int dummy=1;
7604 #else
7605         force compilation error
7606 #endif
7607
7608   ;
7609   return 0;
7610 }
7611
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"
7614 then :
7615
7616       tmp_errno="errno_macro_defined"
7617
7618 else $as_nop
7619
7620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h.  */
7622
7623
7624 #define _REENTRANT
7625 #include <errno.h>
7626
7627 int
7628 main (void)
7629 {
7630
7631 #ifdef errno
7632           int dummy=1;
7633 #else
7634           force compilation error
7635 #endif
7636
7637   ;
7638   return 0;
7639 }
7640
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"
7643 then :
7644
7645         tmp_errno="errno_macro_needs_reentrant"
7646         tmp_need_reentrant="yes"
7647
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7650
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7653   fi
7654
7655     fi
7656     if test "$tmp_need_reentrant" = "no"; then
7657
7658   if test "$tmp_need_reentrant" = "no"; then
7659
7660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662
7663     /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
7664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7665 #define gmtime_r innocuous_gmtime_r
7666
7667 /* System header to define __stub macros and hopefully few prototypes,
7668    which can conflict with char gmtime_r (); below.  */
7669
7670 #include <limits.h>
7671 #undef gmtime_r
7672
7673 /* Override any GCC internal prototype to avoid an error.
7674    Use char because int might match the return type of a GCC
7675    builtin and then its argument prototype would still apply.  */
7676 #ifdef __cplusplus
7677 extern "C"
7678 #endif
7679 char gmtime_r ();
7680 /* The GNU C library defines this for functions which it implements
7681     to always fail with ENOSYS.  Some functions are actually named
7682     something starting with __ and the normal name is an alias.  */
7683 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7684 choke me
7685 #endif
7686
7687 int
7688 main (void)
7689 {
7690 return gmtime_r ();
7691   ;
7692   return 0;
7693 }
7694
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"
7697 then :
7698
7699     tmp_gmtime_r="yes"
7700
7701 else $as_nop
7702
7703     tmp_gmtime_r="no"
7704
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707     conftest$ac_exeext conftest.$ac_ext
7708   if test "$tmp_gmtime_r" = "yes"; then
7709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h.  */
7711
7712 #include <sys/types.h>
7713 #include <time.h>
7714
7715 _ACEOF
7716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717   $EGREP "gmtime_r" >/dev/null 2>&1
7718 then :
7719
7720       tmp_gmtime_r="proto_declared"
7721
7722 else $as_nop
7723
7724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h.  */
7726
7727 #define _REENTRANT
7728 #include <sys/types.h>
7729 #include <time.h>
7730
7731 _ACEOF
7732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7733   $EGREP "gmtime_r" >/dev/null 2>&1
7734 then :
7735
7736         tmp_gmtime_r="proto_needs_reentrant"
7737         tmp_need_reentrant="yes"
7738
7739 fi
7740 rm -rf conftest*
7741
7742
7743 fi
7744 rm -rf conftest*
7745
7746   fi
7747
7748   fi
7749   if test "$tmp_need_reentrant" = "no"; then
7750
7751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753
7754     /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
7755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7756 #define localtime_r innocuous_localtime_r
7757
7758 /* System header to define __stub macros and hopefully few prototypes,
7759    which can conflict with char localtime_r (); below.  */
7760
7761 #include <limits.h>
7762 #undef localtime_r
7763
7764 /* Override any GCC internal prototype to avoid an error.
7765    Use char because int might match the return type of a GCC
7766    builtin and then its argument prototype would still apply.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 char localtime_r ();
7771 /* The GNU C library defines this for functions which it implements
7772     to always fail with ENOSYS.  Some functions are actually named
7773     something starting with __ and the normal name is an alias.  */
7774 #if defined __stub_localtime_r || defined __stub___localtime_r
7775 choke me
7776 #endif
7777
7778 int
7779 main (void)
7780 {
7781 return localtime_r ();
7782   ;
7783   return 0;
7784 }
7785
7786 _ACEOF
7787 if ac_fn_c_try_link "$LINENO"
7788 then :
7789
7790     tmp_localtime_r="yes"
7791
7792 else $as_nop
7793
7794     tmp_localtime_r="no"
7795
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7798     conftest$ac_exeext conftest.$ac_ext
7799   if test "$tmp_localtime_r" = "yes"; then
7800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802
7803 #include <sys/types.h>
7804 #include <time.h>
7805
7806 _ACEOF
7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808   $EGREP "localtime_r" >/dev/null 2>&1
7809 then :
7810
7811       tmp_localtime_r="proto_declared"
7812
7813 else $as_nop
7814
7815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817
7818 #define _REENTRANT
7819 #include <sys/types.h>
7820 #include <time.h>
7821
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824   $EGREP "localtime_r" >/dev/null 2>&1
7825 then :
7826
7827         tmp_localtime_r="proto_needs_reentrant"
7828         tmp_need_reentrant="yes"
7829
7830 fi
7831 rm -rf conftest*
7832
7833
7834 fi
7835 rm -rf conftest*
7836
7837   fi
7838
7839   fi
7840   if test "$tmp_need_reentrant" = "no"; then
7841
7842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844
7845     /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
7846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7847 #define strerror_r innocuous_strerror_r
7848
7849 /* System header to define __stub macros and hopefully few prototypes,
7850    which can conflict with char strerror_r (); below.  */
7851
7852 #include <limits.h>
7853 #undef strerror_r
7854
7855 /* Override any GCC internal prototype to avoid an error.
7856    Use char because int might match the return type of a GCC
7857    builtin and then its argument prototype would still apply.  */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 char strerror_r ();
7862 /* The GNU C library defines this for functions which it implements
7863     to always fail with ENOSYS.  Some functions are actually named
7864     something starting with __ and the normal name is an alias.  */
7865 #if defined __stub_strerror_r || defined __stub___strerror_r
7866 choke me
7867 #endif
7868
7869 int
7870 main (void)
7871 {
7872 return strerror_r ();
7873   ;
7874   return 0;
7875 }
7876
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"
7879 then :
7880
7881     tmp_strerror_r="yes"
7882
7883 else $as_nop
7884
7885     tmp_strerror_r="no"
7886
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7889     conftest$ac_exeext conftest.$ac_ext
7890   if test "$tmp_strerror_r" = "yes"; then
7891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893
7894 #include <sys/types.h>
7895 #include <string.h>
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "strerror_r" >/dev/null 2>&1
7900 then :
7901
7902       tmp_strerror_r="proto_declared"
7903
7904 else $as_nop
7905
7906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908
7909 #define _REENTRANT
7910 #include <sys/types.h>
7911 #include <string.h>
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915   $EGREP "strerror_r" >/dev/null 2>&1
7916 then :
7917
7918         tmp_strerror_r="proto_needs_reentrant"
7919         tmp_need_reentrant="yes"
7920
7921 fi
7922 rm -rf conftest*
7923
7924
7925 fi
7926 rm -rf conftest*
7927
7928   fi
7929
7930   fi
7931   if test "$tmp_need_reentrant" = "no"; then
7932
7933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h.  */
7935
7936     /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
7937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7938 #define strtok_r innocuous_strtok_r
7939
7940 /* System header to define __stub macros and hopefully few prototypes,
7941    which can conflict with char strtok_r (); below.  */
7942
7943 #include <limits.h>
7944 #undef strtok_r
7945
7946 /* Override any GCC internal prototype to avoid an error.
7947    Use char because int might match the return type of a GCC
7948    builtin and then its argument prototype would still apply.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 char strtok_r ();
7953 /* The GNU C library defines this for functions which it implements
7954     to always fail with ENOSYS.  Some functions are actually named
7955     something starting with __ and the normal name is an alias.  */
7956 #if defined __stub_strtok_r || defined __stub___strtok_r
7957 choke me
7958 #endif
7959
7960 int
7961 main (void)
7962 {
7963 return strtok_r ();
7964   ;
7965   return 0;
7966 }
7967
7968 _ACEOF
7969 if ac_fn_c_try_link "$LINENO"
7970 then :
7971
7972     tmp_strtok_r="yes"
7973
7974 else $as_nop
7975
7976     tmp_strtok_r="no"
7977
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980     conftest$ac_exeext conftest.$ac_ext
7981   if test "$tmp_strtok_r" = "yes"; then
7982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h.  */
7984
7985 #include <sys/types.h>
7986 #include <string.h>
7987
7988 _ACEOF
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990   $EGREP "strtok_r" >/dev/null 2>&1
7991 then :
7992
7993       tmp_strtok_r="proto_declared"
7994
7995 else $as_nop
7996
7997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h.  */
7999
8000 #define _REENTRANT
8001 #include <sys/types.h>
8002 #include <string.h>
8003
8004 _ACEOF
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006   $EGREP "strtok_r" >/dev/null 2>&1
8007 then :
8008
8009         tmp_strtok_r="proto_needs_reentrant"
8010         tmp_need_reentrant="yes"
8011
8012 fi
8013 rm -rf conftest*
8014
8015
8016 fi
8017 rm -rf conftest*
8018
8019   fi
8020
8021   fi
8022   if test "$tmp_need_reentrant" = "no"; then
8023
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026
8027     /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
8028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8029 #define inet_ntoa_r innocuous_inet_ntoa_r
8030
8031 /* System header to define __stub macros and hopefully few prototypes,
8032    which can conflict with char inet_ntoa_r (); below.  */
8033
8034 #include <limits.h>
8035 #undef inet_ntoa_r
8036
8037 /* Override any GCC internal prototype to avoid an error.
8038    Use char because int might match the return type of a GCC
8039    builtin and then its argument prototype would still apply.  */
8040 #ifdef __cplusplus
8041 extern "C"
8042 #endif
8043 char inet_ntoa_r ();
8044 /* The GNU C library defines this for functions which it implements
8045     to always fail with ENOSYS.  Some functions are actually named
8046     something starting with __ and the normal name is an alias.  */
8047 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
8048 choke me
8049 #endif
8050
8051 int
8052 main (void)
8053 {
8054 return inet_ntoa_r ();
8055   ;
8056   return 0;
8057 }
8058
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"
8061 then :
8062
8063     tmp_inet_ntoa_r="yes"
8064
8065 else $as_nop
8066
8067     tmp_inet_ntoa_r="no"
8068
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8071     conftest$ac_exeext conftest.$ac_ext
8072   if test "$tmp_inet_ntoa_r" = "yes"; then
8073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075
8076 #include <sys/types.h>
8077 #include <sys/socket.h>
8078 #include <netinet/in.h>
8079 #include <arpa/inet.h>
8080
8081 _ACEOF
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083   $EGREP "inet_ntoa_r" >/dev/null 2>&1
8084 then :
8085
8086       tmp_inet_ntoa_r="proto_declared"
8087
8088 else $as_nop
8089
8090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092
8093 #define _REENTRANT
8094 #include <sys/types.h>
8095 #include <sys/socket.h>
8096 #include <netinet/in.h>
8097 #include <arpa/inet.h>
8098
8099 _ACEOF
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101   $EGREP "inet_ntoa_r" >/dev/null 2>&1
8102 then :
8103
8104         tmp_inet_ntoa_r="proto_needs_reentrant"
8105         tmp_need_reentrant="yes"
8106
8107 fi
8108 rm -rf conftest*
8109
8110
8111 fi
8112 rm -rf conftest*
8113
8114   fi
8115
8116   fi
8117   if test "$tmp_need_reentrant" = "no"; then
8118
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121
8122     /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
8123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8124 #define gethostbyaddr_r innocuous_gethostbyaddr_r
8125
8126 /* System header to define __stub macros and hopefully few prototypes,
8127    which can conflict with char gethostbyaddr_r (); below.  */
8128
8129 #include <limits.h>
8130 #undef gethostbyaddr_r
8131
8132 /* Override any GCC internal prototype to avoid an error.
8133    Use char because int might match the return type of a GCC
8134    builtin and then its argument prototype would still apply.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 #endif
8138 char gethostbyaddr_r ();
8139 /* The GNU C library defines this for functions which it implements
8140     to always fail with ENOSYS.  Some functions are actually named
8141     something starting with __ and the normal name is an alias.  */
8142 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
8143 choke me
8144 #endif
8145
8146 int
8147 main (void)
8148 {
8149 return gethostbyaddr_r ();
8150   ;
8151   return 0;
8152 }
8153
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"
8156 then :
8157
8158     tmp_gethostbyaddr_r="yes"
8159
8160 else $as_nop
8161
8162     tmp_gethostbyaddr_r="no"
8163
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166     conftest$ac_exeext conftest.$ac_ext
8167   if test "$tmp_gethostbyaddr_r" = "yes"; then
8168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h.  */
8170
8171 #include <sys/types.h>
8172 #include <netdb.h>
8173
8174 _ACEOF
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176   $EGREP "gethostbyaddr_r" >/dev/null 2>&1
8177 then :
8178
8179       tmp_gethostbyaddr_r="proto_declared"
8180
8181 else $as_nop
8182
8183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h.  */
8185
8186 #define _REENTRANT
8187 #include <sys/types.h>
8188 #include <netdb.h>
8189
8190 _ACEOF
8191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192   $EGREP "gethostbyaddr_r" >/dev/null 2>&1
8193 then :
8194
8195         tmp_gethostbyaddr_r="proto_needs_reentrant"
8196         tmp_need_reentrant="yes"
8197
8198 fi
8199 rm -rf conftest*
8200
8201
8202 fi
8203 rm -rf conftest*
8204
8205   fi
8206
8207   fi
8208   if test "$tmp_need_reentrant" = "no"; then
8209
8210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h.  */
8212
8213     /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
8214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8215 #define gethostbyname_r innocuous_gethostbyname_r
8216
8217 /* System header to define __stub macros and hopefully few prototypes,
8218    which can conflict with char gethostbyname_r (); below.  */
8219
8220 #include <limits.h>
8221 #undef gethostbyname_r
8222
8223 /* Override any GCC internal prototype to avoid an error.
8224    Use char because int might match the return type of a GCC
8225    builtin and then its argument prototype would still apply.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char gethostbyname_r ();
8230 /* The GNU C library defines this for functions which it implements
8231     to always fail with ENOSYS.  Some functions are actually named
8232     something starting with __ and the normal name is an alias.  */
8233 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8234 choke me
8235 #endif
8236
8237 int
8238 main (void)
8239 {
8240 return gethostbyname_r ();
8241   ;
8242   return 0;
8243 }
8244
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"
8247 then :
8248
8249     tmp_gethostbyname_r="yes"
8250
8251 else $as_nop
8252
8253     tmp_gethostbyname_r="no"
8254
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8257     conftest$ac_exeext conftest.$ac_ext
8258   if test "$tmp_gethostbyname_r" = "yes"; then
8259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h.  */
8261
8262 #include <sys/types.h>
8263 #include <netdb.h>
8264
8265 _ACEOF
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267   $EGREP "gethostbyname_r" >/dev/null 2>&1
8268 then :
8269
8270       tmp_gethostbyname_r="proto_declared"
8271
8272 else $as_nop
8273
8274       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276
8277 #define _REENTRANT
8278 #include <sys/types.h>
8279 #include <netdb.h>
8280
8281 _ACEOF
8282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283   $EGREP "gethostbyname_r" >/dev/null 2>&1
8284 then :
8285
8286         tmp_gethostbyname_r="proto_needs_reentrant"
8287         tmp_need_reentrant="yes"
8288
8289 fi
8290 rm -rf conftest*
8291
8292
8293 fi
8294 rm -rf conftest*
8295
8296   fi
8297
8298   fi
8299   if test "$tmp_need_reentrant" = "no"; then
8300
8301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h.  */
8303
8304     /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
8305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8306 #define getprotobyname_r innocuous_getprotobyname_r
8307
8308 /* System header to define __stub macros and hopefully few prototypes,
8309    which can conflict with char getprotobyname_r (); below.  */
8310
8311 #include <limits.h>
8312 #undef getprotobyname_r
8313
8314 /* Override any GCC internal prototype to avoid an error.
8315    Use char because int might match the return type of a GCC
8316    builtin and then its argument prototype would still apply.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char getprotobyname_r ();
8321 /* The GNU C library defines this for functions which it implements
8322     to always fail with ENOSYS.  Some functions are actually named
8323     something starting with __ and the normal name is an alias.  */
8324 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8325 choke me
8326 #endif
8327
8328 int
8329 main (void)
8330 {
8331 return getprotobyname_r ();
8332   ;
8333   return 0;
8334 }
8335
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"
8338 then :
8339
8340     tmp_getprotobyname_r="yes"
8341
8342 else $as_nop
8343
8344     tmp_getprotobyname_r="no"
8345
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8348     conftest$ac_exeext conftest.$ac_ext
8349   if test "$tmp_getprotobyname_r" = "yes"; then
8350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h.  */
8352
8353 #include <sys/types.h>
8354 #include <netdb.h>
8355
8356 _ACEOF
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358   $EGREP "getprotobyname_r" >/dev/null 2>&1
8359 then :
8360
8361       tmp_getprotobyname_r="proto_declared"
8362
8363 else $as_nop
8364
8365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h.  */
8367
8368 #define _REENTRANT
8369 #include <sys/types.h>
8370 #include <netdb.h>
8371
8372 _ACEOF
8373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374   $EGREP "getprotobyname_r" >/dev/null 2>&1
8375 then :
8376
8377         tmp_getprotobyname_r="proto_needs_reentrant"
8378         tmp_need_reentrant="yes"
8379
8380 fi
8381 rm -rf conftest*
8382
8383
8384 fi
8385 rm -rf conftest*
8386
8387   fi
8388
8389   fi
8390   if test "$tmp_need_reentrant" = "no"; then
8391
8392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h.  */
8394
8395     /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
8396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8397 #define getservbyport_r innocuous_getservbyport_r
8398
8399 /* System header to define __stub macros and hopefully few prototypes,
8400    which can conflict with char getservbyport_r (); below.  */
8401
8402 #include <limits.h>
8403 #undef getservbyport_r
8404
8405 /* Override any GCC internal prototype to avoid an error.
8406    Use char because int might match the return type of a GCC
8407    builtin and then its argument prototype would still apply.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 char getservbyport_r ();
8412 /* The GNU C library defines this for functions which it implements
8413     to always fail with ENOSYS.  Some functions are actually named
8414     something starting with __ and the normal name is an alias.  */
8415 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
8416 choke me
8417 #endif
8418
8419 int
8420 main (void)
8421 {
8422 return getservbyport_r ();
8423   ;
8424   return 0;
8425 }
8426
8427 _ACEOF
8428 if ac_fn_c_try_link "$LINENO"
8429 then :
8430
8431     tmp_getservbyport_r="yes"
8432
8433 else $as_nop
8434
8435     tmp_getservbyport_r="no"
8436
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8439     conftest$ac_exeext conftest.$ac_ext
8440   if test "$tmp_getservbyport_r" = "yes"; then
8441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h.  */
8443
8444 #include <sys/types.h>
8445 #include <netdb.h>
8446
8447 _ACEOF
8448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449   $EGREP "getservbyport_r" >/dev/null 2>&1
8450 then :
8451
8452       tmp_getservbyport_r="proto_declared"
8453
8454 else $as_nop
8455
8456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458
8459 #define _REENTRANT
8460 #include <sys/types.h>
8461 #include <netdb.h>
8462
8463 _ACEOF
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465   $EGREP "getservbyport_r" >/dev/null 2>&1
8466 then :
8467
8468         tmp_getservbyport_r="proto_needs_reentrant"
8469         tmp_need_reentrant="yes"
8470
8471 fi
8472 rm -rf conftest*
8473
8474
8475 fi
8476 rm -rf conftest*
8477
8478   fi
8479
8480   fi
8481
8482     fi
8483     if test "$tmp_need_reentrant" = "yes"; then
8484       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 printf "%s\n" "yes" >&6; }
8486     else
8487       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 printf "%s\n" "no" >&6; }
8489     fi
8490   fi
8491   #
8492   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8493 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8494   if test "$tmp_reentrant_initially_defined" = "yes" ||
8495     test "$tmp_need_reentrant" = "yes"; then
8496
8497
8498 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8499
8500 cat >>confdefs.h <<_EOF
8501 #ifndef _REENTRANT
8502 #  define _REENTRANT
8503 #endif
8504 _EOF
8505
8506     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8507 printf "%s\n" "yes" >&6; }
8508   else
8509     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 printf "%s\n" "no" >&6; }
8511   fi
8512   #
8513
8514
8515 # Check whether --enable-largefile was given.
8516 if test ${enable_largefile+y}
8517 then :
8518   enableval=$enable_largefile;
8519 fi
8520
8521 if test "$enable_largefile" != no; then
8522
8523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8524 printf %s "checking for special C compiler options needed for large files... " >&6; }
8525 if test ${ac_cv_sys_largefile_CC+y}
8526 then :
8527   printf %s "(cached) " >&6
8528 else $as_nop
8529   ac_cv_sys_largefile_CC=no
8530      if test "$GCC" != yes; then
8531        ac_save_CC=$CC
8532        while :; do
8533          # IRIX 6.2 and later do not support large files by default,
8534          # so use the C compiler's -n32 option if that helps.
8535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h.  */
8537 #include <sys/types.h>
8538  /* Check that off_t can represent 2**63 - 1 correctly.
8539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8540     since some C++ compilers masquerading as C compilers
8541     incorrectly reject 9223372036854775807.  */
8542 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8544                        && LARGE_OFF_T % 2147483647 == 1)
8545                       ? 1 : -1];
8546 int
8547 main (void)
8548 {
8549
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554          if ac_fn_c_try_compile "$LINENO"
8555 then :
8556   break
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.beam
8559          CC="$CC -n32"
8560          if ac_fn_c_try_compile "$LINENO"
8561 then :
8562   ac_cv_sys_largefile_CC=' -n32'; break
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.beam
8565          break
8566        done
8567        CC=$ac_save_CC
8568        rm -f conftest.$ac_ext
8569     fi
8570 fi
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8572 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8573   if test "$ac_cv_sys_largefile_CC" != no; then
8574     CC=$CC$ac_cv_sys_largefile_CC
8575   fi
8576
8577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8578 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8579 if test ${ac_cv_sys_file_offset_bits+y}
8580 then :
8581   printf %s "(cached) " >&6
8582 else $as_nop
8583   while :; do
8584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h.  */
8586 #include <sys/types.h>
8587  /* Check that off_t can represent 2**63 - 1 correctly.
8588     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8589     since some C++ compilers masquerading as C compilers
8590     incorrectly reject 9223372036854775807.  */
8591 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8592   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8593                        && LARGE_OFF_T % 2147483647 == 1)
8594                       ? 1 : -1];
8595 int
8596 main (void)
8597 {
8598
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 if ac_fn_c_try_compile "$LINENO"
8604 then :
8605   ac_cv_sys_file_offset_bits=no; break
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h.  */
8610 #define _FILE_OFFSET_BITS 64
8611 #include <sys/types.h>
8612  /* Check that off_t can represent 2**63 - 1 correctly.
8613     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8614     since some C++ compilers masquerading as C compilers
8615     incorrectly reject 9223372036854775807.  */
8616 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8617   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8618                        && LARGE_OFF_T % 2147483647 == 1)
8619                       ? 1 : -1];
8620 int
8621 main (void)
8622 {
8623
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"
8629 then :
8630   ac_cv_sys_file_offset_bits=64; break
8631 fi
8632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8633   ac_cv_sys_file_offset_bits=unknown
8634   break
8635 done
8636 fi
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8638 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8639 case $ac_cv_sys_file_offset_bits in #(
8640   no | unknown) ;;
8641   *)
8642 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8643 ;;
8644 esac
8645 rm -rf conftest*
8646   if test $ac_cv_sys_file_offset_bits = unknown; then
8647     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8648 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8649 if test ${ac_cv_sys_large_files+y}
8650 then :
8651   printf %s "(cached) " >&6
8652 else $as_nop
8653   while :; do
8654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h.  */
8656 #include <sys/types.h>
8657  /* Check that off_t can represent 2**63 - 1 correctly.
8658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8659     since some C++ compilers masquerading as C compilers
8660     incorrectly reject 9223372036854775807.  */
8661 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8663                        && LARGE_OFF_T % 2147483647 == 1)
8664                       ? 1 : -1];
8665 int
8666 main (void)
8667 {
8668
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"
8674 then :
8675   ac_cv_sys_large_files=no; break
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h.  */
8680 #define _LARGE_FILES 1
8681 #include <sys/types.h>
8682  /* Check that off_t can represent 2**63 - 1 correctly.
8683     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8684     since some C++ compilers masquerading as C compilers
8685     incorrectly reject 9223372036854775807.  */
8686 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8687   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8688                        && LARGE_OFF_T % 2147483647 == 1)
8689                       ? 1 : -1];
8690 int
8691 main (void)
8692 {
8693
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"
8699 then :
8700   ac_cv_sys_large_files=1; break
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8703   ac_cv_sys_large_files=unknown
8704   break
8705 done
8706 fi
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8708 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8709 case $ac_cv_sys_large_files in #(
8710   no | unknown) ;;
8711   *)
8712 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8713 ;;
8714 esac
8715 rm -rf conftest*
8716   fi
8717 fi
8718
8719
8720 case $host_os in
8721   solaris*)
8722
8723 printf "%s\n" "#define ETC_INET 1" >>confdefs.h
8724
8725     ;;
8726 esac
8727
8728 case `pwd` in
8729   *\ * | *\     *)
8730     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8731 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8732 esac
8733
8734
8735
8736 macro_version='2.4.6'
8737 macro_revision='2.4.6'
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 ltmain=$ac_aux_dir/ltmain.sh
8753
8754 # Backslashify metacharacters that are still active within
8755 # double-quoted strings.
8756 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8757
8758 # Same as above, but do not quote variable references.
8759 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8760
8761 # Sed substitution to delay expansion of an escaped shell variable in a
8762 # double_quote_subst'ed string.
8763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8764
8765 # Sed substitution to delay expansion of an escaped single quote.
8766 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8767
8768 # Sed substitution to avoid accidental globbing in evaled expressions
8769 no_glob_subst='s/\*/\\\*/g'
8770
8771 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8772 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8774
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8776 printf %s "checking how to print strings... " >&6; }
8777 # Test print first, because it will be a builtin if present.
8778 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8779    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8780   ECHO='print -r --'
8781 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8782   ECHO='printf %s\n'
8783 else
8784   # Use this function as a fallback that always works.
8785   func_fallback_echo ()
8786   {
8787     eval 'cat <<_LTECHO_EOF
8788 $1
8789 _LTECHO_EOF'
8790   }
8791   ECHO='func_fallback_echo'
8792 fi
8793
8794 # func_echo_all arg...
8795 # Invoke $ECHO with all args, space-separated.
8796 func_echo_all ()
8797 {
8798     $ECHO ""
8799 }
8800
8801 case $ECHO in
8802   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8803 printf "%s\n" "printf" >&6; } ;;
8804   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8805 printf "%s\n" "print -r" >&6; } ;;
8806   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8807 printf "%s\n" "cat" >&6; } ;;
8808 esac
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8824 printf %s "checking for a sed that does not truncate output... " >&6; }
8825 if test ${ac_cv_path_SED+y}
8826 then :
8827   printf %s "(cached) " >&6
8828 else $as_nop
8829             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8830      for ac_i in 1 2 3 4 5 6 7; do
8831        ac_script="$ac_script$as_nl$ac_script"
8832      done
8833      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8834      { ac_script=; unset ac_script;}
8835      if test -z "$SED"; then
8836   ac_path_SED_found=false
8837   # Loop through the user's path and test for each of PROGNAME-LIST
8838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841   IFS=$as_save_IFS
8842   case $as_dir in #(((
8843     '') as_dir=./ ;;
8844     */) ;;
8845     *) as_dir=$as_dir/ ;;
8846   esac
8847     for ac_prog in sed gsed
8848    do
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8851       as_fn_executable_p "$ac_path_SED" || continue
8852 # Check for GNU ac_path_SED and select it if it is found.
8853   # Check for GNU $ac_path_SED
8854 case `"$ac_path_SED" --version 2>&1` in
8855 *GNU*)
8856   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8857 *)
8858   ac_count=0
8859   printf %s 0123456789 >"conftest.in"
8860   while :
8861   do
8862     cat "conftest.in" "conftest.in" >"conftest.tmp"
8863     mv "conftest.tmp" "conftest.in"
8864     cp "conftest.in" "conftest.nl"
8865     printf "%s\n" '' >> "conftest.nl"
8866     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8868     as_fn_arith $ac_count + 1 && ac_count=$as_val
8869     if test $ac_count -gt ${ac_path_SED_max-0}; then
8870       # Best one so far, save it but keep looking for a better one
8871       ac_cv_path_SED="$ac_path_SED"
8872       ac_path_SED_max=$ac_count
8873     fi
8874     # 10*(2^10) chars as input seems more than enough
8875     test $ac_count -gt 10 && break
8876   done
8877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8878 esac
8879
8880       $ac_path_SED_found && break 3
8881     done
8882   done
8883   done
8884 IFS=$as_save_IFS
8885   if test -z "$ac_cv_path_SED"; then
8886     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8887   fi
8888 else
8889   ac_cv_path_SED=$SED
8890 fi
8891
8892 fi
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8894 printf "%s\n" "$ac_cv_path_SED" >&6; }
8895  SED="$ac_cv_path_SED"
8896   rm -f conftest.sed
8897
8898 test -z "$SED" && SED=sed
8899 Xsed="$SED -e 1s/^X//"
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8912 printf %s "checking for fgrep... " >&6; }
8913 if test ${ac_cv_path_FGREP+y}
8914 then :
8915   printf %s "(cached) " >&6
8916 else $as_nop
8917   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8918    then ac_cv_path_FGREP="$GREP -F"
8919    else
8920      if test -z "$FGREP"; then
8921   ac_path_FGREP_found=false
8922   # Loop through the user's path and test for each of PROGNAME-LIST
8923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8925 do
8926   IFS=$as_save_IFS
8927   case $as_dir in #(((
8928     '') as_dir=./ ;;
8929     */) ;;
8930     *) as_dir=$as_dir/ ;;
8931   esac
8932     for ac_prog in fgrep
8933    do
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8936       as_fn_executable_p "$ac_path_FGREP" || continue
8937 # Check for GNU ac_path_FGREP and select it if it is found.
8938   # Check for GNU $ac_path_FGREP
8939 case `"$ac_path_FGREP" --version 2>&1` in
8940 *GNU*)
8941   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8942 *)
8943   ac_count=0
8944   printf %s 0123456789 >"conftest.in"
8945   while :
8946   do
8947     cat "conftest.in" "conftest.in" >"conftest.tmp"
8948     mv "conftest.tmp" "conftest.in"
8949     cp "conftest.in" "conftest.nl"
8950     printf "%s\n" 'FGREP' >> "conftest.nl"
8951     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8953     as_fn_arith $ac_count + 1 && ac_count=$as_val
8954     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8955       # Best one so far, save it but keep looking for a better one
8956       ac_cv_path_FGREP="$ac_path_FGREP"
8957       ac_path_FGREP_max=$ac_count
8958     fi
8959     # 10*(2^10) chars as input seems more than enough
8960     test $ac_count -gt 10 && break
8961   done
8962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8963 esac
8964
8965       $ac_path_FGREP_found && break 3
8966     done
8967   done
8968   done
8969 IFS=$as_save_IFS
8970   if test -z "$ac_cv_path_FGREP"; then
8971     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8972   fi
8973 else
8974   ac_cv_path_FGREP=$FGREP
8975 fi
8976
8977    fi
8978 fi
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8980 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8981  FGREP="$ac_cv_path_FGREP"
8982
8983
8984 test -z "$GREP" && GREP=grep
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004 # Check whether --with-gnu-ld was given.
9005 if test ${with_gnu_ld+y}
9006 then :
9007   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9008 else $as_nop
9009   with_gnu_ld=no
9010 fi
9011
9012 ac_prog=ld
9013 if test yes = "$GCC"; then
9014   # Check if gcc -print-prog-name=ld gives a path.
9015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9016 printf %s "checking for ld used by $CC... " >&6; }
9017   case $host in
9018   *-*-mingw*)
9019     # gcc leaves a trailing carriage return, which upsets mingw
9020     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9021   *)
9022     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9023   esac
9024   case $ac_prog in
9025     # Accept absolute paths.
9026     [\\/]* | ?:[\\/]*)
9027       re_direlt='/[^/][^/]*/\.\./'
9028       # Canonicalize the pathname of ld
9029       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9030       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9031         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9032       done
9033       test -z "$LD" && LD=$ac_prog
9034       ;;
9035   "")
9036     # If it fails, then pretend we aren't using GCC.
9037     ac_prog=ld
9038     ;;
9039   *)
9040     # If it is relative, then search for the first ld in PATH.
9041     with_gnu_ld=unknown
9042     ;;
9043   esac
9044 elif test yes = "$with_gnu_ld"; then
9045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9046 printf %s "checking for GNU ld... " >&6; }
9047 else
9048   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9049 printf %s "checking for non-GNU ld... " >&6; }
9050 fi
9051 if test ${lt_cv_path_LD+y}
9052 then :
9053   printf %s "(cached) " >&6
9054 else $as_nop
9055   if test -z "$LD"; then
9056   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9057   for ac_dir in $PATH; do
9058     IFS=$lt_save_ifs
9059     test -z "$ac_dir" && ac_dir=.
9060     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9061       lt_cv_path_LD=$ac_dir/$ac_prog
9062       # Check to see if the program is GNU ld.  I'd rather use --version,
9063       # but apparently some variants of GNU ld only accept -v.
9064       # Break only if it was the GNU/non-GNU ld that we prefer.
9065       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9066       *GNU* | *'with BFD'*)
9067         test no != "$with_gnu_ld" && break
9068         ;;
9069       *)
9070         test yes != "$with_gnu_ld" && break
9071         ;;
9072       esac
9073     fi
9074   done
9075   IFS=$lt_save_ifs
9076 else
9077   lt_cv_path_LD=$LD # Let the user override the test with a path.
9078 fi
9079 fi
9080
9081 LD=$lt_cv_path_LD
9082 if test -n "$LD"; then
9083   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9084 printf "%s\n" "$LD" >&6; }
9085 else
9086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 printf "%s\n" "no" >&6; }
9088 fi
9089 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9091 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9092 if test ${lt_cv_prog_gnu_ld+y}
9093 then :
9094   printf %s "(cached) " >&6
9095 else $as_nop
9096   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9097 case `$LD -v 2>&1 </dev/null` in
9098 *GNU* | *'with BFD'*)
9099   lt_cv_prog_gnu_ld=yes
9100   ;;
9101 *)
9102   lt_cv_prog_gnu_ld=no
9103   ;;
9104 esac
9105 fi
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9107 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9108 with_gnu_ld=$lt_cv_prog_gnu_ld
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9119 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9120 if test ${lt_cv_path_NM+y}
9121 then :
9122   printf %s "(cached) " >&6
9123 else $as_nop
9124   if test -n "$NM"; then
9125   # Let the user override the test.
9126   lt_cv_path_NM=$NM
9127 else
9128   lt_nm_to_check=${ac_tool_prefix}nm
9129   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9130     lt_nm_to_check="$lt_nm_to_check nm"
9131   fi
9132   for lt_tmp_nm in $lt_nm_to_check; do
9133     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9134     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9135       IFS=$lt_save_ifs
9136       test -z "$ac_dir" && ac_dir=.
9137       tmp_nm=$ac_dir/$lt_tmp_nm
9138       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9139         # Check to see if the nm accepts a BSD-compat flag.
9140         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9141         #   nm: unknown option "B" ignored
9142         # Tru64's nm complains that /dev/null is an invalid object file
9143         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9144         case $build_os in
9145         mingw*) lt_bad_file=conftest.nm/nofile ;;
9146         *) lt_bad_file=/dev/null ;;
9147         esac
9148         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9149         *$lt_bad_file* | *'Invalid file or object type'*)
9150           lt_cv_path_NM="$tmp_nm -B"
9151           break 2
9152           ;;
9153         *)
9154           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9155           */dev/null*)
9156             lt_cv_path_NM="$tmp_nm -p"
9157             break 2
9158             ;;
9159           *)
9160             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9161             continue # so that we can try to find one that supports BSD flags
9162             ;;
9163           esac
9164           ;;
9165         esac
9166       fi
9167     done
9168     IFS=$lt_save_ifs
9169   done
9170   : ${lt_cv_path_NM=no}
9171 fi
9172 fi
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9174 printf "%s\n" "$lt_cv_path_NM" >&6; }
9175 if test no != "$lt_cv_path_NM"; then
9176   NM=$lt_cv_path_NM
9177 else
9178   # Didn't find any BSD compatible name lister, look for dumpbin.
9179   if test -n "$DUMPBIN"; then :
9180     # Let the user override the test.
9181   else
9182     if test -n "$ac_tool_prefix"; then
9183   for ac_prog in dumpbin "link -dump"
9184   do
9185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 printf %s "checking for $ac_word... " >&6; }
9189 if test ${ac_cv_prog_DUMPBIN+y}
9190 then :
9191   printf %s "(cached) " >&6
9192 else $as_nop
9193   if test -n "$DUMPBIN"; then
9194   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   case $as_dir in #(((
9201     '') as_dir=./ ;;
9202     */) ;;
9203     *) as_dir=$as_dir/ ;;
9204   esac
9205     for ac_exec_ext in '' $ac_executable_extensions; do
9206   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9208     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9209     break 2
9210   fi
9211 done
9212   done
9213 IFS=$as_save_IFS
9214
9215 fi
9216 fi
9217 DUMPBIN=$ac_cv_prog_DUMPBIN
9218 if test -n "$DUMPBIN"; then
9219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9220 printf "%s\n" "$DUMPBIN" >&6; }
9221 else
9222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9224 fi
9225
9226
9227     test -n "$DUMPBIN" && break
9228   done
9229 fi
9230 if test -z "$DUMPBIN"; then
9231   ac_ct_DUMPBIN=$DUMPBIN
9232   for ac_prog in dumpbin "link -dump"
9233 do
9234   # Extract the first word of "$ac_prog", so it can be a program name with args.
9235 set dummy $ac_prog; ac_word=$2
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 printf %s "checking for $ac_word... " >&6; }
9238 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9239 then :
9240   printf %s "(cached) " >&6
9241 else $as_nop
9242   if test -n "$ac_ct_DUMPBIN"; then
9243   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248   IFS=$as_save_IFS
9249   case $as_dir in #(((
9250     '') as_dir=./ ;;
9251     */) ;;
9252     *) as_dir=$as_dir/ ;;
9253   esac
9254     for ac_exec_ext in '' $ac_executable_extensions; do
9255   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9256     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9257     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9258     break 2
9259   fi
9260 done
9261   done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9267 if test -n "$ac_ct_DUMPBIN"; then
9268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9269 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9270 else
9271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 printf "%s\n" "no" >&6; }
9273 fi
9274
9275
9276   test -n "$ac_ct_DUMPBIN" && break
9277 done
9278
9279   if test "x$ac_ct_DUMPBIN" = x; then
9280     DUMPBIN=":"
9281   else
9282     case $cross_compiling:$ac_tool_warned in
9283 yes:)
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286 ac_tool_warned=yes ;;
9287 esac
9288     DUMPBIN=$ac_ct_DUMPBIN
9289   fi
9290 fi
9291
9292     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9293     *COFF*)
9294       DUMPBIN="$DUMPBIN -symbols -headers"
9295       ;;
9296     *)
9297       DUMPBIN=:
9298       ;;
9299     esac
9300   fi
9301
9302   if test : != "$DUMPBIN"; then
9303     NM=$DUMPBIN
9304   fi
9305 fi
9306 test -z "$NM" && NM=nm
9307
9308
9309
9310
9311
9312
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9314 printf %s "checking the name lister ($NM) interface... " >&6; }
9315 if test ${lt_cv_nm_interface+y}
9316 then :
9317   printf %s "(cached) " >&6
9318 else $as_nop
9319   lt_cv_nm_interface="BSD nm"
9320   echo "int some_variable = 0;" > conftest.$ac_ext
9321   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9322   (eval "$ac_compile" 2>conftest.err)
9323   cat conftest.err >&5
9324   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9325   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9326   cat conftest.err >&5
9327   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9328   cat conftest.out >&5
9329   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9330     lt_cv_nm_interface="MS dumpbin"
9331   fi
9332   rm -f conftest*
9333 fi
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9335 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9336
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9338 printf %s "checking whether ln -s works... " >&6; }
9339 LN_S=$as_ln_s
9340 if test "$LN_S" = "ln -s"; then
9341   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342 printf "%s\n" "yes" >&6; }
9343 else
9344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9345 printf "%s\n" "no, using $LN_S" >&6; }
9346 fi
9347
9348 # find the maximum length of command line arguments
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9350 printf %s "checking the maximum length of command line arguments... " >&6; }
9351 if test ${lt_cv_sys_max_cmd_len+y}
9352 then :
9353   printf %s "(cached) " >&6
9354 else $as_nop
9355     i=0
9356   teststring=ABCD
9357
9358   case $build_os in
9359   msdosdjgpp*)
9360     # On DJGPP, this test can blow up pretty badly due to problems in libc
9361     # (any single argument exceeding 2000 bytes causes a buffer overrun
9362     # during glob expansion).  Even if it were fixed, the result of this
9363     # check would be larger than it should be.
9364     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9365     ;;
9366
9367   gnu*)
9368     # Under GNU Hurd, this test is not required because there is
9369     # no limit to the length of command line arguments.
9370     # Libtool will interpret -1 as no limit whatsoever
9371     lt_cv_sys_max_cmd_len=-1;
9372     ;;
9373
9374   cygwin* | mingw* | cegcc*)
9375     # On Win9x/ME, this test blows up -- it succeeds, but takes
9376     # about 5 minutes as the teststring grows exponentially.
9377     # Worse, since 9x/ME are not pre-emptively multitasking,
9378     # you end up with a "frozen" computer, even though with patience
9379     # the test eventually succeeds (with a max line length of 256k).
9380     # Instead, let's just punt: use the minimum linelength reported by
9381     # all of the supported platforms: 8192 (on NT/2K/XP).
9382     lt_cv_sys_max_cmd_len=8192;
9383     ;;
9384
9385   mint*)
9386     # On MiNT this can take a long time and run out of memory.
9387     lt_cv_sys_max_cmd_len=8192;
9388     ;;
9389
9390   amigaos*)
9391     # On AmigaOS with pdksh, this test takes hours, literally.
9392     # So we just punt and use a minimum line length of 8192.
9393     lt_cv_sys_max_cmd_len=8192;
9394     ;;
9395
9396   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9397     # This has been around since 386BSD, at least.  Likely further.
9398     if test -x /sbin/sysctl; then
9399       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9400     elif test -x /usr/sbin/sysctl; then
9401       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9402     else
9403       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9404     fi
9405     # And add a safety zone
9406     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9407     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9408     ;;
9409
9410   interix*)
9411     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9412     lt_cv_sys_max_cmd_len=196608
9413     ;;
9414
9415   os2*)
9416     # The test takes a long time on OS/2.
9417     lt_cv_sys_max_cmd_len=8192
9418     ;;
9419
9420   osf*)
9421     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9422     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9423     # nice to cause kernel panics so lets avoid the loop below.
9424     # First set a reasonable default.
9425     lt_cv_sys_max_cmd_len=16384
9426     #
9427     if test -x /sbin/sysconfig; then
9428       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9429         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9430       esac
9431     fi
9432     ;;
9433   sco3.2v5*)
9434     lt_cv_sys_max_cmd_len=102400
9435     ;;
9436   sysv5* | sco5v6* | sysv4.2uw2*)
9437     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9438     if test -n "$kargmax"; then
9439       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9440     else
9441       lt_cv_sys_max_cmd_len=32768
9442     fi
9443     ;;
9444   *)
9445     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9446     if test -n "$lt_cv_sys_max_cmd_len" && \
9447        test undefined != "$lt_cv_sys_max_cmd_len"; then
9448       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9449       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9450     else
9451       # Make teststring a little bigger before we do anything with it.
9452       # a 1K string should be a reasonable start.
9453       for i in 1 2 3 4 5 6 7 8; do
9454         teststring=$teststring$teststring
9455       done
9456       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9457       # If test is not a shell built-in, we'll probably end up computing a
9458       # maximum length that is only half of the actual maximum length, but
9459       # we can't tell.
9460       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9461                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9462               test 17 != "$i" # 1/2 MB should be enough
9463       do
9464         i=`expr $i + 1`
9465         teststring=$teststring$teststring
9466       done
9467       # Only check the string length outside the loop.
9468       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9469       teststring=
9470       # Add a significant safety factor because C++ compilers can tack on
9471       # massive amounts of additional arguments before passing them to the
9472       # linker.  It appears as though 1/2 is a usable value.
9473       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9474     fi
9475     ;;
9476   esac
9477
9478 fi
9479
9480 if test -n "$lt_cv_sys_max_cmd_len"; then
9481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9482 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9483 else
9484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9485 printf "%s\n" "none" >&6; }
9486 fi
9487 max_cmd_len=$lt_cv_sys_max_cmd_len
9488
9489
9490
9491
9492
9493
9494 : ${CP="cp -f"}
9495 : ${MV="mv -f"}
9496 : ${RM="rm -f"}
9497
9498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9499   lt_unset=unset
9500 else
9501   lt_unset=false
9502 fi
9503
9504
9505
9506
9507
9508 # test EBCDIC or ASCII
9509 case `echo X|tr X '\101'` in
9510  A) # ASCII based system
9511     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9512   lt_SP2NL='tr \040 \012'
9513   lt_NL2SP='tr \015\012 \040\040'
9514   ;;
9515  *) # EBCDIC based system
9516   lt_SP2NL='tr \100 \n'
9517   lt_NL2SP='tr \r\n \100\100'
9518   ;;
9519 esac
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9530 printf %s "checking how to convert $build file names to $host format... " >&6; }
9531 if test ${lt_cv_to_host_file_cmd+y}
9532 then :
9533   printf %s "(cached) " >&6
9534 else $as_nop
9535   case $host in
9536   *-*-mingw* )
9537     case $build in
9538       *-*-mingw* ) # actually msys
9539         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9540         ;;
9541       *-*-cygwin* )
9542         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9543         ;;
9544       * ) # otherwise, assume *nix
9545         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9546         ;;
9547     esac
9548     ;;
9549   *-*-cygwin* )
9550     case $build in
9551       *-*-mingw* ) # actually msys
9552         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9553         ;;
9554       *-*-cygwin* )
9555         lt_cv_to_host_file_cmd=func_convert_file_noop
9556         ;;
9557       * ) # otherwise, assume *nix
9558         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9559         ;;
9560     esac
9561     ;;
9562   * ) # unhandled hosts (and "normal" native builds)
9563     lt_cv_to_host_file_cmd=func_convert_file_noop
9564     ;;
9565 esac
9566
9567 fi
9568
9569 to_host_file_cmd=$lt_cv_to_host_file_cmd
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9571 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9572
9573
9574
9575
9576
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9578 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9579 if test ${lt_cv_to_tool_file_cmd+y}
9580 then :
9581   printf %s "(cached) " >&6
9582 else $as_nop
9583   #assume ordinary cross tools, or native build.
9584 lt_cv_to_tool_file_cmd=func_convert_file_noop
9585 case $host in
9586   *-*-mingw* )
9587     case $build in
9588       *-*-mingw* ) # actually msys
9589         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9590         ;;
9591     esac
9592     ;;
9593 esac
9594
9595 fi
9596
9597 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9599 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9600
9601
9602
9603
9604
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9606 printf %s "checking for $LD option to reload object files... " >&6; }
9607 if test ${lt_cv_ld_reload_flag+y}
9608 then :
9609   printf %s "(cached) " >&6
9610 else $as_nop
9611   lt_cv_ld_reload_flag='-r'
9612 fi
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9614 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9615 reload_flag=$lt_cv_ld_reload_flag
9616 case $reload_flag in
9617 "" | " "*) ;;
9618 *) reload_flag=" $reload_flag" ;;
9619 esac
9620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9621 case $host_os in
9622   cygwin* | mingw* | pw32* | cegcc*)
9623     if test yes != "$GCC"; then
9624       reload_cmds=false
9625     fi
9626     ;;
9627   darwin*)
9628     if test yes = "$GCC"; then
9629       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9630     else
9631       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9632     fi
9633     ;;
9634 esac
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 if test -n "$ac_tool_prefix"; then
9645   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9646 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 printf %s "checking for $ac_word... " >&6; }
9649 if test ${ac_cv_prog_OBJDUMP+y}
9650 then :
9651   printf %s "(cached) " >&6
9652 else $as_nop
9653   if test -n "$OBJDUMP"; then
9654   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9655 else
9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 for as_dir in $PATH
9658 do
9659   IFS=$as_save_IFS
9660   case $as_dir in #(((
9661     '') as_dir=./ ;;
9662     */) ;;
9663     *) as_dir=$as_dir/ ;;
9664   esac
9665     for ac_exec_ext in '' $ac_executable_extensions; do
9666   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9667     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9668     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9669     break 2
9670   fi
9671 done
9672   done
9673 IFS=$as_save_IFS
9674
9675 fi
9676 fi
9677 OBJDUMP=$ac_cv_prog_OBJDUMP
9678 if test -n "$OBJDUMP"; then
9679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9680 printf "%s\n" "$OBJDUMP" >&6; }
9681 else
9682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9684 fi
9685
9686
9687 fi
9688 if test -z "$ac_cv_prog_OBJDUMP"; then
9689   ac_ct_OBJDUMP=$OBJDUMP
9690   # Extract the first word of "objdump", so it can be a program name with args.
9691 set dummy objdump; ac_word=$2
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 printf %s "checking for $ac_word... " >&6; }
9694 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9695 then :
9696   printf %s "(cached) " >&6
9697 else $as_nop
9698   if test -n "$ac_ct_OBJDUMP"; then
9699   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9700 else
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704   IFS=$as_save_IFS
9705   case $as_dir in #(((
9706     '') as_dir=./ ;;
9707     */) ;;
9708     *) as_dir=$as_dir/ ;;
9709   esac
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9712     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9713     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719
9720 fi
9721 fi
9722 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9723 if test -n "$ac_ct_OBJDUMP"; then
9724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9725 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9726 else
9727   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 printf "%s\n" "no" >&6; }
9729 fi
9730
9731   if test "x$ac_ct_OBJDUMP" = x; then
9732     OBJDUMP="false"
9733   else
9734     case $cross_compiling:$ac_tool_warned in
9735 yes:)
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9738 ac_tool_warned=yes ;;
9739 esac
9740     OBJDUMP=$ac_ct_OBJDUMP
9741   fi
9742 else
9743   OBJDUMP="$ac_cv_prog_OBJDUMP"
9744 fi
9745
9746 test -z "$OBJDUMP" && OBJDUMP=objdump
9747
9748
9749
9750
9751
9752
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9754 printf %s "checking how to recognize dependent libraries... " >&6; }
9755 if test ${lt_cv_deplibs_check_method+y}
9756 then :
9757   printf %s "(cached) " >&6
9758 else $as_nop
9759   lt_cv_file_magic_cmd='$MAGIC_CMD'
9760 lt_cv_file_magic_test_file=
9761 lt_cv_deplibs_check_method='unknown'
9762 # Need to set the preceding variable on all platforms that support
9763 # interlibrary dependencies.
9764 # 'none' -- dependencies not supported.
9765 # 'unknown' -- same as none, but documents that we really don't know.
9766 # 'pass_all' -- all dependencies passed with no checks.
9767 # 'test_compile' -- check by making test program.
9768 # 'file_magic [[regex]]' -- check by looking for files in library path
9769 # that responds to the $file_magic_cmd with a given extended regex.
9770 # If you have 'file' or equivalent on your system and you're not sure
9771 # whether 'pass_all' will *always* work, you probably want this one.
9772
9773 case $host_os in
9774 aix[4-9]*)
9775   lt_cv_deplibs_check_method=pass_all
9776   ;;
9777
9778 beos*)
9779   lt_cv_deplibs_check_method=pass_all
9780   ;;
9781
9782 bsdi[45]*)
9783   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9784   lt_cv_file_magic_cmd='/usr/bin/file -L'
9785   lt_cv_file_magic_test_file=/shlib/libc.so
9786   ;;
9787
9788 cygwin*)
9789   # func_win32_libid is a shell function defined in ltmain.sh
9790   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9791   lt_cv_file_magic_cmd='func_win32_libid'
9792   ;;
9793
9794 mingw* | pw32*)
9795   # Base MSYS/MinGW do not provide the 'file' command needed by
9796   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9797   # unless we find 'file', for example because we are cross-compiling.
9798   if ( file / ) >/dev/null 2>&1; then
9799     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9800     lt_cv_file_magic_cmd='func_win32_libid'
9801   else
9802     # Keep this pattern in sync with the one in func_win32_libid.
9803     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9804     lt_cv_file_magic_cmd='$OBJDUMP -f'
9805   fi
9806   ;;
9807
9808 cegcc*)
9809   # use the weaker test based on 'objdump'. See mingw*.
9810   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9811   lt_cv_file_magic_cmd='$OBJDUMP -f'
9812   ;;
9813
9814 darwin* | rhapsody*)
9815   lt_cv_deplibs_check_method=pass_all
9816   ;;
9817
9818 freebsd* | dragonfly*)
9819   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9820     case $host_cpu in
9821     i*86 )
9822       # Not sure whether the presence of OpenBSD here was a mistake.
9823       # Let's accept both of them until this is cleared up.
9824       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9825       lt_cv_file_magic_cmd=/usr/bin/file
9826       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9827       ;;
9828     esac
9829   else
9830     lt_cv_deplibs_check_method=pass_all
9831   fi
9832   ;;
9833
9834 haiku*)
9835   lt_cv_deplibs_check_method=pass_all
9836   ;;
9837
9838 hpux10.20* | hpux11*)
9839   lt_cv_file_magic_cmd=/usr/bin/file
9840   case $host_cpu in
9841   ia64*)
9842     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9843     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9844     ;;
9845   hppa*64*)
9846     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]'
9847     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9848     ;;
9849   *)
9850     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9851     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9852     ;;
9853   esac
9854   ;;
9855
9856 interix[3-9]*)
9857   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9858   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9859   ;;
9860
9861 irix5* | irix6* | nonstopux*)
9862   case $LD in
9863   *-32|*"-32 ") libmagic=32-bit;;
9864   *-n32|*"-n32 ") libmagic=N32;;
9865   *-64|*"-64 ") libmagic=64-bit;;
9866   *) libmagic=never-match;;
9867   esac
9868   lt_cv_deplibs_check_method=pass_all
9869   ;;
9870
9871 # This must be glibc/ELF.
9872 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9873   lt_cv_deplibs_check_method=pass_all
9874   ;;
9875
9876 netbsd* | netbsdelf*-gnu)
9877   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9878     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9879   else
9880     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9881   fi
9882   ;;
9883
9884 newos6*)
9885   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9886   lt_cv_file_magic_cmd=/usr/bin/file
9887   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9888   ;;
9889
9890 *nto* | *qnx*)
9891   lt_cv_deplibs_check_method=pass_all
9892   ;;
9893
9894 openbsd* | bitrig*)
9895   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9897   else
9898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9899   fi
9900   ;;
9901
9902 osf3* | osf4* | osf5*)
9903   lt_cv_deplibs_check_method=pass_all
9904   ;;
9905
9906 rdos*)
9907   lt_cv_deplibs_check_method=pass_all
9908   ;;
9909
9910 solaris*)
9911   lt_cv_deplibs_check_method=pass_all
9912   ;;
9913
9914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9915   lt_cv_deplibs_check_method=pass_all
9916   ;;
9917
9918 sysv4 | sysv4.3*)
9919   case $host_vendor in
9920   motorola)
9921     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]'
9922     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9923     ;;
9924   ncr)
9925     lt_cv_deplibs_check_method=pass_all
9926     ;;
9927   sequent)
9928     lt_cv_file_magic_cmd='/bin/file'
9929     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9930     ;;
9931   sni)
9932     lt_cv_file_magic_cmd='/bin/file'
9933     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9934     lt_cv_file_magic_test_file=/lib/libc.so
9935     ;;
9936   siemens)
9937     lt_cv_deplibs_check_method=pass_all
9938     ;;
9939   pc)
9940     lt_cv_deplibs_check_method=pass_all
9941     ;;
9942   esac
9943   ;;
9944
9945 tpf*)
9946   lt_cv_deplibs_check_method=pass_all
9947   ;;
9948 os2*)
9949   lt_cv_deplibs_check_method=pass_all
9950   ;;
9951 esac
9952
9953 fi
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9955 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9956
9957 file_magic_glob=
9958 want_nocaseglob=no
9959 if test "$build" = "$host"; then
9960   case $host_os in
9961   mingw* | pw32*)
9962     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9963       want_nocaseglob=yes
9964     else
9965       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9966     fi
9967     ;;
9968   esac
9969 fi
9970
9971 file_magic_cmd=$lt_cv_file_magic_cmd
9972 deplibs_check_method=$lt_cv_deplibs_check_method
9973 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996 if test -n "$ac_tool_prefix"; then
9997   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 printf %s "checking for $ac_word... " >&6; }
10001 if test ${ac_cv_prog_DLLTOOL+y}
10002 then :
10003   printf %s "(cached) " >&6
10004 else $as_nop
10005   if test -n "$DLLTOOL"; then
10006   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10007 else
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011   IFS=$as_save_IFS
10012   case $as_dir in #(((
10013     '') as_dir=./ ;;
10014     */) ;;
10015     *) as_dir=$as_dir/ ;;
10016   esac
10017     for ac_exec_ext in '' $ac_executable_extensions; do
10018   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10019     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10020     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10021     break 2
10022   fi
10023 done
10024   done
10025 IFS=$as_save_IFS
10026
10027 fi
10028 fi
10029 DLLTOOL=$ac_cv_prog_DLLTOOL
10030 if test -n "$DLLTOOL"; then
10031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10032 printf "%s\n" "$DLLTOOL" >&6; }
10033 else
10034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 printf "%s\n" "no" >&6; }
10036 fi
10037
10038
10039 fi
10040 if test -z "$ac_cv_prog_DLLTOOL"; then
10041   ac_ct_DLLTOOL=$DLLTOOL
10042   # Extract the first word of "dlltool", so it can be a program name with args.
10043 set dummy dlltool; ac_word=$2
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 printf %s "checking for $ac_word... " >&6; }
10046 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10047 then :
10048   printf %s "(cached) " >&6
10049 else $as_nop
10050   if test -n "$ac_ct_DLLTOOL"; then
10051   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056   IFS=$as_save_IFS
10057   case $as_dir in #(((
10058     '') as_dir=./ ;;
10059     */) ;;
10060     *) as_dir=$as_dir/ ;;
10061   esac
10062     for ac_exec_ext in '' $ac_executable_extensions; do
10063   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10064     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10065     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10066     break 2
10067   fi
10068 done
10069   done
10070 IFS=$as_save_IFS
10071
10072 fi
10073 fi
10074 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10075 if test -n "$ac_ct_DLLTOOL"; then
10076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10077 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10078 else
10079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 printf "%s\n" "no" >&6; }
10081 fi
10082
10083   if test "x$ac_ct_DLLTOOL" = x; then
10084     DLLTOOL="false"
10085   else
10086     case $cross_compiling:$ac_tool_warned in
10087 yes:)
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10091 esac
10092     DLLTOOL=$ac_ct_DLLTOOL
10093   fi
10094 else
10095   DLLTOOL="$ac_cv_prog_DLLTOOL"
10096 fi
10097
10098 test -z "$DLLTOOL" && DLLTOOL=dlltool
10099
10100
10101
10102
10103
10104
10105
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10107 printf %s "checking how to associate runtime and link libraries... " >&6; }
10108 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10109 then :
10110   printf %s "(cached) " >&6
10111 else $as_nop
10112   lt_cv_sharedlib_from_linklib_cmd='unknown'
10113
10114 case $host_os in
10115 cygwin* | mingw* | pw32* | cegcc*)
10116   # two different shell functions defined in ltmain.sh;
10117   # decide which one to use based on capabilities of $DLLTOOL
10118   case `$DLLTOOL --help 2>&1` in
10119   *--identify-strict*)
10120     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10121     ;;
10122   *)
10123     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10124     ;;
10125   esac
10126   ;;
10127 *)
10128   # fallback: assume linklib IS sharedlib
10129   lt_cv_sharedlib_from_linklib_cmd=$ECHO
10130   ;;
10131 esac
10132
10133 fi
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10135 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10136 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10137 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10138
10139
10140
10141
10142
10143
10144
10145 if test -n "$ac_tool_prefix"; then
10146   for ac_prog in ar
10147   do
10148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 printf %s "checking for $ac_word... " >&6; }
10152 if test ${ac_cv_prog_AR+y}
10153 then :
10154   printf %s "(cached) " >&6
10155 else $as_nop
10156   if test -n "$AR"; then
10157   ac_cv_prog_AR="$AR" # Let the user override the test.
10158 else
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10161 do
10162   IFS=$as_save_IFS
10163   case $as_dir in #(((
10164     '') as_dir=./ ;;
10165     */) ;;
10166     *) as_dir=$as_dir/ ;;
10167   esac
10168     for ac_exec_ext in '' $ac_executable_extensions; do
10169   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10170     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10171     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175   done
10176 IFS=$as_save_IFS
10177
10178 fi
10179 fi
10180 AR=$ac_cv_prog_AR
10181 if test -n "$AR"; then
10182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10183 printf "%s\n" "$AR" >&6; }
10184 else
10185   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 printf "%s\n" "no" >&6; }
10187 fi
10188
10189
10190     test -n "$AR" && break
10191   done
10192 fi
10193 if test -z "$AR"; then
10194   ac_ct_AR=$AR
10195   for ac_prog in ar
10196 do
10197   # Extract the first word of "$ac_prog", so it can be a program name with args.
10198 set dummy $ac_prog; ac_word=$2
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 printf %s "checking for $ac_word... " >&6; }
10201 if test ${ac_cv_prog_ac_ct_AR+y}
10202 then :
10203   printf %s "(cached) " >&6
10204 else $as_nop
10205   if test -n "$ac_ct_AR"; then
10206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211   IFS=$as_save_IFS
10212   case $as_dir in #(((
10213     '') as_dir=./ ;;
10214     */) ;;
10215     *) as_dir=$as_dir/ ;;
10216   esac
10217     for ac_exec_ext in '' $ac_executable_extensions; do
10218   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10219     ac_cv_prog_ac_ct_AR="$ac_prog"
10220     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10221     break 2
10222   fi
10223 done
10224   done
10225 IFS=$as_save_IFS
10226
10227 fi
10228 fi
10229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10230 if test -n "$ac_ct_AR"; then
10231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10232 printf "%s\n" "$ac_ct_AR" >&6; }
10233 else
10234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 printf "%s\n" "no" >&6; }
10236 fi
10237
10238
10239   test -n "$ac_ct_AR" && break
10240 done
10241
10242   if test "x$ac_ct_AR" = x; then
10243     AR="false"
10244   else
10245     case $cross_compiling:$ac_tool_warned in
10246 yes:)
10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned=yes ;;
10250 esac
10251     AR=$ac_ct_AR
10252   fi
10253 fi
10254
10255 : ${AR=ar}
10256 : ${AR_FLAGS=cr}
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10269 printf %s "checking for archiver @FILE support... " >&6; }
10270 if test ${lt_cv_ar_at_file+y}
10271 then :
10272   printf %s "(cached) " >&6
10273 else $as_nop
10274   lt_cv_ar_at_file=no
10275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h.  */
10277
10278 int
10279 main (void)
10280 {
10281
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 if ac_fn_c_try_compile "$LINENO"
10287 then :
10288   echo conftest.$ac_objext > conftest.lst
10289       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10290       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10291   (eval $lt_ar_try) 2>&5
10292   ac_status=$?
10293   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294   test $ac_status = 0; }
10295       if test 0 -eq "$ac_status"; then
10296         # Ensure the archiver fails upon bogus file names.
10297         rm -f conftest.$ac_objext libconftest.a
10298         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10299   (eval $lt_ar_try) 2>&5
10300   ac_status=$?
10301   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10302   test $ac_status = 0; }
10303         if test 0 -ne "$ac_status"; then
10304           lt_cv_ar_at_file=@
10305         fi
10306       fi
10307       rm -f conftest.* libconftest.a
10308
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10311
10312 fi
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10314 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10315
10316 if test no = "$lt_cv_ar_at_file"; then
10317   archiver_list_spec=
10318 else
10319   archiver_list_spec=$lt_cv_ar_at_file
10320 fi
10321
10322
10323
10324
10325
10326
10327
10328 if test -n "$ac_tool_prefix"; then
10329   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10330 set dummy ${ac_tool_prefix}strip; ac_word=$2
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 printf %s "checking for $ac_word... " >&6; }
10333 if test ${ac_cv_prog_STRIP+y}
10334 then :
10335   printf %s "(cached) " >&6
10336 else $as_nop
10337   if test -n "$STRIP"; then
10338   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10339 else
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10342 do
10343   IFS=$as_save_IFS
10344   case $as_dir in #(((
10345     '') as_dir=./ ;;
10346     */) ;;
10347     *) as_dir=$as_dir/ ;;
10348   esac
10349     for ac_exec_ext in '' $ac_executable_extensions; do
10350   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10351     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10352     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10353     break 2
10354   fi
10355 done
10356   done
10357 IFS=$as_save_IFS
10358
10359 fi
10360 fi
10361 STRIP=$ac_cv_prog_STRIP
10362 if test -n "$STRIP"; then
10363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10364 printf "%s\n" "$STRIP" >&6; }
10365 else
10366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 printf "%s\n" "no" >&6; }
10368 fi
10369
10370
10371 fi
10372 if test -z "$ac_cv_prog_STRIP"; then
10373   ac_ct_STRIP=$STRIP
10374   # Extract the first word of "strip", so it can be a program name with args.
10375 set dummy strip; ac_word=$2
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 printf %s "checking for $ac_word... " >&6; }
10378 if test ${ac_cv_prog_ac_ct_STRIP+y}
10379 then :
10380   printf %s "(cached) " >&6
10381 else $as_nop
10382   if test -n "$ac_ct_STRIP"; then
10383   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10387 do
10388   IFS=$as_save_IFS
10389   case $as_dir in #(((
10390     '') as_dir=./ ;;
10391     */) ;;
10392     *) as_dir=$as_dir/ ;;
10393   esac
10394     for ac_exec_ext in '' $ac_executable_extensions; do
10395   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10396     ac_cv_prog_ac_ct_STRIP="strip"
10397     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10398     break 2
10399   fi
10400 done
10401   done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10407 if test -n "$ac_ct_STRIP"; then
10408   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10409 printf "%s\n" "$ac_ct_STRIP" >&6; }
10410 else
10411   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 printf "%s\n" "no" >&6; }
10413 fi
10414
10415   if test "x$ac_ct_STRIP" = x; then
10416     STRIP=":"
10417   else
10418     case $cross_compiling:$ac_tool_warned in
10419 yes:)
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10422 ac_tool_warned=yes ;;
10423 esac
10424     STRIP=$ac_ct_STRIP
10425   fi
10426 else
10427   STRIP="$ac_cv_prog_STRIP"
10428 fi
10429
10430 test -z "$STRIP" && STRIP=:
10431
10432
10433
10434
10435
10436
10437 if test -n "$ac_tool_prefix"; then
10438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 printf %s "checking for $ac_word... " >&6; }
10442 if test ${ac_cv_prog_RANLIB+y}
10443 then :
10444   printf %s "(cached) " >&6
10445 else $as_nop
10446   if test -n "$RANLIB"; then
10447   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452   IFS=$as_save_IFS
10453   case $as_dir in #(((
10454     '') as_dir=./ ;;
10455     */) ;;
10456     *) as_dir=$as_dir/ ;;
10457   esac
10458     for ac_exec_ext in '' $ac_executable_extensions; do
10459   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10461     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10462     break 2
10463   fi
10464 done
10465   done
10466 IFS=$as_save_IFS
10467
10468 fi
10469 fi
10470 RANLIB=$ac_cv_prog_RANLIB
10471 if test -n "$RANLIB"; then
10472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10473 printf "%s\n" "$RANLIB" >&6; }
10474 else
10475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 printf "%s\n" "no" >&6; }
10477 fi
10478
10479
10480 fi
10481 if test -z "$ac_cv_prog_RANLIB"; then
10482   ac_ct_RANLIB=$RANLIB
10483   # Extract the first word of "ranlib", so it can be a program name with args.
10484 set dummy ranlib; ac_word=$2
10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 printf %s "checking for $ac_word... " >&6; }
10487 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10488 then :
10489   printf %s "(cached) " >&6
10490 else $as_nop
10491   if test -n "$ac_ct_RANLIB"; then
10492   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10493 else
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10496 do
10497   IFS=$as_save_IFS
10498   case $as_dir in #(((
10499     '') as_dir=./ ;;
10500     */) ;;
10501     *) as_dir=$as_dir/ ;;
10502   esac
10503     for ac_exec_ext in '' $ac_executable_extensions; do
10504   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10505     ac_cv_prog_ac_ct_RANLIB="ranlib"
10506     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10507     break 2
10508   fi
10509 done
10510   done
10511 IFS=$as_save_IFS
10512
10513 fi
10514 fi
10515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10516 if test -n "$ac_ct_RANLIB"; then
10517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10518 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10519 else
10520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 printf "%s\n" "no" >&6; }
10522 fi
10523
10524   if test "x$ac_ct_RANLIB" = x; then
10525     RANLIB=":"
10526   else
10527     case $cross_compiling:$ac_tool_warned in
10528 yes:)
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10531 ac_tool_warned=yes ;;
10532 esac
10533     RANLIB=$ac_ct_RANLIB
10534   fi
10535 else
10536   RANLIB="$ac_cv_prog_RANLIB"
10537 fi
10538
10539 test -z "$RANLIB" && RANLIB=:
10540
10541
10542
10543
10544
10545
10546 # Determine commands to create old-style static archives.
10547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10548 old_postinstall_cmds='chmod 644 $oldlib'
10549 old_postuninstall_cmds=
10550
10551 if test -n "$RANLIB"; then
10552   case $host_os in
10553   bitrig* | openbsd*)
10554     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10555     ;;
10556   *)
10557     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10558     ;;
10559   esac
10560   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10561 fi
10562
10563 case $host_os in
10564   darwin*)
10565     lock_old_archive_extraction=yes ;;
10566   *)
10567     lock_old_archive_extraction=no ;;
10568 esac
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608 # If no C compiler was specified, use CC.
10609 LTCC=${LTCC-"$CC"}
10610
10611 # If no C compiler flags were specified, use CFLAGS.
10612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10613
10614 # Allow CC to be a program name with arguments.
10615 compiler=$CC
10616
10617
10618 # Check for command to grab the raw symbol name followed by C symbol from nm.
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10620 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10621 if test ${lt_cv_sys_global_symbol_pipe+y}
10622 then :
10623   printf %s "(cached) " >&6
10624 else $as_nop
10625
10626 # These are sane defaults that work on at least a few old systems.
10627 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10628
10629 # Character class describing NM global symbol codes.
10630 symcode='[BCDEGRST]'
10631
10632 # Regexp to match symbols that can be accessed directly from C.
10633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10634
10635 # Define system-specific variables.
10636 case $host_os in
10637 aix*)
10638   symcode='[BCDT]'
10639   ;;
10640 cygwin* | mingw* | pw32* | cegcc*)
10641   symcode='[ABCDGISTW]'
10642   ;;
10643 hpux*)
10644   if test ia64 = "$host_cpu"; then
10645     symcode='[ABCDEGRST]'
10646   fi
10647   ;;
10648 irix* | nonstopux*)
10649   symcode='[BCDEGRST]'
10650   ;;
10651 osf*)
10652   symcode='[BCDEGQRST]'
10653   ;;
10654 solaris*)
10655   symcode='[BDRT]'
10656   ;;
10657 sco3.2v5*)
10658   symcode='[DT]'
10659   ;;
10660 sysv4.2uw2*)
10661   symcode='[DT]'
10662   ;;
10663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10664   symcode='[ABDT]'
10665   ;;
10666 sysv4)
10667   symcode='[DFNSTU]'
10668   ;;
10669 esac
10670
10671 # If we're using GNU nm, then use its standard symbol codes.
10672 case `$NM -V 2>&1` in
10673 *GNU* | *'with BFD'*)
10674   symcode='[ABCDGIRSTW]' ;;
10675 esac
10676
10677 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10678   # Gets list of data symbols to import.
10679   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10680   # Adjust the below global symbol transforms to fixup imported variables.
10681   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10682   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10683   lt_c_name_lib_hook="\
10684   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10685   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10686 else
10687   # Disable hooks by default.
10688   lt_cv_sys_global_symbol_to_import=
10689   lt_cdecl_hook=
10690   lt_c_name_hook=
10691   lt_c_name_lib_hook=
10692 fi
10693
10694 # Transform an extracted symbol line into a proper C declaration.
10695 # Some systems (esp. on ia64) link data and code symbols differently,
10696 # so use this general approach.
10697 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10698 $lt_cdecl_hook\
10699 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10700 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10701
10702 # Transform an extracted symbol line into symbol name and symbol address
10703 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10704 $lt_c_name_hook\
10705 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10706 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10707
10708 # Transform an extracted symbol line into symbol name with lib prefix and
10709 # symbol address.
10710 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10711 $lt_c_name_lib_hook\
10712 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10713 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10714 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10715
10716 # Handle CRLF in mingw tool chain
10717 opt_cr=
10718 case $build_os in
10719 mingw*)
10720   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10721   ;;
10722 esac
10723
10724 # Try without a prefix underscore, then with it.
10725 for ac_symprfx in "" "_"; do
10726
10727   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10728   symxfrm="\\1 $ac_symprfx\\2 \\2"
10729
10730   # Write the raw and C identifiers.
10731   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10732     # Fake it for dumpbin and say T for any non-static function,
10733     # D for any global variable and I for any imported variable.
10734     # Also find C++ and __fastcall symbols from MSVC++,
10735     # which start with @ or ?.
10736     lt_cv_sys_global_symbol_pipe="$AWK '"\
10737 "     {last_section=section; section=\$ 3};"\
10738 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10739 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10740 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10741 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10742 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10743 "     \$ 0!~/External *\|/{next};"\
10744 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10745 "     {if(hide[section]) next};"\
10746 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10747 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10748 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10749 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10750 "     ' prfx=^$ac_symprfx"
10751   else
10752     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10753   fi
10754   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10755
10756   # Check to see that the pipe works correctly.
10757   pipe_works=no
10758
10759   rm -f conftest*
10760   cat > conftest.$ac_ext <<_LT_EOF
10761 #ifdef __cplusplus
10762 extern "C" {
10763 #endif
10764 char nm_test_var;
10765 void nm_test_func(void);
10766 void nm_test_func(void){}
10767 #ifdef __cplusplus
10768 }
10769 #endif
10770 int main(){nm_test_var='a';nm_test_func();return(0);}
10771 _LT_EOF
10772
10773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10774   (eval $ac_compile) 2>&5
10775   ac_status=$?
10776   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10777   test $ac_status = 0; }; then
10778     # Now try to grab the symbols.
10779     nlist=conftest.nm
10780     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10781     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10782       # Try sorting and uniquifying the output.
10783       if sort "$nlist" | uniq > "$nlist"T; then
10784         mv -f "$nlist"T "$nlist"
10785       else
10786         rm -f "$nlist"T
10787       fi
10788
10789       # Make sure that we snagged all the symbols we need.
10790       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10791         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10792           cat <<_LT_EOF > conftest.$ac_ext
10793 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10794 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10795 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10796    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10797 # define LT_DLSYM_CONST
10798 #elif defined __osf__
10799 /* This system does not cope well with relocations in const data.  */
10800 # define LT_DLSYM_CONST
10801 #else
10802 # define LT_DLSYM_CONST const
10803 #endif
10804
10805 #ifdef __cplusplus
10806 extern "C" {
10807 #endif
10808
10809 _LT_EOF
10810           # Now generate the symbol file.
10811           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10812
10813           cat <<_LT_EOF >> conftest.$ac_ext
10814
10815 /* The mapping between symbol names and symbols.  */
10816 LT_DLSYM_CONST struct {
10817   const char *name;
10818   void       *address;
10819 }
10820 lt__PROGRAM__LTX_preloaded_symbols[] =
10821 {
10822   { "@PROGRAM@", (void *) 0 },
10823 _LT_EOF
10824           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10825           cat <<\_LT_EOF >> conftest.$ac_ext
10826   {0, (void *) 0}
10827 };
10828
10829 /* This works around a problem in FreeBSD linker */
10830 #ifdef FREEBSD_WORKAROUND
10831 static const void *lt_preloaded_setup() {
10832   return lt__PROGRAM__LTX_preloaded_symbols;
10833 }
10834 #endif
10835
10836 #ifdef __cplusplus
10837 }
10838 #endif
10839 _LT_EOF
10840           # Now try linking the two files.
10841           mv conftest.$ac_objext conftstm.$ac_objext
10842           lt_globsym_save_LIBS=$LIBS
10843           lt_globsym_save_CFLAGS=$CFLAGS
10844           LIBS=conftstm.$ac_objext
10845           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10846           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847   (eval $ac_link) 2>&5
10848   ac_status=$?
10849   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10851             pipe_works=yes
10852           fi
10853           LIBS=$lt_globsym_save_LIBS
10854           CFLAGS=$lt_globsym_save_CFLAGS
10855         else
10856           echo "cannot find nm_test_func in $nlist" >&5
10857         fi
10858       else
10859         echo "cannot find nm_test_var in $nlist" >&5
10860       fi
10861     else
10862       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10863     fi
10864   else
10865     echo "$progname: failed program was:" >&5
10866     cat conftest.$ac_ext >&5
10867   fi
10868   rm -rf conftest* conftst*
10869
10870   # Do not use the global_symbol_pipe unless it works.
10871   if test yes = "$pipe_works"; then
10872     break
10873   else
10874     lt_cv_sys_global_symbol_pipe=
10875   fi
10876 done
10877
10878 fi
10879
10880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10881   lt_cv_sys_global_symbol_to_cdecl=
10882 fi
10883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10885 printf "%s\n" "failed" >&6; }
10886 else
10887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10888 printf "%s\n" "ok" >&6; }
10889 fi
10890
10891 # Response file support.
10892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10893   nm_file_list_spec='@'
10894 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10895   nm_file_list_spec='@'
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10935 printf %s "checking for sysroot... " >&6; }
10936
10937 # Check whether --with-sysroot was given.
10938 if test ${with_sysroot+y}
10939 then :
10940   withval=$with_sysroot;
10941 else $as_nop
10942   with_sysroot=no
10943 fi
10944
10945
10946 lt_sysroot=
10947 case $with_sysroot in #(
10948  yes)
10949    if test yes = "$GCC"; then
10950      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10951    fi
10952    ;; #(
10953  /*)
10954    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10955    ;; #(
10956  no|'')
10957    ;; #(
10958  *)
10959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10960 printf "%s\n" "$with_sysroot" >&6; }
10961    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10962    ;;
10963 esac
10964
10965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10966 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10967
10968
10969
10970
10971
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10973 printf %s "checking for a working dd... " >&6; }
10974 if test ${ac_cv_path_lt_DD+y}
10975 then :
10976   printf %s "(cached) " >&6
10977 else $as_nop
10978   printf 0123456789abcdef0123456789abcdef >conftest.i
10979 cat conftest.i conftest.i >conftest2.i
10980 : ${lt_DD:=$DD}
10981 if test -z "$lt_DD"; then
10982   ac_path_lt_DD_found=false
10983   # Loop through the user's path and test for each of PROGNAME-LIST
10984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   case $as_dir in #(((
10989     '') as_dir=./ ;;
10990     */) ;;
10991     *) as_dir=$as_dir/ ;;
10992   esac
10993     for ac_prog in dd
10994    do
10995     for ac_exec_ext in '' $ac_executable_extensions; do
10996       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10997       as_fn_executable_p "$ac_path_lt_DD" || continue
10998 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10999   cmp -s conftest.i conftest.out \
11000   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11001 fi
11002       $ac_path_lt_DD_found && break 3
11003     done
11004   done
11005   done
11006 IFS=$as_save_IFS
11007   if test -z "$ac_cv_path_lt_DD"; then
11008     :
11009   fi
11010 else
11011   ac_cv_path_lt_DD=$lt_DD
11012 fi
11013
11014 rm -f conftest.i conftest2.i conftest.out
11015 fi
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11017 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11018
11019
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11021 printf %s "checking how to truncate binary pipes... " >&6; }
11022 if test ${lt_cv_truncate_bin+y}
11023 then :
11024   printf %s "(cached) " >&6
11025 else $as_nop
11026   printf 0123456789abcdef0123456789abcdef >conftest.i
11027 cat conftest.i conftest.i >conftest2.i
11028 lt_cv_truncate_bin=
11029 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11030   cmp -s conftest.i conftest.out \
11031   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11032 fi
11033 rm -f conftest.i conftest2.i conftest.out
11034 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11035 fi
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11037 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11038
11039
11040
11041
11042
11043
11044
11045 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11046 func_cc_basename ()
11047 {
11048     for cc_temp in $*""; do
11049       case $cc_temp in
11050         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11051         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11052         \-*) ;;
11053         *) break;;
11054       esac
11055     done
11056     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11057 }
11058
11059 # Check whether --enable-libtool-lock was given.
11060 if test ${enable_libtool_lock+y}
11061 then :
11062   enableval=$enable_libtool_lock;
11063 fi
11064
11065 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11066
11067 # Some flags need to be propagated to the compiler or linker for good
11068 # libtool support.
11069 case $host in
11070 ia64-*-hpux*)
11071   # Find out what ABI is being produced by ac_compile, and set mode
11072   # options accordingly.
11073   echo 'int i;' > conftest.$ac_ext
11074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11075   (eval $ac_compile) 2>&5
11076   ac_status=$?
11077   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078   test $ac_status = 0; }; then
11079     case `/usr/bin/file conftest.$ac_objext` in
11080       *ELF-32*)
11081         HPUX_IA64_MODE=32
11082         ;;
11083       *ELF-64*)
11084         HPUX_IA64_MODE=64
11085         ;;
11086     esac
11087   fi
11088   rm -rf conftest*
11089   ;;
11090 *-*-irix6*)
11091   # Find out what ABI is being produced by ac_compile, and set linker
11092   # options accordingly.
11093   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11095   (eval $ac_compile) 2>&5
11096   ac_status=$?
11097   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098   test $ac_status = 0; }; then
11099     if test yes = "$lt_cv_prog_gnu_ld"; then
11100       case `/usr/bin/file conftest.$ac_objext` in
11101         *32-bit*)
11102           LD="${LD-ld} -melf32bsmip"
11103           ;;
11104         *N32*)
11105           LD="${LD-ld} -melf32bmipn32"
11106           ;;
11107         *64-bit*)
11108           LD="${LD-ld} -melf64bmip"
11109         ;;
11110       esac
11111     else
11112       case `/usr/bin/file conftest.$ac_objext` in
11113         *32-bit*)
11114           LD="${LD-ld} -32"
11115           ;;
11116         *N32*)
11117           LD="${LD-ld} -n32"
11118           ;;
11119         *64-bit*)
11120           LD="${LD-ld} -64"
11121           ;;
11122       esac
11123     fi
11124   fi
11125   rm -rf conftest*
11126   ;;
11127
11128 mips64*-*linux*)
11129   # Find out what ABI is being produced by ac_compile, and set linker
11130   # options accordingly.
11131   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11132   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11133   (eval $ac_compile) 2>&5
11134   ac_status=$?
11135   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11136   test $ac_status = 0; }; then
11137     emul=elf
11138     case `/usr/bin/file conftest.$ac_objext` in
11139       *32-bit*)
11140         emul="${emul}32"
11141         ;;
11142       *64-bit*)
11143         emul="${emul}64"
11144         ;;
11145     esac
11146     case `/usr/bin/file conftest.$ac_objext` in
11147       *MSB*)
11148         emul="${emul}btsmip"
11149         ;;
11150       *LSB*)
11151         emul="${emul}ltsmip"
11152         ;;
11153     esac
11154     case `/usr/bin/file conftest.$ac_objext` in
11155       *N32*)
11156         emul="${emul}n32"
11157         ;;
11158     esac
11159     LD="${LD-ld} -m $emul"
11160   fi
11161   rm -rf conftest*
11162   ;;
11163
11164 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11165 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11166   # Find out what ABI is being produced by ac_compile, and set linker
11167   # options accordingly.  Note that the listed cases only cover the
11168   # situations where additional linker options are needed (such as when
11169   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11170   # vice versa); the common cases where no linker options are needed do
11171   # not appear in the list.
11172   echo 'int i;' > conftest.$ac_ext
11173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11174   (eval $ac_compile) 2>&5
11175   ac_status=$?
11176   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177   test $ac_status = 0; }; then
11178     case `/usr/bin/file conftest.o` in
11179       *32-bit*)
11180         case $host in
11181           x86_64-*kfreebsd*-gnu)
11182             LD="${LD-ld} -m elf_i386_fbsd"
11183             ;;
11184           x86_64-*linux*)
11185             case `/usr/bin/file conftest.o` in
11186               *x86-64*)
11187                 LD="${LD-ld} -m elf32_x86_64"
11188                 ;;
11189               *)
11190                 LD="${LD-ld} -m elf_i386"
11191                 ;;
11192             esac
11193             ;;
11194           powerpc64le-*linux*)
11195             LD="${LD-ld} -m elf32lppclinux"
11196             ;;
11197           powerpc64-*linux*)
11198             LD="${LD-ld} -m elf32ppclinux"
11199             ;;
11200           s390x-*linux*)
11201             LD="${LD-ld} -m elf_s390"
11202             ;;
11203           sparc64-*linux*)
11204             LD="${LD-ld} -m elf32_sparc"
11205             ;;
11206         esac
11207         ;;
11208       *64-bit*)
11209         case $host in
11210           x86_64-*kfreebsd*-gnu)
11211             LD="${LD-ld} -m elf_x86_64_fbsd"
11212             ;;
11213           x86_64-*linux*)
11214             LD="${LD-ld} -m elf_x86_64"
11215             ;;
11216           powerpcle-*linux*)
11217             LD="${LD-ld} -m elf64lppc"
11218             ;;
11219           powerpc-*linux*)
11220             LD="${LD-ld} -m elf64ppc"
11221             ;;
11222           s390*-*linux*|s390*-*tpf*)
11223             LD="${LD-ld} -m elf64_s390"
11224             ;;
11225           sparc*-*linux*)
11226             LD="${LD-ld} -m elf64_sparc"
11227             ;;
11228         esac
11229         ;;
11230     esac
11231   fi
11232   rm -rf conftest*
11233   ;;
11234
11235 *-*-sco3.2v5*)
11236   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11237   SAVE_CFLAGS=$CFLAGS
11238   CFLAGS="$CFLAGS -belf"
11239   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11240 printf %s "checking whether the C compiler needs -belf... " >&6; }
11241 if test ${lt_cv_cc_needs_belf+y}
11242 then :
11243   printf %s "(cached) " >&6
11244 else $as_nop
11245   ac_ext=c
11246 ac_cpp='$CPP $CPPFLAGS'
11247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11250
11251      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253
11254 int
11255 main (void)
11256 {
11257
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"
11263 then :
11264   lt_cv_cc_needs_belf=yes
11265 else $as_nop
11266   lt_cv_cc_needs_belf=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269     conftest$ac_exeext conftest.$ac_ext
11270      ac_ext=c
11271 ac_cpp='$CPP $CPPFLAGS'
11272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11275
11276 fi
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11278 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11279   if test yes != "$lt_cv_cc_needs_belf"; then
11280     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11281     CFLAGS=$SAVE_CFLAGS
11282   fi
11283   ;;
11284 *-*solaris*)
11285   # Find out what ABI is being produced by ac_compile, and set linker
11286   # options accordingly.
11287   echo 'int i;' > conftest.$ac_ext
11288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11289   (eval $ac_compile) 2>&5
11290   ac_status=$?
11291   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292   test $ac_status = 0; }; then
11293     case `/usr/bin/file conftest.o` in
11294     *64-bit*)
11295       case $lt_cv_prog_gnu_ld in
11296       yes*)
11297         case $host in
11298         i?86-*-solaris*|x86_64-*-solaris*)
11299           LD="${LD-ld} -m elf_x86_64"
11300           ;;
11301         sparc*-*-solaris*)
11302           LD="${LD-ld} -m elf64_sparc"
11303           ;;
11304         esac
11305         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11306         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11307           LD=${LD-ld}_sol2
11308         fi
11309         ;;
11310       *)
11311         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11312           LD="${LD-ld} -64"
11313         fi
11314         ;;
11315       esac
11316       ;;
11317     esac
11318   fi
11319   rm -rf conftest*
11320   ;;
11321 esac
11322
11323 need_locks=$enable_libtool_lock
11324
11325 if test -n "$ac_tool_prefix"; then
11326   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11327 set dummy ${ac_tool_prefix}mt; ac_word=$2
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 printf %s "checking for $ac_word... " >&6; }
11330 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11331 then :
11332   printf %s "(cached) " >&6
11333 else $as_nop
11334   if test -n "$MANIFEST_TOOL"; then
11335   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11336 else
11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $PATH
11339 do
11340   IFS=$as_save_IFS
11341   case $as_dir in #(((
11342     '') as_dir=./ ;;
11343     */) ;;
11344     *) as_dir=$as_dir/ ;;
11345   esac
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11348     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11349     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355
11356 fi
11357 fi
11358 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11359 if test -n "$MANIFEST_TOOL"; then
11360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11361 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11362 else
11363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 printf "%s\n" "no" >&6; }
11365 fi
11366
11367
11368 fi
11369 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11370   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11371   # Extract the first word of "mt", so it can be a program name with args.
11372 set dummy mt; ac_word=$2
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 printf %s "checking for $ac_word... " >&6; }
11375 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11376 then :
11377   printf %s "(cached) " >&6
11378 else $as_nop
11379   if test -n "$ac_ct_MANIFEST_TOOL"; then
11380   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11381 else
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11384 do
11385   IFS=$as_save_IFS
11386   case $as_dir in #(((
11387     '') as_dir=./ ;;
11388     */) ;;
11389     *) as_dir=$as_dir/ ;;
11390   esac
11391     for ac_exec_ext in '' $ac_executable_extensions; do
11392   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11393     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11394     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11395     break 2
11396   fi
11397 done
11398   done
11399 IFS=$as_save_IFS
11400
11401 fi
11402 fi
11403 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11404 if test -n "$ac_ct_MANIFEST_TOOL"; then
11405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11406 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11407 else
11408   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 printf "%s\n" "no" >&6; }
11410 fi
11411
11412   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11413     MANIFEST_TOOL=":"
11414   else
11415     case $cross_compiling:$ac_tool_warned in
11416 yes:)
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11419 ac_tool_warned=yes ;;
11420 esac
11421     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11422   fi
11423 else
11424   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11425 fi
11426
11427 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11429 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11430 if test ${lt_cv_path_mainfest_tool+y}
11431 then :
11432   printf %s "(cached) " >&6
11433 else $as_nop
11434   lt_cv_path_mainfest_tool=no
11435   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11436   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11437   cat conftest.err >&5
11438   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11439     lt_cv_path_mainfest_tool=yes
11440   fi
11441   rm -f conftest*
11442 fi
11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11444 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11445 if test yes != "$lt_cv_path_mainfest_tool"; then
11446   MANIFEST_TOOL=:
11447 fi
11448
11449
11450
11451
11452
11453
11454   case $host_os in
11455     rhapsody* | darwin*)
11456     if test -n "$ac_tool_prefix"; then
11457   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 printf %s "checking for $ac_word... " >&6; }
11461 if test ${ac_cv_prog_DSYMUTIL+y}
11462 then :
11463   printf %s "(cached) " >&6
11464 else $as_nop
11465   if test -n "$DSYMUTIL"; then
11466   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11467 else
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471   IFS=$as_save_IFS
11472   case $as_dir in #(((
11473     '') as_dir=./ ;;
11474     */) ;;
11475     *) as_dir=$as_dir/ ;;
11476   esac
11477     for ac_exec_ext in '' $ac_executable_extensions; do
11478   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11479     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11480     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11481     break 2
11482   fi
11483 done
11484   done
11485 IFS=$as_save_IFS
11486
11487 fi
11488 fi
11489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11490 if test -n "$DSYMUTIL"; then
11491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11492 printf "%s\n" "$DSYMUTIL" >&6; }
11493 else
11494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 printf "%s\n" "no" >&6; }
11496 fi
11497
11498
11499 fi
11500 if test -z "$ac_cv_prog_DSYMUTIL"; then
11501   ac_ct_DSYMUTIL=$DSYMUTIL
11502   # Extract the first word of "dsymutil", so it can be a program name with args.
11503 set dummy dsymutil; ac_word=$2
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 printf %s "checking for $ac_word... " >&6; }
11506 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11507 then :
11508   printf %s "(cached) " >&6
11509 else $as_nop
11510   if test -n "$ac_ct_DSYMUTIL"; then
11511   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516   IFS=$as_save_IFS
11517   case $as_dir in #(((
11518     '') as_dir=./ ;;
11519     */) ;;
11520     *) as_dir=$as_dir/ ;;
11521   esac
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11524     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11525     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531
11532 fi
11533 fi
11534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11535 if test -n "$ac_ct_DSYMUTIL"; then
11536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11537 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11538 else
11539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 printf "%s\n" "no" >&6; }
11541 fi
11542
11543   if test "x$ac_ct_DSYMUTIL" = x; then
11544     DSYMUTIL=":"
11545   else
11546     case $cross_compiling:$ac_tool_warned in
11547 yes:)
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11550 ac_tool_warned=yes ;;
11551 esac
11552     DSYMUTIL=$ac_ct_DSYMUTIL
11553   fi
11554 else
11555   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11556 fi
11557
11558     if test -n "$ac_tool_prefix"; then
11559   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 printf %s "checking for $ac_word... " >&6; }
11563 if test ${ac_cv_prog_NMEDIT+y}
11564 then :
11565   printf %s "(cached) " >&6
11566 else $as_nop
11567   if test -n "$NMEDIT"; then
11568   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573   IFS=$as_save_IFS
11574   case $as_dir in #(((
11575     '') as_dir=./ ;;
11576     */) ;;
11577     *) as_dir=$as_dir/ ;;
11578   esac
11579     for ac_exec_ext in '' $ac_executable_extensions; do
11580   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11581     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11582     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11583     break 2
11584   fi
11585 done
11586   done
11587 IFS=$as_save_IFS
11588
11589 fi
11590 fi
11591 NMEDIT=$ac_cv_prog_NMEDIT
11592 if test -n "$NMEDIT"; then
11593   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11594 printf "%s\n" "$NMEDIT" >&6; }
11595 else
11596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 printf "%s\n" "no" >&6; }
11598 fi
11599
11600
11601 fi
11602 if test -z "$ac_cv_prog_NMEDIT"; then
11603   ac_ct_NMEDIT=$NMEDIT
11604   # Extract the first word of "nmedit", so it can be a program name with args.
11605 set dummy nmedit; ac_word=$2
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 printf %s "checking for $ac_word... " >&6; }
11608 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11609 then :
11610   printf %s "(cached) " >&6
11611 else $as_nop
11612   if test -n "$ac_ct_NMEDIT"; then
11613   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11614 else
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618   IFS=$as_save_IFS
11619   case $as_dir in #(((
11620     '') as_dir=./ ;;
11621     */) ;;
11622     *) as_dir=$as_dir/ ;;
11623   esac
11624     for ac_exec_ext in '' $ac_executable_extensions; do
11625   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11626     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11627     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631   done
11632 IFS=$as_save_IFS
11633
11634 fi
11635 fi
11636 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11637 if test -n "$ac_ct_NMEDIT"; then
11638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11639 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11640 else
11641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 printf "%s\n" "no" >&6; }
11643 fi
11644
11645   if test "x$ac_ct_NMEDIT" = x; then
11646     NMEDIT=":"
11647   else
11648     case $cross_compiling:$ac_tool_warned in
11649 yes:)
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11652 ac_tool_warned=yes ;;
11653 esac
11654     NMEDIT=$ac_ct_NMEDIT
11655   fi
11656 else
11657   NMEDIT="$ac_cv_prog_NMEDIT"
11658 fi
11659
11660     if test -n "$ac_tool_prefix"; then
11661   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11662 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 printf %s "checking for $ac_word... " >&6; }
11665 if test ${ac_cv_prog_LIPO+y}
11666 then :
11667   printf %s "(cached) " >&6
11668 else $as_nop
11669   if test -n "$LIPO"; then
11670   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675   IFS=$as_save_IFS
11676   case $as_dir in #(((
11677     '') as_dir=./ ;;
11678     */) ;;
11679     *) as_dir=$as_dir/ ;;
11680   esac
11681     for ac_exec_ext in '' $ac_executable_extensions; do
11682   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11683     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11684     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11685     break 2
11686   fi
11687 done
11688   done
11689 IFS=$as_save_IFS
11690
11691 fi
11692 fi
11693 LIPO=$ac_cv_prog_LIPO
11694 if test -n "$LIPO"; then
11695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11696 printf "%s\n" "$LIPO" >&6; }
11697 else
11698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 printf "%s\n" "no" >&6; }
11700 fi
11701
11702
11703 fi
11704 if test -z "$ac_cv_prog_LIPO"; then
11705   ac_ct_LIPO=$LIPO
11706   # Extract the first word of "lipo", so it can be a program name with args.
11707 set dummy lipo; ac_word=$2
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 printf %s "checking for $ac_word... " >&6; }
11710 if test ${ac_cv_prog_ac_ct_LIPO+y}
11711 then :
11712   printf %s "(cached) " >&6
11713 else $as_nop
11714   if test -n "$ac_ct_LIPO"; then
11715   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11716 else
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   case $as_dir in #(((
11722     '') as_dir=./ ;;
11723     */) ;;
11724     *) as_dir=$as_dir/ ;;
11725   esac
11726     for ac_exec_ext in '' $ac_executable_extensions; do
11727   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11728     ac_cv_prog_ac_ct_LIPO="lipo"
11729     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11730     break 2
11731   fi
11732 done
11733   done
11734 IFS=$as_save_IFS
11735
11736 fi
11737 fi
11738 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11739 if test -n "$ac_ct_LIPO"; then
11740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11741 printf "%s\n" "$ac_ct_LIPO" >&6; }
11742 else
11743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 printf "%s\n" "no" >&6; }
11745 fi
11746
11747   if test "x$ac_ct_LIPO" = x; then
11748     LIPO=":"
11749   else
11750     case $cross_compiling:$ac_tool_warned in
11751 yes:)
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11754 ac_tool_warned=yes ;;
11755 esac
11756     LIPO=$ac_ct_LIPO
11757   fi
11758 else
11759   LIPO="$ac_cv_prog_LIPO"
11760 fi
11761
11762     if test -n "$ac_tool_prefix"; then
11763   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11764 set dummy ${ac_tool_prefix}otool; ac_word=$2
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 printf %s "checking for $ac_word... " >&6; }
11767 if test ${ac_cv_prog_OTOOL+y}
11768 then :
11769   printf %s "(cached) " >&6
11770 else $as_nop
11771   if test -n "$OTOOL"; then
11772   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777   IFS=$as_save_IFS
11778   case $as_dir in #(((
11779     '') as_dir=./ ;;
11780     */) ;;
11781     *) as_dir=$as_dir/ ;;
11782   esac
11783     for ac_exec_ext in '' $ac_executable_extensions; do
11784   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11785     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11786     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11787     break 2
11788   fi
11789 done
11790   done
11791 IFS=$as_save_IFS
11792
11793 fi
11794 fi
11795 OTOOL=$ac_cv_prog_OTOOL
11796 if test -n "$OTOOL"; then
11797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11798 printf "%s\n" "$OTOOL" >&6; }
11799 else
11800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 printf "%s\n" "no" >&6; }
11802 fi
11803
11804
11805 fi
11806 if test -z "$ac_cv_prog_OTOOL"; then
11807   ac_ct_OTOOL=$OTOOL
11808   # Extract the first word of "otool", so it can be a program name with args.
11809 set dummy otool; ac_word=$2
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 printf %s "checking for $ac_word... " >&6; }
11812 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11813 then :
11814   printf %s "(cached) " >&6
11815 else $as_nop
11816   if test -n "$ac_ct_OTOOL"; then
11817   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822   IFS=$as_save_IFS
11823   case $as_dir in #(((
11824     '') as_dir=./ ;;
11825     */) ;;
11826     *) as_dir=$as_dir/ ;;
11827   esac
11828     for ac_exec_ext in '' $ac_executable_extensions; do
11829   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11830     ac_cv_prog_ac_ct_OTOOL="otool"
11831     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11832     break 2
11833   fi
11834 done
11835   done
11836 IFS=$as_save_IFS
11837
11838 fi
11839 fi
11840 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11841 if test -n "$ac_ct_OTOOL"; then
11842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11843 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11844 else
11845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 printf "%s\n" "no" >&6; }
11847 fi
11848
11849   if test "x$ac_ct_OTOOL" = x; then
11850     OTOOL=":"
11851   else
11852     case $cross_compiling:$ac_tool_warned in
11853 yes:)
11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856 ac_tool_warned=yes ;;
11857 esac
11858     OTOOL=$ac_ct_OTOOL
11859   fi
11860 else
11861   OTOOL="$ac_cv_prog_OTOOL"
11862 fi
11863
11864     if test -n "$ac_tool_prefix"; then
11865   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11866 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 printf %s "checking for $ac_word... " >&6; }
11869 if test ${ac_cv_prog_OTOOL64+y}
11870 then :
11871   printf %s "(cached) " >&6
11872 else $as_nop
11873   if test -n "$OTOOL64"; then
11874   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11875 else
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11878 do
11879   IFS=$as_save_IFS
11880   case $as_dir in #(((
11881     '') as_dir=./ ;;
11882     */) ;;
11883     *) as_dir=$as_dir/ ;;
11884   esac
11885     for ac_exec_ext in '' $ac_executable_extensions; do
11886   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11887     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11888     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892   done
11893 IFS=$as_save_IFS
11894
11895 fi
11896 fi
11897 OTOOL64=$ac_cv_prog_OTOOL64
11898 if test -n "$OTOOL64"; then
11899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11900 printf "%s\n" "$OTOOL64" >&6; }
11901 else
11902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 printf "%s\n" "no" >&6; }
11904 fi
11905
11906
11907 fi
11908 if test -z "$ac_cv_prog_OTOOL64"; then
11909   ac_ct_OTOOL64=$OTOOL64
11910   # Extract the first word of "otool64", so it can be a program name with args.
11911 set dummy otool64; ac_word=$2
11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 printf %s "checking for $ac_word... " >&6; }
11914 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11915 then :
11916   printf %s "(cached) " >&6
11917 else $as_nop
11918   if test -n "$ac_ct_OTOOL64"; then
11919   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   case $as_dir in #(((
11926     '') as_dir=./ ;;
11927     */) ;;
11928     *) as_dir=$as_dir/ ;;
11929   esac
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11932     ac_cv_prog_ac_ct_OTOOL64="otool64"
11933     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939
11940 fi
11941 fi
11942 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11943 if test -n "$ac_ct_OTOOL64"; then
11944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11945 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11946 else
11947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 printf "%s\n" "no" >&6; }
11949 fi
11950
11951   if test "x$ac_ct_OTOOL64" = x; then
11952     OTOOL64=":"
11953   else
11954     case $cross_compiling:$ac_tool_warned in
11955 yes:)
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11957 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11958 ac_tool_warned=yes ;;
11959 esac
11960     OTOOL64=$ac_ct_OTOOL64
11961   fi
11962 else
11963   OTOOL64="$ac_cv_prog_OTOOL64"
11964 fi
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11993 printf %s "checking for -single_module linker flag... " >&6; }
11994 if test ${lt_cv_apple_cc_single_mod+y}
11995 then :
11996   printf %s "(cached) " >&6
11997 else $as_nop
11998   lt_cv_apple_cc_single_mod=no
11999       if test -z "$LT_MULTI_MODULE"; then
12000         # By default we will add the -single_module flag. You can override
12001         # by either setting the environment variable LT_MULTI_MODULE
12002         # non-empty at configure time, or by adding -multi_module to the
12003         # link flags.
12004         rm -rf libconftest.dylib*
12005         echo "int foo(void){return 1;}" > conftest.c
12006         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12007 -dynamiclib -Wl,-single_module conftest.c" >&5
12008         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12009           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12010         _lt_result=$?
12011         # If there is a non-empty error log, and "single_module"
12012         # appears in it, assume the flag caused a linker warning
12013         if test -s conftest.err && $GREP single_module conftest.err; then
12014           cat conftest.err >&5
12015         # Otherwise, if the output was created with a 0 exit code from
12016         # the compiler, it worked.
12017         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12018           lt_cv_apple_cc_single_mod=yes
12019         else
12020           cat conftest.err >&5
12021         fi
12022         rm -rf libconftest.dylib*
12023         rm -f conftest.*
12024       fi
12025 fi
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12027 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12028
12029     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12030 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12031 if test ${lt_cv_ld_exported_symbols_list+y}
12032 then :
12033   printf %s "(cached) " >&6
12034 else $as_nop
12035   lt_cv_ld_exported_symbols_list=no
12036       save_LDFLAGS=$LDFLAGS
12037       echo "_main" > conftest.sym
12038       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h.  */
12041
12042 int
12043 main (void)
12044 {
12045
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_link "$LINENO"
12051 then :
12052   lt_cv_ld_exported_symbols_list=yes
12053 else $as_nop
12054   lt_cv_ld_exported_symbols_list=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12057     conftest$ac_exeext conftest.$ac_ext
12058         LDFLAGS=$save_LDFLAGS
12059
12060 fi
12061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12062 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12063
12064     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12065 printf %s "checking for -force_load linker flag... " >&6; }
12066 if test ${lt_cv_ld_force_load+y}
12067 then :
12068   printf %s "(cached) " >&6
12069 else $as_nop
12070   lt_cv_ld_force_load=no
12071       cat > conftest.c << _LT_EOF
12072 int forced_loaded() { return 2;}
12073 _LT_EOF
12074       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12075       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12076       echo "$AR cr libconftest.a conftest.o" >&5
12077       $AR cr libconftest.a conftest.o 2>&5
12078       echo "$RANLIB libconftest.a" >&5
12079       $RANLIB libconftest.a 2>&5
12080       cat > conftest.c << _LT_EOF
12081 int main() { return 0;}
12082 _LT_EOF
12083       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12084       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12085       _lt_result=$?
12086       if test -s conftest.err && $GREP force_load conftest.err; then
12087         cat conftest.err >&5
12088       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12089         lt_cv_ld_force_load=yes
12090       else
12091         cat conftest.err >&5
12092       fi
12093         rm -f conftest.err libconftest.a conftest conftest.c
12094         rm -rf conftest.dSYM
12095
12096 fi
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12098 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12099     case $host_os in
12100     rhapsody* | darwin1.[012])
12101       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12102     darwin1.*)
12103       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12104     darwin*) # darwin 5.x on
12105       # if running on 10.5 or later, the deployment target defaults
12106       # to the OS version, if on x86, and 10.4, the deployment
12107       # target defaults to 10.4. Don't you love it?
12108       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12109         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
12110           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12111         10.[012][,.]*)
12112           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12113         10.*|11.*)
12114           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12115       esac
12116     ;;
12117   esac
12118     if test yes = "$lt_cv_apple_cc_single_mod"; then
12119       _lt_dar_single_mod='$single_module'
12120     fi
12121     if test yes = "$lt_cv_ld_exported_symbols_list"; then
12122       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12123     else
12124       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12125     fi
12126     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12127       _lt_dsymutil='~$DSYMUTIL $lib || :'
12128     else
12129       _lt_dsymutil=
12130     fi
12131     ;;
12132   esac
12133
12134 # func_munge_path_list VARIABLE PATH
12135 # -----------------------------------
12136 # VARIABLE is name of variable containing _space_ separated list of
12137 # directories to be munged by the contents of PATH, which is string
12138 # having a format:
12139 # "DIR[:DIR]:"
12140 #       string "DIR[ DIR]" will be prepended to VARIABLE
12141 # ":DIR[:DIR]"
12142 #       string "DIR[ DIR]" will be appended to VARIABLE
12143 # "DIRP[:DIRP]::[DIRA:]DIRA"
12144 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12145 #       "DIRA[ DIRA]" will be appended to VARIABLE
12146 # "DIR[:DIR]"
12147 #       VARIABLE will be replaced by "DIR[ DIR]"
12148 func_munge_path_list ()
12149 {
12150     case x$2 in
12151     x)
12152         ;;
12153     *:)
12154         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12155         ;;
12156     x:*)
12157         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12158         ;;
12159     *::*)
12160         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12161         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12162         ;;
12163     *)
12164         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12165         ;;
12166     esac
12167 }
12168
12169 ac_header= ac_cache=
12170 for ac_item in $ac_header_c_list
12171 do
12172   if test $ac_cache; then
12173     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
12174     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
12175       printf "%s\n" "#define $ac_item 1" >> confdefs.h
12176     fi
12177     ac_header= ac_cache=
12178   elif test $ac_header; then
12179     ac_cache=$ac_item
12180   else
12181     ac_header=$ac_item
12182   fi
12183 done
12184
12185
12186
12187
12188
12189
12190
12191
12192 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
12193 then :
12194
12195 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
12196
12197 fi
12198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12199 "
12200 if test "x$ac_cv_header_dlfcn_h" = xyes
12201 then :
12202   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12203
12204 fi
12205
12206
12207
12208 func_stripname_cnf ()
12209 {
12210   case $2 in
12211   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12212   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12213   esac
12214 } # func_stripname_cnf
12215
12216 # ------------------------------------ #
12217 #  Determine libtool default behavior  #
12218 # ------------------------------------ #
12219
12220 #
12221 # Default behavior is to enable shared and static libraries on systems
12222 # where libtool knows how to build both library versions, and does not
12223 # require separate configuration and build runs for each flavor.
12224 #
12225
12226 xc_lt_want_enable_shared='yes'
12227 xc_lt_want_enable_static='yes'
12228
12229 #
12230 # User may have disabled shared or static libraries.
12231 #
12232 case "x$enable_shared" in # (
12233   xno)
12234     xc_lt_want_enable_shared='no'
12235     ;;
12236 esac
12237 case "x$enable_static" in # (
12238   xno)
12239     xc_lt_want_enable_static='no'
12240     ;;
12241 esac
12242 if test "x$xc_lt_want_enable_shared" = 'xno' &&
12243   test "x$xc_lt_want_enable_static" = 'xno'; then
12244   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12245 fi
12246
12247 #
12248 # Default behavior on systems that require independent configuration
12249 # and build runs for shared and static is to enable shared libraries
12250 # and disable static ones. On these systems option '--disable-shared'
12251 # must be used in order to build a proper static library.
12252 #
12253
12254 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12255   test "x$xc_lt_want_enable_static" = 'xyes'; then
12256   case $host_os in # (
12257     mingw* | pw32* | cegcc* | os2* | aix*)
12258       xc_lt_want_enable_static='no'
12259       ;;
12260   esac
12261 fi
12262
12263 #
12264 # Make libtool aware of current shared and static library preferences
12265 # taking in account that, depending on host characteristics, libtool
12266 # may modify these option preferences later in this configure script.
12267 #
12268
12269 enable_shared=$xc_lt_want_enable_shared
12270 enable_static=$xc_lt_want_enable_static
12271
12272 #
12273 # Default behavior is to build PIC objects for shared libraries and
12274 # non-PIC objects for static libraries.
12275 #
12276
12277 xc_lt_want_with_pic='default'
12278
12279 #
12280 # User may have specified PIC preference.
12281 #
12282
12283 case "x$with_pic" in # ((
12284   xno)
12285     xc_lt_want_with_pic='no'
12286     ;;
12287   xyes)
12288     xc_lt_want_with_pic='yes'
12289     ;;
12290 esac
12291
12292 #
12293 # Default behavior on some systems where building a shared library out
12294 # of non-PIC compiled objects will fail with following linker error
12295 # "relocation R_X86_64_32 can not be used when making a shared object"
12296 # is to build PIC objects even for static libraries. This behavior may
12297 # be overriden using 'configure --disable-shared --without-pic'.
12298 #
12299
12300 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12301   case $host_cpu in # (
12302     x86_64 | amd64 | ia64)
12303       case $host_os in # (
12304         linux* | freebsd*)
12305           xc_lt_want_with_pic='yes'
12306           ;;
12307       esac
12308       ;;
12309   esac
12310 fi
12311
12312 #
12313 # Make libtool aware of current PIC preference taking in account that,
12314 # depending on host characteristics, libtool may modify PIC default
12315 # behavior to fit host system idiosyncrasies later in this script.
12316 #
12317
12318 with_pic=$xc_lt_want_with_pic
12319
12320 ## ----------------------- ##
12321 ##  Start of libtool code  ##
12322 ## ----------------------- ##
12323
12324
12325
12326
12327 # Set options
12328 enable_win32_dll=yes
12329
12330 case $host in
12331 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12332   if test -n "$ac_tool_prefix"; then
12333   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12334 set dummy ${ac_tool_prefix}as; ac_word=$2
12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 printf %s "checking for $ac_word... " >&6; }
12337 if test ${ac_cv_prog_AS+y}
12338 then :
12339   printf %s "(cached) " >&6
12340 else $as_nop
12341   if test -n "$AS"; then
12342   ac_cv_prog_AS="$AS" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   case $as_dir in #(((
12349     '') as_dir=./ ;;
12350     */) ;;
12351     *) as_dir=$as_dir/ ;;
12352   esac
12353     for ac_exec_ext in '' $ac_executable_extensions; do
12354   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12355     ac_cv_prog_AS="${ac_tool_prefix}as"
12356     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12357     break 2
12358   fi
12359 done
12360   done
12361 IFS=$as_save_IFS
12362
12363 fi
12364 fi
12365 AS=$ac_cv_prog_AS
12366 if test -n "$AS"; then
12367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12368 printf "%s\n" "$AS" >&6; }
12369 else
12370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 printf "%s\n" "no" >&6; }
12372 fi
12373
12374
12375 fi
12376 if test -z "$ac_cv_prog_AS"; then
12377   ac_ct_AS=$AS
12378   # Extract the first word of "as", so it can be a program name with args.
12379 set dummy as; ac_word=$2
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 printf %s "checking for $ac_word... " >&6; }
12382 if test ${ac_cv_prog_ac_ct_AS+y}
12383 then :
12384   printf %s "(cached) " >&6
12385 else $as_nop
12386   if test -n "$ac_ct_AS"; then
12387   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12388 else
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12391 do
12392   IFS=$as_save_IFS
12393   case $as_dir in #(((
12394     '') as_dir=./ ;;
12395     */) ;;
12396     *) as_dir=$as_dir/ ;;
12397   esac
12398     for ac_exec_ext in '' $ac_executable_extensions; do
12399   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12400     ac_cv_prog_ac_ct_AS="as"
12401     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12402     break 2
12403   fi
12404 done
12405   done
12406 IFS=$as_save_IFS
12407
12408 fi
12409 fi
12410 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12411 if test -n "$ac_ct_AS"; then
12412   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12413 printf "%s\n" "$ac_ct_AS" >&6; }
12414 else
12415   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 printf "%s\n" "no" >&6; }
12417 fi
12418
12419   if test "x$ac_ct_AS" = x; then
12420     AS="false"
12421   else
12422     case $cross_compiling:$ac_tool_warned in
12423 yes:)
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12426 ac_tool_warned=yes ;;
12427 esac
12428     AS=$ac_ct_AS
12429   fi
12430 else
12431   AS="$ac_cv_prog_AS"
12432 fi
12433
12434   if test -n "$ac_tool_prefix"; then
12435   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12436 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 printf %s "checking for $ac_word... " >&6; }
12439 if test ${ac_cv_prog_DLLTOOL+y}
12440 then :
12441   printf %s "(cached) " >&6
12442 else $as_nop
12443   if test -n "$DLLTOOL"; then
12444   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449   IFS=$as_save_IFS
12450   case $as_dir in #(((
12451     '') as_dir=./ ;;
12452     */) ;;
12453     *) as_dir=$as_dir/ ;;
12454   esac
12455     for ac_exec_ext in '' $ac_executable_extensions; do
12456   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12457     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12458     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12459     break 2
12460   fi
12461 done
12462   done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 DLLTOOL=$ac_cv_prog_DLLTOOL
12468 if test -n "$DLLTOOL"; then
12469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12470 printf "%s\n" "$DLLTOOL" >&6; }
12471 else
12472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 printf "%s\n" "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_prog_DLLTOOL"; then
12479   ac_ct_DLLTOOL=$DLLTOOL
12480   # Extract the first word of "dlltool", so it can be a program name with args.
12481 set dummy dlltool; ac_word=$2
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 printf %s "checking for $ac_word... " >&6; }
12484 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12485 then :
12486   printf %s "(cached) " >&6
12487 else $as_nop
12488   if test -n "$ac_ct_DLLTOOL"; then
12489   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12490 else
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494   IFS=$as_save_IFS
12495   case $as_dir in #(((
12496     '') as_dir=./ ;;
12497     */) ;;
12498     *) as_dir=$as_dir/ ;;
12499   esac
12500     for ac_exec_ext in '' $ac_executable_extensions; do
12501   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12502     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12503     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507   done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12513 if test -n "$ac_ct_DLLTOOL"; then
12514   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12515 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12516 else
12517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 printf "%s\n" "no" >&6; }
12519 fi
12520
12521   if test "x$ac_ct_DLLTOOL" = x; then
12522     DLLTOOL="false"
12523   else
12524     case $cross_compiling:$ac_tool_warned in
12525 yes:)
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528 ac_tool_warned=yes ;;
12529 esac
12530     DLLTOOL=$ac_ct_DLLTOOL
12531   fi
12532 else
12533   DLLTOOL="$ac_cv_prog_DLLTOOL"
12534 fi
12535
12536   if test -n "$ac_tool_prefix"; then
12537   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12538 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 printf %s "checking for $ac_word... " >&6; }
12541 if test ${ac_cv_prog_OBJDUMP+y}
12542 then :
12543   printf %s "(cached) " >&6
12544 else $as_nop
12545   if test -n "$OBJDUMP"; then
12546   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12547 else
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551   IFS=$as_save_IFS
12552   case $as_dir in #(((
12553     '') as_dir=./ ;;
12554     */) ;;
12555     *) as_dir=$as_dir/ ;;
12556   esac
12557     for ac_exec_ext in '' $ac_executable_extensions; do
12558   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12559     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12560     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12561     break 2
12562   fi
12563 done
12564   done
12565 IFS=$as_save_IFS
12566
12567 fi
12568 fi
12569 OBJDUMP=$ac_cv_prog_OBJDUMP
12570 if test -n "$OBJDUMP"; then
12571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12572 printf "%s\n" "$OBJDUMP" >&6; }
12573 else
12574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 printf "%s\n" "no" >&6; }
12576 fi
12577
12578
12579 fi
12580 if test -z "$ac_cv_prog_OBJDUMP"; then
12581   ac_ct_OBJDUMP=$OBJDUMP
12582   # Extract the first word of "objdump", so it can be a program name with args.
12583 set dummy objdump; ac_word=$2
12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 printf %s "checking for $ac_word... " >&6; }
12586 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12587 then :
12588   printf %s "(cached) " >&6
12589 else $as_nop
12590   if test -n "$ac_ct_OBJDUMP"; then
12591   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596   IFS=$as_save_IFS
12597   case $as_dir in #(((
12598     '') as_dir=./ ;;
12599     */) ;;
12600     *) as_dir=$as_dir/ ;;
12601   esac
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12604     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12605     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611
12612 fi
12613 fi
12614 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12615 if test -n "$ac_ct_OBJDUMP"; then
12616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12617 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12618 else
12619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 printf "%s\n" "no" >&6; }
12621 fi
12622
12623   if test "x$ac_ct_OBJDUMP" = x; then
12624     OBJDUMP="false"
12625   else
12626     case $cross_compiling:$ac_tool_warned in
12627 yes:)
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630 ac_tool_warned=yes ;;
12631 esac
12632     OBJDUMP=$ac_ct_OBJDUMP
12633   fi
12634 else
12635   OBJDUMP="$ac_cv_prog_OBJDUMP"
12636 fi
12637
12638   ;;
12639 esac
12640
12641 test -z "$AS" && AS=as
12642
12643
12644
12645
12646
12647 test -z "$DLLTOOL" && DLLTOOL=dlltool
12648
12649
12650
12651
12652
12653 test -z "$OBJDUMP" && OBJDUMP=objdump
12654
12655
12656
12657
12658
12659
12660
12661         enable_dlopen=no
12662
12663
12664
12665             # Check whether --enable-shared was given.
12666 if test ${enable_shared+y}
12667 then :
12668   enableval=$enable_shared; p=${PACKAGE-default}
12669     case $enableval in
12670     yes) enable_shared=yes ;;
12671     no) enable_shared=no ;;
12672     *)
12673       enable_shared=no
12674       # Look at the argument we got.  We use all the common list separators.
12675       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12676       for pkg in $enableval; do
12677         IFS=$lt_save_ifs
12678         if test "X$pkg" = "X$p"; then
12679           enable_shared=yes
12680         fi
12681       done
12682       IFS=$lt_save_ifs
12683       ;;
12684     esac
12685 else $as_nop
12686   enable_shared=yes
12687 fi
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697   # Check whether --enable-static was given.
12698 if test ${enable_static+y}
12699 then :
12700   enableval=$enable_static; p=${PACKAGE-default}
12701     case $enableval in
12702     yes) enable_static=yes ;;
12703     no) enable_static=no ;;
12704     *)
12705      enable_static=no
12706       # Look at the argument we got.  We use all the common list separators.
12707       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12708       for pkg in $enableval; do
12709         IFS=$lt_save_ifs
12710         if test "X$pkg" = "X$p"; then
12711           enable_static=yes
12712         fi
12713       done
12714       IFS=$lt_save_ifs
12715       ;;
12716     esac
12717 else $as_nop
12718   enable_static=yes
12719 fi
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730 # Check whether --with-pic was given.
12731 if test ${with_pic+y}
12732 then :
12733   withval=$with_pic; lt_p=${PACKAGE-default}
12734     case $withval in
12735     yes|no) pic_mode=$withval ;;
12736     *)
12737       pic_mode=default
12738       # Look at the argument we got.  We use all the common list separators.
12739       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12740       for lt_pkg in $withval; do
12741         IFS=$lt_save_ifs
12742         if test "X$lt_pkg" = "X$lt_p"; then
12743           pic_mode=yes
12744         fi
12745       done
12746       IFS=$lt_save_ifs
12747       ;;
12748     esac
12749 else $as_nop
12750   pic_mode=default
12751 fi
12752
12753
12754
12755
12756
12757
12758
12759
12760   # Check whether --enable-fast-install was given.
12761 if test ${enable_fast_install+y}
12762 then :
12763   enableval=$enable_fast_install; p=${PACKAGE-default}
12764     case $enableval in
12765     yes) enable_fast_install=yes ;;
12766     no) enable_fast_install=no ;;
12767     *)
12768       enable_fast_install=no
12769       # Look at the argument we got.  We use all the common list separators.
12770       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12771       for pkg in $enableval; do
12772         IFS=$lt_save_ifs
12773         if test "X$pkg" = "X$p"; then
12774           enable_fast_install=yes
12775         fi
12776       done
12777       IFS=$lt_save_ifs
12778       ;;
12779     esac
12780 else $as_nop
12781   enable_fast_install=yes
12782 fi
12783
12784
12785
12786
12787
12788
12789
12790
12791   shared_archive_member_spec=
12792 case $host,$enable_shared in
12793 power*-*-aix[5-9]*,yes)
12794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12795 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12796
12797 # Check whether --with-aix-soname was given.
12798 if test ${with_aix_soname+y}
12799 then :
12800   withval=$with_aix_soname; case $withval in
12801     aix|svr4|both)
12802       ;;
12803     *)
12804       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12805       ;;
12806     esac
12807     lt_cv_with_aix_soname=$with_aix_soname
12808 else $as_nop
12809   if test ${lt_cv_with_aix_soname+y}
12810 then :
12811   printf %s "(cached) " >&6
12812 else $as_nop
12813   lt_cv_with_aix_soname=aix
12814 fi
12815
12816     with_aix_soname=$lt_cv_with_aix_soname
12817 fi
12818
12819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12820 printf "%s\n" "$with_aix_soname" >&6; }
12821   if test aix != "$with_aix_soname"; then
12822     # For the AIX way of multilib, we name the shared archive member
12823     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12824     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12825     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12826     # the AIX toolchain works better with OBJECT_MODE set (default 32).
12827     if test 64 = "${OBJECT_MODE-32}"; then
12828       shared_archive_member_spec=shr_64
12829     else
12830       shared_archive_member_spec=shr
12831     fi
12832   fi
12833   ;;
12834 *)
12835   with_aix_soname=aix
12836   ;;
12837 esac
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 # This can be used to rebuild libtool when needed
12849 LIBTOOL_DEPS=$ltmain
12850
12851 # Always use our own libtool.
12852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883 test -z "$LN_S" && LN_S="ln -s"
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 if test -n "${ZSH_VERSION+set}"; then
12899    setopt NO_GLOB_SUBST
12900 fi
12901
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12903 printf %s "checking for objdir... " >&6; }
12904 if test ${lt_cv_objdir+y}
12905 then :
12906   printf %s "(cached) " >&6
12907 else $as_nop
12908   rm -f .libs 2>/dev/null
12909 mkdir .libs 2>/dev/null
12910 if test -d .libs; then
12911   lt_cv_objdir=.libs
12912 else
12913   # MS-DOS does not allow filenames that begin with a dot.
12914   lt_cv_objdir=_libs
12915 fi
12916 rmdir .libs 2>/dev/null
12917 fi
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12919 printf "%s\n" "$lt_cv_objdir" >&6; }
12920 objdir=$lt_cv_objdir
12921
12922
12923
12924
12925
12926 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12927
12928
12929
12930
12931 case $host_os in
12932 aix3*)
12933   # AIX sometimes has problems with the GCC collect2 program.  For some
12934   # reason, if we set the COLLECT_NAMES environment variable, the problems
12935   # vanish in a puff of smoke.
12936   if test set != "${COLLECT_NAMES+set}"; then
12937     COLLECT_NAMES=
12938     export COLLECT_NAMES
12939   fi
12940   ;;
12941 esac
12942
12943 # Global variables:
12944 ofile=libtool
12945 can_build_shared=yes
12946
12947 # All known linkers require a '.a' archive for static linking (except MSVC,
12948 # which needs '.lib').
12949 libext=a
12950
12951 with_gnu_ld=$lt_cv_prog_gnu_ld
12952
12953 old_CC=$CC
12954 old_CFLAGS=$CFLAGS
12955
12956 # Set sane defaults for various variables
12957 test -z "$CC" && CC=cc
12958 test -z "$LTCC" && LTCC=$CC
12959 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12960 test -z "$LD" && LD=ld
12961 test -z "$ac_objext" && ac_objext=o
12962
12963 func_cc_basename $compiler
12964 cc_basename=$func_cc_basename_result
12965
12966
12967 # Only perform the check for file, if the check method requires it
12968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12969 case $deplibs_check_method in
12970 file_magic*)
12971   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12972     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12973 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12974 if test ${lt_cv_path_MAGIC_CMD+y}
12975 then :
12976   printf %s "(cached) " >&6
12977 else $as_nop
12978   case $MAGIC_CMD in
12979 [\\/*] |  ?:[\\/]*)
12980   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12981   ;;
12982 *)
12983   lt_save_MAGIC_CMD=$MAGIC_CMD
12984   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12985   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12986   for ac_dir in $ac_dummy; do
12987     IFS=$lt_save_ifs
12988     test -z "$ac_dir" && ac_dir=.
12989     if test -f "$ac_dir/${ac_tool_prefix}file"; then
12990       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12991       if test -n "$file_magic_test_file"; then
12992         case $deplibs_check_method in
12993         "file_magic "*)
12994           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12995           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12996           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12997             $EGREP "$file_magic_regex" > /dev/null; then
12998             :
12999           else
13000             cat <<_LT_EOF 1>&2
13001
13002 *** Warning: the command libtool uses to detect shared libraries,
13003 *** $file_magic_cmd, produces output that libtool cannot recognize.
13004 *** The result is that libtool may fail to recognize shared libraries
13005 *** as such.  This will affect the creation of libtool libraries that
13006 *** depend on shared libraries, but programs linked with such libtool
13007 *** libraries will work regardless of this problem.  Nevertheless, you
13008 *** may want to report the problem to your system manager and/or to
13009 *** bug-libtool@gnu.org
13010
13011 _LT_EOF
13012           fi ;;
13013         esac
13014       fi
13015       break
13016     fi
13017   done
13018   IFS=$lt_save_ifs
13019   MAGIC_CMD=$lt_save_MAGIC_CMD
13020   ;;
13021 esac
13022 fi
13023
13024 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13025 if test -n "$MAGIC_CMD"; then
13026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13027 printf "%s\n" "$MAGIC_CMD" >&6; }
13028 else
13029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 printf "%s\n" "no" >&6; }
13031 fi
13032
13033
13034
13035
13036
13037 if test -z "$lt_cv_path_MAGIC_CMD"; then
13038   if test -n "$ac_tool_prefix"; then
13039     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13040 printf %s "checking for file... " >&6; }
13041 if test ${lt_cv_path_MAGIC_CMD+y}
13042 then :
13043   printf %s "(cached) " >&6
13044 else $as_nop
13045   case $MAGIC_CMD in
13046 [\\/*] |  ?:[\\/]*)
13047   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13048   ;;
13049 *)
13050   lt_save_MAGIC_CMD=$MAGIC_CMD
13051   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13052   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13053   for ac_dir in $ac_dummy; do
13054     IFS=$lt_save_ifs
13055     test -z "$ac_dir" && ac_dir=.
13056     if test -f "$ac_dir/file"; then
13057       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13058       if test -n "$file_magic_test_file"; then
13059         case $deplibs_check_method in
13060         "file_magic "*)
13061           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13062           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13063           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13064             $EGREP "$file_magic_regex" > /dev/null; then
13065             :
13066           else
13067             cat <<_LT_EOF 1>&2
13068
13069 *** Warning: the command libtool uses to detect shared libraries,
13070 *** $file_magic_cmd, produces output that libtool cannot recognize.
13071 *** The result is that libtool may fail to recognize shared libraries
13072 *** as such.  This will affect the creation of libtool libraries that
13073 *** depend on shared libraries, but programs linked with such libtool
13074 *** libraries will work regardless of this problem.  Nevertheless, you
13075 *** may want to report the problem to your system manager and/or to
13076 *** bug-libtool@gnu.org
13077
13078 _LT_EOF
13079           fi ;;
13080         esac
13081       fi
13082       break
13083     fi
13084   done
13085   IFS=$lt_save_ifs
13086   MAGIC_CMD=$lt_save_MAGIC_CMD
13087   ;;
13088 esac
13089 fi
13090
13091 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13092 if test -n "$MAGIC_CMD"; then
13093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13094 printf "%s\n" "$MAGIC_CMD" >&6; }
13095 else
13096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 printf "%s\n" "no" >&6; }
13098 fi
13099
13100
13101   else
13102     MAGIC_CMD=:
13103   fi
13104 fi
13105
13106   fi
13107   ;;
13108 esac
13109
13110 # Use C for the default configuration in the libtool script
13111
13112 lt_save_CC=$CC
13113 ac_ext=c
13114 ac_cpp='$CPP $CPPFLAGS'
13115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13118
13119
13120 # Source file extension for C test sources.
13121 ac_ext=c
13122
13123 # Object file extension for compiled C test sources.
13124 objext=o
13125 objext=$objext
13126
13127 # Code to be used in simple compile tests
13128 lt_simple_compile_test_code="int some_variable = 0;"
13129
13130 # Code to be used in simple link tests
13131 lt_simple_link_test_code='int main(){return(0);}'
13132
13133
13134
13135
13136
13137
13138
13139 # If no C compiler was specified, use CC.
13140 LTCC=${LTCC-"$CC"}
13141
13142 # If no C compiler flags were specified, use CFLAGS.
13143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13144
13145 # Allow CC to be a program name with arguments.
13146 compiler=$CC
13147
13148 # Save the default compiler, since it gets overwritten when the other
13149 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13150 compiler_DEFAULT=$CC
13151
13152 # save warnings/boilerplate of simple test code
13153 ac_outfile=conftest.$ac_objext
13154 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13156 _lt_compiler_boilerplate=`cat conftest.err`
13157 $RM conftest*
13158
13159 ac_outfile=conftest.$ac_objext
13160 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13162 _lt_linker_boilerplate=`cat conftest.err`
13163 $RM -r conftest*
13164
13165
13166 ## CAVEAT EMPTOR:
13167 ## There is no encapsulation within the following macros, do not change
13168 ## the running order or otherwise move them around unless you know exactly
13169 ## what you are doing...
13170 if test -n "$compiler"; then
13171
13172 lt_prog_compiler_no_builtin_flag=
13173
13174 if test yes = "$GCC"; then
13175   case $cc_basename in
13176   nvcc*)
13177     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13178   *)
13179     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13180   esac
13181
13182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13183 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13184 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13185 then :
13186   printf %s "(cached) " >&6
13187 else $as_nop
13188   lt_cv_prog_compiler_rtti_exceptions=no
13189    ac_outfile=conftest.$ac_objext
13190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13191    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13192    # Insert the option either (1) after the last *FLAGS variable, or
13193    # (2) before a word containing "conftest.", or (3) at the end.
13194    # Note that $ac_compile itself does not contain backslashes and begins
13195    # with a dollar sign (not a hyphen), so the echo should work correctly.
13196    # The option is referenced via a variable to avoid confusing sed.
13197    lt_compile=`echo "$ac_compile" | $SED \
13198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13200    -e 's:$: $lt_compiler_flag:'`
13201    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13202    (eval "$lt_compile" 2>conftest.err)
13203    ac_status=$?
13204    cat conftest.err >&5
13205    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206    if (exit $ac_status) && test -s "$ac_outfile"; then
13207      # The compiler can only warn and ignore the option if not recognized
13208      # So say no if there are warnings other than the usual output.
13209      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13210      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13211      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13212        lt_cv_prog_compiler_rtti_exceptions=yes
13213      fi
13214    fi
13215    $RM conftest*
13216
13217 fi
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13219 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13220
13221 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13222     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13223 else
13224     :
13225 fi
13226
13227 fi
13228
13229
13230
13231
13232
13233
13234   lt_prog_compiler_wl=
13235 lt_prog_compiler_pic=
13236 lt_prog_compiler_static=
13237
13238
13239   if test yes = "$GCC"; then
13240     lt_prog_compiler_wl='-Wl,'
13241     lt_prog_compiler_static='-static'
13242
13243     case $host_os in
13244       aix*)
13245       # All AIX code is PIC.
13246       if test ia64 = "$host_cpu"; then
13247         # AIX 5 now supports IA64 processor
13248         lt_prog_compiler_static='-Bstatic'
13249       fi
13250       lt_prog_compiler_pic='-fPIC'
13251       ;;
13252
13253     amigaos*)
13254       case $host_cpu in
13255       powerpc)
13256             # see comment about AmigaOS4 .so support
13257             lt_prog_compiler_pic='-fPIC'
13258         ;;
13259       m68k)
13260             # FIXME: we need at least 68020 code to build shared libraries, but
13261             # adding the '-m68020' flag to GCC prevents building anything better,
13262             # like '-m68040'.
13263             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13264         ;;
13265       esac
13266       ;;
13267
13268     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13269       # PIC is the default for these OSes.
13270       ;;
13271
13272     mingw* | cygwin* | pw32* | os2* | cegcc*)
13273       # This hack is so that the source file can tell whether it is being
13274       # built for inclusion in a dll (and should export symbols for example).
13275       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13276       # (--disable-auto-import) libraries
13277       lt_prog_compiler_pic='-DDLL_EXPORT'
13278       case $host_os in
13279       os2*)
13280         lt_prog_compiler_static='$wl-static'
13281         ;;
13282       esac
13283       ;;
13284
13285     darwin* | rhapsody*)
13286       # PIC is the default on this platform
13287       # Common symbols not allowed in MH_DYLIB files
13288       lt_prog_compiler_pic='-fno-common'
13289       ;;
13290
13291     haiku*)
13292       # PIC is the default for Haiku.
13293       # The "-static" flag exists, but is broken.
13294       lt_prog_compiler_static=
13295       ;;
13296
13297     hpux*)
13298       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13299       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13300       # sets the default TLS model and affects inlining.
13301       case $host_cpu in
13302       hppa*64*)
13303         # +Z the default
13304         ;;
13305       *)
13306         lt_prog_compiler_pic='-fPIC'
13307         ;;
13308       esac
13309       ;;
13310
13311     interix[3-9]*)
13312       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13313       # Instead, we relocate shared libraries at runtime.
13314       ;;
13315
13316     msdosdjgpp*)
13317       # Just because we use GCC doesn't mean we suddenly get shared libraries
13318       # on systems that don't support them.
13319       lt_prog_compiler_can_build_shared=no
13320       enable_shared=no
13321       ;;
13322
13323     *nto* | *qnx*)
13324       # QNX uses GNU C++, but need to define -shared option too, otherwise
13325       # it will coredump.
13326       lt_prog_compiler_pic='-fPIC -shared'
13327       ;;
13328
13329     sysv4*MP*)
13330       if test -d /usr/nec; then
13331         lt_prog_compiler_pic=-Kconform_pic
13332       fi
13333       ;;
13334
13335     *)
13336       lt_prog_compiler_pic='-fPIC'
13337       ;;
13338     esac
13339
13340     case $cc_basename in
13341     nvcc*) # Cuda Compiler Driver 2.2
13342       lt_prog_compiler_wl='-Xlinker '
13343       if test -n "$lt_prog_compiler_pic"; then
13344         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13345       fi
13346       ;;
13347     esac
13348   else
13349     # PORTME Check for flag to pass linker flags through the system compiler.
13350     case $host_os in
13351     aix*)
13352       lt_prog_compiler_wl='-Wl,'
13353       if test ia64 = "$host_cpu"; then
13354         # AIX 5 now supports IA64 processor
13355         lt_prog_compiler_static='-Bstatic'
13356       else
13357         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13358       fi
13359       ;;
13360
13361     darwin* | rhapsody*)
13362       # PIC is the default on this platform
13363       # Common symbols not allowed in MH_DYLIB files
13364       lt_prog_compiler_pic='-fno-common'
13365       case $cc_basename in
13366       nagfor*)
13367         # NAG Fortran compiler
13368         lt_prog_compiler_wl='-Wl,-Wl,,'
13369         lt_prog_compiler_pic='-PIC'
13370         lt_prog_compiler_static='-Bstatic'
13371         ;;
13372       esac
13373       ;;
13374
13375     mingw* | cygwin* | pw32* | os2* | cegcc*)
13376       # This hack is so that the source file can tell whether it is being
13377       # built for inclusion in a dll (and should export symbols for example).
13378       lt_prog_compiler_pic='-DDLL_EXPORT'
13379       case $host_os in
13380       os2*)
13381         lt_prog_compiler_static='$wl-static'
13382         ;;
13383       esac
13384       ;;
13385
13386     hpux9* | hpux10* | hpux11*)
13387       lt_prog_compiler_wl='-Wl,'
13388       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13389       # not for PA HP-UX.
13390       case $host_cpu in
13391       hppa*64*|ia64*)
13392         # +Z the default
13393         ;;
13394       *)
13395         lt_prog_compiler_pic='+Z'
13396         ;;
13397       esac
13398       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13399       lt_prog_compiler_static='$wl-a ${wl}archive'
13400       ;;
13401
13402     irix5* | irix6* | nonstopux*)
13403       lt_prog_compiler_wl='-Wl,'
13404       # PIC (with -KPIC) is the default.
13405       lt_prog_compiler_static='-non_shared'
13406       ;;
13407
13408     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13409       case $cc_basename in
13410       # old Intel for x86_64, which still supported -KPIC.
13411       ecc*)
13412         lt_prog_compiler_wl='-Wl,'
13413         lt_prog_compiler_pic='-KPIC'
13414         lt_prog_compiler_static='-static'
13415         ;;
13416       # flang / f18. f95 an alias for gfortran or flang on Debian
13417       flang* | f18* | f95*)
13418         lt_prog_compiler_wl='-Wl,'
13419         lt_prog_compiler_pic='-fPIC'
13420         lt_prog_compiler_static='-static'
13421         ;;
13422       # icc used to be incompatible with GCC.
13423       # ICC 10 doesn't accept -KPIC any more.
13424       icc* | ifort*)
13425         lt_prog_compiler_wl='-Wl,'
13426         lt_prog_compiler_pic='-fPIC'
13427         lt_prog_compiler_static='-static'
13428         ;;
13429       # Lahey Fortran 8.1.
13430       lf95*)
13431         lt_prog_compiler_wl='-Wl,'
13432         lt_prog_compiler_pic='--shared'
13433         lt_prog_compiler_static='--static'
13434         ;;
13435       nagfor*)
13436         # NAG Fortran compiler
13437         lt_prog_compiler_wl='-Wl,-Wl,,'
13438         lt_prog_compiler_pic='-PIC'
13439         lt_prog_compiler_static='-Bstatic'
13440         ;;
13441       tcc*)
13442         # Fabrice Bellard et al's Tiny C Compiler
13443         lt_prog_compiler_wl='-Wl,'
13444         lt_prog_compiler_pic='-fPIC'
13445         lt_prog_compiler_static='-static'
13446         ;;
13447       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13448         # Portland Group compilers (*not* the Pentium gcc compiler,
13449         # which looks to be a dead project)
13450         lt_prog_compiler_wl='-Wl,'
13451         lt_prog_compiler_pic='-fpic'
13452         lt_prog_compiler_static='-Bstatic'
13453         ;;
13454       ccc*)
13455         lt_prog_compiler_wl='-Wl,'
13456         # All Alpha code is PIC.
13457         lt_prog_compiler_static='-non_shared'
13458         ;;
13459       xl* | bgxl* | bgf* | mpixl*)
13460         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13461         lt_prog_compiler_wl='-Wl,'
13462         lt_prog_compiler_pic='-qpic'
13463         lt_prog_compiler_static='-qstaticlink'
13464         ;;
13465       *)
13466         case `$CC -V 2>&1 | sed 5q` in
13467         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13468           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13469           lt_prog_compiler_pic='-KPIC'
13470           lt_prog_compiler_static='-Bstatic'
13471           lt_prog_compiler_wl=''
13472           ;;
13473         *Sun\ F* | *Sun*Fortran*)
13474           lt_prog_compiler_pic='-KPIC'
13475           lt_prog_compiler_static='-Bstatic'
13476           lt_prog_compiler_wl='-Qoption ld '
13477           ;;
13478         *Sun\ C*)
13479           # Sun C 5.9
13480           lt_prog_compiler_pic='-KPIC'
13481           lt_prog_compiler_static='-Bstatic'
13482           lt_prog_compiler_wl='-Wl,'
13483           ;;
13484         *Intel*\ [CF]*Compiler*)
13485           lt_prog_compiler_wl='-Wl,'
13486           lt_prog_compiler_pic='-fPIC'
13487           lt_prog_compiler_static='-static'
13488           ;;
13489         *Portland\ Group*)
13490           lt_prog_compiler_wl='-Wl,'
13491           lt_prog_compiler_pic='-fpic'
13492           lt_prog_compiler_static='-Bstatic'
13493           ;;
13494         esac
13495         ;;
13496       esac
13497       ;;
13498
13499     newsos6)
13500       lt_prog_compiler_pic='-KPIC'
13501       lt_prog_compiler_static='-Bstatic'
13502       ;;
13503
13504     *nto* | *qnx*)
13505       # QNX uses GNU C++, but need to define -shared option too, otherwise
13506       # it will coredump.
13507       lt_prog_compiler_pic='-fPIC -shared'
13508       ;;
13509
13510     osf3* | osf4* | osf5*)
13511       lt_prog_compiler_wl='-Wl,'
13512       # All OSF/1 code is PIC.
13513       lt_prog_compiler_static='-non_shared'
13514       ;;
13515
13516     rdos*)
13517       lt_prog_compiler_static='-non_shared'
13518       ;;
13519
13520     solaris*)
13521       lt_prog_compiler_pic='-KPIC'
13522       lt_prog_compiler_static='-Bstatic'
13523       case $cc_basename in
13524       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13525         lt_prog_compiler_wl='-Qoption ld ';;
13526       *)
13527         lt_prog_compiler_wl='-Wl,';;
13528       esac
13529       ;;
13530
13531     sunos4*)
13532       lt_prog_compiler_wl='-Qoption ld '
13533       lt_prog_compiler_pic='-PIC'
13534       lt_prog_compiler_static='-Bstatic'
13535       ;;
13536
13537     sysv4 | sysv4.2uw2* | sysv4.3*)
13538       lt_prog_compiler_wl='-Wl,'
13539       lt_prog_compiler_pic='-KPIC'
13540       lt_prog_compiler_static='-Bstatic'
13541       ;;
13542
13543     sysv4*MP*)
13544       if test -d /usr/nec; then
13545         lt_prog_compiler_pic='-Kconform_pic'
13546         lt_prog_compiler_static='-Bstatic'
13547       fi
13548       ;;
13549
13550     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13551       lt_prog_compiler_wl='-Wl,'
13552       lt_prog_compiler_pic='-KPIC'
13553       lt_prog_compiler_static='-Bstatic'
13554       ;;
13555
13556     unicos*)
13557       lt_prog_compiler_wl='-Wl,'
13558       lt_prog_compiler_can_build_shared=no
13559       ;;
13560
13561     uts4*)
13562       lt_prog_compiler_pic='-pic'
13563       lt_prog_compiler_static='-Bstatic'
13564       ;;
13565
13566     *)
13567       lt_prog_compiler_can_build_shared=no
13568       ;;
13569     esac
13570   fi
13571
13572 case $host_os in
13573   # For platforms that do not support PIC, -DPIC is meaningless:
13574   *djgpp*)
13575     lt_prog_compiler_pic=
13576     ;;
13577   *)
13578     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13579     ;;
13580 esac
13581
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13583 printf %s "checking for $compiler option to produce PIC... " >&6; }
13584 if test ${lt_cv_prog_compiler_pic+y}
13585 then :
13586   printf %s "(cached) " >&6
13587 else $as_nop
13588   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13589 fi
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13591 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13592 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13593
13594 #
13595 # Check to make sure the PIC flag actually works.
13596 #
13597 if test -n "$lt_prog_compiler_pic"; then
13598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13599 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13600 if test ${lt_cv_prog_compiler_pic_works+y}
13601 then :
13602   printf %s "(cached) " >&6
13603 else $as_nop
13604   lt_cv_prog_compiler_pic_works=no
13605    ac_outfile=conftest.$ac_objext
13606    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13607    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13608    # Insert the option either (1) after the last *FLAGS variable, or
13609    # (2) before a word containing "conftest.", or (3) at the end.
13610    # Note that $ac_compile itself does not contain backslashes and begins
13611    # with a dollar sign (not a hyphen), so the echo should work correctly.
13612    # The option is referenced via a variable to avoid confusing sed.
13613    lt_compile=`echo "$ac_compile" | $SED \
13614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13616    -e 's:$: $lt_compiler_flag:'`
13617    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13618    (eval "$lt_compile" 2>conftest.err)
13619    ac_status=$?
13620    cat conftest.err >&5
13621    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622    if (exit $ac_status) && test -s "$ac_outfile"; then
13623      # The compiler can only warn and ignore the option if not recognized
13624      # So say no if there are warnings other than the usual output.
13625      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13626      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13627      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13628        lt_cv_prog_compiler_pic_works=yes
13629      fi
13630    fi
13631    $RM conftest*
13632
13633 fi
13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13635 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13636
13637 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13638     case $lt_prog_compiler_pic in
13639      "" | " "*) ;;
13640      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13641      esac
13642 else
13643     lt_prog_compiler_pic=
13644      lt_prog_compiler_can_build_shared=no
13645 fi
13646
13647 fi
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 #
13660 # Check to make sure the static flag actually works.
13661 #
13662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13664 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13665 if test ${lt_cv_prog_compiler_static_works+y}
13666 then :
13667   printf %s "(cached) " >&6
13668 else $as_nop
13669   lt_cv_prog_compiler_static_works=no
13670    save_LDFLAGS=$LDFLAGS
13671    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13672    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13674      # The linker can only warn and ignore the option if not recognized
13675      # So say no if there are warnings
13676      if test -s conftest.err; then
13677        # Append any errors to the config.log.
13678        cat conftest.err 1>&5
13679        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13680        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13681        if diff conftest.exp conftest.er2 >/dev/null; then
13682          lt_cv_prog_compiler_static_works=yes
13683        fi
13684      else
13685        lt_cv_prog_compiler_static_works=yes
13686      fi
13687    fi
13688    $RM -r conftest*
13689    LDFLAGS=$save_LDFLAGS
13690
13691 fi
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13693 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13694
13695 if test yes = "$lt_cv_prog_compiler_static_works"; then
13696     :
13697 else
13698     lt_prog_compiler_static=
13699 fi
13700
13701
13702
13703
13704
13705
13706
13707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13708 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13709 if test ${lt_cv_prog_compiler_c_o+y}
13710 then :
13711   printf %s "(cached) " >&6
13712 else $as_nop
13713   lt_cv_prog_compiler_c_o=no
13714    $RM -r conftest 2>/dev/null
13715    mkdir conftest
13716    cd conftest
13717    mkdir out
13718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
13720    lt_compiler_flag="-o out/conftest2.$ac_objext"
13721    # Insert the option either (1) after the last *FLAGS variable, or
13722    # (2) before a word containing "conftest.", or (3) at the end.
13723    # Note that $ac_compile itself does not contain backslashes and begins
13724    # with a dollar sign (not a hyphen), so the echo should work correctly.
13725    lt_compile=`echo "$ac_compile" | $SED \
13726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728    -e 's:$: $lt_compiler_flag:'`
13729    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13730    (eval "$lt_compile" 2>out/conftest.err)
13731    ac_status=$?
13732    cat out/conftest.err >&5
13733    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13735    then
13736      # The compiler can only warn and ignore the option if not recognized
13737      # So say no if there are warnings
13738      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13739      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13740      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13741        lt_cv_prog_compiler_c_o=yes
13742      fi
13743    fi
13744    chmod u+w . 2>&5
13745    $RM conftest*
13746    # SGI C++ compiler will create directory out/ii_files/ for
13747    # template instantiation
13748    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13749    $RM out/* && rmdir out
13750    cd ..
13751    $RM -r conftest
13752    $RM conftest*
13753
13754 fi
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13756 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13757
13758
13759
13760
13761
13762
13763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13764 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13765 if test ${lt_cv_prog_compiler_c_o+y}
13766 then :
13767   printf %s "(cached) " >&6
13768 else $as_nop
13769   lt_cv_prog_compiler_c_o=no
13770    $RM -r conftest 2>/dev/null
13771    mkdir conftest
13772    cd conftest
13773    mkdir out
13774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13775
13776    lt_compiler_flag="-o out/conftest2.$ac_objext"
13777    # Insert the option either (1) after the last *FLAGS variable, or
13778    # (2) before a word containing "conftest.", or (3) at the end.
13779    # Note that $ac_compile itself does not contain backslashes and begins
13780    # with a dollar sign (not a hyphen), so the echo should work correctly.
13781    lt_compile=`echo "$ac_compile" | $SED \
13782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13784    -e 's:$: $lt_compiler_flag:'`
13785    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13786    (eval "$lt_compile" 2>out/conftest.err)
13787    ac_status=$?
13788    cat out/conftest.err >&5
13789    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13791    then
13792      # The compiler can only warn and ignore the option if not recognized
13793      # So say no if there are warnings
13794      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13797        lt_cv_prog_compiler_c_o=yes
13798      fi
13799    fi
13800    chmod u+w . 2>&5
13801    $RM conftest*
13802    # SGI C++ compiler will create directory out/ii_files/ for
13803    # template instantiation
13804    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13805    $RM out/* && rmdir out
13806    cd ..
13807    $RM -r conftest
13808    $RM conftest*
13809
13810 fi
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13812 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13813
13814
13815
13816
13817 hard_links=nottested
13818 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13819   # do not overwrite the value of need_locks provided by the user
13820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13821 printf %s "checking if we can lock with hard links... " >&6; }
13822   hard_links=yes
13823   $RM conftest*
13824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13825   touch conftest.a
13826   ln conftest.a conftest.b 2>&5 || hard_links=no
13827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13829 printf "%s\n" "$hard_links" >&6; }
13830   if test no = "$hard_links"; then
13831     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13832 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13833     need_locks=warn
13834   fi
13835 else
13836   need_locks=no
13837 fi
13838
13839
13840
13841
13842
13843
13844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13845 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13846
13847   runpath_var=
13848   allow_undefined_flag=
13849   always_export_symbols=no
13850   archive_cmds=
13851   archive_expsym_cmds=
13852   compiler_needs_object=no
13853   enable_shared_with_static_runtimes=no
13854   export_dynamic_flag_spec=
13855   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13856   hardcode_automatic=no
13857   hardcode_direct=no
13858   hardcode_direct_absolute=no
13859   hardcode_libdir_flag_spec=
13860   hardcode_libdir_separator=
13861   hardcode_minus_L=no
13862   hardcode_shlibpath_var=unsupported
13863   inherit_rpath=no
13864   link_all_deplibs=unknown
13865   module_cmds=
13866   module_expsym_cmds=
13867   old_archive_from_new_cmds=
13868   old_archive_from_expsyms_cmds=
13869   thread_safe_flag_spec=
13870   whole_archive_flag_spec=
13871   # include_expsyms should be a list of space-separated symbols to be *always*
13872   # included in the symbol list
13873   include_expsyms=
13874   # exclude_expsyms can be an extended regexp of symbols to exclude
13875   # it will be wrapped by ' (' and ')$', so one must not match beginning or
13876   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13877   # as well as any symbol that contains 'd'.
13878   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13879   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13880   # platforms (ab)use it in PIC code, but their linkers get confused if
13881   # the symbol is explicitly referenced.  Since portable code cannot
13882   # rely on this symbol name, it's probably fine to never include it in
13883   # preloaded symbol tables.
13884   # Exclude shared library initialization/finalization symbols.
13885   extract_expsyms_cmds=
13886
13887   case $host_os in
13888   cygwin* | mingw* | pw32* | cegcc*)
13889     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13890     # When not using gcc, we currently assume that we are using
13891     # Microsoft Visual C++.
13892     if test yes != "$GCC"; then
13893       with_gnu_ld=no
13894     fi
13895     ;;
13896   interix*)
13897     # we just hope/assume this is gcc and not c89 (= MSVC++)
13898     with_gnu_ld=yes
13899     ;;
13900   openbsd* | bitrig*)
13901     with_gnu_ld=no
13902     ;;
13903   linux* | k*bsd*-gnu | gnu*)
13904     link_all_deplibs=no
13905     ;;
13906   esac
13907
13908   ld_shlibs=yes
13909
13910   # On some targets, GNU ld is compatible enough with the native linker
13911   # that we're better off using the native interface for both.
13912   lt_use_gnu_ld_interface=no
13913   if test yes = "$with_gnu_ld"; then
13914     case $host_os in
13915       aix*)
13916         # The AIX port of GNU ld has always aspired to compatibility
13917         # with the native linker.  However, as the warning in the GNU ld
13918         # block says, versions before 2.19.5* couldn't really create working
13919         # shared libraries, regardless of the interface used.
13920         case `$LD -v 2>&1` in
13921           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13922           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13923           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13924           *)
13925             lt_use_gnu_ld_interface=yes
13926             ;;
13927         esac
13928         ;;
13929       *)
13930         lt_use_gnu_ld_interface=yes
13931         ;;
13932     esac
13933   fi
13934
13935   if test yes = "$lt_use_gnu_ld_interface"; then
13936     # If archive_cmds runs LD, not CC, wlarc should be empty
13937     wlarc='$wl'
13938
13939     # Set some defaults for GNU ld with shared library support. These
13940     # are reset later if shared libraries are not supported. Putting them
13941     # here allows them to be overridden if necessary.
13942     runpath_var=LD_RUN_PATH
13943     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13944     export_dynamic_flag_spec='$wl--export-dynamic'
13945     # ancient GNU ld didn't support --whole-archive et. al.
13946     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13947       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13948     else
13949       whole_archive_flag_spec=
13950     fi
13951     supports_anon_versioning=no
13952     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13953       *GNU\ gold*) supports_anon_versioning=yes ;;
13954       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13955       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13956       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13957       *\ 2.11.*) ;; # other 2.11 versions
13958       *) supports_anon_versioning=yes ;;
13959     esac
13960
13961     # See if GNU ld supports shared libraries.
13962     case $host_os in
13963     aix[3-9]*)
13964       # On AIX/PPC, the GNU linker is very broken
13965       if test ia64 != "$host_cpu"; then
13966         ld_shlibs=no
13967         cat <<_LT_EOF 1>&2
13968
13969 *** Warning: the GNU linker, at least up to release 2.19, is reported
13970 *** to be unable to reliably create shared libraries on AIX.
13971 *** Therefore, libtool is disabling shared libraries support.  If you
13972 *** really care for shared libraries, you may want to install binutils
13973 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13974 *** You will then need to restart the configuration process.
13975
13976 _LT_EOF
13977       fi
13978       ;;
13979
13980     amigaos*)
13981       case $host_cpu in
13982       powerpc)
13983             # see comment about AmigaOS4 .so support
13984             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13985             archive_expsym_cmds=''
13986         ;;
13987       m68k)
13988             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)'
13989             hardcode_libdir_flag_spec='-L$libdir'
13990             hardcode_minus_L=yes
13991         ;;
13992       esac
13993       ;;
13994
13995     beos*)
13996       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13997         allow_undefined_flag=unsupported
13998         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13999         # support --undefined.  This deserves some investigation.  FIXME
14000         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14001       else
14002         ld_shlibs=no
14003       fi
14004       ;;
14005
14006     cygwin* | mingw* | pw32* | cegcc*)
14007       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14008       # as there is no search path for DLLs.
14009       hardcode_libdir_flag_spec='-L$libdir'
14010       export_dynamic_flag_spec='$wl--export-all-symbols'
14011       allow_undefined_flag=unsupported
14012       always_export_symbols=no
14013       enable_shared_with_static_runtimes=yes
14014       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'
14015       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14016
14017       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14018         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14019         # If the export-symbols file already is a .def file, use it as
14020         # is; otherwise, prepend EXPORTS...
14021         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14022           cp $export_symbols $output_objdir/$soname.def;
14023         else
14024           echo EXPORTS > $output_objdir/$soname.def;
14025           cat $export_symbols >> $output_objdir/$soname.def;
14026         fi~
14027         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14028       else
14029         ld_shlibs=no
14030       fi
14031       ;;
14032
14033     haiku*)
14034       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14035       link_all_deplibs=yes
14036       ;;
14037
14038     os2*)
14039       hardcode_libdir_flag_spec='-L$libdir'
14040       hardcode_minus_L=yes
14041       allow_undefined_flag=unsupported
14042       shrext_cmds=.dll
14043       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14044         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14045         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14046         $ECHO EXPORTS >> $output_objdir/$libname.def~
14047         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14048         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14049         emximp -o $lib $output_objdir/$libname.def'
14050       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14051         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14052         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14053         $ECHO EXPORTS >> $output_objdir/$libname.def~
14054         prefix_cmds="$SED"~
14055         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14056           prefix_cmds="$prefix_cmds -e 1d";
14057         fi~
14058         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14059         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14060         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14061         emximp -o $lib $output_objdir/$libname.def'
14062       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14063       enable_shared_with_static_runtimes=yes
14064       ;;
14065
14066     interix[3-9]*)
14067       hardcode_direct=no
14068       hardcode_shlibpath_var=no
14069       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14070       export_dynamic_flag_spec='$wl-E'
14071       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14072       # Instead, shared libraries are loaded at an image base (0x10000000 by
14073       # default) and relocated if they conflict, which is a slow very memory
14074       # consuming and fragmenting process.  To avoid this, we pick a random,
14075       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14076       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14077       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14078       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'
14079       ;;
14080
14081     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14082       tmp_diet=no
14083       if test linux-dietlibc = "$host_os"; then
14084         case $cc_basename in
14085           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14086         esac
14087       fi
14088       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14089          && test no = "$tmp_diet"
14090       then
14091         tmp_addflag=' $pic_flag'
14092         tmp_sharedflag='-shared'
14093         case $cc_basename,$host_cpu in
14094         pgcc*)                          # Portland Group C compiler
14095           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'
14096           tmp_addflag=' $pic_flag'
14097           ;;
14098         pgf77* | pgf90* | pgf95* | pgfortran*)
14099                                         # Portland Group f77 and f90 compilers
14100           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'
14101           tmp_addflag=' $pic_flag -Mnomain' ;;
14102         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14103           tmp_addflag=' -i_dynamic' ;;
14104         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14105           tmp_addflag=' -i_dynamic -nofor_main' ;;
14106         ifc* | ifort*)                  # Intel Fortran compiler
14107           tmp_addflag=' -nofor_main' ;;
14108         lf95*)                          # Lahey Fortran 8.1
14109           whole_archive_flag_spec=
14110           tmp_sharedflag='--shared' ;;
14111         nagfor*)                        # NAGFOR 5.3
14112           tmp_sharedflag='-Wl,-shared' ;;
14113         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14114           tmp_sharedflag='-qmkshrobj'
14115           tmp_addflag= ;;
14116         nvcc*)  # Cuda Compiler Driver 2.2
14117           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'
14118           compiler_needs_object=yes
14119           ;;
14120         esac
14121         case `$CC -V 2>&1 | sed 5q` in
14122         *Sun\ C*)                       # Sun C 5.9
14123           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'
14124           compiler_needs_object=yes
14125           tmp_sharedflag='-G' ;;
14126         *Sun\ F*)                       # Sun Fortran 8.3
14127           tmp_sharedflag='-G' ;;
14128         esac
14129         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14130
14131         if test yes = "$supports_anon_versioning"; then
14132           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14133             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14134             echo "local: *; };" >> $output_objdir/$libname.ver~
14135             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14136         fi
14137
14138         case $cc_basename in
14139         tcc*)
14140           export_dynamic_flag_spec='-rdynamic'
14141           ;;
14142         xlf* | bgf* | bgxlf* | mpixlf*)
14143           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14144           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14145           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14146           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14147           if test yes = "$supports_anon_versioning"; then
14148             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14149               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14150               echo "local: *; };" >> $output_objdir/$libname.ver~
14151               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14152           fi
14153           ;;
14154         esac
14155       else
14156         ld_shlibs=no
14157       fi
14158       ;;
14159
14160     netbsd* | netbsdelf*-gnu)
14161       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14163         wlarc=
14164       else
14165         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14166         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14167       fi
14168       ;;
14169
14170     solaris*)
14171       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14172         ld_shlibs=no
14173         cat <<_LT_EOF 1>&2
14174
14175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14176 *** create shared libraries on Solaris systems.  Therefore, libtool
14177 *** is disabling shared libraries support.  We urge you to upgrade GNU
14178 *** binutils to release 2.9.1 or newer.  Another option is to modify
14179 *** your PATH or compiler configuration so that the native linker is
14180 *** used, and then restart.
14181
14182 _LT_EOF
14183       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14184         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14185         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14186       else
14187         ld_shlibs=no
14188       fi
14189       ;;
14190
14191     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14192       case `$LD -v 2>&1` in
14193         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14194         ld_shlibs=no
14195         cat <<_LT_EOF 1>&2
14196
14197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14198 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14199 *** is disabling shared libraries support.  We urge you to upgrade GNU
14200 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14201 *** your PATH or compiler configuration so that the native linker is
14202 *** used, and then restart.
14203
14204 _LT_EOF
14205         ;;
14206         *)
14207           # For security reasons, it is highly recommended that you always
14208           # use absolute paths for naming shared libraries, and exclude the
14209           # DT_RUNPATH tag from executables and libraries.  But doing so
14210           # requires that you compile everything twice, which is a pain.
14211           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14212             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14213             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14214             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14215           else
14216             ld_shlibs=no
14217           fi
14218         ;;
14219       esac
14220       ;;
14221
14222     sunos4*)
14223       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14224       wlarc=
14225       hardcode_direct=yes
14226       hardcode_shlibpath_var=no
14227       ;;
14228
14229     *)
14230       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14231         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14232         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14233       else
14234         ld_shlibs=no
14235       fi
14236       ;;
14237     esac
14238
14239     if test no = "$ld_shlibs"; then
14240       runpath_var=
14241       hardcode_libdir_flag_spec=
14242       export_dynamic_flag_spec=
14243       whole_archive_flag_spec=
14244     fi
14245   else
14246     # PORTME fill in a description of your system's linker (not GNU ld)
14247     case $host_os in
14248     aix3*)
14249       allow_undefined_flag=unsupported
14250       always_export_symbols=yes
14251       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'
14252       # Note: this linker hardcodes the directories in LIBPATH if there
14253       # are no directories specified by -L.
14254       hardcode_minus_L=yes
14255       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14256         # Neither direct hardcoding nor static linking is supported with a
14257         # broken collect2.
14258         hardcode_direct=unsupported
14259       fi
14260       ;;
14261
14262     aix[4-9]*)
14263       if test ia64 = "$host_cpu"; then
14264         # On IA64, the linker does run time linking by default, so we don't
14265         # have to do anything special.
14266         aix_use_runtimelinking=no
14267         exp_sym_flag='-Bexport'
14268         no_entry_flag=
14269       else
14270         # If we're using GNU nm, then we don't want the "-C" option.
14271         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14272         # Without the "-l" option, or with the "-B" option, AIX nm treats
14273         # weak defined symbols like other global defined symbols, whereas
14274         # GNU nm marks them as "W".
14275         # While the 'weak' keyword is ignored in the Export File, we need
14276         # it in the Import File for the 'aix-soname' feature, so we have
14277         # to replace the "-B" option with "-P" for AIX nm.
14278         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14279           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'
14280         else
14281           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'
14282         fi
14283         aix_use_runtimelinking=no
14284
14285         # Test if we are trying to use run time linking or normal
14286         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14287         # have runtime linking enabled, and use it for executables.
14288         # For shared libraries, we enable/disable runtime linking
14289         # depending on the kind of the shared library created -
14290         # when "with_aix_soname,aix_use_runtimelinking" is:
14291         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14292         # "aix,yes"  lib.so          shared, rtl:yes, for executables
14293         #            lib.a           static archive
14294         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14295         #            lib.a(lib.so.V) shared, rtl:no,  for executables
14296         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14297         #            lib.a(lib.so.V) shared, rtl:no
14298         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14299         #            lib.a           static archive
14300         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14301           for ld_flag in $LDFLAGS; do
14302           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14303             aix_use_runtimelinking=yes
14304             break
14305           fi
14306           done
14307           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14308             # With aix-soname=svr4, we create the lib.so.V shared archives only,
14309             # so we don't have lib.a shared libs to link our executables.
14310             # We have to force runtime linking in this case.
14311             aix_use_runtimelinking=yes
14312             LDFLAGS="$LDFLAGS -Wl,-brtl"
14313           fi
14314           ;;
14315         esac
14316
14317         exp_sym_flag='-bexport'
14318         no_entry_flag='-bnoentry'
14319       fi
14320
14321       # When large executables or shared objects are built, AIX ld can
14322       # have problems creating the table of contents.  If linking a library
14323       # or program results in "error TOC overflow" add -mminimal-toc to
14324       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14325       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14326
14327       archive_cmds=''
14328       hardcode_direct=yes
14329       hardcode_direct_absolute=yes
14330       hardcode_libdir_separator=':'
14331       link_all_deplibs=yes
14332       file_list_spec='$wl-f,'
14333       case $with_aix_soname,$aix_use_runtimelinking in
14334       aix,*) ;; # traditional, no import file
14335       svr4,* | *,yes) # use import file
14336         # The Import File defines what to hardcode.
14337         hardcode_direct=no
14338         hardcode_direct_absolute=no
14339         ;;
14340       esac
14341
14342       if test yes = "$GCC"; then
14343         case $host_os in aix4.[012]|aix4.[012].*)
14344         # We only want to do this on AIX 4.2 and lower, the check
14345         # below for broken collect2 doesn't work under 4.3+
14346           collect2name=`$CC -print-prog-name=collect2`
14347           if test -f "$collect2name" &&
14348            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14349           then
14350           # We have reworked collect2
14351           :
14352           else
14353           # We have old collect2
14354           hardcode_direct=unsupported
14355           # It fails to find uninstalled libraries when the uninstalled
14356           # path is not listed in the libpath.  Setting hardcode_minus_L
14357           # to unsupported forces relinking
14358           hardcode_minus_L=yes
14359           hardcode_libdir_flag_spec='-L$libdir'
14360           hardcode_libdir_separator=
14361           fi
14362           ;;
14363         esac
14364         shared_flag='-shared'
14365         if test yes = "$aix_use_runtimelinking"; then
14366           shared_flag="$shared_flag "'$wl-G'
14367         fi
14368         # Need to ensure runtime linking is disabled for the traditional
14369         # shared library, or the linker may eventually find shared libraries
14370         # /with/ Import File - we do not want to mix them.
14371         shared_flag_aix='-shared'
14372         shared_flag_svr4='-shared $wl-G'
14373       else
14374         # not using gcc
14375         if test ia64 = "$host_cpu"; then
14376         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14377         # chokes on -Wl,-G. The following line is correct:
14378           shared_flag='-G'
14379         else
14380           if test yes = "$aix_use_runtimelinking"; then
14381             shared_flag='$wl-G'
14382           else
14383             shared_flag='$wl-bM:SRE'
14384           fi
14385           shared_flag_aix='$wl-bM:SRE'
14386           shared_flag_svr4='$wl-G'
14387         fi
14388       fi
14389
14390       export_dynamic_flag_spec='$wl-bexpall'
14391       # It seems that -bexpall does not export symbols beginning with
14392       # underscore (_), so it is better to generate a list of symbols to export.
14393       always_export_symbols=yes
14394       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14395         # Warning - without using the other runtime loading flags (-brtl),
14396         # -berok will link without error, but may produce a broken library.
14397         allow_undefined_flag='-berok'
14398         # Determine the default libpath from the value encoded in an
14399         # empty executable.
14400         if test set = "${lt_cv_aix_libpath+set}"; then
14401   aix_libpath=$lt_cv_aix_libpath
14402 else
14403   if test ${lt_cv_aix_libpath_+y}
14404 then :
14405   printf %s "(cached) " >&6
14406 else $as_nop
14407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409
14410 int
14411 main (void)
14412 {
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"
14419 then :
14420
14421   lt_aix_libpath_sed='
14422       /Import File Strings/,/^$/ {
14423           /^0/ {
14424               s/^0  *\([^ ]*\) *$/\1/
14425               p
14426           }
14427       }'
14428   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14429   # Check for a 64-bit object if we didn't find anything.
14430   if test -z "$lt_cv_aix_libpath_"; then
14431     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14432   fi
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14435     conftest$ac_exeext conftest.$ac_ext
14436   if test -z "$lt_cv_aix_libpath_"; then
14437     lt_cv_aix_libpath_=/usr/lib:/lib
14438   fi
14439
14440 fi
14441
14442   aix_libpath=$lt_cv_aix_libpath_
14443 fi
14444
14445         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14446         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
14447       else
14448         if test ia64 = "$host_cpu"; then
14449           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14450           allow_undefined_flag="-z nodefs"
14451           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"
14452         else
14453          # Determine the default libpath from the value encoded in an
14454          # empty executable.
14455          if test set = "${lt_cv_aix_libpath+set}"; then
14456   aix_libpath=$lt_cv_aix_libpath
14457 else
14458   if test ${lt_cv_aix_libpath_+y}
14459 then :
14460   printf %s "(cached) " >&6
14461 else $as_nop
14462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h.  */
14464
14465 int
14466 main (void)
14467 {
14468
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"
14474 then :
14475
14476   lt_aix_libpath_sed='
14477       /Import File Strings/,/^$/ {
14478           /^0/ {
14479               s/^0  *\([^ ]*\) *$/\1/
14480               p
14481           }
14482       }'
14483   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14484   # Check for a 64-bit object if we didn't find anything.
14485   if test -z "$lt_cv_aix_libpath_"; then
14486     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14487   fi
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14490     conftest$ac_exeext conftest.$ac_ext
14491   if test -z "$lt_cv_aix_libpath_"; then
14492     lt_cv_aix_libpath_=/usr/lib:/lib
14493   fi
14494
14495 fi
14496
14497   aix_libpath=$lt_cv_aix_libpath_
14498 fi
14499
14500          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14501           # Warning - without using the other run time loading flags,
14502           # -berok will link without error, but may produce a broken library.
14503           no_undefined_flag=' $wl-bernotok'
14504           allow_undefined_flag=' $wl-berok'
14505           if test yes = "$with_gnu_ld"; then
14506             # We only use this code for GNU lds that support --whole-archive.
14507             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14508           else
14509             # Exported symbols can be pulled into shared objects from archives
14510             whole_archive_flag_spec='$convenience'
14511           fi
14512           archive_cmds_need_lc=yes
14513           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14514           # -brtl affects multiple linker settings, -berok does not and is overridden later
14515           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14516           if test svr4 != "$with_aix_soname"; then
14517             # This is similar to how AIX traditionally builds its shared libraries.
14518             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'
14519           fi
14520           if test aix != "$with_aix_soname"; then
14521             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'
14522           else
14523             # used by -dlpreopen to get the symbols
14524             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14525           fi
14526           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14527         fi
14528       fi
14529       ;;
14530
14531     amigaos*)
14532       case $host_cpu in
14533       powerpc)
14534             # see comment about AmigaOS4 .so support
14535             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14536             archive_expsym_cmds=''
14537         ;;
14538       m68k)
14539             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)'
14540             hardcode_libdir_flag_spec='-L$libdir'
14541             hardcode_minus_L=yes
14542         ;;
14543       esac
14544       ;;
14545
14546     bsdi[45]*)
14547       export_dynamic_flag_spec=-rdynamic
14548       ;;
14549
14550     cygwin* | mingw* | pw32* | cegcc*)
14551       # When not using gcc, we currently assume that we are using
14552       # Microsoft Visual C++.
14553       # hardcode_libdir_flag_spec is actually meaningless, as there is
14554       # no search path for DLLs.
14555       case $cc_basename in
14556       cl*)
14557         # Native MSVC
14558         hardcode_libdir_flag_spec=' '
14559         allow_undefined_flag=unsupported
14560         always_export_symbols=yes
14561         file_list_spec='@'
14562         # Tell ltmain to make .lib files, not .a files.
14563         libext=lib
14564         # Tell ltmain to make .dll files, not .so files.
14565         shrext_cmds=.dll
14566         # FIXME: Setting linknames here is a bad hack.
14567         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14568         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14569             cp "$export_symbols" "$output_objdir/$soname.def";
14570             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14571           else
14572             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14573           fi~
14574           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14575           linknames='
14576         # The linker will not automatically build a static lib if we build a DLL.
14577         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14578         enable_shared_with_static_runtimes=yes
14579         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14580         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14581         # Don't use ranlib
14582         old_postinstall_cmds='chmod 644 $oldlib'
14583         postlink_cmds='lt_outputfile="@OUTPUT@"~
14584           lt_tool_outputfile="@TOOL_OUTPUT@"~
14585           case $lt_outputfile in
14586             *.exe|*.EXE) ;;
14587             *)
14588               lt_outputfile=$lt_outputfile.exe
14589               lt_tool_outputfile=$lt_tool_outputfile.exe
14590               ;;
14591           esac~
14592           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14593             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14594             $RM "$lt_outputfile.manifest";
14595           fi'
14596         ;;
14597       *)
14598         # Assume MSVC wrapper
14599         hardcode_libdir_flag_spec=' '
14600         allow_undefined_flag=unsupported
14601         # Tell ltmain to make .lib files, not .a files.
14602         libext=lib
14603         # Tell ltmain to make .dll files, not .so files.
14604         shrext_cmds=.dll
14605         # FIXME: Setting linknames here is a bad hack.
14606         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14607         # The linker will automatically build a .lib file if we build a DLL.
14608         old_archive_from_new_cmds='true'
14609         # FIXME: Should let the user specify the lib program.
14610         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14611         enable_shared_with_static_runtimes=yes
14612         ;;
14613       esac
14614       ;;
14615
14616     darwin* | rhapsody*)
14617
14618
14619   archive_cmds_need_lc=no
14620   hardcode_direct=no
14621   hardcode_automatic=yes
14622   hardcode_shlibpath_var=unsupported
14623   if test yes = "$lt_cv_ld_force_load"; then
14624     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\"`'
14625
14626   else
14627     whole_archive_flag_spec=''
14628   fi
14629   link_all_deplibs=yes
14630   allow_undefined_flag=$_lt_dar_allow_undefined
14631   case $cc_basename in
14632      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14633      *) _lt_dar_can_shared=$GCC ;;
14634   esac
14635   if test yes = "$_lt_dar_can_shared"; then
14636     output_verbose_link_cmd=func_echo_all
14637     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14638     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14639     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"
14640     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"
14641
14642   else
14643   ld_shlibs=no
14644   fi
14645
14646       ;;
14647
14648     dgux*)
14649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650       hardcode_libdir_flag_spec='-L$libdir'
14651       hardcode_shlibpath_var=no
14652       ;;
14653
14654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14655     # support.  Future versions do this automatically, but an explicit c++rt0.o
14656     # does not break anything, and helps significantly (at the cost of a little
14657     # extra space).
14658     freebsd2.2*)
14659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14660       hardcode_libdir_flag_spec='-R$libdir'
14661       hardcode_direct=yes
14662       hardcode_shlibpath_var=no
14663       ;;
14664
14665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14666     freebsd2.*)
14667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14668       hardcode_direct=yes
14669       hardcode_minus_L=yes
14670       hardcode_shlibpath_var=no
14671       ;;
14672
14673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14674     freebsd* | dragonfly*)
14675       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14676       hardcode_libdir_flag_spec='-R$libdir'
14677       hardcode_direct=yes
14678       hardcode_shlibpath_var=no
14679       ;;
14680
14681     hpux9*)
14682       if test yes = "$GCC"; then
14683         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'
14684       else
14685         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'
14686       fi
14687       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14688       hardcode_libdir_separator=:
14689       hardcode_direct=yes
14690
14691       # hardcode_minus_L: Not really in the search PATH,
14692       # but as the default location of the library.
14693       hardcode_minus_L=yes
14694       export_dynamic_flag_spec='$wl-E'
14695       ;;
14696
14697     hpux10*)
14698       if test yes,no = "$GCC,$with_gnu_ld"; then
14699         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14700       else
14701         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14702       fi
14703       if test no = "$with_gnu_ld"; then
14704         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14705         hardcode_libdir_separator=:
14706         hardcode_direct=yes
14707         hardcode_direct_absolute=yes
14708         export_dynamic_flag_spec='$wl-E'
14709         # hardcode_minus_L: Not really in the search PATH,
14710         # but as the default location of the library.
14711         hardcode_minus_L=yes
14712       fi
14713       ;;
14714
14715     hpux11*)
14716       if test yes,no = "$GCC,$with_gnu_ld"; then
14717         case $host_cpu in
14718         hppa*64*)
14719           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14720           ;;
14721         ia64*)
14722           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14723           ;;
14724         *)
14725           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14726           ;;
14727         esac
14728       else
14729         case $host_cpu in
14730         hppa*64*)
14731           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14732           ;;
14733         ia64*)
14734           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14735           ;;
14736         *)
14737
14738           # Older versions of the 11.00 compiler do not understand -b yet
14739           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14740           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14741 printf %s "checking if $CC understands -b... " >&6; }
14742 if test ${lt_cv_prog_compiler__b+y}
14743 then :
14744   printf %s "(cached) " >&6
14745 else $as_nop
14746   lt_cv_prog_compiler__b=no
14747    save_LDFLAGS=$LDFLAGS
14748    LDFLAGS="$LDFLAGS -b"
14749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14751      # The linker can only warn and ignore the option if not recognized
14752      # So say no if there are warnings
14753      if test -s conftest.err; then
14754        # Append any errors to the config.log.
14755        cat conftest.err 1>&5
14756        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758        if diff conftest.exp conftest.er2 >/dev/null; then
14759          lt_cv_prog_compiler__b=yes
14760        fi
14761      else
14762        lt_cv_prog_compiler__b=yes
14763      fi
14764    fi
14765    $RM -r conftest*
14766    LDFLAGS=$save_LDFLAGS
14767
14768 fi
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14770 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14771
14772 if test yes = "$lt_cv_prog_compiler__b"; then
14773     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14774 else
14775     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14776 fi
14777
14778           ;;
14779         esac
14780       fi
14781       if test no = "$with_gnu_ld"; then
14782         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14783         hardcode_libdir_separator=:
14784
14785         case $host_cpu in
14786         hppa*64*|ia64*)
14787           hardcode_direct=no
14788           hardcode_shlibpath_var=no
14789           ;;
14790         *)
14791           hardcode_direct=yes
14792           hardcode_direct_absolute=yes
14793           export_dynamic_flag_spec='$wl-E'
14794
14795           # hardcode_minus_L: Not really in the search PATH,
14796           # but as the default location of the library.
14797           hardcode_minus_L=yes
14798           ;;
14799         esac
14800       fi
14801       ;;
14802
14803     irix5* | irix6* | nonstopux*)
14804       if test yes = "$GCC"; then
14805         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'
14806         # Try to use the -exported_symbol ld option, if it does not
14807         # work, assume that -exports_file does not work either and
14808         # implicitly export all symbols.
14809         # This should be the same for all languages, so no per-tag cache variable.
14810         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14811 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14812 if test ${lt_cv_irix_exported_symbol+y}
14813 then :
14814   printf %s "(cached) " >&6
14815 else $as_nop
14816   save_LDFLAGS=$LDFLAGS
14817            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14818            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h.  */
14820 int foo (void) { return 0; }
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"
14823 then :
14824   lt_cv_irix_exported_symbol=yes
14825 else $as_nop
14826   lt_cv_irix_exported_symbol=no
14827 fi
14828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14829     conftest$ac_exeext conftest.$ac_ext
14830            LDFLAGS=$save_LDFLAGS
14831 fi
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14833 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14834         if test yes = "$lt_cv_irix_exported_symbol"; then
14835           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'
14836         fi
14837         link_all_deplibs=no
14838       else
14839         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'
14840         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'
14841       fi
14842       archive_cmds_need_lc='no'
14843       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14844       hardcode_libdir_separator=:
14845       inherit_rpath=yes
14846       link_all_deplibs=yes
14847       ;;
14848
14849     linux*)
14850       case $cc_basename in
14851       tcc*)
14852         # Fabrice Bellard et al's Tiny C Compiler
14853         ld_shlibs=yes
14854         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14855         ;;
14856       esac
14857       ;;
14858
14859     netbsd* | netbsdelf*-gnu)
14860       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14861         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14862       else
14863         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14864       fi
14865       hardcode_libdir_flag_spec='-R$libdir'
14866       hardcode_direct=yes
14867       hardcode_shlibpath_var=no
14868       ;;
14869
14870     newsos6)
14871       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872       hardcode_direct=yes
14873       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14874       hardcode_libdir_separator=:
14875       hardcode_shlibpath_var=no
14876       ;;
14877
14878     *nto* | *qnx*)
14879       ;;
14880
14881     openbsd* | bitrig*)
14882       if test -f /usr/libexec/ld.so; then
14883         hardcode_direct=yes
14884         hardcode_shlibpath_var=no
14885         hardcode_direct_absolute=yes
14886         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14887           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14889           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14890           export_dynamic_flag_spec='$wl-E'
14891         else
14892           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14893           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14894         fi
14895       else
14896         ld_shlibs=no
14897       fi
14898       ;;
14899
14900     os2*)
14901       hardcode_libdir_flag_spec='-L$libdir'
14902       hardcode_minus_L=yes
14903       allow_undefined_flag=unsupported
14904       shrext_cmds=.dll
14905       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14906         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14907         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14908         $ECHO EXPORTS >> $output_objdir/$libname.def~
14909         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14910         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14911         emximp -o $lib $output_objdir/$libname.def'
14912       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14913         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14914         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14915         $ECHO EXPORTS >> $output_objdir/$libname.def~
14916         prefix_cmds="$SED"~
14917         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14918           prefix_cmds="$prefix_cmds -e 1d";
14919         fi~
14920         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14921         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14922         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14923         emximp -o $lib $output_objdir/$libname.def'
14924       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14925       enable_shared_with_static_runtimes=yes
14926       ;;
14927
14928     osf3*)
14929       if test yes = "$GCC"; then
14930         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14931         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'
14932       else
14933         allow_undefined_flag=' -expect_unresolved \*'
14934         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'
14935       fi
14936       archive_cmds_need_lc='no'
14937       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14938       hardcode_libdir_separator=:
14939       ;;
14940
14941     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14942       if test yes = "$GCC"; then
14943         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14944         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'
14945         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14946       else
14947         allow_undefined_flag=' -expect_unresolved \*'
14948         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'
14949         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~
14950           $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'
14951
14952         # Both c and cxx compiler support -rpath directly
14953         hardcode_libdir_flag_spec='-rpath $libdir'
14954       fi
14955       archive_cmds_need_lc='no'
14956       hardcode_libdir_separator=:
14957       ;;
14958
14959     solaris*)
14960       no_undefined_flag=' -z defs'
14961       if test yes = "$GCC"; then
14962         wlarc='$wl'
14963         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14964         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14965           $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'
14966       else
14967         case `$CC -V 2>&1` in
14968         *"Compilers 5.0"*)
14969           wlarc=''
14970           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14972             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14973           ;;
14974         *)
14975           wlarc='$wl'
14976           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14977           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14978             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14979           ;;
14980         esac
14981       fi
14982       hardcode_libdir_flag_spec='-R$libdir'
14983       hardcode_shlibpath_var=no
14984       case $host_os in
14985       solaris2.[0-5] | solaris2.[0-5].*) ;;
14986       *)
14987         # The compiler driver will combine and reorder linker options,
14988         # but understands '-z linker_flag'.  GCC discards it without '$wl',
14989         # but is careful enough not to reorder.
14990         # Supported since Solaris 2.6 (maybe 2.5.1?)
14991         if test yes = "$GCC"; then
14992           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14993         else
14994           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14995         fi
14996         ;;
14997       esac
14998       link_all_deplibs=yes
14999       ;;
15000
15001     sunos4*)
15002       if test sequent = "$host_vendor"; then
15003         # Use $CC to link under sequent, because it throws in some extra .o
15004         # files that make .init and .fini sections work.
15005         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15006       else
15007         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15008       fi
15009       hardcode_libdir_flag_spec='-L$libdir'
15010       hardcode_direct=yes
15011       hardcode_minus_L=yes
15012       hardcode_shlibpath_var=no
15013       ;;
15014
15015     sysv4)
15016       case $host_vendor in
15017         sni)
15018           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019           hardcode_direct=yes # is this really true???
15020         ;;
15021         siemens)
15022           ## LD is ld it makes a PLAMLIB
15023           ## CC just makes a GrossModule.
15024           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15025           reload_cmds='$CC -r -o $output$reload_objs'
15026           hardcode_direct=no
15027         ;;
15028         motorola)
15029           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15030           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15031         ;;
15032       esac
15033       runpath_var='LD_RUN_PATH'
15034       hardcode_shlibpath_var=no
15035       ;;
15036
15037     sysv4.3*)
15038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039       hardcode_shlibpath_var=no
15040       export_dynamic_flag_spec='-Bexport'
15041       ;;
15042
15043     sysv4*MP*)
15044       if test -d /usr/nec; then
15045         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046         hardcode_shlibpath_var=no
15047         runpath_var=LD_RUN_PATH
15048         hardcode_runpath_var=yes
15049         ld_shlibs=yes
15050       fi
15051       ;;
15052
15053     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15054       no_undefined_flag='$wl-z,text'
15055       archive_cmds_need_lc=no
15056       hardcode_shlibpath_var=no
15057       runpath_var='LD_RUN_PATH'
15058
15059       if test yes = "$GCC"; then
15060         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15061         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062       else
15063         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065       fi
15066       ;;
15067
15068     sysv5* | sco3.2v5* | sco5v6*)
15069       # Note: We CANNOT use -z defs as we might desire, because we do not
15070       # link with -lc, and that would cause any symbols used from libc to
15071       # always be unresolved, which means just about no library would
15072       # ever link correctly.  If we're not using GNU ld we use -z text
15073       # though, which does catch some bad symbols but isn't as heavy-handed
15074       # as -z defs.
15075       no_undefined_flag='$wl-z,text'
15076       allow_undefined_flag='$wl-z,nodefs'
15077       archive_cmds_need_lc=no
15078       hardcode_shlibpath_var=no
15079       hardcode_libdir_flag_spec='$wl-R,$libdir'
15080       hardcode_libdir_separator=':'
15081       link_all_deplibs=yes
15082       export_dynamic_flag_spec='$wl-Bexport'
15083       runpath_var='LD_RUN_PATH'
15084
15085       if test yes = "$GCC"; then
15086         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088       else
15089         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15091       fi
15092       ;;
15093
15094     uts4*)
15095       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15096       hardcode_libdir_flag_spec='-L$libdir'
15097       hardcode_shlibpath_var=no
15098       ;;
15099
15100     *)
15101       ld_shlibs=no
15102       ;;
15103     esac
15104
15105     if test sni = "$host_vendor"; then
15106       case $host in
15107       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15108         export_dynamic_flag_spec='$wl-Blargedynsym'
15109         ;;
15110       esac
15111     fi
15112   fi
15113
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15115 printf "%s\n" "$ld_shlibs" >&6; }
15116 test no = "$ld_shlibs" && can_build_shared=no
15117
15118 with_gnu_ld=$with_gnu_ld
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134 #
15135 # Do we need to explicitly link libc?
15136 #
15137 case "x$archive_cmds_need_lc" in
15138 x|xyes)
15139   # Assume -lc should be added
15140   archive_cmds_need_lc=yes
15141
15142   if test yes,yes = "$GCC,$enable_shared"; then
15143     case $archive_cmds in
15144     *'~'*)
15145       # FIXME: we may have to deal with multi-command sequences.
15146       ;;
15147     '$CC '*)
15148       # Test whether the compiler implicitly links with -lc since on some
15149       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150       # to ld, don't add -lc before -lgcc.
15151       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15153 if test ${lt_cv_archive_cmds_need_lc+y}
15154 then :
15155   printf %s "(cached) " >&6
15156 else $as_nop
15157   $RM conftest*
15158         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15159
15160         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15161   (eval $ac_compile) 2>&5
15162   ac_status=$?
15163   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15164   test $ac_status = 0; } 2>conftest.err; then
15165           soname=conftest
15166           lib=conftest
15167           libobjs=conftest.$ac_objext
15168           deplibs=
15169           wl=$lt_prog_compiler_wl
15170           pic_flag=$lt_prog_compiler_pic
15171           compiler_flags=-v
15172           linker_flags=-v
15173           verstring=
15174           output_objdir=.
15175           libname=conftest
15176           lt_save_allow_undefined_flag=$allow_undefined_flag
15177           allow_undefined_flag=
15178           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15179   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15180   ac_status=$?
15181   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15182   test $ac_status = 0; }
15183           then
15184             lt_cv_archive_cmds_need_lc=no
15185           else
15186             lt_cv_archive_cmds_need_lc=yes
15187           fi
15188           allow_undefined_flag=$lt_save_allow_undefined_flag
15189         else
15190           cat conftest.err 1>&5
15191         fi
15192         $RM conftest*
15193
15194 fi
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15196 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15197       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15198       ;;
15199     esac
15200   fi
15201   ;;
15202 esac
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15356 printf %s "checking dynamic linker characteristics... " >&6; }
15357
15358 if test yes = "$GCC"; then
15359   case $host_os in
15360     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15361     *) lt_awk_arg='/^libraries:/' ;;
15362   esac
15363   case $host_os in
15364     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15365     *) lt_sed_strip_eq='s|=/|/|g' ;;
15366   esac
15367   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15368   case $lt_search_path_spec in
15369   *\;*)
15370     # if the path contains ";" then we assume it to be the separator
15371     # otherwise default to the standard path separator (i.e. ":") - it is
15372     # assumed that no part of a normal pathname contains ";" but that should
15373     # okay in the real world where ";" in dirpaths is itself problematic.
15374     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15375     ;;
15376   *)
15377     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15378     ;;
15379   esac
15380   # Ok, now we have the path, separated by spaces, we can step through it
15381   # and add multilib dir if necessary...
15382   lt_tmp_lt_search_path_spec=
15383   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15384   # ...but if some path component already ends with the multilib dir we assume
15385   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15386   case "$lt_multi_os_dir; $lt_search_path_spec " in
15387   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15388     lt_multi_os_dir=
15389     ;;
15390   esac
15391   for lt_sys_path in $lt_search_path_spec; do
15392     if test -d "$lt_sys_path$lt_multi_os_dir"; then
15393       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15394     elif test -n "$lt_multi_os_dir"; then
15395       test -d "$lt_sys_path" && \
15396         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15397     fi
15398   done
15399   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15400 BEGIN {RS = " "; FS = "/|\n";} {
15401   lt_foo = "";
15402   lt_count = 0;
15403   for (lt_i = NF; lt_i > 0; lt_i--) {
15404     if ($lt_i != "" && $lt_i != ".") {
15405       if ($lt_i == "..") {
15406         lt_count++;
15407       } else {
15408         if (lt_count == 0) {
15409           lt_foo = "/" $lt_i lt_foo;
15410         } else {
15411           lt_count--;
15412         }
15413       }
15414     }
15415   }
15416   if (lt_foo != "") { lt_freq[lt_foo]++; }
15417   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15418 }'`
15419   # AWK program above erroneously prepends '/' to C:/dos/paths
15420   # for these hosts.
15421   case $host_os in
15422     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15423       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15424   esac
15425   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15426 else
15427   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15428 fi
15429 library_names_spec=
15430 libname_spec='lib$name'
15431 soname_spec=
15432 shrext_cmds=.so
15433 postinstall_cmds=
15434 postuninstall_cmds=
15435 finish_cmds=
15436 finish_eval=
15437 shlibpath_var=
15438 shlibpath_overrides_runpath=unknown
15439 version_type=none
15440 dynamic_linker="$host_os ld.so"
15441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15442 need_lib_prefix=unknown
15443 hardcode_into_libs=no
15444
15445 # when you set need_version to no, make sure it does not cause -set_version
15446 # flags to be left without arguments
15447 need_version=unknown
15448
15449
15450
15451 case $host_os in
15452 aix3*)
15453   version_type=linux # correct to gnu/linux during the next big refactor
15454   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15455   shlibpath_var=LIBPATH
15456
15457   # AIX 3 has no versioning support, so we append a major version to the name.
15458   soname_spec='$libname$release$shared_ext$major'
15459   ;;
15460
15461 aix[4-9]*)
15462   version_type=linux # correct to gnu/linux during the next big refactor
15463   need_lib_prefix=no
15464   need_version=no
15465   hardcode_into_libs=yes
15466   if test ia64 = "$host_cpu"; then
15467     # AIX 5 supports IA64
15468     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15469     shlibpath_var=LD_LIBRARY_PATH
15470   else
15471     # With GCC up to 2.95.x, collect2 would create an import file
15472     # for dependence libraries.  The import file would start with
15473     # the line '#! .'.  This would cause the generated library to
15474     # depend on '.', always an invalid library.  This was fixed in
15475     # development snapshots of GCC prior to 3.0.
15476     case $host_os in
15477       aix4 | aix4.[01] | aix4.[01].*)
15478       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15479            echo ' yes '
15480            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15481         :
15482       else
15483         can_build_shared=no
15484       fi
15485       ;;
15486     esac
15487     # Using Import Files as archive members, it is possible to support
15488     # filename-based versioning of shared library archives on AIX. While
15489     # this would work for both with and without runtime linking, it will
15490     # prevent static linking of such archives. So we do filename-based
15491     # shared library versioning with .so extension only, which is used
15492     # when both runtime linking and shared linking is enabled.
15493     # Unfortunately, runtime linking may impact performance, so we do
15494     # not want this to be the default eventually. Also, we use the
15495     # versioned .so libs for executables only if there is the -brtl
15496     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15497     # To allow for filename-based versioning support, we need to create
15498     # libNAME.so.V as an archive file, containing:
15499     # *) an Import File, referring to the versioned filename of the
15500     #    archive as well as the shared archive member, telling the
15501     #    bitwidth (32 or 64) of that shared object, and providing the
15502     #    list of exported symbols of that shared object, eventually
15503     #    decorated with the 'weak' keyword
15504     # *) the shared object with the F_LOADONLY flag set, to really avoid
15505     #    it being seen by the linker.
15506     # At run time we better use the real file rather than another symlink,
15507     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15508
15509     case $with_aix_soname,$aix_use_runtimelinking in
15510     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15511     # soname into executable. Probably we can add versioning support to
15512     # collect2, so additional links can be useful in future.
15513     aix,yes) # traditional libtool
15514       dynamic_linker='AIX unversionable lib.so'
15515       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15516       # instead of lib<name>.a to let people know that these are not
15517       # typical AIX shared libraries.
15518       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15519       ;;
15520     aix,no) # traditional AIX only
15521       dynamic_linker='AIX lib.a(lib.so.V)'
15522       # We preserve .a as extension for shared libraries through AIX4.2
15523       # and later when we are not doing run time linking.
15524       library_names_spec='$libname$release.a $libname.a'
15525       soname_spec='$libname$release$shared_ext$major'
15526       ;;
15527     svr4,*) # full svr4 only
15528       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15529       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15530       # We do not specify a path in Import Files, so LIBPATH fires.
15531       shlibpath_overrides_runpath=yes
15532       ;;
15533     *,yes) # both, prefer svr4
15534       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15535       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15536       # unpreferred sharedlib libNAME.a needs extra handling
15537       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"'
15538       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"'
15539       # We do not specify a path in Import Files, so LIBPATH fires.
15540       shlibpath_overrides_runpath=yes
15541       ;;
15542     *,no) # both, prefer aix
15543       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15544       library_names_spec='$libname$release.a $libname.a'
15545       soname_spec='$libname$release$shared_ext$major'
15546       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15547       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)'
15548       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"'
15549       ;;
15550     esac
15551     shlibpath_var=LIBPATH
15552   fi
15553   ;;
15554
15555 amigaos*)
15556   case $host_cpu in
15557   powerpc)
15558     # Since July 2007 AmigaOS4 officially supports .so libraries.
15559     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15560     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15561     ;;
15562   m68k)
15563     library_names_spec='$libname.ixlibrary $libname.a'
15564     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15565     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'
15566     ;;
15567   esac
15568   ;;
15569
15570 beos*)
15571   library_names_spec='$libname$shared_ext'
15572   dynamic_linker="$host_os ld.so"
15573   shlibpath_var=LIBRARY_PATH
15574   ;;
15575
15576 bsdi[45]*)
15577   version_type=linux # correct to gnu/linux during the next big refactor
15578   need_version=no
15579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15580   soname_spec='$libname$release$shared_ext$major'
15581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15582   shlibpath_var=LD_LIBRARY_PATH
15583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15585   # the default ld.so.conf also contains /usr/contrib/lib and
15586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15587   # libtool to hard-code these into programs
15588   ;;
15589
15590 cygwin* | mingw* | pw32* | cegcc*)
15591   version_type=windows
15592   shrext_cmds=.dll
15593   need_version=no
15594   need_lib_prefix=no
15595
15596   case $GCC,$cc_basename in
15597   yes,*)
15598     # gcc
15599     library_names_spec='$libname.dll.a'
15600     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15601     postinstall_cmds='base_file=`basename \$file`~
15602       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15603       dldir=$destdir/`dirname \$dlpath`~
15604       test -d \$dldir || mkdir -p \$dldir~
15605       $install_prog $dir/$dlname \$dldir/$dlname~
15606       chmod a+x \$dldir/$dlname~
15607       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15608         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15609       fi'
15610     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15611       dlpath=$dir/\$dldll~
15612        $RM \$dlpath'
15613     shlibpath_overrides_runpath=yes
15614
15615     case $host_os in
15616     cygwin*)
15617       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15618       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15619
15620       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15621       ;;
15622     mingw* | cegcc*)
15623       # MinGW DLLs use traditional 'lib' prefix
15624       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15625       ;;
15626     pw32*)
15627       # pw32 DLLs use 'pw' prefix rather than 'lib'
15628       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15629       ;;
15630     esac
15631     dynamic_linker='Win32 ld.exe'
15632     ;;
15633
15634   *,cl*)
15635     # Native MSVC
15636     libname_spec='$name'
15637     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15638     library_names_spec='$libname.dll.lib'
15639
15640     case $build_os in
15641     mingw*)
15642       sys_lib_search_path_spec=
15643       lt_save_ifs=$IFS
15644       IFS=';'
15645       for lt_path in $LIB
15646       do
15647         IFS=$lt_save_ifs
15648         # Let DOS variable expansion print the short 8.3 style file name.
15649         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15650         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15651       done
15652       IFS=$lt_save_ifs
15653       # Convert to MSYS style.
15654       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15655       ;;
15656     cygwin*)
15657       # Convert to unix form, then to dos form, then back to unix form
15658       # but this time dos style (no spaces!) so that the unix form looks
15659       # like /cygdrive/c/PROGRA~1:/cygdr...
15660       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15661       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15662       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15663       ;;
15664     *)
15665       sys_lib_search_path_spec=$LIB
15666       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15667         # It is most probably a Windows format PATH.
15668         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15669       else
15670         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15671       fi
15672       # FIXME: find the short name or the path components, as spaces are
15673       # common. (e.g. "Program Files" -> "PROGRA~1")
15674       ;;
15675     esac
15676
15677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15678     postinstall_cmds='base_file=`basename \$file`~
15679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15680       dldir=$destdir/`dirname \$dlpath`~
15681       test -d \$dldir || mkdir -p \$dldir~
15682       $install_prog $dir/$dlname \$dldir/$dlname'
15683     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684       dlpath=$dir/\$dldll~
15685        $RM \$dlpath'
15686     shlibpath_overrides_runpath=yes
15687     dynamic_linker='Win32 link.exe'
15688     ;;
15689
15690   *)
15691     # Assume MSVC wrapper
15692     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15693     dynamic_linker='Win32 ld.exe'
15694     ;;
15695   esac
15696   # FIXME: first we should search . and the directory the executable is in
15697   shlibpath_var=PATH
15698   ;;
15699
15700 darwin* | rhapsody*)
15701   dynamic_linker="$host_os dyld"
15702   version_type=darwin
15703   need_lib_prefix=no
15704   need_version=no
15705   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15706   soname_spec='$libname$release$major$shared_ext'
15707   shlibpath_overrides_runpath=yes
15708   shlibpath_var=DYLD_LIBRARY_PATH
15709   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15710
15711   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15713   ;;
15714
15715 dgux*)
15716   version_type=linux # correct to gnu/linux during the next big refactor
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720   soname_spec='$libname$release$shared_ext$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   ;;
15723
15724 freebsd* | dragonfly*)
15725   # DragonFly does not have aout.  When/if they implement a new
15726   # versioning mechanism, adjust this.
15727   if test -x /usr/bin/objformat; then
15728     objformat=`/usr/bin/objformat`
15729   else
15730     case $host_os in
15731     freebsd[23].*) objformat=aout ;;
15732     *) objformat=elf ;;
15733     esac
15734   fi
15735   version_type=freebsd-$objformat
15736   case $version_type in
15737     freebsd-elf*)
15738       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15739       soname_spec='$libname$release$shared_ext$major'
15740       need_version=no
15741       need_lib_prefix=no
15742       ;;
15743     freebsd-*)
15744       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15745       need_version=yes
15746       ;;
15747   esac
15748   shlibpath_var=LD_LIBRARY_PATH
15749   case $host_os in
15750   freebsd2.*)
15751     shlibpath_overrides_runpath=yes
15752     ;;
15753   freebsd3.[01]* | freebsdelf3.[01]*)
15754     shlibpath_overrides_runpath=yes
15755     hardcode_into_libs=yes
15756     ;;
15757   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15758   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15759     shlibpath_overrides_runpath=no
15760     hardcode_into_libs=yes
15761     ;;
15762   *) # from 4.6 on, and DragonFly
15763     shlibpath_overrides_runpath=yes
15764     hardcode_into_libs=yes
15765     ;;
15766   esac
15767   ;;
15768
15769 haiku*)
15770   version_type=linux # correct to gnu/linux during the next big refactor
15771   need_lib_prefix=no
15772   need_version=no
15773   dynamic_linker="$host_os runtime_loader"
15774   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15775   soname_spec='$libname$release$shared_ext$major'
15776   shlibpath_var=LIBRARY_PATH
15777   shlibpath_overrides_runpath=no
15778   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15779   hardcode_into_libs=yes
15780   ;;
15781
15782 hpux9* | hpux10* | hpux11*)
15783   # Give a soname corresponding to the major version so that dld.sl refuses to
15784   # link against other versions.
15785   version_type=sunos
15786   need_lib_prefix=no
15787   need_version=no
15788   case $host_cpu in
15789   ia64*)
15790     shrext_cmds='.so'
15791     hardcode_into_libs=yes
15792     dynamic_linker="$host_os dld.so"
15793     shlibpath_var=LD_LIBRARY_PATH
15794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15795     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15796     soname_spec='$libname$release$shared_ext$major'
15797     if test 32 = "$HPUX_IA64_MODE"; then
15798       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15799       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15800     else
15801       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15803     fi
15804     ;;
15805   hppa*64*)
15806     shrext_cmds='.sl'
15807     hardcode_into_libs=yes
15808     dynamic_linker="$host_os dld.sl"
15809     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15812     soname_spec='$libname$release$shared_ext$major'
15813     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815     ;;
15816   *)
15817     shrext_cmds='.sl'
15818     dynamic_linker="$host_os dld.sl"
15819     shlibpath_var=SHLIB_PATH
15820     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15822     soname_spec='$libname$release$shared_ext$major'
15823     ;;
15824   esac
15825   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15826   postinstall_cmds='chmod 555 $lib'
15827   # or fails outright, so override atomically:
15828   install_override_mode=555
15829   ;;
15830
15831 interix[3-9]*)
15832   version_type=linux # correct to gnu/linux during the next big refactor
15833   need_lib_prefix=no
15834   need_version=no
15835   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15836   soname_spec='$libname$release$shared_ext$major'
15837   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15838   shlibpath_var=LD_LIBRARY_PATH
15839   shlibpath_overrides_runpath=no
15840   hardcode_into_libs=yes
15841   ;;
15842
15843 irix5* | irix6* | nonstopux*)
15844   case $host_os in
15845     nonstopux*) version_type=nonstopux ;;
15846     *)
15847         if test yes = "$lt_cv_prog_gnu_ld"; then
15848                 version_type=linux # correct to gnu/linux during the next big refactor
15849         else
15850                 version_type=irix
15851         fi ;;
15852   esac
15853   need_lib_prefix=no
15854   need_version=no
15855   soname_spec='$libname$release$shared_ext$major'
15856   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15857   case $host_os in
15858   irix5* | nonstopux*)
15859     libsuff= shlibsuff=
15860     ;;
15861   *)
15862     case $LD in # libtool.m4 will add one of these switches to LD
15863     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15864       libsuff= shlibsuff= libmagic=32-bit;;
15865     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15866       libsuff=32 shlibsuff=N32 libmagic=N32;;
15867     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15868       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15869     *) libsuff= shlibsuff= libmagic=never-match;;
15870     esac
15871     ;;
15872   esac
15873   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15874   shlibpath_overrides_runpath=no
15875   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15876   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15877   hardcode_into_libs=yes
15878   ;;
15879
15880 # No shared lib support for Linux oldld, aout, or coff.
15881 linux*oldld* | linux*aout* | linux*coff*)
15882   dynamic_linker=no
15883   ;;
15884
15885 linux*android*)
15886   version_type=none # Android doesn't support versioned libraries.
15887   need_lib_prefix=no
15888   need_version=no
15889   library_names_spec='$libname$release$shared_ext'
15890   soname_spec='$libname$release$shared_ext'
15891   finish_cmds=
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=yes
15894
15895   # This implies no fast_install, which is unacceptable.
15896   # Some rework will be needed to allow for fast_install
15897   # before this can be enabled.
15898   hardcode_into_libs=yes
15899
15900   dynamic_linker='Android linker'
15901   # Don't embed -rpath directories since the linker doesn't support them.
15902   hardcode_libdir_flag_spec='-L$libdir'
15903   ;;
15904
15905 # This must be glibc/ELF.
15906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15907   version_type=linux # correct to gnu/linux during the next big refactor
15908   need_lib_prefix=no
15909   need_version=no
15910   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15911   soname_spec='$libname$release$shared_ext$major'
15912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15913   shlibpath_var=LD_LIBRARY_PATH
15914   shlibpath_overrides_runpath=no
15915
15916   # Some binutils ld are patched to set DT_RUNPATH
15917   if test ${lt_cv_shlibpath_overrides_runpath+y}
15918 then :
15919   printf %s "(cached) " >&6
15920 else $as_nop
15921   lt_cv_shlibpath_overrides_runpath=no
15922     save_LDFLAGS=$LDFLAGS
15923     save_libdir=$libdir
15924     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15925          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h.  */
15928
15929 int
15930 main (void)
15931 {
15932
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 if ac_fn_c_try_link "$LINENO"
15938 then :
15939   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15940 then :
15941   lt_cv_shlibpath_overrides_runpath=yes
15942 fi
15943 fi
15944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15945     conftest$ac_exeext conftest.$ac_ext
15946     LDFLAGS=$save_LDFLAGS
15947     libdir=$save_libdir
15948
15949 fi
15950
15951   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15952
15953   # This implies no fast_install, which is unacceptable.
15954   # Some rework will be needed to allow for fast_install
15955   # before this can be enabled.
15956   hardcode_into_libs=yes
15957
15958   # Ideally, we could use ldconfig to report *all* directores which are
15959   # searched for libraries, however this is still not possible.  Aside from not
15960   # being certain /sbin/ldconfig is available, command
15961   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15962   # even though it is searched at run-time.  Try to do the best guess by
15963   # appending ld.so.conf contents (and includes) to the search path.
15964   if test -f /etc/ld.so.conf; then
15965     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' ' '`
15966     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15967   fi
15968
15969   # We used to test for /lib/ld.so.1 and disable shared libraries on
15970   # powerpc, because MkLinux only supported shared libraries with the
15971   # GNU dynamic linker.  Since this was broken with cross compilers,
15972   # most powerpc-linux boxes support dynamic linking these days and
15973   # people can always --disable-shared, the test was removed, and we
15974   # assume the GNU/Linux dynamic linker is in use.
15975   dynamic_linker='GNU/Linux ld.so'
15976   ;;
15977
15978 netbsdelf*-gnu)
15979   version_type=linux
15980   need_lib_prefix=no
15981   need_version=no
15982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15983   soname_spec='${libname}${release}${shared_ext}$major'
15984   shlibpath_var=LD_LIBRARY_PATH
15985   shlibpath_overrides_runpath=no
15986   hardcode_into_libs=yes
15987   dynamic_linker='NetBSD ld.elf_so'
15988   ;;
15989
15990 netbsd*)
15991   version_type=sunos
15992   need_lib_prefix=no
15993   need_version=no
15994   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15995     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15996     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15997     dynamic_linker='NetBSD (a.out) ld.so'
15998   else
15999     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000     soname_spec='$libname$release$shared_ext$major'
16001     dynamic_linker='NetBSD ld.elf_so'
16002   fi
16003   shlibpath_var=LD_LIBRARY_PATH
16004   shlibpath_overrides_runpath=yes
16005   hardcode_into_libs=yes
16006   ;;
16007
16008 newsos6)
16009   version_type=linux # correct to gnu/linux during the next big refactor
16010   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=yes
16013   ;;
16014
16015 *nto* | *qnx*)
16016   version_type=qnx
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16020   soname_spec='$libname$release$shared_ext$major'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   shlibpath_overrides_runpath=no
16023   hardcode_into_libs=yes
16024   dynamic_linker='ldqnx.so'
16025   ;;
16026
16027 openbsd* | bitrig*)
16028   version_type=sunos
16029   sys_lib_dlsearch_path_spec=/usr/lib
16030   need_lib_prefix=no
16031   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16032     need_version=no
16033   else
16034     need_version=yes
16035   fi
16036   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16038   shlibpath_var=LD_LIBRARY_PATH
16039   shlibpath_overrides_runpath=yes
16040   ;;
16041
16042 os2*)
16043   libname_spec='$name'
16044   version_type=windows
16045   shrext_cmds=.dll
16046   need_version=no
16047   need_lib_prefix=no
16048   # OS/2 can only load a DLL with a base name of 8 characters or less.
16049   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16050     v=$($ECHO $release$versuffix | tr -d .-);
16051     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16052     $ECHO $n$v`$shared_ext'
16053   library_names_spec='${libname}_dll.$libext'
16054   dynamic_linker='OS/2 ld.exe'
16055   shlibpath_var=BEGINLIBPATH
16056   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16057   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16058   postinstall_cmds='base_file=`basename \$file`~
16059     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16060     dldir=$destdir/`dirname \$dlpath`~
16061     test -d \$dldir || mkdir -p \$dldir~
16062     $install_prog $dir/$dlname \$dldir/$dlname~
16063     chmod a+x \$dldir/$dlname~
16064     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16065       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16066     fi'
16067   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16068     dlpath=$dir/\$dldll~
16069     $RM \$dlpath'
16070   ;;
16071
16072 osf3* | osf4* | osf5*)
16073   version_type=osf
16074   need_lib_prefix=no
16075   need_version=no
16076   soname_spec='$libname$release$shared_ext$major'
16077   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16080   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16081   ;;
16082
16083 rdos*)
16084   dynamic_linker=no
16085   ;;
16086
16087 solaris*)
16088   version_type=linux # correct to gnu/linux during the next big refactor
16089   need_lib_prefix=no
16090   need_version=no
16091   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16092   soname_spec='$libname$release$shared_ext$major'
16093   shlibpath_var=LD_LIBRARY_PATH
16094   shlibpath_overrides_runpath=yes
16095   hardcode_into_libs=yes
16096   # ldd complains unless libraries are executable
16097   postinstall_cmds='chmod +x $lib'
16098   ;;
16099
16100 sunos4*)
16101   version_type=sunos
16102   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16103   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16104   shlibpath_var=LD_LIBRARY_PATH
16105   shlibpath_overrides_runpath=yes
16106   if test yes = "$with_gnu_ld"; then
16107     need_lib_prefix=no
16108   fi
16109   need_version=yes
16110   ;;
16111
16112 sysv4 | sysv4.3*)
16113   version_type=linux # correct to gnu/linux during the next big refactor
16114   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115   soname_spec='$libname$release$shared_ext$major'
16116   shlibpath_var=LD_LIBRARY_PATH
16117   case $host_vendor in
16118     sni)
16119       shlibpath_overrides_runpath=no
16120       need_lib_prefix=no
16121       runpath_var=LD_RUN_PATH
16122       ;;
16123     siemens)
16124       need_lib_prefix=no
16125       ;;
16126     motorola)
16127       need_lib_prefix=no
16128       need_version=no
16129       shlibpath_overrides_runpath=no
16130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16131       ;;
16132   esac
16133   ;;
16134
16135 sysv4*MP*)
16136   if test -d /usr/nec; then
16137     version_type=linux # correct to gnu/linux during the next big refactor
16138     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16139     soname_spec='$libname$shared_ext.$major'
16140     shlibpath_var=LD_LIBRARY_PATH
16141   fi
16142   ;;
16143
16144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16145   version_type=sco
16146   need_lib_prefix=no
16147   need_version=no
16148   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16149   soname_spec='$libname$release$shared_ext$major'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   shlibpath_overrides_runpath=yes
16152   hardcode_into_libs=yes
16153   if test yes = "$with_gnu_ld"; then
16154     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16155   else
16156     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16157     case $host_os in
16158       sco3.2v5*)
16159         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16160         ;;
16161     esac
16162   fi
16163   sys_lib_dlsearch_path_spec='/usr/lib'
16164   ;;
16165
16166 tpf*)
16167   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16168   version_type=linux # correct to gnu/linux during the next big refactor
16169   need_lib_prefix=no
16170   need_version=no
16171   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   shlibpath_overrides_runpath=no
16174   hardcode_into_libs=yes
16175   ;;
16176
16177 uts4*)
16178   version_type=linux # correct to gnu/linux during the next big refactor
16179   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16180   soname_spec='$libname$release$shared_ext$major'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   ;;
16183
16184 *)
16185   dynamic_linker=no
16186   ;;
16187 esac
16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16189 printf "%s\n" "$dynamic_linker" >&6; }
16190 test no = "$dynamic_linker" && can_build_shared=no
16191
16192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16193 if test yes = "$GCC"; then
16194   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16195 fi
16196
16197 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16198   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16199 fi
16200
16201 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16202   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16203 fi
16204
16205 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16206 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16207
16208 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16209 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16210
16211 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16212 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16311 printf %s "checking how to hardcode library paths into programs... " >&6; }
16312 hardcode_action=
16313 if test -n "$hardcode_libdir_flag_spec" ||
16314    test -n "$runpath_var" ||
16315    test yes = "$hardcode_automatic"; then
16316
16317   # We can hardcode non-existent directories.
16318   if test no != "$hardcode_direct" &&
16319      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16320      # have to relink, otherwise we might link with an installed library
16321      # when we should be linking with a yet-to-be-installed one
16322      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16323      test no != "$hardcode_minus_L"; then
16324     # Linking always hardcodes the temporary library directory.
16325     hardcode_action=relink
16326   else
16327     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16328     hardcode_action=immediate
16329   fi
16330 else
16331   # We cannot hardcode anything, or else we can only hardcode existing
16332   # directories.
16333   hardcode_action=unsupported
16334 fi
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16336 printf "%s\n" "$hardcode_action" >&6; }
16337
16338 if test relink = "$hardcode_action" ||
16339    test yes = "$inherit_rpath"; then
16340   # Fast installation is not supported
16341   enable_fast_install=no
16342 elif test yes = "$shlibpath_overrides_runpath" ||
16343      test no = "$enable_shared"; then
16344   # Fast installation is not necessary
16345   enable_fast_install=needless
16346 fi
16347
16348
16349
16350
16351
16352
16353   if test yes != "$enable_dlopen"; then
16354   enable_dlopen=unknown
16355   enable_dlopen_self=unknown
16356   enable_dlopen_self_static=unknown
16357 else
16358   lt_cv_dlopen=no
16359   lt_cv_dlopen_libs=
16360
16361   case $host_os in
16362   beos*)
16363     lt_cv_dlopen=load_add_on
16364     lt_cv_dlopen_libs=
16365     lt_cv_dlopen_self=yes
16366     ;;
16367
16368   mingw* | pw32* | cegcc*)
16369     lt_cv_dlopen=LoadLibrary
16370     lt_cv_dlopen_libs=
16371     ;;
16372
16373   cygwin*)
16374     lt_cv_dlopen=dlopen
16375     lt_cv_dlopen_libs=
16376     ;;
16377
16378   darwin*)
16379     # if libdl is installed we need to link against it
16380     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16381 printf %s "checking for dlopen in -ldl... " >&6; }
16382 if test ${ac_cv_lib_dl_dlopen+y}
16383 then :
16384   printf %s "(cached) " >&6
16385 else $as_nop
16386   ac_check_lib_save_LIBS=$LIBS
16387 LIBS="-ldl  $LIBS"
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h.  */
16390
16391 /* Override any GCC internal prototype to avoid an error.
16392    Use char because int might match the return type of a GCC
16393    builtin and then its argument prototype would still apply.  */
16394 char dlopen ();
16395 int
16396 main (void)
16397 {
16398 return dlopen ();
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 if ac_fn_c_try_link "$LINENO"
16404 then :
16405   ac_cv_lib_dl_dlopen=yes
16406 else $as_nop
16407   ac_cv_lib_dl_dlopen=no
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16410     conftest$ac_exeext conftest.$ac_ext
16411 LIBS=$ac_check_lib_save_LIBS
16412 fi
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16414 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16415 if test "x$ac_cv_lib_dl_dlopen" = xyes
16416 then :
16417   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16418 else $as_nop
16419
16420     lt_cv_dlopen=dyld
16421     lt_cv_dlopen_libs=
16422     lt_cv_dlopen_self=yes
16423
16424 fi
16425
16426     ;;
16427
16428   tpf*)
16429     # Don't try to run any link tests for TPF.  We know it's impossible
16430     # because TPF is a cross-compiler, and we know how we open DSOs.
16431     lt_cv_dlopen=dlopen
16432     lt_cv_dlopen_libs=
16433     lt_cv_dlopen_self=no
16434     ;;
16435
16436   *)
16437     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16438 if test "x$ac_cv_func_shl_load" = xyes
16439 then :
16440   lt_cv_dlopen=shl_load
16441 else $as_nop
16442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16443 printf %s "checking for shl_load in -ldld... " >&6; }
16444 if test ${ac_cv_lib_dld_shl_load+y}
16445 then :
16446   printf %s "(cached) " >&6
16447 else $as_nop
16448   ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-ldld  $LIBS"
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h.  */
16452
16453 /* Override any GCC internal prototype to avoid an error.
16454    Use char because int might match the return type of a GCC
16455    builtin and then its argument prototype would still apply.  */
16456 char shl_load ();
16457 int
16458 main (void)
16459 {
16460 return shl_load ();
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_link "$LINENO"
16466 then :
16467   ac_cv_lib_dld_shl_load=yes
16468 else $as_nop
16469   ac_cv_lib_dld_shl_load=no
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16472     conftest$ac_exeext conftest.$ac_ext
16473 LIBS=$ac_check_lib_save_LIBS
16474 fi
16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16476 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16477 if test "x$ac_cv_lib_dld_shl_load" = xyes
16478 then :
16479   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16480 else $as_nop
16481   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16482 if test "x$ac_cv_func_dlopen" = xyes
16483 then :
16484   lt_cv_dlopen=dlopen
16485 else $as_nop
16486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16487 printf %s "checking for dlopen in -ldl... " >&6; }
16488 if test ${ac_cv_lib_dl_dlopen+y}
16489 then :
16490   printf %s "(cached) " >&6
16491 else $as_nop
16492   ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-ldl  $LIBS"
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h.  */
16496
16497 /* Override any GCC internal prototype to avoid an error.
16498    Use char because int might match the return type of a GCC
16499    builtin and then its argument prototype would still apply.  */
16500 char dlopen ();
16501 int
16502 main (void)
16503 {
16504 return dlopen ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_link "$LINENO"
16510 then :
16511   ac_cv_lib_dl_dlopen=yes
16512 else $as_nop
16513   ac_cv_lib_dl_dlopen=no
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16516     conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16518 fi
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16520 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16521 if test "x$ac_cv_lib_dl_dlopen" = xyes
16522 then :
16523   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16524 else $as_nop
16525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16526 printf %s "checking for dlopen in -lsvld... " >&6; }
16527 if test ${ac_cv_lib_svld_dlopen+y}
16528 then :
16529   printf %s "(cached) " >&6
16530 else $as_nop
16531   ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lsvld  $LIBS"
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h.  */
16535
16536 /* Override any GCC internal prototype to avoid an error.
16537    Use char because int might match the return type of a GCC
16538    builtin and then its argument prototype would still apply.  */
16539 char dlopen ();
16540 int
16541 main (void)
16542 {
16543 return dlopen ();
16544   ;
16545   return 0;
16546 }
16547 _ACEOF
16548 if ac_fn_c_try_link "$LINENO"
16549 then :
16550   ac_cv_lib_svld_dlopen=yes
16551 else $as_nop
16552   ac_cv_lib_svld_dlopen=no
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16555     conftest$ac_exeext conftest.$ac_ext
16556 LIBS=$ac_check_lib_save_LIBS
16557 fi
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16559 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16560 if test "x$ac_cv_lib_svld_dlopen" = xyes
16561 then :
16562   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16563 else $as_nop
16564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16565 printf %s "checking for dld_link in -ldld... " >&6; }
16566 if test ${ac_cv_lib_dld_dld_link+y}
16567 then :
16568   printf %s "(cached) " >&6
16569 else $as_nop
16570   ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-ldld  $LIBS"
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h.  */
16574
16575 /* Override any GCC internal prototype to avoid an error.
16576    Use char because int might match the return type of a GCC
16577    builtin and then its argument prototype would still apply.  */
16578 char dld_link ();
16579 int
16580 main (void)
16581 {
16582 return dld_link ();
16583   ;
16584   return 0;
16585 }
16586 _ACEOF
16587 if ac_fn_c_try_link "$LINENO"
16588 then :
16589   ac_cv_lib_dld_dld_link=yes
16590 else $as_nop
16591   ac_cv_lib_dld_dld_link=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16594     conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16598 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16599 if test "x$ac_cv_lib_dld_dld_link" = xyes
16600 then :
16601   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16602 fi
16603
16604
16605 fi
16606
16607
16608 fi
16609
16610
16611 fi
16612
16613
16614 fi
16615
16616
16617 fi
16618
16619     ;;
16620   esac
16621
16622   if test no = "$lt_cv_dlopen"; then
16623     enable_dlopen=no
16624   else
16625     enable_dlopen=yes
16626   fi
16627
16628   case $lt_cv_dlopen in
16629   dlopen)
16630     save_CPPFLAGS=$CPPFLAGS
16631     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16632
16633     save_LDFLAGS=$LDFLAGS
16634     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16635
16636     save_LIBS=$LIBS
16637     LIBS="$lt_cv_dlopen_libs $LIBS"
16638
16639     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16640 printf %s "checking whether a program can dlopen itself... " >&6; }
16641 if test ${lt_cv_dlopen_self+y}
16642 then :
16643   printf %s "(cached) " >&6
16644 else $as_nop
16645           if test yes = "$cross_compiling"; then :
16646   lt_cv_dlopen_self=cross
16647 else
16648   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16649   lt_status=$lt_dlunknown
16650   cat > conftest.$ac_ext <<_LT_EOF
16651 #line $LINENO "configure"
16652 #include "confdefs.h"
16653
16654 #if HAVE_DLFCN_H
16655 #include <dlfcn.h>
16656 #endif
16657
16658 #include <stdio.h>
16659
16660 #ifdef RTLD_GLOBAL
16661 #  define LT_DLGLOBAL           RTLD_GLOBAL
16662 #else
16663 #  ifdef DL_GLOBAL
16664 #    define LT_DLGLOBAL         DL_GLOBAL
16665 #  else
16666 #    define LT_DLGLOBAL         0
16667 #  endif
16668 #endif
16669
16670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16671    find out it does not work in some platform. */
16672 #ifndef LT_DLLAZY_OR_NOW
16673 #  ifdef RTLD_LAZY
16674 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16675 #  else
16676 #    ifdef DL_LAZY
16677 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16678 #    else
16679 #      ifdef RTLD_NOW
16680 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16681 #      else
16682 #        ifdef DL_NOW
16683 #          define LT_DLLAZY_OR_NOW      DL_NOW
16684 #        else
16685 #          define LT_DLLAZY_OR_NOW      0
16686 #        endif
16687 #      endif
16688 #    endif
16689 #  endif
16690 #endif
16691
16692 /* When -fvisibility=hidden is used, assume the code has been annotated
16693    correspondingly for the symbols needed.  */
16694 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16695 int fnord () __attribute__((visibility("default")));
16696 #endif
16697
16698 int fnord () { return 42; }
16699 int main ()
16700 {
16701   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16702   int status = $lt_dlunknown;
16703
16704   if (self)
16705     {
16706       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16707       else
16708         {
16709           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16710           else puts (dlerror ());
16711         }
16712       /* dlclose (self); */
16713     }
16714   else
16715     puts (dlerror ());
16716
16717   return status;
16718 }
16719 _LT_EOF
16720   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16721   (eval $ac_link) 2>&5
16722   ac_status=$?
16723   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16725     (./conftest; exit; ) >&5 2>/dev/null
16726     lt_status=$?
16727     case x$lt_status in
16728       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16729       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16730       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16731     esac
16732   else :
16733     # compilation failed
16734     lt_cv_dlopen_self=no
16735   fi
16736 fi
16737 rm -fr conftest*
16738
16739
16740 fi
16741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16742 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16743
16744     if test yes = "$lt_cv_dlopen_self"; then
16745       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16746       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16747 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16748 if test ${lt_cv_dlopen_self_static+y}
16749 then :
16750   printf %s "(cached) " >&6
16751 else $as_nop
16752           if test yes = "$cross_compiling"; then :
16753   lt_cv_dlopen_self_static=cross
16754 else
16755   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16756   lt_status=$lt_dlunknown
16757   cat > conftest.$ac_ext <<_LT_EOF
16758 #line $LINENO "configure"
16759 #include "confdefs.h"
16760
16761 #if HAVE_DLFCN_H
16762 #include <dlfcn.h>
16763 #endif
16764
16765 #include <stdio.h>
16766
16767 #ifdef RTLD_GLOBAL
16768 #  define LT_DLGLOBAL           RTLD_GLOBAL
16769 #else
16770 #  ifdef DL_GLOBAL
16771 #    define LT_DLGLOBAL         DL_GLOBAL
16772 #  else
16773 #    define LT_DLGLOBAL         0
16774 #  endif
16775 #endif
16776
16777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16778    find out it does not work in some platform. */
16779 #ifndef LT_DLLAZY_OR_NOW
16780 #  ifdef RTLD_LAZY
16781 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16782 #  else
16783 #    ifdef DL_LAZY
16784 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16785 #    else
16786 #      ifdef RTLD_NOW
16787 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16788 #      else
16789 #        ifdef DL_NOW
16790 #          define LT_DLLAZY_OR_NOW      DL_NOW
16791 #        else
16792 #          define LT_DLLAZY_OR_NOW      0
16793 #        endif
16794 #      endif
16795 #    endif
16796 #  endif
16797 #endif
16798
16799 /* When -fvisibility=hidden is used, assume the code has been annotated
16800    correspondingly for the symbols needed.  */
16801 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16802 int fnord () __attribute__((visibility("default")));
16803 #endif
16804
16805 int fnord () { return 42; }
16806 int main ()
16807 {
16808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16809   int status = $lt_dlunknown;
16810
16811   if (self)
16812     {
16813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16814       else
16815         {
16816           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16817           else puts (dlerror ());
16818         }
16819       /* dlclose (self); */
16820     }
16821   else
16822     puts (dlerror ());
16823
16824   return status;
16825 }
16826 _LT_EOF
16827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16828   (eval $ac_link) 2>&5
16829   ac_status=$?
16830   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16832     (./conftest; exit; ) >&5 2>/dev/null
16833     lt_status=$?
16834     case x$lt_status in
16835       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16836       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16837       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16838     esac
16839   else :
16840     # compilation failed
16841     lt_cv_dlopen_self_static=no
16842   fi
16843 fi
16844 rm -fr conftest*
16845
16846
16847 fi
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16849 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16850     fi
16851
16852     CPPFLAGS=$save_CPPFLAGS
16853     LDFLAGS=$save_LDFLAGS
16854     LIBS=$save_LIBS
16855     ;;
16856   esac
16857
16858   case $lt_cv_dlopen_self in
16859   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16860   *) enable_dlopen_self=unknown ;;
16861   esac
16862
16863   case $lt_cv_dlopen_self_static in
16864   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16865   *) enable_dlopen_self_static=unknown ;;
16866   esac
16867 fi
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885 striplib=
16886 old_striplib=
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16888 printf %s "checking whether stripping libraries is possible... " >&6; }
16889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16890   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16891   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893 printf "%s\n" "yes" >&6; }
16894 else
16895 # FIXME - insert some real tests, host_os isn't really good enough
16896   case $host_os in
16897   darwin*)
16898     if test -n "$STRIP"; then
16899       striplib="$STRIP -x"
16900       old_striplib="$STRIP -S"
16901       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 printf "%s\n" "yes" >&6; }
16903     else
16904       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 printf "%s\n" "no" >&6; }
16906     fi
16907     ;;
16908   *)
16909     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 printf "%s\n" "no" >&6; }
16911     ;;
16912   esac
16913 fi
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926   # Report what library types will actually be built
16927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16928 printf %s "checking if libtool supports shared libraries... " >&6; }
16929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16930 printf "%s\n" "$can_build_shared" >&6; }
16931
16932   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16933 printf %s "checking whether to build shared libraries... " >&6; }
16934   test no = "$can_build_shared" && enable_shared=no
16935
16936   # On AIX, shared libraries and static libraries use the same namespace, and
16937   # are all built from PIC.
16938   case $host_os in
16939   aix3*)
16940     test yes = "$enable_shared" && enable_static=no
16941     if test -n "$RANLIB"; then
16942       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16943       postinstall_cmds='$RANLIB $lib'
16944     fi
16945     ;;
16946
16947   aix[4-9]*)
16948     if test ia64 != "$host_cpu"; then
16949       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16950       yes,aix,yes) ;;                   # shared object as lib.so file only
16951       yes,svr4,*) ;;                    # shared object as lib.so archive member only
16952       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
16953       esac
16954     fi
16955     ;;
16956   esac
16957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16958 printf "%s\n" "$enable_shared" >&6; }
16959
16960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16961 printf %s "checking whether to build static libraries... " >&6; }
16962   # Make sure either enable_shared or enable_static is yes.
16963   test yes = "$enable_shared" || enable_static=yes
16964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16965 printf "%s\n" "$enable_static" >&6; }
16966
16967
16968
16969
16970 fi
16971 ac_ext=c
16972 ac_cpp='$CPP $CPPFLAGS'
16973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16976
16977 CC=$lt_save_CC
16978
16979       if test -n "$CXX" && ( test no != "$CXX" &&
16980     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16981     (test g++ != "$CXX"))); then
16982   ac_ext=cpp
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16988 printf %s "checking how to run the C++ preprocessor... " >&6; }
16989 if test -z "$CXXCPP"; then
16990   if test ${ac_cv_prog_CXXCPP+y}
16991 then :
16992   printf %s "(cached) " >&6
16993 else $as_nop
16994       # Double quotes because $CXX needs to be expanded
16995     for CXXCPP in "$CXX -E" cpp /lib/cpp
16996     do
16997       ac_preproc_ok=false
16998 for ac_cxx_preproc_warn_flag in '' yes
16999 do
17000   # Use a header file that comes with gcc, so configuring glibc
17001   # with a fresh cross-compiler works.
17002   # On the NeXT, cc -E runs the code through the compiler's parser,
17003   # not just through cpp. "Syntax error" is here to catch this case.
17004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h.  */
17006 #include <limits.h>
17007                      Syntax error
17008 _ACEOF
17009 if ac_fn_cxx_try_cpp "$LINENO"
17010 then :
17011
17012 else $as_nop
17013   # Broken: fails on valid input.
17014 continue
17015 fi
17016 rm -f conftest.err conftest.i conftest.$ac_ext
17017
17018   # OK, works on sane cases.  Now check whether nonexistent headers
17019   # can be detected and how.
17020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h.  */
17022 #include <ac_nonexistent.h>
17023 _ACEOF
17024 if ac_fn_cxx_try_cpp "$LINENO"
17025 then :
17026   # Broken: success on invalid input.
17027 continue
17028 else $as_nop
17029   # Passes both tests.
17030 ac_preproc_ok=:
17031 break
17032 fi
17033 rm -f conftest.err conftest.i conftest.$ac_ext
17034
17035 done
17036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17037 rm -f conftest.i conftest.err conftest.$ac_ext
17038 if $ac_preproc_ok
17039 then :
17040   break
17041 fi
17042
17043     done
17044     ac_cv_prog_CXXCPP=$CXXCPP
17045
17046 fi
17047   CXXCPP=$ac_cv_prog_CXXCPP
17048 else
17049   ac_cv_prog_CXXCPP=$CXXCPP
17050 fi
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17052 printf "%s\n" "$CXXCPP" >&6; }
17053 ac_preproc_ok=false
17054 for ac_cxx_preproc_warn_flag in '' yes
17055 do
17056   # Use a header file that comes with gcc, so configuring glibc
17057   # with a fresh cross-compiler works.
17058   # On the NeXT, cc -E runs the code through the compiler's parser,
17059   # not just through cpp. "Syntax error" is here to catch this case.
17060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h.  */
17062 #include <limits.h>
17063                      Syntax error
17064 _ACEOF
17065 if ac_fn_cxx_try_cpp "$LINENO"
17066 then :
17067
17068 else $as_nop
17069   # Broken: fails on valid input.
17070 continue
17071 fi
17072 rm -f conftest.err conftest.i conftest.$ac_ext
17073
17074   # OK, works on sane cases.  Now check whether nonexistent headers
17075   # can be detected and how.
17076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h.  */
17078 #include <ac_nonexistent.h>
17079 _ACEOF
17080 if ac_fn_cxx_try_cpp "$LINENO"
17081 then :
17082   # Broken: success on invalid input.
17083 continue
17084 else $as_nop
17085   # Passes both tests.
17086 ac_preproc_ok=:
17087 break
17088 fi
17089 rm -f conftest.err conftest.i conftest.$ac_ext
17090
17091 done
17092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17093 rm -f conftest.i conftest.err conftest.$ac_ext
17094 if $ac_preproc_ok
17095 then :
17096
17097 else $as_nop
17098   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17100 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17101 See \`config.log' for more details" "$LINENO" 5; }
17102 fi
17103
17104 ac_ext=c
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109
17110 else
17111   _lt_caught_CXX_error=yes
17112 fi
17113
17114 ac_ext=cpp
17115 ac_cpp='$CXXCPP $CPPFLAGS'
17116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17119
17120 archive_cmds_need_lc_CXX=no
17121 allow_undefined_flag_CXX=
17122 always_export_symbols_CXX=no
17123 archive_expsym_cmds_CXX=
17124 compiler_needs_object_CXX=no
17125 export_dynamic_flag_spec_CXX=
17126 hardcode_direct_CXX=no
17127 hardcode_direct_absolute_CXX=no
17128 hardcode_libdir_flag_spec_CXX=
17129 hardcode_libdir_separator_CXX=
17130 hardcode_minus_L_CXX=no
17131 hardcode_shlibpath_var_CXX=unsupported
17132 hardcode_automatic_CXX=no
17133 inherit_rpath_CXX=no
17134 module_cmds_CXX=
17135 module_expsym_cmds_CXX=
17136 link_all_deplibs_CXX=unknown
17137 old_archive_cmds_CXX=$old_archive_cmds
17138 reload_flag_CXX=$reload_flag
17139 reload_cmds_CXX=$reload_cmds
17140 no_undefined_flag_CXX=
17141 whole_archive_flag_spec_CXX=
17142 enable_shared_with_static_runtimes_CXX=no
17143
17144 # Source file extension for C++ test sources.
17145 ac_ext=cpp
17146
17147 # Object file extension for compiled C++ test sources.
17148 objext=o
17149 objext_CXX=$objext
17150
17151 # No sense in running all these tests if we already determined that
17152 # the CXX compiler isn't working.  Some variables (like enable_shared)
17153 # are currently assumed to apply to all compilers on this platform,
17154 # and will be corrupted by setting them based on a non-working compiler.
17155 if test yes != "$_lt_caught_CXX_error"; then
17156   # Code to be used in simple compile tests
17157   lt_simple_compile_test_code="int some_variable = 0;"
17158
17159   # Code to be used in simple link tests
17160   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17161
17162   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17163
17164
17165
17166
17167
17168
17169 # If no C compiler was specified, use CC.
17170 LTCC=${LTCC-"$CC"}
17171
17172 # If no C compiler flags were specified, use CFLAGS.
17173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17174
17175 # Allow CC to be a program name with arguments.
17176 compiler=$CC
17177
17178
17179   # save warnings/boilerplate of simple test code
17180   ac_outfile=conftest.$ac_objext
17181 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17182 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17183 _lt_compiler_boilerplate=`cat conftest.err`
17184 $RM conftest*
17185
17186   ac_outfile=conftest.$ac_objext
17187 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17188 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17189 _lt_linker_boilerplate=`cat conftest.err`
17190 $RM -r conftest*
17191
17192
17193   # Allow CC to be a program name with arguments.
17194   lt_save_CC=$CC
17195   lt_save_CFLAGS=$CFLAGS
17196   lt_save_LD=$LD
17197   lt_save_GCC=$GCC
17198   GCC=$GXX
17199   lt_save_with_gnu_ld=$with_gnu_ld
17200   lt_save_path_LD=$lt_cv_path_LD
17201   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17202     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17203   else
17204     $as_unset lt_cv_prog_gnu_ld
17205   fi
17206   if test -n "${lt_cv_path_LDCXX+set}"; then
17207     lt_cv_path_LD=$lt_cv_path_LDCXX
17208   else
17209     $as_unset lt_cv_path_LD
17210   fi
17211   test -z "${LDCXX+set}" || LD=$LDCXX
17212   CC=${CXX-"c++"}
17213   CFLAGS=$CXXFLAGS
17214   compiler=$CC
17215   compiler_CXX=$CC
17216   func_cc_basename $compiler
17217 cc_basename=$func_cc_basename_result
17218
17219
17220   if test -n "$compiler"; then
17221     # We don't want -fno-exception when compiling C++ code, so set the
17222     # no_builtin_flag separately
17223     if test yes = "$GXX"; then
17224       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17225     else
17226       lt_prog_compiler_no_builtin_flag_CXX=
17227     fi
17228
17229     if test yes = "$GXX"; then
17230       # Set up default GNU C++ configuration
17231
17232
17233
17234 # Check whether --with-gnu-ld was given.
17235 if test ${with_gnu_ld+y}
17236 then :
17237   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17238 else $as_nop
17239   with_gnu_ld=no
17240 fi
17241
17242 ac_prog=ld
17243 if test yes = "$GCC"; then
17244   # Check if gcc -print-prog-name=ld gives a path.
17245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17246 printf %s "checking for ld used by $CC... " >&6; }
17247   case $host in
17248   *-*-mingw*)
17249     # gcc leaves a trailing carriage return, which upsets mingw
17250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17251   *)
17252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17253   esac
17254   case $ac_prog in
17255     # Accept absolute paths.
17256     [\\/]* | ?:[\\/]*)
17257       re_direlt='/[^/][^/]*/\.\./'
17258       # Canonicalize the pathname of ld
17259       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17260       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17261         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17262       done
17263       test -z "$LD" && LD=$ac_prog
17264       ;;
17265   "")
17266     # If it fails, then pretend we aren't using GCC.
17267     ac_prog=ld
17268     ;;
17269   *)
17270     # If it is relative, then search for the first ld in PATH.
17271     with_gnu_ld=unknown
17272     ;;
17273   esac
17274 elif test yes = "$with_gnu_ld"; then
17275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17276 printf %s "checking for GNU ld... " >&6; }
17277 else
17278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17279 printf %s "checking for non-GNU ld... " >&6; }
17280 fi
17281 if test ${lt_cv_path_LD+y}
17282 then :
17283   printf %s "(cached) " >&6
17284 else $as_nop
17285   if test -z "$LD"; then
17286   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17287   for ac_dir in $PATH; do
17288     IFS=$lt_save_ifs
17289     test -z "$ac_dir" && ac_dir=.
17290     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17291       lt_cv_path_LD=$ac_dir/$ac_prog
17292       # Check to see if the program is GNU ld.  I'd rather use --version,
17293       # but apparently some variants of GNU ld only accept -v.
17294       # Break only if it was the GNU/non-GNU ld that we prefer.
17295       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17296       *GNU* | *'with BFD'*)
17297         test no != "$with_gnu_ld" && break
17298         ;;
17299       *)
17300         test yes != "$with_gnu_ld" && break
17301         ;;
17302       esac
17303     fi
17304   done
17305   IFS=$lt_save_ifs
17306 else
17307   lt_cv_path_LD=$LD # Let the user override the test with a path.
17308 fi
17309 fi
17310
17311 LD=$lt_cv_path_LD
17312 if test -n "$LD"; then
17313   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17314 printf "%s\n" "$LD" >&6; }
17315 else
17316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317 printf "%s\n" "no" >&6; }
17318 fi
17319 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17321 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17322 if test ${lt_cv_prog_gnu_ld+y}
17323 then :
17324   printf %s "(cached) " >&6
17325 else $as_nop
17326   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17327 case `$LD -v 2>&1 </dev/null` in
17328 *GNU* | *'with BFD'*)
17329   lt_cv_prog_gnu_ld=yes
17330   ;;
17331 *)
17332   lt_cv_prog_gnu_ld=no
17333   ;;
17334 esac
17335 fi
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17337 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17338 with_gnu_ld=$lt_cv_prog_gnu_ld
17339
17340
17341
17342
17343
17344
17345
17346       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17347       # archiving commands below assume that GNU ld is being used.
17348       if test yes = "$with_gnu_ld"; then
17349         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17350         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'
17351
17352         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17353         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17354
17355         # If archive_cmds runs LD, not CC, wlarc should be empty
17356         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17357         #     investigate it a little bit more. (MM)
17358         wlarc='$wl'
17359
17360         # ancient GNU ld didn't support --whole-archive et. al.
17361         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17362           $GREP 'no-whole-archive' > /dev/null; then
17363           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17364         else
17365           whole_archive_flag_spec_CXX=
17366         fi
17367       else
17368         with_gnu_ld=no
17369         wlarc=
17370
17371         # A generic and very simple default shared library creation
17372         # command for GNU C++ for the case where it uses the native
17373         # linker, instead of GNU ld.  If possible, this setting should
17374         # overridden to take advantage of the native linker features on
17375         # the platform it is being used on.
17376         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17377       fi
17378
17379       # Commands to make compiler produce verbose output that lists
17380       # what "hidden" libraries, object files and flags are used when
17381       # linking a shared library.
17382       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17383
17384     else
17385       GXX=no
17386       with_gnu_ld=no
17387       wlarc=
17388     fi
17389
17390     # PORTME: fill in a description of your system's C++ link characteristics
17391     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17392 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17393     ld_shlibs_CXX=yes
17394     case $host_os in
17395       aix3*)
17396         # FIXME: insert proper C++ library support
17397         ld_shlibs_CXX=no
17398         ;;
17399       aix[4-9]*)
17400         if test ia64 = "$host_cpu"; then
17401           # On IA64, the linker does run time linking by default, so we don't
17402           # have to do anything special.
17403           aix_use_runtimelinking=no
17404           exp_sym_flag='-Bexport'
17405           no_entry_flag=
17406         else
17407           aix_use_runtimelinking=no
17408
17409           # Test if we are trying to use run time linking or normal
17410           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17411           # have runtime linking enabled, and use it for executables.
17412           # For shared libraries, we enable/disable runtime linking
17413           # depending on the kind of the shared library created -
17414           # when "with_aix_soname,aix_use_runtimelinking" is:
17415           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17416           # "aix,yes"  lib.so          shared, rtl:yes, for executables
17417           #            lib.a           static archive
17418           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
17419           #            lib.a(lib.so.V) shared, rtl:no,  for executables
17420           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17421           #            lib.a(lib.so.V) shared, rtl:no
17422           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17423           #            lib.a           static archive
17424           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17425             for ld_flag in $LDFLAGS; do
17426               case $ld_flag in
17427               *-brtl*)
17428                 aix_use_runtimelinking=yes
17429                 break
17430                 ;;
17431               esac
17432             done
17433             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17434               # With aix-soname=svr4, we create the lib.so.V shared archives only,
17435               # so we don't have lib.a shared libs to link our executables.
17436               # We have to force runtime linking in this case.
17437               aix_use_runtimelinking=yes
17438               LDFLAGS="$LDFLAGS -Wl,-brtl"
17439             fi
17440             ;;
17441           esac
17442
17443           exp_sym_flag='-bexport'
17444           no_entry_flag='-bnoentry'
17445         fi
17446
17447         # When large executables or shared objects are built, AIX ld can
17448         # have problems creating the table of contents.  If linking a library
17449         # or program results in "error TOC overflow" add -mminimal-toc to
17450         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17451         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17452
17453         archive_cmds_CXX=''
17454         hardcode_direct_CXX=yes
17455         hardcode_direct_absolute_CXX=yes
17456         hardcode_libdir_separator_CXX=':'
17457         link_all_deplibs_CXX=yes
17458         file_list_spec_CXX='$wl-f,'
17459         case $with_aix_soname,$aix_use_runtimelinking in
17460         aix,*) ;;       # no import file
17461         svr4,* | *,yes) # use import file
17462           # The Import File defines what to hardcode.
17463           hardcode_direct_CXX=no
17464           hardcode_direct_absolute_CXX=no
17465           ;;
17466         esac
17467
17468         if test yes = "$GXX"; then
17469           case $host_os in aix4.[012]|aix4.[012].*)
17470           # We only want to do this on AIX 4.2 and lower, the check
17471           # below for broken collect2 doesn't work under 4.3+
17472           collect2name=`$CC -print-prog-name=collect2`
17473           if test -f "$collect2name" &&
17474              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17475           then
17476             # We have reworked collect2
17477             :
17478           else
17479             # We have old collect2
17480             hardcode_direct_CXX=unsupported
17481             # It fails to find uninstalled libraries when the uninstalled
17482             # path is not listed in the libpath.  Setting hardcode_minus_L
17483             # to unsupported forces relinking
17484             hardcode_minus_L_CXX=yes
17485             hardcode_libdir_flag_spec_CXX='-L$libdir'
17486             hardcode_libdir_separator_CXX=
17487           fi
17488           esac
17489           shared_flag='-shared'
17490           if test yes = "$aix_use_runtimelinking"; then
17491             shared_flag=$shared_flag' $wl-G'
17492           fi
17493           # Need to ensure runtime linking is disabled for the traditional
17494           # shared library, or the linker may eventually find shared libraries
17495           # /with/ Import File - we do not want to mix them.
17496           shared_flag_aix='-shared'
17497           shared_flag_svr4='-shared $wl-G'
17498         else
17499           # not using gcc
17500           if test ia64 = "$host_cpu"; then
17501           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17502           # chokes on -Wl,-G. The following line is correct:
17503           shared_flag='-G'
17504           else
17505             if test yes = "$aix_use_runtimelinking"; then
17506               shared_flag='$wl-G'
17507             else
17508               shared_flag='$wl-bM:SRE'
17509             fi
17510             shared_flag_aix='$wl-bM:SRE'
17511             shared_flag_svr4='$wl-G'
17512           fi
17513         fi
17514
17515         export_dynamic_flag_spec_CXX='$wl-bexpall'
17516         # It seems that -bexpall does not export symbols beginning with
17517         # underscore (_), so it is better to generate a list of symbols to
17518         # export.
17519         always_export_symbols_CXX=yes
17520         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17521           # Warning - without using the other runtime loading flags (-brtl),
17522           # -berok will link without error, but may produce a broken library.
17523           # The "-G" linker flag allows undefined symbols.
17524           no_undefined_flag_CXX='-bernotok'
17525           # Determine the default libpath from the value encoded in an empty
17526           # executable.
17527           if test set = "${lt_cv_aix_libpath+set}"; then
17528   aix_libpath=$lt_cv_aix_libpath
17529 else
17530   if test ${lt_cv_aix_libpath__CXX+y}
17531 then :
17532   printf %s "(cached) " >&6
17533 else $as_nop
17534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536
17537 int
17538 main (void)
17539 {
17540
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 if ac_fn_cxx_try_link "$LINENO"
17546 then :
17547
17548   lt_aix_libpath_sed='
17549       /Import File Strings/,/^$/ {
17550           /^0/ {
17551               s/^0  *\([^ ]*\) *$/\1/
17552               p
17553           }
17554       }'
17555   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17556   # Check for a 64-bit object if we didn't find anything.
17557   if test -z "$lt_cv_aix_libpath__CXX"; then
17558     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17559   fi
17560 fi
17561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17562     conftest$ac_exeext conftest.$ac_ext
17563   if test -z "$lt_cv_aix_libpath__CXX"; then
17564     lt_cv_aix_libpath__CXX=/usr/lib:/lib
17565   fi
17566
17567 fi
17568
17569   aix_libpath=$lt_cv_aix_libpath__CXX
17570 fi
17571
17572           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17573
17574           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
17575         else
17576           if test ia64 = "$host_cpu"; then
17577             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17578             allow_undefined_flag_CXX="-z nodefs"
17579             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"
17580           else
17581             # Determine the default libpath from the value encoded in an
17582             # empty executable.
17583             if test set = "${lt_cv_aix_libpath+set}"; then
17584   aix_libpath=$lt_cv_aix_libpath
17585 else
17586   if test ${lt_cv_aix_libpath__CXX+y}
17587 then :
17588   printf %s "(cached) " >&6
17589 else $as_nop
17590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591 /* end confdefs.h.  */
17592
17593 int
17594 main (void)
17595 {
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 if ac_fn_cxx_try_link "$LINENO"
17602 then :
17603
17604   lt_aix_libpath_sed='
17605       /Import File Strings/,/^$/ {
17606           /^0/ {
17607               s/^0  *\([^ ]*\) *$/\1/
17608               p
17609           }
17610       }'
17611   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17612   # Check for a 64-bit object if we didn't find anything.
17613   if test -z "$lt_cv_aix_libpath__CXX"; then
17614     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17615   fi
17616 fi
17617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17618     conftest$ac_exeext conftest.$ac_ext
17619   if test -z "$lt_cv_aix_libpath__CXX"; then
17620     lt_cv_aix_libpath__CXX=/usr/lib:/lib
17621   fi
17622
17623 fi
17624
17625   aix_libpath=$lt_cv_aix_libpath__CXX
17626 fi
17627
17628             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17629             # Warning - without using the other run time loading flags,
17630             # -berok will link without error, but may produce a broken library.
17631             no_undefined_flag_CXX=' $wl-bernotok'
17632             allow_undefined_flag_CXX=' $wl-berok'
17633             if test yes = "$with_gnu_ld"; then
17634               # We only use this code for GNU lds that support --whole-archive.
17635               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17636             else
17637               # Exported symbols can be pulled into shared objects from archives
17638               whole_archive_flag_spec_CXX='$convenience'
17639             fi
17640             archive_cmds_need_lc_CXX=yes
17641             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17642             # -brtl affects multiple linker settings, -berok does not and is overridden later
17643             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17644             if test svr4 != "$with_aix_soname"; then
17645               # This is similar to how AIX traditionally builds its shared
17646               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17647               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'
17648             fi
17649             if test aix != "$with_aix_soname"; then
17650               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'
17651             else
17652               # used by -dlpreopen to get the symbols
17653               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17654             fi
17655             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17656           fi
17657         fi
17658         ;;
17659
17660       beos*)
17661         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17662           allow_undefined_flag_CXX=unsupported
17663           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664           # support --undefined.  This deserves some investigation.  FIXME
17665           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17666         else
17667           ld_shlibs_CXX=no
17668         fi
17669         ;;
17670
17671       chorus*)
17672         case $cc_basename in
17673           *)
17674           # FIXME: insert proper C++ library support
17675           ld_shlibs_CXX=no
17676           ;;
17677         esac
17678         ;;
17679
17680       cygwin* | mingw* | pw32* | cegcc*)
17681         case $GXX,$cc_basename in
17682         ,cl* | no,cl*)
17683           # Native MSVC
17684           # hardcode_libdir_flag_spec is actually meaningless, as there is
17685           # no search path for DLLs.
17686           hardcode_libdir_flag_spec_CXX=' '
17687           allow_undefined_flag_CXX=unsupported
17688           always_export_symbols_CXX=yes
17689           file_list_spec_CXX='@'
17690           # Tell ltmain to make .lib files, not .a files.
17691           libext=lib
17692           # Tell ltmain to make .dll files, not .so files.
17693           shrext_cmds=.dll
17694           # FIXME: Setting linknames here is a bad hack.
17695           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17696           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17697               cp "$export_symbols" "$output_objdir/$soname.def";
17698               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17699             else
17700               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17701             fi~
17702             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17703             linknames='
17704           # The linker will not automatically build a static lib if we build a DLL.
17705           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17706           enable_shared_with_static_runtimes_CXX=yes
17707           # Don't use ranlib
17708           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17709           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17710             lt_tool_outputfile="@TOOL_OUTPUT@"~
17711             case $lt_outputfile in
17712               *.exe|*.EXE) ;;
17713               *)
17714                 lt_outputfile=$lt_outputfile.exe
17715                 lt_tool_outputfile=$lt_tool_outputfile.exe
17716                 ;;
17717             esac~
17718             func_to_tool_file "$lt_outputfile"~
17719             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17720               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17721               $RM "$lt_outputfile.manifest";
17722             fi'
17723           ;;
17724         *)
17725           # g++
17726           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17727           # as there is no search path for DLLs.
17728           hardcode_libdir_flag_spec_CXX='-L$libdir'
17729           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17730           allow_undefined_flag_CXX=unsupported
17731           always_export_symbols_CXX=no
17732           enable_shared_with_static_runtimes_CXX=yes
17733
17734           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17735             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'
17736             # If the export-symbols file already is a .def file, use it as
17737             # is; otherwise, prepend EXPORTS...
17738             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17739               cp $export_symbols $output_objdir/$soname.def;
17740             else
17741               echo EXPORTS > $output_objdir/$soname.def;
17742               cat $export_symbols >> $output_objdir/$soname.def;
17743             fi~
17744             $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'
17745           else
17746             ld_shlibs_CXX=no
17747           fi
17748           ;;
17749         esac
17750         ;;
17751       darwin* | rhapsody*)
17752
17753
17754   archive_cmds_need_lc_CXX=no
17755   hardcode_direct_CXX=no
17756   hardcode_automatic_CXX=yes
17757   hardcode_shlibpath_var_CXX=unsupported
17758   if test yes = "$lt_cv_ld_force_load"; then
17759     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\"`'
17760
17761   else
17762     whole_archive_flag_spec_CXX=''
17763   fi
17764   link_all_deplibs_CXX=yes
17765   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17766   case $cc_basename in
17767      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17768      *) _lt_dar_can_shared=$GCC ;;
17769   esac
17770   if test yes = "$_lt_dar_can_shared"; then
17771     output_verbose_link_cmd=func_echo_all
17772     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"
17773     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17774     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"
17775     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"
17776        if test yes != "$lt_cv_apple_cc_single_mod"; then
17777       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"
17778       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"
17779     fi
17780
17781   else
17782   ld_shlibs_CXX=no
17783   fi
17784
17785         ;;
17786
17787       os2*)
17788         hardcode_libdir_flag_spec_CXX='-L$libdir'
17789         hardcode_minus_L_CXX=yes
17790         allow_undefined_flag_CXX=unsupported
17791         shrext_cmds=.dll
17792         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17793           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17794           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17795           $ECHO EXPORTS >> $output_objdir/$libname.def~
17796           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17797           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17798           emximp -o $lib $output_objdir/$libname.def'
17799         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17800           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17801           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17802           $ECHO EXPORTS >> $output_objdir/$libname.def~
17803           prefix_cmds="$SED"~
17804           if test EXPORTS = "`$SED 1q $export_symbols`"; then
17805             prefix_cmds="$prefix_cmds -e 1d";
17806           fi~
17807           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17808           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17809           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17810           emximp -o $lib $output_objdir/$libname.def'
17811         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17812         enable_shared_with_static_runtimes_CXX=yes
17813         ;;
17814
17815       dgux*)
17816         case $cc_basename in
17817           ec++*)
17818             # FIXME: insert proper C++ library support
17819             ld_shlibs_CXX=no
17820             ;;
17821           ghcx*)
17822             # Green Hills C++ Compiler
17823             # FIXME: insert proper C++ library support
17824             ld_shlibs_CXX=no
17825             ;;
17826           *)
17827             # FIXME: insert proper C++ library support
17828             ld_shlibs_CXX=no
17829             ;;
17830         esac
17831         ;;
17832
17833       freebsd2.*)
17834         # C++ shared libraries reported to be fairly broken before
17835         # switch to ELF
17836         ld_shlibs_CXX=no
17837         ;;
17838
17839       freebsd-elf*)
17840         archive_cmds_need_lc_CXX=no
17841         ;;
17842
17843       freebsd* | dragonfly*)
17844         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17845         # conventions
17846         ld_shlibs_CXX=yes
17847         ;;
17848
17849       haiku*)
17850         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17851         link_all_deplibs_CXX=yes
17852         ;;
17853
17854       hpux9*)
17855         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17856         hardcode_libdir_separator_CXX=:
17857         export_dynamic_flag_spec_CXX='$wl-E'
17858         hardcode_direct_CXX=yes
17859         hardcode_minus_L_CXX=yes # Not in the search PATH,
17860                                              # but as the default
17861                                              # location of the library.
17862
17863         case $cc_basename in
17864           CC*)
17865             # FIXME: insert proper C++ library support
17866             ld_shlibs_CXX=no
17867             ;;
17868           aCC*)
17869             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'
17870             # Commands to make compiler produce verbose output that lists
17871             # what "hidden" libraries, object files and flags are used when
17872             # linking a shared library.
17873             #
17874             # There doesn't appear to be a way to prevent this compiler from
17875             # explicitly linking system object files so we need to strip them
17876             # from the output so that they don't get included in the library
17877             # dependencies.
17878             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"'
17879             ;;
17880           *)
17881             if test yes = "$GXX"; then
17882               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'
17883             else
17884               # FIXME: insert proper C++ library support
17885               ld_shlibs_CXX=no
17886             fi
17887             ;;
17888         esac
17889         ;;
17890
17891       hpux10*|hpux11*)
17892         if test no = "$with_gnu_ld"; then
17893           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17894           hardcode_libdir_separator_CXX=:
17895
17896           case $host_cpu in
17897             hppa*64*|ia64*)
17898               ;;
17899             *)
17900               export_dynamic_flag_spec_CXX='$wl-E'
17901               ;;
17902           esac
17903         fi
17904         case $host_cpu in
17905           hppa*64*|ia64*)
17906             hardcode_direct_CXX=no
17907             hardcode_shlibpath_var_CXX=no
17908             ;;
17909           *)
17910             hardcode_direct_CXX=yes
17911             hardcode_direct_absolute_CXX=yes
17912             hardcode_minus_L_CXX=yes # Not in the search PATH,
17913                                                  # but as the default
17914                                                  # location of the library.
17915             ;;
17916         esac
17917
17918         case $cc_basename in
17919           CC*)
17920             # FIXME: insert proper C++ library support
17921             ld_shlibs_CXX=no
17922             ;;
17923           aCC*)
17924             case $host_cpu in
17925               hppa*64*)
17926                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17927                 ;;
17928               ia64*)
17929                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17930                 ;;
17931               *)
17932                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17933                 ;;
17934             esac
17935             # Commands to make compiler produce verbose output that lists
17936             # what "hidden" libraries, object files and flags are used when
17937             # linking a shared library.
17938             #
17939             # There doesn't appear to be a way to prevent this compiler from
17940             # explicitly linking system object files so we need to strip them
17941             # from the output so that they don't get included in the library
17942             # dependencies.
17943             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"'
17944             ;;
17945           *)
17946             if test yes = "$GXX"; then
17947               if test no = "$with_gnu_ld"; then
17948                 case $host_cpu in
17949                   hppa*64*)
17950                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17951                     ;;
17952                   ia64*)
17953                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17954                     ;;
17955                   *)
17956                     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'
17957                     ;;
17958                 esac
17959               fi
17960             else
17961               # FIXME: insert proper C++ library support
17962               ld_shlibs_CXX=no
17963             fi
17964             ;;
17965         esac
17966         ;;
17967
17968       interix[3-9]*)
17969         hardcode_direct_CXX=no
17970         hardcode_shlibpath_var_CXX=no
17971         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17972         export_dynamic_flag_spec_CXX='$wl-E'
17973         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17974         # Instead, shared libraries are loaded at an image base (0x10000000 by
17975         # default) and relocated if they conflict, which is a slow very memory
17976         # consuming and fragmenting process.  To avoid this, we pick a random,
17977         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17978         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17979         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'
17980         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'
17981         ;;
17982       irix5* | irix6*)
17983         case $cc_basename in
17984           CC*)
17985             # SGI C++
17986             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'
17987
17988             # Archives containing C++ object files must be created using
17989             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17990             # necessary to make sure instantiated templates are included
17991             # in the archive.
17992             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17993             ;;
17994           *)
17995             if test yes = "$GXX"; then
17996               if test no = "$with_gnu_ld"; then
17997                 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'
17998               else
17999                 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'
18000               fi
18001             fi
18002             link_all_deplibs_CXX=yes
18003             ;;
18004         esac
18005         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18006         hardcode_libdir_separator_CXX=:
18007         inherit_rpath_CXX=yes
18008         ;;
18009
18010       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18011         case $cc_basename in
18012           KCC*)
18013             # Kuck and Associates, Inc. (KAI) C++ Compiler
18014
18015             # KCC will only create a shared library if the output file
18016             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18017             # to its proper name (with version) after linking.
18018             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'
18019             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'
18020             # Commands to make compiler produce verbose output that lists
18021             # what "hidden" libraries, object files and flags are used when
18022             # linking a shared library.
18023             #
18024             # There doesn't appear to be a way to prevent this compiler from
18025             # explicitly linking system object files so we need to strip them
18026             # from the output so that they don't get included in the library
18027             # dependencies.
18028             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"'
18029
18030             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18031             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18032
18033             # Archives containing C++ object files must be created using
18034             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18035             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18036             ;;
18037           icpc* | ecpc* )
18038             # Intel C++
18039             with_gnu_ld=yes
18040             # version 8.0 and above of icpc choke on multiply defined symbols
18041             # if we add $predep_objects and $postdep_objects, however 7.1 and
18042             # earlier do not add the objects themselves.
18043             case `$CC -V 2>&1` in
18044               *"Version 7."*)
18045                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18046                 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'
18047                 ;;
18048               *)  # Version 8.0 or newer
18049                 tmp_idyn=
18050                 case $host_cpu in
18051                   ia64*) tmp_idyn=' -i_dynamic';;
18052                 esac
18053                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18054                 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'
18055                 ;;
18056             esac
18057             archive_cmds_need_lc_CXX=no
18058             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18059             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18060             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18061             ;;
18062           pgCC* | pgcpp*)
18063             # Portland Group C++ compiler
18064             case `$CC -V` in
18065             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18066               prelink_cmds_CXX='tpldir=Template.dir~
18067                rm -rf $tpldir~
18068                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18069                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18070               old_archive_cmds_CXX='tpldir=Template.dir~
18071                 rm -rf $tpldir~
18072                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18073                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18074                 $RANLIB $oldlib'
18075               archive_cmds_CXX='tpldir=Template.dir~
18076                 rm -rf $tpldir~
18077                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18078                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18079               archive_expsym_cmds_CXX='tpldir=Template.dir~
18080                 rm -rf $tpldir~
18081                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18082                 $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'
18083               ;;
18084             *) # Version 6 and above use weak symbols
18085               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18086               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'
18087               ;;
18088             esac
18089
18090             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18091             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18092             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'
18093             ;;
18094           cxx*)
18095             # Compaq C++
18096             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18097             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'
18098
18099             runpath_var=LD_RUN_PATH
18100             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18101             hardcode_libdir_separator_CXX=:
18102
18103             # Commands to make compiler produce verbose output that lists
18104             # what "hidden" libraries, object files and flags are used when
18105             # linking a shared library.
18106             #
18107             # There doesn't appear to be a way to prevent this compiler from
18108             # explicitly linking system object files so we need to strip them
18109             # from the output so that they don't get included in the library
18110             # dependencies.
18111             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'
18112             ;;
18113           xl* | mpixl* | bgxl*)
18114             # IBM XL 8.0 on PPC, with GNU ld
18115             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18116             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18117             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18118             if test yes = "$supports_anon_versioning"; then
18119               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18120                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18121                 echo "local: *; };" >> $output_objdir/$libname.ver~
18122                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18123             fi
18124             ;;
18125           *)
18126             case `$CC -V 2>&1 | sed 5q` in
18127             *Sun\ C*)
18128               # Sun C++ 5.9
18129               no_undefined_flag_CXX=' -zdefs'
18130               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18131               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'
18132               hardcode_libdir_flag_spec_CXX='-R$libdir'
18133               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'
18134               compiler_needs_object_CXX=yes
18135
18136               # Not sure whether something based on
18137               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18138               # would be better.
18139               output_verbose_link_cmd='func_echo_all'
18140
18141               # Archives containing C++ object files must be created using
18142               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18143               # necessary to make sure instantiated templates are included
18144               # in the archive.
18145               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18146               ;;
18147             esac
18148             ;;
18149         esac
18150         ;;
18151
18152       lynxos*)
18153         # FIXME: insert proper C++ library support
18154         ld_shlibs_CXX=no
18155         ;;
18156
18157       m88k*)
18158         # FIXME: insert proper C++ library support
18159         ld_shlibs_CXX=no
18160         ;;
18161
18162       mvs*)
18163         case $cc_basename in
18164           cxx*)
18165             # FIXME: insert proper C++ library support
18166             ld_shlibs_CXX=no
18167             ;;
18168           *)
18169             # FIXME: insert proper C++ library support
18170             ld_shlibs_CXX=no
18171             ;;
18172         esac
18173         ;;
18174
18175       netbsd*)
18176         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18177           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18178           wlarc=
18179           hardcode_libdir_flag_spec_CXX='-R$libdir'
18180           hardcode_direct_CXX=yes
18181           hardcode_shlibpath_var_CXX=no
18182         fi
18183         # Workaround some broken pre-1.5 toolchains
18184         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18185         ;;
18186
18187       *nto* | *qnx*)
18188         ld_shlibs_CXX=yes
18189         ;;
18190
18191       openbsd* | bitrig*)
18192         if test -f /usr/libexec/ld.so; then
18193           hardcode_direct_CXX=yes
18194           hardcode_shlibpath_var_CXX=no
18195           hardcode_direct_absolute_CXX=yes
18196           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18197           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18198           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18199             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18200             export_dynamic_flag_spec_CXX='$wl-E'
18201             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18202           fi
18203           output_verbose_link_cmd=func_echo_all
18204         else
18205           ld_shlibs_CXX=no
18206         fi
18207         ;;
18208
18209       osf3* | osf4* | osf5*)
18210         case $cc_basename in
18211           KCC*)
18212             # Kuck and Associates, Inc. (KAI) C++ Compiler
18213
18214             # KCC will only create a shared library if the output file
18215             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18216             # to its proper name (with version) after linking.
18217             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'
18218
18219             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18220             hardcode_libdir_separator_CXX=:
18221
18222             # Archives containing C++ object files must be created using
18223             # the KAI C++ compiler.
18224             case $host in
18225               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18226               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18227             esac
18228             ;;
18229           RCC*)
18230             # Rational C++ 2.4.1
18231             # FIXME: insert proper C++ library support
18232             ld_shlibs_CXX=no
18233             ;;
18234           cxx*)
18235             case $host in
18236               osf3*)
18237                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18238                 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'
18239                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18240                 ;;
18241               *)
18242                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18243                 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'
18244                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18245                   echo "-hidden">> $lib.exp~
18246                   $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~
18247                   $RM $lib.exp'
18248                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18249                 ;;
18250             esac
18251
18252             hardcode_libdir_separator_CXX=:
18253
18254             # Commands to make compiler produce verbose output that lists
18255             # what "hidden" libraries, object files and flags are used when
18256             # linking a shared library.
18257             #
18258             # There doesn't appear to be a way to prevent this compiler from
18259             # explicitly linking system object files so we need to strip them
18260             # from the output so that they don't get included in the library
18261             # dependencies.
18262             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"'
18263             ;;
18264           *)
18265             if test yes,no = "$GXX,$with_gnu_ld"; then
18266               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18267               case $host in
18268                 osf3*)
18269                   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'
18270                   ;;
18271                 *)
18272                   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'
18273                   ;;
18274               esac
18275
18276               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18277               hardcode_libdir_separator_CXX=:
18278
18279               # Commands to make compiler produce verbose output that lists
18280               # what "hidden" libraries, object files and flags are used when
18281               # linking a shared library.
18282               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18283
18284             else
18285               # FIXME: insert proper C++ library support
18286               ld_shlibs_CXX=no
18287             fi
18288             ;;
18289         esac
18290         ;;
18291
18292       psos*)
18293         # FIXME: insert proper C++ library support
18294         ld_shlibs_CXX=no
18295         ;;
18296
18297       sunos4*)
18298         case $cc_basename in
18299           CC*)
18300             # Sun C++ 4.x
18301             # FIXME: insert proper C++ library support
18302             ld_shlibs_CXX=no
18303             ;;
18304           lcc*)
18305             # Lucid
18306             # FIXME: insert proper C++ library support
18307             ld_shlibs_CXX=no
18308             ;;
18309           *)
18310             # FIXME: insert proper C++ library support
18311             ld_shlibs_CXX=no
18312             ;;
18313         esac
18314         ;;
18315
18316       solaris*)
18317         case $cc_basename in
18318           CC* | sunCC*)
18319             # Sun C++ 4.2, 5.x and Centerline C++
18320             archive_cmds_need_lc_CXX=yes
18321             no_undefined_flag_CXX=' -zdefs'
18322             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18323             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18324               $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'
18325
18326             hardcode_libdir_flag_spec_CXX='-R$libdir'
18327             hardcode_shlibpath_var_CXX=no
18328             case $host_os in
18329               solaris2.[0-5] | solaris2.[0-5].*) ;;
18330               *)
18331                 # The compiler driver will combine and reorder linker options,
18332                 # but understands '-z linker_flag'.
18333                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18334                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18335                 ;;
18336             esac
18337             link_all_deplibs_CXX=yes
18338
18339             output_verbose_link_cmd='func_echo_all'
18340
18341             # Archives containing C++ object files must be created using
18342             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18343             # necessary to make sure instantiated templates are included
18344             # in the archive.
18345             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18346             ;;
18347           gcx*)
18348             # Green Hills C++ Compiler
18349             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18350
18351             # The C++ compiler must be used to create the archive.
18352             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18353             ;;
18354           *)
18355             # GNU C++ compiler with Solaris linker
18356             if test yes,no = "$GXX,$with_gnu_ld"; then
18357               no_undefined_flag_CXX=' $wl-z ${wl}defs'
18358               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18359                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18360                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18361                   $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'
18362
18363                 # Commands to make compiler produce verbose output that lists
18364                 # what "hidden" libraries, object files and flags are used when
18365                 # linking a shared library.
18366                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18367               else
18368                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18369                 # platform.
18370                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18371                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18372                   $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'
18373
18374                 # Commands to make compiler produce verbose output that lists
18375                 # what "hidden" libraries, object files and flags are used when
18376                 # linking a shared library.
18377                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18378               fi
18379
18380               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18381               case $host_os in
18382                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18383                 *)
18384                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18385                   ;;
18386               esac
18387             fi
18388             ;;
18389         esac
18390         ;;
18391
18392     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18393       no_undefined_flag_CXX='$wl-z,text'
18394       archive_cmds_need_lc_CXX=no
18395       hardcode_shlibpath_var_CXX=no
18396       runpath_var='LD_RUN_PATH'
18397
18398       case $cc_basename in
18399         CC*)
18400           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18401           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18402           ;;
18403         *)
18404           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18405           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18406           ;;
18407       esac
18408       ;;
18409
18410       sysv5* | sco3.2v5* | sco5v6*)
18411         # Note: We CANNOT use -z defs as we might desire, because we do not
18412         # link with -lc, and that would cause any symbols used from libc to
18413         # always be unresolved, which means just about no library would
18414         # ever link correctly.  If we're not using GNU ld we use -z text
18415         # though, which does catch some bad symbols but isn't as heavy-handed
18416         # as -z defs.
18417         no_undefined_flag_CXX='$wl-z,text'
18418         allow_undefined_flag_CXX='$wl-z,nodefs'
18419         archive_cmds_need_lc_CXX=no
18420         hardcode_shlibpath_var_CXX=no
18421         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18422         hardcode_libdir_separator_CXX=':'
18423         link_all_deplibs_CXX=yes
18424         export_dynamic_flag_spec_CXX='$wl-Bexport'
18425         runpath_var='LD_RUN_PATH'
18426
18427         case $cc_basename in
18428           CC*)
18429             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18430             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18431             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18432               '"$old_archive_cmds_CXX"
18433             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18434               '"$reload_cmds_CXX"
18435             ;;
18436           *)
18437             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18439             ;;
18440         esac
18441       ;;
18442
18443       tandem*)
18444         case $cc_basename in
18445           NCC*)
18446             # NonStop-UX NCC 3.20
18447             # FIXME: insert proper C++ library support
18448             ld_shlibs_CXX=no
18449             ;;
18450           *)
18451             # FIXME: insert proper C++ library support
18452             ld_shlibs_CXX=no
18453             ;;
18454         esac
18455         ;;
18456
18457       vxworks*)
18458         # FIXME: insert proper C++ library support
18459         ld_shlibs_CXX=no
18460         ;;
18461
18462       *)
18463         # FIXME: insert proper C++ library support
18464         ld_shlibs_CXX=no
18465         ;;
18466     esac
18467
18468     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18469 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18470     test no = "$ld_shlibs_CXX" && can_build_shared=no
18471
18472     GCC_CXX=$GXX
18473     LD_CXX=$LD
18474
18475     ## CAVEAT EMPTOR:
18476     ## There is no encapsulation within the following macros, do not change
18477     ## the running order or otherwise move them around unless you know exactly
18478     ## what you are doing...
18479     # Dependencies to place before and after the object being linked:
18480 predep_objects_CXX=
18481 postdep_objects_CXX=
18482 predeps_CXX=
18483 postdeps_CXX=
18484 compiler_lib_search_path_CXX=
18485
18486 cat > conftest.$ac_ext <<_LT_EOF
18487 class Foo
18488 {
18489 public:
18490   Foo (void) { a = 0; }
18491 private:
18492   int a;
18493 };
18494 _LT_EOF
18495
18496
18497 _lt_libdeps_save_CFLAGS=$CFLAGS
18498 case "$CC $CFLAGS " in #(
18499 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18500 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18501 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18502 esac
18503
18504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18505   (eval $ac_compile) 2>&5
18506   ac_status=$?
18507   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508   test $ac_status = 0; }; then
18509   # Parse the compiler output and extract the necessary
18510   # objects, libraries and library flags.
18511
18512   # Sentinel used to keep track of whether or not we are before
18513   # the conftest object file.
18514   pre_test_object_deps_done=no
18515
18516   for p in `eval "$output_verbose_link_cmd"`; do
18517     case $prev$p in
18518
18519     -L* | -R* | -l*)
18520        # Some compilers place space between "-{L,R}" and the path.
18521        # Remove the space.
18522        if test x-L = "$p" ||
18523           test x-R = "$p"; then
18524          prev=$p
18525          continue
18526        fi
18527
18528        # Expand the sysroot to ease extracting the directories later.
18529        if test -z "$prev"; then
18530          case $p in
18531          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18532          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18533          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18534          esac
18535        fi
18536        case $p in
18537        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18538        esac
18539        if test no = "$pre_test_object_deps_done"; then
18540          case $prev in
18541          -L | -R)
18542            # Internal compiler library paths should come after those
18543            # provided the user.  The postdeps already come after the
18544            # user supplied libs so there is no need to process them.
18545            if test -z "$compiler_lib_search_path_CXX"; then
18546              compiler_lib_search_path_CXX=$prev$p
18547            else
18548              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18549            fi
18550            ;;
18551          # The "-l" case would never come before the object being
18552          # linked, so don't bother handling this case.
18553          esac
18554        else
18555          if test -z "$postdeps_CXX"; then
18556            postdeps_CXX=$prev$p
18557          else
18558            postdeps_CXX="${postdeps_CXX} $prev$p"
18559          fi
18560        fi
18561        prev=
18562        ;;
18563
18564     *.lto.$objext) ;; # Ignore GCC LTO objects
18565     *.$objext)
18566        # This assumes that the test object file only shows up
18567        # once in the compiler output.
18568        if test "$p" = "conftest.$objext"; then
18569          pre_test_object_deps_done=yes
18570          continue
18571        fi
18572
18573        if test no = "$pre_test_object_deps_done"; then
18574          if test -z "$predep_objects_CXX"; then
18575            predep_objects_CXX=$p
18576          else
18577            predep_objects_CXX="$predep_objects_CXX $p"
18578          fi
18579        else
18580          if test -z "$postdep_objects_CXX"; then
18581            postdep_objects_CXX=$p
18582          else
18583            postdep_objects_CXX="$postdep_objects_CXX $p"
18584          fi
18585        fi
18586        ;;
18587
18588     *) ;; # Ignore the rest.
18589
18590     esac
18591   done
18592
18593   # Clean up.
18594   rm -f a.out a.exe
18595 else
18596   echo "libtool.m4: error: problem compiling CXX test program"
18597 fi
18598
18599 $RM -f confest.$objext
18600 CFLAGS=$_lt_libdeps_save_CFLAGS
18601
18602 # PORTME: override above test on systems where it is broken
18603 case $host_os in
18604 interix[3-9]*)
18605   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18606   # hack all around it, let's just trust "g++" to DTRT.
18607   predep_objects_CXX=
18608   postdep_objects_CXX=
18609   postdeps_CXX=
18610   ;;
18611 esac
18612
18613
18614 case " $postdeps_CXX " in
18615 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18616 esac
18617  compiler_lib_search_dirs_CXX=
18618 if test -n "${compiler_lib_search_path_CXX}"; then
18619  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18620 fi
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652     lt_prog_compiler_wl_CXX=
18653 lt_prog_compiler_pic_CXX=
18654 lt_prog_compiler_static_CXX=
18655
18656
18657   # C++ specific cases for pic, static, wl, etc.
18658   if test yes = "$GXX"; then
18659     lt_prog_compiler_wl_CXX='-Wl,'
18660     lt_prog_compiler_static_CXX='-static'
18661
18662     case $host_os in
18663     aix*)
18664       # All AIX code is PIC.
18665       if test ia64 = "$host_cpu"; then
18666         # AIX 5 now supports IA64 processor
18667         lt_prog_compiler_static_CXX='-Bstatic'
18668       fi
18669       lt_prog_compiler_pic_CXX='-fPIC'
18670       ;;
18671
18672     amigaos*)
18673       case $host_cpu in
18674       powerpc)
18675             # see comment about AmigaOS4 .so support
18676             lt_prog_compiler_pic_CXX='-fPIC'
18677         ;;
18678       m68k)
18679             # FIXME: we need at least 68020 code to build shared libraries, but
18680             # adding the '-m68020' flag to GCC prevents building anything better,
18681             # like '-m68040'.
18682             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18683         ;;
18684       esac
18685       ;;
18686
18687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18688       # PIC is the default for these OSes.
18689       ;;
18690     mingw* | cygwin* | os2* | pw32* | cegcc*)
18691       # This hack is so that the source file can tell whether it is being
18692       # built for inclusion in a dll (and should export symbols for example).
18693       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18694       # (--disable-auto-import) libraries
18695       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18696       case $host_os in
18697       os2*)
18698         lt_prog_compiler_static_CXX='$wl-static'
18699         ;;
18700       esac
18701       ;;
18702     darwin* | rhapsody*)
18703       # PIC is the default on this platform
18704       # Common symbols not allowed in MH_DYLIB files
18705       lt_prog_compiler_pic_CXX='-fno-common'
18706       ;;
18707     *djgpp*)
18708       # DJGPP does not support shared libraries at all
18709       lt_prog_compiler_pic_CXX=
18710       ;;
18711     haiku*)
18712       # PIC is the default for Haiku.
18713       # The "-static" flag exists, but is broken.
18714       lt_prog_compiler_static_CXX=
18715       ;;
18716     interix[3-9]*)
18717       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18718       # Instead, we relocate shared libraries at runtime.
18719       ;;
18720     sysv4*MP*)
18721       if test -d /usr/nec; then
18722         lt_prog_compiler_pic_CXX=-Kconform_pic
18723       fi
18724       ;;
18725     hpux*)
18726       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18727       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18728       # sets the default TLS model and affects inlining.
18729       case $host_cpu in
18730       hppa*64*)
18731         ;;
18732       *)
18733         lt_prog_compiler_pic_CXX='-fPIC'
18734         ;;
18735       esac
18736       ;;
18737     *qnx* | *nto*)
18738       # QNX uses GNU C++, but need to define -shared option too, otherwise
18739       # it will coredump.
18740       lt_prog_compiler_pic_CXX='-fPIC -shared'
18741       ;;
18742     *)
18743       lt_prog_compiler_pic_CXX='-fPIC'
18744       ;;
18745     esac
18746   else
18747     case $host_os in
18748       aix[4-9]*)
18749         # All AIX code is PIC.
18750         if test ia64 = "$host_cpu"; then
18751           # AIX 5 now supports IA64 processor
18752           lt_prog_compiler_static_CXX='-Bstatic'
18753         else
18754           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18755         fi
18756         ;;
18757       chorus*)
18758         case $cc_basename in
18759         cxch68*)
18760           # Green Hills C++ Compiler
18761           # _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"
18762           ;;
18763         esac
18764         ;;
18765       mingw* | cygwin* | os2* | pw32* | cegcc*)
18766         # This hack is so that the source file can tell whether it is being
18767         # built for inclusion in a dll (and should export symbols for example).
18768         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18769         ;;
18770       dgux*)
18771         case $cc_basename in
18772           ec++*)
18773             lt_prog_compiler_pic_CXX='-KPIC'
18774             ;;
18775           ghcx*)
18776             # Green Hills C++ Compiler
18777             lt_prog_compiler_pic_CXX='-pic'
18778             ;;
18779           *)
18780             ;;
18781         esac
18782         ;;
18783       freebsd* | dragonfly*)
18784         # FreeBSD uses GNU C++
18785         ;;
18786       hpux9* | hpux10* | hpux11*)
18787         case $cc_basename in
18788           CC*)
18789             lt_prog_compiler_wl_CXX='-Wl,'
18790             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18791             if test ia64 != "$host_cpu"; then
18792               lt_prog_compiler_pic_CXX='+Z'
18793             fi
18794             ;;
18795           aCC*)
18796             lt_prog_compiler_wl_CXX='-Wl,'
18797             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18798             case $host_cpu in
18799             hppa*64*|ia64*)
18800               # +Z the default
18801               ;;
18802             *)
18803               lt_prog_compiler_pic_CXX='+Z'
18804               ;;
18805             esac
18806             ;;
18807           *)
18808             ;;
18809         esac
18810         ;;
18811       interix*)
18812         # This is c89, which is MS Visual C++ (no shared libs)
18813         # Anyone wants to do a port?
18814         ;;
18815       irix5* | irix6* | nonstopux*)
18816         case $cc_basename in
18817           CC*)
18818             lt_prog_compiler_wl_CXX='-Wl,'
18819             lt_prog_compiler_static_CXX='-non_shared'
18820             # CC pic flag -KPIC is the default.
18821             ;;
18822           *)
18823             ;;
18824         esac
18825         ;;
18826       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18827         case $cc_basename in
18828           KCC*)
18829             # KAI C++ Compiler
18830             lt_prog_compiler_wl_CXX='--backend -Wl,'
18831             lt_prog_compiler_pic_CXX='-fPIC'
18832             ;;
18833           ecpc* )
18834             # old Intel C++ for x86_64, which still supported -KPIC.
18835             lt_prog_compiler_wl_CXX='-Wl,'
18836             lt_prog_compiler_pic_CXX='-KPIC'
18837             lt_prog_compiler_static_CXX='-static'
18838             ;;
18839           icpc* )
18840             # Intel C++, used to be incompatible with GCC.
18841             # ICC 10 doesn't accept -KPIC any more.
18842             lt_prog_compiler_wl_CXX='-Wl,'
18843             lt_prog_compiler_pic_CXX='-fPIC'
18844             lt_prog_compiler_static_CXX='-static'
18845             ;;
18846           pgCC* | pgcpp*)
18847             # Portland Group C++ compiler
18848             lt_prog_compiler_wl_CXX='-Wl,'
18849             lt_prog_compiler_pic_CXX='-fpic'
18850             lt_prog_compiler_static_CXX='-Bstatic'
18851             ;;
18852           cxx*)
18853             # Compaq C++
18854             # Make sure the PIC flag is empty.  It appears that all Alpha
18855             # Linux and Compaq Tru64 Unix objects are PIC.
18856             lt_prog_compiler_pic_CXX=
18857             lt_prog_compiler_static_CXX='-non_shared'
18858             ;;
18859           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18860             # IBM XL 8.0, 9.0 on PPC and BlueGene
18861             lt_prog_compiler_wl_CXX='-Wl,'
18862             lt_prog_compiler_pic_CXX='-qpic'
18863             lt_prog_compiler_static_CXX='-qstaticlink'
18864             ;;
18865           *)
18866             case `$CC -V 2>&1 | sed 5q` in
18867             *Sun\ C*)
18868               # Sun C++ 5.9
18869               lt_prog_compiler_pic_CXX='-KPIC'
18870               lt_prog_compiler_static_CXX='-Bstatic'
18871               lt_prog_compiler_wl_CXX='-Qoption ld '
18872               ;;
18873             esac
18874             ;;
18875         esac
18876         ;;
18877       lynxos*)
18878         ;;
18879       m88k*)
18880         ;;
18881       mvs*)
18882         case $cc_basename in
18883           cxx*)
18884             lt_prog_compiler_pic_CXX='-W c,exportall'
18885             ;;
18886           *)
18887             ;;
18888         esac
18889         ;;
18890       netbsd* | netbsdelf*-gnu)
18891         ;;
18892       *qnx* | *nto*)
18893         # QNX uses GNU C++, but need to define -shared option too, otherwise
18894         # it will coredump.
18895         lt_prog_compiler_pic_CXX='-fPIC -shared'
18896         ;;
18897       osf3* | osf4* | osf5*)
18898         case $cc_basename in
18899           KCC*)
18900             lt_prog_compiler_wl_CXX='--backend -Wl,'
18901             ;;
18902           RCC*)
18903             # Rational C++ 2.4.1
18904             lt_prog_compiler_pic_CXX='-pic'
18905             ;;
18906           cxx*)
18907             # Digital/Compaq C++
18908             lt_prog_compiler_wl_CXX='-Wl,'
18909             # Make sure the PIC flag is empty.  It appears that all Alpha
18910             # Linux and Compaq Tru64 Unix objects are PIC.
18911             lt_prog_compiler_pic_CXX=
18912             lt_prog_compiler_static_CXX='-non_shared'
18913             ;;
18914           *)
18915             ;;
18916         esac
18917         ;;
18918       psos*)
18919         ;;
18920       solaris*)
18921         case $cc_basename in
18922           CC* | sunCC*)
18923             # Sun C++ 4.2, 5.x and Centerline C++
18924             lt_prog_compiler_pic_CXX='-KPIC'
18925             lt_prog_compiler_static_CXX='-Bstatic'
18926             lt_prog_compiler_wl_CXX='-Qoption ld '
18927             ;;
18928           gcx*)
18929             # Green Hills C++ Compiler
18930             lt_prog_compiler_pic_CXX='-PIC'
18931             ;;
18932           *)
18933             ;;
18934         esac
18935         ;;
18936       sunos4*)
18937         case $cc_basename in
18938           CC*)
18939             # Sun C++ 4.x
18940             lt_prog_compiler_pic_CXX='-pic'
18941             lt_prog_compiler_static_CXX='-Bstatic'
18942             ;;
18943           lcc*)
18944             # Lucid
18945             lt_prog_compiler_pic_CXX='-pic'
18946             ;;
18947           *)
18948             ;;
18949         esac
18950         ;;
18951       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18952         case $cc_basename in
18953           CC*)
18954             lt_prog_compiler_wl_CXX='-Wl,'
18955             lt_prog_compiler_pic_CXX='-KPIC'
18956             lt_prog_compiler_static_CXX='-Bstatic'
18957             ;;
18958         esac
18959         ;;
18960       tandem*)
18961         case $cc_basename in
18962           NCC*)
18963             # NonStop-UX NCC 3.20
18964             lt_prog_compiler_pic_CXX='-KPIC'
18965             ;;
18966           *)
18967             ;;
18968         esac
18969         ;;
18970       vxworks*)
18971         ;;
18972       *)
18973         lt_prog_compiler_can_build_shared_CXX=no
18974         ;;
18975     esac
18976   fi
18977
18978 case $host_os in
18979   # For platforms that do not support PIC, -DPIC is meaningless:
18980   *djgpp*)
18981     lt_prog_compiler_pic_CXX=
18982     ;;
18983   *)
18984     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18985     ;;
18986 esac
18987
18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18989 printf %s "checking for $compiler option to produce PIC... " >&6; }
18990 if test ${lt_cv_prog_compiler_pic_CXX+y}
18991 then :
18992   printf %s "(cached) " >&6
18993 else $as_nop
18994   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18995 fi
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18997 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18998 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18999
19000 #
19001 # Check to make sure the PIC flag actually works.
19002 #
19003 if test -n "$lt_prog_compiler_pic_CXX"; then
19004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19005 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19006 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19007 then :
19008   printf %s "(cached) " >&6
19009 else $as_nop
19010   lt_cv_prog_compiler_pic_works_CXX=no
19011    ac_outfile=conftest.$ac_objext
19012    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19013    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
19014    # Insert the option either (1) after the last *FLAGS variable, or
19015    # (2) before a word containing "conftest.", or (3) at the end.
19016    # Note that $ac_compile itself does not contain backslashes and begins
19017    # with a dollar sign (not a hyphen), so the echo should work correctly.
19018    # The option is referenced via a variable to avoid confusing sed.
19019    lt_compile=`echo "$ac_compile" | $SED \
19020    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19021    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19022    -e 's:$: $lt_compiler_flag:'`
19023    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19024    (eval "$lt_compile" 2>conftest.err)
19025    ac_status=$?
19026    cat conftest.err >&5
19027    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028    if (exit $ac_status) && test -s "$ac_outfile"; then
19029      # The compiler can only warn and ignore the option if not recognized
19030      # So say no if there are warnings other than the usual output.
19031      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19032      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19033      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19034        lt_cv_prog_compiler_pic_works_CXX=yes
19035      fi
19036    fi
19037    $RM conftest*
19038
19039 fi
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19041 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19042
19043 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19044     case $lt_prog_compiler_pic_CXX in
19045      "" | " "*) ;;
19046      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19047      esac
19048 else
19049     lt_prog_compiler_pic_CXX=
19050      lt_prog_compiler_can_build_shared_CXX=no
19051 fi
19052
19053 fi
19054
19055
19056
19057
19058
19059 #
19060 # Check to make sure the static flag actually works.
19061 #
19062 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19064 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19065 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19066 then :
19067   printf %s "(cached) " >&6
19068 else $as_nop
19069   lt_cv_prog_compiler_static_works_CXX=no
19070    save_LDFLAGS=$LDFLAGS
19071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19072    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19074      # The linker can only warn and ignore the option if not recognized
19075      # So say no if there are warnings
19076      if test -s conftest.err; then
19077        # Append any errors to the config.log.
19078        cat conftest.err 1>&5
19079        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19081        if diff conftest.exp conftest.er2 >/dev/null; then
19082          lt_cv_prog_compiler_static_works_CXX=yes
19083        fi
19084      else
19085        lt_cv_prog_compiler_static_works_CXX=yes
19086      fi
19087    fi
19088    $RM -r conftest*
19089    LDFLAGS=$save_LDFLAGS
19090
19091 fi
19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19093 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19094
19095 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19096     :
19097 else
19098     lt_prog_compiler_static_CXX=
19099 fi
19100
19101
19102
19103
19104     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19105 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19106 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19107 then :
19108   printf %s "(cached) " >&6
19109 else $as_nop
19110   lt_cv_prog_compiler_c_o_CXX=no
19111    $RM -r conftest 2>/dev/null
19112    mkdir conftest
19113    cd conftest
19114    mkdir out
19115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19116
19117    lt_compiler_flag="-o out/conftest2.$ac_objext"
19118    # Insert the option either (1) after the last *FLAGS variable, or
19119    # (2) before a word containing "conftest.", or (3) at the end.
19120    # Note that $ac_compile itself does not contain backslashes and begins
19121    # with a dollar sign (not a hyphen), so the echo should work correctly.
19122    lt_compile=`echo "$ac_compile" | $SED \
19123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19125    -e 's:$: $lt_compiler_flag:'`
19126    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19127    (eval "$lt_compile" 2>out/conftest.err)
19128    ac_status=$?
19129    cat out/conftest.err >&5
19130    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19132    then
19133      # The compiler can only warn and ignore the option if not recognized
19134      # So say no if there are warnings
19135      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19138        lt_cv_prog_compiler_c_o_CXX=yes
19139      fi
19140    fi
19141    chmod u+w . 2>&5
19142    $RM conftest*
19143    # SGI C++ compiler will create directory out/ii_files/ for
19144    # template instantiation
19145    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19146    $RM out/* && rmdir out
19147    cd ..
19148    $RM -r conftest
19149    $RM conftest*
19150
19151 fi
19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19153 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19154
19155
19156
19157     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19158 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19159 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19160 then :
19161   printf %s "(cached) " >&6
19162 else $as_nop
19163   lt_cv_prog_compiler_c_o_CXX=no
19164    $RM -r conftest 2>/dev/null
19165    mkdir conftest
19166    cd conftest
19167    mkdir out
19168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19169
19170    lt_compiler_flag="-o out/conftest2.$ac_objext"
19171    # Insert the option either (1) after the last *FLAGS variable, or
19172    # (2) before a word containing "conftest.", or (3) at the end.
19173    # Note that $ac_compile itself does not contain backslashes and begins
19174    # with a dollar sign (not a hyphen), so the echo should work correctly.
19175    lt_compile=`echo "$ac_compile" | $SED \
19176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19178    -e 's:$: $lt_compiler_flag:'`
19179    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19180    (eval "$lt_compile" 2>out/conftest.err)
19181    ac_status=$?
19182    cat out/conftest.err >&5
19183    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19185    then
19186      # The compiler can only warn and ignore the option if not recognized
19187      # So say no if there are warnings
19188      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19189      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19190      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19191        lt_cv_prog_compiler_c_o_CXX=yes
19192      fi
19193    fi
19194    chmod u+w . 2>&5
19195    $RM conftest*
19196    # SGI C++ compiler will create directory out/ii_files/ for
19197    # template instantiation
19198    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19199    $RM out/* && rmdir out
19200    cd ..
19201    $RM -r conftest
19202    $RM conftest*
19203
19204 fi
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19206 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19207
19208
19209
19210
19211 hard_links=nottested
19212 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19213   # do not overwrite the value of need_locks provided by the user
19214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19215 printf %s "checking if we can lock with hard links... " >&6; }
19216   hard_links=yes
19217   $RM conftest*
19218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19219   touch conftest.a
19220   ln conftest.a conftest.b 2>&5 || hard_links=no
19221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19223 printf "%s\n" "$hard_links" >&6; }
19224   if test no = "$hard_links"; then
19225     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19226 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19227     need_locks=warn
19228   fi
19229 else
19230   need_locks=no
19231 fi
19232
19233
19234
19235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19236 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19237
19238   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19239   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19240   case $host_os in
19241   aix[4-9]*)
19242     # If we're using GNU nm, then we don't want the "-C" option.
19243     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19244     # Without the "-l" option, or with the "-B" option, AIX nm treats
19245     # weak defined symbols like other global defined symbols, whereas
19246     # GNU nm marks them as "W".
19247     # While the 'weak' keyword is ignored in the Export File, we need
19248     # it in the Import File for the 'aix-soname' feature, so we have
19249     # to replace the "-B" option with "-P" for AIX nm.
19250     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19251       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'
19252     else
19253       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'
19254     fi
19255     ;;
19256   pw32*)
19257     export_symbols_cmds_CXX=$ltdll_cmds
19258     ;;
19259   cygwin* | mingw* | cegcc*)
19260     case $cc_basename in
19261     cl*)
19262       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19263       ;;
19264     *)
19265       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'
19266       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19267       ;;
19268     esac
19269     ;;
19270   linux* | k*bsd*-gnu | gnu*)
19271     link_all_deplibs_CXX=no
19272     ;;
19273   *)
19274     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19275     ;;
19276   esac
19277
19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19279 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19280 test no = "$ld_shlibs_CXX" && can_build_shared=no
19281
19282 with_gnu_ld_CXX=$with_gnu_ld
19283
19284
19285
19286
19287
19288
19289 #
19290 # Do we need to explicitly link libc?
19291 #
19292 case "x$archive_cmds_need_lc_CXX" in
19293 x|xyes)
19294   # Assume -lc should be added
19295   archive_cmds_need_lc_CXX=yes
19296
19297   if test yes,yes = "$GCC,$enable_shared"; then
19298     case $archive_cmds_CXX in
19299     *'~'*)
19300       # FIXME: we may have to deal with multi-command sequences.
19301       ;;
19302     '$CC '*)
19303       # Test whether the compiler implicitly links with -lc since on some
19304       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19305       # to ld, don't add -lc before -lgcc.
19306       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19307 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
19308 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
19309 then :
19310   printf %s "(cached) " >&6
19311 else $as_nop
19312   $RM conftest*
19313         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19314
19315         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19316   (eval $ac_compile) 2>&5
19317   ac_status=$?
19318   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19319   test $ac_status = 0; } 2>conftest.err; then
19320           soname=conftest
19321           lib=conftest
19322           libobjs=conftest.$ac_objext
19323           deplibs=
19324           wl=$lt_prog_compiler_wl_CXX
19325           pic_flag=$lt_prog_compiler_pic_CXX
19326           compiler_flags=-v
19327           linker_flags=-v
19328           verstring=
19329           output_objdir=.
19330           libname=conftest
19331           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19332           allow_undefined_flag_CXX=
19333           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19334   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19335   ac_status=$?
19336   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19337   test $ac_status = 0; }
19338           then
19339             lt_cv_archive_cmds_need_lc_CXX=no
19340           else
19341             lt_cv_archive_cmds_need_lc_CXX=yes
19342           fi
19343           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19344         else
19345           cat conftest.err 1>&5
19346         fi
19347         $RM conftest*
19348
19349 fi
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19351 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19352       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19353       ;;
19354     esac
19355   fi
19356   ;;
19357 esac
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19421 printf %s "checking dynamic linker characteristics... " >&6; }
19422
19423 library_names_spec=
19424 libname_spec='lib$name'
19425 soname_spec=
19426 shrext_cmds=.so
19427 postinstall_cmds=
19428 postuninstall_cmds=
19429 finish_cmds=
19430 finish_eval=
19431 shlibpath_var=
19432 shlibpath_overrides_runpath=unknown
19433 version_type=none
19434 dynamic_linker="$host_os ld.so"
19435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19436 need_lib_prefix=unknown
19437 hardcode_into_libs=no
19438
19439 # when you set need_version to no, make sure it does not cause -set_version
19440 # flags to be left without arguments
19441 need_version=unknown
19442
19443
19444
19445 case $host_os in
19446 aix3*)
19447   version_type=linux # correct to gnu/linux during the next big refactor
19448   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19449   shlibpath_var=LIBPATH
19450
19451   # AIX 3 has no versioning support, so we append a major version to the name.
19452   soname_spec='$libname$release$shared_ext$major'
19453   ;;
19454
19455 aix[4-9]*)
19456   version_type=linux # correct to gnu/linux during the next big refactor
19457   need_lib_prefix=no
19458   need_version=no
19459   hardcode_into_libs=yes
19460   if test ia64 = "$host_cpu"; then
19461     # AIX 5 supports IA64
19462     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19463     shlibpath_var=LD_LIBRARY_PATH
19464   else
19465     # With GCC up to 2.95.x, collect2 would create an import file
19466     # for dependence libraries.  The import file would start with
19467     # the line '#! .'.  This would cause the generated library to
19468     # depend on '.', always an invalid library.  This was fixed in
19469     # development snapshots of GCC prior to 3.0.
19470     case $host_os in
19471       aix4 | aix4.[01] | aix4.[01].*)
19472       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19473            echo ' yes '
19474            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19475         :
19476       else
19477         can_build_shared=no
19478       fi
19479       ;;
19480     esac
19481     # Using Import Files as archive members, it is possible to support
19482     # filename-based versioning of shared library archives on AIX. While
19483     # this would work for both with and without runtime linking, it will
19484     # prevent static linking of such archives. So we do filename-based
19485     # shared library versioning with .so extension only, which is used
19486     # when both runtime linking and shared linking is enabled.
19487     # Unfortunately, runtime linking may impact performance, so we do
19488     # not want this to be the default eventually. Also, we use the
19489     # versioned .so libs for executables only if there is the -brtl
19490     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19491     # To allow for filename-based versioning support, we need to create
19492     # libNAME.so.V as an archive file, containing:
19493     # *) an Import File, referring to the versioned filename of the
19494     #    archive as well as the shared archive member, telling the
19495     #    bitwidth (32 or 64) of that shared object, and providing the
19496     #    list of exported symbols of that shared object, eventually
19497     #    decorated with the 'weak' keyword
19498     # *) the shared object with the F_LOADONLY flag set, to really avoid
19499     #    it being seen by the linker.
19500     # At run time we better use the real file rather than another symlink,
19501     # but for link time we create the symlink libNAME.so -> libNAME.so.V
19502
19503     case $with_aix_soname,$aix_use_runtimelinking in
19504     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19505     # soname into executable. Probably we can add versioning support to
19506     # collect2, so additional links can be useful in future.
19507     aix,yes) # traditional libtool
19508       dynamic_linker='AIX unversionable lib.so'
19509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19510       # instead of lib<name>.a to let people know that these are not
19511       # typical AIX shared libraries.
19512       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19513       ;;
19514     aix,no) # traditional AIX only
19515       dynamic_linker='AIX lib.a(lib.so.V)'
19516       # We preserve .a as extension for shared libraries through AIX4.2
19517       # and later when we are not doing run time linking.
19518       library_names_spec='$libname$release.a $libname.a'
19519       soname_spec='$libname$release$shared_ext$major'
19520       ;;
19521     svr4,*) # full svr4 only
19522       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19523       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19524       # We do not specify a path in Import Files, so LIBPATH fires.
19525       shlibpath_overrides_runpath=yes
19526       ;;
19527     *,yes) # both, prefer svr4
19528       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19529       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19530       # unpreferred sharedlib libNAME.a needs extra handling
19531       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"'
19532       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"'
19533       # We do not specify a path in Import Files, so LIBPATH fires.
19534       shlibpath_overrides_runpath=yes
19535       ;;
19536     *,no) # both, prefer aix
19537       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19538       library_names_spec='$libname$release.a $libname.a'
19539       soname_spec='$libname$release$shared_ext$major'
19540       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19541       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)'
19542       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"'
19543       ;;
19544     esac
19545     shlibpath_var=LIBPATH
19546   fi
19547   ;;
19548
19549 amigaos*)
19550   case $host_cpu in
19551   powerpc)
19552     # Since July 2007 AmigaOS4 officially supports .so libraries.
19553     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19554     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19555     ;;
19556   m68k)
19557     library_names_spec='$libname.ixlibrary $libname.a'
19558     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19559     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'
19560     ;;
19561   esac
19562   ;;
19563
19564 beos*)
19565   library_names_spec='$libname$shared_ext'
19566   dynamic_linker="$host_os ld.so"
19567   shlibpath_var=LIBRARY_PATH
19568   ;;
19569
19570 bsdi[45]*)
19571   version_type=linux # correct to gnu/linux during the next big refactor
19572   need_version=no
19573   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19574   soname_spec='$libname$release$shared_ext$major'
19575   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19576   shlibpath_var=LD_LIBRARY_PATH
19577   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19578   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19579   # the default ld.so.conf also contains /usr/contrib/lib and
19580   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19581   # libtool to hard-code these into programs
19582   ;;
19583
19584 cygwin* | mingw* | pw32* | cegcc*)
19585   version_type=windows
19586   shrext_cmds=.dll
19587   need_version=no
19588   need_lib_prefix=no
19589
19590   case $GCC,$cc_basename in
19591   yes,*)
19592     # gcc
19593     library_names_spec='$libname.dll.a'
19594     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19595     postinstall_cmds='base_file=`basename \$file`~
19596       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19597       dldir=$destdir/`dirname \$dlpath`~
19598       test -d \$dldir || mkdir -p \$dldir~
19599       $install_prog $dir/$dlname \$dldir/$dlname~
19600       chmod a+x \$dldir/$dlname~
19601       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19602         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19603       fi'
19604     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19605       dlpath=$dir/\$dldll~
19606        $RM \$dlpath'
19607     shlibpath_overrides_runpath=yes
19608
19609     case $host_os in
19610     cygwin*)
19611       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19612       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19613
19614       ;;
19615     mingw* | cegcc*)
19616       # MinGW DLLs use traditional 'lib' prefix
19617       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19618       ;;
19619     pw32*)
19620       # pw32 DLLs use 'pw' prefix rather than 'lib'
19621       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19622       ;;
19623     esac
19624     dynamic_linker='Win32 ld.exe'
19625     ;;
19626
19627   *,cl*)
19628     # Native MSVC
19629     libname_spec='$name'
19630     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19631     library_names_spec='$libname.dll.lib'
19632
19633     case $build_os in
19634     mingw*)
19635       sys_lib_search_path_spec=
19636       lt_save_ifs=$IFS
19637       IFS=';'
19638       for lt_path in $LIB
19639       do
19640         IFS=$lt_save_ifs
19641         # Let DOS variable expansion print the short 8.3 style file name.
19642         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19643         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19644       done
19645       IFS=$lt_save_ifs
19646       # Convert to MSYS style.
19647       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19648       ;;
19649     cygwin*)
19650       # Convert to unix form, then to dos form, then back to unix form
19651       # but this time dos style (no spaces!) so that the unix form looks
19652       # like /cygdrive/c/PROGRA~1:/cygdr...
19653       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19654       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19655       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19656       ;;
19657     *)
19658       sys_lib_search_path_spec=$LIB
19659       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19660         # It is most probably a Windows format PATH.
19661         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19662       else
19663         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19664       fi
19665       # FIXME: find the short name or the path components, as spaces are
19666       # common. (e.g. "Program Files" -> "PROGRA~1")
19667       ;;
19668     esac
19669
19670     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19671     postinstall_cmds='base_file=`basename \$file`~
19672       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19673       dldir=$destdir/`dirname \$dlpath`~
19674       test -d \$dldir || mkdir -p \$dldir~
19675       $install_prog $dir/$dlname \$dldir/$dlname'
19676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19677       dlpath=$dir/\$dldll~
19678        $RM \$dlpath'
19679     shlibpath_overrides_runpath=yes
19680     dynamic_linker='Win32 link.exe'
19681     ;;
19682
19683   *)
19684     # Assume MSVC wrapper
19685     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19686     dynamic_linker='Win32 ld.exe'
19687     ;;
19688   esac
19689   # FIXME: first we should search . and the directory the executable is in
19690   shlibpath_var=PATH
19691   ;;
19692
19693 darwin* | rhapsody*)
19694   dynamic_linker="$host_os dyld"
19695   version_type=darwin
19696   need_lib_prefix=no
19697   need_version=no
19698   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19699   soname_spec='$libname$release$major$shared_ext'
19700   shlibpath_overrides_runpath=yes
19701   shlibpath_var=DYLD_LIBRARY_PATH
19702   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19703
19704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19705   ;;
19706
19707 dgux*)
19708   version_type=linux # correct to gnu/linux during the next big refactor
19709   need_lib_prefix=no
19710   need_version=no
19711   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19712   soname_spec='$libname$release$shared_ext$major'
19713   shlibpath_var=LD_LIBRARY_PATH
19714   ;;
19715
19716 freebsd* | dragonfly*)
19717   # DragonFly does not have aout.  When/if they implement a new
19718   # versioning mechanism, adjust this.
19719   if test -x /usr/bin/objformat; then
19720     objformat=`/usr/bin/objformat`
19721   else
19722     case $host_os in
19723     freebsd[23].*) objformat=aout ;;
19724     *) objformat=elf ;;
19725     esac
19726   fi
19727   version_type=freebsd-$objformat
19728   case $version_type in
19729     freebsd-elf*)
19730       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19731       soname_spec='$libname$release$shared_ext$major'
19732       need_version=no
19733       need_lib_prefix=no
19734       ;;
19735     freebsd-*)
19736       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19737       need_version=yes
19738       ;;
19739   esac
19740   shlibpath_var=LD_LIBRARY_PATH
19741   case $host_os in
19742   freebsd2.*)
19743     shlibpath_overrides_runpath=yes
19744     ;;
19745   freebsd3.[01]* | freebsdelf3.[01]*)
19746     shlibpath_overrides_runpath=yes
19747     hardcode_into_libs=yes
19748     ;;
19749   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19750   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19751     shlibpath_overrides_runpath=no
19752     hardcode_into_libs=yes
19753     ;;
19754   *) # from 4.6 on, and DragonFly
19755     shlibpath_overrides_runpath=yes
19756     hardcode_into_libs=yes
19757     ;;
19758   esac
19759   ;;
19760
19761 haiku*)
19762   version_type=linux # correct to gnu/linux during the next big refactor
19763   need_lib_prefix=no
19764   need_version=no
19765   dynamic_linker="$host_os runtime_loader"
19766   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19767   soname_spec='$libname$release$shared_ext$major'
19768   shlibpath_var=LIBRARY_PATH
19769   shlibpath_overrides_runpath=no
19770   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19771   hardcode_into_libs=yes
19772   ;;
19773
19774 hpux9* | hpux10* | hpux11*)
19775   # Give a soname corresponding to the major version so that dld.sl refuses to
19776   # link against other versions.
19777   version_type=sunos
19778   need_lib_prefix=no
19779   need_version=no
19780   case $host_cpu in
19781   ia64*)
19782     shrext_cmds='.so'
19783     hardcode_into_libs=yes
19784     dynamic_linker="$host_os dld.so"
19785     shlibpath_var=LD_LIBRARY_PATH
19786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19788     soname_spec='$libname$release$shared_ext$major'
19789     if test 32 = "$HPUX_IA64_MODE"; then
19790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19791       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19792     else
19793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19794       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19795     fi
19796     ;;
19797   hppa*64*)
19798     shrext_cmds='.sl'
19799     hardcode_into_libs=yes
19800     dynamic_linker="$host_os dld.sl"
19801     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19803     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19804     soname_spec='$libname$release$shared_ext$major'
19805     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19807     ;;
19808   *)
19809     shrext_cmds='.sl'
19810     dynamic_linker="$host_os dld.sl"
19811     shlibpath_var=SHLIB_PATH
19812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19813     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19814     soname_spec='$libname$release$shared_ext$major'
19815     ;;
19816   esac
19817   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19818   postinstall_cmds='chmod 555 $lib'
19819   # or fails outright, so override atomically:
19820   install_override_mode=555
19821   ;;
19822
19823 interix[3-9]*)
19824   version_type=linux # correct to gnu/linux during the next big refactor
19825   need_lib_prefix=no
19826   need_version=no
19827   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19828   soname_spec='$libname$release$shared_ext$major'
19829   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19830   shlibpath_var=LD_LIBRARY_PATH
19831   shlibpath_overrides_runpath=no
19832   hardcode_into_libs=yes
19833   ;;
19834
19835 irix5* | irix6* | nonstopux*)
19836   case $host_os in
19837     nonstopux*) version_type=nonstopux ;;
19838     *)
19839         if test yes = "$lt_cv_prog_gnu_ld"; then
19840                 version_type=linux # correct to gnu/linux during the next big refactor
19841         else
19842                 version_type=irix
19843         fi ;;
19844   esac
19845   need_lib_prefix=no
19846   need_version=no
19847   soname_spec='$libname$release$shared_ext$major'
19848   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19849   case $host_os in
19850   irix5* | nonstopux*)
19851     libsuff= shlibsuff=
19852     ;;
19853   *)
19854     case $LD in # libtool.m4 will add one of these switches to LD
19855     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19856       libsuff= shlibsuff= libmagic=32-bit;;
19857     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19858       libsuff=32 shlibsuff=N32 libmagic=N32;;
19859     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19860       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19861     *) libsuff= shlibsuff= libmagic=never-match;;
19862     esac
19863     ;;
19864   esac
19865   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19866   shlibpath_overrides_runpath=no
19867   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19868   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19869   hardcode_into_libs=yes
19870   ;;
19871
19872 # No shared lib support for Linux oldld, aout, or coff.
19873 linux*oldld* | linux*aout* | linux*coff*)
19874   dynamic_linker=no
19875   ;;
19876
19877 linux*android*)
19878   version_type=none # Android doesn't support versioned libraries.
19879   need_lib_prefix=no
19880   need_version=no
19881   library_names_spec='$libname$release$shared_ext'
19882   soname_spec='$libname$release$shared_ext'
19883   finish_cmds=
19884   shlibpath_var=LD_LIBRARY_PATH
19885   shlibpath_overrides_runpath=yes
19886
19887   # This implies no fast_install, which is unacceptable.
19888   # Some rework will be needed to allow for fast_install
19889   # before this can be enabled.
19890   hardcode_into_libs=yes
19891
19892   dynamic_linker='Android linker'
19893   # Don't embed -rpath directories since the linker doesn't support them.
19894   hardcode_libdir_flag_spec_CXX='-L$libdir'
19895   ;;
19896
19897 # This must be glibc/ELF.
19898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19899   version_type=linux # correct to gnu/linux during the next big refactor
19900   need_lib_prefix=no
19901   need_version=no
19902   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19903   soname_spec='$libname$release$shared_ext$major'
19904   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19905   shlibpath_var=LD_LIBRARY_PATH
19906   shlibpath_overrides_runpath=no
19907
19908   # Some binutils ld are patched to set DT_RUNPATH
19909   if test ${lt_cv_shlibpath_overrides_runpath+y}
19910 then :
19911   printf %s "(cached) " >&6
19912 else $as_nop
19913   lt_cv_shlibpath_overrides_runpath=no
19914     save_LDFLAGS=$LDFLAGS
19915     save_libdir=$libdir
19916     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19917          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h.  */
19920
19921 int
19922 main (void)
19923 {
19924
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 if ac_fn_cxx_try_link "$LINENO"
19930 then :
19931   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19932 then :
19933   lt_cv_shlibpath_overrides_runpath=yes
19934 fi
19935 fi
19936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19937     conftest$ac_exeext conftest.$ac_ext
19938     LDFLAGS=$save_LDFLAGS
19939     libdir=$save_libdir
19940
19941 fi
19942
19943   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19944
19945   # This implies no fast_install, which is unacceptable.
19946   # Some rework will be needed to allow for fast_install
19947   # before this can be enabled.
19948   hardcode_into_libs=yes
19949
19950   # Ideally, we could use ldconfig to report *all* directores which are
19951   # searched for libraries, however this is still not possible.  Aside from not
19952   # being certain /sbin/ldconfig is available, command
19953   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19954   # even though it is searched at run-time.  Try to do the best guess by
19955   # appending ld.so.conf contents (and includes) to the search path.
19956   if test -f /etc/ld.so.conf; then
19957     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' ' '`
19958     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19959   fi
19960
19961   # We used to test for /lib/ld.so.1 and disable shared libraries on
19962   # powerpc, because MkLinux only supported shared libraries with the
19963   # GNU dynamic linker.  Since this was broken with cross compilers,
19964   # most powerpc-linux boxes support dynamic linking these days and
19965   # people can always --disable-shared, the test was removed, and we
19966   # assume the GNU/Linux dynamic linker is in use.
19967   dynamic_linker='GNU/Linux ld.so'
19968   ;;
19969
19970 netbsdelf*-gnu)
19971   version_type=linux
19972   need_lib_prefix=no
19973   need_version=no
19974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19975   soname_spec='${libname}${release}${shared_ext}$major'
19976   shlibpath_var=LD_LIBRARY_PATH
19977   shlibpath_overrides_runpath=no
19978   hardcode_into_libs=yes
19979   dynamic_linker='NetBSD ld.elf_so'
19980   ;;
19981
19982 netbsd*)
19983   version_type=sunos
19984   need_lib_prefix=no
19985   need_version=no
19986   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19987     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19988     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19989     dynamic_linker='NetBSD (a.out) ld.so'
19990   else
19991     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19992     soname_spec='$libname$release$shared_ext$major'
19993     dynamic_linker='NetBSD ld.elf_so'
19994   fi
19995   shlibpath_var=LD_LIBRARY_PATH
19996   shlibpath_overrides_runpath=yes
19997   hardcode_into_libs=yes
19998   ;;
19999
20000 newsos6)
20001   version_type=linux # correct to gnu/linux during the next big refactor
20002   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20003   shlibpath_var=LD_LIBRARY_PATH
20004   shlibpath_overrides_runpath=yes
20005   ;;
20006
20007 *nto* | *qnx*)
20008   version_type=qnx
20009   need_lib_prefix=no
20010   need_version=no
20011   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20012   soname_spec='$libname$release$shared_ext$major'
20013   shlibpath_var=LD_LIBRARY_PATH
20014   shlibpath_overrides_runpath=no
20015   hardcode_into_libs=yes
20016   dynamic_linker='ldqnx.so'
20017   ;;
20018
20019 openbsd* | bitrig*)
20020   version_type=sunos
20021   sys_lib_dlsearch_path_spec=/usr/lib
20022   need_lib_prefix=no
20023   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20024     need_version=no
20025   else
20026     need_version=yes
20027   fi
20028   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20030   shlibpath_var=LD_LIBRARY_PATH
20031   shlibpath_overrides_runpath=yes
20032   ;;
20033
20034 os2*)
20035   libname_spec='$name'
20036   version_type=windows
20037   shrext_cmds=.dll
20038   need_version=no
20039   need_lib_prefix=no
20040   # OS/2 can only load a DLL with a base name of 8 characters or less.
20041   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20042     v=$($ECHO $release$versuffix | tr -d .-);
20043     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20044     $ECHO $n$v`$shared_ext'
20045   library_names_spec='${libname}_dll.$libext'
20046   dynamic_linker='OS/2 ld.exe'
20047   shlibpath_var=BEGINLIBPATH
20048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20049   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050   postinstall_cmds='base_file=`basename \$file`~
20051     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20052     dldir=$destdir/`dirname \$dlpath`~
20053     test -d \$dldir || mkdir -p \$dldir~
20054     $install_prog $dir/$dlname \$dldir/$dlname~
20055     chmod a+x \$dldir/$dlname~
20056     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20057       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20058     fi'
20059   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20060     dlpath=$dir/\$dldll~
20061     $RM \$dlpath'
20062   ;;
20063
20064 osf3* | osf4* | osf5*)
20065   version_type=osf
20066   need_lib_prefix=no
20067   need_version=no
20068   soname_spec='$libname$release$shared_ext$major'
20069   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20070   shlibpath_var=LD_LIBRARY_PATH
20071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20072   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20073   ;;
20074
20075 rdos*)
20076   dynamic_linker=no
20077   ;;
20078
20079 solaris*)
20080   version_type=linux # correct to gnu/linux during the next big refactor
20081   need_lib_prefix=no
20082   need_version=no
20083   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20084   soname_spec='$libname$release$shared_ext$major'
20085   shlibpath_var=LD_LIBRARY_PATH
20086   shlibpath_overrides_runpath=yes
20087   hardcode_into_libs=yes
20088   # ldd complains unless libraries are executable
20089   postinstall_cmds='chmod +x $lib'
20090   ;;
20091
20092 sunos4*)
20093   version_type=sunos
20094   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20095   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20096   shlibpath_var=LD_LIBRARY_PATH
20097   shlibpath_overrides_runpath=yes
20098   if test yes = "$with_gnu_ld"; then
20099     need_lib_prefix=no
20100   fi
20101   need_version=yes
20102   ;;
20103
20104 sysv4 | sysv4.3*)
20105   version_type=linux # correct to gnu/linux during the next big refactor
20106   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20107   soname_spec='$libname$release$shared_ext$major'
20108   shlibpath_var=LD_LIBRARY_PATH
20109   case $host_vendor in
20110     sni)
20111       shlibpath_overrides_runpath=no
20112       need_lib_prefix=no
20113       runpath_var=LD_RUN_PATH
20114       ;;
20115     siemens)
20116       need_lib_prefix=no
20117       ;;
20118     motorola)
20119       need_lib_prefix=no
20120       need_version=no
20121       shlibpath_overrides_runpath=no
20122       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20123       ;;
20124   esac
20125   ;;
20126
20127 sysv4*MP*)
20128   if test -d /usr/nec; then
20129     version_type=linux # correct to gnu/linux during the next big refactor
20130     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20131     soname_spec='$libname$shared_ext.$major'
20132     shlibpath_var=LD_LIBRARY_PATH
20133   fi
20134   ;;
20135
20136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20137   version_type=sco
20138   need_lib_prefix=no
20139   need_version=no
20140   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20141   soname_spec='$libname$release$shared_ext$major'
20142   shlibpath_var=LD_LIBRARY_PATH
20143   shlibpath_overrides_runpath=yes
20144   hardcode_into_libs=yes
20145   if test yes = "$with_gnu_ld"; then
20146     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20147   else
20148     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20149     case $host_os in
20150       sco3.2v5*)
20151         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20152         ;;
20153     esac
20154   fi
20155   sys_lib_dlsearch_path_spec='/usr/lib'
20156   ;;
20157
20158 tpf*)
20159   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20160   version_type=linux # correct to gnu/linux during the next big refactor
20161   need_lib_prefix=no
20162   need_version=no
20163   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20164   shlibpath_var=LD_LIBRARY_PATH
20165   shlibpath_overrides_runpath=no
20166   hardcode_into_libs=yes
20167   ;;
20168
20169 uts4*)
20170   version_type=linux # correct to gnu/linux during the next big refactor
20171   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20172   soname_spec='$libname$release$shared_ext$major'
20173   shlibpath_var=LD_LIBRARY_PATH
20174   ;;
20175
20176 *)
20177   dynamic_linker=no
20178   ;;
20179 esac
20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20181 printf "%s\n" "$dynamic_linker" >&6; }
20182 test no = "$dynamic_linker" && can_build_shared=no
20183
20184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20185 if test yes = "$GCC"; then
20186   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20187 fi
20188
20189 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20190   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20191 fi
20192
20193 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20194   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20195 fi
20196
20197 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20198 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20199
20200 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20201 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20202
20203 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20204 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20246 printf %s "checking how to hardcode library paths into programs... " >&6; }
20247 hardcode_action_CXX=
20248 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20249    test -n "$runpath_var_CXX" ||
20250    test yes = "$hardcode_automatic_CXX"; then
20251
20252   # We can hardcode non-existent directories.
20253   if test no != "$hardcode_direct_CXX" &&
20254      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20255      # have to relink, otherwise we might link with an installed library
20256      # when we should be linking with a yet-to-be-installed one
20257      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20258      test no != "$hardcode_minus_L_CXX"; then
20259     # Linking always hardcodes the temporary library directory.
20260     hardcode_action_CXX=relink
20261   else
20262     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20263     hardcode_action_CXX=immediate
20264   fi
20265 else
20266   # We cannot hardcode anything, or else we can only hardcode existing
20267   # directories.
20268   hardcode_action_CXX=unsupported
20269 fi
20270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20271 printf "%s\n" "$hardcode_action_CXX" >&6; }
20272
20273 if test relink = "$hardcode_action_CXX" ||
20274    test yes = "$inherit_rpath_CXX"; then
20275   # Fast installation is not supported
20276   enable_fast_install=no
20277 elif test yes = "$shlibpath_overrides_runpath" ||
20278      test no = "$enable_shared"; then
20279   # Fast installation is not necessary
20280   enable_fast_install=needless
20281 fi
20282
20283
20284
20285
20286
20287
20288
20289   fi # test -n "$compiler"
20290
20291   CC=$lt_save_CC
20292   CFLAGS=$lt_save_CFLAGS
20293   LDCXX=$LD
20294   LD=$lt_save_LD
20295   GCC=$lt_save_GCC
20296   with_gnu_ld=$lt_save_with_gnu_ld
20297   lt_cv_path_LDCXX=$lt_cv_path_LD
20298   lt_cv_path_LD=$lt_save_path_LD
20299   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20300   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20301 fi # test yes != "$_lt_caught_CXX_error"
20302
20303 ac_ext=c
20304 ac_cpp='$CPP $CPPFLAGS'
20305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323         ac_config_commands="$ac_config_commands libtool"
20324
20325
20326
20327
20328 # Only expand once:
20329
20330
20331 ## --------------------- ##
20332 ##  End of libtool code  ##
20333 ## --------------------- ##
20334
20335 #
20336 # Verify if finally libtool shared libraries will be built
20337 #
20338
20339 case "x$enable_shared" in # ((
20340   xyes | xno)
20341     xc_lt_build_shared=$enable_shared
20342     ;;
20343   *)
20344     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
20345     ;;
20346 esac
20347
20348 #
20349 # Verify if finally libtool static libraries will be built
20350 #
20351
20352 case "x$enable_static" in # ((
20353   xyes | xno)
20354     xc_lt_build_static=$enable_static
20355     ;;
20356   *)
20357     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
20358     ;;
20359 esac
20360
20361 #
20362 # Verify if libtool shared libraries should be linked using flag -version-info
20363 #
20364
20365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
20366 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
20367 xc_lt_shlib_use_version_info='yes'
20368 if test "x$version_type" = 'xnone'; then
20369   xc_lt_shlib_use_version_info='no'
20370 fi
20371 case $host_os in # (
20372   amigaos*)
20373     xc_lt_shlib_use_version_info='yes'
20374     ;;
20375 esac
20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
20377 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
20378
20379 #
20380 # Verify if libtool shared libraries should be linked using flag -no-undefined
20381 #
20382
20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
20384 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
20385 xc_lt_shlib_use_no_undefined='no'
20386 if test "x$allow_undefined" = 'xno'; then
20387   xc_lt_shlib_use_no_undefined='yes'
20388 elif test "x$allow_undefined_flag" = 'xunsupported'; then
20389   xc_lt_shlib_use_no_undefined='yes'
20390 fi
20391 case $host_os in # (
20392   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
20393     xc_lt_shlib_use_no_undefined='yes'
20394     ;;
20395 esac
20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
20397 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
20398
20399 #
20400 # Verify if libtool shared libraries should be linked using flag -mimpure-text
20401 #
20402
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
20404 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
20405 xc_lt_shlib_use_mimpure_text='no'
20406 case $host_os in # (
20407   solaris2*)
20408     if test "x$GCC" = 'xyes'; then
20409       xc_lt_shlib_use_mimpure_text='yes'
20410     fi
20411     ;;
20412 esac
20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
20414 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
20415
20416 #
20417 # Find out wether libtool libraries would be built wit PIC
20418 #
20419
20420 case "x$pic_mode" in # ((((
20421   xdefault)
20422     xc_lt_build_shared_with_pic='yes'
20423     xc_lt_build_static_with_pic='no'
20424     ;;
20425   xyes)
20426     xc_lt_build_shared_with_pic='yes'
20427     xc_lt_build_static_with_pic='yes'
20428     ;;
20429   xno)
20430     xc_lt_build_shared_with_pic='no'
20431     xc_lt_build_static_with_pic='no'
20432     ;;
20433   *)
20434     xc_lt_build_shared_with_pic='unknown'
20435     xc_lt_build_static_with_pic='unknown'
20436     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
20437 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
20438     ;;
20439 esac
20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
20441 printf %s "checking whether to build shared libraries with PIC... " >&6; }
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
20443 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
20445 printf %s "checking whether to build static libraries with PIC... " >&6; }
20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
20447 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
20448
20449 #
20450 # Verify if libtool shared libraries will be built while static not built
20451 #
20452
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
20454 printf %s "checking whether to build shared libraries only... " >&6; }
20455 if test "$xc_lt_build_shared" = 'yes' &&
20456   test "$xc_lt_build_static" = 'no'; then
20457   xc_lt_build_shared_only='yes'
20458 else
20459   xc_lt_build_shared_only='no'
20460 fi
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
20462 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
20463
20464 #
20465 # Verify if libtool static libraries will be built while shared not built
20466 #
20467
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
20469 printf %s "checking whether to build static libraries only... " >&6; }
20470 if test "$xc_lt_build_static" = 'yes' &&
20471   test "$xc_lt_build_shared" = 'no'; then
20472   xc_lt_build_static_only='yes'
20473 else
20474   xc_lt_build_static_only='no'
20475 fi
20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
20477 printf "%s\n" "$xc_lt_build_static_only" >&6; }
20478
20479
20480
20481
20482
20483 #
20484 # Automake conditionals based on libtool related checks
20485 #
20486
20487  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
20488   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
20489   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
20490 else
20491   CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
20492   CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
20493 fi
20494
20495  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20496   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
20497   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
20498 else
20499   CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
20500   CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
20501 fi
20502
20503  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
20504   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
20505   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
20506 else
20507   CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
20508   CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
20509 fi
20510
20511
20512 #
20513 # Due to libtool and automake machinery limitations of not allowing
20514 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
20515 # inclusion of these in shared or static libraries, we are forced to
20516 # build using separate configure runs for shared and static libraries
20517 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
20518 # to compile objects for each kind of library. Notice that relying on
20519 # the '-DPIC' CFLAG that libtool provides is not valid given that the
20520 # user might for example choose to build static libraries with PIC.
20521 #
20522
20523 #
20524 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
20525 # targeting a static library and not building its shared counterpart.
20526 #
20527
20528  if test "x$xc_lt_build_static_only" = 'xyes'; then
20529   USE_CPPFLAG_CARES_STATICLIB_TRUE=
20530   USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
20531 else
20532   USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
20533   USE_CPPFLAG_CARES_STATICLIB_FALSE=
20534 fi
20535
20536
20537 #
20538 # Make staticlib CPPFLAG variable and its definition visible in output
20539 # files unconditionally, providing an empty definition unless strictly
20540 # targeting a static library and not building its shared counterpart.
20541 #
20542
20543 CPPFLAG_CARES_STATICLIB=
20544 if test "x$xc_lt_build_static_only" = 'xyes'; then
20545   CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
20546 fi
20547
20548
20549
20550
20551   #
20552   compiler_id="unknown"
20553   compiler_num="0"
20554   #
20555   flags_dbg_all="unknown"
20556   flags_dbg_yes="unknown"
20557   flags_dbg_off="unknown"
20558   flags_opt_all="unknown"
20559   flags_opt_yes="unknown"
20560   flags_opt_off="unknown"
20561   #
20562   flags_prefer_cppflags="no"
20563   #
20564
20565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
20566 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
20567
20568       if test -z "$SED"; then
20569     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20570   fi
20571   if test -z "$GREP"; then
20572     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20573   fi
20574
20575   tmp_exp=""
20576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h.  */
20578
20579
20580 #ifdef __DECC
20581 CURL_DEF_TOKEN __DECC
20582 #endif
20583
20584
20585 _ACEOF
20586 if ac_fn_c_try_cpp "$LINENO"
20587 then :
20588
20589     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20590       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20591       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20592       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20593     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
20594       tmp_exp=""
20595     fi
20596
20597 fi
20598 rm -f conftest.err conftest.i conftest.$ac_ext
20599   if test -z "$tmp_exp"; then
20600     curl_cv_have_def___DECC=no
20601
20602   else
20603     curl_cv_have_def___DECC=yes
20604     curl_cv_def___DECC=$tmp_exp
20605
20606   fi
20607
20608
20609       if test -z "$SED"; then
20610     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20611   fi
20612   if test -z "$GREP"; then
20613     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20614   fi
20615
20616   tmp_exp=""
20617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h.  */
20619
20620
20621 #ifdef __DECC_VER
20622 CURL_DEF_TOKEN __DECC_VER
20623 #endif
20624
20625
20626 _ACEOF
20627 if ac_fn_c_try_cpp "$LINENO"
20628 then :
20629
20630     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20631       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20632       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20633       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20634     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
20635       tmp_exp=""
20636     fi
20637
20638 fi
20639 rm -f conftest.err conftest.i conftest.$ac_ext
20640   if test -z "$tmp_exp"; then
20641     curl_cv_have_def___DECC_VER=no
20642
20643   else
20644     curl_cv_have_def___DECC_VER=yes
20645     curl_cv_def___DECC_VER=$tmp_exp
20646
20647   fi
20648
20649   if test "$curl_cv_have_def___DECC" = "yes" &&
20650     test "$curl_cv_have_def___DECC_VER" = "yes"; then
20651     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20652 printf "%s\n" "yes" >&6; }
20653     compiler_id="DEC_C"
20654     flags_dbg_all="-g -g0 -g1 -g2 -g3"
20655     flags_dbg_yes="-g2"
20656     flags_dbg_off="-g0"
20657     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
20658     flags_opt_yes="-O1"
20659     flags_opt_off="-O0"
20660   else
20661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20662 printf "%s\n" "no" >&6; }
20663   fi
20664
20665
20666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
20667 printf %s "checking if compiler is HP-UX C... " >&6; }
20668
20669       if test -z "$SED"; then
20670     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20671   fi
20672   if test -z "$GREP"; then
20673     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20674   fi
20675
20676   tmp_exp=""
20677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h.  */
20679
20680
20681 #ifdef __HP_cc
20682 CURL_DEF_TOKEN __HP_cc
20683 #endif
20684
20685
20686 _ACEOF
20687 if ac_fn_c_try_cpp "$LINENO"
20688 then :
20689
20690     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20691       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20692       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20693       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20694     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
20695       tmp_exp=""
20696     fi
20697
20698 fi
20699 rm -f conftest.err conftest.i conftest.$ac_ext
20700   if test -z "$tmp_exp"; then
20701     curl_cv_have_def___HP_cc=no
20702
20703   else
20704     curl_cv_have_def___HP_cc=yes
20705     curl_cv_def___HP_cc=$tmp_exp
20706
20707   fi
20708
20709   if test "$curl_cv_have_def___HP_cc" = "yes"; then
20710     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20711 printf "%s\n" "yes" >&6; }
20712     compiler_id="HP_UX_C"
20713     flags_dbg_all="-g -s"
20714     flags_dbg_yes="-g"
20715     flags_dbg_off="-s"
20716     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
20717     flags_opt_yes="+O2"
20718     flags_opt_off="+O0"
20719   else
20720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20721 printf "%s\n" "no" >&6; }
20722   fi
20723
20724
20725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
20726 printf %s "checking if compiler is IBM C... " >&6; }
20727
20728       if test -z "$SED"; then
20729     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20730   fi
20731   if test -z "$GREP"; then
20732     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20733   fi
20734
20735   tmp_exp=""
20736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h.  */
20738
20739
20740 #ifdef __IBMC__
20741 CURL_DEF_TOKEN __IBMC__
20742 #endif
20743
20744
20745 _ACEOF
20746 if ac_fn_c_try_cpp "$LINENO"
20747 then :
20748
20749     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20750       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20751       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20752       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20753     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
20754       tmp_exp=""
20755     fi
20756
20757 fi
20758 rm -f conftest.err conftest.i conftest.$ac_ext
20759   if test -z "$tmp_exp"; then
20760     curl_cv_have_def___IBMC__=no
20761
20762   else
20763     curl_cv_have_def___IBMC__=yes
20764     curl_cv_def___IBMC__=$tmp_exp
20765
20766   fi
20767
20768   if test "$curl_cv_have_def___IBMC__" = "yes"; then
20769     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20770 printf "%s\n" "yes" >&6; }
20771     compiler_id="IBM_C"
20772     flags_dbg_all="-g -g0 -g1 -g2 -g3"
20773     flags_dbg_yes="-g"
20774     flags_dbg_off=""
20775     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
20776     flags_opt_all="$flags_opt_all -qnooptimize"
20777     flags_opt_all="$flags_opt_all -qoptimize=0"
20778     flags_opt_all="$flags_opt_all -qoptimize=1"
20779     flags_opt_all="$flags_opt_all -qoptimize=2"
20780     flags_opt_all="$flags_opt_all -qoptimize=3"
20781     flags_opt_all="$flags_opt_all -qoptimize=4"
20782     flags_opt_all="$flags_opt_all -qoptimize=5"
20783     flags_opt_yes="-O2"
20784     flags_opt_off="-qnooptimize"
20785     flags_prefer_cppflags="yes"
20786   else
20787     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20788 printf "%s\n" "no" >&6; }
20789   fi
20790
20791
20792     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
20793 printf %s "checking if compiler is Intel C... " >&6; }
20794
20795       if test -z "$SED"; then
20796     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20797   fi
20798   if test -z "$GREP"; then
20799     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20800   fi
20801
20802   tmp_exp=""
20803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h.  */
20805
20806
20807 #ifdef __INTEL_COMPILER
20808 CURL_DEF_TOKEN __INTEL_COMPILER
20809 #endif
20810
20811
20812 _ACEOF
20813 if ac_fn_c_try_cpp "$LINENO"
20814 then :
20815
20816     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20817       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20818       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20819       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20820     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
20821       tmp_exp=""
20822     fi
20823
20824 fi
20825 rm -f conftest.err conftest.i conftest.$ac_ext
20826   if test -z "$tmp_exp"; then
20827     curl_cv_have_def___INTEL_COMPILER=no
20828
20829   else
20830     curl_cv_have_def___INTEL_COMPILER=yes
20831     curl_cv_def___INTEL_COMPILER=$tmp_exp
20832
20833   fi
20834
20835   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
20836     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20837 printf "%s\n" "yes" >&6; }
20838     compiler_num="$curl_cv_def___INTEL_COMPILER"
20839
20840       if test -z "$SED"; then
20841     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20842   fi
20843   if test -z "$GREP"; then
20844     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20845   fi
20846
20847   tmp_exp=""
20848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h.  */
20850
20851
20852 #ifdef __unix__
20853 CURL_DEF_TOKEN __unix__
20854 #endif
20855
20856
20857 _ACEOF
20858 if ac_fn_c_try_cpp "$LINENO"
20859 then :
20860
20861     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20862       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20863       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20864       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20865     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
20866       tmp_exp=""
20867     fi
20868
20869 fi
20870 rm -f conftest.err conftest.i conftest.$ac_ext
20871   if test -z "$tmp_exp"; then
20872     curl_cv_have_def___unix__=no
20873
20874   else
20875     curl_cv_have_def___unix__=yes
20876     curl_cv_def___unix__=$tmp_exp
20877
20878   fi
20879
20880     if test "$curl_cv_have_def___unix__" = "yes"; then
20881       compiler_id="INTEL_UNIX_C"
20882       flags_dbg_all="-g -g0"
20883       flags_dbg_yes="-g"
20884       flags_dbg_off="-g0"
20885       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
20886       flags_opt_yes="-O2"
20887       flags_opt_off="-O0"
20888     else
20889       compiler_id="INTEL_WINDOWS_C"
20890       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
20891       flags_dbg_all="$flags_dbg_all /debug"
20892       flags_dbg_all="$flags_dbg_all /debug:none"
20893       flags_dbg_all="$flags_dbg_all /debug:minimal"
20894       flags_dbg_all="$flags_dbg_all /debug:partial"
20895       flags_dbg_all="$flags_dbg_all /debug:full"
20896       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
20897       flags_dbg_all="$flags_dbg_all /debug:extended"
20898       flags_dbg_yes="/Zi /Oy-"
20899       flags_dbg_off="/debug:none /Oy-"
20900       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
20901       flags_opt_yes="/O2"
20902       flags_opt_off="/Od"
20903     fi
20904   else
20905     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20906 printf "%s\n" "no" >&6; }
20907   fi
20908
20909
20910     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
20911 printf %s "checking if compiler is clang... " >&6; }
20912
20913       if test -z "$SED"; then
20914     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20915   fi
20916   if test -z "$GREP"; then
20917     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20918   fi
20919
20920   tmp_exp=""
20921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h.  */
20923
20924
20925 #ifdef __clang__
20926 CURL_DEF_TOKEN __clang__
20927 #endif
20928
20929
20930 _ACEOF
20931 if ac_fn_c_try_cpp "$LINENO"
20932 then :
20933
20934     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20935       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20936       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20937       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20938     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
20939       tmp_exp=""
20940     fi
20941
20942 fi
20943 rm -f conftest.err conftest.i conftest.$ac_ext
20944   if test -z "$tmp_exp"; then
20945     curl_cv_have_def___clang__=no
20946
20947   else
20948     curl_cv_have_def___clang__=yes
20949     curl_cv_def___clang__=$tmp_exp
20950
20951   fi
20952
20953   if test "$curl_cv_have_def___clang__" = "yes"; then
20954     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20955 printf "%s\n" "yes" >&6; }
20956     compiler_id="CLANG"
20957     clangver=`$CC -dumpversion`
20958     clangvhi=`echo $clangver | cut -d . -f1`
20959     clangvlo=`echo $clangver | cut -d . -f2`
20960     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
20961     flags_dbg_all="-g -g0 -g1 -g2 -g3"
20962     flags_dbg_all="$flags_dbg_all -ggdb"
20963     flags_dbg_all="$flags_dbg_all -gstabs"
20964     flags_dbg_all="$flags_dbg_all -gstabs+"
20965     flags_dbg_all="$flags_dbg_all -gcoff"
20966     flags_dbg_all="$flags_dbg_all -gxcoff"
20967     flags_dbg_all="$flags_dbg_all -gdwarf-2"
20968     flags_dbg_all="$flags_dbg_all -gvms"
20969     flags_dbg_yes="-g"
20970     flags_dbg_off="-g0"
20971     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
20972     flags_opt_yes="-Os"
20973     flags_opt_off="-O0"
20974   else
20975     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20976 printf "%s\n" "no" >&6; }
20977   fi
20978
20979
20980       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
20981 printf %s "checking if compiler is GNU C... " >&6; }
20982
20983       if test -z "$SED"; then
20984     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20985   fi
20986   if test -z "$GREP"; then
20987     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20988   fi
20989
20990   tmp_exp=""
20991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h.  */
20993
20994
20995 #ifdef __GNUC__
20996 CURL_DEF_TOKEN __GNUC__
20997 #endif
20998
20999
21000 _ACEOF
21001 if ac_fn_c_try_cpp "$LINENO"
21002 then :
21003
21004     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21005       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21006       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21007       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21008     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21009       tmp_exp=""
21010     fi
21011
21012 fi
21013 rm -f conftest.err conftest.i conftest.$ac_ext
21014   if test -z "$tmp_exp"; then
21015     curl_cv_have_def___GNUC__=no
21016
21017   else
21018     curl_cv_have_def___GNUC__=yes
21019     curl_cv_def___GNUC__=$tmp_exp
21020
21021   fi
21022
21023   if test "$curl_cv_have_def___GNUC__" = "yes" &&
21024     test "$compiler_id" = "unknown"; then
21025     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026 printf "%s\n" "yes" >&6; }
21027     compiler_id="GNU_C"
21028     gccver=`$CC -dumpversion`
21029     gccvhi=`echo $gccver | cut -d . -f1`
21030     gccvlo=`echo $gccver | cut -d . -f2`
21031     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
21032     flags_dbg_all="-g -g0 -g1 -g2 -g3"
21033     flags_dbg_all="$flags_dbg_all -ggdb"
21034     flags_dbg_all="$flags_dbg_all -gstabs"
21035     flags_dbg_all="$flags_dbg_all -gstabs+"
21036     flags_dbg_all="$flags_dbg_all -gcoff"
21037     flags_dbg_all="$flags_dbg_all -gxcoff"
21038     flags_dbg_all="$flags_dbg_all -gdwarf-2"
21039     flags_dbg_all="$flags_dbg_all -gvms"
21040     flags_dbg_yes="-g"
21041     flags_dbg_off="-g0"
21042     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
21043     flags_opt_yes="-O2"
21044     flags_opt_off="-O0"
21045
21046       if test -z "$SED"; then
21047     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21048   fi
21049   if test -z "$GREP"; then
21050     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21051   fi
21052
21053   tmp_exp=""
21054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21055 /* end confdefs.h.  */
21056
21057
21058 #ifdef _WIN32
21059 CURL_DEF_TOKEN _WIN32
21060 #endif
21061
21062
21063 _ACEOF
21064 if ac_fn_c_try_cpp "$LINENO"
21065 then :
21066
21067     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21068       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21069       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21070       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21071     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
21072       tmp_exp=""
21073     fi
21074
21075 fi
21076 rm -f conftest.err conftest.i conftest.$ac_ext
21077   if test -z "$tmp_exp"; then
21078     curl_cv_have_def__WIN32=no
21079
21080   else
21081     curl_cv_have_def__WIN32=yes
21082     curl_cv_def__WIN32=$tmp_exp
21083
21084   fi
21085
21086   else
21087     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21088 printf "%s\n" "no" >&6; }
21089   fi
21090
21091
21092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
21093 printf %s "checking if compiler is LCC... " >&6; }
21094
21095       if test -z "$SED"; then
21096     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21097   fi
21098   if test -z "$GREP"; then
21099     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21100   fi
21101
21102   tmp_exp=""
21103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21104 /* end confdefs.h.  */
21105
21106
21107 #ifdef __LCC__
21108 CURL_DEF_TOKEN __LCC__
21109 #endif
21110
21111
21112 _ACEOF
21113 if ac_fn_c_try_cpp "$LINENO"
21114 then :
21115
21116     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21117       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21118       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21119       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21120     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
21121       tmp_exp=""
21122     fi
21123
21124 fi
21125 rm -f conftest.err conftest.i conftest.$ac_ext
21126   if test -z "$tmp_exp"; then
21127     curl_cv_have_def___LCC__=no
21128
21129   else
21130     curl_cv_have_def___LCC__=yes
21131     curl_cv_def___LCC__=$tmp_exp
21132
21133   fi
21134
21135   if test "$curl_cv_have_def___LCC__" = "yes"; then
21136     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21137 printf "%s\n" "yes" >&6; }
21138     compiler_id="LCC"
21139     flags_dbg_all="-g"
21140     flags_dbg_yes="-g"
21141     flags_dbg_off=""
21142     flags_opt_all=""
21143     flags_opt_yes=""
21144     flags_opt_off=""
21145   else
21146     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 printf "%s\n" "no" >&6; }
21148   fi
21149
21150
21151     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
21152 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
21153
21154       if test -z "$SED"; then
21155     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21156   fi
21157   if test -z "$GREP"; then
21158     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21159   fi
21160
21161   tmp_exp=""
21162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h.  */
21164
21165
21166 #ifdef __GNUC__
21167 CURL_DEF_TOKEN __GNUC__
21168 #endif
21169
21170
21171 _ACEOF
21172 if ac_fn_c_try_cpp "$LINENO"
21173 then :
21174
21175     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21176       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21177       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21178       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21179     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21180       tmp_exp=""
21181     fi
21182
21183 fi
21184 rm -f conftest.err conftest.i conftest.$ac_ext
21185   if test -z "$tmp_exp"; then
21186     curl_cv_have_def___GNUC__=no
21187
21188   else
21189     curl_cv_have_def___GNUC__=yes
21190     curl_cv_def___GNUC__=$tmp_exp
21191
21192   fi
21193
21194
21195       if test -z "$SED"; then
21196     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21197   fi
21198   if test -z "$GREP"; then
21199     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21200   fi
21201
21202   tmp_exp=""
21203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204 /* end confdefs.h.  */
21205
21206
21207 #ifdef _COMPILER_VERSION
21208 CURL_DEF_TOKEN _COMPILER_VERSION
21209 #endif
21210
21211
21212 _ACEOF
21213 if ac_fn_c_try_cpp "$LINENO"
21214 then :
21215
21216     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21217       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21218       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21219       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21220     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
21221       tmp_exp=""
21222     fi
21223
21224 fi
21225 rm -f conftest.err conftest.i conftest.$ac_ext
21226   if test -z "$tmp_exp"; then
21227     curl_cv_have_def__COMPILER_VERSION=no
21228
21229   else
21230     curl_cv_have_def__COMPILER_VERSION=yes
21231     curl_cv_def__COMPILER_VERSION=$tmp_exp
21232
21233   fi
21234
21235
21236       if test -z "$SED"; then
21237     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21238   fi
21239   if test -z "$GREP"; then
21240     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21241   fi
21242
21243   tmp_exp=""
21244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h.  */
21246
21247
21248 #ifdef _SGI_COMPILER_VERSION
21249 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
21250 #endif
21251
21252
21253 _ACEOF
21254 if ac_fn_c_try_cpp "$LINENO"
21255 then :
21256
21257     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21258       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21259       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21260       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21261     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
21262       tmp_exp=""
21263     fi
21264
21265 fi
21266 rm -f conftest.err conftest.i conftest.$ac_ext
21267   if test -z "$tmp_exp"; then
21268     curl_cv_have_def__SGI_COMPILER_VERSION=no
21269
21270   else
21271     curl_cv_have_def__SGI_COMPILER_VERSION=yes
21272     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
21273
21274   fi
21275
21276   if test "$curl_cv_have_def___GNUC__" = "no" &&
21277     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
21278      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
21279     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280 printf "%s\n" "yes" >&6; }
21281     compiler_id="SGI_MIPSPRO_C"
21282     flags_dbg_all="-g -g0 -g1 -g2 -g3"
21283     flags_dbg_yes="-g"
21284     flags_dbg_off="-g0"
21285     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
21286     flags_opt_yes="-O2"
21287     flags_opt_off="-O0"
21288   else
21289     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21290 printf "%s\n" "no" >&6; }
21291   fi
21292
21293
21294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
21295 printf %s "checking if compiler is SGI MIPS C... " >&6; }
21296
21297       if test -z "$SED"; then
21298     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21299   fi
21300   if test -z "$GREP"; then
21301     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21302   fi
21303
21304   tmp_exp=""
21305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21306 /* end confdefs.h.  */
21307
21308
21309 #ifdef __GNUC__
21310 CURL_DEF_TOKEN __GNUC__
21311 #endif
21312
21313
21314 _ACEOF
21315 if ac_fn_c_try_cpp "$LINENO"
21316 then :
21317
21318     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21319       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21320       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21321       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21322     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21323       tmp_exp=""
21324     fi
21325
21326 fi
21327 rm -f conftest.err conftest.i conftest.$ac_ext
21328   if test -z "$tmp_exp"; then
21329     curl_cv_have_def___GNUC__=no
21330
21331   else
21332     curl_cv_have_def___GNUC__=yes
21333     curl_cv_def___GNUC__=$tmp_exp
21334
21335   fi
21336
21337
21338       if test -z "$SED"; then
21339     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21340   fi
21341   if test -z "$GREP"; then
21342     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21343   fi
21344
21345   tmp_exp=""
21346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21347 /* end confdefs.h.  */
21348
21349
21350 #ifdef __sgi
21351 CURL_DEF_TOKEN __sgi
21352 #endif
21353
21354
21355 _ACEOF
21356 if ac_fn_c_try_cpp "$LINENO"
21357 then :
21358
21359     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21360       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21361       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21362       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21363     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
21364       tmp_exp=""
21365     fi
21366
21367 fi
21368 rm -f conftest.err conftest.i conftest.$ac_ext
21369   if test -z "$tmp_exp"; then
21370     curl_cv_have_def___sgi=no
21371
21372   else
21373     curl_cv_have_def___sgi=yes
21374     curl_cv_def___sgi=$tmp_exp
21375
21376   fi
21377
21378   if test "$curl_cv_have_def___GNUC__" = "no" &&
21379     test "$curl_cv_have_def___sgi" = "yes" &&
21380     test "$compiler_id" = "unknown"; then
21381     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21382 printf "%s\n" "yes" >&6; }
21383     compiler_id="SGI_MIPS_C"
21384     flags_dbg_all="-g -g0 -g1 -g2 -g3"
21385     flags_dbg_yes="-g"
21386     flags_dbg_off="-g0"
21387     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
21388     flags_opt_yes="-O2"
21389     flags_opt_off="-O0"
21390   else
21391     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 printf "%s\n" "no" >&6; }
21393   fi
21394
21395
21396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
21397 printf %s "checking if compiler is SunPro C... " >&6; }
21398
21399       if test -z "$SED"; then
21400     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21401   fi
21402   if test -z "$GREP"; then
21403     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21404   fi
21405
21406   tmp_exp=""
21407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h.  */
21409
21410
21411 #ifdef __SUNPRO_C
21412 CURL_DEF_TOKEN __SUNPRO_C
21413 #endif
21414
21415
21416 _ACEOF
21417 if ac_fn_c_try_cpp "$LINENO"
21418 then :
21419
21420     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21421       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21422       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21423       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21424     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
21425       tmp_exp=""
21426     fi
21427
21428 fi
21429 rm -f conftest.err conftest.i conftest.$ac_ext
21430   if test -z "$tmp_exp"; then
21431     curl_cv_have_def___SUNPRO_C=no
21432
21433   else
21434     curl_cv_have_def___SUNPRO_C=yes
21435     curl_cv_def___SUNPRO_C=$tmp_exp
21436
21437   fi
21438
21439   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
21440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21441 printf "%s\n" "yes" >&6; }
21442     compiler_id="SUNPRO_C"
21443     flags_dbg_all="-g -s"
21444     flags_dbg_yes="-g"
21445     flags_dbg_off="-s"
21446     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
21447     flags_opt_yes="-xO2"
21448     flags_opt_off=""
21449   else
21450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21451 printf "%s\n" "no" >&6; }
21452   fi
21453
21454
21455   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
21456 printf %s "checking if compiler is Tiny C... " >&6; }
21457
21458       if test -z "$SED"; then
21459     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21460   fi
21461   if test -z "$GREP"; then
21462     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21463   fi
21464
21465   tmp_exp=""
21466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h.  */
21468
21469
21470 #ifdef __TINYC__
21471 CURL_DEF_TOKEN __TINYC__
21472 #endif
21473
21474
21475 _ACEOF
21476 if ac_fn_c_try_cpp "$LINENO"
21477 then :
21478
21479     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21480       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21481       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21482       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21483     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
21484       tmp_exp=""
21485     fi
21486
21487 fi
21488 rm -f conftest.err conftest.i conftest.$ac_ext
21489   if test -z "$tmp_exp"; then
21490     curl_cv_have_def___TINYC__=no
21491
21492   else
21493     curl_cv_have_def___TINYC__=yes
21494     curl_cv_def___TINYC__=$tmp_exp
21495
21496   fi
21497
21498   if test "$curl_cv_have_def___TINYC__" = "yes"; then
21499     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21500 printf "%s\n" "yes" >&6; }
21501     compiler_id="TINY_C"
21502     flags_dbg_all="-g -b"
21503     flags_dbg_yes="-g"
21504     flags_dbg_off=""
21505     flags_opt_all=""
21506     flags_opt_yes=""
21507     flags_opt_off=""
21508   else
21509     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 printf "%s\n" "no" >&6; }
21511   fi
21512
21513
21514   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
21515 printf %s "checking if compiler is Watcom C... " >&6; }
21516
21517       if test -z "$SED"; then
21518     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21519   fi
21520   if test -z "$GREP"; then
21521     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21522   fi
21523
21524   tmp_exp=""
21525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h.  */
21527
21528
21529 #ifdef __WATCOMC__
21530 CURL_DEF_TOKEN __WATCOMC__
21531 #endif
21532
21533
21534 _ACEOF
21535 if ac_fn_c_try_cpp "$LINENO"
21536 then :
21537
21538     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21539       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21540       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21541       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21542     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
21543       tmp_exp=""
21544     fi
21545
21546 fi
21547 rm -f conftest.err conftest.i conftest.$ac_ext
21548   if test -z "$tmp_exp"; then
21549     curl_cv_have_def___WATCOMC__=no
21550
21551   else
21552     curl_cv_have_def___WATCOMC__=yes
21553     curl_cv_def___WATCOMC__=$tmp_exp
21554
21555   fi
21556
21557   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
21558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21560
21561       if test -z "$SED"; then
21562     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21563   fi
21564   if test -z "$GREP"; then
21565     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21566   fi
21567
21568   tmp_exp=""
21569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h.  */
21571
21572
21573 #ifdef __UNIX__
21574 CURL_DEF_TOKEN __UNIX__
21575 #endif
21576
21577
21578 _ACEOF
21579 if ac_fn_c_try_cpp "$LINENO"
21580 then :
21581
21582     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21583       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21584       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21585       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21586     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
21587       tmp_exp=""
21588     fi
21589
21590 fi
21591 rm -f conftest.err conftest.i conftest.$ac_ext
21592   if test -z "$tmp_exp"; then
21593     curl_cv_have_def___UNIX__=no
21594
21595   else
21596     curl_cv_have_def___UNIX__=yes
21597     curl_cv_def___UNIX__=$tmp_exp
21598
21599   fi
21600
21601     if test "$curl_cv_have_def___UNIX__" = "yes"; then
21602       compiler_id="WATCOM_UNIX_C"
21603       flags_dbg_all="-g1 -g1+ -g2 -g3"
21604       flags_dbg_yes="-g2"
21605       flags_dbg_off=""
21606       flags_opt_all="-O0 -O1 -O2 -O3"
21607       flags_opt_yes="-O2"
21608       flags_opt_off="-O0"
21609     else
21610       compiler_id="WATCOM_WINDOWS_C"
21611       flags_dbg_all=""
21612       flags_dbg_yes=""
21613       flags_dbg_off=""
21614       flags_opt_all=""
21615       flags_opt_yes=""
21616       flags_opt_off=""
21617     fi
21618   else
21619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21620 printf "%s\n" "no" >&6; }
21621   fi
21622
21623   #
21624   if test "$compiler_id" = "unknown"; then
21625   cat <<_EOF 1>&2
21626 ***
21627 *** Warning: This configure script does not have information about the
21628 *** compiler you are using, relative to the flags required to enable or
21629 *** disable generation of debug info, optimization options or warnings.
21630 ***
21631 *** Whatever settings are present in CFLAGS will be used for this run.
21632 ***
21633 *** If you wish to help the c-ares project to better support your compiler
21634 *** you can report this and the required info on the c-ares development
21635 *** mailing list: http://lists.haxx.se/listinfo/c-ares/
21636 ***
21637 _EOF
21638   fi
21639
21640
21641 squeeze() {
21642   _sqz_result=""
21643   eval _sqz_input=\$$1
21644   for _sqz_token in $_sqz_input; do
21645     if test -z "$_sqz_result"; then
21646       _sqz_result="$_sqz_token"
21647     else
21648       _sqz_result="$_sqz_result $_sqz_token"
21649     fi
21650   done
21651   eval $1=\$_sqz_result
21652   return 0
21653 }
21654
21655
21656       #
21657   if test "$compiler_id" != "unknown"; then
21658     #
21659     if test "$compiler_id" = "GNU_C" ||
21660       test "$compiler_id" = "CLANG"; then
21661
21662       if test "$compiler_id" = "GNU_C" ||
21663     test "$compiler_id" = "CLANG"; then
21664     tmp_has_include="no"
21665     tmp_chg_FLAGS="$CFLAGS"
21666     for word1 in $tmp_chg_FLAGS; do
21667       case "$word1" in
21668         -I*)
21669           tmp_has_include="yes"
21670           ;;
21671       esac
21672     done
21673     if test "$tmp_has_include" = "yes"; then
21674       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
21675       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
21676       CFLAGS="$tmp_chg_FLAGS"
21677       squeeze CFLAGS
21678     fi
21679     tmp_has_include="no"
21680     tmp_chg_FLAGS="$CPPFLAGS"
21681     for word1 in $tmp_chg_FLAGS; do
21682       case "$word1" in
21683         -I*)
21684           tmp_has_include="yes"
21685           ;;
21686       esac
21687     done
21688     if test "$tmp_has_include" = "yes"; then
21689       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
21690       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
21691       CPPFLAGS="$tmp_chg_FLAGS"
21692       squeeze CPPFLAGS
21693     fi
21694   fi
21695
21696     fi
21697     #
21698     tmp_save_CPPFLAGS="$CPPFLAGS"
21699     tmp_save_CFLAGS="$CFLAGS"
21700     tmp_CPPFLAGS=""
21701     tmp_CFLAGS=""
21702     #
21703     case "$compiler_id" in
21704         #
21705       CLANG)
21706         #
21707                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
21708         ;;
21709         #
21710       DEC_C)
21711         #
21712                 tmp_CFLAGS="$tmp_CFLAGS -std1"
21713                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
21714                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
21715                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
21716         ;;
21717         #
21718       GNU_C)
21719         #
21720                 tmp_CFLAGS="$tmp_CFLAGS"
21721         ;;
21722         #
21723       HP_UX_C)
21724         #
21725                 tmp_CFLAGS="$tmp_CFLAGS -z"
21726                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
21727         ;;
21728         #
21729       IBM_C)
21730         #
21731                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
21732                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
21733                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
21734         ;;
21735         #
21736       INTEL_UNIX_C)
21737         #
21738                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
21739                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
21740                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
21741         ;;
21742         #
21743       INTEL_WINDOWS_C)
21744         #
21745                 tmp_CFLAGS="$tmp_CFLAGS"
21746         ;;
21747         #
21748       LCC)
21749         #
21750                 tmp_CFLAGS="$tmp_CFLAGS -n"
21751         ;;
21752         #
21753       SGI_MIPS_C)
21754         #
21755                 tmp_CFLAGS="$tmp_CFLAGS"
21756         ;;
21757         #
21758       SGI_MIPSPRO_C)
21759         #
21760                 tmp_CFLAGS="$tmp_CFLAGS"
21761         ;;
21762         #
21763       SUNPRO_C)
21764         #
21765                 tmp_CFLAGS="$tmp_CFLAGS"
21766         ;;
21767         #
21768       TINY_C)
21769         #
21770                 tmp_CFLAGS="$tmp_CFLAGS"
21771         ;;
21772         #
21773       WATCOM_UNIX_C)
21774         #
21775                 tmp_CFLAGS="$tmp_CFLAGS"
21776         ;;
21777         #
21778       WATCOM_WINDOWS_C)
21779         #
21780                 tmp_CFLAGS="$tmp_CFLAGS"
21781         ;;
21782         #
21783     esac
21784     #
21785     squeeze tmp_CPPFLAGS
21786     squeeze tmp_CFLAGS
21787     #
21788     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21789       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
21790 printf %s "checking if compiler accepts some basic options... " >&6; }
21791       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21792       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21793       squeeze CPPFLAGS
21794       squeeze CFLAGS
21795
21796     tmp_compiler_works="unknown"
21797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h.  */
21799
21800
21801
21802 int
21803 main (void)
21804 {
21805
21806       int i = 1;
21807       return i;
21808
21809   ;
21810   return 0;
21811 }
21812
21813 _ACEOF
21814 if ac_fn_c_try_compile "$LINENO"
21815 then :
21816
21817     tmp_compiler_works="yes"
21818
21819 else $as_nop
21820
21821     tmp_compiler_works="no"
21822     echo " " >&6
21823     sed 's/^/cc-fail: /' conftest.err >&6
21824     echo " " >&6
21825
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21828     if test "$tmp_compiler_works" = "yes"; then
21829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h.  */
21831
21832
21833
21834 int
21835 main (void)
21836 {
21837
21838         int i = 1;
21839         return i;
21840
21841   ;
21842   return 0;
21843 }
21844
21845 _ACEOF
21846 if ac_fn_c_try_link "$LINENO"
21847 then :
21848
21849       tmp_compiler_works="yes"
21850
21851 else $as_nop
21852
21853       tmp_compiler_works="no"
21854       echo " " >&6
21855       sed 's/^/link-fail: /' conftest.err >&6
21856       echo " " >&6
21857
21858 fi
21859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21860     conftest$ac_exeext conftest.$ac_ext
21861   fi
21862     if test "x$cross_compiling" != "xyes" &&
21863     test "$tmp_compiler_works" = "yes"; then
21864     if test "$cross_compiling" = yes
21865 then :
21866   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21868 as_fn_error $? "cannot run test program while cross compiling
21869 See \`config.log' for more details" "$LINENO" 5; }
21870 else $as_nop
21871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873
21874
21875 #       ifdef __STDC__
21876 #         include <stdlib.h>
21877 #       endif
21878
21879 int
21880 main (void)
21881 {
21882
21883         int i = 0;
21884         exit(i);
21885
21886   ;
21887   return 0;
21888 }
21889
21890 _ACEOF
21891 if ac_fn_c_try_run "$LINENO"
21892 then :
21893
21894       tmp_compiler_works="yes"
21895
21896 else $as_nop
21897
21898       tmp_compiler_works="no"
21899       echo " " >&6
21900       echo "run-fail: test program exited with status $ac_status" >&6
21901       echo " " >&6
21902
21903 fi
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21905   conftest.$ac_objext conftest.beam conftest.$ac_ext
21906 fi
21907
21908   fi
21909     if test "$tmp_compiler_works" = "yes"; then
21910
21911         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21912 printf "%s\n" "yes" >&6; }
21913         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21914 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21915
21916   else
21917
21918         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21919 printf "%s\n" "no" >&6; }
21920         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21921 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21922                 CPPFLAGS="$tmp_save_CPPFLAGS"
21923         CFLAGS="$tmp_save_CFLAGS"
21924
21925   fi
21926
21927     fi
21928     #
21929   fi
21930
21931
21932         #
21933   if test "$compiler_id" != "unknown"; then
21934     #
21935     tmp_save_CFLAGS="$CFLAGS"
21936     tmp_save_CPPFLAGS="$CPPFLAGS"
21937     #
21938     tmp_options=""
21939     tmp_CFLAGS="$CFLAGS"
21940     tmp_CPPFLAGS="$CPPFLAGS"
21941
21942     ac_var_stripped=""
21943   for word1 in $tmp_CFLAGS; do
21944     ac_var_strip_word="no"
21945     for word2 in $flags_dbg_all; do
21946       if test "$word1" = "$word2"; then
21947         ac_var_strip_word="yes"
21948       fi
21949     done
21950     if test "$ac_var_strip_word" = "no"; then
21951       ac_var_stripped="$ac_var_stripped $word1"
21952     fi
21953   done
21954     tmp_CFLAGS="$ac_var_stripped"
21955   squeeze tmp_CFLAGS
21956
21957
21958     ac_var_stripped=""
21959   for word1 in $tmp_CPPFLAGS; do
21960     ac_var_strip_word="no"
21961     for word2 in $flags_dbg_all; do
21962       if test "$word1" = "$word2"; then
21963         ac_var_strip_word="yes"
21964       fi
21965     done
21966     if test "$ac_var_strip_word" = "no"; then
21967       ac_var_stripped="$ac_var_stripped $word1"
21968     fi
21969   done
21970     tmp_CPPFLAGS="$ac_var_stripped"
21971   squeeze tmp_CPPFLAGS
21972
21973     #
21974     if test "$want_debug" = "yes"; then
21975       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
21976 printf %s "checking if compiler accepts debug enabling options... " >&6; }
21977       tmp_options="$flags_dbg_yes"
21978     fi
21979     if test "$want_debug" = "no"; then
21980       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
21981 printf %s "checking if compiler accepts debug disabling options... " >&6; }
21982       tmp_options="$flags_dbg_off"
21983     fi
21984     #
21985     if test "$flags_prefer_cppflags" = "yes"; then
21986       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
21987       CFLAGS="$tmp_CFLAGS"
21988     else
21989       CPPFLAGS="$tmp_CPPFLAGS"
21990       CFLAGS="$tmp_CFLAGS $tmp_options"
21991     fi
21992     squeeze CPPFLAGS
21993     squeeze CFLAGS
21994
21995     tmp_compiler_works="unknown"
21996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h.  */
21998
21999
22000
22001 int
22002 main (void)
22003 {
22004
22005       int i = 1;
22006       return i;
22007
22008   ;
22009   return 0;
22010 }
22011
22012 _ACEOF
22013 if ac_fn_c_try_compile "$LINENO"
22014 then :
22015
22016     tmp_compiler_works="yes"
22017
22018 else $as_nop
22019
22020     tmp_compiler_works="no"
22021     echo " " >&6
22022     sed 's/^/cc-fail: /' conftest.err >&6
22023     echo " " >&6
22024
22025 fi
22026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22027     if test "$tmp_compiler_works" = "yes"; then
22028     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h.  */
22030
22031
22032
22033 int
22034 main (void)
22035 {
22036
22037         int i = 1;
22038         return i;
22039
22040   ;
22041   return 0;
22042 }
22043
22044 _ACEOF
22045 if ac_fn_c_try_link "$LINENO"
22046 then :
22047
22048       tmp_compiler_works="yes"
22049
22050 else $as_nop
22051
22052       tmp_compiler_works="no"
22053       echo " " >&6
22054       sed 's/^/link-fail: /' conftest.err >&6
22055       echo " " >&6
22056
22057 fi
22058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22059     conftest$ac_exeext conftest.$ac_ext
22060   fi
22061     if test "x$cross_compiling" != "xyes" &&
22062     test "$tmp_compiler_works" = "yes"; then
22063     if test "$cross_compiling" = yes
22064 then :
22065   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22067 as_fn_error $? "cannot run test program while cross compiling
22068 See \`config.log' for more details" "$LINENO" 5; }
22069 else $as_nop
22070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h.  */
22072
22073
22074 #       ifdef __STDC__
22075 #         include <stdlib.h>
22076 #       endif
22077
22078 int
22079 main (void)
22080 {
22081
22082         int i = 0;
22083         exit(i);
22084
22085   ;
22086   return 0;
22087 }
22088
22089 _ACEOF
22090 if ac_fn_c_try_run "$LINENO"
22091 then :
22092
22093       tmp_compiler_works="yes"
22094
22095 else $as_nop
22096
22097       tmp_compiler_works="no"
22098       echo " " >&6
22099       echo "run-fail: test program exited with status $ac_status" >&6
22100       echo " " >&6
22101
22102 fi
22103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22104   conftest.$ac_objext conftest.beam conftest.$ac_ext
22105 fi
22106
22107   fi
22108     if test "$tmp_compiler_works" = "yes"; then
22109
22110       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 printf "%s\n" "yes" >&6; }
22112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
22113 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
22114
22115   else
22116
22117       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 printf "%s\n" "no" >&6; }
22119       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
22120 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
22121             CPPFLAGS="$tmp_save_CPPFLAGS"
22122       CFLAGS="$tmp_save_CFLAGS"
22123
22124   fi
22125
22126     #
22127   fi
22128
22129
22130         #
22131   if test "$compiler_id" != "unknown"; then
22132     #
22133     tmp_save_CFLAGS="$CFLAGS"
22134     tmp_save_CPPFLAGS="$CPPFLAGS"
22135     #
22136     tmp_options=""
22137     tmp_CFLAGS="$CFLAGS"
22138     tmp_CPPFLAGS="$CPPFLAGS"
22139     honor_optimize_option="yes"
22140     #
22141                         #
22142     if test "$want_optimize" = "assume_no" ||
22143        test "$want_optimize" = "assume_yes"; then
22144       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
22145 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
22146
22147
22148   ac_var_match_word="no"
22149   for word1 in $tmp_CFLAGS; do
22150     for word2 in $flags_opt_all; do
22151       if test "$word1" = "$word2"; then
22152         ac_var_match_word="yes"
22153       fi
22154     done
22155   done
22156
22157   if test "$ac_var_match_word" = "yes"; then
22158
22159         honor_optimize_option="no"
22160
22161
22162   fi
22163
22164
22165
22166   ac_var_match_word="no"
22167   for word1 in $tmp_CPPFLAGS; do
22168     for word2 in $flags_opt_all; do
22169       if test "$word1" = "$word2"; then
22170         ac_var_match_word="yes"
22171       fi
22172     done
22173   done
22174
22175   if test "$ac_var_match_word" = "yes"; then
22176
22177         honor_optimize_option="no"
22178
22179
22180   fi
22181
22182       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
22183 printf "%s\n" "$honor_optimize_option" >&6; }
22184       if test "$honor_optimize_option" = "yes"; then
22185         if test "$want_optimize" = "assume_yes"; then
22186           want_optimize="yes"
22187         fi
22188         if test "$want_optimize" = "assume_no"; then
22189           want_optimize="no"
22190         fi
22191       fi
22192     fi
22193     #
22194     if test "$honor_optimize_option" = "yes"; then
22195
22196     ac_var_stripped=""
22197   for word1 in $tmp_CFLAGS; do
22198     ac_var_strip_word="no"
22199     for word2 in $flags_opt_all; do
22200       if test "$word1" = "$word2"; then
22201         ac_var_strip_word="yes"
22202       fi
22203     done
22204     if test "$ac_var_strip_word" = "no"; then
22205       ac_var_stripped="$ac_var_stripped $word1"
22206     fi
22207   done
22208     tmp_CFLAGS="$ac_var_stripped"
22209   squeeze tmp_CFLAGS
22210
22211
22212     ac_var_stripped=""
22213   for word1 in $tmp_CPPFLAGS; do
22214     ac_var_strip_word="no"
22215     for word2 in $flags_opt_all; do
22216       if test "$word1" = "$word2"; then
22217         ac_var_strip_word="yes"
22218       fi
22219     done
22220     if test "$ac_var_strip_word" = "no"; then
22221       ac_var_stripped="$ac_var_stripped $word1"
22222     fi
22223   done
22224     tmp_CPPFLAGS="$ac_var_stripped"
22225   squeeze tmp_CPPFLAGS
22226
22227       if test "$want_optimize" = "yes"; then
22228         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
22229 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
22230         tmp_options="$flags_opt_yes"
22231       fi
22232       if test "$want_optimize" = "no"; then
22233         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
22234 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
22235         tmp_options="$flags_opt_off"
22236       fi
22237       if test "$flags_prefer_cppflags" = "yes"; then
22238         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
22239         CFLAGS="$tmp_CFLAGS"
22240       else
22241         CPPFLAGS="$tmp_CPPFLAGS"
22242         CFLAGS="$tmp_CFLAGS $tmp_options"
22243       fi
22244       squeeze CPPFLAGS
22245       squeeze CFLAGS
22246
22247     tmp_compiler_works="unknown"
22248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h.  */
22250
22251
22252
22253 int
22254 main (void)
22255 {
22256
22257       int i = 1;
22258       return i;
22259
22260   ;
22261   return 0;
22262 }
22263
22264 _ACEOF
22265 if ac_fn_c_try_compile "$LINENO"
22266 then :
22267
22268     tmp_compiler_works="yes"
22269
22270 else $as_nop
22271
22272     tmp_compiler_works="no"
22273     echo " " >&6
22274     sed 's/^/cc-fail: /' conftest.err >&6
22275     echo " " >&6
22276
22277 fi
22278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22279     if test "$tmp_compiler_works" = "yes"; then
22280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h.  */
22282
22283
22284
22285 int
22286 main (void)
22287 {
22288
22289         int i = 1;
22290         return i;
22291
22292   ;
22293   return 0;
22294 }
22295
22296 _ACEOF
22297 if ac_fn_c_try_link "$LINENO"
22298 then :
22299
22300       tmp_compiler_works="yes"
22301
22302 else $as_nop
22303
22304       tmp_compiler_works="no"
22305       echo " " >&6
22306       sed 's/^/link-fail: /' conftest.err >&6
22307       echo " " >&6
22308
22309 fi
22310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22311     conftest$ac_exeext conftest.$ac_ext
22312   fi
22313     if test "x$cross_compiling" != "xyes" &&
22314     test "$tmp_compiler_works" = "yes"; then
22315     if test "$cross_compiling" = yes
22316 then :
22317   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22319 as_fn_error $? "cannot run test program while cross compiling
22320 See \`config.log' for more details" "$LINENO" 5; }
22321 else $as_nop
22322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h.  */
22324
22325
22326 #       ifdef __STDC__
22327 #         include <stdlib.h>
22328 #       endif
22329
22330 int
22331 main (void)
22332 {
22333
22334         int i = 0;
22335         exit(i);
22336
22337   ;
22338   return 0;
22339 }
22340
22341 _ACEOF
22342 if ac_fn_c_try_run "$LINENO"
22343 then :
22344
22345       tmp_compiler_works="yes"
22346
22347 else $as_nop
22348
22349       tmp_compiler_works="no"
22350       echo " " >&6
22351       echo "run-fail: test program exited with status $ac_status" >&6
22352       echo " " >&6
22353
22354 fi
22355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22356   conftest.$ac_objext conftest.beam conftest.$ac_ext
22357 fi
22358
22359   fi
22360     if test "$tmp_compiler_works" = "yes"; then
22361
22362         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22363 printf "%s\n" "yes" >&6; }
22364         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
22365 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
22366
22367   else
22368
22369         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 printf "%s\n" "no" >&6; }
22371         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
22372 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
22373                 CPPFLAGS="$tmp_save_CPPFLAGS"
22374         CFLAGS="$tmp_save_CFLAGS"
22375
22376   fi
22377
22378     fi
22379     #
22380   fi
22381
22382
22383         #
22384   if test "$compiler_id" != "unknown"; then
22385     #
22386     tmp_save_CPPFLAGS="$CPPFLAGS"
22387     tmp_save_CFLAGS="$CFLAGS"
22388     tmp_CPPFLAGS=""
22389     tmp_CFLAGS=""
22390     #
22391     case "$compiler_id" in
22392         #
22393       CLANG)
22394         #
22395         if test "$want_warnings" = "yes"; then
22396           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
22397           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
22398           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
22399           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
22400           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
22401           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
22402           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
22403           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
22404           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
22405           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
22406           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
22407           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
22408           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
22409           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
22410           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
22411           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
22412           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
22413           #
22414                     if test "$compiler_num" -ge "101"; then
22415             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
22416           fi
22417         fi
22418         ;;
22419         #
22420       DEC_C)
22421         #
22422         if test "$want_warnings" = "yes"; then
22423                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
22424         fi
22425         ;;
22426         #
22427       GNU_C)
22428         #
22429         if test "$want_warnings" = "yes"; then
22430           #
22431                               if test "x$cross_compiling" != "xyes" ||
22432             test "$compiler_num" -ge "300"; then
22433             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
22434           fi
22435           #
22436                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
22437           #
22438                     if test "$compiler_num" -ge "104"; then
22439             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
22440                         if test "x$cross_compiling" != "xyes" ||
22441               test "$compiler_num" -ge "300"; then
22442               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
22443             fi
22444           fi
22445           #
22446                     if test "$compiler_num" -ge "207"; then
22447             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
22448                         if test "x$cross_compiling" != "xyes" ||
22449               test "$compiler_num" -ge "300"; then
22450               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
22451               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
22452             fi
22453           fi
22454           #
22455                     if test "$compiler_num" -ge "295"; then
22456             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
22457           fi
22458           #
22459                     if test "$compiler_num" -ge "296"; then
22460             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
22461             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
22462                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
22463           fi
22464           #
22465                     if test "$compiler_num" -ge "297"; then
22466             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
22467           fi
22468           #
22469                     if test "$compiler_num" -ge "300"; then
22470                                                             tmp_CFLAGS="$tmp_CFLAGS"
22471           fi
22472           #
22473                     if test "$compiler_num" -ge "303"; then
22474             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
22475           fi
22476           #
22477                     if test "$compiler_num" -ge "304"; then
22478             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
22479           fi
22480           #
22481                     if test "$compiler_num" -ge "400"; then
22482             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
22483           fi
22484           #
22485                     if test "$compiler_num" -ge "402"; then
22486             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
22487           fi
22488           #
22489                     if test "$compiler_num" -ge "403"; then
22490             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
22491             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
22492             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
22493             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
22494           fi
22495           #
22496                     if test "$compiler_num" -ge "405"; then
22497                         if test "$curl_cv_have_def__WIN32" = "yes"; then
22498               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
22499             fi
22500           fi
22501           #
22502         fi
22503         #
22504                 if test "$compiler_num" -ge "300"; then
22505           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
22506         else
22507                               if test "x$cross_compiling" = "xyes"; then
22508             if test "$compiler_num" -ge "104"; then
22509                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
22510             fi
22511             if test "$compiler_num" -ge "207"; then
22512                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
22513               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
22514             fi
22515           fi
22516         fi
22517         ;;
22518         #
22519       HP_UX_C)
22520         #
22521         if test "$want_warnings" = "yes"; then
22522                     tmp_CFLAGS="$tmp_CFLAGS +w1"
22523         fi
22524         ;;
22525         #
22526       IBM_C)
22527         #
22528                 tmp_CFLAGS="$tmp_CFLAGS"
22529         ;;
22530         #
22531       INTEL_UNIX_C)
22532         #
22533         if test "$want_warnings" = "yes"; then
22534           if test "$compiler_num" -gt "600"; then
22535                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
22536                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
22537                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
22538                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
22539                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
22540                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
22541                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
22542                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
22543                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
22544                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
22545                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
22546           fi
22547         fi
22548                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
22549                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
22550                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
22551                 if test "$compiler_num" -ge "1000"; then
22552                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
22553         fi
22554         ;;
22555         #
22556       INTEL_WINDOWS_C)
22557         #
22558                 tmp_CFLAGS="$tmp_CFLAGS"
22559         ;;
22560         #
22561       LCC)
22562         #
22563         if test "$want_warnings" = "yes"; then
22564                                                   tmp_CFLAGS="$tmp_CFLAGS"
22565         fi
22566         ;;
22567         #
22568       SGI_MIPS_C)
22569         #
22570         if test "$want_warnings" = "yes"; then
22571                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
22572         fi
22573         ;;
22574         #
22575       SGI_MIPSPRO_C)
22576         #
22577         if test "$want_warnings" = "yes"; then
22578                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
22579                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
22580         fi
22581         ;;
22582         #
22583       SUNPRO_C)
22584         #
22585         if test "$want_warnings" = "yes"; then
22586                     tmp_CFLAGS="$tmp_CFLAGS -v"
22587         fi
22588         ;;
22589         #
22590       TINY_C)
22591         #
22592         if test "$want_warnings" = "yes"; then
22593                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
22594                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
22595                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
22596         fi
22597         ;;
22598         #
22599       WATCOM_UNIX_C)
22600         #
22601         if test "$want_warnings" = "yes"; then
22602                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
22603         fi
22604         ;;
22605         #
22606       WATCOM_WINDOWS_C)
22607         #
22608                 tmp_CFLAGS="$tmp_CFLAGS"
22609         ;;
22610         #
22611     esac
22612     #
22613     squeeze tmp_CPPFLAGS
22614     squeeze tmp_CFLAGS
22615     #
22616     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
22617       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
22618 printf %s "checking if compiler accepts strict warning options... " >&6; }
22619       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
22620       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
22621       squeeze CPPFLAGS
22622       squeeze CFLAGS
22623
22624     tmp_compiler_works="unknown"
22625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h.  */
22627
22628
22629
22630 int
22631 main (void)
22632 {
22633
22634       int i = 1;
22635       return i;
22636
22637   ;
22638   return 0;
22639 }
22640
22641 _ACEOF
22642 if ac_fn_c_try_compile "$LINENO"
22643 then :
22644
22645     tmp_compiler_works="yes"
22646
22647 else $as_nop
22648
22649     tmp_compiler_works="no"
22650     echo " " >&6
22651     sed 's/^/cc-fail: /' conftest.err >&6
22652     echo " " >&6
22653
22654 fi
22655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22656     if test "$tmp_compiler_works" = "yes"; then
22657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h.  */
22659
22660
22661
22662 int
22663 main (void)
22664 {
22665
22666         int i = 1;
22667         return i;
22668
22669   ;
22670   return 0;
22671 }
22672
22673 _ACEOF
22674 if ac_fn_c_try_link "$LINENO"
22675 then :
22676
22677       tmp_compiler_works="yes"
22678
22679 else $as_nop
22680
22681       tmp_compiler_works="no"
22682       echo " " >&6
22683       sed 's/^/link-fail: /' conftest.err >&6
22684       echo " " >&6
22685
22686 fi
22687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22688     conftest$ac_exeext conftest.$ac_ext
22689   fi
22690     if test "x$cross_compiling" != "xyes" &&
22691     test "$tmp_compiler_works" = "yes"; then
22692     if test "$cross_compiling" = yes
22693 then :
22694   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22696 as_fn_error $? "cannot run test program while cross compiling
22697 See \`config.log' for more details" "$LINENO" 5; }
22698 else $as_nop
22699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22700 /* end confdefs.h.  */
22701
22702
22703 #       ifdef __STDC__
22704 #         include <stdlib.h>
22705 #       endif
22706
22707 int
22708 main (void)
22709 {
22710
22711         int i = 0;
22712         exit(i);
22713
22714   ;
22715   return 0;
22716 }
22717
22718 _ACEOF
22719 if ac_fn_c_try_run "$LINENO"
22720 then :
22721
22722       tmp_compiler_works="yes"
22723
22724 else $as_nop
22725
22726       tmp_compiler_works="no"
22727       echo " " >&6
22728       echo "run-fail: test program exited with status $ac_status" >&6
22729       echo " " >&6
22730
22731 fi
22732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22733   conftest.$ac_objext conftest.beam conftest.$ac_ext
22734 fi
22735
22736   fi
22737     if test "$tmp_compiler_works" = "yes"; then
22738
22739         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22740 printf "%s\n" "yes" >&6; }
22741         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
22742 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
22743
22744   else
22745
22746         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22747 printf "%s\n" "no" >&6; }
22748         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
22749 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
22750                 CPPFLAGS="$tmp_save_CPPFLAGS"
22751         CFLAGS="$tmp_save_CFLAGS"
22752
22753   fi
22754
22755     fi
22756     #
22757   fi
22758
22759
22760 if test "$compiler_id" = "INTEL_UNIX_C"; then
22761   #
22762   if test "$compiler_num" -ge "1000"; then
22763         CFLAGS="$CFLAGS -shared-intel"
22764   elif test "$compiler_num" -ge "900"; then
22765         CFLAGS="$CFLAGS -i-dynamic"
22766   fi
22767   #
22768 fi
22769
22770
22771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
22772 printf %s "checking if compiler halts on compilation errors... " >&6; }
22773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h.  */
22775
22776
22777
22778 int
22779 main (void)
22780 {
22781
22782       force compilation error
22783
22784   ;
22785   return 0;
22786 }
22787
22788 _ACEOF
22789 if ac_fn_c_try_compile "$LINENO"
22790 then :
22791
22792     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22793 printf "%s\n" "no" >&6; }
22794     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
22795
22796 else $as_nop
22797
22798     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22799 printf "%s\n" "yes" >&6; }
22800
22801 fi
22802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22803
22804
22805     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
22806 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
22807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h.  */
22809
22810
22811       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
22812
22813 int
22814 main (void)
22815 {
22816
22817       bad_t dummy;
22818
22819   ;
22820   return 0;
22821 }
22822
22823 _ACEOF
22824 if ac_fn_c_try_compile "$LINENO"
22825 then :
22826
22827     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828 printf "%s\n" "no" >&6; }
22829     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
22830
22831 else $as_nop
22832
22833     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22834 printf "%s\n" "yes" >&6; }
22835
22836 fi
22837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22838
22839
22840     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
22841 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
22842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h.  */
22844
22845
22846 #     include <stdlib.h>
22847       int rand(int n);
22848       int rand(int n)
22849       {
22850         if(n)
22851           return ++n;
22852         else
22853           return n;
22854       }
22855
22856 int
22857 main (void)
22858 {
22859
22860       int i[2];
22861       int j = rand(i[0]);
22862       if(j)
22863         return j;
22864
22865   ;
22866   return 0;
22867 }
22868
22869 _ACEOF
22870 if ac_fn_c_try_compile "$LINENO"
22871 then :
22872
22873     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 printf "%s\n" "no" >&6; }
22875     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
22876
22877 else $as_nop
22878
22879     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22880 printf "%s\n" "yes" >&6; }
22881
22882 fi
22883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22884
22885
22886       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
22887 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
22888   supports_symbol_hiding="no"
22889   symbol_hiding_CFLAGS=""
22890   symbol_hiding_EXTERN=""
22891   tmp_CFLAGS=""
22892   tmp_EXTERN=""
22893   case "$compiler_id" in
22894     CLANG)
22895             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22896       tmp_CFLAGS="-fvisibility=hidden"
22897       supports_symbol_hiding="yes"
22898       ;;
22899     GNU_C)
22900             if test "$compiler_num" -ge "304"; then
22901         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
22902           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22903           tmp_CFLAGS="-fvisibility=hidden"
22904           supports_symbol_hiding="yes"
22905         fi
22906       fi
22907       ;;
22908     INTEL_UNIX_C)
22909             if test "$compiler_num" -ge "900"; then
22910         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
22911           tmp_save_CFLAGS="$CFLAGS"
22912           CFLAGS="$CFLAGS -fvisibility=hidden"
22913           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h.  */
22915
22916
22917 #             include <stdio.h>
22918
22919 int
22920 main (void)
22921 {
22922
22923               printf("icc fvisibility bug test");
22924
22925   ;
22926   return 0;
22927 }
22928
22929 _ACEOF
22930 if ac_fn_c_try_link "$LINENO"
22931 then :
22932
22933             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22934             tmp_CFLAGS="-fvisibility=hidden"
22935             supports_symbol_hiding="yes"
22936
22937 fi
22938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22939     conftest$ac_exeext conftest.$ac_ext
22940           CFLAGS="$tmp_save_CFLAGS"
22941         fi
22942       fi
22943       ;;
22944     SUNPRO_C)
22945       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
22946         tmp_EXTERN="__global"
22947         tmp_CFLAGS="-xldscope=hidden"
22948         supports_symbol_hiding="yes"
22949       fi
22950       ;;
22951   esac
22952   if test "$supports_symbol_hiding" = "yes"; then
22953     tmp_save_CFLAGS="$CFLAGS"
22954     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
22955     squeeze CFLAGS
22956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h.  */
22958
22959
22960         $tmp_EXTERN char *dummy(char *buff);
22961         char *dummy(char *buff)
22962         {
22963          if(buff)
22964            return ++buff;
22965          else
22966            return buff;
22967         }
22968
22969 int
22970 main (void)
22971 {
22972
22973         char b[16];
22974         char *r = dummy(&b[0]);
22975         if(r)
22976           return (int)*r;
22977
22978   ;
22979   return 0;
22980 }
22981
22982 _ACEOF
22983 if ac_fn_c_try_compile "$LINENO"
22984 then :
22985
22986       supports_symbol_hiding="yes"
22987       if test -f conftest.err; then
22988         grep 'visibility' conftest.err >/dev/null
22989         if test "$?" -eq "0"; then
22990           supports_symbol_hiding="no"
22991         fi
22992       fi
22993
22994 else $as_nop
22995
22996       supports_symbol_hiding="no"
22997       echo " " >&6
22998       sed 's/^/cc-src: /' conftest.$ac_ext >&6
22999       sed 's/^/cc-err: /' conftest.err >&6
23000       echo " " >&6
23001
23002 fi
23003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23004     CFLAGS="$tmp_save_CFLAGS"
23005   fi
23006   if test "$supports_symbol_hiding" = "yes"; then
23007     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23008 printf "%s\n" "yes" >&6; }
23009     symbol_hiding_CFLAGS="$tmp_CFLAGS"
23010     symbol_hiding_EXTERN="$tmp_EXTERN"
23011   else
23012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23013 printf "%s\n" "no" >&6; }
23014   fi
23015
23016
23017
23018
23019
23020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23021 printf %s "checking for windows.h... " >&6; }
23022 if test ${ac_cv_header_windows_h+y}
23023 then :
23024   printf %s "(cached) " >&6
23025 else $as_nop
23026
23027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h.  */
23029
23030
23031 #undef inline
23032 #ifndef WIN32_LEAN_AND_MEAN
23033 #define WIN32_LEAN_AND_MEAN
23034 #endif
23035 #include <windows.h>
23036
23037 int
23038 main (void)
23039 {
23040
23041 #if defined(__CYGWIN__) || defined(__CEGCC__)
23042         HAVE_WINDOWS_H shall not be defined.
23043 #else
23044         int dummy=2*WINVER;
23045 #endif
23046
23047   ;
23048   return 0;
23049 }
23050
23051 _ACEOF
23052 if ac_fn_c_try_compile "$LINENO"
23053 then :
23054
23055       ac_cv_header_windows_h="yes"
23056
23057 else $as_nop
23058
23059       ac_cv_header_windows_h="no"
23060
23061 fi
23062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23063
23064 fi
23065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23066 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
23067   case "$ac_cv_header_windows_h" in
23068     yes)
23069
23070 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23071
23072
23073 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
23074
23075       ;;
23076   esac
23077
23078
23079     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
23080 printf %s "checking whether build target is a native Windows one... " >&6; }
23081 if test ${ac_cv_native_windows+y}
23082 then :
23083   printf %s "(cached) " >&6
23084 else $as_nop
23085
23086     if test "$ac_cv_header_windows_h" = "no"; then
23087       ac_cv_native_windows="no"
23088     else
23089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h.  */
23091
23092
23093
23094 int
23095 main (void)
23096 {
23097
23098 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
23099    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
23100           int dummy=1;
23101 #else
23102           Not a native Windows build target.
23103 #endif
23104
23105   ;
23106   return 0;
23107 }
23108
23109 _ACEOF
23110 if ac_fn_c_try_compile "$LINENO"
23111 then :
23112
23113         ac_cv_native_windows="yes"
23114
23115 else $as_nop
23116
23117         ac_cv_native_windows="no"
23118
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23121     fi
23122
23123 fi
23124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
23125 printf "%s\n" "$ac_cv_native_windows" >&6; }
23126    if test "x$ac_cv_native_windows" = xyes; then
23127   DOING_NATIVE_WINDOWS_TRUE=
23128   DOING_NATIVE_WINDOWS_FALSE='#'
23129 else
23130   DOING_NATIVE_WINDOWS_TRUE='#'
23131   DOING_NATIVE_WINDOWS_FALSE=
23132 fi
23133
23134
23135 case X-"$ac_cv_native_windows" in
23136   X-yes)
23137
23138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
23139 printf %s "checking for winsock.h... " >&6; }
23140 if test ${ac_cv_header_winsock_h+y}
23141 then :
23142   printf %s "(cached) " >&6
23143 else $as_nop
23144
23145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h.  */
23147
23148
23149 #undef inline
23150 #ifndef WIN32_LEAN_AND_MEAN
23151 #define WIN32_LEAN_AND_MEAN
23152 #endif
23153 #include <windows.h>
23154 #include <winsock.h>
23155
23156 int
23157 main (void)
23158 {
23159
23160 #if defined(__CYGWIN__) || defined(__CEGCC__)
23161         HAVE_WINSOCK_H shall not be defined.
23162 #else
23163         int dummy=WSACleanup();
23164 #endif
23165
23166   ;
23167   return 0;
23168 }
23169
23170 _ACEOF
23171 if ac_fn_c_try_compile "$LINENO"
23172 then :
23173
23174       ac_cv_header_winsock_h="yes"
23175
23176 else $as_nop
23177
23178       ac_cv_header_winsock_h="no"
23179
23180 fi
23181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23182
23183 fi
23184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
23185 printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
23186   case "$ac_cv_header_winsock_h" in
23187     yes)
23188
23189 printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
23190
23191       ;;
23192   esac
23193
23194
23195     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23196 printf %s "checking for winsock2.h... " >&6; }
23197 if test ${ac_cv_header_winsock2_h+y}
23198 then :
23199   printf %s "(cached) " >&6
23200 else $as_nop
23201
23202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h.  */
23204
23205
23206 #undef inline
23207 #ifndef WIN32_LEAN_AND_MEAN
23208 #define WIN32_LEAN_AND_MEAN
23209 #endif
23210 #include <windows.h>
23211 #include <winsock2.h>
23212
23213 int
23214 main (void)
23215 {
23216
23217 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23218         HAVE_WINSOCK2_H shall not be defined.
23219 #else
23220         int dummy=2*IPPROTO_ESP;
23221 #endif
23222
23223   ;
23224   return 0;
23225 }
23226
23227 _ACEOF
23228 if ac_fn_c_try_compile "$LINENO"
23229 then :
23230
23231       ac_cv_header_winsock2_h="yes"
23232
23233 else $as_nop
23234
23235       ac_cv_header_winsock2_h="no"
23236
23237 fi
23238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23239
23240 fi
23241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23242 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
23243   case "$ac_cv_header_winsock2_h" in
23244     yes)
23245
23246 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23247
23248       ;;
23249   esac
23250
23251
23252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23253 printf %s "checking for ws2tcpip.h... " >&6; }
23254 if test ${ac_cv_header_ws2tcpip_h+y}
23255 then :
23256   printf %s "(cached) " >&6
23257 else $as_nop
23258
23259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h.  */
23261
23262
23263 #undef inline
23264 #ifndef WIN32_LEAN_AND_MEAN
23265 #define WIN32_LEAN_AND_MEAN
23266 #endif
23267 #include <windows.h>
23268 #include <winsock2.h>
23269 #include <ws2tcpip.h>
23270
23271 int
23272 main (void)
23273 {
23274
23275 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23276         HAVE_WS2TCPIP_H shall not be defined.
23277 #else
23278         int dummy=2*IP_PKTINFO;
23279 #endif
23280
23281   ;
23282   return 0;
23283 }
23284
23285 _ACEOF
23286 if ac_fn_c_try_compile "$LINENO"
23287 then :
23288
23289       ac_cv_header_ws2tcpip_h="yes"
23290
23291 else $as_nop
23292
23293       ac_cv_header_ws2tcpip_h="no"
23294
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23297
23298 fi
23299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
23300 printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
23301   case "$ac_cv_header_ws2tcpip_h" in
23302     yes)
23303
23304 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
23305
23306       ;;
23307   esac
23308
23309     CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
23310     ;;
23311   *)
23312     ac_cv_header_winsock_h="no"
23313     ac_cv_header_winsock2_h="no"
23314     ac_cv_header_ws2tcpip_h="no"
23315     ;;
23316 esac
23317
23318
23319
23320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
23321 printf %s "checking if X/Open network library is required... " >&6; }
23322   tst_lib_xnet_required="no"
23323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324 /* end confdefs.h.  */
23325
23326
23327 int main (void)
23328 {
23329 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
23330   return 0;
23331 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
23332   return 0;
23333 #else
23334   force compilation error
23335 #endif
23336 }
23337
23338
23339 _ACEOF
23340 if ac_fn_c_try_compile "$LINENO"
23341 then :
23342
23343     tst_lib_xnet_required="yes"
23344     LIBS="$LIBS -lxnet"
23345
23346 fi
23347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23348   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
23349 printf "%s\n" "$tst_lib_xnet_required" >&6; }
23350
23351
23352 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23353 if test "x$ac_cv_func_gethostbyname" = xyes
23354 then :
23355   HAVE_GETHOSTBYNAME="1"
23356
23357 else $as_nop
23358    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23359 printf %s "checking for gethostbyname in -lnsl... " >&6; }
23360 if test ${ac_cv_lib_nsl_gethostbyname+y}
23361 then :
23362   printf %s "(cached) " >&6
23363 else $as_nop
23364   ac_check_lib_save_LIBS=$LIBS
23365 LIBS="-lnsl  $LIBS"
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h.  */
23368
23369 /* Override any GCC internal prototype to avoid an error.
23370    Use char because int might match the return type of a GCC
23371    builtin and then its argument prototype would still apply.  */
23372 char gethostbyname ();
23373 int
23374 main (void)
23375 {
23376 return gethostbyname ();
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 if ac_fn_c_try_link "$LINENO"
23382 then :
23383   ac_cv_lib_nsl_gethostbyname=yes
23384 else $as_nop
23385   ac_cv_lib_nsl_gethostbyname=no
23386 fi
23387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23388     conftest$ac_exeext conftest.$ac_ext
23389 LIBS=$ac_check_lib_save_LIBS
23390 fi
23391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
23392 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
23393 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
23394 then :
23395   HAVE_GETHOSTBYNAME="1"
23396                              LIBS="$LIBS -lnsl"
23397
23398 fi
23399
23400
23401 fi
23402
23403
23404 if test "$HAVE_GETHOSTBYNAME" != "1"
23405 then
23406     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
23407 printf %s "checking for gethostbyname in -lsocket... " >&6; }
23408 if test ${ac_cv_lib_socket_gethostbyname+y}
23409 then :
23410   printf %s "(cached) " >&6
23411 else $as_nop
23412   ac_check_lib_save_LIBS=$LIBS
23413 LIBS="-lsocket  $LIBS"
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h.  */
23416
23417 /* Override any GCC internal prototype to avoid an error.
23418    Use char because int might match the return type of a GCC
23419    builtin and then its argument prototype would still apply.  */
23420 char gethostbyname ();
23421 int
23422 main (void)
23423 {
23424 return gethostbyname ();
23425   ;
23426   return 0;
23427 }
23428 _ACEOF
23429 if ac_fn_c_try_link "$LINENO"
23430 then :
23431   ac_cv_lib_socket_gethostbyname=yes
23432 else $as_nop
23433   ac_cv_lib_socket_gethostbyname=no
23434 fi
23435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23436     conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23438 fi
23439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
23440 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
23441 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
23442 then :
23443   HAVE_GETHOSTBYNAME="1"
23444                LIBS="$LIBS -lsocket"
23445
23446 fi
23447
23448 fi
23449
23450 if test "$HAVE_GETHOSTBYNAME" != "1"
23451 then
23452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
23453 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
23454   my_ac_save_LIBS=$LIBS
23455   LIBS="-lnsl -lsocket $LIBS"
23456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h.  */
23458
23459
23460
23461 int
23462 main (void)
23463 {
23464
23465       gethostbyname();
23466
23467   ;
23468   return 0;
23469 }
23470
23471 _ACEOF
23472 if ac_fn_c_try_link "$LINENO"
23473 then :
23474
23475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23476 printf "%s\n" "yes" >&6; }
23477     HAVE_GETHOSTBYNAME="1"
23478
23479 else $as_nop
23480
23481     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 printf "%s\n" "no" >&6; }
23483     LIBS=$my_ac_save_LIBS
23484
23485 fi
23486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23487     conftest$ac_exeext conftest.$ac_ext
23488 fi
23489
23490 if test "$HAVE_GETHOSTBYNAME" != "1"
23491 then
23492     if test "$ac_cv_header_windows_h" = "yes"; then
23493     if test "$ac_cv_header_winsock_h" = "yes"; then
23494       case $host in
23495         *-*-mingw32ce*)
23496           winsock_LIB="-lwinsock"
23497           ;;
23498         *)
23499           winsock_LIB="-lwsock32"
23500           ;;
23501       esac
23502     fi
23503     if test "$ac_cv_header_winsock2_h" = "yes"; then
23504       winsock_LIB="-lws2_32"
23505     fi
23506     if test ! -z "$winsock_LIB"; then
23507       my_ac_save_LIBS=$LIBS
23508       LIBS="$winsock_LIB $LIBS"
23509       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
23510 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
23511       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h.  */
23513
23514
23515 #ifdef HAVE_WINDOWS_H
23516 #ifndef WIN32_LEAN_AND_MEAN
23517 #define WIN32_LEAN_AND_MEAN
23518 #endif
23519 #include <windows.h>
23520 #ifdef HAVE_WINSOCK2_H
23521 #include <winsock2.h>
23522 #else
23523 #ifdef HAVE_WINSOCK_H
23524 #include <winsock.h>
23525 #endif
23526 #endif
23527 #endif
23528
23529 int
23530 main (void)
23531 {
23532
23533           gethostbyname("www.dummysite.com");
23534
23535   ;
23536   return 0;
23537 }
23538
23539 _ACEOF
23540 if ac_fn_c_try_link "$LINENO"
23541 then :
23542
23543         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23544 printf "%s\n" "yes" >&6; }
23545         HAVE_GETHOSTBYNAME="1"
23546
23547 else $as_nop
23548
23549         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 printf "%s\n" "no" >&6; }
23551         winsock_LIB=""
23552         LIBS=$my_ac_save_LIBS
23553
23554 fi
23555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23556     conftest$ac_exeext conftest.$ac_ext
23557     fi
23558   fi
23559 fi
23560
23561 if test "$HAVE_GETHOSTBYNAME" != "1"
23562 then
23563     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
23564 printf %s "checking for gethostbyname for Minix 3... " >&6; }
23565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23566 /* end confdefs.h.  */
23567
23568
23569 /* Older Minix versions may need <net/gen/netdb.h> here instead */
23570 #include <netdb.h>
23571
23572 int
23573 main (void)
23574 {
23575
23576       gethostbyname("www.dummysite.com");
23577
23578   ;
23579   return 0;
23580 }
23581
23582 _ACEOF
23583 if ac_fn_c_try_link "$LINENO"
23584 then :
23585
23586     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23587 printf "%s\n" "yes" >&6; }
23588     HAVE_GETHOSTBYNAME="1"
23589
23590 else $as_nop
23591
23592     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23593 printf "%s\n" "no" >&6; }
23594
23595 fi
23596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23597     conftest$ac_exeext conftest.$ac_ext
23598 fi
23599
23600 if test "$HAVE_GETHOSTBYNAME" != "1"
23601 then
23602     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
23603 printf %s "checking for gethostbyname for eCos... " >&6; }
23604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h.  */
23606
23607
23608 #include <stdio.h>
23609 #include <netdb.h>
23610
23611 int
23612 main (void)
23613 {
23614
23615       gethostbyname("www.dummysite.com");
23616
23617   ;
23618   return 0;
23619 }
23620
23621 _ACEOF
23622 if ac_fn_c_try_link "$LINENO"
23623 then :
23624
23625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626 printf "%s\n" "yes" >&6; }
23627     HAVE_GETHOSTBYNAME="1"
23628
23629 else $as_nop
23630
23631     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23632 printf "%s\n" "no" >&6; }
23633
23634 fi
23635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23636     conftest$ac_exeext conftest.$ac_ext
23637 fi
23638
23639 if test "$HAVE_GETHOSTBYNAME" != "1"
23640 then
23641     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
23642 printf %s "checking for gethostbyname in -lnet... " >&6; }
23643 if test ${ac_cv_lib_net_gethostbyname+y}
23644 then :
23645   printf %s "(cached) " >&6
23646 else $as_nop
23647   ac_check_lib_save_LIBS=$LIBS
23648 LIBS="-lnet  $LIBS"
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h.  */
23651
23652 /* Override any GCC internal prototype to avoid an error.
23653    Use char because int might match the return type of a GCC
23654    builtin and then its argument prototype would still apply.  */
23655 char gethostbyname ();
23656 int
23657 main (void)
23658 {
23659 return gethostbyname ();
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 if ac_fn_c_try_link "$LINENO"
23665 then :
23666   ac_cv_lib_net_gethostbyname=yes
23667 else $as_nop
23668   ac_cv_lib_net_gethostbyname=no
23669 fi
23670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23671     conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23673 fi
23674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
23675 printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
23676 if test "x$ac_cv_lib_net_gethostbyname" = xyes
23677 then :
23678   HAVE_GETHOSTBYNAME="1"
23679                LIBS="$LIBS -lnet"
23680
23681 fi
23682
23683 fi
23684
23685
23686 if test "$HAVE_GETHOSTBYNAME" != "1"; then
23687   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23688 fi
23689
23690 if test "x$host_vendor" = "xapple"
23691 then :
23692
23693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
23694 printf %s "checking for library containing res_servicename... " >&6; }
23695 if test ${ac_cv_search_res_servicename+y}
23696 then :
23697   printf %s "(cached) " >&6
23698 else $as_nop
23699   ac_func_search_save_LIBS=$LIBS
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h.  */
23702
23703 /* Override any GCC internal prototype to avoid an error.
23704    Use char because int might match the return type of a GCC
23705    builtin and then its argument prototype would still apply.  */
23706 char res_servicename ();
23707 int
23708 main (void)
23709 {
23710 return res_servicename ();
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 for ac_lib in '' resolv
23716 do
23717   if test -z "$ac_lib"; then
23718     ac_res="none required"
23719   else
23720     ac_res=-l$ac_lib
23721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23722   fi
23723   if ac_fn_c_try_link "$LINENO"
23724 then :
23725   ac_cv_search_res_servicename=$ac_res
23726 fi
23727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23728     conftest$ac_exeext
23729   if test ${ac_cv_search_res_servicename+y}
23730 then :
23731   break
23732 fi
23733 done
23734 if test ${ac_cv_search_res_servicename+y}
23735 then :
23736
23737 else $as_nop
23738   ac_cv_search_res_servicename=no
23739 fi
23740 rm conftest.$ac_ext
23741 LIBS=$ac_func_search_save_LIBS
23742 fi
23743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
23744 printf "%s\n" "$ac_cv_search_res_servicename" >&6; }
23745 ac_res=$ac_cv_search_res_servicename
23746 if test "$ac_res" != no
23747 then :
23748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23749
23750
23751 printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
23752
23753
23754 else $as_nop
23755
23756     as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
23757
23758 fi
23759
23760
23761 fi
23762
23763 if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition"
23764 then :
23765
23766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
23767 printf %s "checking for library containing res_init... " >&6; }
23768 if test ${ac_cv_search_res_init+y}
23769 then :
23770   printf %s "(cached) " >&6
23771 else $as_nop
23772   ac_func_search_save_LIBS=$LIBS
23773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23774 /* end confdefs.h.  */
23775
23776 /* Override any GCC internal prototype to avoid an error.
23777    Use char because int might match the return type of a GCC
23778    builtin and then its argument prototype would still apply.  */
23779 char res_init ();
23780 int
23781 main (void)
23782 {
23783 return res_init ();
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 for ac_lib in '' resolv
23789 do
23790   if test -z "$ac_lib"; then
23791     ac_res="none required"
23792   else
23793     ac_res=-l$ac_lib
23794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23795   fi
23796   if ac_fn_c_try_link "$LINENO"
23797 then :
23798   ac_cv_search_res_init=$ac_res
23799 fi
23800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23801     conftest$ac_exeext
23802   if test ${ac_cv_search_res_init+y}
23803 then :
23804   break
23805 fi
23806 done
23807 if test ${ac_cv_search_res_init+y}
23808 then :
23809
23810 else $as_nop
23811   ac_cv_search_res_init=no
23812 fi
23813 rm conftest.$ac_ext
23814 LIBS=$ac_func_search_save_LIBS
23815 fi
23816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
23817 printf "%s\n" "$ac_cv_search_res_init" >&6; }
23818 ac_res=$ac_cv_search_res_init
23819 if test "$ac_res" != no
23820 then :
23821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23822
23823
23824 printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
23825
23826
23827 else $as_nop
23828
23829     as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5
23830
23831 fi
23832
23833
23834 fi
23835
23836 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23837 if test "x$ac_cv_func_strcasecmp" = xyes
23838 then :
23839
23840 else $as_nop
23841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
23842 printf %s "checking for strcasecmp in -lresolve... " >&6; }
23843 if test ${ac_cv_lib_resolve_strcasecmp+y}
23844 then :
23845   printf %s "(cached) " >&6
23846 else $as_nop
23847   ac_check_lib_save_LIBS=$LIBS
23848 LIBS="-lresolve  $LIBS"
23849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h.  */
23851
23852 /* Override any GCC internal prototype to avoid an error.
23853    Use char because int might match the return type of a GCC
23854    builtin and then its argument prototype would still apply.  */
23855 char strcasecmp ();
23856 int
23857 main (void)
23858 {
23859 return strcasecmp ();
23860   ;
23861   return 0;
23862 }
23863 _ACEOF
23864 if ac_fn_c_try_link "$LINENO"
23865 then :
23866   ac_cv_lib_resolve_strcasecmp=yes
23867 else $as_nop
23868   ac_cv_lib_resolve_strcasecmp=no
23869 fi
23870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23871     conftest$ac_exeext conftest.$ac_ext
23872 LIBS=$ac_check_lib_save_LIBS
23873 fi
23874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
23875 printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
23876 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
23877 then :
23878   printf "%s\n" "#define HAVE_LIBRESOLVE 1" >>confdefs.h
23879
23880   LIBS="-lresolve $LIBS"
23881
23882 fi
23883
23884 fi
23885
23886
23887 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
23888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
23889 printf %s "checking for strcasecmp in -lresolve... " >&6; }
23890 if test ${ac_cv_lib_resolve_strcasecmp+y}
23891 then :
23892   printf %s "(cached) " >&6
23893 else $as_nop
23894   ac_check_lib_save_LIBS=$LIBS
23895 LIBS="-lresolve -lnsl $LIBS"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h.  */
23898
23899 /* Override any GCC internal prototype to avoid an error.
23900    Use char because int might match the return type of a GCC
23901    builtin and then its argument prototype would still apply.  */
23902 char strcasecmp ();
23903 int
23904 main (void)
23905 {
23906 return strcasecmp ();
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_link "$LINENO"
23912 then :
23913   ac_cv_lib_resolve_strcasecmp=yes
23914 else $as_nop
23915   ac_cv_lib_resolve_strcasecmp=no
23916 fi
23917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23918     conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23920 fi
23921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
23922 printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
23923 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
23924 then :
23925   LIBS="-lresolve $LIBS"
23926 fi
23927
23928 fi
23929 ac_cv_func_strcasecmp="no"
23930
23931 if test "$ac_cv_header_winsock2_h" = "yes"; then
23932   LIBS="$LIBS -liphlpapi"
23933 fi
23934
23935
23936 cares_includes_winsock2="\
23937 /* includes start */
23938 #ifdef HAVE_WINDOWS_H
23939 #  ifndef WIN32_LEAN_AND_MEAN
23940 #    define WIN32_LEAN_AND_MEAN
23941 #  endif
23942 #  include <windows.h>
23943 #  ifdef HAVE_WINSOCK2_H
23944 #    include <winsock2.h>
23945 #  else
23946 #    ifdef HAVE_WINSOCK_H
23947 #      include <winsock.h>
23948 #    endif
23949 #  endif
23950 #endif
23951 /* includes end */"
23952
23953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23954 printf %s "checking for windows.h... " >&6; }
23955 if test ${ac_cv_header_windows_h+y}
23956 then :
23957   printf %s "(cached) " >&6
23958 else $as_nop
23959
23960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h.  */
23962
23963
23964 #undef inline
23965 #ifndef WIN32_LEAN_AND_MEAN
23966 #define WIN32_LEAN_AND_MEAN
23967 #endif
23968 #include <windows.h>
23969
23970 int
23971 main (void)
23972 {
23973
23974 #if defined(__CYGWIN__) || defined(__CEGCC__)
23975         HAVE_WINDOWS_H shall not be defined.
23976 #else
23977         int dummy=2*WINVER;
23978 #endif
23979
23980   ;
23981   return 0;
23982 }
23983
23984 _ACEOF
23985 if ac_fn_c_try_compile "$LINENO"
23986 then :
23987
23988       ac_cv_header_windows_h="yes"
23989
23990 else $as_nop
23991
23992       ac_cv_header_windows_h="no"
23993
23994 fi
23995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23996
23997 fi
23998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23999 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
24000   case "$ac_cv_header_windows_h" in
24001     yes)
24002
24003 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
24004
24005
24006 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
24007
24008       ;;
24009   esac
24010
24011
24012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
24013 printf %s "checking for winsock.h... " >&6; }
24014 if test ${ac_cv_header_winsock_h+y}
24015 then :
24016   printf %s "(cached) " >&6
24017 else $as_nop
24018
24019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24020 /* end confdefs.h.  */
24021
24022
24023 #undef inline
24024 #ifndef WIN32_LEAN_AND_MEAN
24025 #define WIN32_LEAN_AND_MEAN
24026 #endif
24027 #include <windows.h>
24028 #include <winsock.h>
24029
24030 int
24031 main (void)
24032 {
24033
24034 #if defined(__CYGWIN__) || defined(__CEGCC__)
24035         HAVE_WINSOCK_H shall not be defined.
24036 #else
24037         int dummy=WSACleanup();
24038 #endif
24039
24040   ;
24041   return 0;
24042 }
24043
24044 _ACEOF
24045 if ac_fn_c_try_compile "$LINENO"
24046 then :
24047
24048       ac_cv_header_winsock_h="yes"
24049
24050 else $as_nop
24051
24052       ac_cv_header_winsock_h="no"
24053
24054 fi
24055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24056
24057 fi
24058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
24059 printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
24060   case "$ac_cv_header_winsock_h" in
24061     yes)
24062
24063 printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
24064
24065       ;;
24066   esac
24067
24068
24069     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
24070 printf %s "checking for winsock2.h... " >&6; }
24071 if test ${ac_cv_header_winsock2_h+y}
24072 then :
24073   printf %s "(cached) " >&6
24074 else $as_nop
24075
24076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h.  */
24078
24079
24080 #undef inline
24081 #ifndef WIN32_LEAN_AND_MEAN
24082 #define WIN32_LEAN_AND_MEAN
24083 #endif
24084 #include <windows.h>
24085 #include <winsock2.h>
24086
24087 int
24088 main (void)
24089 {
24090
24091 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
24092         HAVE_WINSOCK2_H shall not be defined.
24093 #else
24094         int dummy=2*IPPROTO_ESP;
24095 #endif
24096
24097   ;
24098   return 0;
24099 }
24100
24101 _ACEOF
24102 if ac_fn_c_try_compile "$LINENO"
24103 then :
24104
24105       ac_cv_header_winsock2_h="yes"
24106
24107 else $as_nop
24108
24109       ac_cv_header_winsock2_h="no"
24110
24111 fi
24112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24113
24114 fi
24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
24116 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
24117   case "$ac_cv_header_winsock2_h" in
24118     yes)
24119
24120 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
24121
24122       ;;
24123   esac
24124
24125
24126
24127     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
24128 printf %s "checking for connect in libraries... " >&6; }
24129   tst_connect_save_LIBS="$LIBS"
24130   tst_connect_need_LIBS="unknown"
24131   for tst_lib in '' '-lsocket' ; do
24132     if test "$tst_connect_need_LIBS" = "unknown"; then
24133       LIBS="$tst_lib $tst_connect_save_LIBS"
24134       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h.  */
24136
24137
24138           $cares_includes_winsock2
24139           #ifndef HAVE_WINDOWS_H
24140             int connect(int, void*, int);
24141           #endif
24142
24143 int
24144 main (void)
24145 {
24146
24147           if(0 != connect(0, 0, 0))
24148             return 1;
24149
24150   ;
24151   return 0;
24152 }
24153
24154 _ACEOF
24155 if ac_fn_c_try_link "$LINENO"
24156 then :
24157
24158         tst_connect_need_LIBS="$tst_lib"
24159
24160 fi
24161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24162     conftest$ac_exeext conftest.$ac_ext
24163     fi
24164   done
24165   LIBS="$tst_connect_save_LIBS"
24166   #
24167   case X-"$tst_connect_need_LIBS" in
24168     X-unknown)
24169       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
24170 printf "%s\n" "cannot find connect" >&6; }
24171       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
24172       ;;
24173     X-)
24174       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24175 printf "%s\n" "yes" >&6; }
24176       ;;
24177     *)
24178       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
24179 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
24180       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
24181       ;;
24182   esac
24183
24184
24185 if test "x$host_vendor" = "xapple"
24186 then :
24187
24188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
24189 printf %s "checking for iOS minimum version 10 or later... " >&6; }
24190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h.  */
24192
24193
24194 #include <stdio.h>
24195 #include <TargetConditionals.h>
24196
24197 int
24198 main (void)
24199 {
24200
24201 #if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
24202 #error Not iOS 10 or later
24203 #endif
24204 return 0;
24205
24206   ;
24207   return 0;
24208 }
24209
24210 _ACEOF
24211 if ac_fn_c_try_compile "$LINENO"
24212 then :
24213
24214     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 printf "%s\n" "yes" >&6; }
24216     ac_cv_ios_10="yes"
24217
24218 else $as_nop
24219
24220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 printf "%s\n" "no" >&6; }
24222
24223 fi
24224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24225
24226 fi
24227
24228 if test "x$host_vendor" = "xapple"
24229 then :
24230
24231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
24232 printf %s "checking for macOS minimum version 10.12 or later... " >&6; }
24233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24234 /* end confdefs.h.  */
24235
24236
24237 #include <stdio.h>
24238 #include <TargetConditionals.h>
24239
24240 int
24241 main (void)
24242 {
24243
24244 #ifndef MAC_OS_X_VERSION_10_12
24245 #  define MAC_OS_X_VERSION_10_12 101200
24246 #endif
24247 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
24248 #error Not macOS 10.12 or later
24249 #endif
24250 return 0;
24251
24252   ;
24253   return 0;
24254 }
24255
24256 _ACEOF
24257 if ac_fn_c_try_compile "$LINENO"
24258 then :
24259
24260     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24261 printf "%s\n" "yes" >&6; }
24262     ac_cv_macos_10_12="yes"
24263
24264 else $as_nop
24265
24266     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 printf "%s\n" "no" >&6; }
24268
24269 fi
24270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24271
24272 fi
24273
24274 if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
24275
24276
24277 # Obsolete code to be removed.
24278 if test $ac_cv_header_sys_time_h = yes; then
24279
24280 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24281
24282 fi
24283 # End of obsolete code.
24284
24285
24286     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
24287 if test "x$ac_cv_header_sys_types_h" = xyes
24288 then :
24289   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
24290
24291 fi
24292 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
24293 if test "x$ac_cv_header_sys_time_h" = xyes
24294 then :
24295   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
24296
24297 fi
24298 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
24299 if test "x$ac_cv_header_time_h" = xyes
24300 then :
24301   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
24302
24303 fi
24304
24305   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
24306 printf %s "checking for monotonic clock_gettime... " >&6; }
24307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308 /* end confdefs.h.  */
24309
24310
24311 #ifdef HAVE_SYS_TYPES_H
24312 #include <sys/types.h>
24313 #endif
24314 #ifdef HAVE_SYS_TIME_H
24315 #include <sys/time.h>
24316 #ifdef TIME_WITH_SYS_TIME
24317 #include <time.h>
24318 #endif
24319 #else
24320 #ifdef HAVE_TIME_H
24321 #include <time.h>
24322 #endif
24323 #endif
24324
24325 int
24326 main (void)
24327 {
24328
24329       struct timespec ts;
24330       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
24331
24332   ;
24333   return 0;
24334 }
24335
24336 _ACEOF
24337 if ac_fn_c_try_compile "$LINENO"
24338 then :
24339
24340     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 printf "%s\n" "yes" >&6; }
24342     ac_cv_func_clock_gettime="yes"
24343
24344 else $as_nop
24345
24346     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 printf "%s\n" "no" >&6; }
24348     ac_cv_func_clock_gettime="no"
24349
24350 fi
24351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24352
24353
24354     #
24355   if test "$ac_cv_func_clock_gettime" = "yes"; then
24356     #
24357     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
24358 printf %s "checking for clock_gettime in libraries... " >&6; }
24359     #
24360     curl_cv_save_LIBS="$LIBS"
24361     curl_cv_gclk_LIBS="unknown"
24362     #
24363     for x_xlibs in '' '-lrt' '-lposix4' ; do
24364       if test "$curl_cv_gclk_LIBS" = "unknown"; then
24365         if test -z "$x_xlibs"; then
24366           LIBS="$curl_cv_save_LIBS"
24367         else
24368           LIBS="$x_xlibs $curl_cv_save_LIBS"
24369         fi
24370         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h.  */
24372
24373
24374 #ifdef HAVE_SYS_TYPES_H
24375 #include <sys/types.h>
24376 #endif
24377 #ifdef HAVE_SYS_TIME_H
24378 #include <sys/time.h>
24379 #ifdef TIME_WITH_SYS_TIME
24380 #include <time.h>
24381 #endif
24382 #else
24383 #ifdef HAVE_TIME_H
24384 #include <time.h>
24385 #endif
24386 #endif
24387
24388 int
24389 main (void)
24390 {
24391
24392             struct timespec ts;
24393             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
24394
24395   ;
24396   return 0;
24397 }
24398
24399 _ACEOF
24400 if ac_fn_c_try_link "$LINENO"
24401 then :
24402
24403           curl_cv_gclk_LIBS="$x_xlibs"
24404
24405 fi
24406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24407     conftest$ac_exeext conftest.$ac_ext
24408       fi
24409     done
24410     #
24411     LIBS="$curl_cv_save_LIBS"
24412     #
24413     case X-"$curl_cv_gclk_LIBS" in
24414       X-unknown)
24415         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
24416 printf "%s\n" "cannot find clock_gettime" >&6; }
24417         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
24418 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
24419         ac_cv_func_clock_gettime="no"
24420         ;;
24421       X-)
24422         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24423 printf "%s\n" "no additional lib required" >&6; }
24424         ac_cv_func_clock_gettime="yes"
24425         ;;
24426       *)
24427         if test -z "$curl_cv_save_LIBS"; then
24428           LIBS="$curl_cv_gclk_LIBS"
24429         else
24430           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
24431         fi
24432         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
24433 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
24434         ac_cv_func_clock_gettime="yes"
24435         ;;
24436     esac
24437     #
24438         if test "x$cross_compiling" != "xyes" &&
24439       test "$ac_cv_func_clock_gettime" = "yes"; then
24440       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
24441 printf %s "checking if monotonic clock_gettime works... " >&6; }
24442       if test "$cross_compiling" = yes
24443 then :
24444   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24446 as_fn_error $? "cannot run test program while cross compiling
24447 See \`config.log' for more details" "$LINENO" 5; }
24448 else $as_nop
24449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h.  */
24451
24452
24453 #ifdef HAVE_STDLIB_H
24454 #include <stdlib.h>
24455 #endif
24456 #ifdef HAVE_SYS_TYPES_H
24457 #include <sys/types.h>
24458 #endif
24459 #ifdef HAVE_SYS_TIME_H
24460 #include <sys/time.h>
24461 #ifdef TIME_WITH_SYS_TIME
24462 #include <time.h>
24463 #endif
24464 #else
24465 #ifdef HAVE_TIME_H
24466 #include <time.h>
24467 #endif
24468 #endif
24469
24470 int
24471 main (void)
24472 {
24473
24474           struct timespec ts;
24475           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
24476             exit(0);
24477           else
24478             exit(1);
24479
24480   ;
24481   return 0;
24482 }
24483
24484 _ACEOF
24485 if ac_fn_c_try_run "$LINENO"
24486 then :
24487
24488         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24489 printf "%s\n" "yes" >&6; }
24490
24491 else $as_nop
24492
24493         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 printf "%s\n" "no" >&6; }
24495         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
24496 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
24497         ac_cv_func_clock_gettime="no"
24498         LIBS="$curl_cv_save_LIBS"
24499
24500 fi
24501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24502   conftest.$ac_objext conftest.beam conftest.$ac_ext
24503 fi
24504
24505     fi
24506     #
24507     case "$ac_cv_func_clock_gettime" in
24508       yes)
24509
24510 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
24511
24512         ;;
24513     esac
24514     #
24515   fi
24516   #
24517
24518 fi
24519
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
24521 printf %s "checking whether to use libgcc... " >&6; }
24522 # Check whether --enable-libgcc was given.
24523 if test ${enable_libgcc+y}
24524 then :
24525   enableval=$enable_libgcc;  case "$enableval" in
24526   yes)
24527         LIBS="$LIBS -lgcc"
24528        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24529 printf "%s\n" "yes" >&6; }
24530        ;;
24531   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24532 printf "%s\n" "no" >&6; }
24533        ;;
24534   esac
24535 else $as_nop
24536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537 printf "%s\n" "no" >&6; }
24538
24539 fi
24540
24541
24542
24543
24544
24545
24546 STDC_HEADERS
24547
24548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
24549 printf %s "checking for egrep... " >&6; }
24550 if test ${ac_cv_path_EGREP+y}
24551 then :
24552   printf %s "(cached) " >&6
24553 else $as_nop
24554   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
24555    then ac_cv_path_EGREP="$GREP -E"
24556    else
24557      if test -z "$EGREP"; then
24558   ac_path_EGREP_found=false
24559   # Loop through the user's path and test for each of PROGNAME-LIST
24560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
24562 do
24563   IFS=$as_save_IFS
24564   case $as_dir in #(((
24565     '') as_dir=./ ;;
24566     */) ;;
24567     *) as_dir=$as_dir/ ;;
24568   esac
24569     for ac_prog in egrep
24570    do
24571     for ac_exec_ext in '' $ac_executable_extensions; do
24572       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
24573       as_fn_executable_p "$ac_path_EGREP" || continue
24574 # Check for GNU ac_path_EGREP and select it if it is found.
24575   # Check for GNU $ac_path_EGREP
24576 case `"$ac_path_EGREP" --version 2>&1` in
24577 *GNU*)
24578   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
24579 *)
24580   ac_count=0
24581   printf %s 0123456789 >"conftest.in"
24582   while :
24583   do
24584     cat "conftest.in" "conftest.in" >"conftest.tmp"
24585     mv "conftest.tmp" "conftest.in"
24586     cp "conftest.in" "conftest.nl"
24587     printf "%s\n" 'EGREP' >> "conftest.nl"
24588     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
24589     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24590     as_fn_arith $ac_count + 1 && ac_count=$as_val
24591     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
24592       # Best one so far, save it but keep looking for a better one
24593       ac_cv_path_EGREP="$ac_path_EGREP"
24594       ac_path_EGREP_max=$ac_count
24595     fi
24596     # 10*(2^10) chars as input seems more than enough
24597     test $ac_count -gt 10 && break
24598   done
24599   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24600 esac
24601
24602       $ac_path_EGREP_found && break 3
24603     done
24604   done
24605   done
24606 IFS=$as_save_IFS
24607   if test -z "$ac_cv_path_EGREP"; then
24608     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24609   fi
24610 else
24611   ac_cv_path_EGREP=$EGREP
24612 fi
24613
24614    fi
24615 fi
24616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
24617 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
24618  EGREP="$ac_cv_path_EGREP"
24619
24620
24621
24622
24623
24624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
24625 printf %s "checking for malloc.h... " >&6; }
24626 if test ${ac_cv_header_malloc_h+y}
24627 then :
24628   printf %s "(cached) " >&6
24629 else $as_nop
24630
24631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632 /* end confdefs.h.  */
24633
24634
24635 #include <malloc.h>
24636
24637 int
24638 main (void)
24639 {
24640
24641         void *p = malloc(10);
24642         void *q = calloc(10,10);
24643         free(p);
24644         free(q);
24645
24646   ;
24647   return 0;
24648 }
24649
24650 _ACEOF
24651 if ac_fn_c_try_compile "$LINENO"
24652 then :
24653
24654       ac_cv_header_malloc_h="yes"
24655
24656 else $as_nop
24657
24658       ac_cv_header_malloc_h="no"
24659
24660 fi
24661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24662
24663 fi
24664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
24665 printf "%s\n" "$ac_cv_header_malloc_h" >&6; }
24666   if test "$ac_cv_header_malloc_h" = "yes"; then
24667
24668 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
24669
24670     #
24671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h.  */
24673
24674
24675 #include <stdlib.h>
24676
24677 int
24678 main (void)
24679 {
24680
24681         void *p = malloc(10);
24682         void *q = calloc(10,10);
24683         free(p);
24684         free(q);
24685
24686   ;
24687   return 0;
24688 }
24689
24690 _ACEOF
24691 if ac_fn_c_try_compile "$LINENO"
24692 then :
24693
24694       curl_cv_need_header_malloc_h="no"
24695
24696 else $as_nop
24697
24698       curl_cv_need_header_malloc_h="yes"
24699
24700 fi
24701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24702     #
24703     case "$curl_cv_need_header_malloc_h" in
24704       yes)
24705
24706 printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
24707
24708         ;;
24709     esac
24710   fi
24711
24712
24713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
24714 printf %s "checking for memory.h... " >&6; }
24715 if test ${ac_cv_header_memory_h+y}
24716 then :
24717   printf %s "(cached) " >&6
24718 else $as_nop
24719
24720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721 /* end confdefs.h.  */
24722
24723
24724 #include <memory.h>
24725
24726 int
24727 main (void)
24728 {
24729
24730         void *p = malloc(10);
24731         void *q = calloc(10,10);
24732         free(p);
24733         free(q);
24734
24735   ;
24736   return 0;
24737 }
24738
24739 _ACEOF
24740 if ac_fn_c_try_compile "$LINENO"
24741 then :
24742
24743       ac_cv_header_memory_h="yes"
24744
24745 else $as_nop
24746
24747       ac_cv_header_memory_h="no"
24748
24749 fi
24750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24751
24752 fi
24753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
24754 printf "%s\n" "$ac_cv_header_memory_h" >&6; }
24755   if test "$ac_cv_header_memory_h" = "yes"; then
24756
24757 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
24758
24759     #
24760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h.  */
24762
24763
24764 #include <stdlib.h>
24765
24766 int
24767 main (void)
24768 {
24769
24770         void *p = malloc(10);
24771         void *q = calloc(10,10);
24772         free(p);
24773         free(q);
24774
24775   ;
24776   return 0;
24777 }
24778
24779 _ACEOF
24780 if ac_fn_c_try_compile "$LINENO"
24781 then :
24782
24783       curl_cv_need_header_memory_h="no"
24784
24785 else $as_nop
24786
24787       curl_cv_need_header_memory_h="yes"
24788
24789 fi
24790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24791     #
24792     case "$curl_cv_need_header_memory_h" in
24793       yes)
24794
24795 printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
24796
24797         ;;
24798     esac
24799   fi
24800
24801
24802 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
24803 #ifdef HAVE_SYS_TYPES_H
24804 #include <sys/types.h>
24805 #endif
24806 #ifdef HAVE_SYS_TIME_H
24807 #include <sys/time.h>
24808 #endif
24809 #ifdef HAVE_ARPA_NAMESER_H
24810 #include <arpa/nameser.h>
24811 #endif
24812
24813 #ifdef HAVE_SYS_SOCKET_H
24814 #include <sys/socket.h>
24815 #endif
24816 #ifdef HAVE_NETINET_IN_H
24817 #include <netinet/in.h>
24818 #endif
24819
24820
24821 "
24822 if test "x$ac_cv_header_sys_types_h" = xyes
24823 then :
24824   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
24825
24826 fi
24827 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
24828 #ifdef HAVE_SYS_TYPES_H
24829 #include <sys/types.h>
24830 #endif
24831 #ifdef HAVE_SYS_TIME_H
24832 #include <sys/time.h>
24833 #endif
24834 #ifdef HAVE_ARPA_NAMESER_H
24835 #include <arpa/nameser.h>
24836 #endif
24837
24838 #ifdef HAVE_SYS_SOCKET_H
24839 #include <sys/socket.h>
24840 #endif
24841 #ifdef HAVE_NETINET_IN_H
24842 #include <netinet/in.h>
24843 #endif
24844
24845
24846 "
24847 if test "x$ac_cv_header_sys_time_h" = xyes
24848 then :
24849   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
24850
24851 fi
24852 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
24853 #ifdef HAVE_SYS_TYPES_H
24854 #include <sys/types.h>
24855 #endif
24856 #ifdef HAVE_SYS_TIME_H
24857 #include <sys/time.h>
24858 #endif
24859 #ifdef HAVE_ARPA_NAMESER_H
24860 #include <arpa/nameser.h>
24861 #endif
24862
24863 #ifdef HAVE_SYS_SOCKET_H
24864 #include <sys/socket.h>
24865 #endif
24866 #ifdef HAVE_NETINET_IN_H
24867 #include <netinet/in.h>
24868 #endif
24869
24870
24871 "
24872 if test "x$ac_cv_header_sys_select_h" = xyes
24873 then :
24874   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24875
24876 fi
24877 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
24878 #ifdef HAVE_SYS_TYPES_H
24879 #include <sys/types.h>
24880 #endif
24881 #ifdef HAVE_SYS_TIME_H
24882 #include <sys/time.h>
24883 #endif
24884 #ifdef HAVE_ARPA_NAMESER_H
24885 #include <arpa/nameser.h>
24886 #endif
24887
24888 #ifdef HAVE_SYS_SOCKET_H
24889 #include <sys/socket.h>
24890 #endif
24891 #ifdef HAVE_NETINET_IN_H
24892 #include <netinet/in.h>
24893 #endif
24894
24895
24896 "
24897 if test "x$ac_cv_header_sys_socket_h" = xyes
24898 then :
24899   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
24900
24901 fi
24902 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
24903 #ifdef HAVE_SYS_TYPES_H
24904 #include <sys/types.h>
24905 #endif
24906 #ifdef HAVE_SYS_TIME_H
24907 #include <sys/time.h>
24908 #endif
24909 #ifdef HAVE_ARPA_NAMESER_H
24910 #include <arpa/nameser.h>
24911 #endif
24912
24913 #ifdef HAVE_SYS_SOCKET_H
24914 #include <sys/socket.h>
24915 #endif
24916 #ifdef HAVE_NETINET_IN_H
24917 #include <netinet/in.h>
24918 #endif
24919
24920
24921 "
24922 if test "x$ac_cv_header_sys_ioctl_h" = xyes
24923 then :
24924   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
24925
24926 fi
24927 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
24928 #ifdef HAVE_SYS_TYPES_H
24929 #include <sys/types.h>
24930 #endif
24931 #ifdef HAVE_SYS_TIME_H
24932 #include <sys/time.h>
24933 #endif
24934 #ifdef HAVE_ARPA_NAMESER_H
24935 #include <arpa/nameser.h>
24936 #endif
24937
24938 #ifdef HAVE_SYS_SOCKET_H
24939 #include <sys/socket.h>
24940 #endif
24941 #ifdef HAVE_NETINET_IN_H
24942 #include <netinet/in.h>
24943 #endif
24944
24945
24946 "
24947 if test "x$ac_cv_header_sys_param_h" = xyes
24948 then :
24949   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
24950
24951 fi
24952 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
24953 #ifdef HAVE_SYS_TYPES_H
24954 #include <sys/types.h>
24955 #endif
24956 #ifdef HAVE_SYS_TIME_H
24957 #include <sys/time.h>
24958 #endif
24959 #ifdef HAVE_ARPA_NAMESER_H
24960 #include <arpa/nameser.h>
24961 #endif
24962
24963 #ifdef HAVE_SYS_SOCKET_H
24964 #include <sys/socket.h>
24965 #endif
24966 #ifdef HAVE_NETINET_IN_H
24967 #include <netinet/in.h>
24968 #endif
24969
24970
24971 "
24972 if test "x$ac_cv_header_sys_uio_h" = xyes
24973 then :
24974   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
24975
24976 fi
24977 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
24978 #ifdef HAVE_SYS_TYPES_H
24979 #include <sys/types.h>
24980 #endif
24981 #ifdef HAVE_SYS_TIME_H
24982 #include <sys/time.h>
24983 #endif
24984 #ifdef HAVE_ARPA_NAMESER_H
24985 #include <arpa/nameser.h>
24986 #endif
24987
24988 #ifdef HAVE_SYS_SOCKET_H
24989 #include <sys/socket.h>
24990 #endif
24991 #ifdef HAVE_NETINET_IN_H
24992 #include <netinet/in.h>
24993 #endif
24994
24995
24996 "
24997 if test "x$ac_cv_header_assert_h" = xyes
24998 then :
24999   printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
25000
25001 fi
25002 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
25003 #ifdef HAVE_SYS_TYPES_H
25004 #include <sys/types.h>
25005 #endif
25006 #ifdef HAVE_SYS_TIME_H
25007 #include <sys/time.h>
25008 #endif
25009 #ifdef HAVE_ARPA_NAMESER_H
25010 #include <arpa/nameser.h>
25011 #endif
25012
25013 #ifdef HAVE_SYS_SOCKET_H
25014 #include <sys/socket.h>
25015 #endif
25016 #ifdef HAVE_NETINET_IN_H
25017 #include <netinet/in.h>
25018 #endif
25019
25020
25021 "
25022 if test "x$ac_cv_header_netdb_h" = xyes
25023 then :
25024   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
25025
25026 fi
25027 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
25028 #ifdef HAVE_SYS_TYPES_H
25029 #include <sys/types.h>
25030 #endif
25031 #ifdef HAVE_SYS_TIME_H
25032 #include <sys/time.h>
25033 #endif
25034 #ifdef HAVE_ARPA_NAMESER_H
25035 #include <arpa/nameser.h>
25036 #endif
25037
25038 #ifdef HAVE_SYS_SOCKET_H
25039 #include <sys/socket.h>
25040 #endif
25041 #ifdef HAVE_NETINET_IN_H
25042 #include <netinet/in.h>
25043 #endif
25044
25045
25046 "
25047 if test "x$ac_cv_header_netinet_in_h" = xyes
25048 then :
25049   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
25050
25051 fi
25052 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
25053 #ifdef HAVE_SYS_TYPES_H
25054 #include <sys/types.h>
25055 #endif
25056 #ifdef HAVE_SYS_TIME_H
25057 #include <sys/time.h>
25058 #endif
25059 #ifdef HAVE_ARPA_NAMESER_H
25060 #include <arpa/nameser.h>
25061 #endif
25062
25063 #ifdef HAVE_SYS_SOCKET_H
25064 #include <sys/socket.h>
25065 #endif
25066 #ifdef HAVE_NETINET_IN_H
25067 #include <netinet/in.h>
25068 #endif
25069
25070
25071 "
25072 if test "x$ac_cv_header_netinet_tcp_h" = xyes
25073 then :
25074   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
25075
25076 fi
25077 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
25078 #ifdef HAVE_SYS_TYPES_H
25079 #include <sys/types.h>
25080 #endif
25081 #ifdef HAVE_SYS_TIME_H
25082 #include <sys/time.h>
25083 #endif
25084 #ifdef HAVE_ARPA_NAMESER_H
25085 #include <arpa/nameser.h>
25086 #endif
25087
25088 #ifdef HAVE_SYS_SOCKET_H
25089 #include <sys/socket.h>
25090 #endif
25091 #ifdef HAVE_NETINET_IN_H
25092 #include <netinet/in.h>
25093 #endif
25094
25095
25096 "
25097 if test "x$ac_cv_header_net_if_h" = xyes
25098 then :
25099   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
25100
25101 fi
25102 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
25103 #ifdef HAVE_SYS_TYPES_H
25104 #include <sys/types.h>
25105 #endif
25106 #ifdef HAVE_SYS_TIME_H
25107 #include <sys/time.h>
25108 #endif
25109 #ifdef HAVE_ARPA_NAMESER_H
25110 #include <arpa/nameser.h>
25111 #endif
25112
25113 #ifdef HAVE_SYS_SOCKET_H
25114 #include <sys/socket.h>
25115 #endif
25116 #ifdef HAVE_NETINET_IN_H
25117 #include <netinet/in.h>
25118 #endif
25119
25120
25121 "
25122 if test "x$ac_cv_header_errno_h" = xyes
25123 then :
25124   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
25125
25126 fi
25127 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
25128 #ifdef HAVE_SYS_TYPES_H
25129 #include <sys/types.h>
25130 #endif
25131 #ifdef HAVE_SYS_TIME_H
25132 #include <sys/time.h>
25133 #endif
25134 #ifdef HAVE_ARPA_NAMESER_H
25135 #include <arpa/nameser.h>
25136 #endif
25137
25138 #ifdef HAVE_SYS_SOCKET_H
25139 #include <sys/socket.h>
25140 #endif
25141 #ifdef HAVE_NETINET_IN_H
25142 #include <netinet/in.h>
25143 #endif
25144
25145
25146 "
25147 if test "x$ac_cv_header_socket_h" = xyes
25148 then :
25149   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
25150
25151 fi
25152 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "
25153 #ifdef HAVE_SYS_TYPES_H
25154 #include <sys/types.h>
25155 #endif
25156 #ifdef HAVE_SYS_TIME_H
25157 #include <sys/time.h>
25158 #endif
25159 #ifdef HAVE_ARPA_NAMESER_H
25160 #include <arpa/nameser.h>
25161 #endif
25162
25163 #ifdef HAVE_SYS_SOCKET_H
25164 #include <sys/socket.h>
25165 #endif
25166 #ifdef HAVE_NETINET_IN_H
25167 #include <netinet/in.h>
25168 #endif
25169
25170
25171 "
25172 if test "x$ac_cv_header_strings_h" = xyes
25173 then :
25174   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
25175
25176 fi
25177 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
25178 #ifdef HAVE_SYS_TYPES_H
25179 #include <sys/types.h>
25180 #endif
25181 #ifdef HAVE_SYS_TIME_H
25182 #include <sys/time.h>
25183 #endif
25184 #ifdef HAVE_ARPA_NAMESER_H
25185 #include <arpa/nameser.h>
25186 #endif
25187
25188 #ifdef HAVE_SYS_SOCKET_H
25189 #include <sys/socket.h>
25190 #endif
25191 #ifdef HAVE_NETINET_IN_H
25192 #include <netinet/in.h>
25193 #endif
25194
25195
25196 "
25197 if test "x$ac_cv_header_stdbool_h" = xyes
25198 then :
25199   printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
25200
25201 fi
25202 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "
25203 #ifdef HAVE_SYS_TYPES_H
25204 #include <sys/types.h>
25205 #endif
25206 #ifdef HAVE_SYS_TIME_H
25207 #include <sys/time.h>
25208 #endif
25209 #ifdef HAVE_ARPA_NAMESER_H
25210 #include <arpa/nameser.h>
25211 #endif
25212
25213 #ifdef HAVE_SYS_SOCKET_H
25214 #include <sys/socket.h>
25215 #endif
25216 #ifdef HAVE_NETINET_IN_H
25217 #include <netinet/in.h>
25218 #endif
25219
25220
25221 "
25222 if test "x$ac_cv_header_time_h" = xyes
25223 then :
25224   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
25225
25226 fi
25227 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "
25228 #ifdef HAVE_SYS_TYPES_H
25229 #include <sys/types.h>
25230 #endif
25231 #ifdef HAVE_SYS_TIME_H
25232 #include <sys/time.h>
25233 #endif
25234 #ifdef HAVE_ARPA_NAMESER_H
25235 #include <arpa/nameser.h>
25236 #endif
25237
25238 #ifdef HAVE_SYS_SOCKET_H
25239 #include <sys/socket.h>
25240 #endif
25241 #ifdef HAVE_NETINET_IN_H
25242 #include <netinet/in.h>
25243 #endif
25244
25245
25246 "
25247 if test "x$ac_cv_header_limits_h" = xyes
25248 then :
25249   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
25250
25251 fi
25252 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
25253 #ifdef HAVE_SYS_TYPES_H
25254 #include <sys/types.h>
25255 #endif
25256 #ifdef HAVE_SYS_TIME_H
25257 #include <sys/time.h>
25258 #endif
25259 #ifdef HAVE_ARPA_NAMESER_H
25260 #include <arpa/nameser.h>
25261 #endif
25262
25263 #ifdef HAVE_SYS_SOCKET_H
25264 #include <sys/socket.h>
25265 #endif
25266 #ifdef HAVE_NETINET_IN_H
25267 #include <netinet/in.h>
25268 #endif
25269
25270
25271 "
25272 if test "x$ac_cv_header_arpa_nameser_h" = xyes
25273 then :
25274   printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
25275
25276 fi
25277 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "
25278 #ifdef HAVE_SYS_TYPES_H
25279 #include <sys/types.h>
25280 #endif
25281 #ifdef HAVE_SYS_TIME_H
25282 #include <sys/time.h>
25283 #endif
25284 #ifdef HAVE_ARPA_NAMESER_H
25285 #include <arpa/nameser.h>
25286 #endif
25287
25288 #ifdef HAVE_SYS_SOCKET_H
25289 #include <sys/socket.h>
25290 #endif
25291 #ifdef HAVE_NETINET_IN_H
25292 #include <netinet/in.h>
25293 #endif
25294
25295
25296 "
25297 if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
25298 then :
25299   printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
25300
25301 fi
25302 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
25303 #ifdef HAVE_SYS_TYPES_H
25304 #include <sys/types.h>
25305 #endif
25306 #ifdef HAVE_SYS_TIME_H
25307 #include <sys/time.h>
25308 #endif
25309 #ifdef HAVE_ARPA_NAMESER_H
25310 #include <arpa/nameser.h>
25311 #endif
25312
25313 #ifdef HAVE_SYS_SOCKET_H
25314 #include <sys/socket.h>
25315 #endif
25316 #ifdef HAVE_NETINET_IN_H
25317 #include <netinet/in.h>
25318 #endif
25319
25320
25321 "
25322 if test "x$ac_cv_header_arpa_inet_h" = xyes
25323 then :
25324   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
25325
25326 fi
25327
25328
25329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
25330 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
25331 if test ${ac_cv_c_undeclared_builtin_options+y}
25332 then :
25333   printf %s "(cached) " >&6
25334 else $as_nop
25335   ac_save_CFLAGS=$CFLAGS
25336    ac_cv_c_undeclared_builtin_options='cannot detect'
25337    for ac_arg in '' -fno-builtin; do
25338      CFLAGS="$ac_save_CFLAGS $ac_arg"
25339      # This test program should *not* compile successfully.
25340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25341 /* end confdefs.h.  */
25342
25343 int
25344 main (void)
25345 {
25346 (void) strchr;
25347   ;
25348   return 0;
25349 }
25350 _ACEOF
25351 if ac_fn_c_try_compile "$LINENO"
25352 then :
25353
25354 else $as_nop
25355   # This test program should compile successfully.
25356         # No library function is consistently available on
25357         # freestanding implementations, so test against a dummy
25358         # declaration.  Include always-available headers on the
25359         # off chance that they somehow elicit warnings.
25360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h.  */
25362 #include <float.h>
25363 #include <limits.h>
25364 #include <stdarg.h>
25365 #include <stddef.h>
25366 extern void ac_decl (int, char *);
25367
25368 int
25369 main (void)
25370 {
25371 (void) ac_decl (0, (char *) 0);
25372   (void) ac_decl;
25373
25374   ;
25375   return 0;
25376 }
25377 _ACEOF
25378 if ac_fn_c_try_compile "$LINENO"
25379 then :
25380   if test x"$ac_arg" = x
25381 then :
25382   ac_cv_c_undeclared_builtin_options='none needed'
25383 else $as_nop
25384   ac_cv_c_undeclared_builtin_options=$ac_arg
25385 fi
25386           break
25387 fi
25388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25389 fi
25390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25391     done
25392     CFLAGS=$ac_save_CFLAGS
25393
25394 fi
25395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
25396 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
25397   case $ac_cv_c_undeclared_builtin_options in #(
25398   'cannot detect') :
25399     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25400 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25401 as_fn_error $? "cannot make $CC report undeclared builtins
25402 See \`config.log' for more details" "$LINENO" 5; } ;; #(
25403   'none needed') :
25404     ac_c_undeclared_builtin_options='' ;; #(
25405   *) :
25406     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
25407 esac
25408
25409 ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
25410 if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes
25411 then :
25412
25413
25414 cat >>confdefs.h <<_EOF
25415 #define CARES_HAVE_ARPA_NAMESER_H 1
25416 _EOF
25417
25418
25419 fi
25420 ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
25421 if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes
25422 then :
25423
25424
25425 cat >>confdefs.h <<_EOF
25426 #define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1
25427 _EOF
25428
25429
25430 fi
25431
25432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25433 printf %s "checking for an ANSI C-conforming const... " >&6; }
25434 if test ${ac_cv_c_const+y}
25435 then :
25436   printf %s "(cached) " >&6
25437 else $as_nop
25438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439 /* end confdefs.h.  */
25440
25441 int
25442 main (void)
25443 {
25444
25445 #ifndef __cplusplus
25446   /* Ultrix mips cc rejects this sort of thing.  */
25447   typedef int charset[2];
25448   const charset cs = { 0, 0 };
25449   /* SunOS 4.1.1 cc rejects this.  */
25450   char const *const *pcpcc;
25451   char **ppc;
25452   /* NEC SVR4.0.2 mips cc rejects this.  */
25453   struct point {int x, y;};
25454   static struct point const zero = {0,0};
25455   /* IBM XL C 1.02.0.0 rejects this.
25456      It does not let you subtract one const X* pointer from another in
25457      an arm of an if-expression whose if-part is not a constant
25458      expression */
25459   const char *g = "string";
25460   pcpcc = &g + (g ? g-g : 0);
25461   /* HPUX 7.0 cc rejects these. */
25462   ++pcpcc;
25463   ppc = (char**) pcpcc;
25464   pcpcc = (char const *const *) ppc;
25465   { /* SCO 3.2v4 cc rejects this sort of thing.  */
25466     char tx;
25467     char *t = &tx;
25468     char const *s = 0 ? (char *) 0 : (char const *) 0;
25469
25470     *t++ = 0;
25471     if (s) return 0;
25472   }
25473   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25474     int x[] = {25, 17};
25475     const int *foo = &x[0];
25476     ++foo;
25477   }
25478   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25479     typedef const int *iptr;
25480     iptr p = 0;
25481     ++p;
25482   }
25483   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
25484        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25485     struct s { int j; const int *ap[3]; } bx;
25486     struct s *b = &bx; b->j = 5;
25487   }
25488   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25489     const int foo = 10;
25490     if (!foo) return 0;
25491   }
25492   return !cs[0] && !zero.x;
25493 #endif
25494
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 if ac_fn_c_try_compile "$LINENO"
25500 then :
25501   ac_cv_c_const=yes
25502 else $as_nop
25503   ac_cv_c_const=no
25504 fi
25505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25506 fi
25507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25508 printf "%s\n" "$ac_cv_c_const" >&6; }
25509 if test $ac_cv_c_const = no; then
25510
25511 printf "%s\n" "#define const /**/" >>confdefs.h
25512
25513 fi
25514
25515 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25516 if test "x$ac_cv_type_size_t" = xyes
25517 then :
25518
25519 else $as_nop
25520
25521 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
25522
25523 fi
25524
25525
25526 # Obsolete code to be removed.
25527 if test $ac_cv_header_sys_time_h = yes; then
25528
25529 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25530
25531 fi
25532 # End of obsolete code.
25533
25534
25535         ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
25536 if test "x$ac_cv_header_sys_types_h" = xyes
25537 then :
25538   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
25539
25540 fi
25541 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
25542 if test "x$ac_cv_header_sys_time_h" = xyes
25543 then :
25544   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
25545
25546 fi
25547 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
25548 if test "x$ac_cv_header_time_h" = xyes
25549 then :
25550   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
25551
25552 fi
25553 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
25554 if test "x$ac_cv_header_sys_socket_h" = xyes
25555 then :
25556   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25557
25558 fi
25559
25560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
25561 printf %s "checking for struct timeval... " >&6; }
25562 if test ${ac_cv_struct_timeval+y}
25563 then :
25564   printf %s "(cached) " >&6
25565 else $as_nop
25566
25567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h.  */
25569
25570
25571 #undef inline
25572 #ifdef HAVE_WINDOWS_H
25573 #ifndef WIN32_LEAN_AND_MEAN
25574 #define WIN32_LEAN_AND_MEAN
25575 #endif
25576 #include <windows.h>
25577 #ifdef HAVE_WINSOCK2_H
25578 #include <winsock2.h>
25579 #else
25580 #ifdef HAVE_WINSOCK_H
25581 #include <winsock.h>
25582 #endif
25583 #endif
25584 #endif
25585 #ifdef HAVE_SYS_TYPES_H
25586 #include <sys/types.h>
25587 #endif
25588 #ifdef HAVE_SYS_TIME_H
25589 #include <sys/time.h>
25590 #ifdef TIME_WITH_SYS_TIME
25591 #include <time.h>
25592 #endif
25593 #else
25594 #ifdef HAVE_TIME_H
25595 #include <time.h>
25596 #endif
25597 #endif
25598 #ifdef HAVE_SYS_SOCKET_H
25599 #include <sys/socket.h>
25600 #endif
25601
25602 int
25603 main (void)
25604 {
25605
25606         struct timeval ts;
25607         ts.tv_sec  = 0;
25608         ts.tv_usec = 0;
25609
25610   ;
25611   return 0;
25612 }
25613
25614 _ACEOF
25615 if ac_fn_c_try_compile "$LINENO"
25616 then :
25617
25618       ac_cv_struct_timeval="yes"
25619
25620 else $as_nop
25621
25622       ac_cv_struct_timeval="no"
25623
25624 fi
25625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25626
25627 fi
25628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
25629 printf "%s\n" "$ac_cv_struct_timeval" >&6; }
25630   case "$ac_cv_struct_timeval" in
25631     yes)
25632
25633 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
25634
25635       ;;
25636   esac
25637
25638
25639 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25640 if test "x$ac_cv_type_long_long" = xyes
25641 then :
25642
25643 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
25644
25645    longlong="yes"
25646
25647 fi
25648
25649
25650 if test "xyes" = "x$longlong"; then
25651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
25652 printf %s "checking if numberLL works... " >&6; }
25653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h.  */
25655
25656
25657
25658 int
25659 main (void)
25660 {
25661
25662       long long val = 1000LL;
25663
25664   ;
25665   return 0;
25666 }
25667
25668 _ACEOF
25669 if ac_fn_c_try_compile "$LINENO"
25670 then :
25671
25672     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25673 printf "%s\n" "yes" >&6; }
25674
25675 printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
25676
25677
25678 else $as_nop
25679
25680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25681 printf "%s\n" "no" >&6; }
25682
25683 fi
25684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25685 fi
25686
25687
25688 # check for ssize_t
25689 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
25690 if test "x$ac_cv_type_ssize_t" = xyes
25691 then :
25692    CARES_TYPEOF_ARES_SSIZE_T=ssize_t
25693 else $as_nop
25694    CARES_TYPEOF_ARES_SSIZE_T=int
25695 fi
25696
25697
25698
25699 printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h
25700
25701
25702
25703 # check for bool type
25704 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
25705 #ifdef HAVE_SYS_TYPES_H
25706 #include <sys/types.h>
25707 #endif
25708 #ifdef HAVE_STDBOOL_H
25709 #include <stdbool.h>
25710 #endif
25711
25712 "
25713 if test "x$ac_cv_type_bool" = xyes
25714 then :
25715
25716
25717 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
25718
25719
25720 fi
25721
25722
25723
25724 cares_includes_ws2tcpip="\
25725 /* includes start */
25726 #ifdef HAVE_WINDOWS_H
25727 #  ifndef WIN32_LEAN_AND_MEAN
25728 #    define WIN32_LEAN_AND_MEAN
25729 #  endif
25730 #  include <windows.h>
25731 #  ifdef HAVE_WINSOCK2_H
25732 #    include <winsock2.h>
25733 #    ifdef HAVE_WS2TCPIP_H
25734 #       include <ws2tcpip.h>
25735 #    endif
25736 #  endif
25737 #endif
25738 /* includes end */"
25739
25740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
25741 printf %s "checking for windows.h... " >&6; }
25742 if test ${ac_cv_header_windows_h+y}
25743 then :
25744   printf %s "(cached) " >&6
25745 else $as_nop
25746
25747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h.  */
25749
25750
25751 #undef inline
25752 #ifndef WIN32_LEAN_AND_MEAN
25753 #define WIN32_LEAN_AND_MEAN
25754 #endif
25755 #include <windows.h>
25756
25757 int
25758 main (void)
25759 {
25760
25761 #if defined(__CYGWIN__) || defined(__CEGCC__)
25762         HAVE_WINDOWS_H shall not be defined.
25763 #else
25764         int dummy=2*WINVER;
25765 #endif
25766
25767   ;
25768   return 0;
25769 }
25770
25771 _ACEOF
25772 if ac_fn_c_try_compile "$LINENO"
25773 then :
25774
25775       ac_cv_header_windows_h="yes"
25776
25777 else $as_nop
25778
25779       ac_cv_header_windows_h="no"
25780
25781 fi
25782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25783
25784 fi
25785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
25786 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
25787   case "$ac_cv_header_windows_h" in
25788     yes)
25789
25790 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
25791
25792
25793 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
25794
25795       ;;
25796   esac
25797
25798
25799     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
25800 printf %s "checking for winsock2.h... " >&6; }
25801 if test ${ac_cv_header_winsock2_h+y}
25802 then :
25803   printf %s "(cached) " >&6
25804 else $as_nop
25805
25806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25807 /* end confdefs.h.  */
25808
25809
25810 #undef inline
25811 #ifndef WIN32_LEAN_AND_MEAN
25812 #define WIN32_LEAN_AND_MEAN
25813 #endif
25814 #include <windows.h>
25815 #include <winsock2.h>
25816
25817 int
25818 main (void)
25819 {
25820
25821 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
25822         HAVE_WINSOCK2_H shall not be defined.
25823 #else
25824         int dummy=2*IPPROTO_ESP;
25825 #endif
25826
25827   ;
25828   return 0;
25829 }
25830
25831 _ACEOF
25832 if ac_fn_c_try_compile "$LINENO"
25833 then :
25834
25835       ac_cv_header_winsock2_h="yes"
25836
25837 else $as_nop
25838
25839       ac_cv_header_winsock2_h="no"
25840
25841 fi
25842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25843
25844 fi
25845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
25846 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
25847   case "$ac_cv_header_winsock2_h" in
25848     yes)
25849
25850 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
25851
25852       ;;
25853   esac
25854
25855
25856     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
25857 printf %s "checking for ws2tcpip.h... " >&6; }
25858 if test ${ac_cv_header_ws2tcpip_h+y}
25859 then :
25860   printf %s "(cached) " >&6
25861 else $as_nop
25862
25863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h.  */
25865
25866
25867 #undef inline
25868 #ifndef WIN32_LEAN_AND_MEAN
25869 #define WIN32_LEAN_AND_MEAN
25870 #endif
25871 #include <windows.h>
25872 #include <winsock2.h>
25873 #include <ws2tcpip.h>
25874
25875 int
25876 main (void)
25877 {
25878
25879 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
25880         HAVE_WS2TCPIP_H shall not be defined.
25881 #else
25882         int dummy=2*IP_PKTINFO;
25883 #endif
25884
25885   ;
25886   return 0;
25887 }
25888
25889 _ACEOF
25890 if ac_fn_c_try_compile "$LINENO"
25891 then :
25892
25893       ac_cv_header_ws2tcpip_h="yes"
25894
25895 else $as_nop
25896
25897       ac_cv_header_ws2tcpip_h="no"
25898
25899 fi
25900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25901
25902 fi
25903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
25904 printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
25905   case "$ac_cv_header_ws2tcpip_h" in
25906     yes)
25907
25908 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
25909
25910       ;;
25911   esac
25912
25913
25914
25915 cares_includes_sys_socket="\
25916 /* includes start */
25917 #ifdef HAVE_SYS_TYPES_H
25918 #  include <sys/types.h>
25919 #endif
25920 #ifdef HAVE_SYS_SOCKET_H
25921 #  include <sys/socket.h>
25922 #endif
25923 /* includes end */"
25924   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_socket
25925 "
25926 if test "x$ac_cv_header_sys_types_h" = xyes
25927 then :
25928   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
25929
25930 fi
25931 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_sys_socket
25932 "
25933 if test "x$ac_cv_header_sys_socket_h" = xyes
25934 then :
25935   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25936
25937 fi
25938
25939
25940
25941 cares_preprocess_callconv="\
25942 /* preprocess start */
25943 #ifdef HAVE_WINDOWS_H
25944 #  define FUNCALLCONV __stdcall
25945 #else
25946 #  define FUNCALLCONV
25947 #endif
25948 /* preprocess end */"
25949
25950
25951         #
25952   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
25953 printf %s "checking for ares_socklen_t data type... " >&6; }
25954   cares_typeof_ares_socklen_t="unknown"
25955   for arg1 in int SOCKET; do
25956     for arg2 in 'struct sockaddr' void; do
25957       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
25958         if test "$cares_typeof_ares_socklen_t" = "unknown"; then
25959           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25960 /* end confdefs.h.  */
25961
25962
25963               $cares_includes_ws2tcpip
25964               $cares_includes_sys_socket
25965               $cares_preprocess_callconv
25966               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
25967
25968 int
25969 main (void)
25970 {
25971
25972               $t *lenptr = 0;
25973               if(0 != getpeername(0, 0, lenptr))
25974                 return 1;
25975
25976   ;
25977   return 0;
25978 }
25979
25980 _ACEOF
25981 if ac_fn_c_try_compile "$LINENO"
25982 then :
25983
25984             cares_typeof_ares_socklen_t="$t"
25985
25986 fi
25987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25988         fi
25989       done
25990     done
25991   done
25992   for t in socklen_t int; do
25993     if test "$cares_typeof_ares_socklen_t" = "void"; then
25994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h.  */
25996
25997
25998           $cares_includes_sys_socket
25999           typedef $t ares_socklen_t;
26000
26001 int
26002 main (void)
26003 {
26004
26005           ares_socklen_t dummy;
26006
26007   ;
26008   return 0;
26009 }
26010
26011 _ACEOF
26012 if ac_fn_c_try_compile "$LINENO"
26013 then :
26014
26015         cares_typeof_ares_socklen_t="$t"
26016
26017 fi
26018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26019     fi
26020   done
26021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
26022 printf "%s\n" "$cares_typeof_ares_socklen_t" >&6; }
26023   if test "$cares_typeof_ares_socklen_t" = "void" ||
26024     test "$cares_typeof_ares_socklen_t" = "unknown"; then
26025     as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
26026   fi
26027   #
26028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
26029 printf %s "checking size of ares_socklen_t... " >&6; }
26030   cares_sizeof_ares_socklen_t="unknown"
26031   cares_pull_headers_socklen_t="unknown"
26032   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
26033     tst_pull_header_checks='none ws2tcpip'
26034     tst_size_checks='4'
26035   else
26036     tst_pull_header_checks='none systypes syssocket'
26037     tst_size_checks='4 8 2'
26038   fi
26039   for tst_size in $tst_size_checks; do
26040     for tst_pull_headers in $tst_pull_header_checks; do
26041       if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
26042         case $tst_pull_headers in
26043           ws2tcpip)
26044             tmp_includes="$cares_includes_ws2tcpip"
26045             ;;
26046           systypes)
26047             tmp_includes="$cares_includes_sys_types"
26048             ;;
26049           syssocket)
26050             tmp_includes="$cares_includes_sys_socket"
26051             ;;
26052           *)
26053             tmp_includes=""
26054             ;;
26055         esac
26056         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h.  */
26058
26059
26060             $tmp_includes
26061             typedef $cares_typeof_ares_socklen_t ares_socklen_t;
26062             typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
26063
26064 int
26065 main (void)
26066 {
26067
26068             ares_socklen_t dummy;
26069
26070   ;
26071   return 0;
26072 }
26073
26074 _ACEOF
26075 if ac_fn_c_try_compile "$LINENO"
26076 then :
26077
26078           cares_sizeof_ares_socklen_t="$tst_size"
26079           cares_pull_headers_socklen_t="$tst_pull_headers"
26080
26081 fi
26082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26083       fi
26084     done
26085   done
26086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
26087 printf "%s\n" "$cares_sizeof_ares_socklen_t" >&6; }
26088   if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
26089     as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
26090   fi
26091   #
26092   case $cares_pull_headers_socklen_t in
26093     ws2tcpip)
26094
26095 cat >>confdefs.h <<_EOF
26096 #define CARES_PULL_WS2TCPIP_H 1
26097 _EOF
26098
26099       ;;
26100     systypes)
26101
26102 cat >>confdefs.h <<_EOF
26103 #define CARES_PULL_SYS_TYPES_H 1
26104 _EOF
26105
26106       ;;
26107     syssocket)
26108
26109 cat >>confdefs.h <<_EOF
26110 #define CARES_PULL_SYS_TYPES_H 1
26111 _EOF
26112
26113
26114 cat >>confdefs.h <<_EOF
26115 #define CARES_PULL_SYS_SOCKET_H 1
26116 _EOF
26117
26118       ;;
26119   esac
26120
26121 cat >>confdefs.h <<_EOF
26122 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
26123 _EOF
26124
26125
26126 cat >>confdefs.h <<_EOF
26127 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
26128 _EOF
26129
26130
26131
26132
26133   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
26134 #undef inline
26135 #ifdef HAVE_WINDOWS_H
26136 #ifndef WIN32_LEAN_AND_MEAN
26137 #define WIN32_LEAN_AND_MEAN
26138 #endif
26139 #include <windows.h>
26140 #ifdef HAVE_WINSOCK2_H
26141 #include <winsock2.h>
26142 #else
26143 #ifdef HAVE_WINSOCK_H
26144 #include <winsock.h>
26145 #endif
26146 #endif
26147 #else
26148 #ifdef HAVE_SYS_TYPES_H
26149 #include <sys/types.h>
26150 #endif
26151 #ifdef HAVE_SYS_SOCKET_H
26152 #include <sys/socket.h>
26153 #endif
26154 #ifdef HAVE_NETINET_IN_H
26155 #include <netinet/in.h>
26156 #endif
26157 #ifdef HAVE_ARPA_INET_H
26158 #include <arpa/inet.h>
26159 #endif
26160 #endif
26161
26162 "
26163 if test "x$ac_cv_type_in_addr_t" = xyes
26164 then :
26165
26166 else $as_nop
26167
26168         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
26169 printf %s "checking for in_addr_t equivalent... " >&6; }
26170 if test ${curl_cv_in_addr_t_equiv+y}
26171 then :
26172   printf %s "(cached) " >&6
26173 else $as_nop
26174
26175       curl_cv_in_addr_t_equiv="unknown"
26176       for t in "unsigned long" int size_t unsigned long; do
26177         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
26178           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h.  */
26180
26181
26182 #undef inline
26183 #ifdef HAVE_WINDOWS_H
26184 #ifndef WIN32_LEAN_AND_MEAN
26185 #define WIN32_LEAN_AND_MEAN
26186 #endif
26187 #include <windows.h>
26188 #ifdef HAVE_WINSOCK2_H
26189 #include <winsock2.h>
26190 #else
26191 #ifdef HAVE_WINSOCK_H
26192 #include <winsock.h>
26193 #endif
26194 #endif
26195 #else
26196 #ifdef HAVE_SYS_TYPES_H
26197 #include <sys/types.h>
26198 #endif
26199 #ifdef HAVE_SYS_SOCKET_H
26200 #include <sys/socket.h>
26201 #endif
26202 #ifdef HAVE_NETINET_IN_H
26203 #include <netinet/in.h>
26204 #endif
26205 #ifdef HAVE_ARPA_INET_H
26206 #include <arpa/inet.h>
26207 #endif
26208 #endif
26209
26210 int
26211 main (void)
26212 {
26213
26214               $t data = inet_addr ("1.2.3.4");
26215
26216   ;
26217   return 0;
26218 }
26219
26220 _ACEOF
26221 if ac_fn_c_try_link "$LINENO"
26222 then :
26223
26224             curl_cv_in_addr_t_equiv="$t"
26225
26226 fi
26227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26228     conftest$ac_exeext conftest.$ac_ext
26229         fi
26230       done
26231
26232 fi
26233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
26234 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
26235     case "$curl_cv_in_addr_t_equiv" in
26236       unknown)
26237         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
26238         ;;
26239       *)
26240
26241 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
26242
26243         ;;
26244     esac
26245
26246 fi
26247
26248
26249
26250
26251    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
26252 #undef inline
26253 #ifdef HAVE_WINDOWS_H
26254 #ifndef WIN32_LEAN_AND_MEAN
26255 #define WIN32_LEAN_AND_MEAN
26256 #endif
26257 #include <windows.h>
26258 #ifdef HAVE_WINSOCK2_H
26259 #include <winsock2.h>
26260 #endif
26261 #else
26262 #ifdef HAVE_SYS_TYPES_H
26263 #include <sys/types.h>
26264 #endif
26265 #ifdef HAVE_SYS_SOCKET_H
26266 #include <sys/socket.h>
26267 #endif
26268 #ifdef HAVE_NETINET_IN_H
26269 #include <netinet/in.h>
26270 #endif
26271 #ifdef HAVE_ARPA_INET_H
26272 #include <arpa/inet.h>
26273 #endif
26274 #endif
26275
26276 "
26277 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
26278 then :
26279
26280 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
26281
26282 fi
26283
26284
26285
26286
26287   ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
26288 if test "x$ac_cv_header_signal_h" = xyes
26289 then :
26290   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
26291
26292 fi
26293
26294   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
26295 #ifdef HAVE_SIGNAL_H
26296 #include <signal.h>
26297 #endif
26298
26299 "
26300 if test "x$ac_cv_type_sig_atomic_t" = xyes
26301 then :
26302
26303
26304 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
26305
26306
26307 fi
26308
26309   case "$ac_cv_type_sig_atomic_t" in
26310     yes)
26311       #
26312       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
26313 printf %s "checking if sig_atomic_t is already defined as volatile... " >&6; }
26314       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h.  */
26316
26317
26318 #ifdef HAVE_SIGNAL_H
26319 #include <signal.h>
26320 #endif
26321
26322 int
26323 main (void)
26324 {
26325
26326           static volatile sig_atomic_t dummy = 0;
26327
26328   ;
26329   return 0;
26330 }
26331
26332 _ACEOF
26333 if ac_fn_c_try_link "$LINENO"
26334 then :
26335
26336         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26337 printf "%s\n" "no" >&6; }
26338         ac_cv_sig_atomic_t_volatile="no"
26339
26340 else $as_nop
26341
26342         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26343 printf "%s\n" "yes" >&6; }
26344         ac_cv_sig_atomic_t_volatile="yes"
26345
26346 fi
26347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26348     conftest$ac_exeext conftest.$ac_ext
26349       #
26350       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
26351
26352 printf "%s\n" "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
26353
26354       fi
26355       ;;
26356   esac
26357
26358
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26360 printf %s "checking return type of signal handlers... " >&6; }
26361 if test ${ac_cv_type_signal+y}
26362 then :
26363   printf %s "(cached) " >&6
26364 else $as_nop
26365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h.  */
26367 #include <sys/types.h>
26368 #include <signal.h>
26369
26370 int
26371 main (void)
26372 {
26373 return *(signal (0, 0)) (0) == 1;
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 if ac_fn_c_try_compile "$LINENO"
26379 then :
26380   ac_cv_type_signal=int
26381 else $as_nop
26382   ac_cv_type_signal=void
26383 fi
26384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26385 fi
26386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26387 printf "%s\n" "$ac_cv_type_signal" >&6; }
26388
26389 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
26390
26391
26392
26393
26394       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26395 if test "x$ac_cv_header_sys_types_h" = xyes
26396 then :
26397   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26398
26399 fi
26400 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26401 if test "x$ac_cv_header_sys_socket_h" = xyes
26402 then :
26403   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26404
26405 fi
26406
26407   #
26408   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
26409 printf %s "checking for recv... " >&6; }
26410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26411 /* end confdefs.h.  */
26412
26413
26414 #undef inline
26415 #ifdef HAVE_WINDOWS_H
26416 #ifndef WIN32_LEAN_AND_MEAN
26417 #define WIN32_LEAN_AND_MEAN
26418 #endif
26419 #include <windows.h>
26420 #ifdef HAVE_WINSOCK2_H
26421 #include <winsock2.h>
26422 #else
26423 #ifdef HAVE_WINSOCK_H
26424 #include <winsock.h>
26425 #endif
26426 #endif
26427 #else
26428 #ifdef HAVE_SYS_TYPES_H
26429 #include <sys/types.h>
26430 #endif
26431 #ifdef HAVE_SYS_SOCKET_H
26432 #include <sys/socket.h>
26433 #endif
26434 #endif
26435
26436 int
26437 main (void)
26438 {
26439
26440       recv(0, 0, 0, 0);
26441
26442   ;
26443   return 0;
26444 }
26445
26446 _ACEOF
26447 if ac_fn_c_try_link "$LINENO"
26448 then :
26449
26450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451 printf "%s\n" "yes" >&6; }
26452     curl_cv_recv="yes"
26453
26454 else $as_nop
26455
26456     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457 printf "%s\n" "no" >&6; }
26458     curl_cv_recv="no"
26459
26460 fi
26461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26462     conftest$ac_exeext conftest.$ac_ext
26463   #
26464   if test "$curl_cv_recv" = "yes"; then
26465     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
26466 printf %s "checking types of args and return type for recv... " >&6; }
26467 if test ${curl_cv_func_recv_args+y}
26468 then :
26469   printf %s "(cached) " >&6
26470 else $as_nop
26471
26472       curl_cv_func_recv_args="unknown"
26473       for recv_retv in 'int' 'ssize_t'; do
26474         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26475           for recv_arg2 in 'char *' 'void *'; do
26476             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26477               for recv_arg4 in 'int' 'unsigned int'; do
26478                 if test "$curl_cv_func_recv_args" = "unknown"; then
26479                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h.  */
26481
26482
26483 #undef inline
26484 #ifdef HAVE_WINDOWS_H
26485 #ifndef WIN32_LEAN_AND_MEAN
26486 #define WIN32_LEAN_AND_MEAN
26487 #endif
26488 #include <windows.h>
26489 #ifdef HAVE_WINSOCK2_H
26490 #include <winsock2.h>
26491 #else
26492 #ifdef HAVE_WINSOCK_H
26493 #include <winsock.h>
26494 #endif
26495 #endif
26496 #define RECVCALLCONV PASCAL
26497 #else
26498 #ifdef HAVE_SYS_TYPES_H
26499 #include <sys/types.h>
26500 #endif
26501 #ifdef HAVE_SYS_SOCKET_H
26502 #include <sys/socket.h>
26503 #endif
26504 #define RECVCALLCONV
26505 #endif
26506                       extern $recv_retv RECVCALLCONV
26507                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
26508
26509 int
26510 main (void)
26511 {
26512
26513                       $recv_arg1 s=0;
26514                       $recv_arg2 buf=0;
26515                       $recv_arg3 len=0;
26516                       $recv_arg4 flags=0;
26517                       $recv_retv res = recv(s, buf, len, flags);
26518
26519   ;
26520   return 0;
26521 }
26522
26523 _ACEOF
26524 if ac_fn_c_try_compile "$LINENO"
26525 then :
26526
26527                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
26528
26529 fi
26530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26531                 fi
26532               done
26533             done
26534           done
26535         done
26536       done
26537
26538 fi
26539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
26540 printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
26541     if test "$curl_cv_func_recv_args" = "unknown"; then
26542       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
26543     else
26544       recv_prev_IFS=$IFS; IFS=','
26545       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
26546       IFS=$recv_prev_IFS
26547       shift
26548       #
26549
26550 printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
26551
26552
26553 printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
26554
26555
26556 printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
26557
26558
26559 printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
26560
26561
26562 printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
26563
26564       #
26565
26566 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
26567
26568       ac_cv_func_recv="yes"
26569     fi
26570   else
26571     as_fn_error $? "Unable to link function recv" "$LINENO" 5
26572   fi
26573
26574
26575       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26576 if test "x$ac_cv_header_sys_types_h" = xyes
26577 then :
26578   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26579
26580 fi
26581 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26582 if test "x$ac_cv_header_sys_socket_h" = xyes
26583 then :
26584   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26585
26586 fi
26587
26588   #
26589   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
26590 printf %s "checking for recvfrom... " >&6; }
26591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h.  */
26593
26594
26595 #undef inline
26596 #ifdef HAVE_WINDOWS_H
26597 #ifndef WIN32_LEAN_AND_MEAN
26598 #define WIN32_LEAN_AND_MEAN
26599 #endif
26600 #include <windows.h>
26601 #ifdef HAVE_WINSOCK2_H
26602 #include <winsock2.h>
26603 #else
26604 #ifdef HAVE_WINSOCK_H
26605 #include <winsock.h>
26606 #endif
26607 #endif
26608 #else
26609 #ifdef HAVE_SYS_TYPES_H
26610 #include <sys/types.h>
26611 #endif
26612 #ifdef HAVE_SYS_SOCKET_H
26613 #include <sys/socket.h>
26614 #endif
26615 #endif
26616
26617 int
26618 main (void)
26619 {
26620
26621       recvfrom(0, 0, 0, 0, 0, 0);
26622
26623   ;
26624   return 0;
26625 }
26626
26627 _ACEOF
26628 if ac_fn_c_try_link "$LINENO"
26629 then :
26630
26631     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26632 printf "%s\n" "yes" >&6; }
26633     curl_cv_recvfrom="yes"
26634
26635 else $as_nop
26636
26637     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26638 printf "%s\n" "no" >&6; }
26639     curl_cv_recvfrom="no"
26640
26641 fi
26642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26643     conftest$ac_exeext conftest.$ac_ext
26644   #
26645   if test "$curl_cv_recvfrom" = "yes"; then
26646     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
26647 printf %s "checking types of args and return type for recvfrom... " >&6; }
26648 if test ${curl_cv_func_recvfrom_args+y}
26649 then :
26650   printf %s "(cached) " >&6
26651 else $as_nop
26652
26653       curl_cv_func_recvfrom_args="unknown"
26654       for recvfrom_retv in 'int' 'ssize_t'; do
26655         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26656           for recvfrom_arg2 in 'char *' 'void *'; do
26657             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26658               for recvfrom_arg4 in 'int' 'unsigned int'; do
26659                 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
26660                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
26661                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
26662                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h.  */
26664
26665
26666 #undef inline
26667 #ifdef HAVE_WINDOWS_H
26668 #ifndef WIN32_LEAN_AND_MEAN
26669 #define WIN32_LEAN_AND_MEAN
26670 #endif
26671 #include <windows.h>
26672 #ifdef HAVE_WINSOCK2_H
26673 #include <winsock2.h>
26674 #else
26675 #ifdef HAVE_WINSOCK_H
26676 #include <winsock.h>
26677 #endif
26678 #endif
26679 #define RECVFROMCALLCONV PASCAL
26680 #else
26681 #ifdef HAVE_SYS_TYPES_H
26682 #include <sys/types.h>
26683 #endif
26684 #ifdef HAVE_SYS_SOCKET_H
26685 #include <sys/socket.h>
26686 #endif
26687 #define RECVFROMCALLCONV
26688 #endif
26689                           extern $recvfrom_retv RECVFROMCALLCONV
26690                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
26691                                    $recvfrom_arg3, $recvfrom_arg4,
26692                                    $recvfrom_arg5, $recvfrom_arg6);
26693
26694 int
26695 main (void)
26696 {
26697
26698                           $recvfrom_arg1 s=0;
26699                           $recvfrom_arg2 buf=0;
26700                           $recvfrom_arg3 len=0;
26701                           $recvfrom_arg4 flags=0;
26702                           $recvfrom_arg5 addr=0;
26703                           $recvfrom_arg6 addrlen=0;
26704                           $recvfrom_retv res=0;
26705                           res = recvfrom(s, buf, len, flags, addr, addrlen);
26706
26707   ;
26708   return 0;
26709 }
26710
26711 _ACEOF
26712 if ac_fn_c_try_compile "$LINENO"
26713 then :
26714
26715                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
26716
26717 fi
26718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26719                     fi
26720                   done
26721                 done
26722               done
26723             done
26724           done
26725         done
26726       done
26727
26728 fi
26729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
26730 printf "%s\n" "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
26731     # Nearly last minute change for this release starts here
26732
26733 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
26734
26735     ac_cv_func_recvfrom="yes"
26736     # Nearly last minute change for this release ends here
26737     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
26738       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
26739 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
26740     else
26741       recvfrom_prev_IFS=$IFS; IFS=','
26742       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
26743       IFS=$recvfrom_prev_IFS
26744       shift
26745       #
26746       recvfrom_ptrt_arg2=$2
26747       recvfrom_qual_ptrt_arg5=$5
26748       recvfrom_ptrt_arg6=$6
26749       #
26750
26751 printf "%s\n" "#define RECVFROM_TYPE_ARG1 $1" >>confdefs.h
26752
26753
26754 printf "%s\n" "#define RECVFROM_TYPE_ARG3 $3" >>confdefs.h
26755
26756
26757 printf "%s\n" "#define RECVFROM_TYPE_ARG4 $4" >>confdefs.h
26758
26759
26760 printf "%s\n" "#define RECVFROM_TYPE_RETV $7" >>confdefs.h
26761
26762       #
26763       prev_sh_opts=$-
26764       #
26765       case $prev_sh_opts in
26766         *f*)
26767           ;;
26768         *)
26769           set -f
26770           ;;
26771       esac
26772       #
26773       case "$recvfrom_qual_ptrt_arg5" in
26774         const*)
26775           recvfrom_qual_arg5=const
26776           recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
26777         ;;
26778         *)
26779           recvfrom_qual_arg5=
26780           recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
26781         ;;
26782       esac
26783       #
26784       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
26785       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
26786       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
26787       #
26788
26789 printf "%s\n" "#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2" >>confdefs.h
26790
26791
26792 printf "%s\n" "#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5" >>confdefs.h
26793
26794
26795 printf "%s\n" "#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5" >>confdefs.h
26796
26797
26798 printf "%s\n" "#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6" >>confdefs.h
26799
26800       #
26801       if test "$recvfrom_type_arg2" = "void"; then
26802
26803 printf "%s\n" "#define RECVFROM_TYPE_ARG2_IS_VOID 1" >>confdefs.h
26804
26805       fi
26806       if test "$recvfrom_type_arg5" = "void"; then
26807
26808 printf "%s\n" "#define RECVFROM_TYPE_ARG5_IS_VOID 1" >>confdefs.h
26809
26810       fi
26811       if test "$recvfrom_type_arg6" = "void"; then
26812
26813 printf "%s\n" "#define RECVFROM_TYPE_ARG6_IS_VOID 1" >>confdefs.h
26814
26815       fi
26816       #
26817       case $prev_sh_opts in
26818         *f*)
26819           ;;
26820         *)
26821           set +f
26822           ;;
26823       esac
26824       #
26825
26826 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
26827
26828       ac_cv_func_recvfrom="yes"
26829     fi
26830   else
26831     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
26832 printf "%s\n" "$as_me: WARNING: Unable to link function recvfrom" >&2;}
26833     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
26834 printf "%s\n" "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
26835   fi
26836
26837
26838       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26839 if test "x$ac_cv_header_sys_types_h" = xyes
26840 then :
26841   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26842
26843 fi
26844 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26845 if test "x$ac_cv_header_sys_socket_h" = xyes
26846 then :
26847   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26848
26849 fi
26850
26851   #
26852   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
26853 printf %s "checking for send... " >&6; }
26854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h.  */
26856
26857
26858 #undef inline
26859 #ifdef HAVE_WINDOWS_H
26860 #ifndef WIN32_LEAN_AND_MEAN
26861 #define WIN32_LEAN_AND_MEAN
26862 #endif
26863 #include <windows.h>
26864 #ifdef HAVE_WINSOCK2_H
26865 #include <winsock2.h>
26866 #else
26867 #ifdef HAVE_WINSOCK_H
26868 #include <winsock.h>
26869 #endif
26870 #endif
26871 #else
26872 #ifdef HAVE_SYS_TYPES_H
26873 #include <sys/types.h>
26874 #endif
26875 #ifdef HAVE_SYS_SOCKET_H
26876 #include <sys/socket.h>
26877 #endif
26878 #endif
26879
26880 int
26881 main (void)
26882 {
26883
26884       send(0, 0, 0, 0);
26885
26886   ;
26887   return 0;
26888 }
26889
26890 _ACEOF
26891 if ac_fn_c_try_link "$LINENO"
26892 then :
26893
26894     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26895 printf "%s\n" "yes" >&6; }
26896     curl_cv_send="yes"
26897
26898 else $as_nop
26899
26900     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26901 printf "%s\n" "no" >&6; }
26902     curl_cv_send="no"
26903
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26906     conftest$ac_exeext conftest.$ac_ext
26907   #
26908   if test "$curl_cv_send" = "yes"; then
26909     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
26910 printf %s "checking types of args and return type for send... " >&6; }
26911 if test ${curl_cv_func_send_args+y}
26912 then :
26913   printf %s "(cached) " >&6
26914 else $as_nop
26915
26916       curl_cv_func_send_args="unknown"
26917       for send_retv in 'int' 'ssize_t'; do
26918         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26919           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
26920             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26921               for send_arg4 in 'int' 'unsigned int'; do
26922                 if test "$curl_cv_func_send_args" = "unknown"; then
26923                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h.  */
26925
26926
26927 #undef inline
26928 #ifdef HAVE_WINDOWS_H
26929 #ifndef WIN32_LEAN_AND_MEAN
26930 #define WIN32_LEAN_AND_MEAN
26931 #endif
26932 #include <windows.h>
26933 #ifdef HAVE_WINSOCK2_H
26934 #include <winsock2.h>
26935 #else
26936 #ifdef HAVE_WINSOCK_H
26937 #include <winsock.h>
26938 #endif
26939 #endif
26940 #define SENDCALLCONV PASCAL
26941 #else
26942 #ifdef HAVE_SYS_TYPES_H
26943 #include <sys/types.h>
26944 #endif
26945 #ifdef HAVE_SYS_SOCKET_H
26946 #include <sys/socket.h>
26947 #endif
26948 #define SENDCALLCONV
26949 #endif
26950                       extern $send_retv SENDCALLCONV
26951                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
26952
26953 int
26954 main (void)
26955 {
26956
26957                       $send_arg1 s=0;
26958                       $send_arg3 len=0;
26959                       $send_arg4 flags=0;
26960                       $send_retv res = send(s, 0, len, flags);
26961
26962   ;
26963   return 0;
26964 }
26965
26966 _ACEOF
26967 if ac_fn_c_try_compile "$LINENO"
26968 then :
26969
26970                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
26971
26972 fi
26973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26974                 fi
26975               done
26976             done
26977           done
26978         done
26979       done
26980
26981 fi
26982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
26983 printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
26984     if test "$curl_cv_func_send_args" = "unknown"; then
26985       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
26986     else
26987       send_prev_IFS=$IFS; IFS=','
26988       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
26989       IFS=$send_prev_IFS
26990       shift
26991       #
26992       send_qual_type_arg2=$2
26993       #
26994
26995 printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
26996
26997
26998 printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
26999
27000
27001 printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
27002
27003
27004 printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
27005
27006       #
27007       prev_sh_opts=$-
27008       #
27009       case $prev_sh_opts in
27010         *f*)
27011           ;;
27012         *)
27013           set -f
27014           ;;
27015       esac
27016       #
27017       case "$send_qual_type_arg2" in
27018         const*)
27019           send_qual_arg2=const
27020           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
27021         ;;
27022         *)
27023           send_qual_arg2=
27024           send_type_arg2=$send_qual_type_arg2
27025         ;;
27026       esac
27027       #
27028
27029 printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
27030
27031
27032 printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
27033
27034       #
27035       case $prev_sh_opts in
27036         *f*)
27037           ;;
27038         *)
27039           set +f
27040           ;;
27041       esac
27042       #
27043
27044 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
27045
27046       ac_cv_func_send="yes"
27047     fi
27048   else
27049     as_fn_error $? "Unable to link function send" "$LINENO" 5
27050   fi
27051
27052
27053   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
27054 if test "x$ac_cv_header_sys_types_h" = xyes
27055 then :
27056   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27057
27058 fi
27059 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
27060 if test "x$ac_cv_header_sys_socket_h" = xyes
27061 then :
27062   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
27063
27064 fi
27065
27066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
27067 printf %s "checking for MSG_NOSIGNAL... " >&6; }
27068 if test ${ac_cv_msg_nosignal+y}
27069 then :
27070   printf %s "(cached) " >&6
27071 else $as_nop
27072
27073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27074 /* end confdefs.h.  */
27075
27076
27077 #undef inline
27078 #ifdef HAVE_WINDOWS_H
27079 #ifndef WIN32_LEAN_AND_MEAN
27080 #define WIN32_LEAN_AND_MEAN
27081 #endif
27082 #include <windows.h>
27083 #ifdef HAVE_WINSOCK2_H
27084 #include <winsock2.h>
27085 #else
27086 #ifdef HAVE_WINSOCK_H
27087 #include <winsock.h>
27088 #endif
27089 #endif
27090 #else
27091 #ifdef HAVE_SYS_TYPES_H
27092 #include <sys/types.h>
27093 #endif
27094 #ifdef HAVE_SYS_SOCKET_H
27095 #include <sys/socket.h>
27096 #endif
27097 #endif
27098
27099 int
27100 main (void)
27101 {
27102
27103         int flag=MSG_NOSIGNAL;
27104
27105   ;
27106   return 0;
27107 }
27108
27109 _ACEOF
27110 if ac_fn_c_try_compile "$LINENO"
27111 then :
27112
27113       ac_cv_msg_nosignal="yes"
27114
27115 else $as_nop
27116
27117       ac_cv_msg_nosignal="no"
27118
27119 fi
27120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27121
27122 fi
27123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
27124 printf "%s\n" "$ac_cv_msg_nosignal" >&6; }
27125   case "$ac_cv_msg_nosignal" in
27126     yes)
27127
27128 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
27129
27130       ;;
27131   esac
27132
27133
27134
27135 cares_includes_socket="\
27136 /* includes start */
27137 #ifdef HAVE_SYS_TYPES_H
27138 #  include <sys/types.h>
27139 #endif
27140 #ifdef HAVE_SOCKET_H
27141 #  include <socket.h>
27142 #endif
27143 /* includes end */"
27144   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_socket
27145 "
27146 if test "x$ac_cv_header_sys_types_h" = xyes
27147 then :
27148   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27149
27150 fi
27151 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$cares_includes_socket
27152 "
27153 if test "x$ac_cv_header_socket_h" = xyes
27154 then :
27155   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
27156
27157 fi
27158
27159
27160
27161       #
27162   tst_links_closesocket="unknown"
27163   tst_proto_closesocket="unknown"
27164   tst_compi_closesocket="unknown"
27165   tst_allow_closesocket="unknown"
27166   #
27167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
27168 printf %s "checking if closesocket can be linked... " >&6; }
27169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h.  */
27171
27172
27173       $cares_includes_winsock2
27174       $cares_includes_socket
27175
27176 int
27177 main (void)
27178 {
27179
27180       if(0 != closesocket(0))
27181         return 1;
27182
27183   ;
27184   return 0;
27185 }
27186
27187 _ACEOF
27188 if ac_fn_c_try_link "$LINENO"
27189 then :
27190
27191     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27192 printf "%s\n" "yes" >&6; }
27193     tst_links_closesocket="yes"
27194
27195 else $as_nop
27196
27197     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198 printf "%s\n" "no" >&6; }
27199     tst_links_closesocket="no"
27200
27201 fi
27202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27203     conftest$ac_exeext conftest.$ac_ext
27204   #
27205   if test "$tst_links_closesocket" = "yes"; then
27206     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
27207 printf %s "checking if closesocket is prototyped... " >&6; }
27208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209 /* end confdefs.h.  */
27210
27211       $cares_includes_winsock2
27212       $cares_includes_socket
27213
27214 _ACEOF
27215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27216   $EGREP "closesocket" >/dev/null 2>&1
27217 then :
27218
27219       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27220 printf "%s\n" "yes" >&6; }
27221       tst_proto_closesocket="yes"
27222
27223 else $as_nop
27224
27225       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27226 printf "%s\n" "no" >&6; }
27227       tst_proto_closesocket="no"
27228
27229 fi
27230 rm -rf conftest*
27231
27232   fi
27233   #
27234   if test "$tst_proto_closesocket" = "yes"; then
27235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
27236 printf %s "checking if closesocket is compilable... " >&6; }
27237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h.  */
27239
27240
27241         $cares_includes_winsock2
27242         $cares_includes_socket
27243
27244 int
27245 main (void)
27246 {
27247
27248         if(0 != closesocket(0))
27249           return 1;
27250
27251   ;
27252   return 0;
27253 }
27254
27255 _ACEOF
27256 if ac_fn_c_try_compile "$LINENO"
27257 then :
27258
27259       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27260 printf "%s\n" "yes" >&6; }
27261       tst_compi_closesocket="yes"
27262
27263 else $as_nop
27264
27265       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27266 printf "%s\n" "no" >&6; }
27267       tst_compi_closesocket="no"
27268
27269 fi
27270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27271   fi
27272   #
27273   if test "$tst_compi_closesocket" = "yes"; then
27274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
27275 printf %s "checking if closesocket usage allowed... " >&6; }
27276     if test "x$cares_disallow_closesocket" != "xyes"; then
27277       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27278 printf "%s\n" "yes" >&6; }
27279       tst_allow_closesocket="yes"
27280     else
27281       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27282 printf "%s\n" "no" >&6; }
27283       tst_allow_closesocket="no"
27284     fi
27285   fi
27286   #
27287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
27288 printf %s "checking if closesocket might be used... " >&6; }
27289   if test "$tst_links_closesocket" = "yes" &&
27290      test "$tst_proto_closesocket" = "yes" &&
27291      test "$tst_compi_closesocket" = "yes" &&
27292      test "$tst_allow_closesocket" = "yes"; then
27293     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27294 printf "%s\n" "yes" >&6; }
27295
27296 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
27297
27298     ac_cv_func_closesocket="yes"
27299   else
27300     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27301 printf "%s\n" "no" >&6; }
27302     ac_cv_func_closesocket="no"
27303   fi
27304
27305
27306     #
27307   tst_links_closesocket_camel="unknown"
27308   tst_proto_closesocket_camel="unknown"
27309   tst_compi_closesocket_camel="unknown"
27310   tst_allow_closesocket_camel="unknown"
27311   #
27312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
27313 printf %s "checking if CloseSocket can be linked... " >&6; }
27314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27315 /* end confdefs.h.  */
27316
27317
27318       $cares_includes_sys_socket
27319
27320 int
27321 main (void)
27322 {
27323
27324       if(0 != CloseSocket(0))
27325         return 1;
27326
27327   ;
27328   return 0;
27329 }
27330
27331 _ACEOF
27332 if ac_fn_c_try_link "$LINENO"
27333 then :
27334
27335     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27336 printf "%s\n" "yes" >&6; }
27337     tst_links_closesocket_camel="yes"
27338
27339 else $as_nop
27340
27341     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27342 printf "%s\n" "no" >&6; }
27343     tst_links_closesocket_camel="no"
27344
27345 fi
27346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27347     conftest$ac_exeext conftest.$ac_ext
27348   #
27349   if test "$tst_links_closesocket_camel" = "yes"; then
27350     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
27351 printf %s "checking if CloseSocket is prototyped... " >&6; }
27352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27353 /* end confdefs.h.  */
27354
27355       $cares_includes_sys_socket
27356
27357 _ACEOF
27358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27359   $EGREP "CloseSocket" >/dev/null 2>&1
27360 then :
27361
27362       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27363 printf "%s\n" "yes" >&6; }
27364       tst_proto_closesocket_camel="yes"
27365
27366 else $as_nop
27367
27368       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27369 printf "%s\n" "no" >&6; }
27370       tst_proto_closesocket_camel="no"
27371
27372 fi
27373 rm -rf conftest*
27374
27375   fi
27376   #
27377   if test "$tst_proto_closesocket_camel" = "yes"; then
27378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
27379 printf %s "checking if CloseSocket is compilable... " >&6; }
27380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h.  */
27382
27383
27384         $cares_includes_sys_socket
27385
27386 int
27387 main (void)
27388 {
27389
27390         if(0 != CloseSocket(0))
27391           return 1;
27392
27393   ;
27394   return 0;
27395 }
27396
27397 _ACEOF
27398 if ac_fn_c_try_compile "$LINENO"
27399 then :
27400
27401       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27402 printf "%s\n" "yes" >&6; }
27403       tst_compi_closesocket_camel="yes"
27404
27405 else $as_nop
27406
27407       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 printf "%s\n" "no" >&6; }
27409       tst_compi_closesocket_camel="no"
27410
27411 fi
27412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27413   fi
27414   #
27415   if test "$tst_compi_closesocket_camel" = "yes"; then
27416     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
27417 printf %s "checking if CloseSocket usage allowed... " >&6; }
27418     if test "x$cares_disallow_closesocket_camel" != "xyes"; then
27419       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27420 printf "%s\n" "yes" >&6; }
27421       tst_allow_closesocket_camel="yes"
27422     else
27423       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27424 printf "%s\n" "no" >&6; }
27425       tst_allow_closesocket_camel="no"
27426     fi
27427   fi
27428   #
27429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
27430 printf %s "checking if CloseSocket might be used... " >&6; }
27431   if test "$tst_links_closesocket_camel" = "yes" &&
27432      test "$tst_proto_closesocket_camel" = "yes" &&
27433      test "$tst_compi_closesocket_camel" = "yes" &&
27434      test "$tst_allow_closesocket_camel" = "yes"; then
27435     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27436 printf "%s\n" "yes" >&6; }
27437
27438 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
27439
27440     ac_cv_func_closesocket_camel="yes"
27441   else
27442     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27443 printf "%s\n" "no" >&6; }
27444     ac_cv_func_closesocket_camel="no"
27445   fi
27446
27447
27448         #
27449   tst_links_connect="unknown"
27450   tst_proto_connect="unknown"
27451   tst_compi_connect="unknown"
27452   tst_allow_connect="unknown"
27453   #
27454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
27455 printf %s "checking if connect can be linked... " >&6; }
27456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27457 /* end confdefs.h.  */
27458
27459
27460       $cares_includes_winsock2
27461       $cares_includes_sys_socket
27462       $cares_includes_socket
27463
27464 int
27465 main (void)
27466 {
27467
27468       if(0 != connect(0, 0, 0))
27469         return 1;
27470
27471   ;
27472   return 0;
27473 }
27474
27475 _ACEOF
27476 if ac_fn_c_try_link "$LINENO"
27477 then :
27478
27479     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 printf "%s\n" "yes" >&6; }
27481     tst_links_connect="yes"
27482
27483 else $as_nop
27484
27485     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27486 printf "%s\n" "no" >&6; }
27487     tst_links_connect="no"
27488
27489 fi
27490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27491     conftest$ac_exeext conftest.$ac_ext
27492   #
27493   if test "$tst_links_connect" = "yes"; then
27494     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
27495 printf %s "checking if connect is prototyped... " >&6; }
27496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h.  */
27498
27499       $cares_includes_winsock2
27500       $cares_includes_sys_socket
27501       $cares_includes_socket
27502
27503 _ACEOF
27504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27505   $EGREP "connect" >/dev/null 2>&1
27506 then :
27507
27508       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27509 printf "%s\n" "yes" >&6; }
27510       tst_proto_connect="yes"
27511
27512 else $as_nop
27513
27514       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 printf "%s\n" "no" >&6; }
27516       tst_proto_connect="no"
27517
27518 fi
27519 rm -rf conftest*
27520
27521   fi
27522   #
27523   if test "$tst_proto_connect" = "yes"; then
27524     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
27525 printf %s "checking if connect is compilable... " >&6; }
27526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27527 /* end confdefs.h.  */
27528
27529
27530         $cares_includes_winsock2
27531         $cares_includes_sys_socket
27532         $cares_includes_socket
27533
27534 int
27535 main (void)
27536 {
27537
27538         if(0 != connect(0, 0, 0))
27539           return 1;
27540
27541   ;
27542   return 0;
27543 }
27544
27545 _ACEOF
27546 if ac_fn_c_try_compile "$LINENO"
27547 then :
27548
27549       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 printf "%s\n" "yes" >&6; }
27551       tst_compi_connect="yes"
27552
27553 else $as_nop
27554
27555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27556 printf "%s\n" "no" >&6; }
27557       tst_compi_connect="no"
27558
27559 fi
27560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27561   fi
27562   #
27563   if test "$tst_compi_connect" = "yes"; then
27564     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
27565 printf %s "checking if connect usage allowed... " >&6; }
27566     if test "x$cares_disallow_connect" != "xyes"; then
27567       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27568 printf "%s\n" "yes" >&6; }
27569       tst_allow_connect="yes"
27570     else
27571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27572 printf "%s\n" "no" >&6; }
27573       tst_allow_connect="no"
27574     fi
27575   fi
27576   #
27577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
27578 printf %s "checking if connect might be used... " >&6; }
27579   if test "$tst_links_connect" = "yes" &&
27580      test "$tst_proto_connect" = "yes" &&
27581      test "$tst_compi_connect" = "yes" &&
27582      test "$tst_allow_connect" = "yes"; then
27583     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27584 printf "%s\n" "yes" >&6; }
27585
27586 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
27587
27588     ac_cv_func_connect="yes"
27589   else
27590     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27591 printf "%s\n" "no" >&6; }
27592     ac_cv_func_connect="no"
27593   fi
27594
27595
27596 cares_includes_fcntl="\
27597 /* includes start */
27598 #ifdef HAVE_SYS_TYPES_H
27599 #  include <sys/types.h>
27600 #endif
27601 #ifdef HAVE_UNISTD_H
27602 #  include <unistd.h>
27603 #endif
27604 #ifdef HAVE_FCNTL_H
27605 #  include <fcntl.h>
27606 #endif
27607 /* includes end */"
27608   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_fcntl
27609 "
27610 if test "x$ac_cv_header_sys_types_h" = xyes
27611 then :
27612   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27613
27614 fi
27615 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_fcntl
27616 "
27617 if test "x$ac_cv_header_unistd_h" = xyes
27618 then :
27619   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
27620
27621 fi
27622 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$cares_includes_fcntl
27623 "
27624 if test "x$ac_cv_header_fcntl_h" = xyes
27625 then :
27626   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
27627
27628 fi
27629
27630
27631
27632     #
27633   tst_links_fcntl="unknown"
27634   tst_proto_fcntl="unknown"
27635   tst_compi_fcntl="unknown"
27636   tst_allow_fcntl="unknown"
27637   #
27638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
27639 printf %s "checking if fcntl can be linked... " >&6; }
27640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h.  */
27642
27643     /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
27644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27645 #define fcntl innocuous_fcntl
27646
27647 /* System header to define __stub macros and hopefully few prototypes,
27648    which can conflict with char fcntl (); below.  */
27649
27650 #include <limits.h>
27651 #undef fcntl
27652
27653 /* Override any GCC internal prototype to avoid an error.
27654    Use char because int might match the return type of a GCC
27655    builtin and then its argument prototype would still apply.  */
27656 #ifdef __cplusplus
27657 extern "C"
27658 #endif
27659 char fcntl ();
27660 /* The GNU C library defines this for functions which it implements
27661     to always fail with ENOSYS.  Some functions are actually named
27662     something starting with __ and the normal name is an alias.  */
27663 #if defined __stub_fcntl || defined __stub___fcntl
27664 choke me
27665 #endif
27666
27667 int
27668 main (void)
27669 {
27670 return fcntl ();
27671   ;
27672   return 0;
27673 }
27674
27675 _ACEOF
27676 if ac_fn_c_try_link "$LINENO"
27677 then :
27678
27679     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27680 printf "%s\n" "yes" >&6; }
27681     tst_links_fcntl="yes"
27682
27683 else $as_nop
27684
27685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27686 printf "%s\n" "no" >&6; }
27687     tst_links_fcntl="no"
27688
27689 fi
27690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27691     conftest$ac_exeext conftest.$ac_ext
27692   #
27693   if test "$tst_links_fcntl" = "yes"; then
27694     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
27695 printf %s "checking if fcntl is prototyped... " >&6; }
27696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27697 /* end confdefs.h.  */
27698
27699       $cares_includes_fcntl
27700
27701 _ACEOF
27702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27703   $EGREP "fcntl" >/dev/null 2>&1
27704 then :
27705
27706       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27707 printf "%s\n" "yes" >&6; }
27708       tst_proto_fcntl="yes"
27709
27710 else $as_nop
27711
27712       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 printf "%s\n" "no" >&6; }
27714       tst_proto_fcntl="no"
27715
27716 fi
27717 rm -rf conftest*
27718
27719   fi
27720   #
27721   if test "$tst_proto_fcntl" = "yes"; then
27722     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
27723 printf %s "checking if fcntl is compilable... " >&6; }
27724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27725 /* end confdefs.h.  */
27726
27727
27728         $cares_includes_fcntl
27729
27730 int
27731 main (void)
27732 {
27733
27734         if(0 != fcntl(0, 0, 0))
27735           return 1;
27736
27737   ;
27738   return 0;
27739 }
27740
27741 _ACEOF
27742 if ac_fn_c_try_compile "$LINENO"
27743 then :
27744
27745       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27746 printf "%s\n" "yes" >&6; }
27747       tst_compi_fcntl="yes"
27748
27749 else $as_nop
27750
27751       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27752 printf "%s\n" "no" >&6; }
27753       tst_compi_fcntl="no"
27754
27755 fi
27756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27757   fi
27758   #
27759   if test "$tst_compi_fcntl" = "yes"; then
27760     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
27761 printf %s "checking if fcntl usage allowed... " >&6; }
27762     if test "x$cares_disallow_fcntl" != "xyes"; then
27763       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27764 printf "%s\n" "yes" >&6; }
27765       tst_allow_fcntl="yes"
27766     else
27767       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27768 printf "%s\n" "no" >&6; }
27769       tst_allow_fcntl="no"
27770     fi
27771   fi
27772   #
27773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
27774 printf %s "checking if fcntl might be used... " >&6; }
27775   if test "$tst_links_fcntl" = "yes" &&
27776      test "$tst_proto_fcntl" = "yes" &&
27777      test "$tst_compi_fcntl" = "yes" &&
27778      test "$tst_allow_fcntl" = "yes"; then
27779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27780 printf "%s\n" "yes" >&6; }
27781
27782 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
27783
27784     ac_cv_func_fcntl="yes"
27785
27786   #
27787   tst_compi_fcntl_o_nonblock="unknown"
27788   tst_allow_fcntl_o_nonblock="unknown"
27789   #
27790   case $host_os in
27791     sunos4* | aix3* | beos*)
27792             cares_disallow_fcntl_o_nonblock="yes"
27793       ;;
27794   esac
27795   #
27796   if test "$ac_cv_func_fcntl" = "yes"; then
27797     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
27798 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
27799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h.  */
27801
27802
27803         $cares_includes_fcntl
27804
27805 int
27806 main (void)
27807 {
27808
27809         int flags = 0;
27810         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
27811           return 1;
27812
27813   ;
27814   return 0;
27815 }
27816
27817 _ACEOF
27818 if ac_fn_c_try_compile "$LINENO"
27819 then :
27820
27821       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27822 printf "%s\n" "yes" >&6; }
27823       tst_compi_fcntl_o_nonblock="yes"
27824
27825 else $as_nop
27826
27827       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27828 printf "%s\n" "no" >&6; }
27829       tst_compi_fcntl_o_nonblock="no"
27830
27831 fi
27832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27833   fi
27834   #
27835   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
27836     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
27837 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
27838     if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
27839       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27840 printf "%s\n" "yes" >&6; }
27841       tst_allow_fcntl_o_nonblock="yes"
27842     else
27843       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27844 printf "%s\n" "no" >&6; }
27845       tst_allow_fcntl_o_nonblock="no"
27846     fi
27847   fi
27848   #
27849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
27850 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
27851   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
27852      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
27853     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27854 printf "%s\n" "yes" >&6; }
27855
27856 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
27857
27858     ac_cv_func_fcntl_o_nonblock="yes"
27859   else
27860     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27861 printf "%s\n" "no" >&6; }
27862     ac_cv_func_fcntl_o_nonblock="no"
27863   fi
27864
27865   else
27866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27867 printf "%s\n" "no" >&6; }
27868     ac_cv_func_fcntl="no"
27869   fi
27870
27871
27872 cares_includes_netdb="\
27873 /* includes start */
27874 #ifdef HAVE_SYS_TYPES_H
27875 #  include <sys/types.h>
27876 #endif
27877 #ifdef HAVE_NETDB_H
27878 #  include <netdb.h>
27879 #endif
27880 /* includes end */"
27881   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_netdb
27882 "
27883 if test "x$ac_cv_header_sys_types_h" = xyes
27884 then :
27885   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27886
27887 fi
27888 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$cares_includes_netdb
27889 "
27890 if test "x$ac_cv_header_netdb_h" = xyes
27891 then :
27892   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
27893
27894 fi
27895
27896
27897
27898         #
27899   tst_links_freeaddrinfo="unknown"
27900   tst_proto_freeaddrinfo="unknown"
27901   tst_compi_freeaddrinfo="unknown"
27902   tst_allow_freeaddrinfo="unknown"
27903   #
27904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
27905 printf %s "checking if freeaddrinfo can be linked... " >&6; }
27906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h.  */
27908
27909
27910       $cares_includes_ws2tcpip
27911       $cares_includes_sys_socket
27912       $cares_includes_netdb
27913
27914 int
27915 main (void)
27916 {
27917
27918       freeaddrinfo(0);
27919
27920   ;
27921   return 0;
27922 }
27923
27924 _ACEOF
27925 if ac_fn_c_try_link "$LINENO"
27926 then :
27927
27928     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 printf "%s\n" "yes" >&6; }
27930     tst_links_freeaddrinfo="yes"
27931
27932 else $as_nop
27933
27934     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27935 printf "%s\n" "no" >&6; }
27936     tst_links_freeaddrinfo="no"
27937
27938 fi
27939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27940     conftest$ac_exeext conftest.$ac_ext
27941   #
27942   if test "$tst_links_freeaddrinfo" = "yes"; then
27943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
27944 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
27945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27946 /* end confdefs.h.  */
27947
27948       $cares_includes_ws2tcpip
27949       $cares_includes_sys_socket
27950       $cares_includes_netdb
27951
27952 _ACEOF
27953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27954   $EGREP "freeaddrinfo" >/dev/null 2>&1
27955 then :
27956
27957       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27958 printf "%s\n" "yes" >&6; }
27959       tst_proto_freeaddrinfo="yes"
27960
27961 else $as_nop
27962
27963       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27964 printf "%s\n" "no" >&6; }
27965       tst_proto_freeaddrinfo="no"
27966
27967 fi
27968 rm -rf conftest*
27969
27970   fi
27971   #
27972   if test "$tst_proto_freeaddrinfo" = "yes"; then
27973     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
27974 printf %s "checking if freeaddrinfo is compilable... " >&6; }
27975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27976 /* end confdefs.h.  */
27977
27978
27979         $cares_includes_ws2tcpip
27980         $cares_includes_sys_socket
27981         $cares_includes_netdb
27982
27983 int
27984 main (void)
27985 {
27986
27987         freeaddrinfo(0);
27988
27989   ;
27990   return 0;
27991 }
27992
27993 _ACEOF
27994 if ac_fn_c_try_compile "$LINENO"
27995 then :
27996
27997       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27998 printf "%s\n" "yes" >&6; }
27999       tst_compi_freeaddrinfo="yes"
28000
28001 else $as_nop
28002
28003       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28004 printf "%s\n" "no" >&6; }
28005       tst_compi_freeaddrinfo="no"
28006
28007 fi
28008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28009   fi
28010   #
28011   if test "$tst_compi_freeaddrinfo" = "yes"; then
28012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
28013 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
28014     if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
28015       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 printf "%s\n" "yes" >&6; }
28017       tst_allow_freeaddrinfo="yes"
28018     else
28019       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28020 printf "%s\n" "no" >&6; }
28021       tst_allow_freeaddrinfo="no"
28022     fi
28023   fi
28024   #
28025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
28026 printf %s "checking if freeaddrinfo might be used... " >&6; }
28027   if test "$tst_links_freeaddrinfo" = "yes" &&
28028      test "$tst_proto_freeaddrinfo" = "yes" &&
28029      test "$tst_compi_freeaddrinfo" = "yes" &&
28030      test "$tst_allow_freeaddrinfo" = "yes"; then
28031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28032 printf "%s\n" "yes" >&6; }
28033
28034 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
28035
28036     ac_cv_func_freeaddrinfo="yes"
28037   else
28038     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039 printf "%s\n" "no" >&6; }
28040     ac_cv_func_freeaddrinfo="no"
28041   fi
28042
28043
28044 cares_includes_stdlib="\
28045 /* includes start */
28046 #ifdef HAVE_SYS_TYPES_H
28047 #  include <sys/types.h>
28048 #endif
28049 #ifdef HAVE_STDLIB_H
28050 #  include <stdlib.h>
28051 #endif
28052 /* includes end */"
28053   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stdlib
28054 "
28055 if test "x$ac_cv_header_sys_types_h" = xyes
28056 then :
28057   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28058
28059 fi
28060 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$cares_includes_stdlib
28061 "
28062 if test "x$ac_cv_header_stdlib_h" = xyes
28063 then :
28064   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
28065
28066 fi
28067
28068
28069
28070 cares_includes_string="\
28071 /* includes start */
28072 #ifdef HAVE_SYS_TYPES_H
28073 #  include <sys/types.h>
28074 #endif
28075 #ifdef HAVE_STRING_H
28076 #  include <string.h>
28077 #endif
28078 #ifdef HAVE_STRINGS_H
28079 #  include <strings.h>
28080 #endif
28081 /* includes end */"
28082   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_string
28083 "
28084 if test "x$ac_cv_header_sys_types_h" = xyes
28085 then :
28086   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28087
28088 fi
28089 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$cares_includes_string
28090 "
28091 if test "x$ac_cv_header_string_h" = xyes
28092 then :
28093   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
28094
28095 fi
28096 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$cares_includes_string
28097 "
28098 if test "x$ac_cv_header_strings_h" = xyes
28099 then :
28100   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
28101
28102 fi
28103
28104
28105
28106               #
28107   tst_links_getaddrinfo="unknown"
28108   tst_proto_getaddrinfo="unknown"
28109   tst_compi_getaddrinfo="unknown"
28110   tst_works_getaddrinfo="unknown"
28111   tst_allow_getaddrinfo="unknown"
28112   tst_tsafe_getaddrinfo="unknown"
28113   #
28114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
28115 printf %s "checking if getaddrinfo can be linked... " >&6; }
28116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28117 /* end confdefs.h.  */
28118
28119
28120       $cares_includes_ws2tcpip
28121       $cares_includes_sys_socket
28122       $cares_includes_netdb
28123
28124 int
28125 main (void)
28126 {
28127
28128       if(0 != getaddrinfo(0, 0, 0, 0))
28129         return 1;
28130
28131   ;
28132   return 0;
28133 }
28134
28135 _ACEOF
28136 if ac_fn_c_try_link "$LINENO"
28137 then :
28138
28139     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28140 printf "%s\n" "yes" >&6; }
28141     tst_links_getaddrinfo="yes"
28142
28143 else $as_nop
28144
28145     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28146 printf "%s\n" "no" >&6; }
28147     tst_links_getaddrinfo="no"
28148
28149 fi
28150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28151     conftest$ac_exeext conftest.$ac_ext
28152   #
28153   if test "$tst_links_getaddrinfo" = "yes"; then
28154     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
28155 printf %s "checking if getaddrinfo is prototyped... " >&6; }
28156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28157 /* end confdefs.h.  */
28158
28159       $cares_includes_ws2tcpip
28160       $cares_includes_sys_socket
28161       $cares_includes_netdb
28162
28163 _ACEOF
28164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28165   $EGREP "getaddrinfo" >/dev/null 2>&1
28166 then :
28167
28168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28169 printf "%s\n" "yes" >&6; }
28170       tst_proto_getaddrinfo="yes"
28171
28172 else $as_nop
28173
28174       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28175 printf "%s\n" "no" >&6; }
28176       tst_proto_getaddrinfo="no"
28177
28178 fi
28179 rm -rf conftest*
28180
28181   fi
28182   #
28183   if test "$tst_proto_getaddrinfo" = "yes"; then
28184     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
28185 printf %s "checking if getaddrinfo is compilable... " >&6; }
28186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187 /* end confdefs.h.  */
28188
28189
28190         $cares_includes_ws2tcpip
28191         $cares_includes_sys_socket
28192         $cares_includes_netdb
28193
28194 int
28195 main (void)
28196 {
28197
28198         if(0 != getaddrinfo(0, 0, 0, 0))
28199           return 1;
28200
28201   ;
28202   return 0;
28203 }
28204
28205 _ACEOF
28206 if ac_fn_c_try_compile "$LINENO"
28207 then :
28208
28209       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 printf "%s\n" "yes" >&6; }
28211       tst_compi_getaddrinfo="yes"
28212
28213 else $as_nop
28214
28215       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28216 printf "%s\n" "no" >&6; }
28217       tst_compi_getaddrinfo="no"
28218
28219 fi
28220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28221   fi
28222   #
28223     if test "x$cross_compiling" != "xyes" &&
28224     test "$tst_compi_getaddrinfo" = "yes"; then
28225     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
28226 printf %s "checking if getaddrinfo seems to work... " >&6; }
28227     if test "$cross_compiling" = yes
28228 then :
28229   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28231 as_fn_error $? "cannot run test program while cross compiling
28232 See \`config.log' for more details" "$LINENO" 5; }
28233 else $as_nop
28234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h.  */
28236
28237
28238         $cares_includes_ws2tcpip
28239         $cares_includes_stdlib
28240         $cares_includes_string
28241         $cares_includes_sys_socket
28242         $cares_includes_netdb
28243
28244 int
28245 main (void)
28246 {
28247
28248         struct addrinfo hints;
28249         struct addrinfo *ai = 0;
28250         int error;
28251
28252         memset(&hints, 0, sizeof(hints));
28253         hints.ai_flags = AI_NUMERICHOST;
28254         hints.ai_family = AF_UNSPEC;
28255         hints.ai_socktype = SOCK_STREAM;
28256         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
28257         if(error || !ai)
28258           exit(1); /* fail */
28259         else
28260           exit(0);
28261
28262   ;
28263   return 0;
28264 }
28265
28266 _ACEOF
28267 if ac_fn_c_try_run "$LINENO"
28268 then :
28269
28270       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28271 printf "%s\n" "yes" >&6; }
28272       tst_works_getaddrinfo="yes"
28273
28274 else $as_nop
28275
28276       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28277 printf "%s\n" "no" >&6; }
28278       tst_works_getaddrinfo="no"
28279
28280 fi
28281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28282   conftest.$ac_objext conftest.beam conftest.$ac_ext
28283 fi
28284
28285   fi
28286   #
28287   if test "$tst_compi_getaddrinfo" = "yes" &&
28288     test "$tst_works_getaddrinfo" != "no"; then
28289     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
28290 printf %s "checking if getaddrinfo usage allowed... " >&6; }
28291     if test "x$cares_disallow_getaddrinfo" != "xyes"; then
28292       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28293 printf "%s\n" "yes" >&6; }
28294       tst_allow_getaddrinfo="yes"
28295     else
28296       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28297 printf "%s\n" "no" >&6; }
28298       tst_allow_getaddrinfo="no"
28299     fi
28300   fi
28301   #
28302   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
28303 printf %s "checking if getaddrinfo might be used... " >&6; }
28304   if test "$tst_links_getaddrinfo" = "yes" &&
28305      test "$tst_proto_getaddrinfo" = "yes" &&
28306      test "$tst_compi_getaddrinfo" = "yes" &&
28307      test "$tst_allow_getaddrinfo" = "yes" &&
28308      test "$tst_works_getaddrinfo" != "no"; then
28309     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28310 printf "%s\n" "yes" >&6; }
28311
28312 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
28313
28314     ac_cv_func_getaddrinfo="yes"
28315   else
28316     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28317 printf "%s\n" "no" >&6; }
28318     ac_cv_func_getaddrinfo="no"
28319     ac_cv_func_getaddrinfo_threadsafe="no"
28320   fi
28321   #
28322   if test "$ac_cv_func_getaddrinfo" = "yes"; then
28323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
28324 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
28325     case $host_os in
28326       aix[1234].* | aix5.[01].*)
28327                 tst_tsafe_getaddrinfo="no"
28328         ;;
28329       aix*)
28330                 tst_tsafe_getaddrinfo="yes"
28331         ;;
28332       darwin[12345].*)
28333                 tst_tsafe_getaddrinfo="no"
28334         ;;
28335       darwin*)
28336                 tst_tsafe_getaddrinfo="yes"
28337         ;;
28338       freebsd[1234].* | freebsd5.[1234]*)
28339                 tst_tsafe_getaddrinfo="no"
28340         ;;
28341       freebsd*)
28342                 tst_tsafe_getaddrinfo="yes"
28343         ;;
28344       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
28345                 tst_tsafe_getaddrinfo="no"
28346         ;;
28347       hpux*)
28348                 tst_tsafe_getaddrinfo="yes"
28349         ;;
28350       netbsd[123].*)
28351                 tst_tsafe_getaddrinfo="no"
28352         ;;
28353       netbsd*)
28354                 tst_tsafe_getaddrinfo="yes"
28355         ;;
28356       *bsd*)
28357                 tst_tsafe_getaddrinfo="no"
28358         ;;
28359       solaris2*)
28360                 tst_tsafe_getaddrinfo="yes"
28361         ;;
28362     esac
28363     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
28364        test "$ac_cv_native_windows" = "yes"; then
28365       tst_tsafe_getaddrinfo="yes"
28366     fi
28367     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
28368
28369
28370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371 /* end confdefs.h.  */
28372
28373
28374         $cares_includes_sys_socket
28375         $cares_includes_netdb
28376
28377 int main (void)
28378 {
28379 #ifdef h_errno
28380   return 0;
28381 #else
28382   force compilation error
28383 #endif
28384 }
28385
28386
28387 _ACEOF
28388 if ac_fn_c_try_compile "$LINENO"
28389 then :
28390
28391     tst_symbol_defined="yes"
28392
28393 else $as_nop
28394
28395     tst_symbol_defined="no"
28396
28397 fi
28398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28399   if test "$tst_symbol_defined" = "yes"; then
28400     curl_cv_have_def_h_errno=yes
28401
28402   else
28403     curl_cv_have_def_h_errno=no
28404
28405   fi
28406
28407       if test "$curl_cv_have_def_h_errno" = "yes"; then
28408         tst_h_errno_macro="yes"
28409       else
28410         tst_h_errno_macro="no"
28411       fi
28412       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28413 /* end confdefs.h.  */
28414
28415
28416           $cares_includes_sys_socket
28417           $cares_includes_netdb
28418
28419 int
28420 main (void)
28421 {
28422
28423           h_errno = 2;
28424           if(0 != h_errno)
28425             return 1;
28426
28427   ;
28428   return 0;
28429 }
28430
28431 _ACEOF
28432 if ac_fn_c_try_compile "$LINENO"
28433 then :
28434
28435         tst_h_errno_modifiable_lvalue="yes"
28436
28437 else $as_nop
28438
28439         tst_h_errno_modifiable_lvalue="no"
28440
28441 fi
28442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28443       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h.  */
28445
28446
28447
28448 int
28449 main (void)
28450 {
28451
28452 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
28453           return 0;
28454 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
28455           return 0;
28456 #else
28457           force compilation error
28458 #endif
28459
28460   ;
28461   return 0;
28462 }
28463
28464 _ACEOF
28465 if ac_fn_c_try_compile "$LINENO"
28466 then :
28467
28468         tst_h_errno_sbs_issue_7="yes"
28469
28470 else $as_nop
28471
28472         tst_h_errno_sbs_issue_7="no"
28473
28474 fi
28475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28476       if test "$tst_h_errno_macro" = "no" &&
28477          test "$tst_h_errno_modifiable_lvalue" = "no" &&
28478          test "$tst_h_errno_sbs_issue_7" = "no"; then
28479         tst_tsafe_getaddrinfo="no"
28480       else
28481         tst_tsafe_getaddrinfo="yes"
28482       fi
28483     fi
28484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
28485 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
28486     if test "$tst_tsafe_getaddrinfo" = "yes"; then
28487
28488 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
28489
28490       ac_cv_func_getaddrinfo_threadsafe="yes"
28491     else
28492       ac_cv_func_getaddrinfo_threadsafe="no"
28493     fi
28494   fi
28495
28496
28497     #
28498   tst_links_getenv="unknown"
28499   tst_proto_getenv="unknown"
28500   tst_compi_getenv="unknown"
28501   tst_allow_getenv="unknown"
28502   #
28503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
28504 printf %s "checking if getenv can be linked... " >&6; }
28505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506 /* end confdefs.h.  */
28507
28508     /* Define getenv to an innocuous variant, in case <limits.h> declares getenv.
28509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28510 #define getenv innocuous_getenv
28511
28512 /* System header to define __stub macros and hopefully few prototypes,
28513    which can conflict with char getenv (); below.  */
28514
28515 #include <limits.h>
28516 #undef getenv
28517
28518 /* Override any GCC internal prototype to avoid an error.
28519    Use char because int might match the return type of a GCC
28520    builtin and then its argument prototype would still apply.  */
28521 #ifdef __cplusplus
28522 extern "C"
28523 #endif
28524 char getenv ();
28525 /* The GNU C library defines this for functions which it implements
28526     to always fail with ENOSYS.  Some functions are actually named
28527     something starting with __ and the normal name is an alias.  */
28528 #if defined __stub_getenv || defined __stub___getenv
28529 choke me
28530 #endif
28531
28532 int
28533 main (void)
28534 {
28535 return getenv ();
28536   ;
28537   return 0;
28538 }
28539
28540 _ACEOF
28541 if ac_fn_c_try_link "$LINENO"
28542 then :
28543
28544     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28545 printf "%s\n" "yes" >&6; }
28546     tst_links_getenv="yes"
28547
28548 else $as_nop
28549
28550     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28551 printf "%s\n" "no" >&6; }
28552     tst_links_getenv="no"
28553
28554 fi
28555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28556     conftest$ac_exeext conftest.$ac_ext
28557   #
28558   if test "$tst_links_getenv" = "yes"; then
28559     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
28560 printf %s "checking if getenv is prototyped... " >&6; }
28561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562 /* end confdefs.h.  */
28563
28564       $cares_includes_stdlib
28565
28566 _ACEOF
28567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28568   $EGREP "getenv" >/dev/null 2>&1
28569 then :
28570
28571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28572 printf "%s\n" "yes" >&6; }
28573       tst_proto_getenv="yes"
28574
28575 else $as_nop
28576
28577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 printf "%s\n" "no" >&6; }
28579       tst_proto_getenv="no"
28580
28581 fi
28582 rm -rf conftest*
28583
28584   fi
28585   #
28586   if test "$tst_proto_getenv" = "yes"; then
28587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
28588 printf %s "checking if getenv is compilable... " >&6; }
28589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28590 /* end confdefs.h.  */
28591
28592
28593         $cares_includes_stdlib
28594
28595 int
28596 main (void)
28597 {
28598
28599         if(0 != getenv(0))
28600           return 1;
28601
28602   ;
28603   return 0;
28604 }
28605
28606 _ACEOF
28607 if ac_fn_c_try_compile "$LINENO"
28608 then :
28609
28610       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28611 printf "%s\n" "yes" >&6; }
28612       tst_compi_getenv="yes"
28613
28614 else $as_nop
28615
28616       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 printf "%s\n" "no" >&6; }
28618       tst_compi_getenv="no"
28619
28620 fi
28621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28622   fi
28623   #
28624   if test "$tst_compi_getenv" = "yes"; then
28625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
28626 printf %s "checking if getenv usage allowed... " >&6; }
28627     if test "x$cares_disallow_getenv" != "xyes"; then
28628       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28629 printf "%s\n" "yes" >&6; }
28630       tst_allow_getenv="yes"
28631     else
28632       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28633 printf "%s\n" "no" >&6; }
28634       tst_allow_getenv="no"
28635     fi
28636   fi
28637   #
28638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
28639 printf %s "checking if getenv might be used... " >&6; }
28640   if test "$tst_links_getenv" = "yes" &&
28641      test "$tst_proto_getenv" = "yes" &&
28642      test "$tst_compi_getenv" = "yes" &&
28643      test "$tst_allow_getenv" = "yes"; then
28644     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28645 printf "%s\n" "yes" >&6; }
28646
28647 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
28648
28649     ac_cv_func_getenv="yes"
28650   else
28651     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28652 printf "%s\n" "no" >&6; }
28653     ac_cv_func_getenv="no"
28654   fi
28655
28656
28657       #
28658   tst_links_gethostbyaddr="unknown"
28659   tst_proto_gethostbyaddr="unknown"
28660   tst_compi_gethostbyaddr="unknown"
28661   tst_allow_gethostbyaddr="unknown"
28662   #
28663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
28664 printf %s "checking if gethostbyaddr can be linked... " >&6; }
28665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28666 /* end confdefs.h.  */
28667
28668
28669       $cares_includes_winsock2
28670       $cares_includes_netdb
28671
28672 int
28673 main (void)
28674 {
28675
28676       if(0 != gethostbyaddr(0, 0, 0))
28677         return 1;
28678
28679   ;
28680   return 0;
28681 }
28682
28683 _ACEOF
28684 if ac_fn_c_try_link "$LINENO"
28685 then :
28686
28687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28688 printf "%s\n" "yes" >&6; }
28689     tst_links_gethostbyaddr="yes"
28690
28691 else $as_nop
28692
28693     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 printf "%s\n" "no" >&6; }
28695     tst_links_gethostbyaddr="no"
28696
28697 fi
28698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28699     conftest$ac_exeext conftest.$ac_ext
28700   #
28701   if test "$tst_links_gethostbyaddr" = "yes"; then
28702     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
28703 printf %s "checking if gethostbyaddr is prototyped... " >&6; }
28704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h.  */
28706
28707       $cares_includes_winsock2
28708       $cares_includes_netdb
28709
28710 _ACEOF
28711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28712   $EGREP "gethostbyaddr" >/dev/null 2>&1
28713 then :
28714
28715       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28716 printf "%s\n" "yes" >&6; }
28717       tst_proto_gethostbyaddr="yes"
28718
28719 else $as_nop
28720
28721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28722 printf "%s\n" "no" >&6; }
28723       tst_proto_gethostbyaddr="no"
28724
28725 fi
28726 rm -rf conftest*
28727
28728   fi
28729   #
28730   if test "$tst_proto_gethostbyaddr" = "yes"; then
28731     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
28732 printf %s "checking if gethostbyaddr is compilable... " >&6; }
28733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h.  */
28735
28736
28737         $cares_includes_winsock2
28738         $cares_includes_netdb
28739
28740 int
28741 main (void)
28742 {
28743
28744         if(0 != gethostbyaddr(0, 0, 0))
28745           return 1;
28746
28747   ;
28748   return 0;
28749 }
28750
28751 _ACEOF
28752 if ac_fn_c_try_compile "$LINENO"
28753 then :
28754
28755       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28756 printf "%s\n" "yes" >&6; }
28757       tst_compi_gethostbyaddr="yes"
28758
28759 else $as_nop
28760
28761       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 printf "%s\n" "no" >&6; }
28763       tst_compi_gethostbyaddr="no"
28764
28765 fi
28766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28767   fi
28768   #
28769   if test "$tst_compi_gethostbyaddr" = "yes"; then
28770     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
28771 printf %s "checking if gethostbyaddr usage allowed... " >&6; }
28772     if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
28773       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28774 printf "%s\n" "yes" >&6; }
28775       tst_allow_gethostbyaddr="yes"
28776     else
28777       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28778 printf "%s\n" "no" >&6; }
28779       tst_allow_gethostbyaddr="no"
28780     fi
28781   fi
28782   #
28783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
28784 printf %s "checking if gethostbyaddr might be used... " >&6; }
28785   if test "$tst_links_gethostbyaddr" = "yes" &&
28786      test "$tst_proto_gethostbyaddr" = "yes" &&
28787      test "$tst_compi_gethostbyaddr" = "yes" &&
28788      test "$tst_allow_gethostbyaddr" = "yes"; then
28789     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28790 printf "%s\n" "yes" >&6; }
28791
28792 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
28793
28794     ac_cv_func_gethostbyaddr="yes"
28795   else
28796     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28797 printf "%s\n" "no" >&6; }
28798     ac_cv_func_gethostbyaddr="no"
28799   fi
28800
28801
28802       #
28803   tst_links_gethostbyname="unknown"
28804   tst_proto_gethostbyname="unknown"
28805   tst_compi_gethostbyname="unknown"
28806   tst_allow_gethostbyname="unknown"
28807   #
28808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
28809 printf %s "checking if gethostbyname can be linked... " >&6; }
28810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28811 /* end confdefs.h.  */
28812
28813
28814       $cares_includes_winsock2
28815       $cares_includes_netdb
28816
28817 int
28818 main (void)
28819 {
28820
28821       if(0 != gethostbyname(0))
28822         return 1;
28823
28824   ;
28825   return 0;
28826 }
28827
28828 _ACEOF
28829 if ac_fn_c_try_link "$LINENO"
28830 then :
28831
28832     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28833 printf "%s\n" "yes" >&6; }
28834     tst_links_gethostbyname="yes"
28835
28836 else $as_nop
28837
28838     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28839 printf "%s\n" "no" >&6; }
28840     tst_links_gethostbyname="no"
28841
28842 fi
28843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28844     conftest$ac_exeext conftest.$ac_ext
28845   #
28846   if test "$tst_links_gethostbyname" = "yes"; then
28847     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
28848 printf %s "checking if gethostbyname is prototyped... " >&6; }
28849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28850 /* end confdefs.h.  */
28851
28852       $cares_includes_winsock2
28853       $cares_includes_netdb
28854
28855 _ACEOF
28856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28857   $EGREP "gethostbyname" >/dev/null 2>&1
28858 then :
28859
28860       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861 printf "%s\n" "yes" >&6; }
28862       tst_proto_gethostbyname="yes"
28863
28864 else $as_nop
28865
28866       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28867 printf "%s\n" "no" >&6; }
28868       tst_proto_gethostbyname="no"
28869
28870 fi
28871 rm -rf conftest*
28872
28873   fi
28874   #
28875   if test "$tst_proto_gethostbyname" = "yes"; then
28876     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
28877 printf %s "checking if gethostbyname is compilable... " >&6; }
28878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28879 /* end confdefs.h.  */
28880
28881
28882         $cares_includes_winsock2
28883         $cares_includes_netdb
28884
28885 int
28886 main (void)
28887 {
28888
28889         if(0 != gethostbyname(0))
28890           return 1;
28891
28892   ;
28893   return 0;
28894 }
28895
28896 _ACEOF
28897 if ac_fn_c_try_compile "$LINENO"
28898 then :
28899
28900       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28901 printf "%s\n" "yes" >&6; }
28902       tst_compi_gethostbyname="yes"
28903
28904 else $as_nop
28905
28906       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28907 printf "%s\n" "no" >&6; }
28908       tst_compi_gethostbyname="no"
28909
28910 fi
28911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28912   fi
28913   #
28914   if test "$tst_compi_gethostbyname" = "yes"; then
28915     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
28916 printf %s "checking if gethostbyname usage allowed... " >&6; }
28917     if test "x$cares_disallow_gethostbyname" != "xyes"; then
28918       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28919 printf "%s\n" "yes" >&6; }
28920       tst_allow_gethostbyname="yes"
28921     else
28922       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28923 printf "%s\n" "no" >&6; }
28924       tst_allow_gethostbyname="no"
28925     fi
28926   fi
28927   #
28928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
28929 printf %s "checking if gethostbyname might be used... " >&6; }
28930   if test "$tst_links_gethostbyname" = "yes" &&
28931      test "$tst_proto_gethostbyname" = "yes" &&
28932      test "$tst_compi_gethostbyname" = "yes" &&
28933      test "$tst_allow_gethostbyname" = "yes"; then
28934     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28935 printf "%s\n" "yes" >&6; }
28936
28937 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
28938
28939     ac_cv_func_gethostbyname="yes"
28940   else
28941     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 printf "%s\n" "no" >&6; }
28943     ac_cv_func_gethostbyname="no"
28944   fi
28945
28946
28947 cares_includes_unistd="\
28948 /* includes start */
28949 #ifdef HAVE_SYS_TYPES_H
28950 #  include <sys/types.h>
28951 #endif
28952 #ifdef HAVE_UNISTD_H
28953 #  include <unistd.h>
28954 #endif
28955 /* includes end */"
28956   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_unistd
28957 "
28958 if test "x$ac_cv_header_sys_types_h" = xyes
28959 then :
28960   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28961
28962 fi
28963 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_unistd
28964 "
28965 if test "x$ac_cv_header_unistd_h" = xyes
28966 then :
28967   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
28968
28969 fi
28970
28971
28972
28973         #
28974   tst_links_gethostname="unknown"
28975   tst_proto_gethostname="unknown"
28976   tst_compi_gethostname="unknown"
28977   tst_allow_gethostname="unknown"
28978   #
28979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
28980 printf %s "checking if gethostname can be linked... " >&6; }
28981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28982 /* end confdefs.h.  */
28983
28984
28985       $cares_includes_winsock2
28986       $cares_includes_unistd
28987
28988 int
28989 main (void)
28990 {
28991
28992       if(0 != gethostname(0, 0))
28993         return 1;
28994
28995   ;
28996   return 0;
28997 }
28998
28999 _ACEOF
29000 if ac_fn_c_try_link "$LINENO"
29001 then :
29002
29003     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29004 printf "%s\n" "yes" >&6; }
29005     tst_links_gethostname="yes"
29006
29007 else $as_nop
29008
29009     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 printf "%s\n" "no" >&6; }
29011     tst_links_gethostname="no"
29012
29013 fi
29014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29015     conftest$ac_exeext conftest.$ac_ext
29016   #
29017   if test "$tst_links_gethostname" = "yes"; then
29018     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
29019 printf %s "checking if gethostname is prototyped... " >&6; }
29020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29021 /* end confdefs.h.  */
29022
29023       $cares_includes_winsock2
29024       $cares_includes_unistd
29025
29026 _ACEOF
29027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29028   $EGREP "gethostname" >/dev/null 2>&1
29029 then :
29030
29031       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29032 printf "%s\n" "yes" >&6; }
29033       tst_proto_gethostname="yes"
29034
29035 else $as_nop
29036
29037       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29038 printf "%s\n" "no" >&6; }
29039       tst_proto_gethostname="no"
29040
29041 fi
29042 rm -rf conftest*
29043
29044   fi
29045   #
29046   if test "$tst_proto_gethostname" = "yes"; then
29047     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
29048 printf %s "checking if gethostname is compilable... " >&6; }
29049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h.  */
29051
29052
29053         $cares_includes_winsock2
29054         $cares_includes_unistd
29055
29056 int
29057 main (void)
29058 {
29059
29060         if(0 != gethostname(0, 0))
29061           return 1;
29062
29063   ;
29064   return 0;
29065 }
29066
29067 _ACEOF
29068 if ac_fn_c_try_compile "$LINENO"
29069 then :
29070
29071       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29072 printf "%s\n" "yes" >&6; }
29073       tst_compi_gethostname="yes"
29074
29075 else $as_nop
29076
29077       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078 printf "%s\n" "no" >&6; }
29079       tst_compi_gethostname="no"
29080
29081 fi
29082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29083   fi
29084   #
29085   if test "$tst_compi_gethostname" = "yes"; then
29086     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
29087 printf %s "checking for gethostname arg 2 data type... " >&6; }
29088     tst_gethostname_type_arg2="unknown"
29089     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
29090       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
29091         if test "$tst_gethostname_type_arg2" = "unknown"; then
29092           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h.  */
29094
29095
29096               $cares_includes_winsock2
29097               $cares_includes_unistd
29098               $cares_preprocess_callconv
29099               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
29100
29101 int
29102 main (void)
29103 {
29104
29105               if(0 != gethostname(0, 0))
29106                 return 1;
29107
29108   ;
29109   return 0;
29110 }
29111
29112 _ACEOF
29113 if ac_fn_c_try_compile "$LINENO"
29114 then :
29115
29116             tst_gethostname_type_arg2="$tst_arg2"
29117
29118 fi
29119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29120         fi
29121       done
29122     done
29123     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
29124 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
29125     if test "$tst_gethostname_type_arg2" != "unknown"; then
29126
29127 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
29128
29129     fi
29130   fi
29131   #
29132   if test "$tst_compi_gethostname" = "yes"; then
29133     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
29134 printf %s "checking if gethostname usage allowed... " >&6; }
29135     if test "x$cares_disallow_gethostname" != "xyes"; then
29136       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29137 printf "%s\n" "yes" >&6; }
29138       tst_allow_gethostname="yes"
29139     else
29140       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29141 printf "%s\n" "no" >&6; }
29142       tst_allow_gethostname="no"
29143     fi
29144   fi
29145   #
29146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
29147 printf %s "checking if gethostname might be used... " >&6; }
29148   if test "$tst_links_gethostname" = "yes" &&
29149      test "$tst_proto_gethostname" = "yes" &&
29150      test "$tst_compi_gethostname" = "yes" &&
29151      test "$tst_allow_gethostname" = "yes"; then
29152     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153 printf "%s\n" "yes" >&6; }
29154
29155 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
29156
29157     ac_cv_func_gethostname="yes"
29158   else
29159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29160 printf "%s\n" "no" >&6; }
29161     ac_cv_func_gethostname="no"
29162   fi
29163
29164
29165     #
29166   tst_links_getservbyport_r="unknown"
29167   tst_proto_getservbyport_r="unknown"
29168   tst_compi_getservbyport_r="unknown"
29169   tst_allow_getservbyport_r="unknown"
29170   tst_nargs_getservbyport_r="unknown"
29171   #
29172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
29173 printf %s "checking if getservbyport_r can be linked... " >&6; }
29174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29175 /* end confdefs.h.  */
29176
29177     /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
29178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29179 #define getservbyport_r innocuous_getservbyport_r
29180
29181 /* System header to define __stub macros and hopefully few prototypes,
29182    which can conflict with char getservbyport_r (); below.  */
29183
29184 #include <limits.h>
29185 #undef getservbyport_r
29186
29187 /* Override any GCC internal prototype to avoid an error.
29188    Use char because int might match the return type of a GCC
29189    builtin and then its argument prototype would still apply.  */
29190 #ifdef __cplusplus
29191 extern "C"
29192 #endif
29193 char getservbyport_r ();
29194 /* The GNU C library defines this for functions which it implements
29195     to always fail with ENOSYS.  Some functions are actually named
29196     something starting with __ and the normal name is an alias.  */
29197 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
29198 choke me
29199 #endif
29200
29201 int
29202 main (void)
29203 {
29204 return getservbyport_r ();
29205   ;
29206   return 0;
29207 }
29208
29209 _ACEOF
29210 if ac_fn_c_try_link "$LINENO"
29211 then :
29212
29213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29214 printf "%s\n" "yes" >&6; }
29215     tst_links_getservbyport_r="yes"
29216
29217 else $as_nop
29218
29219     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220 printf "%s\n" "no" >&6; }
29221     tst_links_getservbyport_r="no"
29222
29223 fi
29224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29225     conftest$ac_exeext conftest.$ac_ext
29226   #
29227   if test "$tst_links_getservbyport_r" = "yes"; then
29228     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
29229 printf %s "checking if getservbyport_r is prototyped... " >&6; }
29230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29231 /* end confdefs.h.  */
29232
29233       $cares_includes_netdb
29234
29235 _ACEOF
29236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29237   $EGREP "getservbyport_r" >/dev/null 2>&1
29238 then :
29239
29240       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29241 printf "%s\n" "yes" >&6; }
29242       tst_proto_getservbyport_r="yes"
29243
29244 else $as_nop
29245
29246       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29247 printf "%s\n" "no" >&6; }
29248       tst_proto_getservbyport_r="no"
29249
29250 fi
29251 rm -rf conftest*
29252
29253   fi
29254   #
29255   if test "$tst_proto_getservbyport_r" = "yes"; then
29256     if test "$tst_nargs_getservbyport_r" = "unknown"; then
29257       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
29258 printf %s "checking if getservbyport_r takes 4 args.... " >&6; }
29259       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29260 /* end confdefs.h.  */
29261
29262
29263           $cares_includes_netdb
29264
29265 int
29266 main (void)
29267 {
29268
29269           if(0 != getservbyport_r(0, 0, 0, 0))
29270             return 1;
29271
29272   ;
29273   return 0;
29274 }
29275
29276 _ACEOF
29277 if ac_fn_c_try_compile "$LINENO"
29278 then :
29279
29280         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 printf "%s\n" "yes" >&6; }
29282         tst_compi_getservbyport_r="yes"
29283         tst_nargs_getservbyport_r="4"
29284
29285 else $as_nop
29286
29287         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29288 printf "%s\n" "no" >&6; }
29289         tst_compi_getservbyport_r="no"
29290
29291 fi
29292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29293     fi
29294     if test "$tst_nargs_getservbyport_r" = "unknown"; then
29295       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
29296 printf %s "checking if getservbyport_r takes 5 args.... " >&6; }
29297       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29298 /* end confdefs.h.  */
29299
29300
29301           $cares_includes_netdb
29302
29303 int
29304 main (void)
29305 {
29306
29307           if(0 != getservbyport_r(0, 0, 0, 0, 0))
29308             return 1;
29309
29310   ;
29311   return 0;
29312 }
29313
29314 _ACEOF
29315 if ac_fn_c_try_compile "$LINENO"
29316 then :
29317
29318         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29319 printf "%s\n" "yes" >&6; }
29320         tst_compi_getservbyport_r="yes"
29321         tst_nargs_getservbyport_r="5"
29322
29323 else $as_nop
29324
29325         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29326 printf "%s\n" "no" >&6; }
29327         tst_compi_getservbyport_r="no"
29328
29329 fi
29330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29331     fi
29332     if test "$tst_nargs_getservbyport_r" = "unknown"; then
29333       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
29334 printf %s "checking if getservbyport_r takes 6 args.... " >&6; }
29335       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29336 /* end confdefs.h.  */
29337
29338
29339           $cares_includes_netdb
29340
29341 int
29342 main (void)
29343 {
29344
29345           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
29346             return 1;
29347
29348   ;
29349   return 0;
29350 }
29351
29352 _ACEOF
29353 if ac_fn_c_try_compile "$LINENO"
29354 then :
29355
29356         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29357 printf "%s\n" "yes" >&6; }
29358         tst_compi_getservbyport_r="yes"
29359         tst_nargs_getservbyport_r="6"
29360
29361 else $as_nop
29362
29363         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 printf "%s\n" "no" >&6; }
29365         tst_compi_getservbyport_r="no"
29366
29367 fi
29368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29369     fi
29370     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
29371 printf %s "checking if getservbyport_r is compilable... " >&6; }
29372     if test "$tst_compi_getservbyport_r" = "yes"; then
29373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29374 printf "%s\n" "yes" >&6; }
29375     else
29376       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29377 printf "%s\n" "no" >&6; }
29378     fi
29379   fi
29380   #
29381   if test "$tst_compi_getservbyport_r" = "yes"; then
29382     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
29383 printf %s "checking if getservbyport_r usage allowed... " >&6; }
29384     if test "x$cares_disallow_getservbyport_r" != "xyes"; then
29385       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29386 printf "%s\n" "yes" >&6; }
29387       tst_allow_getservbyport_r="yes"
29388     else
29389       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29390 printf "%s\n" "no" >&6; }
29391       tst_allow_getservbyport_r="no"
29392     fi
29393   fi
29394   #
29395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
29396 printf %s "checking if getservbyport_r might be used... " >&6; }
29397   if test "$tst_links_getservbyport_r" = "yes" &&
29398      test "$tst_proto_getservbyport_r" = "yes" &&
29399      test "$tst_compi_getservbyport_r" = "yes" &&
29400      test "$tst_allow_getservbyport_r" = "yes"; then
29401     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29402 printf "%s\n" "yes" >&6; }
29403
29404 printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h
29405
29406
29407 printf "%s\n" "#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r" >>confdefs.h
29408
29409     if test "$tst_nargs_getservbyport_r" -eq "4"; then
29410
29411 printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
29412
29413     else
29414
29415 printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
29416
29417     fi
29418     ac_cv_func_getservbyport_r="yes"
29419   else
29420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29421 printf "%s\n" "no" >&6; }
29422     ac_cv_func_getservbyport_r="no"
29423   fi
29424
29425
29426 cares_includes_arpa_inet="\
29427 /* includes start */
29428 #ifdef HAVE_SYS_TYPES_H
29429 #  include <sys/types.h>
29430 #endif
29431 #ifdef HAVE_SYS_SOCKET_H
29432 #  include <sys/socket.h>
29433 #endif
29434 #ifdef HAVE_NETINET_IN_H
29435 #  include <netinet/in.h>
29436 #endif
29437 #ifdef HAVE_ARPA_INET_H
29438 #  include <arpa/inet.h>
29439 #endif
29440 /* includes end */"
29441   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_arpa_inet
29442 "
29443 if test "x$ac_cv_header_sys_types_h" = xyes
29444 then :
29445   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
29446
29447 fi
29448 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_arpa_inet
29449 "
29450 if test "x$ac_cv_header_sys_socket_h" = xyes
29451 then :
29452   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
29453
29454 fi
29455 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$cares_includes_arpa_inet
29456 "
29457 if test "x$ac_cv_header_netinet_in_h" = xyes
29458 then :
29459   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
29460
29461 fi
29462 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$cares_includes_arpa_inet
29463 "
29464 if test "x$ac_cv_header_arpa_inet_h" = xyes
29465 then :
29466   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
29467
29468 fi
29469
29470
29471
29472         #
29473   tst_links_inet_net_pton="unknown"
29474   tst_proto_inet_net_pton="unknown"
29475   tst_compi_inet_net_pton="unknown"
29476   tst_works_inet_net_pton="unknown"
29477   tst_allow_inet_net_pton="unknown"
29478   #
29479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
29480 printf %s "checking if inet_net_pton can be linked... " >&6; }
29481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h.  */
29483
29484     /* Define inet_net_pton to an innocuous variant, in case <limits.h> declares inet_net_pton.
29485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29486 #define inet_net_pton innocuous_inet_net_pton
29487
29488 /* System header to define __stub macros and hopefully few prototypes,
29489    which can conflict with char inet_net_pton (); below.  */
29490
29491 #include <limits.h>
29492 #undef inet_net_pton
29493
29494 /* Override any GCC internal prototype to avoid an error.
29495    Use char because int might match the return type of a GCC
29496    builtin and then its argument prototype would still apply.  */
29497 #ifdef __cplusplus
29498 extern "C"
29499 #endif
29500 char inet_net_pton ();
29501 /* The GNU C library defines this for functions which it implements
29502     to always fail with ENOSYS.  Some functions are actually named
29503     something starting with __ and the normal name is an alias.  */
29504 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
29505 choke me
29506 #endif
29507
29508 int
29509 main (void)
29510 {
29511 return inet_net_pton ();
29512   ;
29513   return 0;
29514 }
29515
29516 _ACEOF
29517 if ac_fn_c_try_link "$LINENO"
29518 then :
29519
29520     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29521 printf "%s\n" "yes" >&6; }
29522     tst_links_inet_net_pton="yes"
29523
29524 else $as_nop
29525
29526     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29527 printf "%s\n" "no" >&6; }
29528     tst_links_inet_net_pton="no"
29529
29530 fi
29531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29532     conftest$ac_exeext conftest.$ac_ext
29533   #
29534   if test "$tst_links_inet_net_pton" = "yes"; then
29535     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
29536 printf %s "checking if inet_net_pton is prototyped... " >&6; }
29537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29538 /* end confdefs.h.  */
29539
29540       $cares_includes_arpa_inet
29541
29542 _ACEOF
29543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29544   $EGREP "inet_net_pton" >/dev/null 2>&1
29545 then :
29546
29547       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548 printf "%s\n" "yes" >&6; }
29549       tst_proto_inet_net_pton="yes"
29550
29551 else $as_nop
29552
29553       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29554 printf "%s\n" "no" >&6; }
29555       tst_proto_inet_net_pton="no"
29556
29557 fi
29558 rm -rf conftest*
29559
29560   fi
29561   #
29562   if test "$tst_proto_inet_net_pton" = "yes"; then
29563     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
29564 printf %s "checking if inet_net_pton is compilable... " >&6; }
29565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566 /* end confdefs.h.  */
29567
29568
29569         $cares_includes_arpa_inet
29570
29571 int
29572 main (void)
29573 {
29574
29575         if(0 != inet_net_pton(0, 0, 0, 0))
29576           return 1;
29577
29578   ;
29579   return 0;
29580 }
29581
29582 _ACEOF
29583 if ac_fn_c_try_compile "$LINENO"
29584 then :
29585
29586       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29587 printf "%s\n" "yes" >&6; }
29588       tst_compi_inet_net_pton="yes"
29589
29590 else $as_nop
29591
29592       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29593 printf "%s\n" "no" >&6; }
29594       tst_compi_inet_net_pton="no"
29595
29596 fi
29597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29598   fi
29599   #
29600     if test "x$cross_compiling" != "xyes" &&
29601     test "$tst_compi_inet_net_pton" = "yes"; then
29602     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
29603 printf %s "checking if inet_net_pton seems to work... " >&6; }
29604     if test "$cross_compiling" = yes
29605 then :
29606   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29608 as_fn_error $? "cannot run test program while cross compiling
29609 See \`config.log' for more details" "$LINENO" 5; }
29610 else $as_nop
29611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612 /* end confdefs.h.  */
29613
29614
29615         $cares_includes_stdlib
29616         $cares_includes_arpa_inet
29617         $cares_includes_string
29618
29619 int
29620 main (void)
29621 {
29622
29623         unsigned char ipv6a[16+1];
29624         unsigned char ipv4a[4+1];
29625         const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
29626         const char *ipv6net2 = "::fffe:7f00:1";
29627         const char *ipv6net3 = "7f20:1::/64";
29628         const char *ipv6net4 = "7f20:1::/2147483649";
29629         const char *ipv4net1 = "192.168.100.1";
29630         const char *ipv4net2 = "192.168.100/32";
29631         const char *ipv4net3 = "192.168.100.1/2147483649";
29632         /* - */
29633         memset(ipv4a, 1, sizeof(ipv4a));
29634         if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
29635           exit(1); /* fail */
29636         /* - */
29637         if( (ipv4a[0x00] != 0xc0) ||
29638             (ipv4a[0x01] != 0xa8) ||
29639             (ipv4a[0x02] != 0x64) ||
29640             (ipv4a[0x03] != 0x01) ||
29641             (ipv4a[0x04] != 0x01) )
29642           exit(1); /* fail */
29643         /* - */
29644         memset(ipv4a, 1, sizeof(ipv4a));
29645         if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
29646           exit(1); /* fail */
29647         /* - */
29648         if( (ipv4a[0x00] != 0xc0) ||
29649             (ipv4a[0x01] != 0xa8) ||
29650             (ipv4a[0x02] != 0x64) ||
29651             (ipv4a[0x03] != 0x00) ||
29652             (ipv4a[0x04] != 0x01) )
29653           exit(1); /* fail */
29654         /* - */
29655         memset(ipv4a, 1, sizeof(ipv4a));
29656         if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
29657           exit(1); /* fail */
29658         /* - */
29659         memset(ipv6a, 1, sizeof(ipv6a));
29660         if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
29661           exit(1); /* fail */
29662         /* - */
29663         if( (ipv6a[0x00] != 0xfe) ||
29664             (ipv6a[0x01] != 0x80) ||
29665             (ipv6a[0x08] != 0x02) ||
29666             (ipv6a[0x09] != 0x14) ||
29667             (ipv6a[0x0a] != 0x4f) ||
29668             (ipv6a[0x0b] != 0xff) ||
29669             (ipv6a[0x0c] != 0xfe) ||
29670             (ipv6a[0x0d] != 0x0b) ||
29671             (ipv6a[0x0e] != 0x76) ||
29672             (ipv6a[0x0f] != 0xc8) ||
29673             (ipv6a[0x10] != 0x01) )
29674           exit(1); /* fail */
29675         /* - */
29676         if( (ipv6a[0x02] != 0x0) ||
29677             (ipv6a[0x03] != 0x0) ||
29678             (ipv6a[0x04] != 0x0) ||
29679             (ipv6a[0x05] != 0x0) ||
29680             (ipv6a[0x06] != 0x0) ||
29681             (ipv6a[0x07] != 0x0) )
29682           exit(1); /* fail */
29683         /* - */
29684         memset(ipv6a, 0, sizeof(ipv6a));
29685         ipv6a[0x10] = 0x01;
29686         if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
29687           exit(1); /* fail */
29688         /* - */
29689         if( (ipv6a[0x0a] != 0xff) ||
29690             (ipv6a[0x0b] != 0xfe) ||
29691             (ipv6a[0x0c] != 0x7f) ||
29692             (ipv6a[0x0f] != 0x01) ||
29693             (ipv6a[0x10] != 0x01) )
29694           exit(1); /* fail */
29695         /* - */
29696         if( (ipv6a[0x00] != 0x0) ||
29697             (ipv6a[0x01] != 0x0) ||
29698             (ipv6a[0x02] != 0x0) ||
29699             (ipv6a[0x03] != 0x0) ||
29700             (ipv6a[0x04] != 0x0) ||
29701             (ipv6a[0x05] != 0x0) ||
29702             (ipv6a[0x06] != 0x0) ||
29703             (ipv6a[0x07] != 0x0) ||
29704             (ipv6a[0x08] != 0x0) ||
29705             (ipv6a[0x09] != 0x0) ||
29706             (ipv6a[0x0d] != 0x0) ||
29707             (ipv6a[0x0e] != 0x0) )
29708           exit(1); /* fail */
29709         /* - */
29710         memset(ipv6a, 1, sizeof(ipv6a));
29711         if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
29712           exit(1); /* fail */
29713         if( (ipv6a[0x00] != 0x7f) ||
29714             (ipv6a[0x01] != 0x20) ||
29715             (ipv6a[0x03] != 0x01) ||
29716             (ipv6a[0x08] != 0x01) ||
29717             (ipv6a[0x09] != 0x01) ||
29718             (ipv6a[0x0a] != 0x01) ||
29719             (ipv6a[0x0b] != 0x01) ||
29720             (ipv6a[0x0c] != 0x01) ||
29721             (ipv6a[0x0d] != 0x01) ||
29722             (ipv6a[0x0e] != 0x01) ||
29723             (ipv6a[0x0f] != 0x01) ||
29724             (ipv6a[0x10] != 0x01) )
29725           exit(1); /* fail */
29726         if( (ipv6a[0x02] != 0x0) ||
29727             (ipv6a[0x04] != 0x0) ||
29728             (ipv6a[0x05] != 0x0) ||
29729             (ipv6a[0x06] != 0x0) ||
29730             (ipv6a[0x07] != 0x0) ||
29731             (ipv6a[0x07] != 0x0) )
29732           exit(1); /* fail */
29733         /* - */
29734         memset(ipv6a, 1, sizeof(ipv6a));
29735         if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
29736           exit(1); /* fail */
29737         /* - */
29738         exit(0);
29739
29740   ;
29741   return 0;
29742 }
29743
29744 _ACEOF
29745 if ac_fn_c_try_run "$LINENO"
29746 then :
29747
29748       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29749 printf "%s\n" "yes" >&6; }
29750       tst_works_inet_net_pton="yes"
29751
29752 else $as_nop
29753
29754       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755 printf "%s\n" "no" >&6; }
29756       tst_works_inet_net_pton="no"
29757
29758 fi
29759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29760   conftest.$ac_objext conftest.beam conftest.$ac_ext
29761 fi
29762
29763   fi
29764   #
29765   if test "$tst_compi_inet_net_pton" = "yes" &&
29766     test "$tst_works_inet_net_pton" != "no"; then
29767     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
29768 printf %s "checking if inet_net_pton usage allowed... " >&6; }
29769     if test "x$cares_disallow_inet_net_pton" != "xyes"; then
29770       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29771 printf "%s\n" "yes" >&6; }
29772       tst_allow_inet_net_pton="yes"
29773     else
29774       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29775 printf "%s\n" "no" >&6; }
29776       tst_allow_inet_net_pton="no"
29777     fi
29778   fi
29779   #
29780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
29781 printf %s "checking if inet_net_pton might be used... " >&6; }
29782   if test "$tst_links_inet_net_pton" = "yes" &&
29783      test "$tst_proto_inet_net_pton" = "yes" &&
29784      test "$tst_compi_inet_net_pton" = "yes" &&
29785      test "$tst_allow_inet_net_pton" = "yes" &&
29786      test "$tst_works_inet_net_pton" != "no"; then
29787     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29788 printf "%s\n" "yes" >&6; }
29789
29790 printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h
29791
29792     ac_cv_func_inet_net_pton="yes"
29793   else
29794     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29795 printf "%s\n" "no" >&6; }
29796     ac_cv_func_inet_net_pton="no"
29797   fi
29798
29799
29800         #
29801   tst_links_inet_ntop="unknown"
29802   tst_proto_inet_ntop="unknown"
29803   tst_compi_inet_ntop="unknown"
29804   tst_works_inet_ntop="unknown"
29805   tst_allow_inet_ntop="unknown"
29806   #
29807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
29808 printf %s "checking if inet_ntop can be linked... " >&6; }
29809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29810 /* end confdefs.h.  */
29811
29812     /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
29813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29814 #define inet_ntop innocuous_inet_ntop
29815
29816 /* System header to define __stub macros and hopefully few prototypes,
29817    which can conflict with char inet_ntop (); below.  */
29818
29819 #include <limits.h>
29820 #undef inet_ntop
29821
29822 /* Override any GCC internal prototype to avoid an error.
29823    Use char because int might match the return type of a GCC
29824    builtin and then its argument prototype would still apply.  */
29825 #ifdef __cplusplus
29826 extern "C"
29827 #endif
29828 char inet_ntop ();
29829 /* The GNU C library defines this for functions which it implements
29830     to always fail with ENOSYS.  Some functions are actually named
29831     something starting with __ and the normal name is an alias.  */
29832 #if defined __stub_inet_ntop || defined __stub___inet_ntop
29833 choke me
29834 #endif
29835
29836 int
29837 main (void)
29838 {
29839 return inet_ntop ();
29840   ;
29841   return 0;
29842 }
29843
29844 _ACEOF
29845 if ac_fn_c_try_link "$LINENO"
29846 then :
29847
29848     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29849 printf "%s\n" "yes" >&6; }
29850     tst_links_inet_ntop="yes"
29851
29852 else $as_nop
29853
29854     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29855 printf "%s\n" "no" >&6; }
29856     tst_links_inet_ntop="no"
29857
29858 fi
29859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29860     conftest$ac_exeext conftest.$ac_ext
29861   #
29862   if test "$tst_links_inet_ntop" = "yes"; then
29863     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
29864 printf %s "checking if inet_ntop is prototyped... " >&6; }
29865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29866 /* end confdefs.h.  */
29867
29868       $cares_includes_arpa_inet
29869
29870 _ACEOF
29871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29872   $EGREP "inet_ntop" >/dev/null 2>&1
29873 then :
29874
29875       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29876 printf "%s\n" "yes" >&6; }
29877       tst_proto_inet_ntop="yes"
29878
29879 else $as_nop
29880
29881       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29882 printf "%s\n" "no" >&6; }
29883       tst_proto_inet_ntop="no"
29884
29885 fi
29886 rm -rf conftest*
29887
29888   fi
29889   #
29890   if test "$tst_proto_inet_ntop" = "yes"; then
29891     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
29892 printf %s "checking if inet_ntop is compilable... " >&6; }
29893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29894 /* end confdefs.h.  */
29895
29896
29897         $cares_includes_arpa_inet
29898
29899 int
29900 main (void)
29901 {
29902
29903         if(0 != inet_ntop(0, 0, 0, 0))
29904           return 1;
29905
29906   ;
29907   return 0;
29908 }
29909
29910 _ACEOF
29911 if ac_fn_c_try_compile "$LINENO"
29912 then :
29913
29914       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29915 printf "%s\n" "yes" >&6; }
29916       tst_compi_inet_ntop="yes"
29917
29918 else $as_nop
29919
29920       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29921 printf "%s\n" "no" >&6; }
29922       tst_compi_inet_ntop="no"
29923
29924 fi
29925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29926   fi
29927   #
29928     if test "x$cross_compiling" != "xyes" &&
29929     test "$tst_compi_inet_ntop" = "yes"; then
29930     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
29931 printf %s "checking if inet_ntop seems to work... " >&6; }
29932     if test "$cross_compiling" = yes
29933 then :
29934   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29936 as_fn_error $? "cannot run test program while cross compiling
29937 See \`config.log' for more details" "$LINENO" 5; }
29938 else $as_nop
29939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29940 /* end confdefs.h.  */
29941
29942
29943         $cares_includes_stdlib
29944         $cares_includes_arpa_inet
29945         $cares_includes_string
29946
29947 int
29948 main (void)
29949 {
29950
29951         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
29952         char ipv4res[sizeof "255.255.255.255"];
29953         unsigned char ipv6a[26];
29954         unsigned char ipv4a[5];
29955         char *ipv6ptr = 0;
29956         char *ipv4ptr = 0;
29957         /* - */
29958         ipv4res[0] = '\0';
29959         ipv4a[0] = 0xc0;
29960         ipv4a[1] = 0xa8;
29961         ipv4a[2] = 0x64;
29962         ipv4a[3] = 0x01;
29963         ipv4a[4] = 0x01;
29964         /* - */
29965         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
29966         if(!ipv4ptr)
29967           exit(1); /* fail */
29968         if(ipv4ptr != ipv4res)
29969           exit(1); /* fail */
29970         if(!ipv4ptr[0])
29971           exit(1); /* fail */
29972         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
29973           exit(1); /* fail */
29974         /* - */
29975         ipv6res[0] = '\0';
29976         memset(ipv6a, 0, sizeof(ipv6a));
29977         ipv6a[0] = 0xfe;
29978         ipv6a[1] = 0x80;
29979         ipv6a[8] = 0x02;
29980         ipv6a[9] = 0x14;
29981         ipv6a[10] = 0x4f;
29982         ipv6a[11] = 0xff;
29983         ipv6a[12] = 0xfe;
29984         ipv6a[13] = 0x0b;
29985         ipv6a[14] = 0x76;
29986         ipv6a[15] = 0xc8;
29987         ipv6a[25] = 0x01;
29988         /* - */
29989         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
29990         if(!ipv6ptr)
29991           exit(1); /* fail */
29992         if(ipv6ptr != ipv6res)
29993           exit(1); /* fail */
29994         if(!ipv6ptr[0])
29995           exit(1); /* fail */
29996         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
29997           exit(1); /* fail */
29998         /* - */
29999         exit(0);
30000
30001   ;
30002   return 0;
30003 }
30004
30005 _ACEOF
30006 if ac_fn_c_try_run "$LINENO"
30007 then :
30008
30009       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30010 printf "%s\n" "yes" >&6; }
30011       tst_works_inet_ntop="yes"
30012
30013 else $as_nop
30014
30015       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30016 printf "%s\n" "no" >&6; }
30017       tst_works_inet_ntop="no"
30018
30019 fi
30020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30021   conftest.$ac_objext conftest.beam conftest.$ac_ext
30022 fi
30023
30024   fi
30025   #
30026   if test "$tst_compi_inet_ntop" = "yes" &&
30027     test "$tst_works_inet_ntop" != "no"; then
30028     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
30029 printf %s "checking if inet_ntop usage allowed... " >&6; }
30030     if test "x$cares_disallow_inet_ntop" != "xyes"; then
30031       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30032 printf "%s\n" "yes" >&6; }
30033       tst_allow_inet_ntop="yes"
30034     else
30035       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30036 printf "%s\n" "no" >&6; }
30037       tst_allow_inet_ntop="no"
30038     fi
30039   fi
30040   #
30041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
30042 printf %s "checking if inet_ntop might be used... " >&6; }
30043   if test "$tst_links_inet_ntop" = "yes" &&
30044      test "$tst_proto_inet_ntop" = "yes" &&
30045      test "$tst_compi_inet_ntop" = "yes" &&
30046      test "$tst_allow_inet_ntop" = "yes" &&
30047      test "$tst_works_inet_ntop" != "no"; then
30048     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30049 printf "%s\n" "yes" >&6; }
30050
30051 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
30052
30053     ac_cv_func_inet_ntop="yes"
30054   else
30055     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30056 printf "%s\n" "no" >&6; }
30057     ac_cv_func_inet_ntop="no"
30058   fi
30059
30060
30061         #
30062   tst_links_inet_pton="unknown"
30063   tst_proto_inet_pton="unknown"
30064   tst_compi_inet_pton="unknown"
30065   tst_works_inet_pton="unknown"
30066   tst_allow_inet_pton="unknown"
30067   #
30068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
30069 printf %s "checking if inet_pton can be linked... " >&6; }
30070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30071 /* end confdefs.h.  */
30072
30073     /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
30074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30075 #define inet_pton innocuous_inet_pton
30076
30077 /* System header to define __stub macros and hopefully few prototypes,
30078    which can conflict with char inet_pton (); below.  */
30079
30080 #include <limits.h>
30081 #undef inet_pton
30082
30083 /* Override any GCC internal prototype to avoid an error.
30084    Use char because int might match the return type of a GCC
30085    builtin and then its argument prototype would still apply.  */
30086 #ifdef __cplusplus
30087 extern "C"
30088 #endif
30089 char inet_pton ();
30090 /* The GNU C library defines this for functions which it implements
30091     to always fail with ENOSYS.  Some functions are actually named
30092     something starting with __ and the normal name is an alias.  */
30093 #if defined __stub_inet_pton || defined __stub___inet_pton
30094 choke me
30095 #endif
30096
30097 int
30098 main (void)
30099 {
30100 return inet_pton ();
30101   ;
30102   return 0;
30103 }
30104
30105 _ACEOF
30106 if ac_fn_c_try_link "$LINENO"
30107 then :
30108
30109     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30110 printf "%s\n" "yes" >&6; }
30111     tst_links_inet_pton="yes"
30112
30113 else $as_nop
30114
30115     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30116 printf "%s\n" "no" >&6; }
30117     tst_links_inet_pton="no"
30118
30119 fi
30120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30121     conftest$ac_exeext conftest.$ac_ext
30122   #
30123   if test "$tst_links_inet_pton" = "yes"; then
30124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
30125 printf %s "checking if inet_pton is prototyped... " >&6; }
30126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30127 /* end confdefs.h.  */
30128
30129       $cares_includes_arpa_inet
30130
30131 _ACEOF
30132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30133   $EGREP "inet_pton" >/dev/null 2>&1
30134 then :
30135
30136       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137 printf "%s\n" "yes" >&6; }
30138       tst_proto_inet_pton="yes"
30139
30140 else $as_nop
30141
30142       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30143 printf "%s\n" "no" >&6; }
30144       tst_proto_inet_pton="no"
30145
30146 fi
30147 rm -rf conftest*
30148
30149   fi
30150   #
30151   if test "$tst_proto_inet_pton" = "yes"; then
30152     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
30153 printf %s "checking if inet_pton is compilable... " >&6; }
30154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30155 /* end confdefs.h.  */
30156
30157
30158         $cares_includes_arpa_inet
30159
30160 int
30161 main (void)
30162 {
30163
30164         if(0 != inet_pton(0, 0, 0))
30165           return 1;
30166
30167   ;
30168   return 0;
30169 }
30170
30171 _ACEOF
30172 if ac_fn_c_try_compile "$LINENO"
30173 then :
30174
30175       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30176 printf "%s\n" "yes" >&6; }
30177       tst_compi_inet_pton="yes"
30178
30179 else $as_nop
30180
30181       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30182 printf "%s\n" "no" >&6; }
30183       tst_compi_inet_pton="no"
30184
30185 fi
30186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30187   fi
30188   #
30189     if test "x$cross_compiling" != "xyes" &&
30190     test "$tst_compi_inet_pton" = "yes"; then
30191     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
30192 printf %s "checking if inet_pton seems to work... " >&6; }
30193     if test "$cross_compiling" = yes
30194 then :
30195   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30197 as_fn_error $? "cannot run test program while cross compiling
30198 See \`config.log' for more details" "$LINENO" 5; }
30199 else $as_nop
30200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30201 /* end confdefs.h.  */
30202
30203
30204         $cares_includes_stdlib
30205         $cares_includes_arpa_inet
30206         $cares_includes_string
30207
30208 int
30209 main (void)
30210 {
30211
30212         unsigned char ipv6a[16+1];
30213         unsigned char ipv4a[4+1];
30214         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
30215         const char *ipv4src = "192.168.100.1";
30216         /* - */
30217         memset(ipv4a, 1, sizeof(ipv4a));
30218         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
30219           exit(1); /* fail */
30220         /* - */
30221         if( (ipv4a[0] != 0xc0) ||
30222             (ipv4a[1] != 0xa8) ||
30223             (ipv4a[2] != 0x64) ||
30224             (ipv4a[3] != 0x01) ||
30225             (ipv4a[4] != 0x01) )
30226           exit(1); /* fail */
30227         /* - */
30228         memset(ipv6a, 1, sizeof(ipv6a));
30229         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
30230           exit(1); /* fail */
30231         /* - */
30232         if( (ipv6a[0]  != 0xfe) ||
30233             (ipv6a[1]  != 0x80) ||
30234             (ipv6a[8]  != 0x02) ||
30235             (ipv6a[9]  != 0x14) ||
30236             (ipv6a[10] != 0x4f) ||
30237             (ipv6a[11] != 0xff) ||
30238             (ipv6a[12] != 0xfe) ||
30239             (ipv6a[13] != 0x0b) ||
30240             (ipv6a[14] != 0x76) ||
30241             (ipv6a[15] != 0xc8) ||
30242             (ipv6a[16] != 0x01) )
30243           exit(1); /* fail */
30244         /* - */
30245         if( (ipv6a[2]  != 0x0) ||
30246             (ipv6a[3]  != 0x0) ||
30247             (ipv6a[4]  != 0x0) ||
30248             (ipv6a[5]  != 0x0) ||
30249             (ipv6a[6]  != 0x0) ||
30250             (ipv6a[7]  != 0x0) )
30251           exit(1); /* fail */
30252         /* - */
30253         exit(0);
30254
30255   ;
30256   return 0;
30257 }
30258
30259 _ACEOF
30260 if ac_fn_c_try_run "$LINENO"
30261 then :
30262
30263       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30264 printf "%s\n" "yes" >&6; }
30265       tst_works_inet_pton="yes"
30266
30267 else $as_nop
30268
30269       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30270 printf "%s\n" "no" >&6; }
30271       tst_works_inet_pton="no"
30272
30273 fi
30274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30275   conftest.$ac_objext conftest.beam conftest.$ac_ext
30276 fi
30277
30278   fi
30279   #
30280   if test "$tst_compi_inet_pton" = "yes" &&
30281     test "$tst_works_inet_pton" != "no"; then
30282     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
30283 printf %s "checking if inet_pton usage allowed... " >&6; }
30284     if test "x$cares_disallow_inet_pton" != "xyes"; then
30285       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30286 printf "%s\n" "yes" >&6; }
30287       tst_allow_inet_pton="yes"
30288     else
30289       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290 printf "%s\n" "no" >&6; }
30291       tst_allow_inet_pton="no"
30292     fi
30293   fi
30294   #
30295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
30296 printf %s "checking if inet_pton might be used... " >&6; }
30297   if test "$tst_links_inet_pton" = "yes" &&
30298      test "$tst_proto_inet_pton" = "yes" &&
30299      test "$tst_compi_inet_pton" = "yes" &&
30300      test "$tst_allow_inet_pton" = "yes" &&
30301      test "$tst_works_inet_pton" != "no"; then
30302     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30303 printf "%s\n" "yes" >&6; }
30304
30305 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
30306
30307     ac_cv_func_inet_pton="yes"
30308   else
30309     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310 printf "%s\n" "no" >&6; }
30311     ac_cv_func_inet_pton="no"
30312   fi
30313
30314
30315 cares_includes_stropts="\
30316 /* includes start */
30317 #ifdef HAVE_SYS_TYPES_H
30318 #  include <sys/types.h>
30319 #endif
30320 #ifdef HAVE_UNISTD_H
30321 #  include <unistd.h>
30322 #endif
30323 #ifdef HAVE_SYS_SOCKET_H
30324 #  include <sys/socket.h>
30325 #endif
30326 #ifdef HAVE_SYS_IOCTL_H
30327 #  include <sys/ioctl.h>
30328 #endif
30329 #ifdef HAVE_STROPTS_H
30330 #  include <stropts.h>
30331 #endif
30332 /* includes end */"
30333   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stropts
30334 "
30335 if test "x$ac_cv_header_sys_types_h" = xyes
30336 then :
30337   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
30338
30339 fi
30340 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_stropts
30341 "
30342 if test "x$ac_cv_header_unistd_h" = xyes
30343 then :
30344   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
30345
30346 fi
30347 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_stropts
30348 "
30349 if test "x$ac_cv_header_sys_socket_h" = xyes
30350 then :
30351   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
30352
30353 fi
30354 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$cares_includes_stropts
30355 "
30356 if test "x$ac_cv_header_sys_ioctl_h" = xyes
30357 then :
30358   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
30359
30360 fi
30361 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$cares_includes_stropts
30362 "
30363 if test "x$ac_cv_header_stropts_h" = xyes
30364 then :
30365   printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
30366
30367 fi
30368
30369
30370
30371     #
30372   tst_links_ioctl="unknown"
30373   tst_proto_ioctl="unknown"
30374   tst_compi_ioctl="unknown"
30375   tst_allow_ioctl="unknown"
30376   #
30377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
30378 printf %s "checking if ioctl can be linked... " >&6; }
30379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h.  */
30381
30382     /* Define ioctl to an innocuous variant, in case <limits.h> declares ioctl.
30383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30384 #define ioctl innocuous_ioctl
30385
30386 /* System header to define __stub macros and hopefully few prototypes,
30387    which can conflict with char ioctl (); below.  */
30388
30389 #include <limits.h>
30390 #undef ioctl
30391
30392 /* Override any GCC internal prototype to avoid an error.
30393    Use char because int might match the return type of a GCC
30394    builtin and then its argument prototype would still apply.  */
30395 #ifdef __cplusplus
30396 extern "C"
30397 #endif
30398 char ioctl ();
30399 /* The GNU C library defines this for functions which it implements
30400     to always fail with ENOSYS.  Some functions are actually named
30401     something starting with __ and the normal name is an alias.  */
30402 #if defined __stub_ioctl || defined __stub___ioctl
30403 choke me
30404 #endif
30405
30406 int
30407 main (void)
30408 {
30409 return ioctl ();
30410   ;
30411   return 0;
30412 }
30413
30414 _ACEOF
30415 if ac_fn_c_try_link "$LINENO"
30416 then :
30417
30418     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30419 printf "%s\n" "yes" >&6; }
30420     tst_links_ioctl="yes"
30421
30422 else $as_nop
30423
30424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30425 printf "%s\n" "no" >&6; }
30426     tst_links_ioctl="no"
30427
30428 fi
30429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30430     conftest$ac_exeext conftest.$ac_ext
30431   #
30432   if test "$tst_links_ioctl" = "yes"; then
30433     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
30434 printf %s "checking if ioctl is prototyped... " >&6; }
30435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30436 /* end confdefs.h.  */
30437
30438       $cares_includes_stropts
30439
30440 _ACEOF
30441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30442   $EGREP "ioctl" >/dev/null 2>&1
30443 then :
30444
30445       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30446 printf "%s\n" "yes" >&6; }
30447       tst_proto_ioctl="yes"
30448
30449 else $as_nop
30450
30451       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452 printf "%s\n" "no" >&6; }
30453       tst_proto_ioctl="no"
30454
30455 fi
30456 rm -rf conftest*
30457
30458   fi
30459   #
30460   if test "$tst_proto_ioctl" = "yes"; then
30461     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
30462 printf %s "checking if ioctl is compilable... " >&6; }
30463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30464 /* end confdefs.h.  */
30465
30466
30467         $cares_includes_stropts
30468
30469 int
30470 main (void)
30471 {
30472
30473         if(0 != ioctl(0, 0, 0))
30474           return 1;
30475
30476   ;
30477   return 0;
30478 }
30479
30480 _ACEOF
30481 if ac_fn_c_try_compile "$LINENO"
30482 then :
30483
30484       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30485 printf "%s\n" "yes" >&6; }
30486       tst_compi_ioctl="yes"
30487
30488 else $as_nop
30489
30490       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30491 printf "%s\n" "no" >&6; }
30492       tst_compi_ioctl="no"
30493
30494 fi
30495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30496   fi
30497   #
30498   if test "$tst_compi_ioctl" = "yes"; then
30499     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
30500 printf %s "checking if ioctl usage allowed... " >&6; }
30501     if test "x$cares_disallow_ioctl" != "xyes"; then
30502       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30503 printf "%s\n" "yes" >&6; }
30504       tst_allow_ioctl="yes"
30505     else
30506       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507 printf "%s\n" "no" >&6; }
30508       tst_allow_ioctl="no"
30509     fi
30510   fi
30511   #
30512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
30513 printf %s "checking if ioctl might be used... " >&6; }
30514   if test "$tst_links_ioctl" = "yes" &&
30515      test "$tst_proto_ioctl" = "yes" &&
30516      test "$tst_compi_ioctl" = "yes" &&
30517      test "$tst_allow_ioctl" = "yes"; then
30518     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30519 printf "%s\n" "yes" >&6; }
30520
30521 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
30522
30523     ac_cv_func_ioctl="yes"
30524
30525   #
30526   tst_compi_ioctl_fionbio="unknown"
30527   tst_allow_ioctl_fionbio="unknown"
30528   #
30529   if test "$ac_cv_func_ioctl" = "yes"; then
30530     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
30531 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
30532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533 /* end confdefs.h.  */
30534
30535
30536         $cares_includes_stropts
30537
30538 int
30539 main (void)
30540 {
30541
30542         int flags = 0;
30543         if(0 != ioctl(0, FIONBIO, &flags))
30544           return 1;
30545
30546   ;
30547   return 0;
30548 }
30549
30550 _ACEOF
30551 if ac_fn_c_try_compile "$LINENO"
30552 then :
30553
30554       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30555 printf "%s\n" "yes" >&6; }
30556       tst_compi_ioctl_fionbio="yes"
30557
30558 else $as_nop
30559
30560       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561 printf "%s\n" "no" >&6; }
30562       tst_compi_ioctl_fionbio="no"
30563
30564 fi
30565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30566   fi
30567   #
30568   if test "$tst_compi_ioctl_fionbio" = "yes"; then
30569     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
30570 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
30571     if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
30572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30573 printf "%s\n" "yes" >&6; }
30574       tst_allow_ioctl_fionbio="yes"
30575     else
30576       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30577 printf "%s\n" "no" >&6; }
30578       tst_allow_ioctl_fionbio="no"
30579     fi
30580   fi
30581   #
30582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
30583 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
30584   if test "$tst_compi_ioctl_fionbio" = "yes" &&
30585      test "$tst_allow_ioctl_fionbio" = "yes"; then
30586     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30587 printf "%s\n" "yes" >&6; }
30588
30589 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
30590
30591     ac_cv_func_ioctl_fionbio="yes"
30592   else
30593     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30594 printf "%s\n" "no" >&6; }
30595     ac_cv_func_ioctl_fionbio="no"
30596   fi
30597
30598
30599   #
30600   tst_compi_ioctl_siocgifaddr="unknown"
30601   tst_allow_ioctl_siocgifaddr="unknown"
30602   #
30603   if test "$ac_cv_func_ioctl" = "yes"; then
30604     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
30605 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
30606     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607 /* end confdefs.h.  */
30608
30609
30610         $cares_includes_stropts
30611         #include <net/if.h>
30612
30613 int
30614 main (void)
30615 {
30616
30617         struct ifreq ifr;
30618         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
30619           return 1;
30620
30621   ;
30622   return 0;
30623 }
30624
30625 _ACEOF
30626 if ac_fn_c_try_compile "$LINENO"
30627 then :
30628
30629       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30630 printf "%s\n" "yes" >&6; }
30631       tst_compi_ioctl_siocgifaddr="yes"
30632
30633 else $as_nop
30634
30635       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 printf "%s\n" "no" >&6; }
30637       tst_compi_ioctl_siocgifaddr="no"
30638
30639 fi
30640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30641   fi
30642   #
30643   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
30644     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
30645 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
30646     if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
30647       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30648 printf "%s\n" "yes" >&6; }
30649       tst_allow_ioctl_siocgifaddr="yes"
30650     else
30651       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652 printf "%s\n" "no" >&6; }
30653       tst_allow_ioctl_siocgifaddr="no"
30654     fi
30655   fi
30656   #
30657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
30658 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
30659   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
30660      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
30661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30662 printf "%s\n" "yes" >&6; }
30663
30664 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
30665
30666     ac_cv_func_ioctl_siocgifaddr="yes"
30667   else
30668     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30669 printf "%s\n" "no" >&6; }
30670     ac_cv_func_ioctl_siocgifaddr="no"
30671   fi
30672
30673   else
30674     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675 printf "%s\n" "no" >&6; }
30676     ac_cv_func_ioctl="no"
30677   fi
30678
30679
30680     #
30681   tst_links_ioctlsocket="unknown"
30682   tst_proto_ioctlsocket="unknown"
30683   tst_compi_ioctlsocket="unknown"
30684   tst_allow_ioctlsocket="unknown"
30685   #
30686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
30687 printf %s "checking if ioctlsocket can be linked... " >&6; }
30688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30689 /* end confdefs.h.  */
30690
30691
30692       $cares_includes_winsock2
30693
30694 int
30695 main (void)
30696 {
30697
30698       if(0 != ioctlsocket(0, 0, 0))
30699         return 1;
30700
30701   ;
30702   return 0;
30703 }
30704
30705 _ACEOF
30706 if ac_fn_c_try_link "$LINENO"
30707 then :
30708
30709     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30710 printf "%s\n" "yes" >&6; }
30711     tst_links_ioctlsocket="yes"
30712
30713 else $as_nop
30714
30715     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30716 printf "%s\n" "no" >&6; }
30717     tst_links_ioctlsocket="no"
30718
30719 fi
30720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30721     conftest$ac_exeext conftest.$ac_ext
30722   #
30723   if test "$tst_links_ioctlsocket" = "yes"; then
30724     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
30725 printf %s "checking if ioctlsocket is prototyped... " >&6; }
30726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h.  */
30728
30729       $cares_includes_winsock2
30730
30731 _ACEOF
30732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30733   $EGREP "ioctlsocket" >/dev/null 2>&1
30734 then :
30735
30736       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30737 printf "%s\n" "yes" >&6; }
30738       tst_proto_ioctlsocket="yes"
30739
30740 else $as_nop
30741
30742       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30743 printf "%s\n" "no" >&6; }
30744       tst_proto_ioctlsocket="no"
30745
30746 fi
30747 rm -rf conftest*
30748
30749   fi
30750   #
30751   if test "$tst_proto_ioctlsocket" = "yes"; then
30752     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
30753 printf %s "checking if ioctlsocket is compilable... " >&6; }
30754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755 /* end confdefs.h.  */
30756
30757
30758         $cares_includes_winsock2
30759
30760 int
30761 main (void)
30762 {
30763
30764         if(0 != ioctlsocket(0, 0, 0))
30765           return 1;
30766
30767   ;
30768   return 0;
30769 }
30770
30771 _ACEOF
30772 if ac_fn_c_try_compile "$LINENO"
30773 then :
30774
30775       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30776 printf "%s\n" "yes" >&6; }
30777       tst_compi_ioctlsocket="yes"
30778
30779 else $as_nop
30780
30781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782 printf "%s\n" "no" >&6; }
30783       tst_compi_ioctlsocket="no"
30784
30785 fi
30786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30787   fi
30788   #
30789   if test "$tst_compi_ioctlsocket" = "yes"; then
30790     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
30791 printf %s "checking if ioctlsocket usage allowed... " >&6; }
30792     if test "x$cares_disallow_ioctlsocket" != "xyes"; then
30793       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30794 printf "%s\n" "yes" >&6; }
30795       tst_allow_ioctlsocket="yes"
30796     else
30797       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30798 printf "%s\n" "no" >&6; }
30799       tst_allow_ioctlsocket="no"
30800     fi
30801   fi
30802   #
30803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
30804 printf %s "checking if ioctlsocket might be used... " >&6; }
30805   if test "$tst_links_ioctlsocket" = "yes" &&
30806      test "$tst_proto_ioctlsocket" = "yes" &&
30807      test "$tst_compi_ioctlsocket" = "yes" &&
30808      test "$tst_allow_ioctlsocket" = "yes"; then
30809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30810 printf "%s\n" "yes" >&6; }
30811
30812 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
30813
30814     ac_cv_func_ioctlsocket="yes"
30815
30816   #
30817   tst_compi_ioctlsocket_fionbio="unknown"
30818   tst_allow_ioctlsocket_fionbio="unknown"
30819   #
30820   if test "$ac_cv_func_ioctlsocket" = "yes"; then
30821     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
30822 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
30823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824 /* end confdefs.h.  */
30825
30826
30827         $cares_includes_winsock2
30828
30829 int
30830 main (void)
30831 {
30832
30833         int flags = 0;
30834         if(0 != ioctlsocket(0, FIONBIO, &flags))
30835           return 1;
30836
30837   ;
30838   return 0;
30839 }
30840
30841 _ACEOF
30842 if ac_fn_c_try_compile "$LINENO"
30843 then :
30844
30845       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30846 printf "%s\n" "yes" >&6; }
30847       tst_compi_ioctlsocket_fionbio="yes"
30848
30849 else $as_nop
30850
30851       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30852 printf "%s\n" "no" >&6; }
30853       tst_compi_ioctlsocket_fionbio="no"
30854
30855 fi
30856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30857   fi
30858   #
30859   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
30860     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
30861 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
30862     if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
30863       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30864 printf "%s\n" "yes" >&6; }
30865       tst_allow_ioctlsocket_fionbio="yes"
30866     else
30867       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30868 printf "%s\n" "no" >&6; }
30869       tst_allow_ioctlsocket_fionbio="no"
30870     fi
30871   fi
30872   #
30873   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
30874 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
30875   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
30876      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
30877     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30878 printf "%s\n" "yes" >&6; }
30879
30880 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
30881
30882     ac_cv_func_ioctlsocket_fionbio="yes"
30883   else
30884     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 printf "%s\n" "no" >&6; }
30886     ac_cv_func_ioctlsocket_fionbio="no"
30887   fi
30888
30889   else
30890     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 printf "%s\n" "no" >&6; }
30892     ac_cv_func_ioctlsocket="no"
30893   fi
30894
30895
30896     #
30897   tst_links_ioctlsocket_camel="unknown"
30898   tst_proto_ioctlsocket_camel="unknown"
30899   tst_compi_ioctlsocket_camel="unknown"
30900   tst_allow_ioctlsocket_camel="unknown"
30901   #
30902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
30903 printf %s "checking if IoctlSocket can be linked... " >&6; }
30904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30905 /* end confdefs.h.  */
30906
30907     /* Define IoctlSocket to an innocuous variant, in case <limits.h> declares IoctlSocket.
30908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30909 #define IoctlSocket innocuous_IoctlSocket
30910
30911 /* System header to define __stub macros and hopefully few prototypes,
30912    which can conflict with char IoctlSocket (); below.  */
30913
30914 #include <limits.h>
30915 #undef IoctlSocket
30916
30917 /* Override any GCC internal prototype to avoid an error.
30918    Use char because int might match the return type of a GCC
30919    builtin and then its argument prototype would still apply.  */
30920 #ifdef __cplusplus
30921 extern "C"
30922 #endif
30923 char IoctlSocket ();
30924 /* The GNU C library defines this for functions which it implements
30925     to always fail with ENOSYS.  Some functions are actually named
30926     something starting with __ and the normal name is an alias.  */
30927 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
30928 choke me
30929 #endif
30930
30931 int
30932 main (void)
30933 {
30934 return IoctlSocket ();
30935   ;
30936   return 0;
30937 }
30938
30939 _ACEOF
30940 if ac_fn_c_try_link "$LINENO"
30941 then :
30942
30943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30944 printf "%s\n" "yes" >&6; }
30945     tst_links_ioctlsocket_camel="yes"
30946
30947 else $as_nop
30948
30949     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950 printf "%s\n" "no" >&6; }
30951     tst_links_ioctlsocket_camel="no"
30952
30953 fi
30954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30955     conftest$ac_exeext conftest.$ac_ext
30956   #
30957   if test "$tst_links_ioctlsocket_camel" = "yes"; then
30958     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
30959 printf %s "checking if IoctlSocket is prototyped... " >&6; }
30960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30961 /* end confdefs.h.  */
30962
30963       $cares_includes_stropts
30964
30965 _ACEOF
30966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30967   $EGREP "IoctlSocket" >/dev/null 2>&1
30968 then :
30969
30970       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30971 printf "%s\n" "yes" >&6; }
30972       tst_proto_ioctlsocket_camel="yes"
30973
30974 else $as_nop
30975
30976       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30977 printf "%s\n" "no" >&6; }
30978       tst_proto_ioctlsocket_camel="no"
30979
30980 fi
30981 rm -rf conftest*
30982
30983   fi
30984   #
30985   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
30986     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
30987 printf %s "checking if IoctlSocket is compilable... " >&6; }
30988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30989 /* end confdefs.h.  */
30990
30991
30992         $cares_includes_stropts
30993
30994 int
30995 main (void)
30996 {
30997
30998         if(0 != IoctlSocket(0, 0, 0))
30999           return 1;
31000
31001   ;
31002   return 0;
31003 }
31004
31005 _ACEOF
31006 if ac_fn_c_try_compile "$LINENO"
31007 then :
31008
31009       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010 printf "%s\n" "yes" >&6; }
31011       tst_compi_ioctlsocket_camel="yes"
31012
31013 else $as_nop
31014
31015       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31016 printf "%s\n" "no" >&6; }
31017       tst_compi_ioctlsocket_camel="no"
31018
31019 fi
31020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31021   fi
31022   #
31023   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
31024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
31025 printf %s "checking if IoctlSocket usage allowed... " >&6; }
31026     if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
31027       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 printf "%s\n" "yes" >&6; }
31029       tst_allow_ioctlsocket_camel="yes"
31030     else
31031       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31032 printf "%s\n" "no" >&6; }
31033       tst_allow_ioctlsocket_camel="no"
31034     fi
31035   fi
31036   #
31037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
31038 printf %s "checking if IoctlSocket might be used... " >&6; }
31039   if test "$tst_links_ioctlsocket_camel" = "yes" &&
31040      test "$tst_proto_ioctlsocket_camel" = "yes" &&
31041      test "$tst_compi_ioctlsocket_camel" = "yes" &&
31042      test "$tst_allow_ioctlsocket_camel" = "yes"; then
31043     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31044 printf "%s\n" "yes" >&6; }
31045
31046 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
31047
31048     ac_cv_func_ioctlsocket_camel="yes"
31049
31050   #
31051   tst_compi_ioctlsocket_camel_fionbio="unknown"
31052   tst_allow_ioctlsocket_camel_fionbio="unknown"
31053   #
31054   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
31055     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
31056 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
31057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31058 /* end confdefs.h.  */
31059
31060
31061         $cares_includes_stropts
31062
31063 int
31064 main (void)
31065 {
31066
31067         long flags = 0;
31068         if(0 != ioctlsocket(0, FIONBIO, &flags))
31069           return 1;
31070
31071   ;
31072   return 0;
31073 }
31074
31075 _ACEOF
31076 if ac_fn_c_try_compile "$LINENO"
31077 then :
31078
31079       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080 printf "%s\n" "yes" >&6; }
31081       tst_compi_ioctlsocket_camel_fionbio="yes"
31082
31083 else $as_nop
31084
31085       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31086 printf "%s\n" "no" >&6; }
31087       tst_compi_ioctlsocket_camel_fionbio="no"
31088
31089 fi
31090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31091   fi
31092   #
31093   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
31094     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
31095 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
31096     if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
31097       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31098 printf "%s\n" "yes" >&6; }
31099       tst_allow_ioctlsocket_camel_fionbio="yes"
31100     else
31101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102 printf "%s\n" "no" >&6; }
31103       tst_allow_ioctlsocket_camel_fionbio="no"
31104     fi
31105   fi
31106   #
31107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
31108 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
31109   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
31110      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
31111     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 printf "%s\n" "yes" >&6; }
31113
31114 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
31115
31116     ac_cv_func_ioctlsocket_camel_fionbio="yes"
31117   else
31118     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31119 printf "%s\n" "no" >&6; }
31120     ac_cv_func_ioctlsocket_camel_fionbio="no"
31121   fi
31122
31123   else
31124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31125 printf "%s\n" "no" >&6; }
31126     ac_cv_func_ioctlsocket_camel="no"
31127   fi
31128
31129
31130       #
31131   tst_links_setsockopt="unknown"
31132   tst_proto_setsockopt="unknown"
31133   tst_compi_setsockopt="unknown"
31134   tst_allow_setsockopt="unknown"
31135   #
31136   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
31137 printf %s "checking if setsockopt can be linked... " >&6; }
31138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139 /* end confdefs.h.  */
31140
31141
31142       $cares_includes_winsock2
31143       $cares_includes_sys_socket
31144
31145 int
31146 main (void)
31147 {
31148
31149       if(0 != setsockopt(0, 0, 0, 0, 0))
31150         return 1;
31151
31152   ;
31153   return 0;
31154 }
31155
31156 _ACEOF
31157 if ac_fn_c_try_link "$LINENO"
31158 then :
31159
31160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31161 printf "%s\n" "yes" >&6; }
31162     tst_links_setsockopt="yes"
31163
31164 else $as_nop
31165
31166     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31167 printf "%s\n" "no" >&6; }
31168     tst_links_setsockopt="no"
31169
31170 fi
31171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31172     conftest$ac_exeext conftest.$ac_ext
31173   #
31174   if test "$tst_links_setsockopt" = "yes"; then
31175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
31176 printf %s "checking if setsockopt is prototyped... " >&6; }
31177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h.  */
31179
31180       $cares_includes_winsock2
31181       $cares_includes_sys_socket
31182
31183 _ACEOF
31184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31185   $EGREP "setsockopt" >/dev/null 2>&1
31186 then :
31187
31188       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31189 printf "%s\n" "yes" >&6; }
31190       tst_proto_setsockopt="yes"
31191
31192 else $as_nop
31193
31194       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31195 printf "%s\n" "no" >&6; }
31196       tst_proto_setsockopt="no"
31197
31198 fi
31199 rm -rf conftest*
31200
31201   fi
31202   #
31203   if test "$tst_proto_setsockopt" = "yes"; then
31204     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
31205 printf %s "checking if setsockopt is compilable... " >&6; }
31206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31207 /* end confdefs.h.  */
31208
31209
31210         $cares_includes_winsock2
31211         $cares_includes_sys_socket
31212
31213 int
31214 main (void)
31215 {
31216
31217         if(0 != setsockopt(0, 0, 0, 0, 0))
31218           return 1;
31219
31220   ;
31221   return 0;
31222 }
31223
31224 _ACEOF
31225 if ac_fn_c_try_compile "$LINENO"
31226 then :
31227
31228       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31229 printf "%s\n" "yes" >&6; }
31230       tst_compi_setsockopt="yes"
31231
31232 else $as_nop
31233
31234       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31235 printf "%s\n" "no" >&6; }
31236       tst_compi_setsockopt="no"
31237
31238 fi
31239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31240   fi
31241   #
31242   if test "$tst_compi_setsockopt" = "yes"; then
31243     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
31244 printf %s "checking if setsockopt usage allowed... " >&6; }
31245     if test "x$cares_disallow_setsockopt" != "xyes"; then
31246       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31247 printf "%s\n" "yes" >&6; }
31248       tst_allow_setsockopt="yes"
31249     else
31250       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31251 printf "%s\n" "no" >&6; }
31252       tst_allow_setsockopt="no"
31253     fi
31254   fi
31255   #
31256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
31257 printf %s "checking if setsockopt might be used... " >&6; }
31258   if test "$tst_links_setsockopt" = "yes" &&
31259      test "$tst_proto_setsockopt" = "yes" &&
31260      test "$tst_compi_setsockopt" = "yes" &&
31261      test "$tst_allow_setsockopt" = "yes"; then
31262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31263 printf "%s\n" "yes" >&6; }
31264
31265 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
31266
31267     ac_cv_func_setsockopt="yes"
31268
31269   #
31270   tst_compi_setsockopt_so_nonblock="unknown"
31271   tst_allow_setsockopt_so_nonblock="unknown"
31272   #
31273   if test "$ac_cv_func_setsockopt" = "yes"; then
31274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
31275 printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
31276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h.  */
31278
31279
31280         $cares_includes_winsock2
31281         $cares_includes_sys_socket
31282
31283 int
31284 main (void)
31285 {
31286
31287         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
31288           return 1;
31289
31290   ;
31291   return 0;
31292 }
31293
31294 _ACEOF
31295 if ac_fn_c_try_compile "$LINENO"
31296 then :
31297
31298       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31299 printf "%s\n" "yes" >&6; }
31300       tst_compi_setsockopt_so_nonblock="yes"
31301
31302 else $as_nop
31303
31304       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31305 printf "%s\n" "no" >&6; }
31306       tst_compi_setsockopt_so_nonblock="no"
31307
31308 fi
31309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31310   fi
31311   #
31312   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
31313     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
31314 printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
31315     if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
31316       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 printf "%s\n" "yes" >&6; }
31318       tst_allow_setsockopt_so_nonblock="yes"
31319     else
31320       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31321 printf "%s\n" "no" >&6; }
31322       tst_allow_setsockopt_so_nonblock="no"
31323     fi
31324   fi
31325   #
31326   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
31327 printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
31328   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
31329      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
31330     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31331 printf "%s\n" "yes" >&6; }
31332
31333 printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
31334
31335     ac_cv_func_setsockopt_so_nonblock="yes"
31336   else
31337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 printf "%s\n" "no" >&6; }
31339     ac_cv_func_setsockopt_so_nonblock="no"
31340   fi
31341
31342   else
31343     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31344 printf "%s\n" "no" >&6; }
31345     ac_cv_func_setsockopt="no"
31346   fi
31347
31348
31349         #
31350   tst_links_socket="unknown"
31351   tst_proto_socket="unknown"
31352   tst_compi_socket="unknown"
31353   tst_allow_socket="unknown"
31354   #
31355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
31356 printf %s "checking if socket can be linked... " >&6; }
31357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h.  */
31359
31360
31361       $cares_includes_winsock2
31362       $cares_includes_sys_socket
31363       $cares_includes_socket
31364
31365 int
31366 main (void)
31367 {
31368
31369       if(0 != socket(0, 0, 0))
31370         return 1;
31371
31372   ;
31373   return 0;
31374 }
31375
31376 _ACEOF
31377 if ac_fn_c_try_link "$LINENO"
31378 then :
31379
31380     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31381 printf "%s\n" "yes" >&6; }
31382     tst_links_socket="yes"
31383
31384 else $as_nop
31385
31386     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31387 printf "%s\n" "no" >&6; }
31388     tst_links_socket="no"
31389
31390 fi
31391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31392     conftest$ac_exeext conftest.$ac_ext
31393   #
31394   if test "$tst_links_socket" = "yes"; then
31395     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
31396 printf %s "checking if socket is prototyped... " >&6; }
31397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31398 /* end confdefs.h.  */
31399
31400       $cares_includes_winsock2
31401       $cares_includes_sys_socket
31402       $cares_includes_socket
31403
31404 _ACEOF
31405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31406   $EGREP "socket" >/dev/null 2>&1
31407 then :
31408
31409       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31410 printf "%s\n" "yes" >&6; }
31411       tst_proto_socket="yes"
31412
31413 else $as_nop
31414
31415       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31416 printf "%s\n" "no" >&6; }
31417       tst_proto_socket="no"
31418
31419 fi
31420 rm -rf conftest*
31421
31422   fi
31423   #
31424   if test "$tst_proto_socket" = "yes"; then
31425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
31426 printf %s "checking if socket is compilable... " >&6; }
31427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428 /* end confdefs.h.  */
31429
31430
31431         $cares_includes_winsock2
31432         $cares_includes_sys_socket
31433         $cares_includes_socket
31434
31435 int
31436 main (void)
31437 {
31438
31439         if(0 != socket(0, 0, 0))
31440           return 1;
31441
31442   ;
31443   return 0;
31444 }
31445
31446 _ACEOF
31447 if ac_fn_c_try_compile "$LINENO"
31448 then :
31449
31450       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31451 printf "%s\n" "yes" >&6; }
31452       tst_compi_socket="yes"
31453
31454 else $as_nop
31455
31456       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31457 printf "%s\n" "no" >&6; }
31458       tst_compi_socket="no"
31459
31460 fi
31461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31462   fi
31463   #
31464   if test "$tst_compi_socket" = "yes"; then
31465     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
31466 printf %s "checking if socket usage allowed... " >&6; }
31467     if test "x$cares_disallow_socket" != "xyes"; then
31468       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469 printf "%s\n" "yes" >&6; }
31470       tst_allow_socket="yes"
31471     else
31472       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31473 printf "%s\n" "no" >&6; }
31474       tst_allow_socket="no"
31475     fi
31476   fi
31477   #
31478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
31479 printf %s "checking if socket might be used... " >&6; }
31480   if test "$tst_links_socket" = "yes" &&
31481      test "$tst_proto_socket" = "yes" &&
31482      test "$tst_compi_socket" = "yes" &&
31483      test "$tst_allow_socket" = "yes"; then
31484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31485 printf "%s\n" "yes" >&6; }
31486
31487 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
31488
31489     ac_cv_func_socket="yes"
31490   else
31491     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31492 printf "%s\n" "no" >&6; }
31493     ac_cv_func_socket="no"
31494   fi
31495
31496
31497     #
31498   tst_links_strcasecmp="unknown"
31499   tst_proto_strcasecmp="unknown"
31500   tst_compi_strcasecmp="unknown"
31501   tst_allow_strcasecmp="unknown"
31502   #
31503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
31504 printf %s "checking if strcasecmp can be linked... " >&6; }
31505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506 /* end confdefs.h.  */
31507
31508     /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
31509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31510 #define strcasecmp innocuous_strcasecmp
31511
31512 /* System header to define __stub macros and hopefully few prototypes,
31513    which can conflict with char strcasecmp (); below.  */
31514
31515 #include <limits.h>
31516 #undef strcasecmp
31517
31518 /* Override any GCC internal prototype to avoid an error.
31519    Use char because int might match the return type of a GCC
31520    builtin and then its argument prototype would still apply.  */
31521 #ifdef __cplusplus
31522 extern "C"
31523 #endif
31524 char strcasecmp ();
31525 /* The GNU C library defines this for functions which it implements
31526     to always fail with ENOSYS.  Some functions are actually named
31527     something starting with __ and the normal name is an alias.  */
31528 #if defined __stub_strcasecmp || defined __stub___strcasecmp
31529 choke me
31530 #endif
31531
31532 int
31533 main (void)
31534 {
31535 return strcasecmp ();
31536   ;
31537   return 0;
31538 }
31539
31540 _ACEOF
31541 if ac_fn_c_try_link "$LINENO"
31542 then :
31543
31544     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31545 printf "%s\n" "yes" >&6; }
31546     tst_links_strcasecmp="yes"
31547
31548 else $as_nop
31549
31550     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31551 printf "%s\n" "no" >&6; }
31552     tst_links_strcasecmp="no"
31553
31554 fi
31555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31556     conftest$ac_exeext conftest.$ac_ext
31557   #
31558   if test "$tst_links_strcasecmp" = "yes"; then
31559     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
31560 printf %s "checking if strcasecmp is prototyped... " >&6; }
31561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31562 /* end confdefs.h.  */
31563
31564       $cares_includes_string
31565
31566 _ACEOF
31567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31568   $EGREP "strcasecmp" >/dev/null 2>&1
31569 then :
31570
31571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31572 printf "%s\n" "yes" >&6; }
31573       tst_proto_strcasecmp="yes"
31574
31575 else $as_nop
31576
31577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31578 printf "%s\n" "no" >&6; }
31579       tst_proto_strcasecmp="no"
31580
31581 fi
31582 rm -rf conftest*
31583
31584   fi
31585   #
31586   if test "$tst_proto_strcasecmp" = "yes"; then
31587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
31588 printf %s "checking if strcasecmp is compilable... " >&6; }
31589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31590 /* end confdefs.h.  */
31591
31592
31593         $cares_includes_string
31594
31595 int
31596 main (void)
31597 {
31598
31599         if(0 != strcasecmp(0, 0))
31600           return 1;
31601
31602   ;
31603   return 0;
31604 }
31605
31606 _ACEOF
31607 if ac_fn_c_try_compile "$LINENO"
31608 then :
31609
31610       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31611 printf "%s\n" "yes" >&6; }
31612       tst_compi_strcasecmp="yes"
31613
31614 else $as_nop
31615
31616       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 printf "%s\n" "no" >&6; }
31618       tst_compi_strcasecmp="no"
31619
31620 fi
31621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31622   fi
31623   #
31624   if test "$tst_compi_strcasecmp" = "yes"; then
31625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
31626 printf %s "checking if strcasecmp usage allowed... " >&6; }
31627     if test "x$cares_disallow_strcasecmp" != "xyes"; then
31628       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629 printf "%s\n" "yes" >&6; }
31630       tst_allow_strcasecmp="yes"
31631     else
31632       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31633 printf "%s\n" "no" >&6; }
31634       tst_allow_strcasecmp="no"
31635     fi
31636   fi
31637   #
31638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
31639 printf %s "checking if strcasecmp might be used... " >&6; }
31640   if test "$tst_links_strcasecmp" = "yes" &&
31641      test "$tst_proto_strcasecmp" = "yes" &&
31642      test "$tst_compi_strcasecmp" = "yes" &&
31643      test "$tst_allow_strcasecmp" = "yes"; then
31644     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31645 printf "%s\n" "yes" >&6; }
31646
31647 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
31648
31649     ac_cv_func_strcasecmp="yes"
31650   else
31651     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31652 printf "%s\n" "no" >&6; }
31653     ac_cv_func_strcasecmp="no"
31654   fi
31655
31656
31657     #
31658   tst_links_strcmpi="unknown"
31659   tst_proto_strcmpi="unknown"
31660   tst_compi_strcmpi="unknown"
31661   tst_allow_strcmpi="unknown"
31662   #
31663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
31664 printf %s "checking if strcmpi can be linked... " >&6; }
31665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31666 /* end confdefs.h.  */
31667
31668     /* Define strcmpi to an innocuous variant, in case <limits.h> declares strcmpi.
31669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31670 #define strcmpi innocuous_strcmpi
31671
31672 /* System header to define __stub macros and hopefully few prototypes,
31673    which can conflict with char strcmpi (); below.  */
31674
31675 #include <limits.h>
31676 #undef strcmpi
31677
31678 /* Override any GCC internal prototype to avoid an error.
31679    Use char because int might match the return type of a GCC
31680    builtin and then its argument prototype would still apply.  */
31681 #ifdef __cplusplus
31682 extern "C"
31683 #endif
31684 char strcmpi ();
31685 /* The GNU C library defines this for functions which it implements
31686     to always fail with ENOSYS.  Some functions are actually named
31687     something starting with __ and the normal name is an alias.  */
31688 #if defined __stub_strcmpi || defined __stub___strcmpi
31689 choke me
31690 #endif
31691
31692 int
31693 main (void)
31694 {
31695 return strcmpi ();
31696   ;
31697   return 0;
31698 }
31699
31700 _ACEOF
31701 if ac_fn_c_try_link "$LINENO"
31702 then :
31703
31704     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31705 printf "%s\n" "yes" >&6; }
31706     tst_links_strcmpi="yes"
31707
31708 else $as_nop
31709
31710     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31711 printf "%s\n" "no" >&6; }
31712     tst_links_strcmpi="no"
31713
31714 fi
31715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31716     conftest$ac_exeext conftest.$ac_ext
31717   #
31718   if test "$tst_links_strcmpi" = "yes"; then
31719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
31720 printf %s "checking if strcmpi is prototyped... " >&6; }
31721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31722 /* end confdefs.h.  */
31723
31724       $cares_includes_string
31725
31726 _ACEOF
31727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728   $EGREP "strcmpi" >/dev/null 2>&1
31729 then :
31730
31731       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31732 printf "%s\n" "yes" >&6; }
31733       tst_proto_strcmpi="yes"
31734
31735 else $as_nop
31736
31737       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31738 printf "%s\n" "no" >&6; }
31739       tst_proto_strcmpi="no"
31740
31741 fi
31742 rm -rf conftest*
31743
31744   fi
31745   #
31746   if test "$tst_proto_strcmpi" = "yes"; then
31747     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
31748 printf %s "checking if strcmpi is compilable... " >&6; }
31749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31750 /* end confdefs.h.  */
31751
31752
31753         $cares_includes_string
31754
31755 int
31756 main (void)
31757 {
31758
31759         if(0 != strcmpi(0, 0))
31760           return 1;
31761
31762   ;
31763   return 0;
31764 }
31765
31766 _ACEOF
31767 if ac_fn_c_try_compile "$LINENO"
31768 then :
31769
31770       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31771 printf "%s\n" "yes" >&6; }
31772       tst_compi_strcmpi="yes"
31773
31774 else $as_nop
31775
31776       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31777 printf "%s\n" "no" >&6; }
31778       tst_compi_strcmpi="no"
31779
31780 fi
31781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31782   fi
31783   #
31784   if test "$tst_compi_strcmpi" = "yes"; then
31785     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
31786 printf %s "checking if strcmpi usage allowed... " >&6; }
31787     if test "x$cares_disallow_strcmpi" != "xyes"; then
31788       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31789 printf "%s\n" "yes" >&6; }
31790       tst_allow_strcmpi="yes"
31791     else
31792       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31793 printf "%s\n" "no" >&6; }
31794       tst_allow_strcmpi="no"
31795     fi
31796   fi
31797   #
31798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
31799 printf %s "checking if strcmpi might be used... " >&6; }
31800   if test "$tst_links_strcmpi" = "yes" &&
31801      test "$tst_proto_strcmpi" = "yes" &&
31802      test "$tst_compi_strcmpi" = "yes" &&
31803      test "$tst_allow_strcmpi" = "yes"; then
31804     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31805 printf "%s\n" "yes" >&6; }
31806
31807 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
31808
31809     ac_cv_func_strcmpi="yes"
31810   else
31811     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 printf "%s\n" "no" >&6; }
31813     ac_cv_func_strcmpi="no"
31814   fi
31815
31816
31817     #
31818   tst_links_strdup="unknown"
31819   tst_proto_strdup="unknown"
31820   tst_compi_strdup="unknown"
31821   tst_allow_strdup="unknown"
31822   #
31823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
31824 printf %s "checking if strdup can be linked... " >&6; }
31825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h.  */
31827
31828     /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
31829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31830 #define strdup innocuous_strdup
31831
31832 /* System header to define __stub macros and hopefully few prototypes,
31833    which can conflict with char strdup (); below.  */
31834
31835 #include <limits.h>
31836 #undef strdup
31837
31838 /* Override any GCC internal prototype to avoid an error.
31839    Use char because int might match the return type of a GCC
31840    builtin and then its argument prototype would still apply.  */
31841 #ifdef __cplusplus
31842 extern "C"
31843 #endif
31844 char strdup ();
31845 /* The GNU C library defines this for functions which it implements
31846     to always fail with ENOSYS.  Some functions are actually named
31847     something starting with __ and the normal name is an alias.  */
31848 #if defined __stub_strdup || defined __stub___strdup
31849 choke me
31850 #endif
31851
31852 int
31853 main (void)
31854 {
31855 return strdup ();
31856   ;
31857   return 0;
31858 }
31859
31860 _ACEOF
31861 if ac_fn_c_try_link "$LINENO"
31862 then :
31863
31864     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31865 printf "%s\n" "yes" >&6; }
31866     tst_links_strdup="yes"
31867
31868 else $as_nop
31869
31870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31871 printf "%s\n" "no" >&6; }
31872     tst_links_strdup="no"
31873
31874 fi
31875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31876     conftest$ac_exeext conftest.$ac_ext
31877   #
31878   if test "$tst_links_strdup" = "yes"; then
31879     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
31880 printf %s "checking if strdup is prototyped... " >&6; }
31881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31882 /* end confdefs.h.  */
31883
31884       $cares_includes_string
31885
31886 _ACEOF
31887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31888   $EGREP "strdup" >/dev/null 2>&1
31889 then :
31890
31891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31892 printf "%s\n" "yes" >&6; }
31893       tst_proto_strdup="yes"
31894
31895 else $as_nop
31896
31897       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898 printf "%s\n" "no" >&6; }
31899       tst_proto_strdup="no"
31900
31901 fi
31902 rm -rf conftest*
31903
31904   fi
31905   #
31906   if test "$tst_proto_strdup" = "yes"; then
31907     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
31908 printf %s "checking if strdup is compilable... " >&6; }
31909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31910 /* end confdefs.h.  */
31911
31912
31913         $cares_includes_string
31914
31915 int
31916 main (void)
31917 {
31918
31919         if(0 != strdup(0))
31920           return 1;
31921
31922   ;
31923   return 0;
31924 }
31925
31926 _ACEOF
31927 if ac_fn_c_try_compile "$LINENO"
31928 then :
31929
31930       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31931 printf "%s\n" "yes" >&6; }
31932       tst_compi_strdup="yes"
31933
31934 else $as_nop
31935
31936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31937 printf "%s\n" "no" >&6; }
31938       tst_compi_strdup="no"
31939
31940 fi
31941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31942   fi
31943   #
31944   if test "$tst_compi_strdup" = "yes"; then
31945     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
31946 printf %s "checking if strdup usage allowed... " >&6; }
31947     if test "x$cares_disallow_strdup" != "xyes"; then
31948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949 printf "%s\n" "yes" >&6; }
31950       tst_allow_strdup="yes"
31951     else
31952       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31953 printf "%s\n" "no" >&6; }
31954       tst_allow_strdup="no"
31955     fi
31956   fi
31957   #
31958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
31959 printf %s "checking if strdup might be used... " >&6; }
31960   if test "$tst_links_strdup" = "yes" &&
31961      test "$tst_proto_strdup" = "yes" &&
31962      test "$tst_compi_strdup" = "yes" &&
31963      test "$tst_allow_strdup" = "yes"; then
31964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31965 printf "%s\n" "yes" >&6; }
31966
31967 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
31968
31969     ac_cv_func_strdup="yes"
31970   else
31971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31972 printf "%s\n" "no" >&6; }
31973     ac_cv_func_strdup="no"
31974   fi
31975
31976
31977     #
31978   tst_links_stricmp="unknown"
31979   tst_proto_stricmp="unknown"
31980   tst_compi_stricmp="unknown"
31981   tst_allow_stricmp="unknown"
31982   #
31983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
31984 printf %s "checking if stricmp can be linked... " >&6; }
31985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31986 /* end confdefs.h.  */
31987
31988     /* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp.
31989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31990 #define stricmp innocuous_stricmp
31991
31992 /* System header to define __stub macros and hopefully few prototypes,
31993    which can conflict with char stricmp (); below.  */
31994
31995 #include <limits.h>
31996 #undef stricmp
31997
31998 /* Override any GCC internal prototype to avoid an error.
31999    Use char because int might match the return type of a GCC
32000    builtin and then its argument prototype would still apply.  */
32001 #ifdef __cplusplus
32002 extern "C"
32003 #endif
32004 char stricmp ();
32005 /* The GNU C library defines this for functions which it implements
32006     to always fail with ENOSYS.  Some functions are actually named
32007     something starting with __ and the normal name is an alias.  */
32008 #if defined __stub_stricmp || defined __stub___stricmp
32009 choke me
32010 #endif
32011
32012 int
32013 main (void)
32014 {
32015 return stricmp ();
32016   ;
32017   return 0;
32018 }
32019
32020 _ACEOF
32021 if ac_fn_c_try_link "$LINENO"
32022 then :
32023
32024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32025 printf "%s\n" "yes" >&6; }
32026     tst_links_stricmp="yes"
32027
32028 else $as_nop
32029
32030     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32031 printf "%s\n" "no" >&6; }
32032     tst_links_stricmp="no"
32033
32034 fi
32035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32036     conftest$ac_exeext conftest.$ac_ext
32037   #
32038   if test "$tst_links_stricmp" = "yes"; then
32039     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
32040 printf %s "checking if stricmp is prototyped... " >&6; }
32041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32042 /* end confdefs.h.  */
32043
32044       $cares_includes_string
32045
32046 _ACEOF
32047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32048   $EGREP "stricmp" >/dev/null 2>&1
32049 then :
32050
32051       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32052 printf "%s\n" "yes" >&6; }
32053       tst_proto_stricmp="yes"
32054
32055 else $as_nop
32056
32057       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32058 printf "%s\n" "no" >&6; }
32059       tst_proto_stricmp="no"
32060
32061 fi
32062 rm -rf conftest*
32063
32064   fi
32065   #
32066   if test "$tst_proto_stricmp" = "yes"; then
32067     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
32068 printf %s "checking if stricmp is compilable... " >&6; }
32069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32070 /* end confdefs.h.  */
32071
32072
32073         $cares_includes_string
32074
32075 int
32076 main (void)
32077 {
32078
32079         if(0 != stricmp(0, 0))
32080           return 1;
32081
32082   ;
32083   return 0;
32084 }
32085
32086 _ACEOF
32087 if ac_fn_c_try_compile "$LINENO"
32088 then :
32089
32090       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091 printf "%s\n" "yes" >&6; }
32092       tst_compi_stricmp="yes"
32093
32094 else $as_nop
32095
32096       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32097 printf "%s\n" "no" >&6; }
32098       tst_compi_stricmp="no"
32099
32100 fi
32101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32102   fi
32103   #
32104   if test "$tst_compi_stricmp" = "yes"; then
32105     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
32106 printf %s "checking if stricmp usage allowed... " >&6; }
32107     if test "x$cares_disallow_stricmp" != "xyes"; then
32108       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32109 printf "%s\n" "yes" >&6; }
32110       tst_allow_stricmp="yes"
32111     else
32112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32113 printf "%s\n" "no" >&6; }
32114       tst_allow_stricmp="no"
32115     fi
32116   fi
32117   #
32118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
32119 printf %s "checking if stricmp might be used... " >&6; }
32120   if test "$tst_links_stricmp" = "yes" &&
32121      test "$tst_proto_stricmp" = "yes" &&
32122      test "$tst_compi_stricmp" = "yes" &&
32123      test "$tst_allow_stricmp" = "yes"; then
32124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32125 printf "%s\n" "yes" >&6; }
32126
32127 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
32128
32129     ac_cv_func_stricmp="yes"
32130   else
32131     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 printf "%s\n" "no" >&6; }
32133     ac_cv_func_stricmp="no"
32134   fi
32135
32136
32137     #
32138   tst_links_strncasecmp="unknown"
32139   tst_proto_strncasecmp="unknown"
32140   tst_compi_strncasecmp="unknown"
32141   tst_allow_strncasecmp="unknown"
32142   #
32143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
32144 printf %s "checking if strncasecmp can be linked... " >&6; }
32145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32146 /* end confdefs.h.  */
32147
32148     /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
32149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32150 #define strncasecmp innocuous_strncasecmp
32151
32152 /* System header to define __stub macros and hopefully few prototypes,
32153    which can conflict with char strncasecmp (); below.  */
32154
32155 #include <limits.h>
32156 #undef strncasecmp
32157
32158 /* Override any GCC internal prototype to avoid an error.
32159    Use char because int might match the return type of a GCC
32160    builtin and then its argument prototype would still apply.  */
32161 #ifdef __cplusplus
32162 extern "C"
32163 #endif
32164 char strncasecmp ();
32165 /* The GNU C library defines this for functions which it implements
32166     to always fail with ENOSYS.  Some functions are actually named
32167     something starting with __ and the normal name is an alias.  */
32168 #if defined __stub_strncasecmp || defined __stub___strncasecmp
32169 choke me
32170 #endif
32171
32172 int
32173 main (void)
32174 {
32175 return strncasecmp ();
32176   ;
32177   return 0;
32178 }
32179
32180 _ACEOF
32181 if ac_fn_c_try_link "$LINENO"
32182 then :
32183
32184     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32185 printf "%s\n" "yes" >&6; }
32186     tst_links_strncasecmp="yes"
32187
32188 else $as_nop
32189
32190     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32191 printf "%s\n" "no" >&6; }
32192     tst_links_strncasecmp="no"
32193
32194 fi
32195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32196     conftest$ac_exeext conftest.$ac_ext
32197   #
32198   if test "$tst_links_strncasecmp" = "yes"; then
32199     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
32200 printf %s "checking if strncasecmp is prototyped... " >&6; }
32201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32202 /* end confdefs.h.  */
32203
32204       $cares_includes_string
32205
32206 _ACEOF
32207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32208   $EGREP "strncasecmp" >/dev/null 2>&1
32209 then :
32210
32211       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32212 printf "%s\n" "yes" >&6; }
32213       tst_proto_strncasecmp="yes"
32214
32215 else $as_nop
32216
32217       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32218 printf "%s\n" "no" >&6; }
32219       tst_proto_strncasecmp="no"
32220
32221 fi
32222 rm -rf conftest*
32223
32224   fi
32225   #
32226   if test "$tst_proto_strncasecmp" = "yes"; then
32227     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
32228 printf %s "checking if strncasecmp is compilable... " >&6; }
32229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32230 /* end confdefs.h.  */
32231
32232
32233         $cares_includes_string
32234
32235 int
32236 main (void)
32237 {
32238
32239         if(0 != strncasecmp(0, 0, 0))
32240           return 1;
32241
32242   ;
32243   return 0;
32244 }
32245
32246 _ACEOF
32247 if ac_fn_c_try_compile "$LINENO"
32248 then :
32249
32250       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32251 printf "%s\n" "yes" >&6; }
32252       tst_compi_strncasecmp="yes"
32253
32254 else $as_nop
32255
32256       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32257 printf "%s\n" "no" >&6; }
32258       tst_compi_strncasecmp="no"
32259
32260 fi
32261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32262   fi
32263   #
32264   if test "$tst_compi_strncasecmp" = "yes"; then
32265     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
32266 printf %s "checking if strncasecmp usage allowed... " >&6; }
32267     if test "x$cares_disallow_strncasecmp" != "xyes"; then
32268       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32269 printf "%s\n" "yes" >&6; }
32270       tst_allow_strncasecmp="yes"
32271     else
32272       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32273 printf "%s\n" "no" >&6; }
32274       tst_allow_strncasecmp="no"
32275     fi
32276   fi
32277   #
32278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
32279 printf %s "checking if strncasecmp might be used... " >&6; }
32280   if test "$tst_links_strncasecmp" = "yes" &&
32281      test "$tst_proto_strncasecmp" = "yes" &&
32282      test "$tst_compi_strncasecmp" = "yes" &&
32283      test "$tst_allow_strncasecmp" = "yes"; then
32284     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32285 printf "%s\n" "yes" >&6; }
32286
32287 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
32288
32289     ac_cv_func_strncasecmp="yes"
32290   else
32291     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32292 printf "%s\n" "no" >&6; }
32293     ac_cv_func_strncasecmp="no"
32294   fi
32295
32296
32297     #
32298   tst_links_strncmpi="unknown"
32299   tst_proto_strncmpi="unknown"
32300   tst_compi_strncmpi="unknown"
32301   tst_allow_strncmpi="unknown"
32302   #
32303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
32304 printf %s "checking if strncmpi can be linked... " >&6; }
32305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32306 /* end confdefs.h.  */
32307
32308     /* Define strncmpi to an innocuous variant, in case <limits.h> declares strncmpi.
32309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32310 #define strncmpi innocuous_strncmpi
32311
32312 /* System header to define __stub macros and hopefully few prototypes,
32313    which can conflict with char strncmpi (); below.  */
32314
32315 #include <limits.h>
32316 #undef strncmpi
32317
32318 /* Override any GCC internal prototype to avoid an error.
32319    Use char because int might match the return type of a GCC
32320    builtin and then its argument prototype would still apply.  */
32321 #ifdef __cplusplus
32322 extern "C"
32323 #endif
32324 char strncmpi ();
32325 /* The GNU C library defines this for functions which it implements
32326     to always fail with ENOSYS.  Some functions are actually named
32327     something starting with __ and the normal name is an alias.  */
32328 #if defined __stub_strncmpi || defined __stub___strncmpi
32329 choke me
32330 #endif
32331
32332 int
32333 main (void)
32334 {
32335 return strncmpi ();
32336   ;
32337   return 0;
32338 }
32339
32340 _ACEOF
32341 if ac_fn_c_try_link "$LINENO"
32342 then :
32343
32344     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32345 printf "%s\n" "yes" >&6; }
32346     tst_links_strncmpi="yes"
32347
32348 else $as_nop
32349
32350     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 printf "%s\n" "no" >&6; }
32352     tst_links_strncmpi="no"
32353
32354 fi
32355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32356     conftest$ac_exeext conftest.$ac_ext
32357   #
32358   if test "$tst_links_strncmpi" = "yes"; then
32359     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
32360 printf %s "checking if strncmpi is prototyped... " >&6; }
32361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32362 /* end confdefs.h.  */
32363
32364       $cares_includes_string
32365
32366 _ACEOF
32367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32368   $EGREP "strncmpi" >/dev/null 2>&1
32369 then :
32370
32371       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32372 printf "%s\n" "yes" >&6; }
32373       tst_proto_strncmpi="yes"
32374
32375 else $as_nop
32376
32377       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32378 printf "%s\n" "no" >&6; }
32379       tst_proto_strncmpi="no"
32380
32381 fi
32382 rm -rf conftest*
32383
32384   fi
32385   #
32386   if test "$tst_proto_strncmpi" = "yes"; then
32387     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
32388 printf %s "checking if strncmpi is compilable... " >&6; }
32389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32390 /* end confdefs.h.  */
32391
32392
32393         $cares_includes_string
32394
32395 int
32396 main (void)
32397 {
32398
32399         if(0 != strncmpi(0, 0))
32400           return 1;
32401
32402   ;
32403   return 0;
32404 }
32405
32406 _ACEOF
32407 if ac_fn_c_try_compile "$LINENO"
32408 then :
32409
32410       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32411 printf "%s\n" "yes" >&6; }
32412       tst_compi_strncmpi="yes"
32413
32414 else $as_nop
32415
32416       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32417 printf "%s\n" "no" >&6; }
32418       tst_compi_strncmpi="no"
32419
32420 fi
32421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32422   fi
32423   #
32424   if test "$tst_compi_strncmpi" = "yes"; then
32425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
32426 printf %s "checking if strncmpi usage allowed... " >&6; }
32427     if test "x$cares_disallow_strncmpi" != "xyes"; then
32428       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 printf "%s\n" "yes" >&6; }
32430       tst_allow_strncmpi="yes"
32431     else
32432       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433 printf "%s\n" "no" >&6; }
32434       tst_allow_strncmpi="no"
32435     fi
32436   fi
32437   #
32438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
32439 printf %s "checking if strncmpi might be used... " >&6; }
32440   if test "$tst_links_strncmpi" = "yes" &&
32441      test "$tst_proto_strncmpi" = "yes" &&
32442      test "$tst_compi_strncmpi" = "yes" &&
32443      test "$tst_allow_strncmpi" = "yes"; then
32444     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32445 printf "%s\n" "yes" >&6; }
32446
32447 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
32448
32449     ac_cv_func_strncmpi="yes"
32450   else
32451     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32452 printf "%s\n" "no" >&6; }
32453     ac_cv_func_strncmpi="no"
32454   fi
32455
32456
32457     #
32458   tst_links_strnicmp="unknown"
32459   tst_proto_strnicmp="unknown"
32460   tst_compi_strnicmp="unknown"
32461   tst_allow_strnicmp="unknown"
32462   #
32463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
32464 printf %s "checking if strnicmp can be linked... " >&6; }
32465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32466 /* end confdefs.h.  */
32467
32468     /* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp.
32469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32470 #define strnicmp innocuous_strnicmp
32471
32472 /* System header to define __stub macros and hopefully few prototypes,
32473    which can conflict with char strnicmp (); below.  */
32474
32475 #include <limits.h>
32476 #undef strnicmp
32477
32478 /* Override any GCC internal prototype to avoid an error.
32479    Use char because int might match the return type of a GCC
32480    builtin and then its argument prototype would still apply.  */
32481 #ifdef __cplusplus
32482 extern "C"
32483 #endif
32484 char strnicmp ();
32485 /* The GNU C library defines this for functions which it implements
32486     to always fail with ENOSYS.  Some functions are actually named
32487     something starting with __ and the normal name is an alias.  */
32488 #if defined __stub_strnicmp || defined __stub___strnicmp
32489 choke me
32490 #endif
32491
32492 int
32493 main (void)
32494 {
32495 return strnicmp ();
32496   ;
32497   return 0;
32498 }
32499
32500 _ACEOF
32501 if ac_fn_c_try_link "$LINENO"
32502 then :
32503
32504     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32505 printf "%s\n" "yes" >&6; }
32506     tst_links_strnicmp="yes"
32507
32508 else $as_nop
32509
32510     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32511 printf "%s\n" "no" >&6; }
32512     tst_links_strnicmp="no"
32513
32514 fi
32515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32516     conftest$ac_exeext conftest.$ac_ext
32517   #
32518   if test "$tst_links_strnicmp" = "yes"; then
32519     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
32520 printf %s "checking if strnicmp is prototyped... " >&6; }
32521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32522 /* end confdefs.h.  */
32523
32524       $cares_includes_string
32525
32526 _ACEOF
32527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32528   $EGREP "strnicmp" >/dev/null 2>&1
32529 then :
32530
32531       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32532 printf "%s\n" "yes" >&6; }
32533       tst_proto_strnicmp="yes"
32534
32535 else $as_nop
32536
32537       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32538 printf "%s\n" "no" >&6; }
32539       tst_proto_strnicmp="no"
32540
32541 fi
32542 rm -rf conftest*
32543
32544   fi
32545   #
32546   if test "$tst_proto_strnicmp" = "yes"; then
32547     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
32548 printf %s "checking if strnicmp is compilable... " >&6; }
32549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32550 /* end confdefs.h.  */
32551
32552
32553         $cares_includes_string
32554
32555 int
32556 main (void)
32557 {
32558
32559         if(0 != strnicmp(0, 0))
32560           return 1;
32561
32562   ;
32563   return 0;
32564 }
32565
32566 _ACEOF
32567 if ac_fn_c_try_compile "$LINENO"
32568 then :
32569
32570       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32571 printf "%s\n" "yes" >&6; }
32572       tst_compi_strnicmp="yes"
32573
32574 else $as_nop
32575
32576       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32577 printf "%s\n" "no" >&6; }
32578       tst_compi_strnicmp="no"
32579
32580 fi
32581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32582   fi
32583   #
32584   if test "$tst_compi_strnicmp" = "yes"; then
32585     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
32586 printf %s "checking if strnicmp usage allowed... " >&6; }
32587     if test "x$cares_disallow_strnicmp" != "xyes"; then
32588       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32589 printf "%s\n" "yes" >&6; }
32590       tst_allow_strnicmp="yes"
32591     else
32592       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32593 printf "%s\n" "no" >&6; }
32594       tst_allow_strnicmp="no"
32595     fi
32596   fi
32597   #
32598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
32599 printf %s "checking if strnicmp might be used... " >&6; }
32600   if test "$tst_links_strnicmp" = "yes" &&
32601      test "$tst_proto_strnicmp" = "yes" &&
32602      test "$tst_compi_strnicmp" = "yes" &&
32603      test "$tst_allow_strnicmp" = "yes"; then
32604     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32605 printf "%s\n" "yes" >&6; }
32606
32607 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
32608
32609     ac_cv_func_strnicmp="yes"
32610   else
32611     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32612 printf "%s\n" "no" >&6; }
32613     ac_cv_func_strnicmp="no"
32614   fi
32615
32616
32617 cares_includes_sys_uio="\
32618 /* includes start */
32619 #ifdef HAVE_SYS_TYPES_H
32620 #  include <sys/types.h>
32621 #endif
32622 #ifdef HAVE_SYS_UIO_H
32623 #  include <sys/uio.h>
32624 #endif
32625 /* includes end */"
32626   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_uio
32627 "
32628 if test "x$ac_cv_header_sys_types_h" = xyes
32629 then :
32630   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32631
32632 fi
32633 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$cares_includes_sys_uio
32634 "
32635 if test "x$ac_cv_header_sys_uio_h" = xyes
32636 then :
32637   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32638
32639 fi
32640
32641
32642
32643     #
32644   tst_links_writev="unknown"
32645   tst_proto_writev="unknown"
32646   tst_compi_writev="unknown"
32647   tst_allow_writev="unknown"
32648   #
32649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
32650 printf %s "checking if writev can be linked... " >&6; }
32651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32652 /* end confdefs.h.  */
32653
32654     /* Define writev to an innocuous variant, in case <limits.h> declares writev.
32655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32656 #define writev innocuous_writev
32657
32658 /* System header to define __stub macros and hopefully few prototypes,
32659    which can conflict with char writev (); below.  */
32660
32661 #include <limits.h>
32662 #undef writev
32663
32664 /* Override any GCC internal prototype to avoid an error.
32665    Use char because int might match the return type of a GCC
32666    builtin and then its argument prototype would still apply.  */
32667 #ifdef __cplusplus
32668 extern "C"
32669 #endif
32670 char writev ();
32671 /* The GNU C library defines this for functions which it implements
32672     to always fail with ENOSYS.  Some functions are actually named
32673     something starting with __ and the normal name is an alias.  */
32674 #if defined __stub_writev || defined __stub___writev
32675 choke me
32676 #endif
32677
32678 int
32679 main (void)
32680 {
32681 return writev ();
32682   ;
32683   return 0;
32684 }
32685
32686 _ACEOF
32687 if ac_fn_c_try_link "$LINENO"
32688 then :
32689
32690     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32691 printf "%s\n" "yes" >&6; }
32692     tst_links_writev="yes"
32693
32694 else $as_nop
32695
32696     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32697 printf "%s\n" "no" >&6; }
32698     tst_links_writev="no"
32699
32700 fi
32701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32702     conftest$ac_exeext conftest.$ac_ext
32703   #
32704   if test "$tst_links_writev" = "yes"; then
32705     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
32706 printf %s "checking if writev is prototyped... " >&6; }
32707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32708 /* end confdefs.h.  */
32709
32710       $cares_includes_sys_uio
32711
32712 _ACEOF
32713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32714   $EGREP "writev" >/dev/null 2>&1
32715 then :
32716
32717       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32718 printf "%s\n" "yes" >&6; }
32719       tst_proto_writev="yes"
32720
32721 else $as_nop
32722
32723       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32724 printf "%s\n" "no" >&6; }
32725       tst_proto_writev="no"
32726
32727 fi
32728 rm -rf conftest*
32729
32730   fi
32731   #
32732   if test "$tst_proto_writev" = "yes"; then
32733     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
32734 printf %s "checking if writev is compilable... " >&6; }
32735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32736 /* end confdefs.h.  */
32737
32738
32739         $cares_includes_sys_uio
32740
32741 int
32742 main (void)
32743 {
32744
32745         if(0 != writev(0, 0, 0))
32746           return 1;
32747
32748   ;
32749   return 0;
32750 }
32751
32752 _ACEOF
32753 if ac_fn_c_try_compile "$LINENO"
32754 then :
32755
32756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32757 printf "%s\n" "yes" >&6; }
32758       tst_compi_writev="yes"
32759
32760 else $as_nop
32761
32762       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32763 printf "%s\n" "no" >&6; }
32764       tst_compi_writev="no"
32765
32766 fi
32767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32768   fi
32769   #
32770   if test "$tst_compi_writev" = "yes"; then
32771     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
32772 printf %s "checking if writev usage allowed... " >&6; }
32773     if test "x$cares_disallow_writev" != "xyes"; then
32774       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32775 printf "%s\n" "yes" >&6; }
32776       tst_allow_writev="yes"
32777     else
32778       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32779 printf "%s\n" "no" >&6; }
32780       tst_allow_writev="no"
32781     fi
32782   fi
32783   #
32784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
32785 printf %s "checking if writev might be used... " >&6; }
32786   if test "$tst_links_writev" = "yes" &&
32787      test "$tst_proto_writev" = "yes" &&
32788      test "$tst_compi_writev" = "yes" &&
32789      test "$tst_allow_writev" = "yes"; then
32790     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32791 printf "%s\n" "yes" >&6; }
32792
32793 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
32794
32795     ac_cv_func_writev="yes"
32796   else
32797     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32798 printf "%s\n" "no" >&6; }
32799     ac_cv_func_writev="no"
32800   fi
32801
32802
32803
32804
32805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
32806 printf %s "checking for PF_INET6... " >&6; }
32807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h.  */
32809
32810
32811 #undef inline
32812 #ifdef HAVE_WINDOWS_H
32813 #ifndef WIN32_LEAN_AND_MEAN
32814 #define WIN32_LEAN_AND_MEAN
32815 #endif
32816 #include <windows.h>
32817 #ifdef HAVE_WINSOCK2_H
32818 #include <winsock2.h>
32819 #endif
32820 #else
32821 #ifdef HAVE_SYS_TYPES_H
32822 #include <sys/types.h>
32823 #endif
32824 #ifdef HAVE_SYS_SOCKET_H
32825 #include <sys/socket.h>
32826 #endif
32827 #endif
32828
32829
32830       #ifdef PF_INET6
32831         VARIABLEWASDEFINED
32832       #else
32833         NJET
32834       #endif
32835
32836 _ACEOF
32837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32838   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
32839 then :
32840   ac_constant="yes"
32841 else $as_nop
32842   ac_constant="no"
32843
32844 fi
32845 rm -rf conftest*
32846
32847   if test "$ac_constant" = "yes" ; then
32848     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32849 printf "%s\n" "yes" >&6; }
32850
32851 printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h
32852
32853
32854   else
32855     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32856 printf "%s\n" "no" >&6; }
32857
32858   fi
32859
32860
32861
32862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
32863 printf %s "checking for AF_INET6... " >&6; }
32864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32865 /* end confdefs.h.  */
32866
32867
32868 #undef inline
32869 #ifdef HAVE_WINDOWS_H
32870 #ifndef WIN32_LEAN_AND_MEAN
32871 #define WIN32_LEAN_AND_MEAN
32872 #endif
32873 #include <windows.h>
32874 #ifdef HAVE_WINSOCK2_H
32875 #include <winsock2.h>
32876 #endif
32877 #else
32878 #ifdef HAVE_SYS_TYPES_H
32879 #include <sys/types.h>
32880 #endif
32881 #ifdef HAVE_SYS_SOCKET_H
32882 #include <sys/socket.h>
32883 #endif
32884 #endif
32885
32886
32887       #ifdef AF_INET6
32888         VARIABLEWASDEFINED
32889       #else
32890         NJET
32891       #endif
32892
32893 _ACEOF
32894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32895   $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
32896 then :
32897   ac_constant="yes"
32898 else $as_nop
32899   ac_constant="no"
32900
32901 fi
32902 rm -rf conftest*
32903
32904   if test "$ac_constant" = "yes" ; then
32905     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32906 printf "%s\n" "yes" >&6; }
32907
32908 printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h
32909
32910
32911   else
32912     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32913 printf "%s\n" "no" >&6; }
32914
32915   fi
32916
32917
32918
32919
32920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
32921 printf %s "checking for struct in6_addr... " >&6; }
32922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32923 /* end confdefs.h.  */
32924
32925 #undef inline
32926 #ifdef HAVE_WINDOWS_H
32927 #ifndef WIN32_LEAN_AND_MEAN
32928 #define WIN32_LEAN_AND_MEAN
32929 #endif
32930 #include <windows.h>
32931 #ifdef HAVE_WINSOCK2_H
32932 #include <winsock2.h>
32933 #ifdef HAVE_WS2TCPIP_H
32934 #include <ws2tcpip.h>
32935 #endif
32936 #endif
32937 #else
32938 #ifdef HAVE_SYS_TYPES_H
32939 #include <sys/types.h>
32940 #endif
32941 #ifdef HAVE_NETINET_IN_H
32942 #include <netinet/in.h>
32943 #endif
32944 #endif
32945
32946 int
32947 main (void)
32948 {
32949
32950       struct in6_addr struct_instance;
32951
32952   ;
32953   return 0;
32954 }
32955 _ACEOF
32956 if ac_fn_c_try_compile "$LINENO"
32957 then :
32958   ac_struct="yes"
32959 else $as_nop
32960   ac_found="no"
32961 fi
32962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32963   if test "$ac_struct" = "yes" ; then
32964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32965 printf "%s\n" "yes" >&6; }
32966
32967 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
32968
32969
32970   else
32971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32972 printf "%s\n" "no" >&6; }
32973
32974   fi
32975
32976
32977
32978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
32979 printf %s "checking for struct sockaddr_in6... " >&6; }
32980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32981 /* end confdefs.h.  */
32982
32983 #undef inline
32984 #ifdef HAVE_WINDOWS_H
32985 #ifndef WIN32_LEAN_AND_MEAN
32986 #define WIN32_LEAN_AND_MEAN
32987 #endif
32988 #include <windows.h>
32989 #ifdef HAVE_WINSOCK2_H
32990 #include <winsock2.h>
32991 #ifdef HAVE_WS2TCPIP_H
32992 #include <ws2tcpip.h>
32993 #endif
32994 #endif
32995 #else
32996 #ifdef HAVE_SYS_TYPES_H
32997 #include <sys/types.h>
32998 #endif
32999 #ifdef HAVE_NETINET_IN_H
33000 #include <netinet/in.h>
33001 #endif
33002 #endif
33003
33004 int
33005 main (void)
33006 {
33007
33008       struct sockaddr_in6 struct_instance;
33009
33010   ;
33011   return 0;
33012 }
33013 _ACEOF
33014 if ac_fn_c_try_compile "$LINENO"
33015 then :
33016   ac_struct="yes"
33017 else $as_nop
33018   ac_found="no"
33019 fi
33020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33021   if test "$ac_struct" = "yes" ; then
33022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33023 printf "%s\n" "yes" >&6; }
33024
33025 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
33026  ac_have_sockaddr_in6=yes
33027
33028   else
33029     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 printf "%s\n" "no" >&6; }
33031
33032   fi
33033
33034
33035 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
33036 #undef inline
33037 #ifdef HAVE_WINDOWS_H
33038 #ifndef WIN32_LEAN_AND_MEAN
33039 #define WIN32_LEAN_AND_MEAN
33040 #endif
33041 #include <windows.h>
33042 #ifdef HAVE_WINSOCK2_H
33043 #include <winsock2.h>
33044 #ifdef HAVE_WS2TCPIP_H
33045 #include <ws2tcpip.h>
33046 #endif
33047 #endif
33048 #else
33049 #ifdef HAVE_SYS_TYPES_H
33050 #include <sys/types.h>
33051 #endif
33052 #ifdef HAVE_NETINET_IN_H
33053 #include <netinet/in.h>
33054 #endif
33055 #endif
33056
33057 "
33058 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
33059 then :
33060
33061 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
33062
33063
33064 fi
33065
33066
33067 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
33068 #undef inline
33069 #ifdef HAVE_WINDOWS_H
33070 #ifndef WIN32_LEAN_AND_MEAN
33071 #define WIN32_LEAN_AND_MEAN
33072 #endif
33073 #include <windows.h>
33074 #ifdef HAVE_WINSOCK2_H
33075 #include <winsock2.h>
33076 #ifdef HAVE_WS2TCPIP_H
33077 #include <ws2tcpip.h>
33078 #endif
33079 #endif
33080 #else
33081 #ifdef HAVE_SYS_TYPES_H
33082 #include <sys/types.h>
33083 #endif
33084 #ifdef HAVE_NETINET_IN_H
33085 #include <netinet/in.h>
33086 #endif
33087 #ifdef HAVE_SYS_SOCKET_H
33088 #include <sys/socket.h>
33089 #endif
33090 #ifdef HAVE_NETDB_H
33091 #include <netdb.h>
33092 #endif
33093 #endif
33094
33095
33096 "
33097 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes
33098 then :
33099
33100 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
33101
33102 fi
33103
33104
33105
33106
33107   for ac_func in bitncmp gettimeofday if_indextoname
33108 do :
33109   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
33110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33111 if eval test \"x\$"$as_ac_var"\" = x"yes"
33112 then :
33113   cat >>confdefs.h <<_ACEOF
33114 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
33115 _ACEOF
33116
33117
33118 else $as_nop
33119
33120   func="$ac_func"
33121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
33122 printf %s "checking deeper for $func... " >&6; }
33123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33124 /* end confdefs.h.  */
33125
33126
33127
33128 int
33129 main (void)
33130 {
33131
33132       $func ();
33133
33134   ;
33135   return 0;
33136 }
33137
33138 _ACEOF
33139 if ac_fn_c_try_link "$LINENO"
33140 then :
33141
33142     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33143 printf "%s\n" "yes" >&6; }
33144     eval "ac_cv_func_$func=yes"
33145
33146 cat >>confdefs.h <<_ACEOF
33147 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
33148 _ACEOF
33149
33150
33151 else $as_nop
33152
33153     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33154 printf "%s\n" "but still no" >&6; }
33155
33156 fi
33157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33158     conftest$ac_exeext conftest.$ac_ext
33159
33160 fi
33161
33162 done
33163
33164 ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
33165 if test "x$ac_cv_func___system_property_get" = xyes
33166 then :
33167
33168
33169 printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
33170
33171
33172 fi
33173
33174
33175
33176     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33177 if test "x$ac_cv_header_sys_types_h" = xyes
33178 then :
33179   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33180
33181 fi
33182 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33183 if test "x$ac_cv_header_sys_socket_h" = xyes
33184 then :
33185   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33186
33187 fi
33188 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
33189 if test "x$ac_cv_header_netdb_h" = xyes
33190 then :
33191   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33192
33193 fi
33194
33195   #
33196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
33197 printf %s "checking for getnameinfo... " >&6; }
33198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33199 /* end confdefs.h.  */
33200
33201     /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
33202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33203 #define getnameinfo innocuous_getnameinfo
33204
33205 /* System header to define __stub macros and hopefully few prototypes,
33206    which can conflict with char getnameinfo (); below.  */
33207
33208 #include <limits.h>
33209 #undef getnameinfo
33210
33211 /* Override any GCC internal prototype to avoid an error.
33212    Use char because int might match the return type of a GCC
33213    builtin and then its argument prototype would still apply.  */
33214 #ifdef __cplusplus
33215 extern "C"
33216 #endif
33217 char getnameinfo ();
33218 /* The GNU C library defines this for functions which it implements
33219     to always fail with ENOSYS.  Some functions are actually named
33220     something starting with __ and the normal name is an alias.  */
33221 #if defined __stub_getnameinfo || defined __stub___getnameinfo
33222 choke me
33223 #endif
33224
33225 int
33226 main (void)
33227 {
33228 return getnameinfo ();
33229   ;
33230   return 0;
33231 }
33232
33233 _ACEOF
33234 if ac_fn_c_try_link "$LINENO"
33235 then :
33236
33237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33238 printf "%s\n" "yes" >&6; }
33239     curl_cv_getnameinfo="yes"
33240
33241 else $as_nop
33242
33243     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33244 printf "%s\n" "no" >&6; }
33245     curl_cv_getnameinfo="no"
33246
33247 fi
33248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33249     conftest$ac_exeext conftest.$ac_ext
33250   #
33251   if test "$curl_cv_getnameinfo" != "yes"; then
33252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
33253 printf %s "checking deeper for getnameinfo... " >&6; }
33254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33255 /* end confdefs.h.  */
33256
33257
33258
33259 int
33260 main (void)
33261 {
33262
33263         getnameinfo();
33264
33265   ;
33266   return 0;
33267 }
33268
33269 _ACEOF
33270 if ac_fn_c_try_link "$LINENO"
33271 then :
33272
33273       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33274 printf "%s\n" "yes" >&6; }
33275       curl_cv_getnameinfo="yes"
33276
33277 else $as_nop
33278
33279       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33280 printf "%s\n" "but still no" >&6; }
33281       curl_cv_getnameinfo="no"
33282
33283 fi
33284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33285     conftest$ac_exeext conftest.$ac_ext
33286   fi
33287   #
33288   if test "$curl_cv_getnameinfo" != "yes"; then
33289     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
33290 printf %s "checking deeper and deeper for getnameinfo... " >&6; }
33291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33292 /* end confdefs.h.  */
33293
33294
33295 #undef inline
33296 #ifdef HAVE_WINDOWS_H
33297 #ifndef WIN32_LEAN_AND_MEAN
33298 #define WIN32_LEAN_AND_MEAN
33299 #endif
33300 #include <windows.h>
33301 #ifdef HAVE_WINSOCK2_H
33302 #include <winsock2.h>
33303 #ifdef HAVE_WS2TCPIP_H
33304 #include <ws2tcpip.h>
33305 #endif
33306 #endif
33307 #else
33308 #ifdef HAVE_SYS_TYPES_H
33309 #include <sys/types.h>
33310 #endif
33311 #ifdef HAVE_SYS_SOCKET_H
33312 #include <sys/socket.h>
33313 #endif
33314 #ifdef HAVE_NETDB_H
33315 #include <netdb.h>
33316 #endif
33317 #endif
33318
33319 int
33320 main (void)
33321 {
33322
33323         getnameinfo(0, 0, 0, 0, 0, 0, 0);
33324
33325   ;
33326   return 0;
33327 }
33328
33329 _ACEOF
33330 if ac_fn_c_try_link "$LINENO"
33331 then :
33332
33333       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33334 printf "%s\n" "yes" >&6; }
33335       curl_cv_getnameinfo="yes"
33336
33337 else $as_nop
33338
33339       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33340 printf "%s\n" "but still no" >&6; }
33341       curl_cv_getnameinfo="no"
33342
33343 fi
33344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33345     conftest$ac_exeext conftest.$ac_ext
33346   fi
33347   #
33348   if test "$curl_cv_getnameinfo" = "yes"; then
33349     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
33350 printf %s "checking types of arguments for getnameinfo... " >&6; }
33351 if test ${curl_cv_func_getnameinfo_args+y}
33352 then :
33353   printf %s "(cached) " >&6
33354 else $as_nop
33355
33356       curl_cv_func_getnameinfo_args="unknown"
33357       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
33358         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
33359           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
33360             for gni_arg7 in 'int' 'unsigned int'; do
33361               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33362                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33363 /* end confdefs.h.  */
33364
33365
33366 #undef inline
33367 #ifdef HAVE_WINDOWS_H
33368 #ifndef WIN32_LEAN_AND_MEAN
33369 #define WIN32_LEAN_AND_MEAN
33370 #endif
33371 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
33372 #undef _WIN32_WINNT
33373 #define _WIN32_WINNT 0x0501
33374 #endif
33375 #include <windows.h>
33376 #ifdef HAVE_WINSOCK2_H
33377 #include <winsock2.h>
33378 #ifdef HAVE_WS2TCPIP_H
33379 #include <ws2tcpip.h>
33380 #endif
33381 #endif
33382 #define GNICALLCONV WSAAPI
33383 #else
33384 #ifdef HAVE_SYS_TYPES_H
33385 #include <sys/types.h>
33386 #endif
33387 #ifdef HAVE_SYS_SOCKET_H
33388 #include <sys/socket.h>
33389 #endif
33390 #ifdef HAVE_NETDB_H
33391 #include <netdb.h>
33392 #endif
33393 #define GNICALLCONV
33394 #endif
33395                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
33396                                            char *, $gni_arg46,
33397                                            char *, $gni_arg46,
33398                                            $gni_arg7);
33399
33400 int
33401 main (void)
33402 {
33403
33404                     $gni_arg2 salen=0;
33405                     $gni_arg46 hostlen=0;
33406                     $gni_arg46 servlen=0;
33407                     $gni_arg7 flags=0;
33408                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
33409
33410   ;
33411   return 0;
33412 }
33413
33414 _ACEOF
33415 if ac_fn_c_try_compile "$LINENO"
33416 then :
33417
33418                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
33419
33420 fi
33421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33422               fi
33423             done
33424           done
33425         done
33426       done
33427
33428 fi
33429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
33430 printf "%s\n" "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
33431     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33432       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
33433 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
33434       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
33435 printf "%s\n" "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
33436     else
33437       gni_prev_IFS=$IFS; IFS=','
33438       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
33439       IFS=$gni_prev_IFS
33440       shift
33441       #
33442       gni_qual_type_arg1=$1
33443       #
33444
33445 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2 $2" >>confdefs.h
33446
33447
33448 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46 $3" >>confdefs.h
33449
33450
33451 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7 $4" >>confdefs.h
33452
33453       #
33454       prev_sh_opts=$-
33455       #
33456       case $prev_sh_opts in
33457         *f*)
33458           ;;
33459         *)
33460           set -f
33461           ;;
33462       esac
33463       #
33464       case "$gni_qual_type_arg1" in
33465         const*)
33466           gni_qual_arg1=const
33467           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
33468         ;;
33469         *)
33470           gni_qual_arg1=
33471           gni_type_arg1=$gni_qual_type_arg1
33472         ;;
33473       esac
33474       #
33475
33476 printf "%s\n" "#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1" >>confdefs.h
33477
33478
33479 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1" >>confdefs.h
33480
33481       #
33482       case $prev_sh_opts in
33483         *f*)
33484           ;;
33485         *)
33486           set +f
33487           ;;
33488       esac
33489       #
33490
33491 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
33492
33493       ac_cv_func_getnameinfo="yes"
33494     fi
33495   fi
33496
33497
33498
33499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
33500 printf %s "checking whether byte ordering is bigendian... " >&6; }
33501 if test ${ac_cv_c_bigendian+y}
33502 then :
33503   printf %s "(cached) " >&6
33504 else $as_nop
33505   ac_cv_c_bigendian=unknown
33506     # See if we're dealing with a universal compiler.
33507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33508 /* end confdefs.h.  */
33509 #ifndef __APPLE_CC__
33510                not a universal capable compiler
33511              #endif
33512              typedef int dummy;
33513
33514 _ACEOF
33515 if ac_fn_c_try_compile "$LINENO"
33516 then :
33517
33518         # Check for potential -arch flags.  It is not universal unless
33519         # there are at least two -arch flags with different values.
33520         ac_arch=
33521         ac_prev=
33522         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
33523          if test -n "$ac_prev"; then
33524            case $ac_word in
33525              i?86 | x86_64 | ppc | ppc64)
33526                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
33527                  ac_arch=$ac_word
33528                else
33529                  ac_cv_c_bigendian=universal
33530                  break
33531                fi
33532                ;;
33533            esac
33534            ac_prev=
33535          elif test "x$ac_word" = "x-arch"; then
33536            ac_prev=arch
33537          fi
33538        done
33539 fi
33540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33541     if test $ac_cv_c_bigendian = unknown; then
33542       # See if sys/param.h defines the BYTE_ORDER macro.
33543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33544 /* end confdefs.h.  */
33545 #include <sys/types.h>
33546              #include <sys/param.h>
33547
33548 int
33549 main (void)
33550 {
33551 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33552                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33553                      && LITTLE_ENDIAN)
33554               bogus endian macros
33555              #endif
33556
33557   ;
33558   return 0;
33559 }
33560 _ACEOF
33561 if ac_fn_c_try_compile "$LINENO"
33562 then :
33563   # It does; now see whether it defined to BIG_ENDIAN or not.
33564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33565 /* end confdefs.h.  */
33566 #include <sys/types.h>
33567                 #include <sys/param.h>
33568
33569 int
33570 main (void)
33571 {
33572 #if BYTE_ORDER != BIG_ENDIAN
33573                  not big endian
33574                 #endif
33575
33576   ;
33577   return 0;
33578 }
33579 _ACEOF
33580 if ac_fn_c_try_compile "$LINENO"
33581 then :
33582   ac_cv_c_bigendian=yes
33583 else $as_nop
33584   ac_cv_c_bigendian=no
33585 fi
33586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33587 fi
33588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33589     fi
33590     if test $ac_cv_c_bigendian = unknown; then
33591       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33593 /* end confdefs.h.  */
33594 #include <limits.h>
33595
33596 int
33597 main (void)
33598 {
33599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33600               bogus endian macros
33601              #endif
33602
33603   ;
33604   return 0;
33605 }
33606 _ACEOF
33607 if ac_fn_c_try_compile "$LINENO"
33608 then :
33609   # It does; now see whether it defined to _BIG_ENDIAN or not.
33610          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33611 /* end confdefs.h.  */
33612 #include <limits.h>
33613
33614 int
33615 main (void)
33616 {
33617 #ifndef _BIG_ENDIAN
33618                  not big endian
33619                 #endif
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 if ac_fn_c_try_compile "$LINENO"
33626 then :
33627   ac_cv_c_bigendian=yes
33628 else $as_nop
33629   ac_cv_c_bigendian=no
33630 fi
33631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33632 fi
33633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33634     fi
33635     if test $ac_cv_c_bigendian = unknown; then
33636       # Compile a test program.
33637       if test "$cross_compiling" = yes
33638 then :
33639   # Try to guess by grepping values from an object file.
33640          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33641 /* end confdefs.h.  */
33642 unsigned short int ascii_mm[] =
33643                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33644                 unsigned short int ascii_ii[] =
33645                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33646                 int use_ascii (int i) {
33647                   return ascii_mm[i] + ascii_ii[i];
33648                 }
33649                 unsigned short int ebcdic_ii[] =
33650                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33651                 unsigned short int ebcdic_mm[] =
33652                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33653                 int use_ebcdic (int i) {
33654                   return ebcdic_mm[i] + ebcdic_ii[i];
33655                 }
33656                 extern int foo;
33657
33658 int
33659 main (void)
33660 {
33661 return use_ascii (foo) == use_ebcdic (foo);
33662   ;
33663   return 0;
33664 }
33665 _ACEOF
33666 if ac_fn_c_try_compile "$LINENO"
33667 then :
33668   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
33669               ac_cv_c_bigendian=yes
33670             fi
33671             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33672               if test "$ac_cv_c_bigendian" = unknown; then
33673                 ac_cv_c_bigendian=no
33674               else
33675                 # finding both strings is unlikely to happen, but who knows?
33676                 ac_cv_c_bigendian=unknown
33677               fi
33678             fi
33679 fi
33680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33681 else $as_nop
33682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33683 /* end confdefs.h.  */
33684 $ac_includes_default
33685 int
33686 main (void)
33687 {
33688
33689              /* Are we little or big endian?  From Harbison&Steele.  */
33690              union
33691              {
33692                long int l;
33693                char c[sizeof (long int)];
33694              } u;
33695              u.l = 1;
33696              return u.c[sizeof (long int) - 1] == 1;
33697
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 if ac_fn_c_try_run "$LINENO"
33703 then :
33704   ac_cv_c_bigendian=no
33705 else $as_nop
33706   ac_cv_c_bigendian=yes
33707 fi
33708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33709   conftest.$ac_objext conftest.beam conftest.$ac_ext
33710 fi
33711
33712     fi
33713 fi
33714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
33715 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
33716  case $ac_cv_c_bigendian in #(
33717    yes)
33718
33719 printf "%s\n" "#define ARES_BIG_ENDIAN 1" >>confdefs.h
33720 ;; #(
33721    no)
33722       ;; #(
33723    universal)
33724
33725 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
33726
33727      ;; #(
33728    *)
33729      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
33730 printf "%s\n" "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
33731  ;;
33732  esac
33733
33734
33735
33736 # Check whether --with-random was given.
33737 if test ${with_random+y}
33738 then :
33739   withval=$with_random;  CARES_RANDOM_FILE="$withval"
33740 else $as_nop
33741
33742                                 if test "$cross_compiling" = "no"; then
33743           as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
33744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
33745 printf %s "checking for \"/dev/urandom\"... " >&6; }
33746 if eval test \${$as_ac_File+y}
33747 then :
33748   printf %s "(cached) " >&6
33749 else $as_nop
33750   test "$cross_compiling" = yes &&
33751   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
33752 if test -r ""/dev/urandom""; then
33753   eval "$as_ac_File=yes"
33754 else
33755   eval "$as_ac_File=no"
33756 fi
33757 fi
33758 eval ac_res=\$$as_ac_File
33759                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33760 printf "%s\n" "$ac_res" >&6; }
33761 if eval test \"x\$"$as_ac_File"\" = x"yes"
33762 then :
33763    CARES_RANDOM_FILE="/dev/urandom"
33764 fi
33765
33766         else
33767           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
33768 printf "%s\n" "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
33769         fi
33770
33771
33772
33773 fi
33774
33775 if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then
33776
33777
33778 printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h
33779
33780 fi
33781
33782
33783     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
33784 printf %s "checking whether to enable non-blocking communications... " >&6; }
33785   OPT_NONBLOCKING="default"
33786   # Check whether --enable-nonblocking was given.
33787 if test ${enable_nonblocking+y}
33788 then :
33789   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
33790 fi
33791
33792   case "$OPT_NONBLOCKING" in
33793     no)
33794             want_nonblocking="no"
33795       ;;
33796     default)
33797             want_nonblocking="yes"
33798       ;;
33799     *)
33800             want_nonblocking="yes"
33801       ;;
33802   esac
33803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
33804 printf "%s\n" "$want_nonblocking" >&6; }
33805
33806
33807               #
33808   tst_method="unknown"
33809   if test "$want_nonblocking" = "yes"; then
33810     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
33811 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
33812     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
33813       tst_method="fcntl O_NONBLOCK"
33814     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
33815       tst_method="ioctl FIONBIO"
33816     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
33817       tst_method="ioctlsocket FIONBIO"
33818     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
33819       tst_method="IoctlSocket FIONBIO"
33820     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
33821       tst_method="setsockopt SO_NONBLOCK"
33822     fi
33823     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
33824 printf "%s\n" "$tst_method" >&6; }
33825     if test "$tst_method" = "unknown"; then
33826       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
33827 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
33828     fi
33829   fi
33830   if test "$tst_method" = "unknown"; then
33831
33832 printf "%s\n" "#define USE_BLOCKING_SOCKETS 1" >>confdefs.h
33833
33834     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
33835 printf "%s\n" "$as_me: WARNING: non-blocking sockets disabled." >&2;}
33836   fi
33837
33838
33839
33840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
33841 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
33842   CFLAG_CARES_SYMBOL_HIDING=""
33843   doing_symbol_hiding="no"
33844   if test x"$ac_cv_native_windows" != "xyes" &&
33845     test "$want_symbol_hiding" = "yes" &&
33846     test "$supports_symbol_hiding" = "yes"; then
33847     doing_symbol_hiding="yes"
33848     CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
33849
33850 printf "%s\n" "#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN" >>confdefs.h
33851
33852     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33853 printf "%s\n" "yes" >&6; }
33854   else
33855     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33856 printf "%s\n" "no" >&6; }
33857   fi
33858    if test x$doing_symbol_hiding = xyes; then
33859   DOING_CARES_SYMBOL_HIDING_TRUE=
33860   DOING_CARES_SYMBOL_HIDING_FALSE='#'
33861 else
33862   DOING_CARES_SYMBOL_HIDING_TRUE='#'
33863   DOING_CARES_SYMBOL_HIDING_FALSE=
33864 fi
33865
33866
33867   if test "$doing_symbol_hiding" = "yes"; then
33868
33869 printf "%s\n" "#define CARES_SYMBOL_HIDING 1" >>confdefs.h
33870
33871   fi
33872
33873
33874 CARES_PRIVATE_LIBS="$LIBS"
33875
33876
33877 CARES_CFLAG_EXTRAS=""
33878 if test X"$want_werror" = Xyes; then
33879   CARES_CFLAG_EXTRAS="-Werror"
33880 fi
33881
33882
33883
33884 squeeze CFLAGS
33885 squeeze CPPFLAGS
33886 squeeze DEFS
33887 squeeze LDFLAGS
33888 squeeze LIBS
33889
33890 squeeze CARES_PRIVATE_LIBS
33891
33892
33893
33894   xc_bad_var_libs=no
33895   for xc_word in $LIBS; do
33896     case "$xc_word" in
33897       -l* | --library=*)
33898         :
33899         ;;
33900       *)
33901         xc_bad_var_libs=yes
33902         ;;
33903     esac
33904   done
33905   if test $xc_bad_var_libs = yes; then
33906     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
33907 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
33908     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
33909 printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
33910   fi
33911
33912
33913   xc_bad_var_ldflags=no
33914   for xc_word in $LDFLAGS; do
33915     case "$xc_word" in
33916       -D*)
33917         xc_bad_var_ldflags=yes
33918         ;;
33919       -U*)
33920         xc_bad_var_ldflags=yes
33921         ;;
33922       -I*)
33923         xc_bad_var_ldflags=yes
33924         ;;
33925       -l* | --library=*)
33926         xc_bad_var_ldflags=yes
33927         ;;
33928     esac
33929   done
33930   if test $xc_bad_var_ldflags = yes; then
33931     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
33932 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
33933     xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
33934     for xc_word in $LDFLAGS; do
33935       case "$xc_word" in
33936         -D*)
33937           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
33938 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
33939           ;;
33940         -U*)
33941           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
33942 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
33943           ;;
33944         -I*)
33945           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
33946 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
33947           ;;
33948         -l* | --library=*)
33949           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
33950 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
33951           ;;
33952       esac
33953     done
33954   fi
33955
33956
33957   xc_bad_var_cppflags=no
33958   for xc_word in $CPPFLAGS; do
33959     case "$xc_word" in
33960       -rpath*)
33961         xc_bad_var_cppflags=yes
33962         ;;
33963       -L* | --library-path=*)
33964         xc_bad_var_cppflags=yes
33965         ;;
33966       -l* | --library=*)
33967         xc_bad_var_cppflags=yes
33968         ;;
33969     esac
33970   done
33971   if test $xc_bad_var_cppflags = yes; then
33972     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
33973 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
33974     xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
33975     for xc_word in $CPPFLAGS; do
33976       case "$xc_word" in
33977         -rpath*)
33978           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
33979 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
33980           ;;
33981         -L* | --library-path=*)
33982           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
33983 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
33984           ;;
33985         -l* | --library=*)
33986           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
33987 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
33988           ;;
33989       esac
33990     done
33991   fi
33992
33993
33994   xc_bad_var_cflags=no
33995   for xc_word in $CFLAGS; do
33996     case "$xc_word" in
33997       -D*)
33998         xc_bad_var_cflags=yes
33999         ;;
34000       -U*)
34001         xc_bad_var_cflags=yes
34002         ;;
34003       -I*)
34004         xc_bad_var_cflags=yes
34005         ;;
34006       -rpath*)
34007         xc_bad_var_cflags=yes
34008         ;;
34009       -L* | --library-path=*)
34010         xc_bad_var_cflags=yes
34011         ;;
34012       -l* | --library=*)
34013         xc_bad_var_cflags=yes
34014         ;;
34015     esac
34016   done
34017   if test $xc_bad_var_cflags = yes; then
34018     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
34019 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
34020     xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
34021     for xc_word in $CFLAGS; do
34022       case "$xc_word" in
34023         -D*)
34024           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
34025 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
34026           ;;
34027         -U*)
34028           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
34029 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
34030           ;;
34031         -I*)
34032           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
34033 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
34034           ;;
34035         -rpath*)
34036           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
34037 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
34038           ;;
34039         -L* | --library-path=*)
34040           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
34041 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
34042           ;;
34043         -l* | --library=*)
34044           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
34045 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
34046           ;;
34047       esac
34048     done
34049   fi
34050
34051   if test $xc_bad_var_libs = yes ||
34052      test $xc_bad_var_cflags = yes ||
34053      test $xc_bad_var_ldflags = yes ||
34054      test $xc_bad_var_cppflags = yes; then
34055      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
34056 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
34057   fi
34058
34059
34060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
34061 printf %s "checking whether to build tests... " >&6; }
34062 # Check whether --enable-tests was given.
34063 if test ${enable_tests+y}
34064 then :
34065   enableval=$enable_tests;  build_tests="$enableval"
34066 else $as_nop
34067    if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
34068             build_tests="yes"
34069           else
34070             build_tests="no"
34071           fi
34072
34073
34074 fi
34075
34076
34077 if test "x$build_tests" = "xyes" ; then
34078         if test "x$HAVE_CXX11" = "0" ; then
34079                 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
34080         fi
34081         if test "x$cross_compiling" = "xyes" ; then
34082                 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
34083         fi
34084 fi
34085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
34086 printf "%s\n" "$build_tests" >&6; }
34087
34088
34089 BUILD_SUBDIRS="include src docs"
34090 if test "x$build_tests" = "xyes" ; then
34091
34092
34093 subdirs="$subdirs test"
34094
34095   BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
34096 fi
34097
34098
34099
34100 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
34101
34102
34103 cat >confcache <<\_ACEOF
34104 # This file is a shell script that caches the results of configure
34105 # tests run on this system so they can be shared between configure
34106 # scripts and configure runs, see configure's option --config-cache.
34107 # It is not useful on other systems.  If it contains results you don't
34108 # want to keep, you may remove or edit it.
34109 #
34110 # config.status only pays attention to the cache file if you give it
34111 # the --recheck option to rerun configure.
34112 #
34113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34115 # following values.
34116
34117 _ACEOF
34118
34119 # The following way of writing the cache mishandles newlines in values,
34120 # but we know of no workaround that is simple, portable, and efficient.
34121 # So, we kill variables containing newlines.
34122 # Ultrix sh set writes to stderr and can't be redirected directly,
34123 # and sets the high bit in the cache file unless we assign to the vars.
34124 (
34125   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34126     eval ac_val=\$$ac_var
34127     case $ac_val in #(
34128     *${as_nl}*)
34129       case $ac_var in #(
34130       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34131 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34132       esac
34133       case $ac_var in #(
34134       _ | IFS | as_nl) ;; #(
34135       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34136       *) { eval $ac_var=; unset $ac_var;} ;;
34137       esac ;;
34138     esac
34139   done
34140
34141   (set) 2>&1 |
34142     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34143     *${as_nl}ac_space=\ *)
34144       # `set' does not quote correctly, so add quotes: double-quote
34145       # substitution turns \\\\ into \\, and sed turns \\ into \.
34146       sed -n \
34147         "s/'/'\\\\''/g;
34148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34149       ;; #(
34150     *)
34151       # `set' quotes correctly as required by POSIX, so do not add quotes.
34152       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34153       ;;
34154     esac |
34155     sort
34156 ) |
34157   sed '
34158      /^ac_cv_env_/b end
34159      t clear
34160      :clear
34161      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34162      t end
34163      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34164      :end' >>confcache
34165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34166   if test -w "$cache_file"; then
34167     if test "x$cache_file" != "x/dev/null"; then
34168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34169 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34170       if test ! -f "$cache_file" || test -h "$cache_file"; then
34171         cat confcache >"$cache_file"
34172       else
34173         case $cache_file in #(
34174         */* | ?:*)
34175           mv -f confcache "$cache_file"$$ &&
34176           mv -f "$cache_file"$$ "$cache_file" ;; #(
34177         *)
34178           mv -f confcache "$cache_file" ;;
34179         esac
34180       fi
34181     fi
34182   else
34183     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34184 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34185   fi
34186 fi
34187 rm -f confcache
34188
34189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34190 # Let make expand exec_prefix.
34191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34192
34193 DEFS=-DHAVE_CONFIG_H
34194
34195 ac_libobjs=
34196 ac_ltlibobjs=
34197 U=
34198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34199   # 1. Remove the extension, and $U if already installed.
34200   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34201   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34202   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34203   #    will be set to the directory where LIBOBJS objects are built.
34204   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34205   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34206 done
34207 LIBOBJS=$ac_libobjs
34208
34209 LTLIBOBJS=$ac_ltlibobjs
34210
34211
34212 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34213   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34215 fi
34216 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
34217   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
34218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34219 fi
34220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34221 printf %s "checking that generated files are newer than configure... " >&6; }
34222    if test -n "$am_sleep_pid"; then
34223      # Hide warnings about reused PIDs.
34224      wait $am_sleep_pid 2>/dev/null
34225    fi
34226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
34227 printf "%s\n" "done" >&6; }
34228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34229   as_fn_error $? "conditional \"AMDEP\" was never defined.
34230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34231 fi
34232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34233   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34235 fi
34236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34237   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34239 fi
34240  if test -n "$EXEEXT"; then
34241   am__EXEEXT_TRUE=
34242   am__EXEEXT_FALSE='#'
34243 else
34244   am__EXEEXT_TRUE='#'
34245   am__EXEEXT_FALSE=
34246 fi
34247
34248 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
34249   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
34250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34251 fi
34252 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
34253   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
34254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34255 fi
34256 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
34257   as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
34258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34259 fi
34260 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
34261   as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
34262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34263 fi
34264 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
34265   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
34266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34267 fi
34268
34269 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
34270   as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
34271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34272 fi
34273
34274 : "${CONFIG_STATUS=./config.status}"
34275 ac_write_fail=0
34276 ac_clean_files_save=$ac_clean_files
34277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34279 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
34280 as_write_fail=0
34281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34282 #! $SHELL
34283 # Generated by $as_me.
34284 # Run this file to recreate the current configuration.
34285 # Compiler output produced by configure, useful for debugging
34286 # configure, is in config.log if it exists.
34287
34288 debug=false
34289 ac_cs_recheck=false
34290 ac_cs_silent=false
34291
34292 SHELL=\${CONFIG_SHELL-$SHELL}
34293 export SHELL
34294 _ASEOF
34295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34296 ## -------------------- ##
34297 ## M4sh Initialization. ##
34298 ## -------------------- ##
34299
34300 # Be more Bourne compatible
34301 DUALCASE=1; export DUALCASE # for MKS sh
34302 as_nop=:
34303 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
34304 then :
34305   emulate sh
34306   NULLCMD=:
34307   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34308   # is contrary to our usage.  Disable this feature.
34309   alias -g '${1+"$@"}'='"$@"'
34310   setopt NO_GLOB_SUBST
34311 else $as_nop
34312   case `(set -o) 2>/dev/null` in #(
34313   *posix*) :
34314     set -o posix ;; #(
34315   *) :
34316      ;;
34317 esac
34318 fi
34319
34320
34321
34322 # Reset variables that may have inherited troublesome values from
34323 # the environment.
34324
34325 # IFS needs to be set, to space, tab, and newline, in precisely that order.
34326 # (If _AS_PATH_WALK were called with IFS unset, it would have the
34327 # side effect of setting IFS to empty, thus disabling word splitting.)
34328 # Quoting is to prevent editors from complaining about space-tab.
34329 as_nl='
34330 '
34331 export as_nl
34332 IFS=" ""        $as_nl"
34333
34334 PS1='$ '
34335 PS2='> '
34336 PS4='+ '
34337
34338 # Ensure predictable behavior from utilities with locale-dependent output.
34339 LC_ALL=C
34340 export LC_ALL
34341 LANGUAGE=C
34342 export LANGUAGE
34343
34344 # We cannot yet rely on "unset" to work, but we need these variables
34345 # to be unset--not just set to an empty or harmless value--now, to
34346 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
34347 # also avoids known problems related to "unset" and subshell syntax
34348 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
34349 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
34350 do eval test \${$as_var+y} \
34351   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34352 done
34353
34354 # Ensure that fds 0, 1, and 2 are open.
34355 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
34356 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
34357 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
34358
34359
34360
34361 # Find who we are.  Look in the path if we contain no directory separator.
34362 as_myself=
34363 case $0 in #((
34364   *[\\/]* ) as_myself=$0 ;;
34365   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34366 for as_dir in $PATH
34367 do
34368   IFS=$as_save_IFS
34369   case $as_dir in #(((
34370     '') as_dir=./ ;;
34371     */) ;;
34372     *) as_dir=$as_dir/ ;;
34373   esac
34374     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
34375   done
34376 IFS=$as_save_IFS
34377
34378      ;;
34379 esac
34380 # We did not find ourselves, most probably we were run as `sh COMMAND'
34381 # in which case we are not to be found in the path.
34382 if test "x$as_myself" = x; then
34383   as_myself=$0
34384 fi
34385 if test ! -f "$as_myself"; then
34386   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34387   exit 1
34388 fi
34389
34390
34391
34392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34393 # ----------------------------------------
34394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34396 # script with STATUS, using 1 if that was 0.
34397 as_fn_error ()
34398 {
34399   as_status=$1; test $as_status -eq 0 && as_status=1
34400   if test "$4"; then
34401     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34402     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34403   fi
34404   printf "%s\n" "$as_me: error: $2" >&2
34405   as_fn_exit $as_status
34406 } # as_fn_error
34407
34408
34409
34410 # as_fn_set_status STATUS
34411 # -----------------------
34412 # Set $? to STATUS, without forking.
34413 as_fn_set_status ()
34414 {
34415   return $1
34416 } # as_fn_set_status
34417
34418 # as_fn_exit STATUS
34419 # -----------------
34420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34421 as_fn_exit ()
34422 {
34423   set +e
34424   as_fn_set_status $1
34425   exit $1
34426 } # as_fn_exit
34427
34428 # as_fn_unset VAR
34429 # ---------------
34430 # Portably unset VAR.
34431 as_fn_unset ()
34432 {
34433   { eval $1=; unset $1;}
34434 }
34435 as_unset=as_fn_unset
34436
34437 # as_fn_append VAR VALUE
34438 # ----------------------
34439 # Append the text in VALUE to the end of the definition contained in VAR. Take
34440 # advantage of any shell optimizations that allow amortized linear growth over
34441 # repeated appends, instead of the typical quadratic growth present in naive
34442 # implementations.
34443 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
34444 then :
34445   eval 'as_fn_append ()
34446   {
34447     eval $1+=\$2
34448   }'
34449 else $as_nop
34450   as_fn_append ()
34451   {
34452     eval $1=\$$1\$2
34453   }
34454 fi # as_fn_append
34455
34456 # as_fn_arith ARG...
34457 # ------------------
34458 # Perform arithmetic evaluation on the ARGs, and store the result in the
34459 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34460 # must be portable across $(()) and expr.
34461 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
34462 then :
34463   eval 'as_fn_arith ()
34464   {
34465     as_val=$(( $* ))
34466   }'
34467 else $as_nop
34468   as_fn_arith ()
34469   {
34470     as_val=`expr "$@" || test $? -eq 1`
34471   }
34472 fi # as_fn_arith
34473
34474
34475 if expr a : '\(a\)' >/dev/null 2>&1 &&
34476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34477   as_expr=expr
34478 else
34479   as_expr=false
34480 fi
34481
34482 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34483   as_basename=basename
34484 else
34485   as_basename=false
34486 fi
34487
34488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34489   as_dirname=dirname
34490 else
34491   as_dirname=false
34492 fi
34493
34494 as_me=`$as_basename -- "$0" ||
34495 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34496          X"$0" : 'X\(//\)$' \| \
34497          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34498 printf "%s\n" X/"$0" |
34499     sed '/^.*\/\([^/][^/]*\)\/*$/{
34500             s//\1/
34501             q
34502           }
34503           /^X\/\(\/\/\)$/{
34504             s//\1/
34505             q
34506           }
34507           /^X\/\(\/\).*/{
34508             s//\1/
34509             q
34510           }
34511           s/.*/./; q'`
34512
34513 # Avoid depending upon Character Ranges.
34514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34517 as_cr_digits='0123456789'
34518 as_cr_alnum=$as_cr_Letters$as_cr_digits
34519
34520
34521 # Determine whether it's possible to make 'echo' print without a newline.
34522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
34523 # for compatibility with existing Makefiles.
34524 ECHO_C= ECHO_N= ECHO_T=
34525 case `echo -n x` in #(((((
34526 -n*)
34527   case `echo 'xy\c'` in
34528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34529   xy)  ECHO_C='\c';;
34530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34531        ECHO_T=' ';;
34532   esac;;
34533 *)
34534   ECHO_N='-n';;
34535 esac
34536
34537 # For backward compatibility with old third-party macros, we provide
34538 # the shell variables $as_echo and $as_echo_n.  New code should use
34539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
34540 as_echo='printf %s\n'
34541 as_echo_n='printf %s'
34542
34543 rm -f conf$$ conf$$.exe conf$$.file
34544 if test -d conf$$.dir; then
34545   rm -f conf$$.dir/conf$$.file
34546 else
34547   rm -f conf$$.dir
34548   mkdir conf$$.dir 2>/dev/null
34549 fi
34550 if (echo >conf$$.file) 2>/dev/null; then
34551   if ln -s conf$$.file conf$$ 2>/dev/null; then
34552     as_ln_s='ln -s'
34553     # ... but there are two gotchas:
34554     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34555     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34556     # In both cases, we have to default to `cp -pR'.
34557     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34558       as_ln_s='cp -pR'
34559   elif ln conf$$.file conf$$ 2>/dev/null; then
34560     as_ln_s=ln
34561   else
34562     as_ln_s='cp -pR'
34563   fi
34564 else
34565   as_ln_s='cp -pR'
34566 fi
34567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34568 rmdir conf$$.dir 2>/dev/null
34569
34570
34571 # as_fn_mkdir_p
34572 # -------------
34573 # Create "$as_dir" as a directory, including parents if necessary.
34574 as_fn_mkdir_p ()
34575 {
34576
34577   case $as_dir in #(
34578   -*) as_dir=./$as_dir;;
34579   esac
34580   test -d "$as_dir" || eval $as_mkdir_p || {
34581     as_dirs=
34582     while :; do
34583       case $as_dir in #(
34584       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34585       *) as_qdir=$as_dir;;
34586       esac
34587       as_dirs="'$as_qdir' $as_dirs"
34588       as_dir=`$as_dirname -- "$as_dir" ||
34589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34590          X"$as_dir" : 'X\(//\)[^/]' \| \
34591          X"$as_dir" : 'X\(//\)$' \| \
34592          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34593 printf "%s\n" X"$as_dir" |
34594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34595             s//\1/
34596             q
34597           }
34598           /^X\(\/\/\)[^/].*/{
34599             s//\1/
34600             q
34601           }
34602           /^X\(\/\/\)$/{
34603             s//\1/
34604             q
34605           }
34606           /^X\(\/\).*/{
34607             s//\1/
34608             q
34609           }
34610           s/.*/./; q'`
34611       test -d "$as_dir" && break
34612     done
34613     test -z "$as_dirs" || eval "mkdir $as_dirs"
34614   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34615
34616
34617 } # as_fn_mkdir_p
34618 if mkdir -p . 2>/dev/null; then
34619   as_mkdir_p='mkdir -p "$as_dir"'
34620 else
34621   test -d ./-p && rmdir ./-p
34622   as_mkdir_p=false
34623 fi
34624
34625
34626 # as_fn_executable_p FILE
34627 # -----------------------
34628 # Test if FILE is an executable regular file.
34629 as_fn_executable_p ()
34630 {
34631   test -f "$1" && test -x "$1"
34632 } # as_fn_executable_p
34633 as_test_x='test -x'
34634 as_executable_p=as_fn_executable_p
34635
34636 # Sed expression to map a string onto a valid CPP name.
34637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34638
34639 # Sed expression to map a string onto a valid variable name.
34640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34641
34642
34643 exec 6>&1
34644 ## ----------------------------------- ##
34645 ## Main body of $CONFIG_STATUS script. ##
34646 ## ----------------------------------- ##
34647 _ASEOF
34648 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34649
34650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34651 # Save the log message, to keep $0 and so on meaningful, and to
34652 # report actual input values of CONFIG_FILES etc. instead of their
34653 # values after options handling.
34654 ac_log="
34655 This file was extended by c-ares $as_me 1.18.1, which was
34656 generated by GNU Autoconf 2.71.  Invocation command line was
34657
34658   CONFIG_FILES    = $CONFIG_FILES
34659   CONFIG_HEADERS  = $CONFIG_HEADERS
34660   CONFIG_LINKS    = $CONFIG_LINKS
34661   CONFIG_COMMANDS = $CONFIG_COMMANDS
34662   $ $0 $@
34663
34664 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34665 "
34666
34667 _ACEOF
34668
34669 case $ac_config_files in *"
34670 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34671 esac
34672
34673 case $ac_config_headers in *"
34674 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34675 esac
34676
34677
34678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34679 # Files that config.status was made for.
34680 config_files="$ac_config_files"
34681 config_headers="$ac_config_headers"
34682 config_commands="$ac_config_commands"
34683
34684 _ACEOF
34685
34686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34687 ac_cs_usage="\
34688 \`$as_me' instantiates files and other configuration actions
34689 from templates according to the current configuration.  Unless the files
34690 and actions are specified as TAGs, all are instantiated by default.
34691
34692 Usage: $0 [OPTION]... [TAG]...
34693
34694   -h, --help       print this help, then exit
34695   -V, --version    print version number and configuration settings, then exit
34696       --config     print configuration, then exit
34697   -q, --quiet, --silent
34698                    do not print progress messages
34699   -d, --debug      don't remove temporary files
34700       --recheck    update $as_me by reconfiguring in the same conditions
34701       --file=FILE[:TEMPLATE]
34702                    instantiate the configuration file FILE
34703       --header=FILE[:TEMPLATE]
34704                    instantiate the configuration header FILE
34705
34706 Configuration files:
34707 $config_files
34708
34709 Configuration headers:
34710 $config_headers
34711
34712 Configuration commands:
34713 $config_commands
34714
34715 Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>."
34716
34717 _ACEOF
34718 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
34719 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
34720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34721 ac_cs_config='$ac_cs_config_escaped'
34722 ac_cs_version="\\
34723 c-ares config.status 1.18.1
34724 configured by $0, generated by GNU Autoconf 2.71,
34725   with options \\"\$ac_cs_config\\"
34726
34727 Copyright (C) 2021 Free Software Foundation, Inc.
34728 This config.status script is free software; the Free Software Foundation
34729 gives unlimited permission to copy, distribute and modify it."
34730
34731 ac_pwd='$ac_pwd'
34732 srcdir='$srcdir'
34733 INSTALL='$INSTALL'
34734 MKDIR_P='$MKDIR_P'
34735 AWK='$AWK'
34736 test -n "\$AWK" || AWK=awk
34737 _ACEOF
34738
34739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34740 # The default lists apply if the user does not specify any file.
34741 ac_need_defaults=:
34742 while test $# != 0
34743 do
34744   case $1 in
34745   --*=?*)
34746     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34747     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34748     ac_shift=:
34749     ;;
34750   --*=)
34751     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34752     ac_optarg=
34753     ac_shift=:
34754     ;;
34755   *)
34756     ac_option=$1
34757     ac_optarg=$2
34758     ac_shift=shift
34759     ;;
34760   esac
34761
34762   case $ac_option in
34763   # Handling of the options.
34764   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34765     ac_cs_recheck=: ;;
34766   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34767     printf "%s\n" "$ac_cs_version"; exit ;;
34768   --config | --confi | --conf | --con | --co | --c )
34769     printf "%s\n" "$ac_cs_config"; exit ;;
34770   --debug | --debu | --deb | --de | --d | -d )
34771     debug=: ;;
34772   --file | --fil | --fi | --f )
34773     $ac_shift
34774     case $ac_optarg in
34775     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34776     '') as_fn_error $? "missing file argument" ;;
34777     esac
34778     as_fn_append CONFIG_FILES " '$ac_optarg'"
34779     ac_need_defaults=false;;
34780   --header | --heade | --head | --hea )
34781     $ac_shift
34782     case $ac_optarg in
34783     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34784     esac
34785     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34786     ac_need_defaults=false;;
34787   --he | --h)
34788     # Conflict between --help and --header
34789     as_fn_error $? "ambiguous option: \`$1'
34790 Try \`$0 --help' for more information.";;
34791   --help | --hel | -h )
34792     printf "%s\n" "$ac_cs_usage"; exit ;;
34793   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34794   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34795     ac_cs_silent=: ;;
34796
34797   # This is an error.
34798   -*) as_fn_error $? "unrecognized option: \`$1'
34799 Try \`$0 --help' for more information." ;;
34800
34801   *) as_fn_append ac_config_targets " $1"
34802      ac_need_defaults=false ;;
34803
34804   esac
34805   shift
34806 done
34807
34808 ac_configure_extra_args=
34809
34810 if $ac_cs_silent; then
34811   exec 6>/dev/null
34812   ac_configure_extra_args="$ac_configure_extra_args --silent"
34813 fi
34814
34815 _ACEOF
34816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34817 if \$ac_cs_recheck; then
34818   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34819   shift
34820   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
34821   CONFIG_SHELL='$SHELL'
34822   export CONFIG_SHELL
34823   exec "\$@"
34824 fi
34825
34826 _ACEOF
34827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34828 exec 5>>config.log
34829 {
34830   echo
34831   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34832 ## Running $as_me. ##
34833 _ASBOX
34834   printf "%s\n" "$ac_log"
34835 } >&5
34836
34837 _ACEOF
34838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34839 #
34840 # INIT-COMMANDS
34841 #
34842 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
34843
34844
34845 # The HP-UX ksh and POSIX shell print the target directory to stdout
34846 # if CDPATH is set.
34847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34848
34849 sed_quote_subst='$sed_quote_subst'
34850 double_quote_subst='$double_quote_subst'
34851 delay_variable_subst='$delay_variable_subst'
34852 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34853 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34854 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34855 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34856 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34857 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34858 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34859 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34860 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34861 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34862 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34863 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34864 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34865 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34866 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34867 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34868 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34869 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34870 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34871 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34872 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34873 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34874 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34875 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34876 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34877 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34878 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34879 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34880 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34881 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34882 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34883 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34884 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34885 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34886 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34887 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34888 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34889 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34890 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34891 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34892 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34893 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34894 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34895 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34896 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34897 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34898 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34899 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34900 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34901 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34902 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34903 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34904 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34905 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34906 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34907 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34908 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34909 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34910 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34911 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"`'
34912 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34913 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34914 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34915 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34916 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34917 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34918 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34919 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34920 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34921 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34922 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34923 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34924 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34925 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34926 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34927 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34928 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34929 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34930 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34931 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34932 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34933 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34934 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34935 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34936 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34937 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34938 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34939 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34940 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34941 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34942 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34943 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34944 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34945 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34946 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34947 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34948 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34949 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34950 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34951 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34952 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34953 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34954 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34955 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34956 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34957 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34958 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34959 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34960 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34961 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34962 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34963 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34964 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34965 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34966 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34967 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34968 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34969 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34970 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34971 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34972 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34973 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34974 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34975 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34976 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34977 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34978 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34979 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34980 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34981 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34982 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34983 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34984 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34985 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34986 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34987 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34988 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34989 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34990 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34991 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34992 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34993 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34994 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34995 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34996 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34997 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34998 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34999 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35000 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35001 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35002 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35003 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35004 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35005 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35006 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35007 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35008 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35009 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35010 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35011 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35012 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35013 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35014 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35015 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35016 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35017 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35018 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35019 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35020 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35021 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35022 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35023 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35024 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35025 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35026 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35027 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35028 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35029 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35030 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35031 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35032 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35033 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35034 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35035 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35036 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35037 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35038 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35039 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35040 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35041 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35042
35043 LTCC='$LTCC'
35044 LTCFLAGS='$LTCFLAGS'
35045 compiler='$compiler_DEFAULT'
35046
35047 # A function that is used when there is no print builtin or printf.
35048 func_fallback_echo ()
35049 {
35050   eval 'cat <<_LTECHO_EOF
35051 \$1
35052 _LTECHO_EOF'
35053 }
35054
35055 # Quote evaled strings.
35056 for var in AS \
35057 DLLTOOL \
35058 OBJDUMP \
35059 SHELL \
35060 ECHO \
35061 PATH_SEPARATOR \
35062 SED \
35063 GREP \
35064 EGREP \
35065 FGREP \
35066 LD \
35067 NM \
35068 LN_S \
35069 lt_SP2NL \
35070 lt_NL2SP \
35071 reload_flag \
35072 deplibs_check_method \
35073 file_magic_cmd \
35074 file_magic_glob \
35075 want_nocaseglob \
35076 sharedlib_from_linklib_cmd \
35077 AR \
35078 AR_FLAGS \
35079 archiver_list_spec \
35080 STRIP \
35081 RANLIB \
35082 CC \
35083 CFLAGS \
35084 compiler \
35085 lt_cv_sys_global_symbol_pipe \
35086 lt_cv_sys_global_symbol_to_cdecl \
35087 lt_cv_sys_global_symbol_to_import \
35088 lt_cv_sys_global_symbol_to_c_name_address \
35089 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35090 lt_cv_nm_interface \
35091 nm_file_list_spec \
35092 lt_cv_truncate_bin \
35093 lt_prog_compiler_no_builtin_flag \
35094 lt_prog_compiler_pic \
35095 lt_prog_compiler_wl \
35096 lt_prog_compiler_static \
35097 lt_cv_prog_compiler_c_o \
35098 need_locks \
35099 MANIFEST_TOOL \
35100 DSYMUTIL \
35101 NMEDIT \
35102 LIPO \
35103 OTOOL \
35104 OTOOL64 \
35105 shrext_cmds \
35106 export_dynamic_flag_spec \
35107 whole_archive_flag_spec \
35108 compiler_needs_object \
35109 with_gnu_ld \
35110 allow_undefined_flag \
35111 no_undefined_flag \
35112 hardcode_libdir_flag_spec \
35113 hardcode_libdir_separator \
35114 exclude_expsyms \
35115 include_expsyms \
35116 file_list_spec \
35117 variables_saved_for_relink \
35118 libname_spec \
35119 library_names_spec \
35120 soname_spec \
35121 install_override_mode \
35122 finish_eval \
35123 old_striplib \
35124 striplib \
35125 compiler_lib_search_dirs \
35126 predep_objects \
35127 postdep_objects \
35128 predeps \
35129 postdeps \
35130 compiler_lib_search_path \
35131 LD_CXX \
35132 reload_flag_CXX \
35133 compiler_CXX \
35134 lt_prog_compiler_no_builtin_flag_CXX \
35135 lt_prog_compiler_pic_CXX \
35136 lt_prog_compiler_wl_CXX \
35137 lt_prog_compiler_static_CXX \
35138 lt_cv_prog_compiler_c_o_CXX \
35139 export_dynamic_flag_spec_CXX \
35140 whole_archive_flag_spec_CXX \
35141 compiler_needs_object_CXX \
35142 with_gnu_ld_CXX \
35143 allow_undefined_flag_CXX \
35144 no_undefined_flag_CXX \
35145 hardcode_libdir_flag_spec_CXX \
35146 hardcode_libdir_separator_CXX \
35147 exclude_expsyms_CXX \
35148 include_expsyms_CXX \
35149 file_list_spec_CXX \
35150 compiler_lib_search_dirs_CXX \
35151 predep_objects_CXX \
35152 postdep_objects_CXX \
35153 predeps_CXX \
35154 postdeps_CXX \
35155 compiler_lib_search_path_CXX; do
35156     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35157     *[\\\\\\\`\\"\\\$]*)
35158       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35159       ;;
35160     *)
35161       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35162       ;;
35163     esac
35164 done
35165
35166 # Double-quote double-evaled strings.
35167 for var in reload_cmds \
35168 old_postinstall_cmds \
35169 old_postuninstall_cmds \
35170 old_archive_cmds \
35171 extract_expsyms_cmds \
35172 old_archive_from_new_cmds \
35173 old_archive_from_expsyms_cmds \
35174 archive_cmds \
35175 archive_expsym_cmds \
35176 module_cmds \
35177 module_expsym_cmds \
35178 export_symbols_cmds \
35179 prelink_cmds \
35180 postlink_cmds \
35181 postinstall_cmds \
35182 postuninstall_cmds \
35183 finish_cmds \
35184 sys_lib_search_path_spec \
35185 configure_time_dlsearch_path \
35186 configure_time_lt_sys_library_path \
35187 reload_cmds_CXX \
35188 old_archive_cmds_CXX \
35189 old_archive_from_new_cmds_CXX \
35190 old_archive_from_expsyms_cmds_CXX \
35191 archive_cmds_CXX \
35192 archive_expsym_cmds_CXX \
35193 module_cmds_CXX \
35194 module_expsym_cmds_CXX \
35195 export_symbols_cmds_CXX \
35196 prelink_cmds_CXX \
35197 postlink_cmds_CXX; do
35198     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35199     *[\\\\\\\`\\"\\\$]*)
35200       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35201       ;;
35202     *)
35203       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35204       ;;
35205     esac
35206 done
35207
35208 ac_aux_dir='$ac_aux_dir'
35209
35210 # See if we are running on zsh, and set the options that allow our
35211 # commands through without removal of \ escapes INIT.
35212 if test -n "\${ZSH_VERSION+set}"; then
35213    setopt NO_GLOB_SUBST
35214 fi
35215
35216
35217     PACKAGE='$PACKAGE'
35218     VERSION='$VERSION'
35219     RM='$RM'
35220     ofile='$ofile'
35221
35222
35223
35224
35225
35226
35227 _ACEOF
35228
35229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35230
35231 # Handling of arguments.
35232 for ac_config_target in $ac_config_targets
35233 do
35234   case $ac_config_target in
35235     "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
35236     "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
35237     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35238     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35239     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35240     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
35241     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35242     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35243     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35244     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
35245     "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
35246
35247   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35248   esac
35249 done
35250
35251
35252 # If the user did not use the arguments to specify the items to instantiate,
35253 # then the envvar interface is used.  Set only those that are not.
35254 # We use the long form for the default assignment because of an extremely
35255 # bizarre bug on SunOS 4.1.3.
35256 if $ac_need_defaults; then
35257   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35258   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35259   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
35260 fi
35261
35262 # Have a temporary directory for convenience.  Make it in the build tree
35263 # simply because there is no reason against having it here, and in addition,
35264 # creating and moving files from /tmp can sometimes cause problems.
35265 # Hook for its removal unless debugging.
35266 # Note that there is a small window in which the directory will not be cleaned:
35267 # after its creation but before its name has been assigned to `$tmp'.
35268 $debug ||
35269 {
35270   tmp= ac_tmp=
35271   trap 'exit_status=$?
35272   : "${ac_tmp:=$tmp}"
35273   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35274 ' 0
35275   trap 'as_fn_exit 1' 1 2 13 15
35276 }
35277 # Create a (secure) tmp directory for tmp files.
35278
35279 {
35280   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35281   test -d "$tmp"
35282 }  ||
35283 {
35284   tmp=./conf$$-$RANDOM
35285   (umask 077 && mkdir "$tmp")
35286 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35287 ac_tmp=$tmp
35288
35289 # Set up the scripts for CONFIG_FILES section.
35290 # No need to generate them if there are no CONFIG_FILES.
35291 # This happens for instance with `./config.status config.h'.
35292 if test -n "$CONFIG_FILES"; then
35293
35294
35295 ac_cr=`echo X | tr X '\015'`
35296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35297 # But we know of no other shell where ac_cr would be empty at this
35298 # point, so we can use a bashism as a fallback.
35299 if test "x$ac_cr" = x; then
35300   eval ac_cr=\$\'\\r\'
35301 fi
35302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35304   ac_cs_awk_cr='\\r'
35305 else
35306   ac_cs_awk_cr=$ac_cr
35307 fi
35308
35309 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35310 _ACEOF
35311
35312
35313 {
35314   echo "cat >conf$$subs.awk <<_ACEOF" &&
35315   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35316   echo "_ACEOF"
35317 } >conf$$subs.sh ||
35318   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35320 ac_delim='%!_!# '
35321 for ac_last_try in false false false false false :; do
35322   . ./conf$$subs.sh ||
35323     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35324
35325   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35326   if test $ac_delim_n = $ac_delim_num; then
35327     break
35328   elif $ac_last_try; then
35329     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35330   else
35331     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35332   fi
35333 done
35334 rm -f conf$$subs.sh
35335
35336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35337 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35338 _ACEOF
35339 sed -n '
35340 h
35341 s/^/S["/; s/!.*/"]=/
35342 p
35343 g
35344 s/^[^!]*!//
35345 :repl
35346 t repl
35347 s/'"$ac_delim"'$//
35348 t delim
35349 :nl
35350 h
35351 s/\(.\{148\}\)..*/\1/
35352 t more1
35353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35354 p
35355 n
35356 b repl
35357 :more1
35358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35359 p
35360 g
35361 s/.\{148\}//
35362 t nl
35363 :delim
35364 h
35365 s/\(.\{148\}\)..*/\1/
35366 t more2
35367 s/["\\]/\\&/g; s/^/"/; s/$/"/
35368 p
35369 b
35370 :more2
35371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35372 p
35373 g
35374 s/.\{148\}//
35375 t delim
35376 ' <conf$$subs.awk | sed '
35377 /^[^""]/{
35378   N
35379   s/\n//
35380 }
35381 ' >>$CONFIG_STATUS || ac_write_fail=1
35382 rm -f conf$$subs.awk
35383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35384 _ACAWK
35385 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35386   for (key in S) S_is_set[key] = 1
35387   FS = "\a"
35388
35389 }
35390 {
35391   line = $ 0
35392   nfields = split(line, field, "@")
35393   substed = 0
35394   len = length(field[1])
35395   for (i = 2; i < nfields; i++) {
35396     key = field[i]
35397     keylen = length(key)
35398     if (S_is_set[key]) {
35399       value = S[key]
35400       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35401       len += length(value) + length(field[++i])
35402       substed = 1
35403     } else
35404       len += 1 + keylen
35405   }
35406
35407   print line
35408 }
35409
35410 _ACAWK
35411 _ACEOF
35412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35413 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35414   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35415 else
35416   cat
35417 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35418   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35419 _ACEOF
35420
35421 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35422 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35423 # trailing colons and then remove the whole line if VPATH becomes empty
35424 # (actually we leave an empty line to preserve line numbers).
35425 if test "x$srcdir" = x.; then
35426   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
35427 h
35428 s///
35429 s/^/:/
35430 s/[      ]*$/:/
35431 s/:\$(srcdir):/:/g
35432 s/:\${srcdir}:/:/g
35433 s/:@srcdir@:/:/g
35434 s/^:*//
35435 s/:*$//
35436 x
35437 s/\(=[   ]*\).*/\1/
35438 G
35439 s/\n//
35440 s/^[^=]*=[       ]*$//
35441 }'
35442 fi
35443
35444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35445 fi # test -n "$CONFIG_FILES"
35446
35447 # Set up the scripts for CONFIG_HEADERS section.
35448 # No need to generate them if there are no CONFIG_HEADERS.
35449 # This happens for instance with `./config.status Makefile'.
35450 if test -n "$CONFIG_HEADERS"; then
35451 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35452 BEGIN {
35453 _ACEOF
35454
35455 # Transform confdefs.h into an awk script `defines.awk', embedded as
35456 # here-document in config.status, that substitutes the proper values into
35457 # config.h.in to produce config.h.
35458
35459 # Create a delimiter string that does not exist in confdefs.h, to ease
35460 # handling of long lines.
35461 ac_delim='%!_!# '
35462 for ac_last_try in false false :; do
35463   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35464   if test -z "$ac_tt"; then
35465     break
35466   elif $ac_last_try; then
35467     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35468   else
35469     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35470   fi
35471 done
35472
35473 # For the awk script, D is an array of macro values keyed by name,
35474 # likewise P contains macro parameters if any.  Preserve backslash
35475 # newline sequences.
35476
35477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35478 sed -n '
35479 s/.\{148\}/&'"$ac_delim"'/g
35480 t rset
35481 :rset
35482 s/^[     ]*#[    ]*define[       ][      ]*/ /
35483 t def
35484 d
35485 :def
35486 s/\\$//
35487 t bsnl
35488 s/["\\]/\\&/g
35489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35490 D["\1"]=" \3"/p
35491 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
35492 d
35493 :bsnl
35494 s/["\\]/\\&/g
35495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35496 D["\1"]=" \3\\\\\\n"\\/p
35497 t cont
35498 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35499 t cont
35500 d
35501 :cont
35502 n
35503 s/.\{148\}/&'"$ac_delim"'/g
35504 t clear
35505 :clear
35506 s/\\$//
35507 t bsnlc
35508 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35509 d
35510 :bsnlc
35511 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35512 b cont
35513 ' <confdefs.h | sed '
35514 s/'"$ac_delim"'/"\\\
35515 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35516
35517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35518   for (key in D) D_is_set[key] = 1
35519   FS = "\a"
35520 }
35521 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35522   line = \$ 0
35523   split(line, arg, " ")
35524   if (arg[1] == "#") {
35525     defundef = arg[2]
35526     mac1 = arg[3]
35527   } else {
35528     defundef = substr(arg[1], 2)
35529     mac1 = arg[2]
35530   }
35531   split(mac1, mac2, "(") #)
35532   macro = mac2[1]
35533   prefix = substr(line, 1, index(line, defundef) - 1)
35534   if (D_is_set[macro]) {
35535     # Preserve the white space surrounding the "#".
35536     print prefix "define", macro P[macro] D[macro]
35537     next
35538   } else {
35539     # Replace #undef with comments.  This is necessary, for example,
35540     # in the case of _POSIX_SOURCE, which is predefined and required
35541     # on some systems where configure will not decide to define it.
35542     if (defundef == "undef") {
35543       print "/*", prefix defundef, macro, "*/"
35544       next
35545     }
35546   }
35547 }
35548 { print }
35549 _ACAWK
35550 _ACEOF
35551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35552   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35553 fi # test -n "$CONFIG_HEADERS"
35554
35555
35556 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
35557 shift
35558 for ac_tag
35559 do
35560   case $ac_tag in
35561   :[FHLC]) ac_mode=$ac_tag; continue;;
35562   esac
35563   case $ac_mode$ac_tag in
35564   :[FHL]*:*);;
35565   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35566   :[FH]-) ac_tag=-:-;;
35567   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35568   esac
35569   ac_save_IFS=$IFS
35570   IFS=:
35571   set x $ac_tag
35572   IFS=$ac_save_IFS
35573   shift
35574   ac_file=$1
35575   shift
35576
35577   case $ac_mode in
35578   :L) ac_source=$1;;
35579   :[FH])
35580     ac_file_inputs=
35581     for ac_f
35582     do
35583       case $ac_f in
35584       -) ac_f="$ac_tmp/stdin";;
35585       *) # Look for the file first in the build tree, then in the source tree
35586          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35587          # because $ac_f cannot contain `:'.
35588          test -f "$ac_f" ||
35589            case $ac_f in
35590            [\\/$]*) false;;
35591            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35592            esac ||
35593            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35594       esac
35595       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35596       as_fn_append ac_file_inputs " '$ac_f'"
35597     done
35598
35599     # Let's still pretend it is `configure' which instantiates (i.e., don't
35600     # use $as_me), people would be surprised to read:
35601     #    /* config.h.  Generated by config.status.  */
35602     configure_input='Generated from '`
35603           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35604         `' by configure.'
35605     if test x"$ac_file" != x-; then
35606       configure_input="$ac_file.  $configure_input"
35607       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35608 printf "%s\n" "$as_me: creating $ac_file" >&6;}
35609     fi
35610     # Neutralize special characters interpreted by sed in replacement strings.
35611     case $configure_input in #(
35612     *\&* | *\|* | *\\* )
35613        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
35614        sed 's/[\\\\&|]/\\\\&/g'`;; #(
35615     *) ac_sed_conf_input=$configure_input;;
35616     esac
35617
35618     case $ac_tag in
35619     *:-:* | *:-) cat >"$ac_tmp/stdin" \
35620       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35621     esac
35622     ;;
35623   esac
35624
35625   ac_dir=`$as_dirname -- "$ac_file" ||
35626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35627          X"$ac_file" : 'X\(//\)[^/]' \| \
35628          X"$ac_file" : 'X\(//\)$' \| \
35629          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35630 printf "%s\n" X"$ac_file" |
35631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35632             s//\1/
35633             q
35634           }
35635           /^X\(\/\/\)[^/].*/{
35636             s//\1/
35637             q
35638           }
35639           /^X\(\/\/\)$/{
35640             s//\1/
35641             q
35642           }
35643           /^X\(\/\).*/{
35644             s//\1/
35645             q
35646           }
35647           s/.*/./; q'`
35648   as_dir="$ac_dir"; as_fn_mkdir_p
35649   ac_builddir=.
35650
35651 case "$ac_dir" in
35652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35653 *)
35654   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
35655   # A ".." for each directory in $ac_dir_suffix.
35656   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35657   case $ac_top_builddir_sub in
35658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35660   esac ;;
35661 esac
35662 ac_abs_top_builddir=$ac_pwd
35663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35664 # for backward compatibility:
35665 ac_top_builddir=$ac_top_build_prefix
35666
35667 case $srcdir in
35668   .)  # We are building in place.
35669     ac_srcdir=.
35670     ac_top_srcdir=$ac_top_builddir_sub
35671     ac_abs_top_srcdir=$ac_pwd ;;
35672   [\\/]* | ?:[\\/]* )  # Absolute name.
35673     ac_srcdir=$srcdir$ac_dir_suffix;
35674     ac_top_srcdir=$srcdir
35675     ac_abs_top_srcdir=$srcdir ;;
35676   *) # Relative name.
35677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35678     ac_top_srcdir=$ac_top_build_prefix$srcdir
35679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35680 esac
35681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35682
35683
35684   case $ac_mode in
35685   :F)
35686   #
35687   # CONFIG_FILE
35688   #
35689
35690   case $INSTALL in
35691   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35692   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35693   esac
35694   ac_MKDIR_P=$MKDIR_P
35695   case $MKDIR_P in
35696   [\\/$]* | ?:[\\/]* ) ;;
35697   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35698   esac
35699 _ACEOF
35700
35701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35702 # If the template does not know about datarootdir, expand it.
35703 # FIXME: This hack should be removed a few years after 2.60.
35704 ac_datarootdir_hack=; ac_datarootdir_seen=
35705 ac_sed_dataroot='
35706 /datarootdir/ {
35707   p
35708   q
35709 }
35710 /@datadir@/p
35711 /@docdir@/p
35712 /@infodir@/p
35713 /@localedir@/p
35714 /@mandir@/p'
35715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35716 *datarootdir*) ac_datarootdir_seen=yes;;
35717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35719 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35720 _ACEOF
35721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35722   ac_datarootdir_hack='
35723   s&@datadir@&$datadir&g
35724   s&@docdir@&$docdir&g
35725   s&@infodir@&$infodir&g
35726   s&@localedir@&$localedir&g
35727   s&@mandir@&$mandir&g
35728   s&\\\${datarootdir}&$datarootdir&g' ;;
35729 esac
35730 _ACEOF
35731
35732 # Neutralize VPATH when `$srcdir' = `.'.
35733 # Shell code in configure.ac might set extrasub.
35734 # FIXME: do we really want to maintain this feature?
35735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35736 ac_sed_extra="$ac_vpsub
35737 $extrasub
35738 _ACEOF
35739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35740 :t
35741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35742 s|@configure_input@|$ac_sed_conf_input|;t t
35743 s&@top_builddir@&$ac_top_builddir_sub&;t t
35744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35745 s&@srcdir@&$ac_srcdir&;t t
35746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35747 s&@top_srcdir@&$ac_top_srcdir&;t t
35748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35749 s&@builddir@&$ac_builddir&;t t
35750 s&@abs_builddir@&$ac_abs_builddir&;t t
35751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35752 s&@INSTALL@&$ac_INSTALL&;t t
35753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35754 $ac_datarootdir_hack
35755 "
35756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35757   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35758
35759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35760   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35761   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
35762       "$ac_tmp/out"`; test -z "$ac_out"; } &&
35763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35764 which seems to be undefined.  Please make sure it is defined" >&5
35765 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35766 which seems to be undefined.  Please make sure it is defined" >&2;}
35767
35768   rm -f "$ac_tmp/stdin"
35769   case $ac_file in
35770   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35771   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35772   esac \
35773   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35774  ;;
35775   :H)
35776   #
35777   # CONFIG_HEADER
35778   #
35779   if test x"$ac_file" != x-; then
35780     {
35781       printf "%s\n" "/* $configure_input  */" >&1 \
35782       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35783     } >"$ac_tmp/config.h" \
35784       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35785     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35786       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35787 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
35788     else
35789       rm -f "$ac_file"
35790       mv "$ac_tmp/config.h" "$ac_file" \
35791         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35792     fi
35793   else
35794     printf "%s\n" "/* $configure_input  */" >&1 \
35795       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35796       || as_fn_error $? "could not create -" "$LINENO" 5
35797   fi
35798 # Compute "$ac_file"'s index in $config_headers.
35799 _am_arg="$ac_file"
35800 _am_stamp_count=1
35801 for _am_header in $config_headers :; do
35802   case $_am_header in
35803     $_am_arg | $_am_arg:* )
35804       break ;;
35805     * )
35806       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35807   esac
35808 done
35809 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35810 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35811          X"$_am_arg" : 'X\(//\)[^/]' \| \
35812          X"$_am_arg" : 'X\(//\)$' \| \
35813          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35814 printf "%s\n" X"$_am_arg" |
35815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35816             s//\1/
35817             q
35818           }
35819           /^X\(\/\/\)[^/].*/{
35820             s//\1/
35821             q
35822           }
35823           /^X\(\/\/\)$/{
35824             s//\1/
35825             q
35826           }
35827           /^X\(\/\).*/{
35828             s//\1/
35829             q
35830           }
35831           s/.*/./; q'`/stamp-h$_am_stamp_count
35832  ;;
35833
35834   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35835 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
35836  ;;
35837   esac
35838
35839
35840   case $ac_file$ac_mode in
35841     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35842   # Older Autoconf quotes --file arguments for eval, but not when files
35843   # are listed without --file.  Let's play safe and only enable the eval
35844   # if we detect the quoting.
35845   # TODO: see whether this extra hack can be removed once we start
35846   # requiring Autoconf 2.70 or later.
35847   case $CONFIG_FILES in #(
35848   *\'*) :
35849     eval set x "$CONFIG_FILES" ;; #(
35850   *) :
35851     set x $CONFIG_FILES ;; #(
35852   *) :
35853      ;;
35854 esac
35855   shift
35856   # Used to flag and report bootstrapping failures.
35857   am_rc=0
35858   for am_mf
35859   do
35860     # Strip MF so we end up with the name of the file.
35861     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
35862     # Check whether this is an Automake generated Makefile which includes
35863     # dependency-tracking related rules and includes.
35864     # Grep'ing the whole file directly is not great: AIX grep has a line
35865     # limit of 2048, but all sed's we know have understand at least 4000.
35866     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
35867       || continue
35868     am_dirpart=`$as_dirname -- "$am_mf" ||
35869 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35870          X"$am_mf" : 'X\(//\)[^/]' \| \
35871          X"$am_mf" : 'X\(//\)$' \| \
35872          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35873 printf "%s\n" X"$am_mf" |
35874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35875             s//\1/
35876             q
35877           }
35878           /^X\(\/\/\)[^/].*/{
35879             s//\1/
35880             q
35881           }
35882           /^X\(\/\/\)$/{
35883             s//\1/
35884             q
35885           }
35886           /^X\(\/\).*/{
35887             s//\1/
35888             q
35889           }
35890           s/.*/./; q'`
35891     am_filepart=`$as_basename -- "$am_mf" ||
35892 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
35893          X"$am_mf" : 'X\(//\)$' \| \
35894          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35895 printf "%s\n" X/"$am_mf" |
35896     sed '/^.*\/\([^/][^/]*\)\/*$/{
35897             s//\1/
35898             q
35899           }
35900           /^X\/\(\/\/\)$/{
35901             s//\1/
35902             q
35903           }
35904           /^X\/\(\/\).*/{
35905             s//\1/
35906             q
35907           }
35908           s/.*/./; q'`
35909     { echo "$as_me:$LINENO: cd "$am_dirpart" \
35910       && sed -e '/# am--include-marker/d' "$am_filepart" \
35911         | $MAKE -f - am--depfiles" >&5
35912    (cd "$am_dirpart" \
35913       && sed -e '/# am--include-marker/d' "$am_filepart" \
35914         | $MAKE -f - am--depfiles) >&5 2>&5
35915    ac_status=$?
35916    echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917    (exit $ac_status); } || am_rc=$?
35918   done
35919   if test $am_rc -ne 0; then
35920     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35921 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35922 as_fn_error $? "Something went wrong bootstrapping makefile fragments
35923     for automatic dependency tracking.  If GNU make was not used, consider
35924     re-running the configure script with MAKE=\"gmake\" (or whatever is
35925     necessary).  You can also try re-running configure with the
35926     '--disable-dependency-tracking' option to at least be able to build
35927     the package (albeit without support for automatic dependency tracking).
35928 See \`config.log' for more details" "$LINENO" 5; }
35929   fi
35930   { am_dirpart=; unset am_dirpart;}
35931   { am_filepart=; unset am_filepart;}
35932   { am_mf=; unset am_mf;}
35933   { am_rc=; unset am_rc;}
35934   rm -f conftest-deps.mk
35935 }
35936  ;;
35937     "libtool":C)
35938
35939     # See if we are running on zsh, and set the options that allow our
35940     # commands through without removal of \ escapes.
35941     if test -n "${ZSH_VERSION+set}"; then
35942       setopt NO_GLOB_SUBST
35943     fi
35944
35945     cfgfile=${ofile}T
35946     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35947     $RM "$cfgfile"
35948
35949     cat <<_LT_EOF >> "$cfgfile"
35950 #! $SHELL
35951 # Generated automatically by $as_me ($PACKAGE) $VERSION
35952 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35953
35954 # Provide generalized library-building support services.
35955 # Written by Gordon Matzigkeit, 1996
35956
35957 # Copyright (C) 2014 Free Software Foundation, Inc.
35958 # This is free software; see the source for copying conditions.  There is NO
35959 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35960
35961 # GNU Libtool is free software; you can redistribute it and/or modify
35962 # it under the terms of the GNU General Public License as published by
35963 # the Free Software Foundation; either version 2 of of the License, or
35964 # (at your option) any later version.
35965 #
35966 # As a special exception to the GNU General Public License, if you
35967 # distribute this file as part of a program or library that is built
35968 # using GNU Libtool, you may include this file under the  same
35969 # distribution terms that you use for the rest of that program.
35970 #
35971 # GNU Libtool is distributed in the hope that it will be useful, but
35972 # WITHOUT ANY WARRANTY; without even the implied warranty of
35973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35974 # GNU General Public License for more details.
35975 #
35976 # You should have received a copy of the GNU General Public License
35977 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
35978
35979
35980 # The names of the tagged configurations supported by this script.
35981 available_tags='CXX '
35982
35983 # Configured defaults for sys_lib_dlsearch_path munging.
35984 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35985
35986 # ### BEGIN LIBTOOL CONFIG
35987
35988 # Which release of libtool.m4 was used?
35989 macro_version=$macro_version
35990 macro_revision=$macro_revision
35991
35992 # Assembler program.
35993 AS=$lt_AS
35994
35995 # DLL creation program.
35996 DLLTOOL=$lt_DLLTOOL
35997
35998 # Object dumper program.
35999 OBJDUMP=$lt_OBJDUMP
36000
36001 # Whether or not to build shared libraries.
36002 build_libtool_libs=$enable_shared
36003
36004 # Whether or not to build static libraries.
36005 build_old_libs=$enable_static
36006
36007 # What type of objects to build.
36008 pic_mode=$pic_mode
36009
36010 # Whether or not to optimize for fast installation.
36011 fast_install=$enable_fast_install
36012
36013 # Shared archive member basename,for filename based shared library versioning on AIX.
36014 shared_archive_member_spec=$shared_archive_member_spec
36015
36016 # Shell to use when invoking shell scripts.
36017 SHELL=$lt_SHELL
36018
36019 # An echo program that protects backslashes.
36020 ECHO=$lt_ECHO
36021
36022 # The PATH separator for the build system.
36023 PATH_SEPARATOR=$lt_PATH_SEPARATOR
36024
36025 # The host system.
36026 host_alias=$host_alias
36027 host=$host
36028 host_os=$host_os
36029
36030 # The build system.
36031 build_alias=$build_alias
36032 build=$build
36033 build_os=$build_os
36034
36035 # A sed program that does not truncate output.
36036 SED=$lt_SED
36037
36038 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36039 Xsed="\$SED -e 1s/^X//"
36040
36041 # A grep program that handles long lines.
36042 GREP=$lt_GREP
36043
36044 # An ERE matcher.
36045 EGREP=$lt_EGREP
36046
36047 # A literal string matcher.
36048 FGREP=$lt_FGREP
36049
36050 # A BSD- or MS-compatible name lister.
36051 NM=$lt_NM
36052
36053 # Whether we need soft or hard links.
36054 LN_S=$lt_LN_S
36055
36056 # What is the maximum length of a command?
36057 max_cmd_len=$max_cmd_len
36058
36059 # Object file suffix (normally "o").
36060 objext=$ac_objext
36061
36062 # Executable file suffix (normally "").
36063 exeext=$exeext
36064
36065 # whether the shell understands "unset".
36066 lt_unset=$lt_unset
36067
36068 # turn spaces into newlines.
36069 SP2NL=$lt_lt_SP2NL
36070
36071 # turn newlines into spaces.
36072 NL2SP=$lt_lt_NL2SP
36073
36074 # convert \$build file names to \$host format.
36075 to_host_file_cmd=$lt_cv_to_host_file_cmd
36076
36077 # convert \$build files to toolchain format.
36078 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36079
36080 # Method to check whether dependent libraries are shared objects.
36081 deplibs_check_method=$lt_deplibs_check_method
36082
36083 # Command to use when deplibs_check_method = "file_magic".
36084 file_magic_cmd=$lt_file_magic_cmd
36085
36086 # How to find potential files when deplibs_check_method = "file_magic".
36087 file_magic_glob=$lt_file_magic_glob
36088
36089 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36090 want_nocaseglob=$lt_want_nocaseglob
36091
36092 # Command to associate shared and link libraries.
36093 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36094
36095 # The archiver.
36096 AR=$lt_AR
36097
36098 # Flags to create an archive.
36099 AR_FLAGS=$lt_AR_FLAGS
36100
36101 # How to feed a file listing to the archiver.
36102 archiver_list_spec=$lt_archiver_list_spec
36103
36104 # A symbol stripping program.
36105 STRIP=$lt_STRIP
36106
36107 # Commands used to install an old-style archive.
36108 RANLIB=$lt_RANLIB
36109 old_postinstall_cmds=$lt_old_postinstall_cmds
36110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36111
36112 # Whether to use a lock for old archive extraction.
36113 lock_old_archive_extraction=$lock_old_archive_extraction
36114
36115 # A C compiler.
36116 LTCC=$lt_CC
36117
36118 # LTCC compiler flags.
36119 LTCFLAGS=$lt_CFLAGS
36120
36121 # Take the output of nm and produce a listing of raw symbols and C names.
36122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36123
36124 # Transform the output of nm in a proper C declaration.
36125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36126
36127 # Transform the output of nm into a list of symbols to manually relocate.
36128 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
36129
36130 # Transform the output of nm in a C name address pair.
36131 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36132
36133 # Transform the output of nm in a C name address pair when lib prefix is needed.
36134 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36135
36136 # The name lister interface.
36137 nm_interface=$lt_lt_cv_nm_interface
36138
36139 # Specify filename containing input files for \$NM.
36140 nm_file_list_spec=$lt_nm_file_list_spec
36141
36142 # The root where to search for dependent libraries,and where our libraries should be installed.
36143 lt_sysroot=$lt_sysroot
36144
36145 # Command to truncate a binary pipe.
36146 lt_truncate_bin=$lt_lt_cv_truncate_bin
36147
36148 # The name of the directory that contains temporary libtool files.
36149 objdir=$objdir
36150
36151 # Used to examine libraries when file_magic_cmd begins with "file".
36152 MAGIC_CMD=$MAGIC_CMD
36153
36154 # Must we lock files when doing compilation?
36155 need_locks=$lt_need_locks
36156
36157 # Manifest tool.
36158 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36159
36160 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36161 DSYMUTIL=$lt_DSYMUTIL
36162
36163 # Tool to change global to local symbols on Mac OS X.
36164 NMEDIT=$lt_NMEDIT
36165
36166 # Tool to manipulate fat objects and archives on Mac OS X.
36167 LIPO=$lt_LIPO
36168
36169 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36170 OTOOL=$lt_OTOOL
36171
36172 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36173 OTOOL64=$lt_OTOOL64
36174
36175 # Old archive suffix (normally "a").
36176 libext=$libext
36177
36178 # Shared library suffix (normally ".so").
36179 shrext_cmds=$lt_shrext_cmds
36180
36181 # The commands to extract the exported symbol list from a shared archive.
36182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36183
36184 # Variables whose values should be saved in libtool wrapper scripts and
36185 # restored at link time.
36186 variables_saved_for_relink=$lt_variables_saved_for_relink
36187
36188 # Do we need the "lib" prefix for modules?
36189 need_lib_prefix=$need_lib_prefix
36190
36191 # Do we need a version for libraries?
36192 need_version=$need_version
36193
36194 # Library versioning type.
36195 version_type=$version_type
36196
36197 # Shared library runtime path variable.
36198 runpath_var=$runpath_var
36199
36200 # Shared library path variable.
36201 shlibpath_var=$shlibpath_var
36202
36203 # Is shlibpath searched before the hard-coded library search path?
36204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36205
36206 # Format of library name prefix.
36207 libname_spec=$lt_libname_spec
36208
36209 # List of archive names.  First name is the real one, the rest are links.
36210 # The last name is the one that the linker finds with -lNAME
36211 library_names_spec=$lt_library_names_spec
36212
36213 # The coded name of the library, if different from the real name.
36214 soname_spec=$lt_soname_spec
36215
36216 # Permission mode override for installation of shared libraries.
36217 install_override_mode=$lt_install_override_mode
36218
36219 # Command to use after installation of a shared archive.
36220 postinstall_cmds=$lt_postinstall_cmds
36221
36222 # Command to use after uninstallation of a shared archive.
36223 postuninstall_cmds=$lt_postuninstall_cmds
36224
36225 # Commands used to finish a libtool library installation in a directory.
36226 finish_cmds=$lt_finish_cmds
36227
36228 # As "finish_cmds", except a single script fragment to be evaled but
36229 # not shown.
36230 finish_eval=$lt_finish_eval
36231
36232 # Whether we should hardcode library paths into libraries.
36233 hardcode_into_libs=$hardcode_into_libs
36234
36235 # Compile-time system search path for libraries.
36236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36237
36238 # Detected run-time system search path for libraries.
36239 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
36240
36241 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
36242 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
36243
36244 # Whether dlopen is supported.
36245 dlopen_support=$enable_dlopen
36246
36247 # Whether dlopen of programs is supported.
36248 dlopen_self=$enable_dlopen_self
36249
36250 # Whether dlopen of statically linked programs is supported.
36251 dlopen_self_static=$enable_dlopen_self_static
36252
36253 # Commands to strip libraries.
36254 old_striplib=$lt_old_striplib
36255 striplib=$lt_striplib
36256
36257
36258 # The linker used to build libraries.
36259 LD=$lt_LD
36260
36261 # How to create reloadable object files.
36262 reload_flag=$lt_reload_flag
36263 reload_cmds=$lt_reload_cmds
36264
36265 # Commands used to build an old-style archive.
36266 old_archive_cmds=$lt_old_archive_cmds
36267
36268 # A language specific compiler.
36269 CC=$lt_compiler
36270
36271 # Is the compiler the GNU compiler?
36272 with_gcc=$GCC
36273
36274 # Compiler flag to turn off builtin functions.
36275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36276
36277 # Additional compiler flags for building library objects.
36278 pic_flag=$lt_lt_prog_compiler_pic
36279
36280 # How to pass a linker flag through the compiler.
36281 wl=$lt_lt_prog_compiler_wl
36282
36283 # Compiler flag to prevent dynamic linking.
36284 link_static_flag=$lt_lt_prog_compiler_static
36285
36286 # Does compiler simultaneously support -c and -o options?
36287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36288
36289 # Whether or not to add -lc for building shared libraries.
36290 build_libtool_need_lc=$archive_cmds_need_lc
36291
36292 # Whether or not to disallow shared libs when runtime libs are static.
36293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36294
36295 # Compiler flag to allow reflexive dlopens.
36296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36297
36298 # Compiler flag to generate shared objects directly from archives.
36299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36300
36301 # Whether the compiler copes with passing no objects directly.
36302 compiler_needs_object=$lt_compiler_needs_object
36303
36304 # Create an old-style archive from a shared archive.
36305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36306
36307 # Create a temporary old-style archive to link instead of a shared archive.
36308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36309
36310 # Commands used to build a shared archive.
36311 archive_cmds=$lt_archive_cmds
36312 archive_expsym_cmds=$lt_archive_expsym_cmds
36313
36314 # Commands used to build a loadable module if different from building
36315 # a shared archive.
36316 module_cmds=$lt_module_cmds
36317 module_expsym_cmds=$lt_module_expsym_cmds
36318
36319 # Whether we are building with GNU ld or not.
36320 with_gnu_ld=$lt_with_gnu_ld
36321
36322 # Flag that allows shared libraries with undefined symbols to be built.
36323 allow_undefined_flag=$lt_allow_undefined_flag
36324
36325 # Flag that enforces no undefined symbols.
36326 no_undefined_flag=$lt_no_undefined_flag
36327
36328 # Flag to hardcode \$libdir into a binary during linking.
36329 # This must work even if \$libdir does not exist
36330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36331
36332 # Whether we need a single "-rpath" flag with a separated argument.
36333 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36334
36335 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36336 # DIR into the resulting binary.
36337 hardcode_direct=$hardcode_direct
36338
36339 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36340 # DIR into the resulting binary and the resulting library dependency is
36341 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
36342 # library is relocated.
36343 hardcode_direct_absolute=$hardcode_direct_absolute
36344
36345 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36346 # into the resulting binary.
36347 hardcode_minus_L=$hardcode_minus_L
36348
36349 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36350 # into the resulting binary.
36351 hardcode_shlibpath_var=$hardcode_shlibpath_var
36352
36353 # Set to "yes" if building a shared library automatically hardcodes DIR
36354 # into the library and all subsequent libraries and executables linked
36355 # against it.
36356 hardcode_automatic=$hardcode_automatic
36357
36358 # Set to yes if linker adds runtime paths of dependent libraries
36359 # to runtime path list.
36360 inherit_rpath=$inherit_rpath
36361
36362 # Whether libtool must link a program against all its dependency libraries.
36363 link_all_deplibs=$link_all_deplibs
36364
36365 # Set to "yes" if exported symbols are required.
36366 always_export_symbols=$always_export_symbols
36367
36368 # The commands to list exported symbols.
36369 export_symbols_cmds=$lt_export_symbols_cmds
36370
36371 # Symbols that should not be listed in the preloaded symbols.
36372 exclude_expsyms=$lt_exclude_expsyms
36373
36374 # Symbols that must always be exported.
36375 include_expsyms=$lt_include_expsyms
36376
36377 # Commands necessary for linking programs (against libraries) with templates.
36378 prelink_cmds=$lt_prelink_cmds
36379
36380 # Commands necessary for finishing linking programs.
36381 postlink_cmds=$lt_postlink_cmds
36382
36383 # Specify filename containing input files.
36384 file_list_spec=$lt_file_list_spec
36385
36386 # How to hardcode a shared library path into an executable.
36387 hardcode_action=$hardcode_action
36388
36389 # The directories searched by this compiler when creating a shared library.
36390 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36391
36392 # Dependencies to place before and after the objects being linked to
36393 # create a shared library.
36394 predep_objects=$lt_predep_objects
36395 postdep_objects=$lt_postdep_objects
36396 predeps=$lt_predeps
36397 postdeps=$lt_postdeps
36398
36399 # The library search path used internally by the compiler when linking
36400 # a shared library.
36401 compiler_lib_search_path=$lt_compiler_lib_search_path
36402
36403 # ### END LIBTOOL CONFIG
36404
36405 _LT_EOF
36406
36407     cat <<'_LT_EOF' >> "$cfgfile"
36408
36409 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
36410
36411 # func_munge_path_list VARIABLE PATH
36412 # -----------------------------------
36413 # VARIABLE is name of variable containing _space_ separated list of
36414 # directories to be munged by the contents of PATH, which is string
36415 # having a format:
36416 # "DIR[:DIR]:"
36417 #       string "DIR[ DIR]" will be prepended to VARIABLE
36418 # ":DIR[:DIR]"
36419 #       string "DIR[ DIR]" will be appended to VARIABLE
36420 # "DIRP[:DIRP]::[DIRA:]DIRA"
36421 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
36422 #       "DIRA[ DIRA]" will be appended to VARIABLE
36423 # "DIR[:DIR]"
36424 #       VARIABLE will be replaced by "DIR[ DIR]"
36425 func_munge_path_list ()
36426 {
36427     case x$2 in
36428     x)
36429         ;;
36430     *:)
36431         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
36432         ;;
36433     x:*)
36434         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
36435         ;;
36436     *::*)
36437         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
36438         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
36439         ;;
36440     *)
36441         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
36442         ;;
36443     esac
36444 }
36445
36446
36447 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
36448 func_cc_basename ()
36449 {
36450     for cc_temp in $*""; do
36451       case $cc_temp in
36452         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
36453         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
36454         \-*) ;;
36455         *) break;;
36456       esac
36457     done
36458     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
36459 }
36460
36461
36462 # ### END FUNCTIONS SHARED WITH CONFIGURE
36463
36464 _LT_EOF
36465
36466   case $host_os in
36467   aix3*)
36468     cat <<\_LT_EOF >> "$cfgfile"
36469 # AIX sometimes has problems with the GCC collect2 program.  For some
36470 # reason, if we set the COLLECT_NAMES environment variable, the problems
36471 # vanish in a puff of smoke.
36472 if test set != "${COLLECT_NAMES+set}"; then
36473   COLLECT_NAMES=
36474   export COLLECT_NAMES
36475 fi
36476 _LT_EOF
36477     ;;
36478   esac
36479
36480
36481
36482 ltmain=$ac_aux_dir/ltmain.sh
36483
36484
36485   # We use sed instead of cat because bash on DJGPP gets confused if
36486   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
36487   # text mode, it properly converts lines to CR/LF.  This bash problem
36488   # is reportedly fixed, but why not run on old versions too?
36489   sed '$q' "$ltmain" >> "$cfgfile" \
36490      || (rm -f "$cfgfile"; exit 1)
36491
36492    mv -f "$cfgfile" "$ofile" ||
36493     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36494   chmod +x "$ofile"
36495
36496
36497     cat <<_LT_EOF >> "$ofile"
36498
36499 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36500
36501 # The linker used to build libraries.
36502 LD=$lt_LD_CXX
36503
36504 # How to create reloadable object files.
36505 reload_flag=$lt_reload_flag_CXX
36506 reload_cmds=$lt_reload_cmds_CXX
36507
36508 # Commands used to build an old-style archive.
36509 old_archive_cmds=$lt_old_archive_cmds_CXX
36510
36511 # A language specific compiler.
36512 CC=$lt_compiler_CXX
36513
36514 # Is the compiler the GNU compiler?
36515 with_gcc=$GCC_CXX
36516
36517 # Compiler flag to turn off builtin functions.
36518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36519
36520 # Additional compiler flags for building library objects.
36521 pic_flag=$lt_lt_prog_compiler_pic_CXX
36522
36523 # How to pass a linker flag through the compiler.
36524 wl=$lt_lt_prog_compiler_wl_CXX
36525
36526 # Compiler flag to prevent dynamic linking.
36527 link_static_flag=$lt_lt_prog_compiler_static_CXX
36528
36529 # Does compiler simultaneously support -c and -o options?
36530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36531
36532 # Whether or not to add -lc for building shared libraries.
36533 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36534
36535 # Whether or not to disallow shared libs when runtime libs are static.
36536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36537
36538 # Compiler flag to allow reflexive dlopens.
36539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36540
36541 # Compiler flag to generate shared objects directly from archives.
36542 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36543
36544 # Whether the compiler copes with passing no objects directly.
36545 compiler_needs_object=$lt_compiler_needs_object_CXX
36546
36547 # Create an old-style archive from a shared archive.
36548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36549
36550 # Create a temporary old-style archive to link instead of a shared archive.
36551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36552
36553 # Commands used to build a shared archive.
36554 archive_cmds=$lt_archive_cmds_CXX
36555 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36556
36557 # Commands used to build a loadable module if different from building
36558 # a shared archive.
36559 module_cmds=$lt_module_cmds_CXX
36560 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36561
36562 # Whether we are building with GNU ld or not.
36563 with_gnu_ld=$lt_with_gnu_ld_CXX
36564
36565 # Flag that allows shared libraries with undefined symbols to be built.
36566 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36567
36568 # Flag that enforces no undefined symbols.
36569 no_undefined_flag=$lt_no_undefined_flag_CXX
36570
36571 # Flag to hardcode \$libdir into a binary during linking.
36572 # This must work even if \$libdir does not exist
36573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36574
36575 # Whether we need a single "-rpath" flag with a separated argument.
36576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36577
36578 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36579 # DIR into the resulting binary.
36580 hardcode_direct=$hardcode_direct_CXX
36581
36582 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36583 # DIR into the resulting binary and the resulting library dependency is
36584 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
36585 # library is relocated.
36586 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36587
36588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36589 # into the resulting binary.
36590 hardcode_minus_L=$hardcode_minus_L_CXX
36591
36592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36593 # into the resulting binary.
36594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36595
36596 # Set to "yes" if building a shared library automatically hardcodes DIR
36597 # into the library and all subsequent libraries and executables linked
36598 # against it.
36599 hardcode_automatic=$hardcode_automatic_CXX
36600
36601 # Set to yes if linker adds runtime paths of dependent libraries
36602 # to runtime path list.
36603 inherit_rpath=$inherit_rpath_CXX
36604
36605 # Whether libtool must link a program against all its dependency libraries.
36606 link_all_deplibs=$link_all_deplibs_CXX
36607
36608 # Set to "yes" if exported symbols are required.
36609 always_export_symbols=$always_export_symbols_CXX
36610
36611 # The commands to list exported symbols.
36612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36613
36614 # Symbols that should not be listed in the preloaded symbols.
36615 exclude_expsyms=$lt_exclude_expsyms_CXX
36616
36617 # Symbols that must always be exported.
36618 include_expsyms=$lt_include_expsyms_CXX
36619
36620 # Commands necessary for linking programs (against libraries) with templates.
36621 prelink_cmds=$lt_prelink_cmds_CXX
36622
36623 # Commands necessary for finishing linking programs.
36624 postlink_cmds=$lt_postlink_cmds_CXX
36625
36626 # Specify filename containing input files.
36627 file_list_spec=$lt_file_list_spec_CXX
36628
36629 # How to hardcode a shared library path into an executable.
36630 hardcode_action=$hardcode_action_CXX
36631
36632 # The directories searched by this compiler when creating a shared library.
36633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36634
36635 # Dependencies to place before and after the objects being linked to
36636 # create a shared library.
36637 predep_objects=$lt_predep_objects_CXX
36638 postdep_objects=$lt_postdep_objects_CXX
36639 predeps=$lt_predeps_CXX
36640 postdeps=$lt_postdeps_CXX
36641
36642 # The library search path used internally by the compiler when linking
36643 # a shared library.
36644 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36645
36646 # ### END LIBTOOL TAG CONFIG: CXX
36647 _LT_EOF
36648
36649  ;;
36650
36651   esac
36652 done # for ac_tag
36653
36654
36655 as_fn_exit 0
36656 _ACEOF
36657 ac_clean_files=$ac_clean_files_save
36658
36659 test $ac_write_fail = 0 ||
36660   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36661
36662
36663 # configure is writing to config.log, and then calls config.status.
36664 # config.status does its own redirection, appending to config.log.
36665 # Unfortunately, on DOS this fails, as config.log is still kept open
36666 # by configure, so config.status won't be able to write to it; its
36667 # output is simply discarded.  So we exec the FD to /dev/null,
36668 # effectively closing config.log, so it can be properly (re)opened and
36669 # appended to by config.status.  When coming back to configure, we
36670 # need to make the FD available again.
36671 if test "$no_create" != yes; then
36672   ac_cs_success=:
36673   ac_config_status_args=
36674   test "$silent" = yes &&
36675     ac_config_status_args="$ac_config_status_args --quiet"
36676   exec 5>/dev/null
36677   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36678   exec 5>>config.log
36679   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36680   # would make configure fail if this is the last instruction.
36681   $ac_cs_success || as_fn_exit 1
36682 fi
36683
36684 #
36685 # CONFIG_SUBDIRS section.
36686 #
36687 if test "$no_recursion" != yes; then
36688
36689   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36690   # so they do not pile up.
36691   ac_sub_configure_args=
36692   ac_prev=
36693   eval "set x $ac_configure_args"
36694   shift
36695   for ac_arg
36696   do
36697     if test -n "$ac_prev"; then
36698       ac_prev=
36699       continue
36700     fi
36701     case $ac_arg in
36702     -cache-file | --cache-file | --cache-fil | --cache-fi \
36703     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36704       ac_prev=cache_file ;;
36705     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36706     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36707     | --c=*)
36708       ;;
36709     --config-cache | -C)
36710       ;;
36711     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36712       ac_prev=srcdir ;;
36713     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36714       ;;
36715     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36716       ac_prev=prefix ;;
36717     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36718       ;;
36719     --disable-option-checking)
36720       ;;
36721     *)
36722       case $ac_arg in
36723       *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36724       esac
36725       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36726     esac
36727   done
36728
36729   # Always prepend --prefix to ensure using the same prefix
36730   # in subdir configurations.
36731   ac_arg="--prefix=$prefix"
36732   case $ac_arg in
36733   *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36734   esac
36735   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36736
36737   # Pass --silent
36738   if test "$silent" = yes; then
36739     ac_sub_configure_args="--silent $ac_sub_configure_args"
36740   fi
36741
36742   # Always prepend --disable-option-checking to silence warnings, since
36743   # different subdirs can have different --enable and --with options.
36744   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36745
36746   ac_popdir=`pwd`
36747   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36748
36749     # Do not complain, so a configure script can configure whichever
36750     # parts of a large source tree are present.
36751     test -d "$srcdir/$ac_dir" || continue
36752
36753     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36754     printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36755     printf "%s\n" "$ac_msg" >&6
36756     as_dir="$ac_dir"; as_fn_mkdir_p
36757     ac_builddir=.
36758
36759 case "$ac_dir" in
36760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36761 *)
36762   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36763   # A ".." for each directory in $ac_dir_suffix.
36764   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36765   case $ac_top_builddir_sub in
36766   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36767   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36768   esac ;;
36769 esac
36770 ac_abs_top_builddir=$ac_pwd
36771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36772 # for backward compatibility:
36773 ac_top_builddir=$ac_top_build_prefix
36774
36775 case $srcdir in
36776   .)  # We are building in place.
36777     ac_srcdir=.
36778     ac_top_srcdir=$ac_top_builddir_sub
36779     ac_abs_top_srcdir=$ac_pwd ;;
36780   [\\/]* | ?:[\\/]* )  # Absolute name.
36781     ac_srcdir=$srcdir$ac_dir_suffix;
36782     ac_top_srcdir=$srcdir
36783     ac_abs_top_srcdir=$srcdir ;;
36784   *) # Relative name.
36785     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36786     ac_top_srcdir=$ac_top_build_prefix$srcdir
36787     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36788 esac
36789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36790
36791
36792     cd "$ac_dir"
36793
36794     # Check for configure.gnu first; this name is used for a wrapper for
36795     # Metaconfig's "Configure" on case-insensitive file systems.
36796     if test -f "$ac_srcdir/configure.gnu"; then
36797       ac_sub_configure=$ac_srcdir/configure.gnu
36798     elif test -f "$ac_srcdir/configure"; then
36799       ac_sub_configure=$ac_srcdir/configure
36800     else
36801       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36802 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36803       ac_sub_configure=
36804     fi
36805
36806     # The recursion is here.
36807     if test -n "$ac_sub_configure"; then
36808       # Make the cache file name correct relative to the subdirectory.
36809       case $cache_file in
36810       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36811       *) # Relative name.
36812         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36813       esac
36814
36815       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36816 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36817       # The eval makes quoting arguments work.
36818       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36819            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36820         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36821     fi
36822
36823     cd "$ac_popdir"
36824   done
36825 fi
36826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36828 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36829 fi
36830
36831
36832 ## ---------------------------------- ##
36833 ##  Start of distclean amending code  ##
36834 ## ---------------------------------- ##
36835
36836 for xc_subdir in '.'
36837 do
36838
36839 if test ! -f "$xc_subdir/Makefile"; then
36840   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
36841   exit 1
36842 fi
36843
36844 # Fetch dependency tracking file list from Makefile include lines.
36845
36846 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
36847 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
36848
36849 # --disable-dependency-tracking might have been used, consequently
36850 # there is nothing to amend without a dependency tracking file list.
36851
36852 if test $xc_cnt_words -gt 0; then
36853
36854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
36855 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
36856
36857 # Build Makefile specific patch hunk.
36858
36859 xc_p="$xc_subdir/xc_patch.tmp"
36860
36861 xc_rm_depfiles=`echo "$xc_inc_lines" \
36862   | $SED 's%include%    -rm -f%' 2>/dev/null`
36863
36864 xc_dep_subdirs=`echo "$xc_inc_lines" \
36865   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
36866   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
36867   | sort | uniq`
36868
36869 echo "$xc_rm_depfiles" >$xc_p
36870
36871 for xc_dep_dir in $xc_dep_subdirs; do
36872   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
36873   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
36874   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
36875   echo "${xc_tab}fi"                                                                >>$xc_p
36876 done
36877
36878 # Build Makefile patching sed scripts.
36879
36880 xc_s1="$xc_subdir/xc_script_1.tmp"
36881 xc_s2="$xc_subdir/xc_script_2.tmp"
36882 xc_s3="$xc_subdir/xc_script_3.tmp"
36883
36884 cat >$xc_s1 <<\_EOT
36885 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
36886   s/^.*(DEPDIR)/___xc_depdir_line___/
36887 }
36888 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
36889   s/^.*(DEPDIR)/___xc_depdir_line___/
36890 }
36891 _EOT
36892
36893 cat >$xc_s2 <<\_EOT
36894 /___xc_depdir_line___$/{
36895   N
36896   /___xc_depdir_line___$/D
36897 }
36898 _EOT
36899
36900 cat >$xc_s3 <<_EOT
36901 /^___xc_depdir_line___/{
36902   r $xc_p
36903   d
36904 }
36905 _EOT
36906
36907 # Apply patch to Makefile and cleanup.
36908
36909 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
36910 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
36911 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
36912
36913 if test -f "$xc_subdir/Makefile.tmp3"; then
36914   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
36915 fi
36916
36917 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
36918 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
36919 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
36920
36921 test -f "$xc_p"  && rm -f "$xc_p"
36922 test -f "$xc_s1" && rm -f "$xc_s1"
36923 test -f "$xc_s2" && rm -f "$xc_s2"
36924 test -f "$xc_s3" && rm -f "$xc_s3"
36925
36926 fi
36927
36928 done
36929
36930 ## -------------------------------- ##
36931 ##  End of distclean amending code  ##
36932 ## -------------------------------- ##
36933
36934
36935