• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for c-ares 1.16.1.
4#
5# Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13
14## -------------------------------- ##
15##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
16## -------------------------------- ##
17
18xc_configure_preamble_ver_major='1'
19xc_configure_preamble_ver_minor='0'
20
21#
22# Set IFS to space, tab and newline.
23#
24
25xc_space=' '
26xc_tab='	'
27xc_newline='
28'
29IFS="$xc_space$xc_tab$xc_newline"
30
31#
32# Set internationalization behavior variables.
33#
34
35LANG='C'
36LC_ALL='C'
37LANGUAGE='C'
38export LANG
39export LC_ALL
40export LANGUAGE
41
42#
43# Some useful variables.
44#
45
46xc_msg_warn='configure: WARNING:'
47xc_msg_abrt='Can not continue.'
48xc_msg_err='configure: error:'
49
50#
51# Verify that 'echo' command is available, otherwise abort.
52#
53
54xc_tst_str='unknown'
55(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
56case "x$xc_tst_str" in # ((
57  xsuccess)
58    :
59    ;;
60  *)
61    # Try built-in echo, and fail.
62    echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
63    exit 1
64    ;;
65esac
66
67#
68# Verify that 'test' command is available, otherwise abort.
69#
70
71xc_tst_str='unknown'
72(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
73case "x$xc_tst_str" in # ((
74  xsuccess)
75    :
76    ;;
77  *)
78    echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
79    exit 1
80    ;;
81esac
82
83#
84# Verify that 'PATH' variable is set, otherwise abort.
85#
86
87xc_tst_str='unknown'
88(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
89case "x$xc_tst_str" in # ((
90  xsuccess)
91    :
92    ;;
93  *)
94    echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
95    exit 1
96    ;;
97esac
98
99#
100# Verify that 'expr' command is available, otherwise abort.
101#
102
103xc_tst_str='unknown'
104xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
105case "x$xc_tst_str" in # ((
106  x7)
107    :
108    ;;
109  *)
110    echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
111    exit 1
112    ;;
113esac
114
115#
116# Verify that 'sed' utility is found within 'PATH', otherwise abort.
117#
118
119xc_tst_str='unknown'
120xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
121  | sed -e 's:unknown:success:' 2>/dev/null`
122case "x$xc_tst_str" in # ((
123  xsuccess)
124    :
125    ;;
126  *)
127    echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
128    exit 1
129    ;;
130esac
131
132#
133# Verify that 'grep' utility is found within 'PATH', otherwise abort.
134#
135
136xc_tst_str='unknown'
137(`echo "$xc_tst_str" 2>/dev/null \
138  | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
139case "x$xc_tst_str" in # ((
140  xsuccess)
141    :
142    ;;
143  *)
144    echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
145    exit 1
146    ;;
147esac
148
149#
150# Verify that 'tr' utility is found within 'PATH', otherwise abort.
151#
152
153xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
154xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
155  | tr -d "0123456789$xc_tab" 2>/dev/null`
156case "x$xc_tst_str" in # ((
157  xsuccess)
158    :
159    ;;
160  *)
161    echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
162    exit 1
163    ;;
164esac
165
166#
167# Verify that 'wc' utility is found within 'PATH', otherwise abort.
168#
169
170xc_tst_str='unknown unknown unknown unknown'
171xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
172  | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
173case "x$xc_tst_str" in # ((
174  x4)
175    :
176    ;;
177  *)
178    echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
179    exit 1
180    ;;
181esac
182
183#
184# Verify that 'cat' utility is found within 'PATH', otherwise abort.
185#
186
187xc_tst_str='unknown'
188xc_tst_str=`cat <<_EOT 2>/dev/null \
189  | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
190unknown
191unknown
192unknown
193_EOT`
194case "x$xc_tst_str" in # ((
195  x3)
196    :
197    ;;
198  *)
199    echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
200    exit 1
201    ;;
202esac
203
204#
205# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
206#
207
208# Directory count in 'PATH' when using a colon separator.
209xc_tst_dirs_col='x'
210xc_tst_prev_IFS=$IFS; IFS=':'
211for xc_tst_dir in $PATH; do
212  IFS=$xc_tst_prev_IFS
213  xc_tst_dirs_col="x$xc_tst_dirs_col"
214done
215IFS=$xc_tst_prev_IFS
216xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
217
218# Directory count in 'PATH' when using a semicolon separator.
219xc_tst_dirs_sem='x'
220xc_tst_prev_IFS=$IFS; IFS=';'
221for xc_tst_dir in $PATH; do
222  IFS=$xc_tst_prev_IFS
223  xc_tst_dirs_sem="x$xc_tst_dirs_sem"
224done
225IFS=$xc_tst_prev_IFS
226xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
227
228if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
229  # When both counting methods give the same result we do not want to
230  # chose one over the other, and consider auto-detection not possible.
231  if test -z "$PATH_SEPARATOR"; then
232    # Stop dead until user provides 'PATH_SEPARATOR' definition.
233    echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
234    exit 1
235  fi
236else
237  # Separator with the greater directory count is the auto-detected one.
238  if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
239    xc_tst_auto_separator=';'
240  else
241    xc_tst_auto_separator=':'
242  fi
243  if test -z "$PATH_SEPARATOR"; then
244    # Simply use the auto-detected one when not already set.
245    PATH_SEPARATOR=$xc_tst_auto_separator
246  elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
247    echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
248  fi
249fi
250xc_PATH_SEPARATOR=$PATH_SEPARATOR
251
252xc_configure_preamble_result='yes'
253
254
255## -------------------- ##
256## M4sh Initialization. ##
257## -------------------- ##
258
259# Be more Bourne compatible
260DUALCASE=1; export DUALCASE # for MKS sh
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in #(
270  *posix*) :
271    set -o posix ;; #(
272  *) :
273     ;;
274esac
275fi
276
277
278as_nl='
279'
280export as_nl
281# Printing a long string crashes Solaris 7 /usr/bin/printf.
282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
285# Prefer a ksh shell builtin over an external printf program on Solaris,
286# but without wasting forks for bash or zsh.
287if test -z "$BASH_VERSION$ZSH_VERSION" \
288    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
289  as_echo='print -r --'
290  as_echo_n='print -rn --'
291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
292  as_echo='printf %s\n'
293  as_echo_n='printf %s'
294else
295  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
296    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
297    as_echo_n='/usr/ucb/echo -n'
298  else
299    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
300    as_echo_n_body='eval
301      arg=$1;
302      case $arg in #(
303      *"$as_nl"*)
304	expr "X$arg" : "X\\(.*\\)$as_nl";
305	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
306      esac;
307      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
308    '
309    export as_echo_n_body
310    as_echo_n='sh -c $as_echo_n_body as_echo'
311  fi
312  export as_echo_body
313  as_echo='sh -c $as_echo_body as_echo'
314fi
315
316
317
318# IFS
319# We need space, tab and new line, in precisely that order.  Quoting is
320# there to prevent editors from complaining about space-tab.
321# (If _AS_PATH_WALK were called with IFS unset, it would disable word
322# splitting by setting IFS to empty value.)
323IFS=" ""	$as_nl"
324
325# Find who we are.  Look in the path if we contain no directory separator.
326as_myself=
327case $0 in #((
328  *[\\/]* ) as_myself=$0 ;;
329  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330for as_dir in $PATH
331do
332  IFS=$as_save_IFS
333  test -z "$as_dir" && as_dir=.
334    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
335  done
336IFS=$as_save_IFS
337
338     ;;
339esac
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.
342if test "x$as_myself" = x; then
343  as_myself=$0
344fi
345if test ! -f "$as_myself"; then
346  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
347  exit 1
348fi
349
350# Unset variables that we do not need and which cause bugs (e.g. in
351# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
352# suppresses any "Segmentation fault" message there.  '((' could
353# trigger a bug in pdksh 5.2.14.
354for as_var in BASH_ENV ENV MAIL MAILPATH
355do eval test x\${$as_var+set} = xset \
356  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
357done
358PS1='$ '
359PS2='> '
360PS4='+ '
361
362# NLS nuisances.
363LC_ALL=C
364export LC_ALL
365LANGUAGE=C
366export LANGUAGE
367
368# CDPATH.
369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
370
371# Use a proper internal environment variable to ensure we don't fall
372  # into an infinite loop, continuously re-executing ourselves.
373  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
374    _as_can_reexec=no; export _as_can_reexec;
375    # We cannot yet assume a decent shell, so we have to provide a
376# neutralization value for shells without unset; and this also
377# works around shells that cannot unset nonexistent variables.
378# Preserve -v and -x to the replacement shell.
379BASH_ENV=/dev/null
380ENV=/dev/null
381(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
382case $- in # ((((
383  *v*x* | *x*v* ) as_opts=-vx ;;
384  *v* ) as_opts=-v ;;
385  *x* ) as_opts=-x ;;
386  * ) as_opts= ;;
387esac
388exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
389# Admittedly, this is quite paranoid, since all the known shells bail
390# out after a failed `exec'.
391$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
392as_fn_exit 255
393  fi
394  # We don't want this to propagate to other subprocesses.
395          { _as_can_reexec=; unset _as_can_reexec;}
396if test "x$CONFIG_SHELL" = x; then
397  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
398  emulate sh
399  NULLCMD=:
400  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
401  # is contrary to our usage.  Disable this feature.
402  alias -g '\${1+\"\$@\"}'='\"\$@\"'
403  setopt NO_GLOB_SUBST
404else
405  case \`(set -o) 2>/dev/null\` in #(
406  *posix*) :
407    set -o posix ;; #(
408  *) :
409     ;;
410esac
411fi
412"
413  as_required="as_fn_return () { (exit \$1); }
414as_fn_success () { as_fn_return 0; }
415as_fn_failure () { as_fn_return 1; }
416as_fn_ret_success () { return 0; }
417as_fn_ret_failure () { return 1; }
418
419exitcode=0
420as_fn_success || { exitcode=1; echo as_fn_success failed.; }
421as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
422as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
423as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
424if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
425
426else
427  exitcode=1; echo positional parameters were not saved.
428fi
429test x\$exitcode = x0 || exit 1
430test -x / || exit 1"
431  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
432  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
433  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
434  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
435test \$(( 1 + 1 )) = 2 || exit 1
436
437  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
438    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
439    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
440    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
441    PATH=/empty FPATH=/empty; export PATH FPATH
442    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
443      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
444  if (eval "$as_required") 2>/dev/null; then :
445  as_have_required=yes
446else
447  as_have_required=no
448fi
449  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
450
451else
452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453as_found=false
454for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
455do
456  IFS=$as_save_IFS
457  test -z "$as_dir" && as_dir=.
458  as_found=:
459  case $as_dir in #(
460	 /*)
461	   for as_base in sh bash ksh sh5; do
462	     # Try only shells that exist, to save several forks.
463	     as_shell=$as_dir/$as_base
464	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
465		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
466  CONFIG_SHELL=$as_shell as_have_required=yes
467		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
468  break 2
469fi
470fi
471	   done;;
472       esac
473  as_found=false
474done
475$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
476	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
477  CONFIG_SHELL=$SHELL as_have_required=yes
478fi; }
479IFS=$as_save_IFS
480
481
482      if test "x$CONFIG_SHELL" != x; then :
483  export CONFIG_SHELL
484             # We cannot yet assume a decent shell, so we have to provide a
485# neutralization value for shells without unset; and this also
486# works around shells that cannot unset nonexistent variables.
487# Preserve -v and -x to the replacement shell.
488BASH_ENV=/dev/null
489ENV=/dev/null
490(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
491case $- in # ((((
492  *v*x* | *x*v* ) as_opts=-vx ;;
493  *v* ) as_opts=-v ;;
494  *x* ) as_opts=-x ;;
495  * ) as_opts= ;;
496esac
497exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
498# Admittedly, this is quite paranoid, since all the known shells bail
499# out after a failed `exec'.
500$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
501exit 255
502fi
503
504    if test x$as_have_required = xno; then :
505  $as_echo "$0: This script requires a shell more modern than all"
506  $as_echo "$0: the shells that I found on your system."
507  if test x${ZSH_VERSION+set} = xset ; then
508    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
509    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
510  else
511    $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
512$0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
513$0: your system, including any error possibly output before
514$0: this message. Then install a modern shell, or manually
515$0: run the script under such a shell if you do have one."
516  fi
517  exit 1
518fi
519fi
520fi
521SHELL=${CONFIG_SHELL-/bin/sh}
522export SHELL
523# Unset more variables known to interfere with behavior of common tools.
524CLICOLOR_FORCE= GREP_OPTIONS=
525unset CLICOLOR_FORCE GREP_OPTIONS
526
527## --------------------- ##
528## M4sh Shell Functions. ##
529## --------------------- ##
530# as_fn_unset VAR
531# ---------------
532# Portably unset VAR.
533as_fn_unset ()
534{
535  { eval $1=; unset $1;}
536}
537as_unset=as_fn_unset
538
539# as_fn_set_status STATUS
540# -----------------------
541# Set $? to STATUS, without forking.
542as_fn_set_status ()
543{
544  return $1
545} # as_fn_set_status
546
547# as_fn_exit STATUS
548# -----------------
549# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
550as_fn_exit ()
551{
552  set +e
553  as_fn_set_status $1
554  exit $1
555} # as_fn_exit
556
557# as_fn_mkdir_p
558# -------------
559# Create "$as_dir" as a directory, including parents if necessary.
560as_fn_mkdir_p ()
561{
562
563  case $as_dir in #(
564  -*) as_dir=./$as_dir;;
565  esac
566  test -d "$as_dir" || eval $as_mkdir_p || {
567    as_dirs=
568    while :; do
569      case $as_dir in #(
570      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
571      *) as_qdir=$as_dir;;
572      esac
573      as_dirs="'$as_qdir' $as_dirs"
574      as_dir=`$as_dirname -- "$as_dir" ||
575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576	 X"$as_dir" : 'X\(//\)[^/]' \| \
577	 X"$as_dir" : 'X\(//\)$' \| \
578	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
579$as_echo X"$as_dir" |
580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
581	    s//\1/
582	    q
583	  }
584	  /^X\(\/\/\)[^/].*/{
585	    s//\1/
586	    q
587	  }
588	  /^X\(\/\/\)$/{
589	    s//\1/
590	    q
591	  }
592	  /^X\(\/\).*/{
593	    s//\1/
594	    q
595	  }
596	  s/.*/./; q'`
597      test -d "$as_dir" && break
598    done
599    test -z "$as_dirs" || eval "mkdir $as_dirs"
600  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
601
602
603} # as_fn_mkdir_p
604
605# as_fn_executable_p FILE
606# -----------------------
607# Test if FILE is an executable regular file.
608as_fn_executable_p ()
609{
610  test -f "$1" && test -x "$1"
611} # as_fn_executable_p
612# as_fn_append VAR VALUE
613# ----------------------
614# Append the text in VALUE to the end of the definition contained in VAR. Take
615# advantage of any shell optimizations that allow amortized linear growth over
616# repeated appends, instead of the typical quadratic growth present in naive
617# implementations.
618if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
619  eval 'as_fn_append ()
620  {
621    eval $1+=\$2
622  }'
623else
624  as_fn_append ()
625  {
626    eval $1=\$$1\$2
627  }
628fi # as_fn_append
629
630# as_fn_arith ARG...
631# ------------------
632# Perform arithmetic evaluation on the ARGs, and store the result in the
633# global $as_val. Take advantage of shells that can avoid forks. The arguments
634# must be portable across $(()) and expr.
635if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
636  eval 'as_fn_arith ()
637  {
638    as_val=$(( $* ))
639  }'
640else
641  as_fn_arith ()
642  {
643    as_val=`expr "$@" || test $? -eq 1`
644  }
645fi # as_fn_arith
646
647
648# as_fn_error STATUS ERROR [LINENO LOG_FD]
649# ----------------------------------------
650# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
651# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
652# script with STATUS, using 1 if that was 0.
653as_fn_error ()
654{
655  as_status=$1; test $as_status -eq 0 && as_status=1
656  if test "$4"; then
657    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
658    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
659  fi
660  $as_echo "$as_me: error: $2" >&2
661  as_fn_exit $as_status
662} # as_fn_error
663
664if expr a : '\(a\)' >/dev/null 2>&1 &&
665   test "X`expr 00001 : '.*\(...\)'`" = X001; then
666  as_expr=expr
667else
668  as_expr=false
669fi
670
671if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
672  as_basename=basename
673else
674  as_basename=false
675fi
676
677if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
678  as_dirname=dirname
679else
680  as_dirname=false
681fi
682
683as_me=`$as_basename -- "$0" ||
684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
685	 X"$0" : 'X\(//\)$' \| \
686	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
687$as_echo X/"$0" |
688    sed '/^.*\/\([^/][^/]*\)\/*$/{
689	    s//\1/
690	    q
691	  }
692	  /^X\/\(\/\/\)$/{
693	    s//\1/
694	    q
695	  }
696	  /^X\/\(\/\).*/{
697	    s//\1/
698	    q
699	  }
700	  s/.*/./; q'`
701
702# Avoid depending upon Character Ranges.
703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
706as_cr_digits='0123456789'
707as_cr_alnum=$as_cr_Letters$as_cr_digits
708
709
710  as_lineno_1=$LINENO as_lineno_1a=$LINENO
711  as_lineno_2=$LINENO as_lineno_2a=$LINENO
712  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
713  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
714  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
715  sed -n '
716    p
717    /[$]LINENO/=
718  ' <$as_myself |
719    sed '
720      s/[$]LINENO.*/&-/
721      t lineno
722      b
723      :lineno
724      N
725      :loop
726      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
727      t loop
728      s/-\n.*//
729    ' >$as_me.lineno &&
730  chmod +x "$as_me.lineno" ||
731    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
732
733  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
734  # already done that, so ensure we don't try to do so again and fall
735  # in an infinite loop.  This has already happened in practice.
736  _as_can_reexec=no; export _as_can_reexec
737  # Don't try to exec as it changes $[0], causing all sort of problems
738  # (the dirname of $[0] is not the place where we might find the
739  # original and so on.  Autoconf is especially sensitive to this).
740  . "./$as_me.lineno"
741  # Exit status is that of the last command.
742  exit
743}
744
745ECHO_C= ECHO_N= ECHO_T=
746case `echo -n x` in #(((((
747-n*)
748  case `echo 'xy\c'` in
749  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
750  xy)  ECHO_C='\c';;
751  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
752       ECHO_T='	';;
753  esac;;
754*)
755  ECHO_N='-n';;
756esac
757
758rm -f conf$$ conf$$.exe conf$$.file
759if test -d conf$$.dir; then
760  rm -f conf$$.dir/conf$$.file
761else
762  rm -f conf$$.dir
763  mkdir conf$$.dir 2>/dev/null
764fi
765if (echo >conf$$.file) 2>/dev/null; then
766  if ln -s conf$$.file conf$$ 2>/dev/null; then
767    as_ln_s='ln -s'
768    # ... but there are two gotchas:
769    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
770    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
771    # In both cases, we have to default to `cp -pR'.
772    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
773      as_ln_s='cp -pR'
774  elif ln conf$$.file conf$$ 2>/dev/null; then
775    as_ln_s=ln
776  else
777    as_ln_s='cp -pR'
778  fi
779else
780  as_ln_s='cp -pR'
781fi
782rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
783rmdir conf$$.dir 2>/dev/null
784
785if mkdir -p . 2>/dev/null; then
786  as_mkdir_p='mkdir -p "$as_dir"'
787else
788  test -d ./-p && rmdir ./-p
789  as_mkdir_p=false
790fi
791
792as_test_x='test -x'
793as_executable_p=as_fn_executable_p
794
795# Sed expression to map a string onto a valid CPP name.
796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
797
798# Sed expression to map a string onto a valid variable name.
799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
800
801SHELL=${CONFIG_SHELL-/bin/sh}
802
803
804test -n "$DJDIR" || exec 7<&0 </dev/null
805exec 6>&1
806
807# Name of the host.
808# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
809# so uname gets run too.
810ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
811
812#
813# Initializations.
814#
815ac_default_prefix=/usr/local
816ac_clean_files=
817ac_config_libobj_dir=.
818LIBOBJS=
819cross_compiling=no
820subdirs=
821MFLAGS=
822MAKEFLAGS=
823
824# Identity of this package.
825PACKAGE_NAME='c-ares'
826PACKAGE_TARNAME='c-ares'
827PACKAGE_VERSION='1.16.1'
828PACKAGE_STRING='c-ares 1.16.1'
829PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
830PACKAGE_URL=''
831
832ac_unique_file="ares_ipv6.h"
833# Factoring default headers for most tests.
834ac_includes_default="\
835#include <stdio.h>
836#ifdef HAVE_SYS_TYPES_H
837# include <sys/types.h>
838#endif
839#ifdef HAVE_SYS_STAT_H
840# include <sys/stat.h>
841#endif
842#ifdef STDC_HEADERS
843# include <stdlib.h>
844# include <stddef.h>
845#else
846# ifdef HAVE_STDLIB_H
847#  include <stdlib.h>
848# endif
849#endif
850#ifdef HAVE_STRING_H
851# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
852#  include <memory.h>
853# endif
854# include <string.h>
855#endif
856#ifdef HAVE_STRINGS_H
857# include <strings.h>
858#endif
859#ifdef HAVE_INTTYPES_H
860# include <inttypes.h>
861#endif
862#ifdef HAVE_STDINT_H
863# include <stdint.h>
864#endif
865#ifdef HAVE_UNISTD_H
866# include <unistd.h>
867#endif"
868
869enable_option_checking=no
870ac_subst_vars='am__EXEEXT_FALSE
871am__EXEEXT_TRUE
872LTLIBOBJS
873LIBOBJS
874subdirs
875CARES_CFLAG_EXTRAS
876CARES_PRIVATE_LIBS
877CFLAG_CARES_SYMBOL_HIDING
878DOING_CARES_SYMBOL_HIDING_FALSE
879DOING_CARES_SYMBOL_HIDING_TRUE
880RANDOM_FILE
881DOING_NATIVE_WINDOWS_FALSE
882DOING_NATIVE_WINDOWS_TRUE
883CURLDEBUG_FALSE
884CURLDEBUG_TRUE
885CPPFLAG_CARES_STATICLIB
886USE_CPPFLAG_CARES_STATICLIB_FALSE
887USE_CPPFLAG_CARES_STATICLIB_TRUE
888CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
889CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
890CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
891CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
892CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
893CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
894CXXCPP
895LT_SYS_LIBRARY_PATH
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
901MANIFEST_TOOL
902RANLIB
903ac_ct_AR
904LN_S
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LD
909FGREP
910LIBTOOL
911OBJDUMP
912DLLTOOL
913AS
914am__fastdepCXX_FALSE
915am__fastdepCXX_TRUE
916CXXDEPMODE
917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
920am__nodep
921AMDEPBACKSLASH
922AMDEP_FALSE
923AMDEP_TRUE
924am__include
925DEPDIR
926am__untar
927am__tar
928AMTAR
929am__leading_dot
930SET_MAKE
931AWK
932mkdir_p
933MKDIR_P
934INSTALL_STRIP_PROGRAM
935STRIP
936install_sh
937MAKEINFO
938AUTOHEADER
939AUTOMAKE
940AUTOCONF
941ACLOCAL
942VERSION
943PACKAGE
944CYGPATH_W
945am__isrc
946HAVE_CXX11
947ac_ct_CXX
948CXXFLAGS
949CXX
950CPP
951OBJEXT
952EXEEXT
953ac_ct_CC
954CPPFLAGS
955LDFLAGS
956CFLAGS
957CC
958INSTALL_DATA
959INSTALL_SCRIPT
960INSTALL_PROGRAM
961host_os
962host_vendor
963host_cpu
964host
965build_os
966build_vendor
967build_cpu
968build
969CODE_COVERAGE_RULES
970CODE_COVERAGE_LDFLAGS
971CODE_COVERAGE_CFLAGS
972GENHTML
973LCOV
974GCOV
975CODE_COVERAGE_ENABLED
976CODE_COVERAGE_ENABLED_FALSE
977CODE_COVERAGE_ENABLED_TRUE
978AR
979EGREP
980GREP
981SED
982AM_BACKSLASH
983AM_DEFAULT_VERBOSITY
984AM_DEFAULT_V
985AM_V
986MAINT
987MAINTAINER_MODE_FALSE
988MAINTAINER_MODE_TRUE
989target_alias
990host_alias
991build_alias
992LIBS
993ECHO_T
994ECHO_N
995ECHO_C
996DEFS
997mandir
998localedir
999libdir
1000psdir
1001pdfdir
1002dvidir
1003htmldir
1004infodir
1005docdir
1006oldincludedir
1007includedir
1008runstatedir
1009localstatedir
1010sharedstatedir
1011sysconfdir
1012datadir
1013datarootdir
1014libexecdir
1015sbindir
1016bindir
1017program_transform_name
1018prefix
1019exec_prefix
1020PACKAGE_URL
1021PACKAGE_BUGREPORT
1022PACKAGE_STRING
1023PACKAGE_VERSION
1024PACKAGE_TARNAME
1025PACKAGE_NAME
1026SHELL
1027PATH_SEPARATOR
1028am__quote'
1029ac_subst_files=''
1030ac_user_opts='
1031enable_option_checking
1032enable_maintainer_mode
1033enable_silent_rules
1034enable_debug
1035enable_optimize
1036enable_warnings
1037enable_werror
1038enable_curldebug
1039enable_symbol_hiding
1040enable_expose_statics
1041with_gcov
1042enable_code_coverage
1043enable_dependency_tracking
1044enable_largefile
1045enable_shared
1046enable_static
1047with_pic
1048enable_fast_install
1049with_aix_soname
1050with_gnu_ld
1051with_sysroot
1052enable_libtool_lock
1053enable_libgcc
1054with_random
1055enable_nonblocking
1056enable_tests
1057'
1058      ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CPP
1067CXX
1068CXXFLAGS
1069CCC
1070LT_SYS_LIBRARY_PATH
1071CXXCPP'
1072ac_subdirs_all='test'
1073
1074# Initialize some variables set by options.
1075ac_init_help=
1076ac_init_version=false
1077ac_unrecognized_opts=
1078ac_unrecognized_sep=
1079# The variables have the same names as the options, with
1080# dashes changed to underlines.
1081cache_file=/dev/null
1082exec_prefix=NONE
1083no_create=
1084no_recursion=
1085prefix=NONE
1086program_prefix=NONE
1087program_suffix=NONE
1088program_transform_name=s,x,x,
1089silent=
1090site=
1091srcdir=
1092verbose=
1093x_includes=NONE
1094x_libraries=NONE
1095
1096# Installation directory options.
1097# These are left unexpanded so users can "make install exec_prefix=/foo"
1098# and all the variables that are supposed to be based on exec_prefix
1099# by default will actually change.
1100# Use braces instead of parens because sh, perl, etc. also accept them.
1101# (The list follows the same order as the GNU Coding Standards.)
1102bindir='${exec_prefix}/bin'
1103sbindir='${exec_prefix}/sbin'
1104libexecdir='${exec_prefix}/libexec'
1105datarootdir='${prefix}/share'
1106datadir='${datarootdir}'
1107sysconfdir='${prefix}/etc'
1108sharedstatedir='${prefix}/com'
1109localstatedir='${prefix}/var'
1110runstatedir='${localstatedir}/run'
1111includedir='${prefix}/include'
1112oldincludedir='/usr/include'
1113docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1114infodir='${datarootdir}/info'
1115htmldir='${docdir}'
1116dvidir='${docdir}'
1117pdfdir='${docdir}'
1118psdir='${docdir}'
1119libdir='${exec_prefix}/lib'
1120localedir='${datarootdir}/locale'
1121mandir='${datarootdir}/man'
1122
1123ac_prev=
1124ac_dashdash=
1125for ac_option
1126do
1127  # If the previous option needs an argument, assign it.
1128  if test -n "$ac_prev"; then
1129    eval $ac_prev=\$ac_option
1130    ac_prev=
1131    continue
1132  fi
1133
1134  case $ac_option in
1135  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136  *=)   ac_optarg= ;;
1137  *)    ac_optarg=yes ;;
1138  esac
1139
1140  # Accept the important Cygnus configure options, so we can diagnose typos.
1141
1142  case $ac_dashdash$ac_option in
1143  --)
1144    ac_dashdash=yes ;;
1145
1146  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1147    ac_prev=bindir ;;
1148  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1149    bindir=$ac_optarg ;;
1150
1151  -build | --build | --buil | --bui | --bu)
1152    ac_prev=build_alias ;;
1153  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1154    build_alias=$ac_optarg ;;
1155
1156  -cache-file | --cache-file | --cache-fil | --cache-fi \
1157  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1158    ac_prev=cache_file ;;
1159  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1160  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1161    cache_file=$ac_optarg ;;
1162
1163  --config-cache | -C)
1164    cache_file=config.cache ;;
1165
1166  -datadir | --datadir | --datadi | --datad)
1167    ac_prev=datadir ;;
1168  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1169    datadir=$ac_optarg ;;
1170
1171  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1172  | --dataroo | --dataro | --datar)
1173    ac_prev=datarootdir ;;
1174  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1175  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1176    datarootdir=$ac_optarg ;;
1177
1178  -disable-* | --disable-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid feature name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"enable_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval enable_$ac_useropt=no ;;
1193
1194  -docdir | --docdir | --docdi | --doc | --do)
1195    ac_prev=docdir ;;
1196  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197    docdir=$ac_optarg ;;
1198
1199  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200    ac_prev=dvidir ;;
1201  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202    dvidir=$ac_optarg ;;
1203
1204  -enable-* | --enable-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid feature name: $ac_useropt"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"enable_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval enable_$ac_useropt=\$ac_optarg ;;
1219
1220  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1221  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1222  | --exec | --exe | --ex)
1223    ac_prev=exec_prefix ;;
1224  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1225  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1226  | --exec=* | --exe=* | --ex=*)
1227    exec_prefix=$ac_optarg ;;
1228
1229  -gas | --gas | --ga | --g)
1230    # Obsolete; use --with-gas.
1231    with_gas=yes ;;
1232
1233  -help | --help | --hel | --he | -h)
1234    ac_init_help=long ;;
1235  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1236    ac_init_help=recursive ;;
1237  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1238    ac_init_help=short ;;
1239
1240  -host | --host | --hos | --ho)
1241    ac_prev=host_alias ;;
1242  -host=* | --host=* | --hos=* | --ho=*)
1243    host_alias=$ac_optarg ;;
1244
1245  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1246    ac_prev=htmldir ;;
1247  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1248  | --ht=*)
1249    htmldir=$ac_optarg ;;
1250
1251  -includedir | --includedir | --includedi | --included | --include \
1252  | --includ | --inclu | --incl | --inc)
1253    ac_prev=includedir ;;
1254  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1255  | --includ=* | --inclu=* | --incl=* | --inc=*)
1256    includedir=$ac_optarg ;;
1257
1258  -infodir | --infodir | --infodi | --infod | --info | --inf)
1259    ac_prev=infodir ;;
1260  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1261    infodir=$ac_optarg ;;
1262
1263  -libdir | --libdir | --libdi | --libd)
1264    ac_prev=libdir ;;
1265  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1266    libdir=$ac_optarg ;;
1267
1268  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1269  | --libexe | --libex | --libe)
1270    ac_prev=libexecdir ;;
1271  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1272  | --libexe=* | --libex=* | --libe=*)
1273    libexecdir=$ac_optarg ;;
1274
1275  -localedir | --localedir | --localedi | --localed | --locale)
1276    ac_prev=localedir ;;
1277  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1278    localedir=$ac_optarg ;;
1279
1280  -localstatedir | --localstatedir | --localstatedi | --localstated \
1281  | --localstate | --localstat | --localsta | --localst | --locals)
1282    ac_prev=localstatedir ;;
1283  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1284  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1285    localstatedir=$ac_optarg ;;
1286
1287  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1288    ac_prev=mandir ;;
1289  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1290    mandir=$ac_optarg ;;
1291
1292  -nfp | --nfp | --nf)
1293    # Obsolete; use --without-fp.
1294    with_fp=no ;;
1295
1296  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1297  | --no-cr | --no-c | -n)
1298    no_create=yes ;;
1299
1300  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1301  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1302    no_recursion=yes ;;
1303
1304  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1305  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1306  | --oldin | --oldi | --old | --ol | --o)
1307    ac_prev=oldincludedir ;;
1308  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1309  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1310  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1311    oldincludedir=$ac_optarg ;;
1312
1313  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1314    ac_prev=prefix ;;
1315  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1316    prefix=$ac_optarg ;;
1317
1318  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1319  | --program-pre | --program-pr | --program-p)
1320    ac_prev=program_prefix ;;
1321  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1322  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1323    program_prefix=$ac_optarg ;;
1324
1325  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1326  | --program-suf | --program-su | --program-s)
1327    ac_prev=program_suffix ;;
1328  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1329  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1330    program_suffix=$ac_optarg ;;
1331
1332  -program-transform-name | --program-transform-name \
1333  | --program-transform-nam | --program-transform-na \
1334  | --program-transform-n | --program-transform- \
1335  | --program-transform | --program-transfor \
1336  | --program-transfo | --program-transf \
1337  | --program-trans | --program-tran \
1338  | --progr-tra | --program-tr | --program-t)
1339    ac_prev=program_transform_name ;;
1340  -program-transform-name=* | --program-transform-name=* \
1341  | --program-transform-nam=* | --program-transform-na=* \
1342  | --program-transform-n=* | --program-transform-=* \
1343  | --program-transform=* | --program-transfor=* \
1344  | --program-transfo=* | --program-transf=* \
1345  | --program-trans=* | --program-tran=* \
1346  | --progr-tra=* | --program-tr=* | --program-t=*)
1347    program_transform_name=$ac_optarg ;;
1348
1349  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1350    ac_prev=pdfdir ;;
1351  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1352    pdfdir=$ac_optarg ;;
1353
1354  -psdir | --psdir | --psdi | --psd | --ps)
1355    ac_prev=psdir ;;
1356  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1357    psdir=$ac_optarg ;;
1358
1359  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1360  | -silent | --silent | --silen | --sile | --sil)
1361    silent=yes ;;
1362
1363  -runstatedir | --runstatedir | --runstatedi | --runstated \
1364  | --runstate | --runstat | --runsta | --runst | --runs \
1365  | --run | --ru | --r)
1366    ac_prev=runstatedir ;;
1367  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1368  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1369  | --run=* | --ru=* | --r=*)
1370    runstatedir=$ac_optarg ;;
1371
1372  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373    ac_prev=sbindir ;;
1374  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375  | --sbi=* | --sb=*)
1376    sbindir=$ac_optarg ;;
1377
1378  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1379  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1380  | --sharedst | --shareds | --shared | --share | --shar \
1381  | --sha | --sh)
1382    ac_prev=sharedstatedir ;;
1383  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1384  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1385  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386  | --sha=* | --sh=*)
1387    sharedstatedir=$ac_optarg ;;
1388
1389  -site | --site | --sit)
1390    ac_prev=site ;;
1391  -site=* | --site=* | --sit=*)
1392    site=$ac_optarg ;;
1393
1394  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395    ac_prev=srcdir ;;
1396  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1397    srcdir=$ac_optarg ;;
1398
1399  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1400  | --syscon | --sysco | --sysc | --sys | --sy)
1401    ac_prev=sysconfdir ;;
1402  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1403  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1404    sysconfdir=$ac_optarg ;;
1405
1406  -target | --target | --targe | --targ | --tar | --ta | --t)
1407    ac_prev=target_alias ;;
1408  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1409    target_alias=$ac_optarg ;;
1410
1411  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1412    verbose=yes ;;
1413
1414  -version | --version | --versio | --versi | --vers | -V)
1415    ac_init_version=: ;;
1416
1417  -with-* | --with-*)
1418    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419    # Reject names that are not valid shell variable names.
1420    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421      as_fn_error $? "invalid package name: $ac_useropt"
1422    ac_useropt_orig=$ac_useropt
1423    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424    case $ac_user_opts in
1425      *"
1426"with_$ac_useropt"
1427"*) ;;
1428      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429	 ac_unrecognized_sep=', ';;
1430    esac
1431    eval with_$ac_useropt=\$ac_optarg ;;
1432
1433  -without-* | --without-*)
1434    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435    # Reject names that are not valid shell variable names.
1436    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437      as_fn_error $? "invalid package name: $ac_useropt"
1438    ac_useropt_orig=$ac_useropt
1439    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440    case $ac_user_opts in
1441      *"
1442"with_$ac_useropt"
1443"*) ;;
1444      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445	 ac_unrecognized_sep=', ';;
1446    esac
1447    eval with_$ac_useropt=no ;;
1448
1449  --x)
1450    # Obsolete; use --with-x.
1451    with_x=yes ;;
1452
1453  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1454  | --x-incl | --x-inc | --x-in | --x-i)
1455    ac_prev=x_includes ;;
1456  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1457  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1458    x_includes=$ac_optarg ;;
1459
1460  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1461  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1462    ac_prev=x_libraries ;;
1463  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1464  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1465    x_libraries=$ac_optarg ;;
1466
1467  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1468Try \`$0 --help' for more information"
1469    ;;
1470
1471  *=*)
1472    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473    # Reject names that are not valid shell variable names.
1474    case $ac_envvar in #(
1475      '' | [0-9]* | *[!_$as_cr_alnum]* )
1476      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477    esac
1478    eval $ac_envvar=\$ac_optarg
1479    export $ac_envvar ;;
1480
1481  *)
1482    # FIXME: should be removed in autoconf 3.0.
1483    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1485      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1487    ;;
1488
1489  esac
1490done
1491
1492if test -n "$ac_prev"; then
1493  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1494  as_fn_error $? "missing argument to $ac_option"
1495fi
1496
1497if test -n "$ac_unrecognized_opts"; then
1498  case $enable_option_checking in
1499    no) ;;
1500    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1501    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1502  esac
1503fi
1504
1505# Check all directory arguments for consistency.
1506for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507		datadir sysconfdir sharedstatedir localstatedir includedir \
1508		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509		libdir localedir mandir runstatedir
1510do
1511  eval ac_val=\$$ac_var
1512  # Remove trailing slashes.
1513  case $ac_val in
1514    */ )
1515      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516      eval $ac_var=\$ac_val;;
1517  esac
1518  # Be sure to have absolute directory names.
1519  case $ac_val in
1520    [\\/$]* | ?:[\\/]* )  continue;;
1521    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522  esac
1523  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1524done
1525
1526# There might be people who depend on the old broken behavior: `$host'
1527# used to hold the argument of --host etc.
1528# FIXME: To remove some day.
1529build=$build_alias
1530host=$host_alias
1531target=$target_alias
1532
1533# FIXME: To remove some day.
1534if test "x$host_alias" != x; then
1535  if test "x$build_alias" = x; then
1536    cross_compiling=maybe
1537  elif test "x$build_alias" != "x$host_alias"; then
1538    cross_compiling=yes
1539  fi
1540fi
1541
1542ac_tool_prefix=
1543test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544
1545test "$silent" = yes && exec 6>/dev/null
1546
1547
1548ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549ac_ls_di=`ls -di .` &&
1550ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551  as_fn_error $? "working directory cannot be determined"
1552test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553  as_fn_error $? "pwd does not report name of working directory"
1554
1555
1556# Find the source files, if location was not specified.
1557if test -z "$srcdir"; then
1558  ac_srcdir_defaulted=yes
1559  # Try the directory containing this script, then the parent directory.
1560  ac_confdir=`$as_dirname -- "$as_myself" ||
1561$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562	 X"$as_myself" : 'X\(//\)[^/]' \| \
1563	 X"$as_myself" : 'X\(//\)$' \| \
1564	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565$as_echo X"$as_myself" |
1566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1567	    s//\1/
1568	    q
1569	  }
1570	  /^X\(\/\/\)[^/].*/{
1571	    s//\1/
1572	    q
1573	  }
1574	  /^X\(\/\/\)$/{
1575	    s//\1/
1576	    q
1577	  }
1578	  /^X\(\/\).*/{
1579	    s//\1/
1580	    q
1581	  }
1582	  s/.*/./; q'`
1583  srcdir=$ac_confdir
1584  if test ! -r "$srcdir/$ac_unique_file"; then
1585    srcdir=..
1586  fi
1587else
1588  ac_srcdir_defaulted=no
1589fi
1590if test ! -r "$srcdir/$ac_unique_file"; then
1591  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1592  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593fi
1594ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595ac_abs_confdir=`(
1596	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597	pwd)`
1598# When building in place, set srcdir=.
1599if test "$ac_abs_confdir" = "$ac_pwd"; then
1600  srcdir=.
1601fi
1602# Remove unnecessary trailing slashes from srcdir.
1603# Double slashes in file names in object file debugging info
1604# mess up M-x gdb in Emacs.
1605case $srcdir in
1606*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607esac
1608for ac_var in $ac_precious_vars; do
1609  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1610  eval ac_env_${ac_var}_value=\$${ac_var}
1611  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1612  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1613done
1614
1615#
1616# Report the --help message.
1617#
1618if test "$ac_init_help" = "long"; then
1619  # Omit some internal or obsolete options to make the list less imposing.
1620  # This message is too long to be a string in the A/UX 3.1 sh.
1621  cat <<_ACEOF
1622\`configure' configures c-ares 1.16.1 to adapt to many kinds of systems.
1623
1624Usage: $0 [OPTION]... [VAR=VALUE]...
1625
1626To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627VAR=VALUE.  See below for descriptions of some of the useful variables.
1628
1629Defaults for the options are specified in brackets.
1630
1631Configuration:
1632  -h, --help              display this help and exit
1633      --help=short        display options specific to this package
1634      --help=recursive    display the short help of all the included packages
1635  -V, --version           display version information and exit
1636  -q, --quiet, --silent   do not print \`checking ...' messages
1637      --cache-file=FILE   cache test results in FILE [disabled]
1638  -C, --config-cache      alias for \`--cache-file=config.cache'
1639  -n, --no-create         do not create output files
1640      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1641
1642Installation directories:
1643  --prefix=PREFIX         install architecture-independent files in PREFIX
1644                          [$ac_default_prefix]
1645  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1646                          [PREFIX]
1647
1648By default, \`make install' will install all the files in
1649\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1650an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651for instance \`--prefix=\$HOME'.
1652
1653For better control, use the options below.
1654
1655Fine tuning of the installation directories:
1656  --bindir=DIR            user executables [EPREFIX/bin]
1657  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1658  --libexecdir=DIR        program executables [EPREFIX/libexec]
1659  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1660  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1661  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1662  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1663  --libdir=DIR            object code libraries [EPREFIX/lib]
1664  --includedir=DIR        C header files [PREFIX/include]
1665  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1666  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1667  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1668  --infodir=DIR           info documentation [DATAROOTDIR/info]
1669  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1670  --mandir=DIR            man documentation [DATAROOTDIR/man]
1671  --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1672  --htmldir=DIR           html documentation [DOCDIR]
1673  --dvidir=DIR            dvi documentation [DOCDIR]
1674  --pdfdir=DIR            pdf documentation [DOCDIR]
1675  --psdir=DIR             ps documentation [DOCDIR]
1676_ACEOF
1677
1678  cat <<\_ACEOF
1679
1680Program names:
1681  --program-prefix=PREFIX            prepend PREFIX to installed program names
1682  --program-suffix=SUFFIX            append SUFFIX to installed program names
1683  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1684
1685System types:
1686  --build=BUILD     configure for building on BUILD [guessed]
1687  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1688_ACEOF
1689fi
1690
1691if test -n "$ac_init_help"; then
1692  case $ac_init_help in
1693     short | recursive ) echo "Configuration of c-ares 1.16.1:";;
1694   esac
1695  cat <<\_ACEOF
1696
1697Optional Features:
1698  --disable-option-checking  ignore unrecognized --enable/--with options
1699  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1700  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1701  --enable-maintainer-mode
1702                          enable make rules and dependencies not useful (and
1703                          sometimes confusing) to the casual installer
1704  --enable-silent-rules   less verbose build output (undo: "make V=1")
1705  --disable-silent-rules  verbose build output (undo: "make V=0")
1706  --enable-debug          Enable debug build options
1707  --disable-debug         Disable debug build options
1708  --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1709  --disable-optimize      Disable compiler optimizations
1710  --enable-warnings       Enable strict compiler warnings
1711  --disable-warnings      Disable strict compiler warnings
1712  --enable-werror         Enable compiler warnings as errors
1713  --disable-werror        Disable compiler warnings as errors
1714  --enable-curldebug      Enable curl debug memory tracking
1715  --disable-curldebug     Disable curl debug memory tracking
1716  --enable-symbol-hiding  Enable hiding of library internal symbols
1717  --disable-symbol-hiding Disable hiding of library internal symbols
1718  --enable-expose-statics Enable exposure of internal static functions for
1719                          testing
1720  --disable-expose-statics
1721                          Disable exposure of internal static functions for
1722                          testing
1723  --enable-code-coverage  Whether to enable code coverage support
1724  --enable-dependency-tracking
1725                          do not reject slow dependency extractors
1726  --disable-dependency-tracking
1727                          speeds up one-time build
1728  --disable-largefile     omit support for large files
1729  --enable-shared[=PKGS]  build shared libraries [default=yes]
1730  --enable-static[=PKGS]  build static libraries [default=yes]
1731  --enable-fast-install[=PKGS]
1732                          optimize for fast installation [default=yes]
1733  --disable-libtool-lock  avoid locking (might break parallel builds)
1734  --enable-libgcc         use libgcc when linking
1735  --enable-nonblocking    Enable non-blocking communications
1736  --disable-nonblocking   Disable non-blocking communications
1737  --enable-tests          build test suite
1738
1739Optional Packages:
1740  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1741  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1742  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1743  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1744                          both]
1745  --with-aix-soname=aix|svr4|both
1746                          shared library versioning (aka "SONAME") variant to
1747                          provide on AIX, [default=aix].
1748  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1749  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1750                          compiler's sysroot if not specified).
1751  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1752
1753Some influential environment variables:
1754  CC          C compiler command
1755  CFLAGS      C compiler flags
1756  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757              nonstandard directory <lib dir>
1758  LIBS        libraries to pass to the linker, e.g. -l<library>
1759  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1760              you have headers in a nonstandard directory <include dir>
1761  CPP         C preprocessor
1762  CXX         C++ compiler command
1763  CXXFLAGS    C++ compiler flags
1764  LT_SYS_LIBRARY_PATH
1765              User-defined run-time library search path.
1766  CXXCPP      C++ preprocessor
1767
1768Use these variables to override the choices made by `configure' or to help
1769it to find libraries and programs with nonstandard names/locations.
1770
1771Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1772_ACEOF
1773ac_status=$?
1774fi
1775
1776if test "$ac_init_help" = "recursive"; then
1777  # If there are subdirs, report their specific --help.
1778  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779    test -d "$ac_dir" ||
1780      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781      continue
1782    ac_builddir=.
1783
1784case "$ac_dir" in
1785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786*)
1787  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788  # A ".." for each directory in $ac_dir_suffix.
1789  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790  case $ac_top_builddir_sub in
1791  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793  esac ;;
1794esac
1795ac_abs_top_builddir=$ac_pwd
1796ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797# for backward compatibility:
1798ac_top_builddir=$ac_top_build_prefix
1799
1800case $srcdir in
1801  .)  # We are building in place.
1802    ac_srcdir=.
1803    ac_top_srcdir=$ac_top_builddir_sub
1804    ac_abs_top_srcdir=$ac_pwd ;;
1805  [\\/]* | ?:[\\/]* )  # Absolute name.
1806    ac_srcdir=$srcdir$ac_dir_suffix;
1807    ac_top_srcdir=$srcdir
1808    ac_abs_top_srcdir=$srcdir ;;
1809  *) # Relative name.
1810    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811    ac_top_srcdir=$ac_top_build_prefix$srcdir
1812    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813esac
1814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816    cd "$ac_dir" || { ac_status=$?; continue; }
1817    # Check for guested configure.
1818    if test -f "$ac_srcdir/configure.gnu"; then
1819      echo &&
1820      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821    elif test -f "$ac_srcdir/configure"; then
1822      echo &&
1823      $SHELL "$ac_srcdir/configure" --help=recursive
1824    else
1825      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826    fi || ac_status=$?
1827    cd "$ac_pwd" || { ac_status=$?; break; }
1828  done
1829fi
1830
1831test -n "$ac_init_help" && exit $ac_status
1832if $ac_init_version; then
1833  cat <<\_ACEOF
1834c-ares configure 1.16.1
1835generated by GNU Autoconf 2.69
1836
1837Copyright (C) 2012 Free Software Foundation, Inc.
1838This configure script is free software; the Free Software Foundation
1839gives unlimited permission to copy, distribute and modify it.
1840_ACEOF
1841  exit
1842fi
1843
1844## ------------------------ ##
1845## Autoconf initialization. ##
1846## ------------------------ ##
1847
1848# ac_fn_c_try_compile LINENO
1849# --------------------------
1850# Try to compile conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_c_try_compile ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  rm -f conftest.$ac_objext
1855  if { { ac_try="$ac_compile"
1856case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_compile") 2>conftest.err
1863  ac_status=$?
1864  if test -s conftest.err; then
1865    grep -v '^ *+' conftest.err >conftest.er1
1866    cat conftest.er1 >&5
1867    mv -f conftest.er1 conftest.err
1868  fi
1869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870  test $ac_status = 0; } && {
1871	 test -z "$ac_c_werror_flag" ||
1872	 test ! -s conftest.err
1873       } && test -s conftest.$ac_objext; then :
1874  ac_retval=0
1875else
1876  $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879	ac_retval=1
1880fi
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882  as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_compile
1885
1886# ac_fn_c_try_cpp LINENO
1887# ----------------------
1888# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_c_try_cpp ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  if { { ac_try="$ac_cpp conftest.$ac_ext"
1893case "(($ac_try" in
1894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895  *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900  ac_status=$?
1901  if test -s conftest.err; then
1902    grep -v '^ *+' conftest.err >conftest.er1
1903    cat conftest.er1 >&5
1904    mv -f conftest.er1 conftest.err
1905  fi
1906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907  test $ac_status = 0; } > conftest.i && {
1908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1909	 test ! -s conftest.err
1910       }; then :
1911  ac_retval=0
1912else
1913  $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916    ac_retval=1
1917fi
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919  as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_cpp
1922
1923# ac_fn_cxx_try_compile LINENO
1924# ----------------------------
1925# Try to compile conftest.$ac_ext, and return whether this succeeded.
1926ac_fn_cxx_try_compile ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  rm -f conftest.$ac_objext
1930  if { { ac_try="$ac_compile"
1931case "(($ac_try" in
1932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933  *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937  (eval "$ac_compile") 2>conftest.err
1938  ac_status=$?
1939  if test -s conftest.err; then
1940    grep -v '^ *+' conftest.err >conftest.er1
1941    cat conftest.er1 >&5
1942    mv -f conftest.er1 conftest.err
1943  fi
1944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945  test $ac_status = 0; } && {
1946	 test -z "$ac_cxx_werror_flag" ||
1947	 test ! -s conftest.err
1948       } && test -s conftest.$ac_objext; then :
1949  ac_retval=0
1950else
1951  $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954	ac_retval=1
1955fi
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957  as_fn_set_status $ac_retval
1958
1959} # ac_fn_cxx_try_compile
1960
1961# ac_fn_c_try_link LINENO
1962# -----------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_c_try_link ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  rm -f conftest.$ac_objext conftest$ac_exeext
1968  if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971  *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975  (eval "$ac_link") 2>conftest.err
1976  ac_status=$?
1977  if test -s conftest.err; then
1978    grep -v '^ *+' conftest.err >conftest.er1
1979    cat conftest.er1 >&5
1980    mv -f conftest.er1 conftest.err
1981  fi
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; } && {
1984	 test -z "$ac_c_werror_flag" ||
1985	 test ! -s conftest.err
1986       } && test -s conftest$ac_exeext && {
1987	 test "$cross_compiling" = yes ||
1988	 test -x conftest$ac_exeext
1989       }; then :
1990  ac_retval=0
1991else
1992  $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995	ac_retval=1
1996fi
1997  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999  # interfere with the next link command; also delete a directory that is
2000  # left behind by Apple's compiler.  We do this before executing the actions.
2001  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003  as_fn_set_status $ac_retval
2004
2005} # ac_fn_c_try_link
2006
2007# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008# -------------------------------------------------------
2009# Tests whether HEADER exists and can be compiled using the include files in
2010# INCLUDES, setting the cache variable VAR accordingly.
2011ac_fn_c_check_header_compile ()
2012{
2013  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if eval \${$3+:} false; then :
2017  $as_echo_n "(cached) " >&6
2018else
2019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h.  */
2021$4
2022#include <$2>
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025  eval "$3=yes"
2026else
2027  eval "$3=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_header_compile
2037
2038# ac_fn_c_try_run LINENO
2039# ----------------------
2040# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041# that executables *can* be run.
2042ac_fn_c_try_run ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  if { { ac_try="$ac_link"
2046case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_link") 2>&5
2053  ac_status=$?
2054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056  { { case "(($ac_try" in
2057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058  *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062  (eval "$ac_try") 2>&5
2063  ac_status=$?
2064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065  test $ac_status = 0; }; }; then :
2066  ac_retval=0
2067else
2068  $as_echo "$as_me: program exited with status $ac_status" >&5
2069       $as_echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072       ac_retval=$ac_status
2073fi
2074  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076  as_fn_set_status $ac_retval
2077
2078} # ac_fn_c_try_run
2079
2080# ac_fn_c_check_func LINENO FUNC VAR
2081# ----------------------------------
2082# Tests whether FUNC exists, setting the cache variable VAR accordingly
2083ac_fn_c_check_func ()
2084{
2085  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089  $as_echo_n "(cached) " >&6
2090else
2091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093
2094#define $2 innocuous_$2
2095#ifdef __STDC__
2096# include <limits.h>
2097#else
2098# include <assert.h>
2099#endif
2100#undef $2
2101#ifdef __cplusplus
2102extern "C"
2103#endif
2104char $2 ();
2105#if defined __stub_$2 || defined __stub___$2
2106choke me
2107#endif
2108
2109int main (void)
2110{
2111return $2 ();
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_link "$LINENO"; then :
2117  eval "$3=yes"
2118else
2119  eval "$3=no"
2120fi
2121rm -f core conftest.err conftest.$ac_objext \
2122    conftest$ac_exeext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_func
2130
2131# ac_fn_cxx_try_cpp LINENO
2132# ------------------------
2133# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134ac_fn_cxx_try_cpp ()
2135{
2136  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137  if { { ac_try="$ac_cpp conftest.$ac_ext"
2138case "(($ac_try" in
2139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140  *) ac_try_echo=$ac_try;;
2141esac
2142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143$as_echo "$ac_try_echo"; } >&5
2144  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2145  ac_status=$?
2146  if test -s conftest.err; then
2147    grep -v '^ *+' conftest.err >conftest.er1
2148    cat conftest.er1 >&5
2149    mv -f conftest.er1 conftest.err
2150  fi
2151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152  test $ac_status = 0; } > conftest.i && {
2153	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2154	 test ! -s conftest.err
2155       }; then :
2156  ac_retval=0
2157else
2158  $as_echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161    ac_retval=1
2162fi
2163  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164  as_fn_set_status $ac_retval
2165
2166} # ac_fn_cxx_try_cpp
2167
2168# ac_fn_cxx_try_link LINENO
2169# -------------------------
2170# Try to link conftest.$ac_ext, and return whether this succeeded.
2171ac_fn_cxx_try_link ()
2172{
2173  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174  rm -f conftest.$ac_objext conftest$ac_exeext
2175  if { { ac_try="$ac_link"
2176case "(($ac_try" in
2177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178  *) ac_try_echo=$ac_try;;
2179esac
2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181$as_echo "$ac_try_echo"; } >&5
2182  (eval "$ac_link") 2>conftest.err
2183  ac_status=$?
2184  if test -s conftest.err; then
2185    grep -v '^ *+' conftest.err >conftest.er1
2186    cat conftest.er1 >&5
2187    mv -f conftest.er1 conftest.err
2188  fi
2189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190  test $ac_status = 0; } && {
2191	 test -z "$ac_cxx_werror_flag" ||
2192	 test ! -s conftest.err
2193       } && test -s conftest$ac_exeext && {
2194	 test "$cross_compiling" = yes ||
2195	 test -x conftest$ac_exeext
2196       }; then :
2197  ac_retval=0
2198else
2199  $as_echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202	ac_retval=1
2203fi
2204  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2205  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2206  # interfere with the next link command; also delete a directory that is
2207  # left behind by Apple's compiler.  We do this before executing the actions.
2208  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210  as_fn_set_status $ac_retval
2211
2212} # ac_fn_cxx_try_link
2213
2214# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215# -------------------------------------------------------
2216# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217# the include files in INCLUDES and setting the cache variable VAR
2218# accordingly.
2219ac_fn_c_check_header_mongrel ()
2220{
2221  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222  if eval \${$3+:} false; then :
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
2225if eval \${$3+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227fi
2228eval ac_res=\$$3
2229	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230$as_echo "$ac_res" >&6; }
2231else
2232  # Is the header compilable?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234$as_echo_n "checking $2 usability... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238#include <$2>
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  ac_header_compiler=yes
2242else
2243  ac_header_compiler=no
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247$as_echo "$ac_header_compiler" >&6; }
2248
2249# Is the header present?
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251$as_echo_n "checking $2 presence... " >&6; }
2252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254#include <$2>
2255_ACEOF
2256if ac_fn_c_try_cpp "$LINENO"; then :
2257  ac_header_preproc=yes
2258else
2259  ac_header_preproc=no
2260fi
2261rm -f conftest.err conftest.i conftest.$ac_ext
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263$as_echo "$ac_header_preproc" >&6; }
2264
2265# So?  What about this header?
2266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2267  yes:no: )
2268    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2272    ;;
2273  no:yes:* )
2274    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2277$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2281$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284( $as_echo "## ------------------------------------------------------------------------------- ##
2285## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2286## ------------------------------------------------------------------------------- ##"
2287     ) | sed "s/^/$as_me: WARNING:     /" >&2
2288    ;;
2289esac
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291$as_echo_n "checking for $2... " >&6; }
2292if eval \${$3+:} false; then :
2293  $as_echo_n "(cached) " >&6
2294else
2295  eval "$3=\$ac_header_compiler"
2296fi
2297eval ac_res=\$$3
2298	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300fi
2301  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303} # ac_fn_c_check_header_mongrel
2304
2305# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2306# -------------------------------------------
2307# Tests whether TYPE exists after having included INCLUDES, setting cache
2308# variable VAR accordingly.
2309ac_fn_c_check_type ()
2310{
2311  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
2314if eval \${$3+:} false; then :
2315  $as_echo_n "(cached) " >&6
2316else
2317  eval "$3=no"
2318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h.  */
2320$4
2321int main (void)
2322{
2323if (sizeof ($2))
2324	 return 0;
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h.  */
2332$4
2333int main (void)
2334{
2335if (sizeof (($2)))
2336	    return 0;
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342
2343else
2344  eval "$3=yes"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$3
2351	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
2353  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354
2355} # ac_fn_c_check_type
2356
2357# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358# ----------------------------------------------------
2359# Tries to find if the field MEMBER exists in type AGGR, after including
2360# INCLUDES, setting cache variable VAR accordingly.
2361ac_fn_c_check_member ()
2362{
2363  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365$as_echo_n "checking for $2.$3... " >&6; }
2366if eval \${$4+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h.  */
2371$5
2372int main (void)
2373{
2374static $2 ac_aggr;
2375if (ac_aggr.$3)
2376return 0;
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_compile "$LINENO"; then :
2382  eval "$4=yes"
2383else
2384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385/* end confdefs.h.  */
2386$5
2387int main (void)
2388{
2389static $2 ac_aggr;
2390if (sizeof ac_aggr.$3)
2391return 0;
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397  eval "$4=yes"
2398else
2399  eval "$4=no"
2400fi
2401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404fi
2405eval ac_res=\$$4
2406	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410} # ac_fn_c_check_member
2411cat >config.log <<_ACEOF
2412This file contains any messages produced by compilers while
2413running configure, to aid debugging if configure makes a mistake.
2414
2415It was created by c-ares $as_me 1.16.1, which was
2416generated by GNU Autoconf 2.69.  Invocation command line was
2417
2418  $ $0 $@
2419
2420_ACEOF
2421exec 5>>config.log
2422{
2423cat <<_ASUNAME
2424## --------- ##
2425## Platform. ##
2426## --------- ##
2427
2428hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2429uname -m = `(uname -m) 2>/dev/null || echo unknown`
2430uname -r = `(uname -r) 2>/dev/null || echo unknown`
2431uname -s = `(uname -s) 2>/dev/null || echo unknown`
2432uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433
2434/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2435/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2436
2437/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2438/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2439/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2440/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2441/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2442/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2443/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2444
2445_ASUNAME
2446
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450  IFS=$as_save_IFS
2451  test -z "$as_dir" && as_dir=.
2452    $as_echo "PATH: $as_dir"
2453  done
2454IFS=$as_save_IFS
2455
2456} >&5
2457
2458cat >&5 <<_ACEOF
2459
2460
2461## ----------- ##
2462## Core tests. ##
2463## ----------- ##
2464
2465_ACEOF
2466
2467
2468# Keep a trace of the command line.
2469# Strip out --no-create and --no-recursion so they do not pile up.
2470# Strip out --silent because we don't want to record it for future runs.
2471# Also quote any args containing shell meta-characters.
2472# Make two passes to allow for proper duplicate-argument suppression.
2473ac_configure_args=
2474ac_configure_args0=
2475ac_configure_args1=
2476ac_must_keep_next=false
2477for ac_pass in 1 2
2478do
2479  for ac_arg
2480  do
2481    case $ac_arg in
2482    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2483    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2484    | -silent | --silent | --silen | --sile | --sil)
2485      continue ;;
2486    *\'*)
2487      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2488    esac
2489    case $ac_pass in
2490    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491    2)
2492      as_fn_append ac_configure_args1 " '$ac_arg'"
2493      if test $ac_must_keep_next = true; then
2494	ac_must_keep_next=false # Got value, back to normal.
2495      else
2496	case $ac_arg in
2497	  *=* | --config-cache | -C | -disable-* | --disable-* \
2498	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2499	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2500	  | -with-* | --with-* | -without-* | --without-* | --x)
2501	    case "$ac_configure_args0 " in
2502	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2503	    esac
2504	    ;;
2505	  -* ) ac_must_keep_next=true ;;
2506	esac
2507      fi
2508      as_fn_append ac_configure_args " '$ac_arg'"
2509      ;;
2510    esac
2511  done
2512done
2513{ ac_configure_args0=; unset ac_configure_args0;}
2514{ ac_configure_args1=; unset ac_configure_args1;}
2515
2516# When interrupted or exit'd, cleanup temporary files, and complete
2517# config.log.  We remove comments because anyway the quotes in there
2518# would cause problems or look ugly.
2519# WARNING: Use '\'' to represent an apostrophe within the trap.
2520# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2521trap 'exit_status=$?
2522  # Save into config.log some information that might help in debugging.
2523  {
2524    echo
2525
2526    $as_echo "## ---------------- ##
2527## Cache variables. ##
2528## ---------------- ##"
2529    echo
2530    # The following way of writing the cache mishandles newlines in values,
2531(
2532  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533    eval ac_val=\$$ac_var
2534    case $ac_val in #(
2535    *${as_nl}*)
2536      case $ac_var in #(
2537      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539      esac
2540      case $ac_var in #(
2541      _ | IFS | as_nl) ;; #(
2542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543      *) { eval $ac_var=; unset $ac_var;} ;;
2544      esac ;;
2545    esac
2546  done
2547  (set) 2>&1 |
2548    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549    *${as_nl}ac_space=\ *)
2550      sed -n \
2551	"s/'\''/'\''\\\\'\'''\''/g;
2552	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553      ;; #(
2554    *)
2555      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2556      ;;
2557    esac |
2558    sort
2559)
2560    echo
2561
2562    $as_echo "## ----------------- ##
2563## Output variables. ##
2564## ----------------- ##"
2565    echo
2566    for ac_var in $ac_subst_vars
2567    do
2568      eval ac_val=\$$ac_var
2569      case $ac_val in
2570      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571      esac
2572      $as_echo "$ac_var='\''$ac_val'\''"
2573    done | sort
2574    echo
2575
2576    if test -n "$ac_subst_files"; then
2577      $as_echo "## ------------------- ##
2578## File substitutions. ##
2579## ------------------- ##"
2580      echo
2581      for ac_var in $ac_subst_files
2582      do
2583	eval ac_val=\$$ac_var
2584	case $ac_val in
2585	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586	esac
2587	$as_echo "$ac_var='\''$ac_val'\''"
2588      done | sort
2589      echo
2590    fi
2591
2592    if test -s confdefs.h; then
2593      $as_echo "## ----------- ##
2594## confdefs.h. ##
2595## ----------- ##"
2596      echo
2597      cat confdefs.h
2598      echo
2599    fi
2600    test "$ac_signal" != 0 &&
2601      $as_echo "$as_me: caught signal $ac_signal"
2602    $as_echo "$as_me: exit $exit_status"
2603  } >&5
2604  rm -f core *.core core.conftest.* &&
2605    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606    exit $exit_status
2607' 0
2608for ac_signal in 1 2 13 15; do
2609  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610done
2611ac_signal=0
2612
2613# confdefs.h avoids OS command line length limits that DEFS can exceed.
2614rm -f -r conftest* confdefs.h
2615
2616$as_echo "/* confdefs.h */" > confdefs.h
2617
2618# Predefined preprocessor variables.
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_NAME "$PACKAGE_NAME"
2622_ACEOF
2623
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626_ACEOF
2627
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_VERSION "$PACKAGE_VERSION"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633#define PACKAGE_STRING "$PACKAGE_STRING"
2634_ACEOF
2635
2636cat >>confdefs.h <<_ACEOF
2637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638_ACEOF
2639
2640cat >>confdefs.h <<_ACEOF
2641#define PACKAGE_URL "$PACKAGE_URL"
2642_ACEOF
2643
2644
2645# Let the site file select an alternate cache file if it wants to.
2646# Prefer an explicitly selected file to automatically selected ones.
2647ac_site_file1=NONE
2648ac_site_file2=NONE
2649if test -n "$CONFIG_SITE"; then
2650  # We do not want a PATH search for config.site.
2651  case $CONFIG_SITE in #((
2652    -*)  ac_site_file1=./$CONFIG_SITE;;
2653    */*) ac_site_file1=$CONFIG_SITE;;
2654    *)   ac_site_file1=./$CONFIG_SITE;;
2655  esac
2656elif test "x$prefix" != xNONE; then
2657  ac_site_file1=$prefix/share/config.site
2658  ac_site_file2=$prefix/etc/config.site
2659else
2660  ac_site_file1=$ac_default_prefix/share/config.site
2661  ac_site_file2=$ac_default_prefix/etc/config.site
2662fi
2663for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664do
2665  test "x$ac_site_file" = xNONE && continue
2666  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2667    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2668$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2669    sed 's/^/| /' "$ac_site_file" >&5
2670    . "$ac_site_file" \
2671      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673as_fn_error $? "failed to load site script $ac_site_file
2674See \`config.log' for more details" "$LINENO" 5; }
2675  fi
2676done
2677
2678if test -r "$cache_file"; then
2679  # Some versions of bash will fail to source /dev/null (special files
2680  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2681  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2682    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2683$as_echo "$as_me: loading cache $cache_file" >&6;}
2684    case $cache_file in
2685      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2686      *)                      . "./$cache_file";;
2687    esac
2688  fi
2689else
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2691$as_echo "$as_me: creating cache $cache_file" >&6;}
2692  >$cache_file
2693fi
2694
2695# Check that the precious variables saved in the cache have kept the same
2696# value.
2697ac_cache_corrupted=false
2698for ac_var in $ac_precious_vars; do
2699  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700  eval ac_new_set=\$ac_env_${ac_var}_set
2701  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702  eval ac_new_val=\$ac_env_${ac_var}_value
2703  case $ac_old_set,$ac_new_set in
2704    set,)
2705      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707      ac_cache_corrupted=: ;;
2708    ,set)
2709      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711      ac_cache_corrupted=: ;;
2712    ,);;
2713    *)
2714      if test "x$ac_old_val" != "x$ac_new_val"; then
2715	# differences in whitespace do not lead to failure.
2716	ac_old_val_w=`echo x $ac_old_val`
2717	ac_new_val_w=`echo x $ac_new_val`
2718	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721	  ac_cache_corrupted=:
2722	else
2723	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725	  eval $ac_var=\$ac_old_val
2726	fi
2727	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2728$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2729	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2730$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2731      fi;;
2732  esac
2733  # Pass precious variables to config.status.
2734  if test "$ac_new_set" = set; then
2735    case $ac_new_val in
2736    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737    *) ac_arg=$ac_var=$ac_new_val ;;
2738    esac
2739    case " $ac_configure_args " in
2740      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2741      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742    esac
2743  fi
2744done
2745if $ac_cache_corrupted; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751fi
2752## -------------------- ##
2753## Main body of script. ##
2754## -------------------- ##
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762
2763
2764
2765
2766
2767
2768# using cares-override.m4
2769
2770
2771
2772ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2773
2774
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2777$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2778    # Check whether --enable-maintainer-mode was given.
2779if test "${enable_maintainer_mode+set}" = set; then :
2780  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2781else
2782  USE_MAINTAINER_MODE=no
2783fi
2784
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2786$as_echo "$USE_MAINTAINER_MODE" >&6; }
2787   if test $USE_MAINTAINER_MODE = yes; then
2788  MAINTAINER_MODE_TRUE=
2789  MAINTAINER_MODE_FALSE='#'
2790else
2791  MAINTAINER_MODE_TRUE='#'
2792  MAINTAINER_MODE_FALSE=
2793fi
2794
2795  MAINT=$MAINTAINER_MODE_TRUE
2796
2797
2798# Check whether --enable-silent-rules was given.
2799if test "${enable_silent_rules+set}" = set; then :
2800  enableval=$enable_silent_rules;
2801fi
2802
2803case $enable_silent_rules in # (((
2804  yes) AM_DEFAULT_VERBOSITY=0;;
2805   no) AM_DEFAULT_VERBOSITY=1;;
2806    *) AM_DEFAULT_VERBOSITY=0;;
2807esac
2808am_make=${MAKE-make}
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811if ${am_cv_make_support_nested_variables+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if $as_echo 'TRUE=$(BAR$(V))
2815BAR0=false
2816BAR1=true
2817V=1
2818am__doit:
2819	@$(TRUE)
2820.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821  am_cv_make_support_nested_variables=yes
2822else
2823  am_cv_make_support_nested_variables=no
2824fi
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827$as_echo "$am_cv_make_support_nested_variables" >&6; }
2828if test $am_cv_make_support_nested_variables = yes; then
2829    AM_V='$(V)'
2830  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2831else
2832  AM_V=$AM_DEFAULT_VERBOSITY
2833  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2834fi
2835AM_BACKSLASH='\'
2836
2837
2838
2839        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2840$as_echo_n "checking whether to enable debug build options... " >&6; }
2841  OPT_DEBUG_BUILD="default"
2842  # Check whether --enable-debug was given.
2843if test "${enable_debug+set}" = set; then :
2844  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2845fi
2846
2847  case "$OPT_DEBUG_BUILD" in
2848    no)
2849            want_debug="no"
2850      ;;
2851    default)
2852            want_debug="no"
2853      ;;
2854    *)
2855            want_debug="yes"
2856      ;;
2857  esac
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2859$as_echo "$want_debug" >&6; }
2860
2861
2862      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2863$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2864  OPT_COMPILER_OPTIMIZE="default"
2865  # Check whether --enable-optimize was given.
2866if test "${enable_optimize+set}" = set; then :
2867  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2868fi
2869
2870  case "$OPT_COMPILER_OPTIMIZE" in
2871    no)
2872                              want_optimize="no"
2873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875      ;;
2876    default)
2877                                                                        if test "$want_debug" = "yes"; then
2878        want_optimize="assume_no"
2879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2880$as_echo "not specified (assuming no)" >&6; }
2881      else
2882        want_optimize="assume_yes"
2883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2884$as_echo "not specified (assuming yes)" >&6; }
2885      fi
2886      ;;
2887    *)
2888                              want_optimize="yes"
2889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890$as_echo "yes" >&6; }
2891      ;;
2892  esac
2893
2894
2895        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2896$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2897  OPT_COMPILER_WARNINGS="default"
2898  # Check whether --enable-warnings was given.
2899if test "${enable_warnings+set}" = set; then :
2900  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2901fi
2902
2903  case "$OPT_COMPILER_WARNINGS" in
2904    no)
2905            want_warnings="no"
2906      ;;
2907    default)
2908                  want_warnings="$want_debug"
2909      ;;
2910    *)
2911            want_warnings="yes"
2912      ;;
2913  esac
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2915$as_echo "$want_warnings" >&6; }
2916
2917
2918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2919$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2920  OPT_COMPILER_WERROR="default"
2921  # Check whether --enable-werror was given.
2922if test "${enable_werror+set}" = set; then :
2923  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2924fi
2925
2926  case "$OPT_COMPILER_WERROR" in
2927    no)
2928            want_werror="no"
2929      ;;
2930    default)
2931            want_werror="no"
2932      ;;
2933    *)
2934            want_werror="yes"
2935      ;;
2936  esac
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2938$as_echo "$want_werror" >&6; }
2939
2940
2941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2942$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2943  OPT_CURLDEBUG_BUILD="default"
2944  # Check whether --enable-curldebug was given.
2945if test "${enable_curldebug+set}" = set; then :
2946  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2947fi
2948
2949  case "$OPT_CURLDEBUG_BUILD" in
2950    no)
2951            want_curldebug="no"
2952      ;;
2953    default)
2954            want_curldebug="no"
2955      ;;
2956    *)
2957                                                      want_curldebug="yes"
2958      ;;
2959  esac
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2961$as_echo "$want_curldebug" >&6; }
2962
2963
2964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2965$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2966  OPT_SYMBOL_HIDING="default"
2967  # Check whether --enable-symbol-hiding was given.
2968if test "${enable_symbol_hiding+set}" = set; then :
2969  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2970fi
2971
2972  case "$OPT_SYMBOL_HIDING" in
2973    no)
2974                              want_symbol_hiding="no"
2975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977      ;;
2978    default)
2979                  want_symbol_hiding="yes"
2980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981$as_echo "yes" >&6; }
2982      ;;
2983    *)
2984                        want_symbol_hiding="yes"
2985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986$as_echo "yes" >&6; }
2987      ;;
2988  esac
2989
2990
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
2992$as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
2993  OPT_EXPOSE_STATICS="default"
2994  # Check whether --enable-expose-statics was given.
2995if test "${enable_expose_statics+set}" = set; then :
2996  enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
2997fi
2998
2999  case "$OPT_EXPOSE_STATICS" in
3000    no)
3001            want_expose_statics="no"
3002      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004      ;;
3005    default)
3006                  want_expose_statics="no"
3007      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009      ;;
3010    *)
3011            want_expose_statics="yes"
3012      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
3014      ;;
3015  esac
3016  if test "$want_expose_statics" = "yes"; then
3017
3018cat >>confdefs.h <<_ACEOF
3019#define CARES_EXPOSE_STATICS 1
3020_ACEOF
3021
3022  fi
3023
3024
3025#
3026# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3027#
3028
3029if test -z "$xc_configure_preamble_result"; then
3030  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3031fi
3032
3033#
3034# Check that 'PATH_SEPARATOR' has already been set.
3035#
3036
3037if test -z "$xc_PATH_SEPARATOR"; then
3038  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3039fi
3040if test -z "$PATH_SEPARATOR"; then
3041  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3044$as_echo_n "checking for path separator... " >&6; }
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3046$as_echo "$PATH_SEPARATOR" >&6; }
3047if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3049$as_echo_n "checking for initial path separator... " >&6; }
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3051$as_echo "$xc_PATH_SEPARATOR" >&6; }
3052  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3053fi
3054
3055
3056# Extract the first word of "sed", so it can be a program name with args.
3057set dummy sed; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_path_SED+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  case $SED in
3064  [\\/]* | ?:[\\/]*)
3065  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3066  ;;
3067  *)
3068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069as_dummy="$PATH:/usr/bin:/usr/local/bin"
3070for as_dir in $as_dummy
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3085  ;;
3086esac
3087fi
3088SED=$ac_cv_path_SED
3089if test -n "$SED"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3091$as_echo "$SED" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098if test -z "$SED" || test "$SED" = "not_found"; then
3099  as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3100fi
3101
3102
3103# Extract the first word of "grep", so it can be a program name with args.
3104set dummy grep; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_path_GREP+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  case $GREP in
3111  [\\/]* | ?:[\\/]*)
3112  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3113  ;;
3114  *)
3115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116as_dummy="$PATH:/usr/bin:/usr/local/bin"
3117for as_dir in $as_dummy
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3132  ;;
3133esac
3134fi
3135GREP=$ac_cv_path_GREP
3136if test -n "$GREP"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3138$as_echo "$GREP" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145if test -z "$GREP" || test "$GREP" = "not_found"; then
3146  as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3147fi
3148
3149
3150if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3152$as_echo_n "checking for egrep... " >&6; }
3153  EGREP="$GREP -E"
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3155$as_echo "$EGREP" >&6; }
3156else
3157  # Extract the first word of "egrep", so it can be a program name with args.
3158set dummy egrep; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_path_EGREP+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164  case $EGREP in
3165  [\\/]* | ?:[\\/]*)
3166  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3167  ;;
3168  *)
3169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170as_dummy="$PATH:/usr/bin:/usr/local/bin"
3171for as_dir in $as_dummy
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175    for ac_exec_ext in '' $ac_executable_extensions; do
3176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3186  ;;
3187esac
3188fi
3189EGREP=$ac_cv_path_EGREP
3190if test -n "$EGREP"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3192$as_echo "$EGREP" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199fi
3200if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3201  as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3202fi
3203
3204
3205if test -z "$AR"; then
3206    if test -n "$ac_tool_prefix"; then
3207  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3208set dummy ${ac_tool_prefix}ar; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_path_AR+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  case $AR in
3215  [\\/]* | ?:[\\/]*)
3216  ac_cv_path_AR="$AR" # Let the user override the test with a path.
3217  ;;
3218  *)
3219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220as_dummy="$PATH:/usr/bin:/usr/local/bin"
3221for as_dir in $as_dummy
3222do
3223  IFS=$as_save_IFS
3224  test -z "$as_dir" && as_dir=.
3225    for ac_exec_ext in '' $ac_executable_extensions; do
3226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229    break 2
3230  fi
3231done
3232  done
3233IFS=$as_save_IFS
3234
3235  ;;
3236esac
3237fi
3238AR=$ac_cv_path_AR
3239if test -n "$AR"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3241$as_echo "$AR" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248fi
3249if test -z "$ac_cv_path_AR"; then
3250  ac_pt_AR=$AR
3251  # Extract the first word of "ar", so it can be a program name with args.
3252set dummy ar; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_path_ac_pt_AR+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  case $ac_pt_AR in
3259  [\\/]* | ?:[\\/]*)
3260  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3261  ;;
3262  *)
3263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264as_dummy="$PATH:/usr/bin:/usr/local/bin"
3265for as_dir in $as_dummy
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279  ;;
3280esac
3281fi
3282ac_pt_AR=$ac_cv_path_ac_pt_AR
3283if test -n "$ac_pt_AR"; then
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3285$as_echo "$ac_pt_AR" >&6; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291  if test "x$ac_pt_AR" = x; then
3292    AR="not_found"
3293  else
3294    case $cross_compiling:$ac_tool_warned in
3295yes:)
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298ac_tool_warned=yes ;;
3299esac
3300    AR=$ac_pt_AR
3301  fi
3302else
3303  AR="$ac_cv_path_AR"
3304fi
3305
3306  if test -z "$AR" || test "$AR" = "not_found"; then
3307    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3308  fi
3309fi
3310
3311
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3313$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3314if ${ac_cv_path_SED+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3318     for ac_i in 1 2 3 4 5 6 7; do
3319       ac_script="$ac_script$as_nl$ac_script"
3320     done
3321     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3322     { ac_script=; unset ac_script;}
3323     if test -z "$SED"; then
3324  ac_path_SED_found=false
3325  # Loop through the user's path and test for each of PROGNAME-LIST
3326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331    for ac_prog in sed gsed; do
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3334      as_fn_executable_p "$ac_path_SED" || continue
3335# Check for GNU ac_path_SED and select it if it is found.
3336  # Check for GNU $ac_path_SED
3337case `"$ac_path_SED" --version 2>&1` in
3338*GNU*)
3339  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3340*)
3341  ac_count=0
3342  $as_echo_n 0123456789 >"conftest.in"
3343  while :
3344  do
3345    cat "conftest.in" "conftest.in" >"conftest.tmp"
3346    mv "conftest.tmp" "conftest.in"
3347    cp "conftest.in" "conftest.nl"
3348    $as_echo '' >> "conftest.nl"
3349    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3350    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3351    as_fn_arith $ac_count + 1 && ac_count=$as_val
3352    if test $ac_count -gt ${ac_path_SED_max-0}; then
3353      # Best one so far, save it but keep looking for a better one
3354      ac_cv_path_SED="$ac_path_SED"
3355      ac_path_SED_max=$ac_count
3356    fi
3357    # 10*(2^10) chars as input seems more than enough
3358    test $ac_count -gt 10 && break
3359  done
3360  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3361esac
3362
3363      $ac_path_SED_found && break 3
3364    done
3365  done
3366  done
3367IFS=$as_save_IFS
3368  if test -z "$ac_cv_path_SED"; then
3369    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3370  fi
3371else
3372  ac_cv_path_SED=$SED
3373fi
3374
3375fi
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3377$as_echo "$ac_cv_path_SED" >&6; }
3378 SED="$ac_cv_path_SED"
3379  rm -f conftest.sed
3380
3381
3382
3383
3384	# allow to override gcov location
3385
3386# Check whether --with-gcov was given.
3387if test "${with_gcov+set}" = set; then :
3388  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3389else
3390  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3391fi
3392
3393
3394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3395$as_echo_n "checking whether to build with code coverage support... " >&6; }
3396	# Check whether --enable-code-coverage was given.
3397if test "${enable_code_coverage+set}" = set; then :
3398  enableval=$enable_code_coverage;
3399else
3400  enable_code_coverage=no
3401fi
3402
3403
3404	 if test x$enable_code_coverage = xyes; then
3405  CODE_COVERAGE_ENABLED_TRUE=
3406  CODE_COVERAGE_ENABLED_FALSE='#'
3407else
3408  CODE_COVERAGE_ENABLED_TRUE='#'
3409  CODE_COVERAGE_ENABLED_FALSE=
3410fi
3411
3412	CODE_COVERAGE_ENABLED=$enable_code_coverage
3413
3414	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3415$as_echo "$enable_code_coverage" >&6; }
3416
3417	if  test "$enable_code_coverage" = "yes" ; then :
3418
3419		# check for gcov
3420		if test -n "$ac_tool_prefix"; then
3421  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3422set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if ${ac_cv_prog_GCOV+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$GCOV"; then
3429  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448GCOV=$ac_cv_prog_GCOV
3449if test -n "$GCOV"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3451$as_echo "$GCOV" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458fi
3459if test -z "$ac_cv_prog_GCOV"; then
3460  ac_ct_GCOV=$GCOV
3461  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3462set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  if test -n "$ac_ct_GCOV"; then
3469  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_exec_ext in '' $ac_executable_extensions; do
3477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483  done
3484IFS=$as_save_IFS
3485
3486fi
3487fi
3488ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3489if test -n "$ac_ct_GCOV"; then
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3491$as_echo "$ac_ct_GCOV" >&6; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497  if test "x$ac_ct_GCOV" = x; then
3498    GCOV=":"
3499  else
3500    case $cross_compiling:$ac_tool_warned in
3501yes:)
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504ac_tool_warned=yes ;;
3505esac
3506    GCOV=$ac_ct_GCOV
3507  fi
3508else
3509  GCOV="$ac_cv_prog_GCOV"
3510fi
3511
3512		if test "X$GCOV" = "X:"; then :
3513  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3514fi
3515
3516
3517				if  test "$GCC" = "no" ; then :
3518
3519			as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3520
3521fi
3522
3523		# List of supported lcov versions.
3524		lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.13"
3525
3526		# Extract the first word of "lcov", so it can be a program name with args.
3527set dummy lcov; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_LCOV+:} false; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  if test -n "$LCOV"; then
3534  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  test -z "$as_dir" && as_dir=.
3541    for ac_exec_ext in '' $ac_executable_extensions; do
3542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543    ac_cv_prog_LCOV="lcov"
3544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548  done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553LCOV=$ac_cv_prog_LCOV
3554if test -n "$LCOV"; then
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3556$as_echo "$LCOV" >&6; }
3557else
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560fi
3561
3562
3563		# Extract the first word of "genhtml", so it can be a program name with args.
3564set dummy genhtml; ac_word=$2
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566$as_echo_n "checking for $ac_word... " >&6; }
3567if ${ac_cv_prog_GENHTML+:} false; then :
3568  $as_echo_n "(cached) " >&6
3569else
3570  if test -n "$GENHTML"; then
3571  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576  IFS=$as_save_IFS
3577  test -z "$as_dir" && as_dir=.
3578    for ac_exec_ext in '' $ac_executable_extensions; do
3579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580    ac_cv_prog_GENHTML="genhtml"
3581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582    break 2
3583  fi
3584done
3585  done
3586IFS=$as_save_IFS
3587
3588fi
3589fi
3590GENHTML=$ac_cv_prog_GENHTML
3591if test -n "$GENHTML"; then
3592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3593$as_echo "$GENHTML" >&6; }
3594else
3595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600
3601		if  test "$LCOV" ; then :
3602
3603			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3604$as_echo_n "checking for lcov version... " >&6; }
3605if ${ax_cv_lcov_version+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608
3609				ax_cv_lcov_version=invalid
3610				lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3611				for lcov_check_version in $lcov_version_list; do
3612					if test "$lcov_version" = "$lcov_check_version"; then
3613						ax_cv_lcov_version="$lcov_check_version (ok)"
3614					fi
3615				done
3616
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3619$as_echo "$ax_cv_lcov_version" >&6; }
3620
3621else
3622
3623			lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3624			as_fn_error $? "$lcov_msg" "$LINENO" 5
3625
3626fi
3627
3628		case $ax_cv_lcov_version in
3629			""|invalid)
3630				lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3631				as_fn_error $? "$lcov_msg" "$LINENO" 5
3632				LCOV="exit 0;"
3633			;;
3634		esac
3635
3636		if  test -z "$GENHTML" ; then :
3637
3638			as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3639
3640fi
3641
3642				CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3643		CODE_COVERAGE_LDFLAGS="-lgcov"
3644
3645
3646
3647
3648CODE_COVERAGE_RULES='
3649# Code coverage
3650#
3651# Optional:
3652#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3653#    (Default: $(top_builddir))
3654#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3655#    by lcov for code coverage. (Default:
3656#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3657#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3658#    reports to be created. (Default:
3659#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3660#  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3661#  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3662#    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3663#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3664#    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3665#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3666#    instance. (Default: empty)
3667#  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3668#
3669# The generated report will be titled using the $(PACKAGE_NAME) and
3670# $(PACKAGE_VERSION). In order to add the current git hash to the title,
3671# use the git-version-gen script, available online.
3672
3673# Optional variables
3674CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3675CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3676CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3677CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3678CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3679CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3680CODE_COVERAGE_GENHTML_OPTIONS ?=
3681CODE_COVERAGE_IGNORE_PATTERN ?=
3682
3683code_coverage_quiet = $(code_coverage_quiet_$(V))
3684code_coverage_quiet_ =
3685code_coverage_quiet_0 = --quiet
3686
3687# Use recursive makes in order to ignore errors during check
3688check-code-coverage:
3689	-$(MAKE) $(AM_MAKEFLAGS) -k check
3690	$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3691
3692# Capture code coverage data
3693code-coverage-capture: code-coverage-capture-hook
3694	$(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
3695	$(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
3696	-@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3697	LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3698	@echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3699
3700# Hook rule executed before code-coverage-capture, overridable by the user
3701code-coverage-capture-hook:
3702
3703clean: code-coverage-clean
3704code-coverage-clean:
3705	-$(LCOV) --directory $(top_builddir) -z
3706	-rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3707	-find . -name "*.gcda" -o -name "*.gcov" -delete
3708
3709GITIGNOREFILES ?=
3710GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3711
3712DISTCHECK_CONFIGURE_FLAGS ?=
3713DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3714
3715.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3716'
3717
3718
3719fi
3720
3721
3722
3723
3724if test -f ${srcdir}/ares_build.h; then
3725  rm -f ${srcdir}/ares_build.h
3726fi
3727
3728
3729ac_aux_dir=
3730for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3731  if test -f "$ac_dir/install-sh"; then
3732    ac_aux_dir=$ac_dir
3733    ac_install_sh="$ac_aux_dir/install-sh -c"
3734    break
3735  elif test -f "$ac_dir/install.sh"; then
3736    ac_aux_dir=$ac_dir
3737    ac_install_sh="$ac_aux_dir/install.sh -c"
3738    break
3739  elif test -f "$ac_dir/shtool"; then
3740    ac_aux_dir=$ac_dir
3741    ac_install_sh="$ac_aux_dir/shtool install -c"
3742    break
3743  fi
3744done
3745if test -z "$ac_aux_dir"; then
3746  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3747fi
3748
3749# These three variables are undocumented and unsupported,
3750# and are intended to be withdrawn in a future Autoconf release.
3751# They can cause serious problems if a builder's source tree is in a directory
3752# whose full name contains unusual characters.
3753ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3754ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3755ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3756
3757
3758# Make sure we can run config.sub.
3759$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3760  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3763$as_echo_n "checking build system type... " >&6; }
3764if ${ac_cv_build+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  ac_build_alias=$build_alias
3768test "x$ac_build_alias" = x &&
3769  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3770test "x$ac_build_alias" = x &&
3771  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3773  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3774
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3777$as_echo "$ac_cv_build" >&6; }
3778case $ac_cv_build in
3779*-*-*) ;;
3780*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3781esac
3782build=$ac_cv_build
3783ac_save_IFS=$IFS; IFS='-'
3784set x $ac_cv_build
3785shift
3786build_cpu=$1
3787build_vendor=$2
3788shift; shift
3789# Remember, the first character of IFS is used to create $*,
3790# except with old shells:
3791build_os=$*
3792IFS=$ac_save_IFS
3793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3794
3795
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3797$as_echo_n "checking host system type... " >&6; }
3798if ${ac_cv_host+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  if test "x$host_alias" = x; then
3802  ac_cv_host=$ac_cv_build
3803else
3804  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3805    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3806fi
3807
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3810$as_echo "$ac_cv_host" >&6; }
3811case $ac_cv_host in
3812*-*-*) ;;
3813*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3814esac
3815host=$ac_cv_host
3816ac_save_IFS=$IFS; IFS='-'
3817set x $ac_cv_host
3818shift
3819host_cpu=$1
3820host_vendor=$2
3821shift; shift
3822# Remember, the first character of IFS is used to create $*,
3823# except with old shells:
3824host_os=$*
3825IFS=$ac_save_IFS
3826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3827
3828
3829
3830cat >>confdefs.h <<_ACEOF
3831#define OS "${host}"
3832_ACEOF
3833
3834
3835
3836  xc_prog_cc_prev_IFS=$IFS
3837  xc_prog_cc_prev_LIBS=$LIBS
3838  xc_prog_cc_prev_CFLAGS=$CFLAGS
3839  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3840  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3841
3842
3843
3844  xc_bad_var_libs=no
3845  for xc_word in $LIBS; do
3846    case "$xc_word" in
3847      -l* | --library=*)
3848        :
3849        ;;
3850      *)
3851        xc_bad_var_libs=yes
3852        ;;
3853    esac
3854  done
3855  if test $xc_bad_var_libs = yes; then
3856    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3857$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3858    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3859$as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3860  fi
3861
3862
3863  xc_bad_var_ldflags=no
3864  for xc_word in $LDFLAGS; do
3865    case "$xc_word" in
3866      -D*)
3867        xc_bad_var_ldflags=yes
3868        ;;
3869      -U*)
3870        xc_bad_var_ldflags=yes
3871        ;;
3872      -I*)
3873        xc_bad_var_ldflags=yes
3874        ;;
3875      -l* | --library=*)
3876        xc_bad_var_ldflags=yes
3877        ;;
3878    esac
3879  done
3880  if test $xc_bad_var_ldflags = yes; then
3881    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3882$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3883    xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3884    for xc_word in $LDFLAGS; do
3885      case "$xc_word" in
3886        -D*)
3887          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3888$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3889          ;;
3890        -U*)
3891          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3892$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3893          ;;
3894        -I*)
3895          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3896$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3897          ;;
3898        -l* | --library=*)
3899          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3900$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3901          ;;
3902      esac
3903    done
3904  fi
3905
3906
3907  xc_bad_var_cppflags=no
3908  for xc_word in $CPPFLAGS; do
3909    case "$xc_word" in
3910      -rpath*)
3911        xc_bad_var_cppflags=yes
3912        ;;
3913      -L* | --library-path=*)
3914        xc_bad_var_cppflags=yes
3915        ;;
3916      -l* | --library=*)
3917        xc_bad_var_cppflags=yes
3918        ;;
3919    esac
3920  done
3921  if test $xc_bad_var_cppflags = yes; then
3922    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3923$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3924    xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3925    for xc_word in $CPPFLAGS; do
3926      case "$xc_word" in
3927        -rpath*)
3928          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3929$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3930          ;;
3931        -L* | --library-path=*)
3932          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3933$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3934          ;;
3935        -l* | --library=*)
3936          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3937$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3938          ;;
3939      esac
3940    done
3941  fi
3942
3943
3944  xc_bad_var_cflags=no
3945  for xc_word in $CFLAGS; do
3946    case "$xc_word" in
3947      -D*)
3948        xc_bad_var_cflags=yes
3949        ;;
3950      -U*)
3951        xc_bad_var_cflags=yes
3952        ;;
3953      -I*)
3954        xc_bad_var_cflags=yes
3955        ;;
3956      -rpath*)
3957        xc_bad_var_cflags=yes
3958        ;;
3959      -L* | --library-path=*)
3960        xc_bad_var_cflags=yes
3961        ;;
3962      -l* | --library=*)
3963        xc_bad_var_cflags=yes
3964        ;;
3965    esac
3966  done
3967  if test $xc_bad_var_cflags = yes; then
3968    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3969$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3970    xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3971    for xc_word in $CFLAGS; do
3972      case "$xc_word" in
3973        -D*)
3974          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3975$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3976          ;;
3977        -U*)
3978          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3979$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3980          ;;
3981        -I*)
3982          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3983$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3984          ;;
3985        -rpath*)
3986          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3987$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3988          ;;
3989        -L* | --library-path=*)
3990          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3991$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3992          ;;
3993        -l* | --library=*)
3994          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3995$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3996          ;;
3997      esac
3998    done
3999  fi
4000
4001  if test $xc_bad_var_libs = yes ||
4002     test $xc_bad_var_cflags = yes ||
4003     test $xc_bad_var_ldflags = yes ||
4004     test $xc_bad_var_cppflags = yes; then
4005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4006$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4007  fi
4008
4009# Find a good install program.  We prefer a C program (faster),
4010# so one script is as good as another.  But avoid the broken or
4011# incompatible versions:
4012# SysV /etc/install, /usr/sbin/install
4013# SunOS /usr/etc/install
4014# IRIX /sbin/install
4015# AIX /bin/install
4016# AmigaOS /C/install, which installs bootblocks on floppy discs
4017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4018# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4020# OS/2's system install, which has a completely different semantic
4021# ./install, which can be erroneously created by make from ./install.sh.
4022# Reject install programs that cannot install multiple files.
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4024$as_echo_n "checking for a BSD-compatible install... " >&6; }
4025if test -z "$INSTALL"; then
4026if ${ac_cv_path_install+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH
4031do
4032  IFS=$as_save_IFS
4033  test -z "$as_dir" && as_dir=.
4034    # Account for people who put trailing slashes in PATH elements.
4035case $as_dir/ in #((
4036  ./ | .// | /[cC]/* | \
4037  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4038  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4039  /usr/ucb/* ) ;;
4040  *)
4041    # OSF1 and SCO ODT 3.0 have their own names for install.
4042    # Don't use installbsd from OSF since it installs stuff as root
4043    # by default.
4044    for ac_prog in ginstall scoinst install; do
4045      for ac_exec_ext in '' $ac_executable_extensions; do
4046	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4047	  if test $ac_prog = install &&
4048	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4049	    # AIX install.  It has an incompatible calling convention.
4050	    :
4051	  elif test $ac_prog = install &&
4052	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4053	    # program-specific install script used by HP pwplus--don't use.
4054	    :
4055	  else
4056	    rm -rf conftest.one conftest.two conftest.dir
4057	    echo one > conftest.one
4058	    echo two > conftest.two
4059	    mkdir conftest.dir
4060	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4061	      test -s conftest.one && test -s conftest.two &&
4062	      test -s conftest.dir/conftest.one &&
4063	      test -s conftest.dir/conftest.two
4064	    then
4065	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4066	      break 3
4067	    fi
4068	  fi
4069	fi
4070      done
4071    done
4072    ;;
4073esac
4074
4075  done
4076IFS=$as_save_IFS
4077
4078rm -rf conftest.one conftest.two conftest.dir
4079
4080fi
4081  if test "${ac_cv_path_install+set}" = set; then
4082    INSTALL=$ac_cv_path_install
4083  else
4084    # As a last resort, use the slow shell script.  Don't cache a
4085    # value for INSTALL within a source directory, because that will
4086    # break other packages using the cache if that directory is
4087    # removed, or if the value is a relative name.
4088    INSTALL=$ac_install_sh
4089  fi
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4092$as_echo "$INSTALL" >&6; }
4093
4094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4095# It thinks the first close brace ends the variable substitution.
4096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4097
4098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4099
4100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4101
4102# Expand $ac_aux_dir to an absolute path.
4103am_aux_dir=`cd "$ac_aux_dir" && pwd`
4104
4105ac_ext=c
4106ac_cpp='$CPP $CPPFLAGS'
4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110if test -n "$ac_tool_prefix"; then
4111  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4112set dummy ${ac_tool_prefix}gcc; ac_word=$2
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if ${ac_cv_prog_CC+:} false; then :
4116  $as_echo_n "(cached) " >&6
4117else
4118  if test -n "$CC"; then
4119  ac_cv_prog_CC="$CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124  IFS=$as_save_IFS
4125  test -z "$as_dir" && as_dir=.
4126    for ac_exec_ext in '' $ac_executable_extensions; do
4127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130    break 2
4131  fi
4132done
4133  done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138CC=$ac_cv_prog_CC
4139if test -n "$CC"; then
4140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141$as_echo "$CC" >&6; }
4142else
4143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147
4148fi
4149if test -z "$ac_cv_prog_CC"; then
4150  ac_ct_CC=$CC
4151  # Extract the first word of "gcc", so it can be a program name with args.
4152set dummy gcc; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if ${ac_cv_prog_ac_ct_CC+:} false; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  if test -n "$ac_ct_CC"; then
4159  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168    ac_cv_prog_ac_ct_CC="gcc"
4169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173  done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179if test -n "$ac_ct_CC"; then
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181$as_echo "$ac_ct_CC" >&6; }
4182else
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187  if test "x$ac_ct_CC" = x; then
4188    CC=""
4189  else
4190    case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196    CC=$ac_ct_CC
4197  fi
4198else
4199  CC="$ac_cv_prog_CC"
4200fi
4201
4202if test -z "$CC"; then
4203          if test -n "$ac_tool_prefix"; then
4204    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}cc; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if ${ac_cv_prog_CC+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$CC"; then
4212  ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221    ac_cv_prog_CC="${ac_tool_prefix}cc"
4222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226  done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231CC=$ac_cv_prog_CC
4232if test -n "$CC"; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234$as_echo "$CC" >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241  fi
4242fi
4243if test -z "$CC"; then
4244  # Extract the first word of "cc", so it can be a program name with args.
4245set dummy cc; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
4248if ${ac_cv_prog_CC+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  if test -n "$CC"; then
4252  ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254  ac_prog_rejected=no
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4263       ac_prog_rejected=yes
4264       continue
4265     fi
4266    ac_cv_prog_CC="cc"
4267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268    break 2
4269  fi
4270done
4271  done
4272IFS=$as_save_IFS
4273
4274if test $ac_prog_rejected = yes; then
4275  # We found a bogon in the path, so make sure we never use it.
4276  set dummy $ac_cv_prog_CC
4277  shift
4278  if test $# != 0; then
4279    # We chose a different compiler from the bogus one.
4280    # However, it has the same basename, so the bogon will be chosen
4281    # first if we set CC to just the basename; use the full file name.
4282    shift
4283    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4284  fi
4285fi
4286fi
4287fi
4288CC=$ac_cv_prog_CC
4289if test -n "$CC"; then
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291$as_echo "$CC" >&6; }
4292else
4293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297
4298fi
4299if test -z "$CC"; then
4300  if test -n "$ac_tool_prefix"; then
4301  for ac_prog in cl.exe
4302  do
4303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if ${ac_cv_prog_CC+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  if test -n "$CC"; then
4311  ac_cv_prog_CC="$CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322    break 2
4323  fi
4324done
4325  done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330CC=$ac_cv_prog_CC
4331if test -n "$CC"; then
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333$as_echo "$CC" >&6; }
4334else
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340    test -n "$CC" && break
4341  done
4342fi
4343if test -z "$CC"; then
4344  ac_ct_CC=$CC
4345  for ac_prog in cl.exe
4346do
4347  # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if ${ac_cv_prog_ac_ct_CC+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  if test -n "$ac_ct_CC"; then
4355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364    ac_cv_prog_ac_ct_CC="$ac_prog"
4365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366    break 2
4367  fi
4368done
4369  done
4370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4377$as_echo "$ac_ct_CC" >&6; }
4378else
4379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
4381fi
4382
4383
4384  test -n "$ac_ct_CC" && break
4385done
4386
4387  if test "x$ac_ct_CC" = x; then
4388    CC=""
4389  else
4390    case $cross_compiling:$ac_tool_warned in
4391yes:)
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394ac_tool_warned=yes ;;
4395esac
4396    CC=$ac_ct_CC
4397  fi
4398fi
4399
4400fi
4401
4402
4403test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405as_fn_error $? "no acceptable C compiler found in \$PATH
4406See \`config.log' for more details" "$LINENO" 5; }
4407
4408# Provide some information about the compiler.
4409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4410set X $ac_compile
4411ac_compiler=$2
4412for ac_option in --version -v -V -qversion; do
4413  { { ac_try="$ac_compiler $ac_option >&5"
4414case "(($ac_try" in
4415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416  *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421  ac_status=$?
4422  if test -s conftest.err; then
4423    sed '10a\
4424... rest of stderr output deleted ...
4425         10q' conftest.err >conftest.er1
4426    cat conftest.er1 >&5
4427  fi
4428  rm -f conftest.er1 conftest.err
4429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430  test $ac_status = 0; }
4431done
4432
4433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435
4436int main (void)
4437{
4438
4439 ;
4440 return 0;
4441}
4442_ACEOF
4443ac_clean_files_save=$ac_clean_files
4444ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4445# Try to create an executable without -o first, disregard a.out.
4446# It will help us diagnose broken compilers, and finding out an intuition
4447# of exeext.
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4449$as_echo_n "checking whether the C compiler works... " >&6; }
4450ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4451
4452# The possible output files:
4453ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4454
4455ac_rmfiles=
4456for ac_file in $ac_files
4457do
4458  case $ac_file in
4459    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4460    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4461  esac
4462done
4463rm -f $ac_rmfiles
4464
4465if { { ac_try="$ac_link_default"
4466case "(($ac_try" in
4467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468  *) ac_try_echo=$ac_try;;
4469esac
4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471$as_echo "$ac_try_echo"; } >&5
4472  (eval "$ac_link_default") 2>&5
4473  ac_status=$?
4474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475  test $ac_status = 0; }; then :
4476  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4477# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4478# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4479# so that the user can short-circuit this test for compilers unknown to
4480# Autoconf.
4481for ac_file in $ac_files ''
4482do
4483  test -f "$ac_file" || continue
4484  case $ac_file in
4485    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4486	;;
4487    [ab].out )
4488	# We found the default executable, but exeext='' is most
4489	# certainly right.
4490	break;;
4491    *.* )
4492	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4493	then :; else
4494	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4495	fi
4496	# We set ac_cv_exeext here because the later test for it is not
4497	# safe: cross compilers may not add the suffix if given an `-o'
4498	# argument, so we may need to know it at that point already.
4499	# Even if this section looks crufty: it has the advantage of
4500	# actually working.
4501	break;;
4502    * )
4503	break;;
4504  esac
4505done
4506test "$ac_cv_exeext" = no && ac_cv_exeext=
4507
4508else
4509  ac_file=''
4510fi
4511if test -z "$ac_file"; then :
4512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513$as_echo "no" >&6; }
4514$as_echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519as_fn_error 77 "C compiler cannot create executables
4520See \`config.log' for more details" "$LINENO" 5; }
4521else
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523$as_echo "yes" >&6; }
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4526$as_echo_n "checking for C compiler default output file name... " >&6; }
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4528$as_echo "$ac_file" >&6; }
4529ac_exeext=$ac_cv_exeext
4530
4531rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4532ac_clean_files=$ac_clean_files_save
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534$as_echo_n "checking for suffix of executables... " >&6; }
4535if { { ac_try="$ac_link"
4536case "(($ac_try" in
4537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538  *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542  (eval "$ac_link") 2>&5
4543  ac_status=$?
4544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545  test $ac_status = 0; }; then :
4546  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4547# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4548# work properly (i.e., refer to `conftest.exe'), while it won't with
4549# `rm'.
4550for ac_file in conftest.exe conftest conftest.*; do
4551  test -f "$ac_file" || continue
4552  case $ac_file in
4553    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4554    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4555	  break;;
4556    * ) break;;
4557  esac
4558done
4559else
4560  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4563See \`config.log' for more details" "$LINENO" 5; }
4564fi
4565rm -f conftest conftest$ac_cv_exeext
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4567$as_echo "$ac_cv_exeext" >&6; }
4568
4569rm -f conftest.$ac_ext
4570EXEEXT=$ac_cv_exeext
4571ac_exeext=$EXEEXT
4572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <stdio.h>
4575int main (void)
4576{
4577FILE *f = fopen ("conftest.out", "w");
4578 return ferror (f) || fclose (f) != 0;
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584ac_clean_files="$ac_clean_files conftest.out"
4585# Check that the compiler produces executables we can run.  If not, either
4586# the compiler is broken, or we cross compile.
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4588$as_echo_n "checking whether we are cross compiling... " >&6; }
4589if test "$cross_compiling" != yes; then
4590  { { ac_try="$ac_link"
4591case "(($ac_try" in
4592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593  *) ac_try_echo=$ac_try;;
4594esac
4595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4596$as_echo "$ac_try_echo"; } >&5
4597  (eval "$ac_link") 2>&5
4598  ac_status=$?
4599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4600  test $ac_status = 0; }
4601  if { ac_try='./conftest$ac_cv_exeext'
4602  { { case "(($ac_try" in
4603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604  *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608  (eval "$ac_try") 2>&5
4609  ac_status=$?
4610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611  test $ac_status = 0; }; }; then
4612    cross_compiling=no
4613  else
4614    if test "$cross_compiling" = maybe; then
4615	cross_compiling=yes
4616    else
4617	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619as_fn_error $? "cannot run C compiled programs.
4620If you meant to cross compile, use \`--host'.
4621See \`config.log' for more details" "$LINENO" 5; }
4622    fi
4623  fi
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4626$as_echo "$cross_compiling" >&6; }
4627
4628rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4629ac_clean_files=$ac_clean_files_save
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4631$as_echo_n "checking for suffix of object files... " >&6; }
4632if ${ac_cv_objext+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637
4638int main (void)
4639{
4640
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645rm -f conftest.o conftest.obj
4646if { { ac_try="$ac_compile"
4647case "(($ac_try" in
4648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649  *) ac_try_echo=$ac_try;;
4650esac
4651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652$as_echo "$ac_try_echo"; } >&5
4653  (eval "$ac_compile") 2>&5
4654  ac_status=$?
4655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656  test $ac_status = 0; }; then :
4657  for ac_file in conftest.o conftest.obj conftest.*; do
4658  test -f "$ac_file" || continue;
4659  case $ac_file in
4660    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4661    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4662       break;;
4663  esac
4664done
4665else
4666  $as_echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4671as_fn_error $? "cannot compute suffix of object files: cannot compile
4672See \`config.log' for more details" "$LINENO" 5; }
4673fi
4674rm -f conftest.$ac_cv_objext conftest.$ac_ext
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4677$as_echo "$ac_cv_objext" >&6; }
4678OBJEXT=$ac_cv_objext
4679ac_objext=$OBJEXT
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4681$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4682if ${ac_cv_c_compiler_gnu+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h.  */
4687
4688int main (void)
4689{
4690#ifndef __GNUC__
4691       choke me
4692#endif
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698if ac_fn_c_try_compile "$LINENO"; then :
4699  ac_compiler_gnu=yes
4700else
4701  ac_compiler_gnu=no
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704ac_cv_c_compiler_gnu=$ac_compiler_gnu
4705
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4708$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4709if test $ac_compiler_gnu = yes; then
4710  GCC=yes
4711else
4712  GCC=
4713fi
4714ac_test_CFLAGS=${CFLAGS+set}
4715ac_save_CFLAGS=$CFLAGS
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4717$as_echo_n "checking whether $CC accepts -g... " >&6; }
4718if ${ac_cv_prog_cc_g+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  ac_save_c_werror_flag=$ac_c_werror_flag
4722   ac_c_werror_flag=yes
4723   ac_cv_prog_cc_g=no
4724   CFLAGS="-g"
4725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727
4728int main (void)
4729{
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735if ac_fn_c_try_compile "$LINENO"; then :
4736  ac_cv_prog_cc_g=yes
4737else
4738  CFLAGS=""
4739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742int main (void)
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750
4751else
4752  ac_c_werror_flag=$ac_save_c_werror_flag
4753	 CFLAGS="-g"
4754	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756
4757int main (void)
4758{
4759
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764if ac_fn_c_try_compile "$LINENO"; then :
4765  ac_cv_prog_cc_g=yes
4766fi
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770fi
4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772   ac_c_werror_flag=$ac_save_c_werror_flag
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4775$as_echo "$ac_cv_prog_cc_g" >&6; }
4776if test "$ac_test_CFLAGS" = set; then
4777  CFLAGS=$ac_save_CFLAGS
4778elif test $ac_cv_prog_cc_g = yes; then
4779  if test "$GCC" = yes; then
4780    CFLAGS="-g -O2"
4781  else
4782    CFLAGS="-g"
4783  fi
4784else
4785  if test "$GCC" = yes; then
4786    CFLAGS="-O2"
4787  else
4788    CFLAGS=
4789  fi
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4792$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4793if ${ac_cv_prog_cc_c89+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  ac_cv_prog_cc_c89=no
4797ac_save_CC=$CC
4798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800#include <stdarg.h>
4801#include <stdio.h>
4802struct stat;
4803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4804struct buf { int x; };
4805FILE * (*rcsopen) (struct buf *, struct stat *, int);
4806static char *e (p, i)
4807     char **p;
4808     int i;
4809{
4810  return p[i];
4811}
4812static char *f (char * (*g) (char **, int), char **p, ...)
4813{
4814  char *s;
4815  va_list v;
4816  va_start (v,p);
4817  s = g (p, va_arg (v,int));
4818  va_end (v);
4819  return s;
4820}
4821
4822/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4823   function prototypes and stuff, but not '\xHH' hex character constants.
4824   These don't provoke an error unfortunately, instead are silently treated
4825   as 'x'.  The following induces an error, until -std is added to get
4826   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4827   array size at least.  It's necessary to write '\x00'==0 to get something
4828   that's true only with -std.  */
4829int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4830
4831/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4832   inside strings and character constants.  */
4833#define FOO(x) 'x'
4834int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4835
4836int test (int i, double x);
4837struct s1 {int (*f) (int a);};
4838struct s2 {int (*f) (double a);};
4839int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4840int argc;
4841char **argv;
4842int main (void)
4843{
4844return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4850	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4851do
4852  CC="$ac_save_CC $ac_arg"
4853  if ac_fn_c_try_compile "$LINENO"; then :
4854  ac_cv_prog_cc_c89=$ac_arg
4855fi
4856rm -f core conftest.err conftest.$ac_objext
4857  test "x$ac_cv_prog_cc_c89" != "xno" && break
4858done
4859rm -f conftest.$ac_ext
4860CC=$ac_save_CC
4861
4862fi
4863# AC_CACHE_VAL
4864case "x$ac_cv_prog_cc_c89" in
4865  x)
4866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4867$as_echo "none needed" >&6; } ;;
4868  xno)
4869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4870$as_echo "unsupported" >&6; } ;;
4871  *)
4872    CC="$CC $ac_cv_prog_cc_c89"
4873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4874$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4875esac
4876if test "x$ac_cv_prog_cc_c89" != xno; then :
4877
4878fi
4879
4880ac_ext=c
4881ac_cpp='$CPP $CPPFLAGS'
4882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885
4886ac_ext=c
4887ac_cpp='$CPP $CPPFLAGS'
4888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4892$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4893if ${am_cv_prog_cc_c_o+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h.  */
4898
4899int main (void)
4900{
4901
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906  # Make sure it works both with $CC and with simple cc.
4907  # Following AC_PROG_CC_C_O, we do the test twice because some
4908  # compilers refuse to overwrite an existing .o file with -o,
4909  # though they will create one.
4910  am_cv_prog_cc_c_o=yes
4911  for am_i in 1 2; do
4912    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4913   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } \
4917         && test -f conftest2.$ac_objext; then
4918      : OK
4919    else
4920      am_cv_prog_cc_c_o=no
4921      break
4922    fi
4923  done
4924  rm -f core conftest*
4925  unset am_i
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4928$as_echo "$am_cv_prog_cc_c_o" >&6; }
4929if test "$am_cv_prog_cc_c_o" != yes; then
4930   # Losing compiler, so override with the script.
4931   # FIXME: It is wrong to rewrite CC.
4932   # But if we don't then we get into trouble of one sort or another.
4933   # A longer-term fix would be to have automake use am__CC in this case,
4934   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4935   CC="$am_aux_dir/compile $CC"
4936fi
4937ac_ext=c
4938ac_cpp='$CPP $CPPFLAGS'
4939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
4943
4944
4945ac_ext=c
4946ac_cpp='$CPP $CPPFLAGS'
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4951$as_echo_n "checking how to run the C preprocessor... " >&6; }
4952# On Suns, sometimes $CPP names a directory.
4953if test -n "$CPP" && test -d "$CPP"; then
4954  CPP=
4955fi
4956if test -z "$CPP"; then
4957  if ${ac_cv_prog_CPP+:} false; then :
4958  $as_echo_n "(cached) " >&6
4959else
4960      # Double quotes because CPP needs to be expanded
4961    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4962    do
4963      ac_preproc_ok=false
4964for ac_c_preproc_warn_flag in '' yes
4965do
4966  # Use a header file that comes with gcc, so configuring glibc
4967  # with a fresh cross-compiler works.
4968  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969  # <limits.h> exists even on freestanding compilers.
4970  # On the NeXT, cc -E runs the code through the compiler's parser,
4971  # not just through cpp. "Syntax error" is here to catch this case.
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974#ifdef __STDC__
4975# include <limits.h>
4976#else
4977# include <assert.h>
4978#endif
4979		     Syntax error
4980_ACEOF
4981if ac_fn_c_try_cpp "$LINENO"; then :
4982
4983else
4984  # Broken: fails on valid input.
4985continue
4986fi
4987rm -f conftest.err conftest.i conftest.$ac_ext
4988
4989  # OK, works on sane cases.  Now check whether nonexistent headers
4990  # can be detected and how.
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993#include <ac_nonexistent.h>
4994_ACEOF
4995if ac_fn_c_try_cpp "$LINENO"; then :
4996  # Broken: success on invalid input.
4997continue
4998else
4999  # Passes both tests.
5000ac_preproc_ok=:
5001break
5002fi
5003rm -f conftest.err conftest.i conftest.$ac_ext
5004
5005done
5006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007rm -f conftest.i conftest.err conftest.$ac_ext
5008if $ac_preproc_ok; then :
5009  break
5010fi
5011
5012    done
5013    ac_cv_prog_CPP=$CPP
5014
5015fi
5016  CPP=$ac_cv_prog_CPP
5017else
5018  ac_cv_prog_CPP=$CPP
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5021$as_echo "$CPP" >&6; }
5022ac_preproc_ok=false
5023for ac_c_preproc_warn_flag in '' yes
5024do
5025  # Use a header file that comes with gcc, so configuring glibc
5026  # with a fresh cross-compiler works.
5027  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028  # <limits.h> exists even on freestanding compilers.
5029  # On the NeXT, cc -E runs the code through the compiler's parser,
5030  # not just through cpp. "Syntax error" is here to catch this case.
5031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h.  */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038		     Syntax error
5039_ACEOF
5040if ac_fn_c_try_cpp "$LINENO"; then :
5041
5042else
5043  # Broken: fails on valid input.
5044continue
5045fi
5046rm -f conftest.err conftest.i conftest.$ac_ext
5047
5048  # OK, works on sane cases.  Now check whether nonexistent headers
5049  # can be detected and how.
5050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052#include <ac_nonexistent.h>
5053_ACEOF
5054if ac_fn_c_try_cpp "$LINENO"; then :
5055  # Broken: success on invalid input.
5056continue
5057else
5058  # Passes both tests.
5059ac_preproc_ok=:
5060break
5061fi
5062rm -f conftest.err conftest.i conftest.$ac_ext
5063
5064done
5065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066rm -f conftest.i conftest.err conftest.$ac_ext
5067if $ac_preproc_ok; then :
5068
5069else
5070  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5072as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5073See \`config.log' for more details" "$LINENO" 5; }
5074fi
5075
5076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082
5083  IFS=$xc_prog_cc_prev_IFS
5084  LIBS=$xc_prog_cc_prev_LIBS
5085  CFLAGS=$xc_prog_cc_prev_CFLAGS
5086  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5087  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5088
5089
5090
5091
5092
5093ac_ext=cpp
5094ac_cpp='$CXXCPP $CPPFLAGS'
5095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5098if test -z "$CXX"; then
5099  if test -n "$CCC"; then
5100    CXX=$CCC
5101  else
5102    if test -n "$ac_tool_prefix"; then
5103  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5104  do
5105    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_CXX+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  if test -n "$CXX"; then
5113  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  test -z "$as_dir" && as_dir=.
5120    for ac_exec_ext in '' $ac_executable_extensions; do
5121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124    break 2
5125  fi
5126done
5127  done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132CXX=$ac_cv_prog_CXX
5133if test -n "$CXX"; then
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5135$as_echo "$CXX" >&6; }
5136else
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142    test -n "$CXX" && break
5143  done
5144fi
5145if test -z "$CXX"; then
5146  ac_ct_CXX=$CXX
5147  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5148do
5149  # Extract the first word of "$ac_prog", so it can be a program name with args.
5150set dummy $ac_prog; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$ac_ct_CXX"; then
5157  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166    ac_cv_prog_ac_ct_CXX="$ac_prog"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5177if test -n "$ac_ct_CXX"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5179$as_echo "$ac_ct_CXX" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186  test -n "$ac_ct_CXX" && break
5187done
5188
5189  if test "x$ac_ct_CXX" = x; then
5190    CXX="g++"
5191  else
5192    case $cross_compiling:$ac_tool_warned in
5193yes:)
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196ac_tool_warned=yes ;;
5197esac
5198    CXX=$ac_ct_CXX
5199  fi
5200fi
5201
5202  fi
5203fi
5204# Provide some information about the compiler.
5205$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5206set X $ac_compile
5207ac_compiler=$2
5208for ac_option in --version -v -V -qversion; do
5209  { { ac_try="$ac_compiler $ac_option >&5"
5210case "(($ac_try" in
5211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212  *) ac_try_echo=$ac_try;;
5213esac
5214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215$as_echo "$ac_try_echo"; } >&5
5216  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5217  ac_status=$?
5218  if test -s conftest.err; then
5219    sed '10a\
5220... rest of stderr output deleted ...
5221         10q' conftest.err >conftest.er1
5222    cat conftest.er1 >&5
5223  fi
5224  rm -f conftest.er1 conftest.err
5225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5226  test $ac_status = 0; }
5227done
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5230$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5231if ${ac_cv_cxx_compiler_gnu+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236
5237int
5238main ()
5239{
5240#ifndef __GNUC__
5241       choke me
5242#endif
5243
5244  ;
5245  return 0;
5246}
5247_ACEOF
5248if ac_fn_cxx_try_compile "$LINENO"; then :
5249  ac_compiler_gnu=yes
5250else
5251  ac_compiler_gnu=no
5252fi
5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5255
5256fi
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5258$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5259if test $ac_compiler_gnu = yes; then
5260  GXX=yes
5261else
5262  GXX=
5263fi
5264ac_test_CXXFLAGS=${CXXFLAGS+set}
5265ac_save_CXXFLAGS=$CXXFLAGS
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5267$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5268if ${ac_cv_prog_cxx_g+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5272   ac_cxx_werror_flag=yes
5273   ac_cv_prog_cxx_g=no
5274   CXXFLAGS="-g"
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277
5278int
5279main ()
5280{
5281
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286if ac_fn_cxx_try_compile "$LINENO"; then :
5287  ac_cv_prog_cxx_g=yes
5288else
5289  CXXFLAGS=""
5290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292
5293int
5294main ()
5295{
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301if ac_fn_cxx_try_compile "$LINENO"; then :
5302
5303else
5304  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5305	 CXXFLAGS="-g"
5306	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308
5309int
5310main ()
5311{
5312
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317if ac_fn_cxx_try_compile "$LINENO"; then :
5318  ac_cv_prog_cxx_g=yes
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5328$as_echo "$ac_cv_prog_cxx_g" >&6; }
5329if test "$ac_test_CXXFLAGS" = set; then
5330  CXXFLAGS=$ac_save_CXXFLAGS
5331elif test $ac_cv_prog_cxx_g = yes; then
5332  if test "$GXX" = yes; then
5333    CXXFLAGS="-g -O2"
5334  else
5335    CXXFLAGS="-g"
5336  fi
5337else
5338  if test "$GXX" = yes; then
5339    CXXFLAGS="-O2"
5340  else
5341    CXXFLAGS=
5342  fi
5343fi
5344ac_ext=cpp
5345ac_cpp='$CXXCPP $CPPFLAGS'
5346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5349
5350
5351    ax_cxx_compile_cxx11_required=false
5352  ac_ext=cpp
5353ac_cpp='$CXXCPP $CPPFLAGS'
5354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5357  ac_success=no
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5359$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5360if ${ax_cv_cxx_compile_cxx11+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365
5366  template <typename T>
5367    struct check
5368    {
5369      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5370    };
5371
5372    struct Base {
5373    virtual void f() {}
5374    };
5375    struct Child : public Base {
5376    virtual void f() override {}
5377    };
5378
5379    typedef check<check<bool>> right_angle_brackets;
5380
5381    int a;
5382    decltype(a) b;
5383
5384    typedef check<int> check_type;
5385    check_type c;
5386    check_type&& cr = static_cast<check_type&&>(c);
5387
5388    auto d = a;
5389    auto l = [](){};
5390
5391    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5392    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5393    namespace test_template_alias_sfinae {
5394        struct foo {};
5395
5396        template<typename T>
5397        using member = typename T::member_type;
5398
5399        template<typename T>
5400        void func(...) {}
5401
5402        template<typename T>
5403        void func(member<T>*) {}
5404
5405        void test();
5406
5407        void test() {
5408            func<foo>(0);
5409        }
5410    }
5411
5412_ACEOF
5413if ac_fn_cxx_try_compile "$LINENO"; then :
5414  ax_cv_cxx_compile_cxx11=yes
5415else
5416  ax_cv_cxx_compile_cxx11=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5421$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5422  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5423    ac_success=yes
5424  fi
5425
5426
5427
5428    if test x$ac_success = xno; then
5429    for switch in -std=c++11 -std=c++0x; do
5430      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5431      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5432$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5433if eval \${$cachevar+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  ac_save_CXXFLAGS="$CXXFLAGS"
5437         CXXFLAGS="$CXXFLAGS $switch"
5438         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440
5441  template <typename T>
5442    struct check
5443    {
5444      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5445    };
5446
5447    struct Base {
5448    virtual void f() {}
5449    };
5450    struct Child : public Base {
5451    virtual void f() override {}
5452    };
5453
5454    typedef check<check<bool>> right_angle_brackets;
5455
5456    int a;
5457    decltype(a) b;
5458
5459    typedef check<int> check_type;
5460    check_type c;
5461    check_type&& cr = static_cast<check_type&&>(c);
5462
5463    auto d = a;
5464    auto l = [](){};
5465
5466    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5467    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5468    namespace test_template_alias_sfinae {
5469        struct foo {};
5470
5471        template<typename T>
5472        using member = typename T::member_type;
5473
5474        template<typename T>
5475        void func(...) {}
5476
5477        template<typename T>
5478        void func(member<T>*) {}
5479
5480        void test();
5481
5482        void test() {
5483            func<foo>(0);
5484        }
5485    }
5486
5487_ACEOF
5488if ac_fn_cxx_try_compile "$LINENO"; then :
5489  eval $cachevar=yes
5490else
5491  eval $cachevar=no
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494         CXXFLAGS="$ac_save_CXXFLAGS"
5495fi
5496eval ac_res=\$$cachevar
5497	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5498$as_echo "$ac_res" >&6; }
5499      if eval test x\$$cachevar = xyes; then
5500        CXXFLAGS="$CXXFLAGS $switch"
5501        ac_success=yes
5502        break
5503      fi
5504    done
5505  fi
5506  ac_ext=c
5507ac_cpp='$CPP $CPPFLAGS'
5508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512  if test x$ax_cxx_compile_cxx11_required = xtrue; then
5513    if test x$ac_success = xno; then
5514      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5515    fi
5516  else
5517    if test x$ac_success = xno; then
5518      HAVE_CXX11=0
5519      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5520$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5521    else
5522      HAVE_CXX11=1
5523
5524$as_echo "#define HAVE_CXX11 1" >>confdefs.h
5525
5526    fi
5527
5528
5529  fi
5530
5531
5532am__api_version='1.16'
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5535$as_echo_n "checking whether build environment is sane... " >&6; }
5536# Reject unsafe characters in $srcdir or the absolute working directory
5537# name.  Accept space and tab only in the latter.
5538am_lf='
5539'
5540case `pwd` in
5541  *[\\\"\#\$\&\'\`$am_lf]*)
5542    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5543esac
5544case $srcdir in
5545  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5546    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5547esac
5548
5549# Do 'set' in a subshell so we don't clobber the current shell's
5550# arguments.  Must try -L first in case configure is actually a
5551# symlink; some systems play weird games with the mod time of symlinks
5552# (eg FreeBSD returns the mod time of the symlink's containing
5553# directory).
5554if (
5555   am_has_slept=no
5556   for am_try in 1 2; do
5557     echo "timestamp, slept: $am_has_slept" > conftest.file
5558     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5559     if test "$*" = "X"; then
5560	# -L didn't work.
5561	set X `ls -t "$srcdir/configure" conftest.file`
5562     fi
5563     if test "$*" != "X $srcdir/configure conftest.file" \
5564	&& test "$*" != "X conftest.file $srcdir/configure"; then
5565
5566	# If neither matched, then we have a broken ls.  This can happen
5567	# if, for instance, CONFIG_SHELL is bash and it inherits a
5568	# broken ls alias from the environment.  This has actually
5569	# happened.  Such a system could not be considered "sane".
5570	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5571  alias in your environment" "$LINENO" 5
5572     fi
5573     if test "$2" = conftest.file || test $am_try -eq 2; then
5574       break
5575     fi
5576     # Just in case.
5577     sleep 1
5578     am_has_slept=yes
5579   done
5580   test "$2" = conftest.file
5581   )
5582then
5583   # Ok.
5584   :
5585else
5586   as_fn_error $? "newly created file is older than distributed files!
5587Check your system clock" "$LINENO" 5
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5590$as_echo "yes" >&6; }
5591# If we didn't sleep, we still need to ensure time stamps of config.status and
5592# generated files are strictly newer.
5593am_sleep_pid=
5594if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5595  ( sleep 1 ) &
5596  am_sleep_pid=$!
5597fi
5598
5599rm -f conftest.file
5600
5601test "$program_prefix" != NONE &&
5602  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5603# Use a double $ so make ignores it.
5604test "$program_suffix" != NONE &&
5605  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5606# Double any \ or $.
5607# By default was `s,x,x', remove it if useless.
5608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5610
5611if test x"${MISSING+set}" != xset; then
5612  case $am_aux_dir in
5613  *\ * | *\	*)
5614    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5615  *)
5616    MISSING="\${SHELL} $am_aux_dir/missing" ;;
5617  esac
5618fi
5619# Use eval to expand $SHELL
5620if eval "$MISSING --is-lightweight"; then
5621  am_missing_run="$MISSING "
5622else
5623  am_missing_run=
5624  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5625$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5626fi
5627
5628if test x"${install_sh+set}" != xset; then
5629  case $am_aux_dir in
5630  *\ * | *\	*)
5631    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5632  *)
5633    install_sh="\${SHELL} $am_aux_dir/install-sh"
5634  esac
5635fi
5636
5637# Installed binaries are usually stripped using 'strip' when the user
5638# run "make install-strip".  However 'strip' might not be the right
5639# tool to use in cross-compilation environments, therefore Automake
5640# will honor the 'STRIP' environment variable to overrule this program.
5641if test "$cross_compiling" != no; then
5642  if test -n "$ac_tool_prefix"; then
5643  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}strip; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_prog_STRIP+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  if test -n "$STRIP"; then
5651  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670STRIP=$ac_cv_prog_STRIP
5671if test -n "$STRIP"; then
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5673$as_echo "$STRIP" >&6; }
5674else
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679
5680fi
5681if test -z "$ac_cv_prog_STRIP"; then
5682  ac_ct_STRIP=$STRIP
5683  # Extract the first word of "strip", so it can be a program name with args.
5684set dummy strip; ac_word=$2
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686$as_echo_n "checking for $ac_word... " >&6; }
5687if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  if test -n "$ac_ct_STRIP"; then
5691  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698    for ac_exec_ext in '' $ac_executable_extensions; do
5699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700    ac_cv_prog_ac_ct_STRIP="strip"
5701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702    break 2
5703  fi
5704done
5705  done
5706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5711if test -n "$ac_ct_STRIP"; then
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5713$as_echo "$ac_ct_STRIP" >&6; }
5714else
5715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
5718
5719  if test "x$ac_ct_STRIP" = x; then
5720    STRIP=":"
5721  else
5722    case $cross_compiling:$ac_tool_warned in
5723yes:)
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
5728    STRIP=$ac_ct_STRIP
5729  fi
5730else
5731  STRIP="$ac_cv_prog_STRIP"
5732fi
5733
5734fi
5735INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5738$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5739if test -z "$MKDIR_P"; then
5740  if ${ac_cv_path_mkdir+:} false; then :
5741  $as_echo_n "(cached) " >&6
5742else
5743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5745do
5746  IFS=$as_save_IFS
5747  test -z "$as_dir" && as_dir=.
5748    for ac_prog in mkdir gmkdir; do
5749	 for ac_exec_ext in '' $ac_executable_extensions; do
5750	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5751	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5752	     'mkdir (GNU coreutils) '* | \
5753	     'mkdir (coreutils) '* | \
5754	     'mkdir (fileutils) '4.1*)
5755	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5756	       break 3;;
5757	   esac
5758	 done
5759       done
5760  done
5761IFS=$as_save_IFS
5762
5763fi
5764
5765  test -d ./--version && rmdir ./--version
5766  if test "${ac_cv_path_mkdir+set}" = set; then
5767    MKDIR_P="$ac_cv_path_mkdir -p"
5768  else
5769    # As a last resort, use the slow shell script.  Don't cache a
5770    # value for MKDIR_P within a source directory, because that will
5771    # break other packages using the cache if that directory is
5772    # removed, or if the value is a relative name.
5773    MKDIR_P="$ac_install_sh -d"
5774  fi
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5777$as_echo "$MKDIR_P" >&6; }
5778
5779for ac_prog in gawk mawk nawk awk
5780do
5781  # Extract the first word of "$ac_prog", so it can be a program name with args.
5782set dummy $ac_prog; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
5785if ${ac_cv_prog_AWK+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  if test -n "$AWK"; then
5789  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798    ac_cv_prog_AWK="$ac_prog"
5799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803  done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808AWK=$ac_cv_prog_AWK
5809if test -n "$AWK"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5811$as_echo "$AWK" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817
5818  test -n "$AWK" && break
5819done
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5822$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5823set x ${MAKE-make}
5824ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5825if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  cat >conftest.make <<\_ACEOF
5829SHELL = /bin/sh
5830all:
5831	@echo '@@@%%%=$(MAKE)=@@@%%%'
5832_ACEOF
5833# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5834case `${MAKE-make} -f conftest.make 2>/dev/null` in
5835  *@@@%%%=?*=@@@%%%*)
5836    eval ac_cv_prog_make_${ac_make}_set=yes;;
5837  *)
5838    eval ac_cv_prog_make_${ac_make}_set=no;;
5839esac
5840rm -f conftest.make
5841fi
5842if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844$as_echo "yes" >&6; }
5845  SET_MAKE=
5846else
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849  SET_MAKE="MAKE=${MAKE-make}"
5850fi
5851
5852rm -rf .tst 2>/dev/null
5853mkdir .tst 2>/dev/null
5854if test -d .tst; then
5855  am__leading_dot=.
5856else
5857  am__leading_dot=_
5858fi
5859rmdir .tst 2>/dev/null
5860
5861DEPDIR="${am__leading_dot}deps"
5862
5863ac_config_commands="$ac_config_commands depfiles"
5864
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5866$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5867cat > confinc.mk << 'END'
5868am__doit:
5869	@echo this is the am__doit target >confinc.out
5870.PHONY: am__doit
5871END
5872am__include="#"
5873am__quote=
5874# BSD make does it like this.
5875echo '.include "confinc.mk" # ignored' > confmf.BSD
5876# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5877echo 'include confinc.mk # ignored' > confmf.GNU
5878_am_result=no
5879for s in GNU BSD; do
5880  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5881   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }
5885  case $?:`cat confinc.out 2>/dev/null` in #(
5886  '0:this is the am__doit target') :
5887    case $s in #(
5888  BSD) :
5889    am__include='.include' am__quote='"' ;; #(
5890  *) :
5891    am__include='include' am__quote='' ;;
5892esac ;; #(
5893  *) :
5894     ;;
5895esac
5896  if test "$am__include" != "#"; then
5897    _am_result="yes ($s style)"
5898    break
5899  fi
5900done
5901rm -f confinc.* confmf.*
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5903$as_echo "${_am_result}" >&6; }
5904
5905# Check whether --enable-dependency-tracking was given.
5906if test "${enable_dependency_tracking+set}" = set; then :
5907  enableval=$enable_dependency_tracking;
5908fi
5909
5910if test "x$enable_dependency_tracking" != xno; then
5911  am_depcomp="$ac_aux_dir/depcomp"
5912  AMDEPBACKSLASH='\'
5913  am__nodep='_no'
5914fi
5915 if test "x$enable_dependency_tracking" != xno; then
5916  AMDEP_TRUE=
5917  AMDEP_FALSE='#'
5918else
5919  AMDEP_TRUE='#'
5920  AMDEP_FALSE=
5921fi
5922
5923
5924## --------------------------------------- ##
5925##  Start of automake initialization code  ##
5926## --------------------------------------- ##
5927
5928if test "`cd $srcdir && pwd`" != "`pwd`"; then
5929  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5930  # is not polluted with repeated "-I."
5931  am__isrc=' -I$(srcdir)'
5932  # test to see if srcdir already configured
5933  if test -f $srcdir/config.status; then
5934    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5935  fi
5936fi
5937
5938# test whether we have cygpath
5939if test -z "$CYGPATH_W"; then
5940  if (cygpath --version) >/dev/null 2>/dev/null; then
5941    CYGPATH_W='cygpath -w'
5942  else
5943    CYGPATH_W=echo
5944  fi
5945fi
5946
5947
5948# Define the identity of the package.
5949 PACKAGE='c-ares'
5950 VERSION='1.16.1'
5951
5952
5953cat >>confdefs.h <<_ACEOF
5954#define PACKAGE "$PACKAGE"
5955_ACEOF
5956
5957
5958cat >>confdefs.h <<_ACEOF
5959#define VERSION "$VERSION"
5960_ACEOF
5961
5962# Some tools Automake needs.
5963
5964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5965
5966
5967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5968
5969
5970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5971
5972
5973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5974
5975
5976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5977
5978# For better backward compatibility.  To be removed once Automake 1.9.x
5979# dies out for good.  For more background, see:
5980# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5981# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5982mkdir_p='$(MKDIR_P)'
5983
5984# We need awk for the "check" target (and possibly the TAP driver).  The
5985# system "awk" is bad on some platforms.
5986# Always define AMTAR for backward compatibility.  Yes, it's still used
5987# in the wild :-(  We should find a proper way to deprecate it ...
5988AMTAR='$${TAR-tar}'
5989
5990
5991# We'll loop over all known methods to create a tar archive until one works.
5992_am_tools='gnutar  pax cpio none'
5993
5994am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5995
5996
5997
5998
5999
6000depcc="$CC"   am_compiler_list=
6001
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6003$as_echo_n "checking dependency style of $depcc... " >&6; }
6004if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6008  # We make a subdir and do the tests there.  Otherwise we can end up
6009  # making bogus files that we don't know about and never remove.  For
6010  # instance it was reported that on HP-UX the gcc test will end up
6011  # making a dummy file named 'D' -- because '-MD' means "put the output
6012  # in D".
6013  rm -rf conftest.dir
6014  mkdir conftest.dir
6015  # Copy depcomp to subdir because otherwise we won't find it if we're
6016  # using a relative directory.
6017  cp "$am_depcomp" conftest.dir
6018  cd conftest.dir
6019  # We will build objects and dependencies in a subdirectory because
6020  # it helps to detect inapplicable dependency modes.  For instance
6021  # both Tru64's cc and ICC support -MD to output dependencies as a
6022  # side effect of compilation, but ICC will put the dependencies in
6023  # the current directory while Tru64 will put them in the object
6024  # directory.
6025  mkdir sub
6026
6027  am_cv_CC_dependencies_compiler_type=none
6028  if test "$am_compiler_list" = ""; then
6029     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6030  fi
6031  am__universal=false
6032  case " $depcc " in #(
6033     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6034     esac
6035
6036  for depmode in $am_compiler_list; do
6037    # Setup a source with many dependencies, because some compilers
6038    # like to wrap large dependency lists on column 80 (with \), and
6039    # we should not choose a depcomp mode which is confused by this.
6040    #
6041    # We need to recreate these files for each test, as the compiler may
6042    # overwrite some of them when testing with obscure command lines.
6043    # This happens at least with the AIX C compiler.
6044    : > sub/conftest.c
6045    for i in 1 2 3 4 5 6; do
6046      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6047      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6048      # Solaris 10 /bin/sh.
6049      echo '/* dummy */' > sub/conftst$i.h
6050    done
6051    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6052
6053    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6054    # mode.  It turns out that the SunPro C++ compiler does not properly
6055    # handle '-M -o', and we need to detect this.  Also, some Intel
6056    # versions had trouble with output in subdirs.
6057    am__obj=sub/conftest.${OBJEXT-o}
6058    am__minus_obj="-o $am__obj"
6059    case $depmode in
6060    gcc)
6061      # This depmode causes a compiler race in universal mode.
6062      test "$am__universal" = false || continue
6063      ;;
6064    nosideeffect)
6065      # After this tag, mechanisms are not by side-effect, so they'll
6066      # only be used when explicitly requested.
6067      if test "x$enable_dependency_tracking" = xyes; then
6068	continue
6069      else
6070	break
6071      fi
6072      ;;
6073    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6074      # This compiler won't grok '-c -o', but also, the minuso test has
6075      # not run yet.  These depmodes are late enough in the game, and
6076      # so weak that their functioning should not be impacted.
6077      am__obj=conftest.${OBJEXT-o}
6078      am__minus_obj=
6079      ;;
6080    none) break ;;
6081    esac
6082    if depmode=$depmode \
6083       source=sub/conftest.c object=$am__obj \
6084       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6085       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6086         >/dev/null 2>conftest.err &&
6087       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6088       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6089       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6090       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6091      # icc doesn't choke on unknown options, it will just issue warnings
6092      # or remarks (even with -Werror).  So we grep stderr for any message
6093      # that says an option was ignored or not supported.
6094      # When given -MP, icc 7.0 and 7.1 complain thusly:
6095      #   icc: Command line warning: ignoring option '-M'; no argument required
6096      # The diagnosis changed in icc 8.0:
6097      #   icc: Command line remark: option '-MP' not supported
6098      if (grep 'ignoring option' conftest.err ||
6099          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6100        am_cv_CC_dependencies_compiler_type=$depmode
6101        break
6102      fi
6103    fi
6104  done
6105
6106  cd ..
6107  rm -rf conftest.dir
6108else
6109  am_cv_CC_dependencies_compiler_type=none
6110fi
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6116
6117 if
6118  test "x$enable_dependency_tracking" != xno \
6119  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6120  am__fastdepCC_TRUE=
6121  am__fastdepCC_FALSE='#'
6122else
6123  am__fastdepCC_TRUE='#'
6124  am__fastdepCC_FALSE=
6125fi
6126
6127
6128depcc="$CXX"  am_compiler_list=
6129
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6131$as_echo_n "checking dependency style of $depcc... " >&6; }
6132if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6136  # We make a subdir and do the tests there.  Otherwise we can end up
6137  # making bogus files that we don't know about and never remove.  For
6138  # instance it was reported that on HP-UX the gcc test will end up
6139  # making a dummy file named 'D' -- because '-MD' means "put the output
6140  # in D".
6141  rm -rf conftest.dir
6142  mkdir conftest.dir
6143  # Copy depcomp to subdir because otherwise we won't find it if we're
6144  # using a relative directory.
6145  cp "$am_depcomp" conftest.dir
6146  cd conftest.dir
6147  # We will build objects and dependencies in a subdirectory because
6148  # it helps to detect inapplicable dependency modes.  For instance
6149  # both Tru64's cc and ICC support -MD to output dependencies as a
6150  # side effect of compilation, but ICC will put the dependencies in
6151  # the current directory while Tru64 will put them in the object
6152  # directory.
6153  mkdir sub
6154
6155  am_cv_CXX_dependencies_compiler_type=none
6156  if test "$am_compiler_list" = ""; then
6157     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6158  fi
6159  am__universal=false
6160  case " $depcc " in #(
6161     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6162     esac
6163
6164  for depmode in $am_compiler_list; do
6165    # Setup a source with many dependencies, because some compilers
6166    # like to wrap large dependency lists on column 80 (with \), and
6167    # we should not choose a depcomp mode which is confused by this.
6168    #
6169    # We need to recreate these files for each test, as the compiler may
6170    # overwrite some of them when testing with obscure command lines.
6171    # This happens at least with the AIX C compiler.
6172    : > sub/conftest.c
6173    for i in 1 2 3 4 5 6; do
6174      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6175      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6176      # Solaris 10 /bin/sh.
6177      echo '/* dummy */' > sub/conftst$i.h
6178    done
6179    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6180
6181    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6182    # mode.  It turns out that the SunPro C++ compiler does not properly
6183    # handle '-M -o', and we need to detect this.  Also, some Intel
6184    # versions had trouble with output in subdirs.
6185    am__obj=sub/conftest.${OBJEXT-o}
6186    am__minus_obj="-o $am__obj"
6187    case $depmode in
6188    gcc)
6189      # This depmode causes a compiler race in universal mode.
6190      test "$am__universal" = false || continue
6191      ;;
6192    nosideeffect)
6193      # After this tag, mechanisms are not by side-effect, so they'll
6194      # only be used when explicitly requested.
6195      if test "x$enable_dependency_tracking" = xyes; then
6196	continue
6197      else
6198	break
6199      fi
6200      ;;
6201    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6202      # This compiler won't grok '-c -o', but also, the minuso test has
6203      # not run yet.  These depmodes are late enough in the game, and
6204      # so weak that their functioning should not be impacted.
6205      am__obj=conftest.${OBJEXT-o}
6206      am__minus_obj=
6207      ;;
6208    none) break ;;
6209    esac
6210    if depmode=$depmode \
6211       source=sub/conftest.c object=$am__obj \
6212       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6213       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6214         >/dev/null 2>conftest.err &&
6215       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6216       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6217       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6218       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6219      # icc doesn't choke on unknown options, it will just issue warnings
6220      # or remarks (even with -Werror).  So we grep stderr for any message
6221      # that says an option was ignored or not supported.
6222      # When given -MP, icc 7.0 and 7.1 complain thusly:
6223      #   icc: Command line warning: ignoring option '-M'; no argument required
6224      # The diagnosis changed in icc 8.0:
6225      #   icc: Command line remark: option '-MP' not supported
6226      if (grep 'ignoring option' conftest.err ||
6227          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6228        am_cv_CXX_dependencies_compiler_type=$depmode
6229        break
6230      fi
6231    fi
6232  done
6233
6234  cd ..
6235  rm -rf conftest.dir
6236else
6237  am_cv_CXX_dependencies_compiler_type=none
6238fi
6239
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6242$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6243CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6244
6245 if
6246  test "x$enable_dependency_tracking" != xno \
6247  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6248  am__fastdepCXX_TRUE=
6249  am__fastdepCXX_FALSE='#'
6250else
6251  am__fastdepCXX_TRUE='#'
6252  am__fastdepCXX_FALSE=
6253fi
6254
6255
6256
6257# POSIX will say in a future version that running "rm -f" with no argument
6258# is OK; and we want to be able to make that assumption in our Makefile
6259# recipes.  So use an aggressive probe to check that the usage we want is
6260# actually supported "in the wild" to an acceptable degree.
6261# See automake bug#10828.
6262# To make any issue more visible, cause the running configure to be aborted
6263# by default if the 'rm' program in use doesn't match our expectations; the
6264# user can still override this though.
6265if rm -f && rm -fr && rm -rf; then : OK; else
6266  cat >&2 <<'END'
6267Oops!
6268
6269Your 'rm' program seems unable to run without file operands specified
6270on the command line, even when the '-f' option is present.  This is contrary
6271to the behaviour of most rm programs out there, and not conforming with
6272the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6273
6274Please tell bug-automake@gnu.org about your system, including the value
6275of your $PATH and any error possibly output before this message.  This
6276can help us improve future automake versions.
6277
6278END
6279  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6280    echo 'Configuration will proceed anyway, since you have set the' >&2
6281    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6282    echo >&2
6283  else
6284    cat >&2 <<'END'
6285Aborting the configuration process, to ensure you take notice of the issue.
6286
6287You can download and install GNU coreutils to get an 'rm' implementation
6288that behaves properly: <https://www.gnu.org/software/coreutils/>.
6289
6290If you want to complete the configuration process using your problematic
6291'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6292to "yes", and re-run configure.
6293
6294END
6295    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6296  fi
6297fi
6298
6299## ------------------------------------- ##
6300##  End of automake initialization code  ##
6301## ------------------------------------- ##
6302
6303
6304
6305
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6308$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6309if ${ac_cv_path_GREP+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  if test -z "$GREP"; then
6313  ac_path_GREP_found=false
6314  # Loop through the user's path and test for each of PROGNAME-LIST
6315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320    for ac_prog in grep ggrep; do
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6323      as_fn_executable_p "$ac_path_GREP" || continue
6324# Check for GNU ac_path_GREP and select it if it is found.
6325  # Check for GNU $ac_path_GREP
6326case `"$ac_path_GREP" --version 2>&1` in
6327*GNU*)
6328  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6329*)
6330  ac_count=0
6331  $as_echo_n 0123456789 >"conftest.in"
6332  while :
6333  do
6334    cat "conftest.in" "conftest.in" >"conftest.tmp"
6335    mv "conftest.tmp" "conftest.in"
6336    cp "conftest.in" "conftest.nl"
6337    $as_echo 'GREP' >> "conftest.nl"
6338    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6339    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6340    as_fn_arith $ac_count + 1 && ac_count=$as_val
6341    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6342      # Best one so far, save it but keep looking for a better one
6343      ac_cv_path_GREP="$ac_path_GREP"
6344      ac_path_GREP_max=$ac_count
6345    fi
6346    # 10*(2^10) chars as input seems more than enough
6347    test $ac_count -gt 10 && break
6348  done
6349  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6350esac
6351
6352      $ac_path_GREP_found && break 3
6353    done
6354  done
6355  done
6356IFS=$as_save_IFS
6357  if test -z "$ac_cv_path_GREP"; then
6358    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6359  fi
6360else
6361  ac_cv_path_GREP=$GREP
6362fi
6363
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6366$as_echo "$ac_cv_path_GREP" >&6; }
6367 GREP="$ac_cv_path_GREP"
6368
6369
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6371$as_echo_n "checking for egrep... " >&6; }
6372if ${ac_cv_path_EGREP+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6376   then ac_cv_path_EGREP="$GREP -E"
6377   else
6378     if test -z "$EGREP"; then
6379  ac_path_EGREP_found=false
6380  # Loop through the user's path and test for each of PROGNAME-LIST
6381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6383do
6384  IFS=$as_save_IFS
6385  test -z "$as_dir" && as_dir=.
6386    for ac_prog in egrep; do
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6389      as_fn_executable_p "$ac_path_EGREP" || continue
6390# Check for GNU ac_path_EGREP and select it if it is found.
6391  # Check for GNU $ac_path_EGREP
6392case `"$ac_path_EGREP" --version 2>&1` in
6393*GNU*)
6394  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6395*)
6396  ac_count=0
6397  $as_echo_n 0123456789 >"conftest.in"
6398  while :
6399  do
6400    cat "conftest.in" "conftest.in" >"conftest.tmp"
6401    mv "conftest.tmp" "conftest.in"
6402    cp "conftest.in" "conftest.nl"
6403    $as_echo 'EGREP' >> "conftest.nl"
6404    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6406    as_fn_arith $ac_count + 1 && ac_count=$as_val
6407    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6408      # Best one so far, save it but keep looking for a better one
6409      ac_cv_path_EGREP="$ac_path_EGREP"
6410      ac_path_EGREP_max=$ac_count
6411    fi
6412    # 10*(2^10) chars as input seems more than enough
6413    test $ac_count -gt 10 && break
6414  done
6415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6416esac
6417
6418      $ac_path_EGREP_found && break 3
6419    done
6420  done
6421  done
6422IFS=$as_save_IFS
6423  if test -z "$ac_cv_path_EGREP"; then
6424    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6425  fi
6426else
6427  ac_cv_path_EGREP=$EGREP
6428fi
6429
6430   fi
6431fi
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6433$as_echo "$ac_cv_path_EGREP" >&6; }
6434 EGREP="$ac_cv_path_EGREP"
6435
6436
6437
6438
6439      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6440$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443
6444#ifdef _AIX
6445   yes_this_is_aix
6446#endif
6447
6448_ACEOF
6449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6450  $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6451
6452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6453$as_echo "yes" >&6; }
6454    $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6455
6456
6457else
6458
6459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461
6462fi
6463rm -f conftest*
6464
6465
6466
6467
6468    #
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6470$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472/* end confdefs.h.  */
6473
6474
6475
6476int main (void)
6477{
6478
6479#ifdef _THREAD_SAFE
6480      int dummy=1;
6481#else
6482      force compilation error
6483#endif
6484
6485 ;
6486 return 0;
6487}
6488
6489_ACEOF
6490if ac_fn_c_try_compile "$LINENO"; then :
6491
6492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6493$as_echo "yes" >&6; }
6494    tmp_thread_safe_initially_defined="yes"
6495
6496else
6497
6498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500    tmp_thread_safe_initially_defined="no"
6501
6502fi
6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504  #
6505  if test "$tmp_thread_safe_initially_defined" = "no"; then
6506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6507$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6508
6509  case $host_os in
6510    aix[123].* | aix4.[012].*)
6511            tmp_need_thread_safe="no"
6512      ;;
6513    aix*)
6514            tmp_need_thread_safe="yes"
6515      ;;
6516    *)
6517      tmp_need_thread_safe="no"
6518      ;;
6519  esac
6520
6521    if test "$tmp_need_thread_safe" = "yes"; then
6522      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6523$as_echo "yes" >&6; }
6524    else
6525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527    fi
6528  fi
6529  #
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6531$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6532  if test "$tmp_thread_safe_initially_defined" = "yes" ||
6533    test "$tmp_need_thread_safe" = "yes"; then
6534
6535
6536$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6537
6538cat >>confdefs.h <<_EOF
6539#ifndef _THREAD_SAFE
6540#  define _THREAD_SAFE
6541#endif
6542_EOF
6543
6544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545$as_echo "yes" >&6; }
6546  else
6547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549  fi
6550  #
6551
6552
6553    #
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6555$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558
6559
6560
6561int main (void)
6562{
6563
6564#ifdef _REENTRANT
6565      int dummy=1;
6566#else
6567      force compilation error
6568#endif
6569
6570 ;
6571 return 0;
6572}
6573
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"; then :
6576
6577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6578$as_echo "yes" >&6; }
6579    tmp_reentrant_initially_defined="yes"
6580
6581else
6582
6583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585    tmp_reentrant_initially_defined="no"
6586
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589  #
6590  if test "$tmp_reentrant_initially_defined" = "no"; then
6591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6592$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6593
6594  case $host_os in
6595    solaris*)
6596      tmp_need_reentrant="yes"
6597      ;;
6598    *)
6599      tmp_need_reentrant="no"
6600      ;;
6601  esac
6602
6603    if test "$tmp_need_reentrant" = "no"; then
6604
6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607
6608
6609#include <errno.h>
6610
6611int main (void)
6612{
6613
6614      if(0 != errno)
6615        return 1;
6616
6617 ;
6618 return 0;
6619}
6620
6621_ACEOF
6622if ac_fn_c_try_compile "$LINENO"; then :
6623
6624    tmp_errno="yes"
6625
6626else
6627
6628    tmp_errno="no"
6629
6630fi
6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632  if test "$tmp_errno" = "yes"; then
6633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635
6636
6637#include <errno.h>
6638
6639int main (void)
6640{
6641
6642#ifdef errno
6643        int dummy=1;
6644#else
6645        force compilation error
6646#endif
6647
6648 ;
6649 return 0;
6650}
6651
6652_ACEOF
6653if ac_fn_c_try_compile "$LINENO"; then :
6654
6655      tmp_errno="errno_macro_defined"
6656
6657else
6658
6659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661
6662
6663#define _REENTRANT
6664#include <errno.h>
6665
6666int main (void)
6667{
6668
6669#ifdef errno
6670          int dummy=1;
6671#else
6672          force compilation error
6673#endif
6674
6675 ;
6676 return 0;
6677}
6678
6679_ACEOF
6680if ac_fn_c_try_compile "$LINENO"; then :
6681
6682        tmp_errno="errno_macro_needs_reentrant"
6683        tmp_need_reentrant="yes"
6684
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690  fi
6691
6692    fi
6693    if test "$tmp_need_reentrant" = "no"; then
6694
6695  if test "$tmp_need_reentrant" = "no"; then
6696
6697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698/* end confdefs.h.  */
6699
6700
6701#define gmtime_r innocuous_gmtime_r
6702#ifdef __STDC__
6703# include <limits.h>
6704#else
6705# include <assert.h>
6706#endif
6707#undef gmtime_r
6708#ifdef __cplusplus
6709extern "C"
6710#endif
6711char gmtime_r ();
6712#if defined __stub_gmtime_r || defined __stub___gmtime_r
6713choke me
6714#endif
6715
6716int main (void)
6717{
6718return gmtime_r ();
6719 ;
6720 return 0;
6721}
6722
6723_ACEOF
6724if ac_fn_c_try_link "$LINENO"; then :
6725
6726    tmp_gmtime_r="yes"
6727
6728else
6729
6730    tmp_gmtime_r="no"
6731
6732fi
6733rm -f core conftest.err conftest.$ac_objext \
6734    conftest$ac_exeext conftest.$ac_ext
6735  if test "$tmp_gmtime_r" = "yes"; then
6736    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h.  */
6738
6739#include <sys/types.h>
6740#include <time.h>
6741
6742_ACEOF
6743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6745
6746      tmp_gmtime_r="proto_declared"
6747
6748else
6749
6750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752
6753#define _REENTRANT
6754#include <sys/types.h>
6755#include <time.h>
6756
6757_ACEOF
6758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6759  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6760
6761        tmp_gmtime_r="proto_needs_reentrant"
6762        tmp_need_reentrant="yes"
6763
6764fi
6765rm -f conftest*
6766
6767
6768fi
6769rm -f conftest*
6770
6771  fi
6772
6773  fi
6774  if test "$tmp_need_reentrant" = "no"; then
6775
6776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h.  */
6778
6779
6780#define localtime_r innocuous_localtime_r
6781#ifdef __STDC__
6782# include <limits.h>
6783#else
6784# include <assert.h>
6785#endif
6786#undef localtime_r
6787#ifdef __cplusplus
6788extern "C"
6789#endif
6790char localtime_r ();
6791#if defined __stub_localtime_r || defined __stub___localtime_r
6792choke me
6793#endif
6794
6795int main (void)
6796{
6797return localtime_r ();
6798 ;
6799 return 0;
6800}
6801
6802_ACEOF
6803if ac_fn_c_try_link "$LINENO"; then :
6804
6805    tmp_localtime_r="yes"
6806
6807else
6808
6809    tmp_localtime_r="no"
6810
6811fi
6812rm -f core conftest.err conftest.$ac_objext \
6813    conftest$ac_exeext conftest.$ac_ext
6814  if test "$tmp_localtime_r" = "yes"; then
6815    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h.  */
6817
6818#include <sys/types.h>
6819#include <time.h>
6820
6821_ACEOF
6822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823  $EGREP "localtime_r" >/dev/null 2>&1; then :
6824
6825      tmp_localtime_r="proto_declared"
6826
6827else
6828
6829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831
6832#define _REENTRANT
6833#include <sys/types.h>
6834#include <time.h>
6835
6836_ACEOF
6837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838  $EGREP "localtime_r" >/dev/null 2>&1; then :
6839
6840        tmp_localtime_r="proto_needs_reentrant"
6841        tmp_need_reentrant="yes"
6842
6843fi
6844rm -f conftest*
6845
6846
6847fi
6848rm -f conftest*
6849
6850  fi
6851
6852  fi
6853  if test "$tmp_need_reentrant" = "no"; then
6854
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857
6858
6859#define strerror_r innocuous_strerror_r
6860#ifdef __STDC__
6861# include <limits.h>
6862#else
6863# include <assert.h>
6864#endif
6865#undef strerror_r
6866#ifdef __cplusplus
6867extern "C"
6868#endif
6869char strerror_r ();
6870#if defined __stub_strerror_r || defined __stub___strerror_r
6871choke me
6872#endif
6873
6874int main (void)
6875{
6876return strerror_r ();
6877 ;
6878 return 0;
6879}
6880
6881_ACEOF
6882if ac_fn_c_try_link "$LINENO"; then :
6883
6884    tmp_strerror_r="yes"
6885
6886else
6887
6888    tmp_strerror_r="no"
6889
6890fi
6891rm -f core conftest.err conftest.$ac_objext \
6892    conftest$ac_exeext conftest.$ac_ext
6893  if test "$tmp_strerror_r" = "yes"; then
6894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h.  */
6896
6897#include <sys/types.h>
6898#include <string.h>
6899
6900_ACEOF
6901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902  $EGREP "strerror_r" >/dev/null 2>&1; then :
6903
6904      tmp_strerror_r="proto_declared"
6905
6906else
6907
6908      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h.  */
6910
6911#define _REENTRANT
6912#include <sys/types.h>
6913#include <string.h>
6914
6915_ACEOF
6916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917  $EGREP "strerror_r" >/dev/null 2>&1; then :
6918
6919        tmp_strerror_r="proto_needs_reentrant"
6920        tmp_need_reentrant="yes"
6921
6922fi
6923rm -f conftest*
6924
6925
6926fi
6927rm -f conftest*
6928
6929  fi
6930
6931  fi
6932  if test "$tmp_need_reentrant" = "no"; then
6933
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936
6937
6938#define strtok_r innocuous_strtok_r
6939#ifdef __STDC__
6940# include <limits.h>
6941#else
6942# include <assert.h>
6943#endif
6944#undef strtok_r
6945#ifdef __cplusplus
6946extern "C"
6947#endif
6948char strtok_r ();
6949#if defined __stub_strtok_r || defined __stub___strtok_r
6950choke me
6951#endif
6952
6953int main (void)
6954{
6955return strtok_r ();
6956 ;
6957 return 0;
6958}
6959
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962
6963    tmp_strtok_r="yes"
6964
6965else
6966
6967    tmp_strtok_r="no"
6968
6969fi
6970rm -f core conftest.err conftest.$ac_objext \
6971    conftest$ac_exeext conftest.$ac_ext
6972  if test "$tmp_strtok_r" = "yes"; then
6973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975
6976#include <sys/types.h>
6977#include <string.h>
6978
6979_ACEOF
6980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6981  $EGREP "strtok_r" >/dev/null 2>&1; then :
6982
6983      tmp_strtok_r="proto_declared"
6984
6985else
6986
6987      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989
6990#define _REENTRANT
6991#include <sys/types.h>
6992#include <string.h>
6993
6994_ACEOF
6995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996  $EGREP "strtok_r" >/dev/null 2>&1; then :
6997
6998        tmp_strtok_r="proto_needs_reentrant"
6999        tmp_need_reentrant="yes"
7000
7001fi
7002rm -f conftest*
7003
7004
7005fi
7006rm -f conftest*
7007
7008  fi
7009
7010  fi
7011  if test "$tmp_need_reentrant" = "no"; then
7012
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015
7016
7017#define inet_ntoa_r innocuous_inet_ntoa_r
7018#ifdef __STDC__
7019# include <limits.h>
7020#else
7021# include <assert.h>
7022#endif
7023#undef inet_ntoa_r
7024#ifdef __cplusplus
7025extern "C"
7026#endif
7027char inet_ntoa_r ();
7028#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7029choke me
7030#endif
7031
7032int main (void)
7033{
7034return inet_ntoa_r ();
7035 ;
7036 return 0;
7037}
7038
7039_ACEOF
7040if ac_fn_c_try_link "$LINENO"; then :
7041
7042    tmp_inet_ntoa_r="yes"
7043
7044else
7045
7046    tmp_inet_ntoa_r="no"
7047
7048fi
7049rm -f core conftest.err conftest.$ac_objext \
7050    conftest$ac_exeext conftest.$ac_ext
7051  if test "$tmp_inet_ntoa_r" = "yes"; then
7052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054
7055#include <sys/types.h>
7056#include <sys/socket.h>
7057#include <netinet/in.h>
7058#include <arpa/inet.h>
7059
7060_ACEOF
7061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7063
7064      tmp_inet_ntoa_r="proto_declared"
7065
7066else
7067
7068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070
7071#define _REENTRANT
7072#include <sys/types.h>
7073#include <sys/socket.h>
7074#include <netinet/in.h>
7075#include <arpa/inet.h>
7076
7077_ACEOF
7078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7079  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7080
7081        tmp_inet_ntoa_r="proto_needs_reentrant"
7082        tmp_need_reentrant="yes"
7083
7084fi
7085rm -f conftest*
7086
7087
7088fi
7089rm -f conftest*
7090
7091  fi
7092
7093  fi
7094  if test "$tmp_need_reentrant" = "no"; then
7095
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098
7099
7100#define gethostbyaddr_r innocuous_gethostbyaddr_r
7101#ifdef __STDC__
7102# include <limits.h>
7103#else
7104# include <assert.h>
7105#endif
7106#undef gethostbyaddr_r
7107#ifdef __cplusplus
7108extern "C"
7109#endif
7110char gethostbyaddr_r ();
7111#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7112choke me
7113#endif
7114
7115int main (void)
7116{
7117return gethostbyaddr_r ();
7118 ;
7119 return 0;
7120}
7121
7122_ACEOF
7123if ac_fn_c_try_link "$LINENO"; then :
7124
7125    tmp_gethostbyaddr_r="yes"
7126
7127else
7128
7129    tmp_gethostbyaddr_r="no"
7130
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134  if test "$tmp_gethostbyaddr_r" = "yes"; then
7135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137
7138#include <sys/types.h>
7139#include <netdb.h>
7140
7141_ACEOF
7142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7143  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7144
7145      tmp_gethostbyaddr_r="proto_declared"
7146
7147else
7148
7149      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h.  */
7151
7152#define _REENTRANT
7153#include <sys/types.h>
7154#include <netdb.h>
7155
7156_ACEOF
7157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7159
7160        tmp_gethostbyaddr_r="proto_needs_reentrant"
7161        tmp_need_reentrant="yes"
7162
7163fi
7164rm -f conftest*
7165
7166
7167fi
7168rm -f conftest*
7169
7170  fi
7171
7172  fi
7173  if test "$tmp_need_reentrant" = "no"; then
7174
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177
7178
7179#define gethostbyname_r innocuous_gethostbyname_r
7180#ifdef __STDC__
7181# include <limits.h>
7182#else
7183# include <assert.h>
7184#endif
7185#undef gethostbyname_r
7186#ifdef __cplusplus
7187extern "C"
7188#endif
7189char gethostbyname_r ();
7190#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7191choke me
7192#endif
7193
7194int main (void)
7195{
7196return gethostbyname_r ();
7197 ;
7198 return 0;
7199}
7200
7201_ACEOF
7202if ac_fn_c_try_link "$LINENO"; then :
7203
7204    tmp_gethostbyname_r="yes"
7205
7206else
7207
7208    tmp_gethostbyname_r="no"
7209
7210fi
7211rm -f core conftest.err conftest.$ac_objext \
7212    conftest$ac_exeext conftest.$ac_ext
7213  if test "$tmp_gethostbyname_r" = "yes"; then
7214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216
7217#include <sys/types.h>
7218#include <netdb.h>
7219
7220_ACEOF
7221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7223
7224      tmp_gethostbyname_r="proto_declared"
7225
7226else
7227
7228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h.  */
7230
7231#define _REENTRANT
7232#include <sys/types.h>
7233#include <netdb.h>
7234
7235_ACEOF
7236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7237  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7238
7239        tmp_gethostbyname_r="proto_needs_reentrant"
7240        tmp_need_reentrant="yes"
7241
7242fi
7243rm -f conftest*
7244
7245
7246fi
7247rm -f conftest*
7248
7249  fi
7250
7251  fi
7252  if test "$tmp_need_reentrant" = "no"; then
7253
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256
7257
7258#define getprotobyname_r innocuous_getprotobyname_r
7259#ifdef __STDC__
7260# include <limits.h>
7261#else
7262# include <assert.h>
7263#endif
7264#undef getprotobyname_r
7265#ifdef __cplusplus
7266extern "C"
7267#endif
7268char getprotobyname_r ();
7269#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7270choke me
7271#endif
7272
7273int main (void)
7274{
7275return getprotobyname_r ();
7276 ;
7277 return 0;
7278}
7279
7280_ACEOF
7281if ac_fn_c_try_link "$LINENO"; then :
7282
7283    tmp_getprotobyname_r="yes"
7284
7285else
7286
7287    tmp_getprotobyname_r="no"
7288
7289fi
7290rm -f core conftest.err conftest.$ac_objext \
7291    conftest$ac_exeext conftest.$ac_ext
7292  if test "$tmp_getprotobyname_r" = "yes"; then
7293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295
7296#include <sys/types.h>
7297#include <netdb.h>
7298
7299_ACEOF
7300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7302
7303      tmp_getprotobyname_r="proto_declared"
7304
7305else
7306
7307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309
7310#define _REENTRANT
7311#include <sys/types.h>
7312#include <netdb.h>
7313
7314_ACEOF
7315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7317
7318        tmp_getprotobyname_r="proto_needs_reentrant"
7319        tmp_need_reentrant="yes"
7320
7321fi
7322rm -f conftest*
7323
7324
7325fi
7326rm -f conftest*
7327
7328  fi
7329
7330  fi
7331  if test "$tmp_need_reentrant" = "no"; then
7332
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335
7336
7337#define getservbyport_r innocuous_getservbyport_r
7338#ifdef __STDC__
7339# include <limits.h>
7340#else
7341# include <assert.h>
7342#endif
7343#undef getservbyport_r
7344#ifdef __cplusplus
7345extern "C"
7346#endif
7347char getservbyport_r ();
7348#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7349choke me
7350#endif
7351
7352int main (void)
7353{
7354return getservbyport_r ();
7355 ;
7356 return 0;
7357}
7358
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"; then :
7361
7362    tmp_getservbyport_r="yes"
7363
7364else
7365
7366    tmp_getservbyport_r="no"
7367
7368fi
7369rm -f core conftest.err conftest.$ac_objext \
7370    conftest$ac_exeext conftest.$ac_ext
7371  if test "$tmp_getservbyport_r" = "yes"; then
7372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h.  */
7374
7375#include <sys/types.h>
7376#include <netdb.h>
7377
7378_ACEOF
7379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7380  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7381
7382      tmp_getservbyport_r="proto_declared"
7383
7384else
7385
7386      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388
7389#define _REENTRANT
7390#include <sys/types.h>
7391#include <netdb.h>
7392
7393_ACEOF
7394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7396
7397        tmp_getservbyport_r="proto_needs_reentrant"
7398        tmp_need_reentrant="yes"
7399
7400fi
7401rm -f conftest*
7402
7403
7404fi
7405rm -f conftest*
7406
7407  fi
7408
7409  fi
7410
7411    fi
7412    if test "$tmp_need_reentrant" = "yes"; then
7413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414$as_echo "yes" >&6; }
7415    else
7416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418    fi
7419  fi
7420  #
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7422$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7423  if test "$tmp_reentrant_initially_defined" = "yes" ||
7424    test "$tmp_need_reentrant" = "yes"; then
7425
7426
7427$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7428
7429cat >>confdefs.h <<_EOF
7430#ifndef _REENTRANT
7431#  define _REENTRANT
7432#endif
7433_EOF
7434
7435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436$as_echo "yes" >&6; }
7437  else
7438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7440  fi
7441  #
7442
7443
7444# Check whether --enable-largefile was given.
7445if test "${enable_largefile+set}" = set; then :
7446  enableval=$enable_largefile;
7447fi
7448
7449if test "$enable_largefile" != no; then
7450
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7452$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7453if ${ac_cv_sys_largefile_CC+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  ac_cv_sys_largefile_CC=no
7457     if test "$GCC" != yes; then
7458       ac_save_CC=$CC
7459       while :; do
7460	 # IRIX 6.2 and later do not support large files by default,
7461	 # so use the C compiler's -n32 option if that helps.
7462	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464#include <sys/types.h>
7465 /* Check that off_t can represent 2**63 - 1 correctly.
7466    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7467    since some C++ compilers masquerading as C compilers
7468    incorrectly reject 9223372036854775807.  */
7469#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7470  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7471		       && LARGE_OFF_T % 2147483647 == 1)
7472		      ? 1 : -1];
7473int main (void)
7474{
7475
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480	 if ac_fn_c_try_compile "$LINENO"; then :
7481  break
7482fi
7483rm -f core conftest.err conftest.$ac_objext
7484	 CC="$CC -n32"
7485	 if ac_fn_c_try_compile "$LINENO"; then :
7486  ac_cv_sys_largefile_CC=' -n32'; break
7487fi
7488rm -f core conftest.err conftest.$ac_objext
7489	 break
7490       done
7491       CC=$ac_save_CC
7492       rm -f conftest.$ac_ext
7493    fi
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7496$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7497  if test "$ac_cv_sys_largefile_CC" != no; then
7498    CC=$CC$ac_cv_sys_largefile_CC
7499  fi
7500
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7502$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7503if ${ac_cv_sys_file_offset_bits+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  while :; do
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509#include <sys/types.h>
7510 /* Check that off_t can represent 2**63 - 1 correctly.
7511    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7512    since some C++ compilers masquerading as C compilers
7513    incorrectly reject 9223372036854775807.  */
7514#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7515  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7516		       && LARGE_OFF_T % 2147483647 == 1)
7517		      ? 1 : -1];
7518int main (void)
7519{
7520
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525if ac_fn_c_try_compile "$LINENO"; then :
7526  ac_cv_sys_file_offset_bits=no; break
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531#define _FILE_OFFSET_BITS 64
7532#include <sys/types.h>
7533 /* Check that off_t can represent 2**63 - 1 correctly.
7534    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7535    since some C++ compilers masquerading as C compilers
7536    incorrectly reject 9223372036854775807.  */
7537#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7538  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7539		       && LARGE_OFF_T % 2147483647 == 1)
7540		      ? 1 : -1];
7541int main (void)
7542{
7543
7544 ;
7545 return 0;
7546}
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  ac_cv_sys_file_offset_bits=64; break
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552  ac_cv_sys_file_offset_bits=unknown
7553  break
7554done
7555fi
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7557$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7558case $ac_cv_sys_file_offset_bits in #(
7559  no | unknown) ;;
7560  *)
7561cat >>confdefs.h <<_ACEOF
7562#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7563_ACEOF
7564;;
7565esac
7566rm -rf conftest*
7567  if test $ac_cv_sys_file_offset_bits = unknown; then
7568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7569$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7570if ${ac_cv_sys_large_files+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  while :; do
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576#include <sys/types.h>
7577 /* Check that off_t can represent 2**63 - 1 correctly.
7578    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7579    since some C++ compilers masquerading as C compilers
7580    incorrectly reject 9223372036854775807.  */
7581#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7582  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7583		       && LARGE_OFF_T % 2147483647 == 1)
7584		      ? 1 : -1];
7585int main (void)
7586{
7587
7588 ;
7589 return 0;
7590}
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593  ac_cv_sys_large_files=no; break
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h.  */
7598#define _LARGE_FILES 1
7599#include <sys/types.h>
7600 /* Check that off_t can represent 2**63 - 1 correctly.
7601    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7602    since some C++ compilers masquerading as C compilers
7603    incorrectly reject 9223372036854775807.  */
7604#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7605  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7606		       && LARGE_OFF_T % 2147483647 == 1)
7607		      ? 1 : -1];
7608int main (void)
7609{
7610
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_compile "$LINENO"; then :
7616  ac_cv_sys_large_files=1; break
7617fi
7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619  ac_cv_sys_large_files=unknown
7620  break
7621done
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7624$as_echo "$ac_cv_sys_large_files" >&6; }
7625case $ac_cv_sys_large_files in #(
7626  no | unknown) ;;
7627  *)
7628cat >>confdefs.h <<_ACEOF
7629#define _LARGE_FILES $ac_cv_sys_large_files
7630_ACEOF
7631;;
7632esac
7633rm -rf conftest*
7634  fi
7635
7636
7637fi
7638
7639
7640case $host_os in
7641  solaris*)
7642
7643$as_echo "#define ETC_INET 1" >>confdefs.h
7644
7645    ;;
7646esac
7647
7648case `pwd` in
7649  *\ * | *\	*)
7650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7651$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7652esac
7653
7654
7655
7656macro_version='2.4.6'
7657macro_revision='2.4.6'
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671ltmain=$ac_aux_dir/ltmain.sh
7672
7673# Backslashify metacharacters that are still active within
7674# double-quoted strings.
7675sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7676
7677# Same as above, but do not quote variable references.
7678double_quote_subst='s/\(["`\\]\)/\\\1/g'
7679
7680# Sed substitution to delay expansion of an escaped shell variable in a
7681# double_quote_subst'ed string.
7682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7683
7684# Sed substitution to delay expansion of an escaped single quote.
7685delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7686
7687# Sed substitution to avoid accidental globbing in evaled expressions
7688no_glob_subst='s/\*/\\\*/g'
7689
7690ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7695$as_echo_n "checking how to print strings... " >&6; }
7696# Test print first, because it will be a builtin if present.
7697if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7698   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7699  ECHO='print -r --'
7700elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7701  ECHO='printf %s\n'
7702else
7703  # Use this function as a fallback that always works.
7704  func_fallback_echo ()
7705  {
7706    eval 'cat <<_LTECHO_EOF
7707$1
7708_LTECHO_EOF'
7709  }
7710  ECHO='func_fallback_echo'
7711fi
7712
7713# func_echo_all arg...
7714# Invoke $ECHO with all args, space-separated.
7715func_echo_all ()
7716{
7717    $ECHO ""
7718}
7719
7720case $ECHO in
7721  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7722$as_echo "printf" >&6; } ;;
7723  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7724$as_echo "print -r" >&6; } ;;
7725  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7726$as_echo "cat" >&6; } ;;
7727esac
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7743$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7744if ${ac_cv_path_SED+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7748     for ac_i in 1 2 3 4 5 6 7; do
7749       ac_script="$ac_script$as_nl$ac_script"
7750     done
7751     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7752     { ac_script=; unset ac_script;}
7753     if test -z "$SED"; then
7754  ac_path_SED_found=false
7755  # Loop through the user's path and test for each of PROGNAME-LIST
7756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761    for ac_prog in sed gsed; do
7762    for ac_exec_ext in '' $ac_executable_extensions; do
7763      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7764      as_fn_executable_p "$ac_path_SED" || continue
7765# Check for GNU ac_path_SED and select it if it is found.
7766  # Check for GNU $ac_path_SED
7767case `"$ac_path_SED" --version 2>&1` in
7768*GNU*)
7769  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7770*)
7771  ac_count=0
7772  $as_echo_n 0123456789 >"conftest.in"
7773  while :
7774  do
7775    cat "conftest.in" "conftest.in" >"conftest.tmp"
7776    mv "conftest.tmp" "conftest.in"
7777    cp "conftest.in" "conftest.nl"
7778    $as_echo '' >> "conftest.nl"
7779    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7781    as_fn_arith $ac_count + 1 && ac_count=$as_val
7782    if test $ac_count -gt ${ac_path_SED_max-0}; then
7783      # Best one so far, save it but keep looking for a better one
7784      ac_cv_path_SED="$ac_path_SED"
7785      ac_path_SED_max=$ac_count
7786    fi
7787    # 10*(2^10) chars as input seems more than enough
7788    test $ac_count -gt 10 && break
7789  done
7790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7791esac
7792
7793      $ac_path_SED_found && break 3
7794    done
7795  done
7796  done
7797IFS=$as_save_IFS
7798  if test -z "$ac_cv_path_SED"; then
7799    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7800  fi
7801else
7802  ac_cv_path_SED=$SED
7803fi
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7807$as_echo "$ac_cv_path_SED" >&6; }
7808 SED="$ac_cv_path_SED"
7809  rm -f conftest.sed
7810
7811test -z "$SED" && SED=sed
7812Xsed="$SED -e 1s/^X//"
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7825$as_echo_n "checking for fgrep... " >&6; }
7826if ${ac_cv_path_FGREP+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7830   then ac_cv_path_FGREP="$GREP -F"
7831   else
7832     if test -z "$FGREP"; then
7833  ac_path_FGREP_found=false
7834  # Loop through the user's path and test for each of PROGNAME-LIST
7835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840    for ac_prog in fgrep; do
7841    for ac_exec_ext in '' $ac_executable_extensions; do
7842      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7843      as_fn_executable_p "$ac_path_FGREP" || continue
7844# Check for GNU ac_path_FGREP and select it if it is found.
7845  # Check for GNU $ac_path_FGREP
7846case `"$ac_path_FGREP" --version 2>&1` in
7847*GNU*)
7848  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7849*)
7850  ac_count=0
7851  $as_echo_n 0123456789 >"conftest.in"
7852  while :
7853  do
7854    cat "conftest.in" "conftest.in" >"conftest.tmp"
7855    mv "conftest.tmp" "conftest.in"
7856    cp "conftest.in" "conftest.nl"
7857    $as_echo 'FGREP' >> "conftest.nl"
7858    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7859    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7860    as_fn_arith $ac_count + 1 && ac_count=$as_val
7861    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7862      # Best one so far, save it but keep looking for a better one
7863      ac_cv_path_FGREP="$ac_path_FGREP"
7864      ac_path_FGREP_max=$ac_count
7865    fi
7866    # 10*(2^10) chars as input seems more than enough
7867    test $ac_count -gt 10 && break
7868  done
7869  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7870esac
7871
7872      $ac_path_FGREP_found && break 3
7873    done
7874  done
7875  done
7876IFS=$as_save_IFS
7877  if test -z "$ac_cv_path_FGREP"; then
7878    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7879  fi
7880else
7881  ac_cv_path_FGREP=$FGREP
7882fi
7883
7884   fi
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7887$as_echo "$ac_cv_path_FGREP" >&6; }
7888 FGREP="$ac_cv_path_FGREP"
7889
7890
7891test -z "$GREP" && GREP=grep
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911# Check whether --with-gnu-ld was given.
7912if test "${with_gnu_ld+set}" = set; then :
7913  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7914else
7915  with_gnu_ld=no
7916fi
7917
7918ac_prog=ld
7919if test yes = "$GCC"; then
7920  # Check if gcc -print-prog-name=ld gives a path.
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7922$as_echo_n "checking for ld used by $CC... " >&6; }
7923  case $host in
7924  *-*-mingw*)
7925    # gcc leaves a trailing carriage return, which upsets mingw
7926    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7927  *)
7928    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7929  esac
7930  case $ac_prog in
7931    # Accept absolute paths.
7932    [\\/]* | ?:[\\/]*)
7933      re_direlt='/[^/][^/]*/\.\./'
7934      # Canonicalize the pathname of ld
7935      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7936      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7937	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7938      done
7939      test -z "$LD" && LD=$ac_prog
7940      ;;
7941  "")
7942    # If it fails, then pretend we aren't using GCC.
7943    ac_prog=ld
7944    ;;
7945  *)
7946    # If it is relative, then search for the first ld in PATH.
7947    with_gnu_ld=unknown
7948    ;;
7949  esac
7950elif test yes = "$with_gnu_ld"; then
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7952$as_echo_n "checking for GNU ld... " >&6; }
7953else
7954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7955$as_echo_n "checking for non-GNU ld... " >&6; }
7956fi
7957if ${lt_cv_path_LD+:} false; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  if test -z "$LD"; then
7961  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7962  for ac_dir in $PATH; do
7963    IFS=$lt_save_ifs
7964    test -z "$ac_dir" && ac_dir=.
7965    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7966      lt_cv_path_LD=$ac_dir/$ac_prog
7967      # Check to see if the program is GNU ld.  I'd rather use --version,
7968      # but apparently some variants of GNU ld only accept -v.
7969      # Break only if it was the GNU/non-GNU ld that we prefer.
7970      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7971      *GNU* | *'with BFD'*)
7972	test no != "$with_gnu_ld" && break
7973	;;
7974      *)
7975	test yes != "$with_gnu_ld" && break
7976	;;
7977      esac
7978    fi
7979  done
7980  IFS=$lt_save_ifs
7981else
7982  lt_cv_path_LD=$LD # Let the user override the test with a path.
7983fi
7984fi
7985
7986LD=$lt_cv_path_LD
7987if test -n "$LD"; then
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7989$as_echo "$LD" >&6; }
7990else
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993fi
7994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7997if ${lt_cv_prog_gnu_ld+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8001case `$LD -v 2>&1 </dev/null` in
8002*GNU* | *'with BFD'*)
8003  lt_cv_prog_gnu_ld=yes
8004  ;;
8005*)
8006  lt_cv_prog_gnu_ld=no
8007  ;;
8008esac
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8011$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8012with_gnu_ld=$lt_cv_prog_gnu_ld
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8023$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8024if ${lt_cv_path_NM+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  if test -n "$NM"; then
8028  # Let the user override the test.
8029  lt_cv_path_NM=$NM
8030else
8031  lt_nm_to_check=${ac_tool_prefix}nm
8032  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8033    lt_nm_to_check="$lt_nm_to_check nm"
8034  fi
8035  for lt_tmp_nm in $lt_nm_to_check; do
8036    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8037    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8038      IFS=$lt_save_ifs
8039      test -z "$ac_dir" && ac_dir=.
8040      tmp_nm=$ac_dir/$lt_tmp_nm
8041      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8042	# Check to see if the nm accepts a BSD-compat flag.
8043	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8044	#   nm: unknown option "B" ignored
8045	# Tru64's nm complains that /dev/null is an invalid object file
8046	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8047	case $build_os in
8048	mingw*) lt_bad_file=conftest.nm/nofile ;;
8049	*) lt_bad_file=/dev/null ;;
8050	esac
8051	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8052	*$lt_bad_file* | *'Invalid file or object type'*)
8053	  lt_cv_path_NM="$tmp_nm -B"
8054	  break 2
8055	  ;;
8056	*)
8057	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8058	  */dev/null*)
8059	    lt_cv_path_NM="$tmp_nm -p"
8060	    break 2
8061	    ;;
8062	  *)
8063	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8064	    continue # so that we can try to find one that supports BSD flags
8065	    ;;
8066	  esac
8067	  ;;
8068	esac
8069      fi
8070    done
8071    IFS=$lt_save_ifs
8072  done
8073  : ${lt_cv_path_NM=no}
8074fi
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8077$as_echo "$lt_cv_path_NM" >&6; }
8078if test no != "$lt_cv_path_NM"; then
8079  NM=$lt_cv_path_NM
8080else
8081  # Didn't find any BSD compatible name lister, look for dumpbin.
8082  if test -n "$DUMPBIN"; then :
8083    # Let the user override the test.
8084  else
8085    if test -n "$ac_tool_prefix"; then
8086  for ac_prog in dumpbin "link -dump"
8087  do
8088    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if ${ac_cv_prog_DUMPBIN+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  if test -n "$DUMPBIN"; then
8096  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  test -z "$as_dir" && as_dir=.
8103    for ac_exec_ext in '' $ac_executable_extensions; do
8104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107    break 2
8108  fi
8109done
8110  done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115DUMPBIN=$ac_cv_prog_DUMPBIN
8116if test -n "$DUMPBIN"; then
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8118$as_echo "$DUMPBIN" >&6; }
8119else
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125    test -n "$DUMPBIN" && break
8126  done
8127fi
8128if test -z "$DUMPBIN"; then
8129  ac_ct_DUMPBIN=$DUMPBIN
8130  for ac_prog in dumpbin "link -dump"
8131do
8132  # Extract the first word of "$ac_prog", so it can be a program name with args.
8133set dummy $ac_prog; ac_word=$2
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135$as_echo_n "checking for $ac_word... " >&6; }
8136if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  if test -n "$ac_ct_DUMPBIN"; then
8140  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145  IFS=$as_save_IFS
8146  test -z "$as_dir" && as_dir=.
8147    for ac_exec_ext in '' $ac_executable_extensions; do
8148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151    break 2
8152  fi
8153done
8154  done
8155IFS=$as_save_IFS
8156
8157fi
8158fi
8159ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8160if test -n "$ac_ct_DUMPBIN"; then
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8162$as_echo "$ac_ct_DUMPBIN" >&6; }
8163else
8164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165$as_echo "no" >&6; }
8166fi
8167
8168
8169  test -n "$ac_ct_DUMPBIN" && break
8170done
8171
8172  if test "x$ac_ct_DUMPBIN" = x; then
8173    DUMPBIN=":"
8174  else
8175    case $cross_compiling:$ac_tool_warned in
8176yes:)
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179ac_tool_warned=yes ;;
8180esac
8181    DUMPBIN=$ac_ct_DUMPBIN
8182  fi
8183fi
8184
8185    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8186    *COFF*)
8187      DUMPBIN="$DUMPBIN -symbols -headers"
8188      ;;
8189    *)
8190      DUMPBIN=:
8191      ;;
8192    esac
8193  fi
8194
8195  if test : != "$DUMPBIN"; then
8196    NM=$DUMPBIN
8197  fi
8198fi
8199test -z "$NM" && NM=nm
8200
8201
8202
8203
8204
8205
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8207$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8208if ${lt_cv_nm_interface+:} false; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  lt_cv_nm_interface="BSD nm"
8212  echo "int some_variable = 0;" > conftest.$ac_ext
8213  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8214  (eval "$ac_compile" 2>conftest.err)
8215  cat conftest.err >&5
8216  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8217  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8218  cat conftest.err >&5
8219  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8220  cat conftest.out >&5
8221  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8222    lt_cv_nm_interface="MS dumpbin"
8223  fi
8224  rm -f conftest*
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8227$as_echo "$lt_cv_nm_interface" >&6; }
8228
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8230$as_echo_n "checking whether ln -s works... " >&6; }
8231LN_S=$as_ln_s
8232if test "$LN_S" = "ln -s"; then
8233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8234$as_echo "yes" >&6; }
8235else
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8237$as_echo "no, using $LN_S" >&6; }
8238fi
8239
8240# find the maximum length of command line arguments
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8242$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8243if ${lt_cv_sys_max_cmd_len+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246    i=0
8247  teststring=ABCD
8248
8249  case $build_os in
8250  msdosdjgpp*)
8251    # On DJGPP, this test can blow up pretty badly due to problems in libc
8252    # (any single argument exceeding 2000 bytes causes a buffer overrun
8253    # during glob expansion).  Even if it were fixed, the result of this
8254    # check would be larger than it should be.
8255    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8256    ;;
8257
8258  gnu*)
8259    # Under GNU Hurd, this test is not required because there is
8260    # no limit to the length of command line arguments.
8261    # Libtool will interpret -1 as no limit whatsoever
8262    lt_cv_sys_max_cmd_len=-1;
8263    ;;
8264
8265  cygwin* | mingw* | cegcc*)
8266    # On Win9x/ME, this test blows up -- it succeeds, but takes
8267    # about 5 minutes as the teststring grows exponentially.
8268    # Worse, since 9x/ME are not pre-emptively multitasking,
8269    # you end up with a "frozen" computer, even though with patience
8270    # the test eventually succeeds (with a max line length of 256k).
8271    # Instead, let's just punt: use the minimum linelength reported by
8272    # all of the supported platforms: 8192 (on NT/2K/XP).
8273    lt_cv_sys_max_cmd_len=8192;
8274    ;;
8275
8276  mint*)
8277    # On MiNT this can take a long time and run out of memory.
8278    lt_cv_sys_max_cmd_len=8192;
8279    ;;
8280
8281  amigaos*)
8282    # On AmigaOS with pdksh, this test takes hours, literally.
8283    # So we just punt and use a minimum line length of 8192.
8284    lt_cv_sys_max_cmd_len=8192;
8285    ;;
8286
8287  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8288    # This has been around since 386BSD, at least.  Likely further.
8289    if test -x /sbin/sysctl; then
8290      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8291    elif test -x /usr/sbin/sysctl; then
8292      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8293    else
8294      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8295    fi
8296    # And add a safety zone
8297    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8298    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8299    ;;
8300
8301  interix*)
8302    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8303    lt_cv_sys_max_cmd_len=196608
8304    ;;
8305
8306  os2*)
8307    # The test takes a long time on OS/2.
8308    lt_cv_sys_max_cmd_len=8192
8309    ;;
8310
8311  osf*)
8312    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8313    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8314    # nice to cause kernel panics so lets avoid the loop below.
8315    # First set a reasonable default.
8316    lt_cv_sys_max_cmd_len=16384
8317    #
8318    if test -x /sbin/sysconfig; then
8319      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8320        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8321      esac
8322    fi
8323    ;;
8324  sco3.2v5*)
8325    lt_cv_sys_max_cmd_len=102400
8326    ;;
8327  sysv5* | sco5v6* | sysv4.2uw2*)
8328    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8329    if test -n "$kargmax"; then
8330      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8331    else
8332      lt_cv_sys_max_cmd_len=32768
8333    fi
8334    ;;
8335  *)
8336    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8337    if test -n "$lt_cv_sys_max_cmd_len" && \
8338       test undefined != "$lt_cv_sys_max_cmd_len"; then
8339      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8340      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8341    else
8342      # Make teststring a little bigger before we do anything with it.
8343      # a 1K string should be a reasonable start.
8344      for i in 1 2 3 4 5 6 7 8; do
8345        teststring=$teststring$teststring
8346      done
8347      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8348      # If test is not a shell built-in, we'll probably end up computing a
8349      # maximum length that is only half of the actual maximum length, but
8350      # we can't tell.
8351      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8352	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8353	      test 17 != "$i" # 1/2 MB should be enough
8354      do
8355        i=`expr $i + 1`
8356        teststring=$teststring$teststring
8357      done
8358      # Only check the string length outside the loop.
8359      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8360      teststring=
8361      # Add a significant safety factor because C++ compilers can tack on
8362      # massive amounts of additional arguments before passing them to the
8363      # linker.  It appears as though 1/2 is a usable value.
8364      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8365    fi
8366    ;;
8367  esac
8368
8369fi
8370
8371if test -n "$lt_cv_sys_max_cmd_len"; then
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8373$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8374else
8375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8376$as_echo "none" >&6; }
8377fi
8378max_cmd_len=$lt_cv_sys_max_cmd_len
8379
8380
8381
8382
8383
8384
8385: ${CP="cp -f"}
8386: ${MV="mv -f"}
8387: ${RM="rm -f"}
8388
8389if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8390  lt_unset=unset
8391else
8392  lt_unset=false
8393fi
8394
8395
8396
8397
8398
8399# test EBCDIC or ASCII
8400case `echo X|tr X '\101'` in
8401 A) # ASCII based system
8402    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8403  lt_SP2NL='tr \040 \012'
8404  lt_NL2SP='tr \015\012 \040\040'
8405  ;;
8406 *) # EBCDIC based system
8407  lt_SP2NL='tr \100 \n'
8408  lt_NL2SP='tr \r\n \100\100'
8409  ;;
8410esac
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8421$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8422if ${lt_cv_to_host_file_cmd+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  case $host in
8426  *-*-mingw* )
8427    case $build in
8428      *-*-mingw* ) # actually msys
8429        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8430        ;;
8431      *-*-cygwin* )
8432        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8433        ;;
8434      * ) # otherwise, assume *nix
8435        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8436        ;;
8437    esac
8438    ;;
8439  *-*-cygwin* )
8440    case $build in
8441      *-*-mingw* ) # actually msys
8442        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8443        ;;
8444      *-*-cygwin* )
8445        lt_cv_to_host_file_cmd=func_convert_file_noop
8446        ;;
8447      * ) # otherwise, assume *nix
8448        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8449        ;;
8450    esac
8451    ;;
8452  * ) # unhandled hosts (and "normal" native builds)
8453    lt_cv_to_host_file_cmd=func_convert_file_noop
8454    ;;
8455esac
8456
8457fi
8458
8459to_host_file_cmd=$lt_cv_to_host_file_cmd
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8461$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8462
8463
8464
8465
8466
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8468$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8469if ${lt_cv_to_tool_file_cmd+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  #assume ordinary cross tools, or native build.
8473lt_cv_to_tool_file_cmd=func_convert_file_noop
8474case $host in
8475  *-*-mingw* )
8476    case $build in
8477      *-*-mingw* ) # actually msys
8478        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8479        ;;
8480    esac
8481    ;;
8482esac
8483
8484fi
8485
8486to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8488$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8489
8490
8491
8492
8493
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8495$as_echo_n "checking for $LD option to reload object files... " >&6; }
8496if ${lt_cv_ld_reload_flag+:} false; then :
8497  $as_echo_n "(cached) " >&6
8498else
8499  lt_cv_ld_reload_flag='-r'
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8502$as_echo "$lt_cv_ld_reload_flag" >&6; }
8503reload_flag=$lt_cv_ld_reload_flag
8504case $reload_flag in
8505"" | " "*) ;;
8506*) reload_flag=" $reload_flag" ;;
8507esac
8508reload_cmds='$LD$reload_flag -o $output$reload_objs'
8509case $host_os in
8510  cygwin* | mingw* | pw32* | cegcc*)
8511    if test yes != "$GCC"; then
8512      reload_cmds=false
8513    fi
8514    ;;
8515  darwin*)
8516    if test yes = "$GCC"; then
8517      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8518    else
8519      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8520    fi
8521    ;;
8522esac
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532if test -n "$ac_tool_prefix"; then
8533  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8534set dummy ${ac_tool_prefix}objdump; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_prog_OBJDUMP+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  if test -n "$OBJDUMP"; then
8541  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8542else
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546  IFS=$as_save_IFS
8547  test -z "$as_dir" && as_dir=.
8548    for ac_exec_ext in '' $ac_executable_extensions; do
8549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552    break 2
8553  fi
8554done
8555  done
8556IFS=$as_save_IFS
8557
8558fi
8559fi
8560OBJDUMP=$ac_cv_prog_OBJDUMP
8561if test -n "$OBJDUMP"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8563$as_echo "$OBJDUMP" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570fi
8571if test -z "$ac_cv_prog_OBJDUMP"; then
8572  ac_ct_OBJDUMP=$OBJDUMP
8573  # Extract the first word of "objdump", so it can be a program name with args.
8574set dummy objdump; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  if test -n "$ac_ct_OBJDUMP"; then
8581  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586  IFS=$as_save_IFS
8587  test -z "$as_dir" && as_dir=.
8588    for ac_exec_ext in '' $ac_executable_extensions; do
8589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592    break 2
8593  fi
8594done
8595  done
8596IFS=$as_save_IFS
8597
8598fi
8599fi
8600ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8601if test -n "$ac_ct_OBJDUMP"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8603$as_echo "$ac_ct_OBJDUMP" >&6; }
8604else
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609  if test "x$ac_ct_OBJDUMP" = x; then
8610    OBJDUMP="false"
8611  else
8612    case $cross_compiling:$ac_tool_warned in
8613yes:)
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616ac_tool_warned=yes ;;
8617esac
8618    OBJDUMP=$ac_ct_OBJDUMP
8619  fi
8620else
8621  OBJDUMP="$ac_cv_prog_OBJDUMP"
8622fi
8623
8624test -z "$OBJDUMP" && OBJDUMP=objdump
8625
8626
8627
8628
8629
8630
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8632$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8633if ${lt_cv_deplibs_check_method+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  lt_cv_file_magic_cmd='$MAGIC_CMD'
8637lt_cv_file_magic_test_file=
8638lt_cv_deplibs_check_method='unknown'
8639# Need to set the preceding variable on all platforms that support
8640# interlibrary dependencies.
8641# 'none' -- dependencies not supported.
8642# 'unknown' -- same as none, but documents that we really don't know.
8643# 'pass_all' -- all dependencies passed with no checks.
8644# 'test_compile' -- check by making test program.
8645# 'file_magic [[regex]]' -- check by looking for files in library path
8646# that responds to the $file_magic_cmd with a given extended regex.
8647# If you have 'file' or equivalent on your system and you're not sure
8648# whether 'pass_all' will *always* work, you probably want this one.
8649
8650case $host_os in
8651aix[4-9]*)
8652  lt_cv_deplibs_check_method=pass_all
8653  ;;
8654
8655beos*)
8656  lt_cv_deplibs_check_method=pass_all
8657  ;;
8658
8659bsdi[45]*)
8660  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8661  lt_cv_file_magic_cmd='/usr/bin/file -L'
8662  lt_cv_file_magic_test_file=/shlib/libc.so
8663  ;;
8664
8665cygwin*)
8666  # func_win32_libid is a shell function defined in ltmain.sh
8667  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8668  lt_cv_file_magic_cmd='func_win32_libid'
8669  ;;
8670
8671mingw* | pw32*)
8672  # Base MSYS/MinGW do not provide the 'file' command needed by
8673  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8674  # unless we find 'file', for example because we are cross-compiling.
8675  if ( file / ) >/dev/null 2>&1; then
8676    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8677    lt_cv_file_magic_cmd='func_win32_libid'
8678  else
8679    # Keep this pattern in sync with the one in func_win32_libid.
8680    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8681    lt_cv_file_magic_cmd='$OBJDUMP -f'
8682  fi
8683  ;;
8684
8685cegcc*)
8686  # use the weaker test based on 'objdump'. See mingw*.
8687  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8688  lt_cv_file_magic_cmd='$OBJDUMP -f'
8689  ;;
8690
8691darwin* | rhapsody*)
8692  lt_cv_deplibs_check_method=pass_all
8693  ;;
8694
8695freebsd* | dragonfly*)
8696  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8697    case $host_cpu in
8698    i*86 )
8699      # Not sure whether the presence of OpenBSD here was a mistake.
8700      # Let's accept both of them until this is cleared up.
8701      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8702      lt_cv_file_magic_cmd=/usr/bin/file
8703      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8704      ;;
8705    esac
8706  else
8707    lt_cv_deplibs_check_method=pass_all
8708  fi
8709  ;;
8710
8711haiku*)
8712  lt_cv_deplibs_check_method=pass_all
8713  ;;
8714
8715hpux10.20* | hpux11*)
8716  lt_cv_file_magic_cmd=/usr/bin/file
8717  case $host_cpu in
8718  ia64*)
8719    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8720    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8721    ;;
8722  hppa*64*)
8723    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]'
8724    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8725    ;;
8726  *)
8727    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8728    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8729    ;;
8730  esac
8731  ;;
8732
8733interix[3-9]*)
8734  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8735  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8736  ;;
8737
8738irix5* | irix6* | nonstopux*)
8739  case $LD in
8740  *-32|*"-32 ") libmagic=32-bit;;
8741  *-n32|*"-n32 ") libmagic=N32;;
8742  *-64|*"-64 ") libmagic=64-bit;;
8743  *) libmagic=never-match;;
8744  esac
8745  lt_cv_deplibs_check_method=pass_all
8746  ;;
8747
8748# This must be glibc/ELF.
8749linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8750  lt_cv_deplibs_check_method=pass_all
8751  ;;
8752
8753netbsd* | netbsdelf*-gnu)
8754  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8755    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8756  else
8757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8758  fi
8759  ;;
8760
8761newos6*)
8762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8763  lt_cv_file_magic_cmd=/usr/bin/file
8764  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8765  ;;
8766
8767*nto* | *qnx*)
8768  lt_cv_deplibs_check_method=pass_all
8769  ;;
8770
8771openbsd* | bitrig*)
8772  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8774  else
8775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8776  fi
8777  ;;
8778
8779osf3* | osf4* | osf5*)
8780  lt_cv_deplibs_check_method=pass_all
8781  ;;
8782
8783rdos*)
8784  lt_cv_deplibs_check_method=pass_all
8785  ;;
8786
8787solaris*)
8788  lt_cv_deplibs_check_method=pass_all
8789  ;;
8790
8791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8792  lt_cv_deplibs_check_method=pass_all
8793  ;;
8794
8795sysv4 | sysv4.3*)
8796  case $host_vendor in
8797  motorola)
8798    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]'
8799    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8800    ;;
8801  ncr)
8802    lt_cv_deplibs_check_method=pass_all
8803    ;;
8804  sequent)
8805    lt_cv_file_magic_cmd='/bin/file'
8806    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8807    ;;
8808  sni)
8809    lt_cv_file_magic_cmd='/bin/file'
8810    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8811    lt_cv_file_magic_test_file=/lib/libc.so
8812    ;;
8813  siemens)
8814    lt_cv_deplibs_check_method=pass_all
8815    ;;
8816  pc)
8817    lt_cv_deplibs_check_method=pass_all
8818    ;;
8819  esac
8820  ;;
8821
8822tpf*)
8823  lt_cv_deplibs_check_method=pass_all
8824  ;;
8825os2*)
8826  lt_cv_deplibs_check_method=pass_all
8827  ;;
8828esac
8829
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8832$as_echo "$lt_cv_deplibs_check_method" >&6; }
8833
8834file_magic_glob=
8835want_nocaseglob=no
8836if test "$build" = "$host"; then
8837  case $host_os in
8838  mingw* | pw32*)
8839    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8840      want_nocaseglob=yes
8841    else
8842      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8843    fi
8844    ;;
8845  esac
8846fi
8847
8848file_magic_cmd=$lt_cv_file_magic_cmd
8849deplibs_check_method=$lt_cv_deplibs_check_method
8850test -z "$deplibs_check_method" && deplibs_check_method=unknown
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873if test -n "$ac_tool_prefix"; then
8874  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8875set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if ${ac_cv_prog_DLLTOOL+:} false; then :
8879  $as_echo_n "(cached) " >&6
8880else
8881  if test -n "$DLLTOOL"; then
8882  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8883else
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887  IFS=$as_save_IFS
8888  test -z "$as_dir" && as_dir=.
8889    for ac_exec_ext in '' $ac_executable_extensions; do
8890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893    break 2
8894  fi
8895done
8896  done
8897IFS=$as_save_IFS
8898
8899fi
8900fi
8901DLLTOOL=$ac_cv_prog_DLLTOOL
8902if test -n "$DLLTOOL"; then
8903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8904$as_echo "$DLLTOOL" >&6; }
8905else
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
8909
8910
8911fi
8912if test -z "$ac_cv_prog_DLLTOOL"; then
8913  ac_ct_DLLTOOL=$DLLTOOL
8914  # Extract the first word of "dlltool", so it can be a program name with args.
8915set dummy dlltool; ac_word=$2
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917$as_echo_n "checking for $ac_word... " >&6; }
8918if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  if test -n "$ac_ct_DLLTOOL"; then
8922  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8923else
8924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925for as_dir in $PATH
8926do
8927  IFS=$as_save_IFS
8928  test -z "$as_dir" && as_dir=.
8929    for ac_exec_ext in '' $ac_executable_extensions; do
8930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933    break 2
8934  fi
8935done
8936  done
8937IFS=$as_save_IFS
8938
8939fi
8940fi
8941ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8942if test -n "$ac_ct_DLLTOOL"; then
8943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8944$as_echo "$ac_ct_DLLTOOL" >&6; }
8945else
8946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947$as_echo "no" >&6; }
8948fi
8949
8950  if test "x$ac_ct_DLLTOOL" = x; then
8951    DLLTOOL="false"
8952  else
8953    case $cross_compiling:$ac_tool_warned in
8954yes:)
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957ac_tool_warned=yes ;;
8958esac
8959    DLLTOOL=$ac_ct_DLLTOOL
8960  fi
8961else
8962  DLLTOOL="$ac_cv_prog_DLLTOOL"
8963fi
8964
8965test -z "$DLLTOOL" && DLLTOOL=dlltool
8966
8967
8968
8969
8970
8971
8972
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8974$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8975if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  lt_cv_sharedlib_from_linklib_cmd='unknown'
8979
8980case $host_os in
8981cygwin* | mingw* | pw32* | cegcc*)
8982  # two different shell functions defined in ltmain.sh;
8983  # decide which one to use based on capabilities of $DLLTOOL
8984  case `$DLLTOOL --help 2>&1` in
8985  *--identify-strict*)
8986    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8987    ;;
8988  *)
8989    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8990    ;;
8991  esac
8992  ;;
8993*)
8994  # fallback: assume linklib IS sharedlib
8995  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8996  ;;
8997esac
8998
8999fi
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9001$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9002sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9003test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9004
9005
9006
9007
9008
9009
9010
9011if test -n "$ac_tool_prefix"; then
9012  for ac_prog in ar
9013  do
9014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017$as_echo_n "checking for $ac_word... " >&6; }
9018if ${ac_cv_prog_AR+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  if test -n "$AR"; then
9022  ac_cv_prog_AR="$AR" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027  IFS=$as_save_IFS
9028  test -z "$as_dir" && as_dir=.
9029    for ac_exec_ext in '' $ac_executable_extensions; do
9030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033    break 2
9034  fi
9035done
9036  done
9037IFS=$as_save_IFS
9038
9039fi
9040fi
9041AR=$ac_cv_prog_AR
9042if test -n "$AR"; then
9043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9044$as_echo "$AR" >&6; }
9045else
9046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047$as_echo "no" >&6; }
9048fi
9049
9050
9051    test -n "$AR" && break
9052  done
9053fi
9054if test -z "$AR"; then
9055  ac_ct_AR=$AR
9056  for ac_prog in ar
9057do
9058  # Extract the first word of "$ac_prog", so it can be a program name with args.
9059set dummy $ac_prog; ac_word=$2
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061$as_echo_n "checking for $ac_word... " >&6; }
9062if ${ac_cv_prog_ac_ct_AR+:} false; then :
9063  $as_echo_n "(cached) " >&6
9064else
9065  if test -n "$ac_ct_AR"; then
9066  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9067else
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071  IFS=$as_save_IFS
9072  test -z "$as_dir" && as_dir=.
9073    for ac_exec_ext in '' $ac_executable_extensions; do
9074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075    ac_cv_prog_ac_ct_AR="$ac_prog"
9076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077    break 2
9078  fi
9079done
9080  done
9081IFS=$as_save_IFS
9082
9083fi
9084fi
9085ac_ct_AR=$ac_cv_prog_ac_ct_AR
9086if test -n "$ac_ct_AR"; then
9087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9088$as_echo "$ac_ct_AR" >&6; }
9089else
9090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
9092fi
9093
9094
9095  test -n "$ac_ct_AR" && break
9096done
9097
9098  if test "x$ac_ct_AR" = x; then
9099    AR="false"
9100  else
9101    case $cross_compiling:$ac_tool_warned in
9102yes:)
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9105ac_tool_warned=yes ;;
9106esac
9107    AR=$ac_ct_AR
9108  fi
9109fi
9110
9111: ${AR=ar}
9112: ${AR_FLAGS=cru}
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9125$as_echo_n "checking for archiver @FILE support... " >&6; }
9126if ${lt_cv_ar_at_file+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  lt_cv_ar_at_file=no
9130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132
9133int main (void)
9134{
9135
9136 ;
9137 return 0;
9138}
9139_ACEOF
9140if ac_fn_c_try_compile "$LINENO"; then :
9141  echo conftest.$ac_objext > conftest.lst
9142      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9143      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9144  (eval $lt_ar_try) 2>&5
9145  ac_status=$?
9146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9147  test $ac_status = 0; }
9148      if test 0 -eq "$ac_status"; then
9149	# Ensure the archiver fails upon bogus file names.
9150	rm -f conftest.$ac_objext libconftest.a
9151	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9152  (eval $lt_ar_try) 2>&5
9153  ac_status=$?
9154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155  test $ac_status = 0; }
9156	if test 0 -ne "$ac_status"; then
9157          lt_cv_ar_at_file=@
9158        fi
9159      fi
9160      rm -f conftest.* libconftest.a
9161
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9167$as_echo "$lt_cv_ar_at_file" >&6; }
9168
9169if test no = "$lt_cv_ar_at_file"; then
9170  archiver_list_spec=
9171else
9172  archiver_list_spec=$lt_cv_ar_at_file
9173fi
9174
9175
9176
9177
9178
9179
9180
9181if test -n "$ac_tool_prefix"; then
9182  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9183set dummy ${ac_tool_prefix}strip; ac_word=$2
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if ${ac_cv_prog_STRIP+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  if test -n "$STRIP"; then
9190  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195  IFS=$as_save_IFS
9196  test -z "$as_dir" && as_dir=.
9197    for ac_exec_ext in '' $ac_executable_extensions; do
9198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201    break 2
9202  fi
9203done
9204  done
9205IFS=$as_save_IFS
9206
9207fi
9208fi
9209STRIP=$ac_cv_prog_STRIP
9210if test -n "$STRIP"; then
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9212$as_echo "$STRIP" >&6; }
9213else
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_STRIP"; then
9221  ac_ct_STRIP=$STRIP
9222  # Extract the first word of "strip", so it can be a program name with args.
9223set dummy strip; ac_word=$2
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  if test -n "$ac_ct_STRIP"; then
9230  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9231else
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235  IFS=$as_save_IFS
9236  test -z "$as_dir" && as_dir=.
9237    for ac_exec_ext in '' $ac_executable_extensions; do
9238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9239    ac_cv_prog_ac_ct_STRIP="strip"
9240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241    break 2
9242  fi
9243done
9244  done
9245IFS=$as_save_IFS
9246
9247fi
9248fi
9249ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9250if test -n "$ac_ct_STRIP"; then
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9252$as_echo "$ac_ct_STRIP" >&6; }
9253else
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258  if test "x$ac_ct_STRIP" = x; then
9259    STRIP=":"
9260  else
9261    case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267    STRIP=$ac_ct_STRIP
9268  fi
9269else
9270  STRIP="$ac_cv_prog_STRIP"
9271fi
9272
9273test -z "$STRIP" && STRIP=:
9274
9275
9276
9277
9278
9279
9280if test -n "$ac_tool_prefix"; then
9281  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284$as_echo_n "checking for $ac_word... " >&6; }
9285if ${ac_cv_prog_RANLIB+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  if test -n "$RANLIB"; then
9289  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9290else
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294  IFS=$as_save_IFS
9295  test -z "$as_dir" && as_dir=.
9296    for ac_exec_ext in '' $ac_executable_extensions; do
9297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300    break 2
9301  fi
9302done
9303  done
9304IFS=$as_save_IFS
9305
9306fi
9307fi
9308RANLIB=$ac_cv_prog_RANLIB
9309if test -n "$RANLIB"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9311$as_echo "$RANLIB" >&6; }
9312else
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314$as_echo "no" >&6; }
9315fi
9316
9317
9318fi
9319if test -z "$ac_cv_prog_RANLIB"; then
9320  ac_ct_RANLIB=$RANLIB
9321  # Extract the first word of "ranlib", so it can be a program name with args.
9322set dummy ranlib; ac_word=$2
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
9325if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  if test -n "$ac_ct_RANLIB"; then
9329  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334  IFS=$as_save_IFS
9335  test -z "$as_dir" && as_dir=.
9336    for ac_exec_ext in '' $ac_executable_extensions; do
9337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338    ac_cv_prog_ac_ct_RANLIB="ranlib"
9339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340    break 2
9341  fi
9342done
9343  done
9344IFS=$as_save_IFS
9345
9346fi
9347fi
9348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9349if test -n "$ac_ct_RANLIB"; then
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9351$as_echo "$ac_ct_RANLIB" >&6; }
9352else
9353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9355fi
9356
9357  if test "x$ac_ct_RANLIB" = x; then
9358    RANLIB=":"
9359  else
9360    case $cross_compiling:$ac_tool_warned in
9361yes:)
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9364ac_tool_warned=yes ;;
9365esac
9366    RANLIB=$ac_ct_RANLIB
9367  fi
9368else
9369  RANLIB="$ac_cv_prog_RANLIB"
9370fi
9371
9372test -z "$RANLIB" && RANLIB=:
9373
9374
9375
9376
9377
9378
9379# Determine commands to create old-style static archives.
9380old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9381old_postinstall_cmds='chmod 644 $oldlib'
9382old_postuninstall_cmds=
9383
9384if test -n "$RANLIB"; then
9385  case $host_os in
9386  bitrig* | openbsd*)
9387    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9388    ;;
9389  *)
9390    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9391    ;;
9392  esac
9393  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9394fi
9395
9396case $host_os in
9397  darwin*)
9398    lock_old_archive_extraction=yes ;;
9399  *)
9400    lock_old_archive_extraction=no ;;
9401esac
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441# If no C compiler was specified, use CC.
9442LTCC=${LTCC-"$CC"}
9443
9444# If no C compiler flags were specified, use CFLAGS.
9445LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9446
9447# Allow CC to be a program name with arguments.
9448compiler=$CC
9449
9450
9451# Check for command to grab the raw symbol name followed by C symbol from nm.
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9453$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9454if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457
9458# These are sane defaults that work on at least a few old systems.
9459# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9460
9461# Character class describing NM global symbol codes.
9462symcode='[BCDEGRST]'
9463
9464# Regexp to match symbols that can be accessed directly from C.
9465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9466
9467# Define system-specific variables.
9468case $host_os in
9469aix*)
9470  symcode='[BCDT]'
9471  ;;
9472cygwin* | mingw* | pw32* | cegcc*)
9473  symcode='[ABCDGISTW]'
9474  ;;
9475hpux*)
9476  if test ia64 = "$host_cpu"; then
9477    symcode='[ABCDEGRST]'
9478  fi
9479  ;;
9480irix* | nonstopux*)
9481  symcode='[BCDEGRST]'
9482  ;;
9483osf*)
9484  symcode='[BCDEGQRST]'
9485  ;;
9486solaris*)
9487  symcode='[BDRT]'
9488  ;;
9489sco3.2v5*)
9490  symcode='[DT]'
9491  ;;
9492sysv4.2uw2*)
9493  symcode='[DT]'
9494  ;;
9495sysv5* | sco5v6* | unixware* | OpenUNIX*)
9496  symcode='[ABDT]'
9497  ;;
9498sysv4)
9499  symcode='[DFNSTU]'
9500  ;;
9501esac
9502
9503# If we're using GNU nm, then use its standard symbol codes.
9504case `$NM -V 2>&1` in
9505*GNU* | *'with BFD'*)
9506  symcode='[ABCDGIRSTW]' ;;
9507esac
9508
9509if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9510  # Gets list of data symbols to import.
9511  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9512  # Adjust the below global symbol transforms to fixup imported variables.
9513  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9514  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9515  lt_c_name_lib_hook="\
9516  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9517  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9518else
9519  # Disable hooks by default.
9520  lt_cv_sys_global_symbol_to_import=
9521  lt_cdecl_hook=
9522  lt_c_name_hook=
9523  lt_c_name_lib_hook=
9524fi
9525
9526# Transform an extracted symbol line into a proper C declaration.
9527# Some systems (esp. on ia64) link data and code symbols differently,
9528# so use this general approach.
9529lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9530$lt_cdecl_hook\
9531" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9532" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9533
9534# Transform an extracted symbol line into symbol name and symbol address
9535lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9536$lt_c_name_hook\
9537" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9538" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9539
9540# Transform an extracted symbol line into symbol name with lib prefix and
9541# symbol address.
9542lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9543$lt_c_name_lib_hook\
9544" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9545" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9546" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9547
9548# Handle CRLF in mingw tool chain
9549opt_cr=
9550case $build_os in
9551mingw*)
9552  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9553  ;;
9554esac
9555
9556# Try without a prefix underscore, then with it.
9557for ac_symprfx in "" "_"; do
9558
9559  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9560  symxfrm="\\1 $ac_symprfx\\2 \\2"
9561
9562  # Write the raw and C identifiers.
9563  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9564    # Fake it for dumpbin and say T for any non-static function,
9565    # D for any global variable and I for any imported variable.
9566    # Also find C++ and __fastcall symbols from MSVC++,
9567    # which start with @ or ?.
9568    lt_cv_sys_global_symbol_pipe="$AWK '"\
9569"     {last_section=section; section=\$ 3};"\
9570"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9571"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9572"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9573"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9574"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9575"     \$ 0!~/External *\|/{next};"\
9576"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9577"     {if(hide[section]) next};"\
9578"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9579"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9580"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9581"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9582"     ' prfx=^$ac_symprfx"
9583  else
9584    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9585  fi
9586  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9587
9588  # Check to see that the pipe works correctly.
9589  pipe_works=no
9590
9591  rm -f conftest*
9592  cat > conftest.$ac_ext <<_LT_EOF
9593#ifdef __cplusplus
9594extern "C" {
9595#endif
9596char nm_test_var;
9597void nm_test_func(void);
9598void nm_test_func(void){}
9599#ifdef __cplusplus
9600}
9601#endif
9602int main(){nm_test_var='a';nm_test_func();return(0);}
9603_LT_EOF
9604
9605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606  (eval $ac_compile) 2>&5
9607  ac_status=$?
9608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609  test $ac_status = 0; }; then
9610    # Now try to grab the symbols.
9611    nlist=conftest.nm
9612    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9613    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9614      # Try sorting and uniquifying the output.
9615      if sort "$nlist" | uniq > "$nlist"T; then
9616	mv -f "$nlist"T "$nlist"
9617      else
9618	rm -f "$nlist"T
9619      fi
9620
9621      # Make sure that we snagged all the symbols we need.
9622      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9623	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9624	  cat <<_LT_EOF > conftest.$ac_ext
9625/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9626#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9627/* DATA imports from DLLs on WIN32 can't be const, because runtime
9628   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9629# define LT_DLSYM_CONST
9630#elif defined __osf__
9631/* This system does not cope well with relocations in const data.  */
9632# define LT_DLSYM_CONST
9633#else
9634# define LT_DLSYM_CONST const
9635#endif
9636
9637#ifdef __cplusplus
9638extern "C" {
9639#endif
9640
9641_LT_EOF
9642	  # Now generate the symbol file.
9643	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9644
9645	  cat <<_LT_EOF >> conftest.$ac_ext
9646
9647/* The mapping between symbol names and symbols.  */
9648LT_DLSYM_CONST struct {
9649  const char *name;
9650  void       *address;
9651}
9652lt__PROGRAM__LTX_preloaded_symbols[] =
9653{
9654  { "@PROGRAM@", (void *) 0 },
9655_LT_EOF
9656	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9657	  cat <<\_LT_EOF >> conftest.$ac_ext
9658  {0, (void *) 0}
9659};
9660
9661/* This works around a problem in FreeBSD linker */
9662#ifdef FREEBSD_WORKAROUND
9663static const void *lt_preloaded_setup() {
9664  return lt__PROGRAM__LTX_preloaded_symbols;
9665}
9666#endif
9667
9668#ifdef __cplusplus
9669}
9670#endif
9671_LT_EOF
9672	  # Now try linking the two files.
9673	  mv -f conftest.$ac_objext conftstm.$ac_objext
9674	  lt_globsym_save_LIBS=$LIBS
9675	  lt_globsym_save_CFLAGS=$CFLAGS
9676	  LIBS=conftstm.$ac_objext
9677	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9679  (eval $ac_link) 2>&5
9680  ac_status=$?
9681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9683	    pipe_works=yes
9684	  fi
9685	  LIBS=$lt_globsym_save_LIBS
9686	  CFLAGS=$lt_globsym_save_CFLAGS
9687	else
9688	  echo "cannot find nm_test_func in $nlist" >&5
9689	fi
9690      else
9691	echo "cannot find nm_test_var in $nlist" >&5
9692      fi
9693    else
9694      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695    fi
9696  else
9697    echo "$progname: failed program was:" >&5
9698    cat conftest.$ac_ext >&5
9699  fi
9700  rm -rf conftest* conftst*
9701
9702  # Do not use the global_symbol_pipe unless it works.
9703  if test yes = "$pipe_works"; then
9704    break
9705  else
9706    lt_cv_sys_global_symbol_pipe=
9707  fi
9708done
9709
9710fi
9711
9712if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713  lt_cv_sys_global_symbol_to_cdecl=
9714fi
9715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9717$as_echo "failed" >&6; }
9718else
9719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9720$as_echo "ok" >&6; }
9721fi
9722
9723# Response file support.
9724if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9725  nm_file_list_spec='@'
9726elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9727  nm_file_list_spec='@'
9728fi
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9767$as_echo_n "checking for sysroot... " >&6; }
9768
9769# Check whether --with-sysroot was given.
9770if test "${with_sysroot+set}" = set; then :
9771  withval=$with_sysroot;
9772else
9773  with_sysroot=no
9774fi
9775
9776
9777lt_sysroot=
9778case $with_sysroot in #(
9779 yes)
9780   if test yes = "$GCC"; then
9781     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9782   fi
9783   ;; #(
9784 /*)
9785   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9786   ;; #(
9787 no|'')
9788   ;; #(
9789 *)
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9791$as_echo "$with_sysroot" >&6; }
9792   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9793   ;;
9794esac
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9797$as_echo "${lt_sysroot:-no}" >&6; }
9798
9799
9800
9801
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9804$as_echo_n "checking for a working dd... " >&6; }
9805if ${ac_cv_path_lt_DD+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  printf 0123456789abcdef0123456789abcdef >conftest.i
9809cat conftest.i conftest.i >conftest2.i
9810: ${lt_DD:=$DD}
9811if test -z "$lt_DD"; then
9812  ac_path_lt_DD_found=false
9813  # Loop through the user's path and test for each of PROGNAME-LIST
9814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817  IFS=$as_save_IFS
9818  test -z "$as_dir" && as_dir=.
9819    for ac_prog in dd; do
9820    for ac_exec_ext in '' $ac_executable_extensions; do
9821      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9822      as_fn_executable_p "$ac_path_lt_DD" || continue
9823if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9824  cmp -s conftest.i conftest.out \
9825  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9826fi
9827      $ac_path_lt_DD_found && break 3
9828    done
9829  done
9830  done
9831IFS=$as_save_IFS
9832  if test -z "$ac_cv_path_lt_DD"; then
9833    :
9834  fi
9835else
9836  ac_cv_path_lt_DD=$lt_DD
9837fi
9838
9839rm -f conftest.i conftest2.i conftest.out
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9842$as_echo "$ac_cv_path_lt_DD" >&6; }
9843
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9846$as_echo_n "checking how to truncate binary pipes... " >&6; }
9847if ${lt_cv_truncate_bin+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  printf 0123456789abcdef0123456789abcdef >conftest.i
9851cat conftest.i conftest.i >conftest2.i
9852lt_cv_truncate_bin=
9853if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9854  cmp -s conftest.i conftest.out \
9855  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9856fi
9857rm -f conftest.i conftest2.i conftest.out
9858test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9861$as_echo "$lt_cv_truncate_bin" >&6; }
9862
9863
9864
9865
9866
9867
9868
9869# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9870func_cc_basename ()
9871{
9872    for cc_temp in $*""; do
9873      case $cc_temp in
9874        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9876        \-*) ;;
9877        *) break;;
9878      esac
9879    done
9880    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9881}
9882
9883# Check whether --enable-libtool-lock was given.
9884if test "${enable_libtool_lock+set}" = set; then :
9885  enableval=$enable_libtool_lock;
9886fi
9887
9888test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9889
9890# Some flags need to be propagated to the compiler or linker for good
9891# libtool support.
9892case $host in
9893ia64-*-hpux*)
9894  # Find out what ABI is being produced by ac_compile, and set mode
9895  # options accordingly.
9896  echo 'int i;' > conftest.$ac_ext
9897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9898  (eval $ac_compile) 2>&5
9899  ac_status=$?
9900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901  test $ac_status = 0; }; then
9902    case `/usr/bin/file conftest.$ac_objext` in
9903      *ELF-32*)
9904	HPUX_IA64_MODE=32
9905	;;
9906      *ELF-64*)
9907	HPUX_IA64_MODE=64
9908	;;
9909    esac
9910  fi
9911  rm -rf conftest*
9912  ;;
9913*-*-irix6*)
9914  # Find out what ABI is being produced by ac_compile, and set linker
9915  # options accordingly.
9916  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9917  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918  (eval $ac_compile) 2>&5
9919  ac_status=$?
9920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921  test $ac_status = 0; }; then
9922    if test yes = "$lt_cv_prog_gnu_ld"; then
9923      case `/usr/bin/file conftest.$ac_objext` in
9924	*32-bit*)
9925	  LD="${LD-ld} -melf32bsmip"
9926	  ;;
9927	*N32*)
9928	  LD="${LD-ld} -melf32bmipn32"
9929	  ;;
9930	*64-bit*)
9931	  LD="${LD-ld} -melf64bmip"
9932	;;
9933      esac
9934    else
9935      case `/usr/bin/file conftest.$ac_objext` in
9936	*32-bit*)
9937	  LD="${LD-ld} -32"
9938	  ;;
9939	*N32*)
9940	  LD="${LD-ld} -n32"
9941	  ;;
9942	*64-bit*)
9943	  LD="${LD-ld} -64"
9944	  ;;
9945      esac
9946    fi
9947  fi
9948  rm -rf conftest*
9949  ;;
9950
9951mips64*-*linux*)
9952  # Find out what ABI is being produced by ac_compile, and set linker
9953  # options accordingly.
9954  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9955  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956  (eval $ac_compile) 2>&5
9957  ac_status=$?
9958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959  test $ac_status = 0; }; then
9960    emul=elf
9961    case `/usr/bin/file conftest.$ac_objext` in
9962      *32-bit*)
9963	emul="${emul}32"
9964	;;
9965      *64-bit*)
9966	emul="${emul}64"
9967	;;
9968    esac
9969    case `/usr/bin/file conftest.$ac_objext` in
9970      *MSB*)
9971	emul="${emul}btsmip"
9972	;;
9973      *LSB*)
9974	emul="${emul}ltsmip"
9975	;;
9976    esac
9977    case `/usr/bin/file conftest.$ac_objext` in
9978      *N32*)
9979	emul="${emul}n32"
9980	;;
9981    esac
9982    LD="${LD-ld} -m $emul"
9983  fi
9984  rm -rf conftest*
9985  ;;
9986
9987x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9988s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9989  # Find out what ABI is being produced by ac_compile, and set linker
9990  # options accordingly.  Note that the listed cases only cover the
9991  # situations where additional linker options are needed (such as when
9992  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9993  # vice versa); the common cases where no linker options are needed do
9994  # not appear in the list.
9995  echo 'int i;' > conftest.$ac_ext
9996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997  (eval $ac_compile) 2>&5
9998  ac_status=$?
9999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000  test $ac_status = 0; }; then
10001    case `/usr/bin/file conftest.o` in
10002      *32-bit*)
10003	case $host in
10004	  x86_64-*kfreebsd*-gnu)
10005	    LD="${LD-ld} -m elf_i386_fbsd"
10006	    ;;
10007	  x86_64-*linux*)
10008	    case `/usr/bin/file conftest.o` in
10009	      *x86-64*)
10010		LD="${LD-ld} -m elf32_x86_64"
10011		;;
10012	      *)
10013		LD="${LD-ld} -m elf_i386"
10014		;;
10015	    esac
10016	    ;;
10017	  powerpc64le-*linux*)
10018	    LD="${LD-ld} -m elf32lppclinux"
10019	    ;;
10020	  powerpc64-*linux*)
10021	    LD="${LD-ld} -m elf32ppclinux"
10022	    ;;
10023	  s390x-*linux*)
10024	    LD="${LD-ld} -m elf_s390"
10025	    ;;
10026	  sparc64-*linux*)
10027	    LD="${LD-ld} -m elf32_sparc"
10028	    ;;
10029	esac
10030	;;
10031      *64-bit*)
10032	case $host in
10033	  x86_64-*kfreebsd*-gnu)
10034	    LD="${LD-ld} -m elf_x86_64_fbsd"
10035	    ;;
10036	  x86_64-*linux*)
10037	    LD="${LD-ld} -m elf_x86_64"
10038	    ;;
10039	  powerpcle-*linux*)
10040	    LD="${LD-ld} -m elf64lppc"
10041	    ;;
10042	  powerpc-*linux*)
10043	    LD="${LD-ld} -m elf64ppc"
10044	    ;;
10045	  s390*-*linux*|s390*-*tpf*)
10046	    LD="${LD-ld} -m elf64_s390"
10047	    ;;
10048	  sparc*-*linux*)
10049	    LD="${LD-ld} -m elf64_sparc"
10050	    ;;
10051	esac
10052	;;
10053    esac
10054  fi
10055  rm -rf conftest*
10056  ;;
10057
10058*-*-sco3.2v5*)
10059  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10060  SAVE_CFLAGS=$CFLAGS
10061  CFLAGS="$CFLAGS -belf"
10062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10063$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10064if ${lt_cv_cc_needs_belf+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  ac_ext=c
10068ac_cpp='$CPP $CPPFLAGS'
10069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071ac_compiler_gnu=$ac_cv_c_compiler_gnu
10072
10073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075
10076int main (void)
10077{
10078
10079 ;
10080 return 0;
10081}
10082_ACEOF
10083if ac_fn_c_try_link "$LINENO"; then :
10084  lt_cv_cc_needs_belf=yes
10085else
10086  lt_cv_cc_needs_belf=no
10087fi
10088rm -f core conftest.err conftest.$ac_objext \
10089    conftest$ac_exeext conftest.$ac_ext
10090     ac_ext=c
10091ac_cpp='$CPP $CPPFLAGS'
10092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10098$as_echo "$lt_cv_cc_needs_belf" >&6; }
10099  if test yes != "$lt_cv_cc_needs_belf"; then
10100    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10101    CFLAGS=$SAVE_CFLAGS
10102  fi
10103  ;;
10104*-*solaris*)
10105  # Find out what ABI is being produced by ac_compile, and set linker
10106  # options accordingly.
10107  echo 'int i;' > conftest.$ac_ext
10108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10109  (eval $ac_compile) 2>&5
10110  ac_status=$?
10111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112  test $ac_status = 0; }; then
10113    case `/usr/bin/file conftest.o` in
10114    *64-bit*)
10115      case $lt_cv_prog_gnu_ld in
10116      yes*)
10117        case $host in
10118        i?86-*-solaris*|x86_64-*-solaris*)
10119          LD="${LD-ld} -m elf_x86_64"
10120          ;;
10121        sparc*-*-solaris*)
10122          LD="${LD-ld} -m elf64_sparc"
10123          ;;
10124        esac
10125        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10126        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10127          LD=${LD-ld}_sol2
10128        fi
10129        ;;
10130      *)
10131	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10132	  LD="${LD-ld} -64"
10133	fi
10134	;;
10135      esac
10136      ;;
10137    esac
10138  fi
10139  rm -rf conftest*
10140  ;;
10141esac
10142
10143need_locks=$enable_libtool_lock
10144
10145if test -n "$ac_tool_prefix"; then
10146  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10147set dummy ${ac_tool_prefix}mt; ac_word=$2
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  if test -n "$MANIFEST_TOOL"; then
10154  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159  IFS=$as_save_IFS
10160  test -z "$as_dir" && as_dir=.
10161    for ac_exec_ext in '' $ac_executable_extensions; do
10162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165    break 2
10166  fi
10167done
10168  done
10169IFS=$as_save_IFS
10170
10171fi
10172fi
10173MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10174if test -n "$MANIFEST_TOOL"; then
10175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10176$as_echo "$MANIFEST_TOOL" >&6; }
10177else
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
10180fi
10181
10182
10183fi
10184if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10185  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10186  # Extract the first word of "mt", so it can be a program name with args.
10187set dummy mt; ac_word=$2
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189$as_echo_n "checking for $ac_word... " >&6; }
10190if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10191  $as_echo_n "(cached) " >&6
10192else
10193  if test -n "$ac_ct_MANIFEST_TOOL"; then
10194  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10195else
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199  IFS=$as_save_IFS
10200  test -z "$as_dir" && as_dir=.
10201    for ac_exec_ext in '' $ac_executable_extensions; do
10202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205    break 2
10206  fi
10207done
10208  done
10209IFS=$as_save_IFS
10210
10211fi
10212fi
10213ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10214if test -n "$ac_ct_MANIFEST_TOOL"; then
10215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10216$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10217else
10218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219$as_echo "no" >&6; }
10220fi
10221
10222  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10223    MANIFEST_TOOL=":"
10224  else
10225    case $cross_compiling:$ac_tool_warned in
10226yes:)
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10229ac_tool_warned=yes ;;
10230esac
10231    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10232  fi
10233else
10234  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10235fi
10236
10237test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10239$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10240if ${lt_cv_path_mainfest_tool+:} false; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  lt_cv_path_mainfest_tool=no
10244  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10245  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10246  cat conftest.err >&5
10247  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10248    lt_cv_path_mainfest_tool=yes
10249  fi
10250  rm -f conftest*
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10253$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10254if test yes != "$lt_cv_path_mainfest_tool"; then
10255  MANIFEST_TOOL=:
10256fi
10257
10258
10259
10260
10261
10262
10263  case $host_os in
10264    rhapsody* | darwin*)
10265    if test -n "$ac_tool_prefix"; then
10266  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10267set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269$as_echo_n "checking for $ac_word... " >&6; }
10270if ${ac_cv_prog_DSYMUTIL+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  if test -n "$DSYMUTIL"; then
10274  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279  IFS=$as_save_IFS
10280  test -z "$as_dir" && as_dir=.
10281    for ac_exec_ext in '' $ac_executable_extensions; do
10282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285    break 2
10286  fi
10287done
10288  done
10289IFS=$as_save_IFS
10290
10291fi
10292fi
10293DSYMUTIL=$ac_cv_prog_DSYMUTIL
10294if test -n "$DSYMUTIL"; then
10295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10296$as_echo "$DSYMUTIL" >&6; }
10297else
10298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
10300fi
10301
10302
10303fi
10304if test -z "$ac_cv_prog_DSYMUTIL"; then
10305  ac_ct_DSYMUTIL=$DSYMUTIL
10306  # Extract the first word of "dsymutil", so it can be a program name with args.
10307set dummy dsymutil; ac_word=$2
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309$as_echo_n "checking for $ac_word... " >&6; }
10310if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  if test -n "$ac_ct_DSYMUTIL"; then
10314  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10315else
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319  IFS=$as_save_IFS
10320  test -z "$as_dir" && as_dir=.
10321    for ac_exec_ext in '' $ac_executable_extensions; do
10322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325    break 2
10326  fi
10327done
10328  done
10329IFS=$as_save_IFS
10330
10331fi
10332fi
10333ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10334if test -n "$ac_ct_DSYMUTIL"; then
10335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10336$as_echo "$ac_ct_DSYMUTIL" >&6; }
10337else
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342  if test "x$ac_ct_DSYMUTIL" = x; then
10343    DSYMUTIL=":"
10344  else
10345    case $cross_compiling:$ac_tool_warned in
10346yes:)
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349ac_tool_warned=yes ;;
10350esac
10351    DSYMUTIL=$ac_ct_DSYMUTIL
10352  fi
10353else
10354  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10355fi
10356
10357    if test -n "$ac_tool_prefix"; then
10358  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10359set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if ${ac_cv_prog_NMEDIT+:} false; then :
10363  $as_echo_n "(cached) " >&6
10364else
10365  if test -n "$NMEDIT"; then
10366  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10367else
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371  IFS=$as_save_IFS
10372  test -z "$as_dir" && as_dir=.
10373    for ac_exec_ext in '' $ac_executable_extensions; do
10374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377    break 2
10378  fi
10379done
10380  done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385NMEDIT=$ac_cv_prog_NMEDIT
10386if test -n "$NMEDIT"; then
10387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10388$as_echo "$NMEDIT" >&6; }
10389else
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392fi
10393
10394
10395fi
10396if test -z "$ac_cv_prog_NMEDIT"; then
10397  ac_ct_NMEDIT=$NMEDIT
10398  # Extract the first word of "nmedit", so it can be a program name with args.
10399set dummy nmedit; ac_word=$2
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10403  $as_echo_n "(cached) " >&6
10404else
10405  if test -n "$ac_ct_NMEDIT"; then
10406  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411  IFS=$as_save_IFS
10412  test -z "$as_dir" && as_dir=.
10413    for ac_exec_ext in '' $ac_executable_extensions; do
10414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417    break 2
10418  fi
10419done
10420  done
10421IFS=$as_save_IFS
10422
10423fi
10424fi
10425ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10426if test -n "$ac_ct_NMEDIT"; then
10427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10428$as_echo "$ac_ct_NMEDIT" >&6; }
10429else
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
10432fi
10433
10434  if test "x$ac_ct_NMEDIT" = x; then
10435    NMEDIT=":"
10436  else
10437    case $cross_compiling:$ac_tool_warned in
10438yes:)
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441ac_tool_warned=yes ;;
10442esac
10443    NMEDIT=$ac_ct_NMEDIT
10444  fi
10445else
10446  NMEDIT="$ac_cv_prog_NMEDIT"
10447fi
10448
10449    if test -n "$ac_tool_prefix"; then
10450  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10451set dummy ${ac_tool_prefix}lipo; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if ${ac_cv_prog_LIPO+:} false; then :
10455  $as_echo_n "(cached) " >&6
10456else
10457  if test -n "$LIPO"; then
10458  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463  IFS=$as_save_IFS
10464  test -z "$as_dir" && as_dir=.
10465    for ac_exec_ext in '' $ac_executable_extensions; do
10466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469    break 2
10470  fi
10471done
10472  done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477LIPO=$ac_cv_prog_LIPO
10478if test -n "$LIPO"; then
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10480$as_echo "$LIPO" >&6; }
10481else
10482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487fi
10488if test -z "$ac_cv_prog_LIPO"; then
10489  ac_ct_LIPO=$LIPO
10490  # Extract the first word of "lipo", so it can be a program name with args.
10491set dummy lipo; ac_word=$2
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10495  $as_echo_n "(cached) " >&6
10496else
10497  if test -n "$ac_ct_LIPO"; then
10498  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503  IFS=$as_save_IFS
10504  test -z "$as_dir" && as_dir=.
10505    for ac_exec_ext in '' $ac_executable_extensions; do
10506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507    ac_cv_prog_ac_ct_LIPO="lipo"
10508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509    break 2
10510  fi
10511done
10512  done
10513IFS=$as_save_IFS
10514
10515fi
10516fi
10517ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10518if test -n "$ac_ct_LIPO"; then
10519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10520$as_echo "$ac_ct_LIPO" >&6; }
10521else
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524fi
10525
10526  if test "x$ac_ct_LIPO" = x; then
10527    LIPO=":"
10528  else
10529    case $cross_compiling:$ac_tool_warned in
10530yes:)
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533ac_tool_warned=yes ;;
10534esac
10535    LIPO=$ac_ct_LIPO
10536  fi
10537else
10538  LIPO="$ac_cv_prog_LIPO"
10539fi
10540
10541    if test -n "$ac_tool_prefix"; then
10542  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10543set dummy ${ac_tool_prefix}otool; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
10546if ${ac_cv_prog_OTOOL+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  if test -n "$OTOOL"; then
10550  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555  IFS=$as_save_IFS
10556  test -z "$as_dir" && as_dir=.
10557    for ac_exec_ext in '' $ac_executable_extensions; do
10558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561    break 2
10562  fi
10563done
10564  done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569OTOOL=$ac_cv_prog_OTOOL
10570if test -n "$OTOOL"; then
10571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10572$as_echo "$OTOOL" >&6; }
10573else
10574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579fi
10580if test -z "$ac_cv_prog_OTOOL"; then
10581  ac_ct_OTOOL=$OTOOL
10582  # Extract the first word of "otool", so it can be a program name with args.
10583set dummy otool; ac_word=$2
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585$as_echo_n "checking for $ac_word... " >&6; }
10586if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10587  $as_echo_n "(cached) " >&6
10588else
10589  if test -n "$ac_ct_OTOOL"; then
10590  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10591else
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595  IFS=$as_save_IFS
10596  test -z "$as_dir" && as_dir=.
10597    for ac_exec_ext in '' $ac_executable_extensions; do
10598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599    ac_cv_prog_ac_ct_OTOOL="otool"
10600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601    break 2
10602  fi
10603done
10604  done
10605IFS=$as_save_IFS
10606
10607fi
10608fi
10609ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10610if test -n "$ac_ct_OTOOL"; then
10611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10612$as_echo "$ac_ct_OTOOL" >&6; }
10613else
10614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
10616fi
10617
10618  if test "x$ac_ct_OTOOL" = x; then
10619    OTOOL=":"
10620  else
10621    case $cross_compiling:$ac_tool_warned in
10622yes:)
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625ac_tool_warned=yes ;;
10626esac
10627    OTOOL=$ac_ct_OTOOL
10628  fi
10629else
10630  OTOOL="$ac_cv_prog_OTOOL"
10631fi
10632
10633    if test -n "$ac_tool_prefix"; then
10634  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10635set dummy ${ac_tool_prefix}otool64; ac_word=$2
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637$as_echo_n "checking for $ac_word... " >&6; }
10638if ${ac_cv_prog_OTOOL64+:} false; then :
10639  $as_echo_n "(cached) " >&6
10640else
10641  if test -n "$OTOOL64"; then
10642  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10643else
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647  IFS=$as_save_IFS
10648  test -z "$as_dir" && as_dir=.
10649    for ac_exec_ext in '' $ac_executable_extensions; do
10650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653    break 2
10654  fi
10655done
10656  done
10657IFS=$as_save_IFS
10658
10659fi
10660fi
10661OTOOL64=$ac_cv_prog_OTOOL64
10662if test -n "$OTOOL64"; then
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10664$as_echo "$OTOOL64" >&6; }
10665else
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668fi
10669
10670
10671fi
10672if test -z "$ac_cv_prog_OTOOL64"; then
10673  ac_ct_OTOOL64=$OTOOL64
10674  # Extract the first word of "otool64", so it can be a program name with args.
10675set dummy otool64; ac_word=$2
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677$as_echo_n "checking for $ac_word... " >&6; }
10678if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  if test -n "$ac_ct_OTOOL64"; then
10682  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10683else
10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687  IFS=$as_save_IFS
10688  test -z "$as_dir" && as_dir=.
10689    for ac_exec_ext in '' $ac_executable_extensions; do
10690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691    ac_cv_prog_ac_ct_OTOOL64="otool64"
10692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693    break 2
10694  fi
10695done
10696  done
10697IFS=$as_save_IFS
10698
10699fi
10700fi
10701ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10702if test -n "$ac_ct_OTOOL64"; then
10703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10704$as_echo "$ac_ct_OTOOL64" >&6; }
10705else
10706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707$as_echo "no" >&6; }
10708fi
10709
10710  if test "x$ac_ct_OTOOL64" = x; then
10711    OTOOL64=":"
10712  else
10713    case $cross_compiling:$ac_tool_warned in
10714yes:)
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10717ac_tool_warned=yes ;;
10718esac
10719    OTOOL64=$ac_ct_OTOOL64
10720  fi
10721else
10722  OTOOL64="$ac_cv_prog_OTOOL64"
10723fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10752$as_echo_n "checking for -single_module linker flag... " >&6; }
10753if ${lt_cv_apple_cc_single_mod+:} false; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  lt_cv_apple_cc_single_mod=no
10757      if test -z "$LT_MULTI_MODULE"; then
10758	# By default we will add the -single_module flag. You can override
10759	# by either setting the environment variable LT_MULTI_MODULE
10760	# non-empty at configure time, or by adding -multi_module to the
10761	# link flags.
10762	rm -rf libconftest.dylib*
10763	echo "int foo(void){return 1;}" > conftest.c
10764	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10765-dynamiclib -Wl,-single_module conftest.c" >&5
10766	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10767	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10768        _lt_result=$?
10769	# If there is a non-empty error log, and "single_module"
10770	# appears in it, assume the flag caused a linker warning
10771        if test -s conftest.err && $GREP single_module conftest.err; then
10772	  cat conftest.err >&5
10773	# Otherwise, if the output was created with a 0 exit code from
10774	# the compiler, it worked.
10775	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10776	  lt_cv_apple_cc_single_mod=yes
10777	else
10778	  cat conftest.err >&5
10779	fi
10780	rm -rf libconftest.dylib*
10781	rm -f conftest.*
10782      fi
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10785$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10786
10787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10788$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10789if ${lt_cv_ld_exported_symbols_list+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  lt_cv_ld_exported_symbols_list=no
10793      save_LDFLAGS=$LDFLAGS
10794      echo "_main" > conftest.sym
10795      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10796      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798
10799int main (void)
10800{
10801
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806if ac_fn_c_try_link "$LINENO"; then :
10807  lt_cv_ld_exported_symbols_list=yes
10808else
10809  lt_cv_ld_exported_symbols_list=no
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812    conftest$ac_exeext conftest.$ac_ext
10813	LDFLAGS=$save_LDFLAGS
10814
10815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10817$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10818
10819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10820$as_echo_n "checking for -force_load linker flag... " >&6; }
10821if ${lt_cv_ld_force_load+:} false; then :
10822  $as_echo_n "(cached) " >&6
10823else
10824  lt_cv_ld_force_load=no
10825      cat > conftest.c << _LT_EOF
10826int forced_loaded() { return 2;}
10827_LT_EOF
10828      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10829      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10830      echo "$AR cru libconftest.a conftest.o" >&5
10831      $AR cru libconftest.a conftest.o 2>&5
10832      echo "$RANLIB libconftest.a" >&5
10833      $RANLIB libconftest.a 2>&5
10834      cat > conftest.c << _LT_EOF
10835int main() { return 0;}
10836_LT_EOF
10837      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10838      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10839      _lt_result=$?
10840      if test -s conftest.err && $GREP force_load conftest.err; then
10841	cat conftest.err >&5
10842      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10843	lt_cv_ld_force_load=yes
10844      else
10845	cat conftest.err >&5
10846      fi
10847        rm -f conftest.err libconftest.a conftest conftest.c
10848        rm -rf conftest.dSYM
10849
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10852$as_echo "$lt_cv_ld_force_load" >&6; }
10853    case $host_os in
10854    rhapsody* | darwin1.[012])
10855      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10856    darwin1.*)
10857      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10858    darwin*) # darwin 5.x on
10859      # if running on 10.5 or later, the deployment target defaults
10860      # to the OS version, if on x86, and 10.4, the deployment
10861      # target defaults to 10.4. Don't you love it?
10862      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10863	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10864	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10865	10.[012][,.]*)
10866	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10867	10.*)
10868	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10869      esac
10870    ;;
10871  esac
10872    if test yes = "$lt_cv_apple_cc_single_mod"; then
10873      _lt_dar_single_mod='$single_module'
10874    fi
10875    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10876      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10877    else
10878      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10879    fi
10880    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10881      _lt_dsymutil='~$DSYMUTIL $lib || :'
10882    else
10883      _lt_dsymutil=
10884    fi
10885    ;;
10886  esac
10887
10888# func_munge_path_list VARIABLE PATH
10889# -----------------------------------
10890# VARIABLE is name of variable containing _space_ separated list of
10891# directories to be munged by the contents of PATH, which is string
10892# having a format:
10893# "DIR[:DIR]:"
10894#       string "DIR[ DIR]" will be prepended to VARIABLE
10895# ":DIR[:DIR]"
10896#       string "DIR[ DIR]" will be appended to VARIABLE
10897# "DIRP[:DIRP]::[DIRA:]DIRA"
10898#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10899#       "DIRA[ DIRA]" will be appended to VARIABLE
10900# "DIR[:DIR]"
10901#       VARIABLE will be replaced by "DIR[ DIR]"
10902func_munge_path_list ()
10903{
10904    case x$2 in
10905    x)
10906        ;;
10907    *:)
10908        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10909        ;;
10910    x:*)
10911        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10912        ;;
10913    *::*)
10914        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10915        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10916        ;;
10917    *)
10918        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10919        ;;
10920    esac
10921}
10922
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10924$as_echo_n "checking for ANSI C header files... " >&6; }
10925if ${ac_cv_header_stdc+:} false; then :
10926  $as_echo_n "(cached) " >&6
10927else
10928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929/* end confdefs.h.  */
10930#include <stdlib.h>
10931#include <stdarg.h>
10932#include <string.h>
10933#include <float.h>
10934
10935int main (void)
10936{
10937
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_compile "$LINENO"; then :
10943  ac_cv_header_stdc=yes
10944else
10945  ac_cv_header_stdc=no
10946fi
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948
10949if test $ac_cv_header_stdc = yes; then
10950  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h.  */
10953#include <string.h>
10954
10955_ACEOF
10956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10957  $EGREP "memchr" >/dev/null 2>&1; then :
10958
10959else
10960  ac_cv_header_stdc=no
10961fi
10962rm -f conftest*
10963
10964fi
10965
10966if test $ac_cv_header_stdc = yes; then
10967  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969/* end confdefs.h.  */
10970#include <stdlib.h>
10971
10972_ACEOF
10973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10974  $EGREP "free" >/dev/null 2>&1; then :
10975
10976else
10977  ac_cv_header_stdc=no
10978fi
10979rm -f conftest*
10980
10981fi
10982
10983if test $ac_cv_header_stdc = yes; then
10984  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10985  if test "$cross_compiling" = yes; then :
10986  :
10987else
10988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h.  */
10990#include <ctype.h>
10991#include <stdlib.h>
10992#if ((' ' & 0x0FF) == 0x020)
10993# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10994# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10995#else
10996# define ISLOWER(c) \
10997		   (('a' <= (c) && (c) <= 'i') \
10998		     || ('j' <= (c) && (c) <= 'r') \
10999		     || ('s' <= (c) && (c) <= 'z'))
11000# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11001#endif
11002
11003#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11004int
11005main ()
11006{
11007  int i;
11008  for (i = 0; i < 256; i++)
11009    if (XOR (islower (i), ISLOWER (i))
11010	|| toupper (i) != TOUPPER (i))
11011      return 2;
11012  return 0;
11013}
11014_ACEOF
11015if ac_fn_c_try_run "$LINENO"; then :
11016
11017else
11018  ac_cv_header_stdc=no
11019fi
11020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11021  conftest.$ac_objext conftest.beam conftest.$ac_ext
11022fi
11023
11024fi
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11027$as_echo "$ac_cv_header_stdc" >&6; }
11028if test $ac_cv_header_stdc = yes; then
11029
11030$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11031
11032fi
11033
11034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11036		  inttypes.h stdint.h unistd.h
11037do :
11038  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11040"
11041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11042  cat >>confdefs.h <<_ACEOF
11043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11044_ACEOF
11045
11046fi
11047
11048done
11049
11050
11051for ac_header in dlfcn.h
11052do :
11053  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11054"
11055if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11056  cat >>confdefs.h <<_ACEOF
11057#define HAVE_DLFCN_H 1
11058_ACEOF
11059
11060fi
11061
11062done
11063
11064
11065
11066func_stripname_cnf ()
11067{
11068  case $2 in
11069  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11070  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11071  esac
11072} # func_stripname_cnf
11073
11074# ------------------------------------ #
11075#  Determine libtool default behavior  #
11076# ------------------------------------ #
11077
11078#
11079# Default behavior is to enable shared and static libraries on systems
11080# where libtool knows how to build both library versions, and does not
11081# require separate configuration and build runs for each flavor.
11082#
11083
11084xc_lt_want_enable_shared='yes'
11085xc_lt_want_enable_static='yes'
11086
11087#
11088# User may have disabled shared or static libraries.
11089#
11090case "x$enable_shared" in # (
11091  xno)
11092    xc_lt_want_enable_shared='no'
11093    ;;
11094esac
11095case "x$enable_static" in # (
11096  xno)
11097    xc_lt_want_enable_static='no'
11098    ;;
11099esac
11100if test "x$xc_lt_want_enable_shared" = 'xno' &&
11101  test "x$xc_lt_want_enable_static" = 'xno'; then
11102  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11103fi
11104
11105#
11106# Default behavior on systems that require independent configuration
11107# and build runs for shared and static is to enable shared libraries
11108# and disable static ones. On these systems option '--disable-shared'
11109# must be used in order to build a proper static library.
11110#
11111
11112if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11113  test "x$xc_lt_want_enable_static" = 'xyes'; then
11114  case $host_os in # (
11115    mingw* | pw32* | cegcc* | os2* | aix*)
11116      xc_lt_want_enable_static='no'
11117      ;;
11118  esac
11119fi
11120
11121#
11122# Make libtool aware of current shared and static library preferences
11123# taking in account that, depending on host characteristics, libtool
11124# may modify these option preferences later in this configure script.
11125#
11126
11127enable_shared=$xc_lt_want_enable_shared
11128enable_static=$xc_lt_want_enable_static
11129
11130#
11131# Default behavior is to build PIC objects for shared libraries and
11132# non-PIC objects for static libraries.
11133#
11134
11135xc_lt_want_with_pic='default'
11136
11137#
11138# User may have specified PIC preference.
11139#
11140
11141case "x$with_pic" in # ((
11142  xno)
11143    xc_lt_want_with_pic='no'
11144    ;;
11145  xyes)
11146    xc_lt_want_with_pic='yes'
11147    ;;
11148esac
11149
11150#
11151# Default behavior on some systems where building a shared library out
11152# of non-PIC compiled objects will fail with following linker error
11153# "relocation R_X86_64_32 can not be used when making a shared object"
11154# is to build PIC objects even for static libraries. This behavior may
11155# be overriden using 'configure --disable-shared --without-pic'.
11156#
11157
11158if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11159  case $host_cpu in # (
11160    x86_64 | amd64 | ia64)
11161      case $host_os in # (
11162        linux* | freebsd*)
11163          xc_lt_want_with_pic='yes'
11164          ;;
11165      esac
11166      ;;
11167  esac
11168fi
11169
11170#
11171# Make libtool aware of current PIC preference taking in account that,
11172# depending on host characteristics, libtool may modify PIC default
11173# behavior to fit host system idiosyncrasies later in this script.
11174#
11175
11176with_pic=$xc_lt_want_with_pic
11177
11178## ----------------------- ##
11179##  Start of libtool code  ##
11180## ----------------------- ##
11181
11182
11183
11184
11185# Set options
11186enable_win32_dll=yes
11187
11188case $host in
11189*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11190  if test -n "$ac_tool_prefix"; then
11191  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11192set dummy ${ac_tool_prefix}as; ac_word=$2
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
11195if ${ac_cv_prog_AS+:} false; then :
11196  $as_echo_n "(cached) " >&6
11197else
11198  if test -n "$AS"; then
11199  ac_cv_prog_AS="$AS" # Let the user override the test.
11200else
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204  IFS=$as_save_IFS
11205  test -z "$as_dir" && as_dir=.
11206    for ac_exec_ext in '' $ac_executable_extensions; do
11207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208    ac_cv_prog_AS="${ac_tool_prefix}as"
11209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210    break 2
11211  fi
11212done
11213  done
11214IFS=$as_save_IFS
11215
11216fi
11217fi
11218AS=$ac_cv_prog_AS
11219if test -n "$AS"; then
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11221$as_echo "$AS" >&6; }
11222else
11223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
11225fi
11226
11227
11228fi
11229if test -z "$ac_cv_prog_AS"; then
11230  ac_ct_AS=$AS
11231  # Extract the first word of "as", so it can be a program name with args.
11232set dummy as; ac_word=$2
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234$as_echo_n "checking for $ac_word... " >&6; }
11235if ${ac_cv_prog_ac_ct_AS+:} false; then :
11236  $as_echo_n "(cached) " >&6
11237else
11238  if test -n "$ac_ct_AS"; then
11239  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11240else
11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244  IFS=$as_save_IFS
11245  test -z "$as_dir" && as_dir=.
11246    for ac_exec_ext in '' $ac_executable_extensions; do
11247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248    ac_cv_prog_ac_ct_AS="as"
11249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250    break 2
11251  fi
11252done
11253  done
11254IFS=$as_save_IFS
11255
11256fi
11257fi
11258ac_ct_AS=$ac_cv_prog_ac_ct_AS
11259if test -n "$ac_ct_AS"; then
11260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11261$as_echo "$ac_ct_AS" >&6; }
11262else
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
11265fi
11266
11267  if test "x$ac_ct_AS" = x; then
11268    AS="false"
11269  else
11270    case $cross_compiling:$ac_tool_warned in
11271yes:)
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11274ac_tool_warned=yes ;;
11275esac
11276    AS=$ac_ct_AS
11277  fi
11278else
11279  AS="$ac_cv_prog_AS"
11280fi
11281
11282  if test -n "$ac_tool_prefix"; then
11283  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11284set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286$as_echo_n "checking for $ac_word... " >&6; }
11287if ${ac_cv_prog_DLLTOOL+:} false; then :
11288  $as_echo_n "(cached) " >&6
11289else
11290  if test -n "$DLLTOOL"; then
11291  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11292else
11293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294for as_dir in $PATH
11295do
11296  IFS=$as_save_IFS
11297  test -z "$as_dir" && as_dir=.
11298    for ac_exec_ext in '' $ac_executable_extensions; do
11299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302    break 2
11303  fi
11304done
11305  done
11306IFS=$as_save_IFS
11307
11308fi
11309fi
11310DLLTOOL=$ac_cv_prog_DLLTOOL
11311if test -n "$DLLTOOL"; then
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11313$as_echo "$DLLTOOL" >&6; }
11314else
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
11317fi
11318
11319
11320fi
11321if test -z "$ac_cv_prog_DLLTOOL"; then
11322  ac_ct_DLLTOOL=$DLLTOOL
11323  # Extract the first word of "dlltool", so it can be a program name with args.
11324set dummy dlltool; ac_word=$2
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326$as_echo_n "checking for $ac_word... " >&6; }
11327if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11328  $as_echo_n "(cached) " >&6
11329else
11330  if test -n "$ac_ct_DLLTOOL"; then
11331  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11332else
11333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334for as_dir in $PATH
11335do
11336  IFS=$as_save_IFS
11337  test -z "$as_dir" && as_dir=.
11338    for ac_exec_ext in '' $ac_executable_extensions; do
11339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342    break 2
11343  fi
11344done
11345  done
11346IFS=$as_save_IFS
11347
11348fi
11349fi
11350ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11351if test -n "$ac_ct_DLLTOOL"; then
11352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11353$as_echo "$ac_ct_DLLTOOL" >&6; }
11354else
11355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
11357fi
11358
11359  if test "x$ac_ct_DLLTOOL" = x; then
11360    DLLTOOL="false"
11361  else
11362    case $cross_compiling:$ac_tool_warned in
11363yes:)
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11366ac_tool_warned=yes ;;
11367esac
11368    DLLTOOL=$ac_ct_DLLTOOL
11369  fi
11370else
11371  DLLTOOL="$ac_cv_prog_DLLTOOL"
11372fi
11373
11374  if test -n "$ac_tool_prefix"; then
11375  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11376set dummy ${ac_tool_prefix}objdump; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if ${ac_cv_prog_OBJDUMP+:} false; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  if test -n "$OBJDUMP"; then
11383  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388  IFS=$as_save_IFS
11389  test -z "$as_dir" && as_dir=.
11390    for ac_exec_ext in '' $ac_executable_extensions; do
11391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394    break 2
11395  fi
11396done
11397  done
11398IFS=$as_save_IFS
11399
11400fi
11401fi
11402OBJDUMP=$ac_cv_prog_OBJDUMP
11403if test -n "$OBJDUMP"; then
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11405$as_echo "$OBJDUMP" >&6; }
11406else
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
11409fi
11410
11411
11412fi
11413if test -z "$ac_cv_prog_OBJDUMP"; then
11414  ac_ct_OBJDUMP=$OBJDUMP
11415  # Extract the first word of "objdump", so it can be a program name with args.
11416set dummy objdump; ac_word=$2
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
11419if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  if test -n "$ac_ct_OBJDUMP"; then
11423  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11424else
11425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426for as_dir in $PATH
11427do
11428  IFS=$as_save_IFS
11429  test -z "$as_dir" && as_dir=.
11430    for ac_exec_ext in '' $ac_executable_extensions; do
11431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434    break 2
11435  fi
11436done
11437  done
11438IFS=$as_save_IFS
11439
11440fi
11441fi
11442ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11443if test -n "$ac_ct_OBJDUMP"; then
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11445$as_echo "$ac_ct_OBJDUMP" >&6; }
11446else
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449fi
11450
11451  if test "x$ac_ct_OBJDUMP" = x; then
11452    OBJDUMP="false"
11453  else
11454    case $cross_compiling:$ac_tool_warned in
11455yes:)
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11458ac_tool_warned=yes ;;
11459esac
11460    OBJDUMP=$ac_ct_OBJDUMP
11461  fi
11462else
11463  OBJDUMP="$ac_cv_prog_OBJDUMP"
11464fi
11465
11466  ;;
11467esac
11468
11469test -z "$AS" && AS=as
11470
11471
11472
11473
11474
11475test -z "$DLLTOOL" && DLLTOOL=dlltool
11476
11477
11478
11479
11480
11481test -z "$OBJDUMP" && OBJDUMP=objdump
11482
11483
11484
11485
11486
11487
11488
11489        enable_dlopen=no
11490
11491
11492
11493            # Check whether --enable-shared was given.
11494if test "${enable_shared+set}" = set; then :
11495  enableval=$enable_shared; p=${PACKAGE-default}
11496    case $enableval in
11497    yes) enable_shared=yes ;;
11498    no) enable_shared=no ;;
11499    *)
11500      enable_shared=no
11501      # Look at the argument we got.  We use all the common list separators.
11502      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11503      for pkg in $enableval; do
11504	IFS=$lt_save_ifs
11505	if test "X$pkg" = "X$p"; then
11506	  enable_shared=yes
11507	fi
11508      done
11509      IFS=$lt_save_ifs
11510      ;;
11511    esac
11512else
11513  enable_shared=yes
11514fi
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524  # Check whether --enable-static was given.
11525if test "${enable_static+set}" = set; then :
11526  enableval=$enable_static; p=${PACKAGE-default}
11527    case $enableval in
11528    yes) enable_static=yes ;;
11529    no) enable_static=no ;;
11530    *)
11531     enable_static=no
11532      # Look at the argument we got.  We use all the common list separators.
11533      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11534      for pkg in $enableval; do
11535	IFS=$lt_save_ifs
11536	if test "X$pkg" = "X$p"; then
11537	  enable_static=yes
11538	fi
11539      done
11540      IFS=$lt_save_ifs
11541      ;;
11542    esac
11543else
11544  enable_static=yes
11545fi
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556# Check whether --with-pic was given.
11557if test "${with_pic+set}" = set; then :
11558  withval=$with_pic; lt_p=${PACKAGE-default}
11559    case $withval in
11560    yes|no) pic_mode=$withval ;;
11561    *)
11562      pic_mode=default
11563      # Look at the argument we got.  We use all the common list separators.
11564      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11565      for lt_pkg in $withval; do
11566	IFS=$lt_save_ifs
11567	if test "X$lt_pkg" = "X$lt_p"; then
11568	  pic_mode=yes
11569	fi
11570      done
11571      IFS=$lt_save_ifs
11572      ;;
11573    esac
11574else
11575  pic_mode=default
11576fi
11577
11578
11579
11580
11581
11582
11583
11584
11585  # Check whether --enable-fast-install was given.
11586if test "${enable_fast_install+set}" = set; then :
11587  enableval=$enable_fast_install; p=${PACKAGE-default}
11588    case $enableval in
11589    yes) enable_fast_install=yes ;;
11590    no) enable_fast_install=no ;;
11591    *)
11592      enable_fast_install=no
11593      # Look at the argument we got.  We use all the common list separators.
11594      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11595      for pkg in $enableval; do
11596	IFS=$lt_save_ifs
11597	if test "X$pkg" = "X$p"; then
11598	  enable_fast_install=yes
11599	fi
11600      done
11601      IFS=$lt_save_ifs
11602      ;;
11603    esac
11604else
11605  enable_fast_install=yes
11606fi
11607
11608
11609
11610
11611
11612
11613
11614
11615  shared_archive_member_spec=
11616case $host,$enable_shared in
11617power*-*-aix[5-9]*,yes)
11618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11619$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11620
11621# Check whether --with-aix-soname was given.
11622if test "${with_aix_soname+set}" = set; then :
11623  withval=$with_aix_soname; case $withval in
11624    aix|svr4|both)
11625      ;;
11626    *)
11627      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11628      ;;
11629    esac
11630    lt_cv_with_aix_soname=$with_aix_soname
11631else
11632  if ${lt_cv_with_aix_soname+:} false; then :
11633  $as_echo_n "(cached) " >&6
11634else
11635  lt_cv_with_aix_soname=aix
11636fi
11637
11638    with_aix_soname=$lt_cv_with_aix_soname
11639fi
11640
11641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11642$as_echo "$with_aix_soname" >&6; }
11643  if test aix != "$with_aix_soname"; then
11644    # For the AIX way of multilib, we name the shared archive member
11645    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11646    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11647    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11648    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11649    if test 64 = "${OBJECT_MODE-32}"; then
11650      shared_archive_member_spec=shr_64
11651    else
11652      shared_archive_member_spec=shr
11653    fi
11654  fi
11655  ;;
11656*)
11657  with_aix_soname=aix
11658  ;;
11659esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670# This can be used to rebuild libtool when needed
11671LIBTOOL_DEPS=$ltmain
11672
11673# Always use our own libtool.
11674LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705test -z "$LN_S" && LN_S="ln -s"
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720if test -n "${ZSH_VERSION+set}"; then
11721   setopt NO_GLOB_SUBST
11722fi
11723
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11725$as_echo_n "checking for objdir... " >&6; }
11726if ${lt_cv_objdir+:} false; then :
11727  $as_echo_n "(cached) " >&6
11728else
11729  rm -f .libs 2>/dev/null
11730mkdir .libs 2>/dev/null
11731if test -d .libs; then
11732  lt_cv_objdir=.libs
11733else
11734  # MS-DOS does not allow filenames that begin with a dot.
11735  lt_cv_objdir=_libs
11736fi
11737rmdir .libs 2>/dev/null
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11740$as_echo "$lt_cv_objdir" >&6; }
11741objdir=$lt_cv_objdir
11742
11743
11744
11745
11746
11747cat >>confdefs.h <<_ACEOF
11748#define LT_OBJDIR "$lt_cv_objdir/"
11749_ACEOF
11750
11751
11752
11753
11754case $host_os in
11755aix3*)
11756  # AIX sometimes has problems with the GCC collect2 program.  For some
11757  # reason, if we set the COLLECT_NAMES environment variable, the problems
11758  # vanish in a puff of smoke.
11759  if test set != "${COLLECT_NAMES+set}"; then
11760    COLLECT_NAMES=
11761    export COLLECT_NAMES
11762  fi
11763  ;;
11764esac
11765
11766# Global variables:
11767ofile=libtool
11768can_build_shared=yes
11769
11770# All known linkers require a '.a' archive for static linking (except MSVC,
11771# which needs '.lib').
11772libext=a
11773
11774with_gnu_ld=$lt_cv_prog_gnu_ld
11775
11776old_CC=$CC
11777old_CFLAGS=$CFLAGS
11778
11779# Set sane defaults for various variables
11780test -z "$CC" && CC=cc
11781test -z "$LTCC" && LTCC=$CC
11782test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11783test -z "$LD" && LD=ld
11784test -z "$ac_objext" && ac_objext=o
11785
11786func_cc_basename $compiler
11787cc_basename=$func_cc_basename_result
11788
11789
11790# Only perform the check for file, if the check method requires it
11791test -z "$MAGIC_CMD" && MAGIC_CMD=file
11792case $deplibs_check_method in
11793file_magic*)
11794  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11796$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11797if ${lt_cv_path_MAGIC_CMD+:} false; then :
11798  $as_echo_n "(cached) " >&6
11799else
11800  case $MAGIC_CMD in
11801[\\/*] |  ?:[\\/]*)
11802  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11803  ;;
11804*)
11805  lt_save_MAGIC_CMD=$MAGIC_CMD
11806  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11807  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11808  for ac_dir in $ac_dummy; do
11809    IFS=$lt_save_ifs
11810    test -z "$ac_dir" && ac_dir=.
11811    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11812      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11813      if test -n "$file_magic_test_file"; then
11814	case $deplibs_check_method in
11815	"file_magic "*)
11816	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11817	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11818	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11819	    $EGREP "$file_magic_regex" > /dev/null; then
11820	    :
11821	  else
11822	    cat <<_LT_EOF 1>&2
11823
11824*** Warning: the command libtool uses to detect shared libraries,
11825*** $file_magic_cmd, produces output that libtool cannot recognize.
11826*** The result is that libtool may fail to recognize shared libraries
11827*** as such.  This will affect the creation of libtool libraries that
11828*** depend on shared libraries, but programs linked with such libtool
11829*** libraries will work regardless of this problem.  Nevertheless, you
11830*** may want to report the problem to your system manager and/or to
11831*** bug-libtool@gnu.org
11832
11833_LT_EOF
11834	  fi ;;
11835	esac
11836      fi
11837      break
11838    fi
11839  done
11840  IFS=$lt_save_ifs
11841  MAGIC_CMD=$lt_save_MAGIC_CMD
11842  ;;
11843esac
11844fi
11845
11846MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11847if test -n "$MAGIC_CMD"; then
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11849$as_echo "$MAGIC_CMD" >&6; }
11850else
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852$as_echo "no" >&6; }
11853fi
11854
11855
11856
11857
11858
11859if test -z "$lt_cv_path_MAGIC_CMD"; then
11860  if test -n "$ac_tool_prefix"; then
11861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11862$as_echo_n "checking for file... " >&6; }
11863if ${lt_cv_path_MAGIC_CMD+:} false; then :
11864  $as_echo_n "(cached) " >&6
11865else
11866  case $MAGIC_CMD in
11867[\\/*] |  ?:[\\/]*)
11868  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11869  ;;
11870*)
11871  lt_save_MAGIC_CMD=$MAGIC_CMD
11872  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11873  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11874  for ac_dir in $ac_dummy; do
11875    IFS=$lt_save_ifs
11876    test -z "$ac_dir" && ac_dir=.
11877    if test -f "$ac_dir/file"; then
11878      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11879      if test -n "$file_magic_test_file"; then
11880	case $deplibs_check_method in
11881	"file_magic "*)
11882	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11883	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11884	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11885	    $EGREP "$file_magic_regex" > /dev/null; then
11886	    :
11887	  else
11888	    cat <<_LT_EOF 1>&2
11889
11890*** Warning: the command libtool uses to detect shared libraries,
11891*** $file_magic_cmd, produces output that libtool cannot recognize.
11892*** The result is that libtool may fail to recognize shared libraries
11893*** as such.  This will affect the creation of libtool libraries that
11894*** depend on shared libraries, but programs linked with such libtool
11895*** libraries will work regardless of this problem.  Nevertheless, you
11896*** may want to report the problem to your system manager and/or to
11897*** bug-libtool@gnu.org
11898
11899_LT_EOF
11900	  fi ;;
11901	esac
11902      fi
11903      break
11904    fi
11905  done
11906  IFS=$lt_save_ifs
11907  MAGIC_CMD=$lt_save_MAGIC_CMD
11908  ;;
11909esac
11910fi
11911
11912MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11913if test -n "$MAGIC_CMD"; then
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11915$as_echo "$MAGIC_CMD" >&6; }
11916else
11917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
11919fi
11920
11921
11922  else
11923    MAGIC_CMD=:
11924  fi
11925fi
11926
11927  fi
11928  ;;
11929esac
11930
11931# Use C for the default configuration in the libtool script
11932
11933lt_save_CC=$CC
11934ac_ext=c
11935ac_cpp='$CPP $CPPFLAGS'
11936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939
11940
11941# Source file extension for C test sources.
11942ac_ext=c
11943
11944# Object file extension for compiled C test sources.
11945objext=o
11946objext=$objext
11947
11948# Code to be used in simple compile tests
11949lt_simple_compile_test_code="int some_variable = 0;"
11950
11951# Code to be used in simple link tests
11952lt_simple_link_test_code='int main(){return(0);}'
11953
11954
11955
11956
11957
11958
11959
11960# If no C compiler was specified, use CC.
11961LTCC=${LTCC-"$CC"}
11962
11963# If no C compiler flags were specified, use CFLAGS.
11964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11965
11966# Allow CC to be a program name with arguments.
11967compiler=$CC
11968
11969# Save the default compiler, since it gets overwritten when the other
11970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11971compiler_DEFAULT=$CC
11972
11973# save warnings/boilerplate of simple test code
11974ac_outfile=conftest.$ac_objext
11975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11977_lt_compiler_boilerplate=`cat conftest.err`
11978$RM conftest*
11979
11980ac_outfile=conftest.$ac_objext
11981echo "$lt_simple_link_test_code" >conftest.$ac_ext
11982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11983_lt_linker_boilerplate=`cat conftest.err`
11984$RM -r conftest*
11985
11986
11987## CAVEAT EMPTOR:
11988## There is no encapsulation within the following macros, do not change
11989## the running order or otherwise move them around unless you know exactly
11990## what you are doing...
11991if test -n "$compiler"; then
11992
11993lt_prog_compiler_no_builtin_flag=
11994
11995if test yes = "$GCC"; then
11996  case $cc_basename in
11997  nvcc*)
11998    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11999  *)
12000    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12001  esac
12002
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12004$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12005if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  lt_cv_prog_compiler_rtti_exceptions=no
12009   ac_outfile=conftest.$ac_objext
12010   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12012   # Insert the option either (1) after the last *FLAGS variable, or
12013   # (2) before a word containing "conftest.", or (3) at the end.
12014   # Note that $ac_compile itself does not contain backslashes and begins
12015   # with a dollar sign (not a hyphen), so the echo should work correctly.
12016   # The option is referenced via a variable to avoid confusing sed.
12017   lt_compile=`echo "$ac_compile" | $SED \
12018   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020   -e 's:$: $lt_compiler_flag:'`
12021   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12022   (eval "$lt_compile" 2>conftest.err)
12023   ac_status=$?
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   if (exit $ac_status) && test -s "$ac_outfile"; then
12027     # The compiler can only warn and ignore the option if not recognized
12028     # So say no if there are warnings other than the usual output.
12029     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12030     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12031     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12032       lt_cv_prog_compiler_rtti_exceptions=yes
12033     fi
12034   fi
12035   $RM conftest*
12036
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12039$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12040
12041if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12042    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12043else
12044    :
12045fi
12046
12047fi
12048
12049
12050
12051
12052
12053
12054  lt_prog_compiler_wl=
12055lt_prog_compiler_pic=
12056lt_prog_compiler_static=
12057
12058
12059  if test yes = "$GCC"; then
12060    lt_prog_compiler_wl='-Wl,'
12061    lt_prog_compiler_static='-static'
12062
12063    case $host_os in
12064      aix*)
12065      # All AIX code is PIC.
12066      if test ia64 = "$host_cpu"; then
12067	# AIX 5 now supports IA64 processor
12068	lt_prog_compiler_static='-Bstatic'
12069      fi
12070      lt_prog_compiler_pic='-fPIC'
12071      ;;
12072
12073    amigaos*)
12074      case $host_cpu in
12075      powerpc)
12076            # see comment about AmigaOS4 .so support
12077            lt_prog_compiler_pic='-fPIC'
12078        ;;
12079      m68k)
12080            # FIXME: we need at least 68020 code to build shared libraries, but
12081            # adding the '-m68020' flag to GCC prevents building anything better,
12082            # like '-m68040'.
12083            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12084        ;;
12085      esac
12086      ;;
12087
12088    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12089      # PIC is the default for these OSes.
12090      ;;
12091
12092    mingw* | cygwin* | pw32* | os2* | cegcc*)
12093      # This hack is so that the source file can tell whether it is being
12094      # built for inclusion in a dll (and should export symbols for example).
12095      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12096      # (--disable-auto-import) libraries
12097      lt_prog_compiler_pic='-DDLL_EXPORT'
12098      case $host_os in
12099      os2*)
12100	lt_prog_compiler_static='$wl-static'
12101	;;
12102      esac
12103      ;;
12104
12105    darwin* | rhapsody*)
12106      # PIC is the default on this platform
12107      # Common symbols not allowed in MH_DYLIB files
12108      lt_prog_compiler_pic='-fno-common'
12109      ;;
12110
12111    haiku*)
12112      # PIC is the default for Haiku.
12113      # The "-static" flag exists, but is broken.
12114      lt_prog_compiler_static=
12115      ;;
12116
12117    hpux*)
12118      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12119      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12120      # sets the default TLS model and affects inlining.
12121      case $host_cpu in
12122      hppa*64*)
12123	# +Z the default
12124	;;
12125      *)
12126	lt_prog_compiler_pic='-fPIC'
12127	;;
12128      esac
12129      ;;
12130
12131    interix[3-9]*)
12132      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12133      # Instead, we relocate shared libraries at runtime.
12134      ;;
12135
12136    msdosdjgpp*)
12137      # Just because we use GCC doesn't mean we suddenly get shared libraries
12138      # on systems that don't support them.
12139      lt_prog_compiler_can_build_shared=no
12140      enable_shared=no
12141      ;;
12142
12143    *nto* | *qnx*)
12144      # QNX uses GNU C++, but need to define -shared option too, otherwise
12145      # it will coredump.
12146      lt_prog_compiler_pic='-fPIC -shared'
12147      ;;
12148
12149    sysv4*MP*)
12150      if test -d /usr/nec; then
12151	lt_prog_compiler_pic=-Kconform_pic
12152      fi
12153      ;;
12154
12155    *)
12156      lt_prog_compiler_pic='-fPIC'
12157      ;;
12158    esac
12159
12160    case $cc_basename in
12161    nvcc*) # Cuda Compiler Driver 2.2
12162      lt_prog_compiler_wl='-Xlinker '
12163      if test -n "$lt_prog_compiler_pic"; then
12164        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12165      fi
12166      ;;
12167    esac
12168  else
12169    # PORTME Check for flag to pass linker flags through the system compiler.
12170    case $host_os in
12171    aix*)
12172      lt_prog_compiler_wl='-Wl,'
12173      if test ia64 = "$host_cpu"; then
12174	# AIX 5 now supports IA64 processor
12175	lt_prog_compiler_static='-Bstatic'
12176      else
12177	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12178      fi
12179      ;;
12180
12181    darwin* | rhapsody*)
12182      # PIC is the default on this platform
12183      # Common symbols not allowed in MH_DYLIB files
12184      lt_prog_compiler_pic='-fno-common'
12185      case $cc_basename in
12186      nagfor*)
12187        # NAG Fortran compiler
12188        lt_prog_compiler_wl='-Wl,-Wl,,'
12189        lt_prog_compiler_pic='-PIC'
12190        lt_prog_compiler_static='-Bstatic'
12191        ;;
12192      esac
12193      ;;
12194
12195    mingw* | cygwin* | pw32* | os2* | cegcc*)
12196      # This hack is so that the source file can tell whether it is being
12197      # built for inclusion in a dll (and should export symbols for example).
12198      lt_prog_compiler_pic='-DDLL_EXPORT'
12199      case $host_os in
12200      os2*)
12201	lt_prog_compiler_static='$wl-static'
12202	;;
12203      esac
12204      ;;
12205
12206    hpux9* | hpux10* | hpux11*)
12207      lt_prog_compiler_wl='-Wl,'
12208      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12209      # not for PA HP-UX.
12210      case $host_cpu in
12211      hppa*64*|ia64*)
12212	# +Z the default
12213	;;
12214      *)
12215	lt_prog_compiler_pic='+Z'
12216	;;
12217      esac
12218      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12219      lt_prog_compiler_static='$wl-a ${wl}archive'
12220      ;;
12221
12222    irix5* | irix6* | nonstopux*)
12223      lt_prog_compiler_wl='-Wl,'
12224      # PIC (with -KPIC) is the default.
12225      lt_prog_compiler_static='-non_shared'
12226      ;;
12227
12228    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12229      case $cc_basename in
12230      # old Intel for x86_64, which still supported -KPIC.
12231      ecc*)
12232	lt_prog_compiler_wl='-Wl,'
12233	lt_prog_compiler_pic='-KPIC'
12234	lt_prog_compiler_static='-static'
12235        ;;
12236      # flang / f18. f95 an alias for gfortran or flang on Debian
12237      flang* | f18* | f95*)
12238	lt_prog_compiler_wl='-Wl,'
12239	lt_prog_compiler_pic='-fPIC'
12240	lt_prog_compiler_static='-static'
12241        ;;
12242      # icc used to be incompatible with GCC.
12243      # ICC 10 doesn't accept -KPIC any more.
12244      icc* | ifort*)
12245	lt_prog_compiler_wl='-Wl,'
12246	lt_prog_compiler_pic='-fPIC'
12247	lt_prog_compiler_static='-static'
12248        ;;
12249      # Lahey Fortran 8.1.
12250      lf95*)
12251	lt_prog_compiler_wl='-Wl,'
12252	lt_prog_compiler_pic='--shared'
12253	lt_prog_compiler_static='--static'
12254	;;
12255      nagfor*)
12256	# NAG Fortran compiler
12257	lt_prog_compiler_wl='-Wl,-Wl,,'
12258	lt_prog_compiler_pic='-PIC'
12259	lt_prog_compiler_static='-Bstatic'
12260	;;
12261      tcc*)
12262	# Fabrice Bellard et al's Tiny C Compiler
12263	lt_prog_compiler_wl='-Wl,'
12264	lt_prog_compiler_pic='-fPIC'
12265	lt_prog_compiler_static='-static'
12266	;;
12267      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12268        # Portland Group compilers (*not* the Pentium gcc compiler,
12269	# which looks to be a dead project)
12270	lt_prog_compiler_wl='-Wl,'
12271	lt_prog_compiler_pic='-fpic'
12272	lt_prog_compiler_static='-Bstatic'
12273        ;;
12274      ccc*)
12275        lt_prog_compiler_wl='-Wl,'
12276        # All Alpha code is PIC.
12277        lt_prog_compiler_static='-non_shared'
12278        ;;
12279      xl* | bgxl* | bgf* | mpixl*)
12280	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12281	lt_prog_compiler_wl='-Wl,'
12282	lt_prog_compiler_pic='-qpic'
12283	lt_prog_compiler_static='-qstaticlink'
12284	;;
12285      *)
12286	case `$CC -V 2>&1 | sed 5q` in
12287	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12288	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12289	  lt_prog_compiler_pic='-KPIC'
12290	  lt_prog_compiler_static='-Bstatic'
12291	  lt_prog_compiler_wl=''
12292	  ;;
12293	*Sun\ F* | *Sun*Fortran*)
12294	  lt_prog_compiler_pic='-KPIC'
12295	  lt_prog_compiler_static='-Bstatic'
12296	  lt_prog_compiler_wl='-Qoption ld '
12297	  ;;
12298	*Sun\ C*)
12299	  # Sun C 5.9
12300	  lt_prog_compiler_pic='-KPIC'
12301	  lt_prog_compiler_static='-Bstatic'
12302	  lt_prog_compiler_wl='-Wl,'
12303	  ;;
12304        *Intel*\ [CF]*Compiler*)
12305	  lt_prog_compiler_wl='-Wl,'
12306	  lt_prog_compiler_pic='-fPIC'
12307	  lt_prog_compiler_static='-static'
12308	  ;;
12309	*Portland\ Group*)
12310	  lt_prog_compiler_wl='-Wl,'
12311	  lt_prog_compiler_pic='-fpic'
12312	  lt_prog_compiler_static='-Bstatic'
12313	  ;;
12314	esac
12315	;;
12316      esac
12317      ;;
12318
12319    newsos6)
12320      lt_prog_compiler_pic='-KPIC'
12321      lt_prog_compiler_static='-Bstatic'
12322      ;;
12323
12324    *nto* | *qnx*)
12325      # QNX uses GNU C++, but need to define -shared option too, otherwise
12326      # it will coredump.
12327      lt_prog_compiler_pic='-fPIC -shared'
12328      ;;
12329
12330    osf3* | osf4* | osf5*)
12331      lt_prog_compiler_wl='-Wl,'
12332      # All OSF/1 code is PIC.
12333      lt_prog_compiler_static='-non_shared'
12334      ;;
12335
12336    rdos*)
12337      lt_prog_compiler_static='-non_shared'
12338      ;;
12339
12340    solaris*)
12341      lt_prog_compiler_pic='-KPIC'
12342      lt_prog_compiler_static='-Bstatic'
12343      case $cc_basename in
12344      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12345	lt_prog_compiler_wl='-Qoption ld ';;
12346      *)
12347	lt_prog_compiler_wl='-Wl,';;
12348      esac
12349      ;;
12350
12351    sunos4*)
12352      lt_prog_compiler_wl='-Qoption ld '
12353      lt_prog_compiler_pic='-PIC'
12354      lt_prog_compiler_static='-Bstatic'
12355      ;;
12356
12357    sysv4 | sysv4.2uw2* | sysv4.3*)
12358      lt_prog_compiler_wl='-Wl,'
12359      lt_prog_compiler_pic='-KPIC'
12360      lt_prog_compiler_static='-Bstatic'
12361      ;;
12362
12363    sysv4*MP*)
12364      if test -d /usr/nec; then
12365	lt_prog_compiler_pic='-Kconform_pic'
12366	lt_prog_compiler_static='-Bstatic'
12367      fi
12368      ;;
12369
12370    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12371      lt_prog_compiler_wl='-Wl,'
12372      lt_prog_compiler_pic='-KPIC'
12373      lt_prog_compiler_static='-Bstatic'
12374      ;;
12375
12376    unicos*)
12377      lt_prog_compiler_wl='-Wl,'
12378      lt_prog_compiler_can_build_shared=no
12379      ;;
12380
12381    uts4*)
12382      lt_prog_compiler_pic='-pic'
12383      lt_prog_compiler_static='-Bstatic'
12384      ;;
12385
12386    *)
12387      lt_prog_compiler_can_build_shared=no
12388      ;;
12389    esac
12390  fi
12391
12392case $host_os in
12393  # For platforms that do not support PIC, -DPIC is meaningless:
12394  *djgpp*)
12395    lt_prog_compiler_pic=
12396    ;;
12397  *)
12398    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12399    ;;
12400esac
12401
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12403$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12404if ${lt_cv_prog_compiler_pic+:} false; then :
12405  $as_echo_n "(cached) " >&6
12406else
12407  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12410$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12411lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12412
12413#
12414# Check to make sure the PIC flag actually works.
12415#
12416if test -n "$lt_prog_compiler_pic"; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12418$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12419if ${lt_cv_prog_compiler_pic_works+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  lt_cv_prog_compiler_pic_works=no
12423   ac_outfile=conftest.$ac_objext
12424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12426   # Insert the option either (1) after the last *FLAGS variable, or
12427   # (2) before a word containing "conftest.", or (3) at the end.
12428   # Note that $ac_compile itself does not contain backslashes and begins
12429   # with a dollar sign (not a hyphen), so the echo should work correctly.
12430   # The option is referenced via a variable to avoid confusing sed.
12431   lt_compile=`echo "$ac_compile" | $SED \
12432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434   -e 's:$: $lt_compiler_flag:'`
12435   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436   (eval "$lt_compile" 2>conftest.err)
12437   ac_status=$?
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   if (exit $ac_status) && test -s "$ac_outfile"; then
12441     # The compiler can only warn and ignore the option if not recognized
12442     # So say no if there are warnings other than the usual output.
12443     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12444     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12445     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12446       lt_cv_prog_compiler_pic_works=yes
12447     fi
12448   fi
12449   $RM conftest*
12450
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12453$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12454
12455if test yes = "$lt_cv_prog_compiler_pic_works"; then
12456    case $lt_prog_compiler_pic in
12457     "" | " "*) ;;
12458     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12459     esac
12460else
12461    lt_prog_compiler_pic=
12462     lt_prog_compiler_can_build_shared=no
12463fi
12464
12465fi
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477#
12478# Check to make sure the static flag actually works.
12479#
12480wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12482$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12483if ${lt_cv_prog_compiler_static_works+:} false; then :
12484  $as_echo_n "(cached) " >&6
12485else
12486  lt_cv_prog_compiler_static_works=no
12487   save_LDFLAGS=$LDFLAGS
12488   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12489   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12490   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12491     # The linker can only warn and ignore the option if not recognized
12492     # So say no if there are warnings
12493     if test -s conftest.err; then
12494       # Append any errors to the config.log.
12495       cat conftest.err 1>&5
12496       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12497       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12498       if diff conftest.exp conftest.er2 >/dev/null; then
12499         lt_cv_prog_compiler_static_works=yes
12500       fi
12501     else
12502       lt_cv_prog_compiler_static_works=yes
12503     fi
12504   fi
12505   $RM -r conftest*
12506   LDFLAGS=$save_LDFLAGS
12507
12508fi
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12510$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12511
12512if test yes = "$lt_cv_prog_compiler_static_works"; then
12513    :
12514else
12515    lt_prog_compiler_static=
12516fi
12517
12518
12519
12520
12521
12522
12523
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12525$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12526if ${lt_cv_prog_compiler_c_o+:} false; then :
12527  $as_echo_n "(cached) " >&6
12528else
12529  lt_cv_prog_compiler_c_o=no
12530   $RM -r conftest 2>/dev/null
12531   mkdir conftest
12532   cd conftest
12533   mkdir out
12534   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12535
12536   lt_compiler_flag="-o out/conftest2.$ac_objext"
12537   # Insert the option either (1) after the last *FLAGS variable, or
12538   # (2) before a word containing "conftest.", or (3) at the end.
12539   # Note that $ac_compile itself does not contain backslashes and begins
12540   # with a dollar sign (not a hyphen), so the echo should work correctly.
12541   lt_compile=`echo "$ac_compile" | $SED \
12542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12544   -e 's:$: $lt_compiler_flag:'`
12545   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12546   (eval "$lt_compile" 2>out/conftest.err)
12547   ac_status=$?
12548   cat out/conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12551   then
12552     # The compiler can only warn and ignore the option if not recognized
12553     # So say no if there are warnings
12554     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12555     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12556     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12557       lt_cv_prog_compiler_c_o=yes
12558     fi
12559   fi
12560   chmod u+w . 2>&5
12561   $RM conftest*
12562   # SGI C++ compiler will create directory out/ii_files/ for
12563   # template instantiation
12564   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12565   $RM out/* && rmdir out
12566   cd ..
12567   $RM -r conftest
12568   $RM conftest*
12569
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12572$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12573
12574
12575
12576
12577
12578
12579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12581if ${lt_cv_prog_compiler_c_o+:} false; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  lt_cv_prog_compiler_c_o=no
12585   $RM -r conftest 2>/dev/null
12586   mkdir conftest
12587   cd conftest
12588   mkdir out
12589   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590
12591   lt_compiler_flag="-o out/conftest2.$ac_objext"
12592   # Insert the option either (1) after the last *FLAGS variable, or
12593   # (2) before a word containing "conftest.", or (3) at the end.
12594   # Note that $ac_compile itself does not contain backslashes and begins
12595   # with a dollar sign (not a hyphen), so the echo should work correctly.
12596   lt_compile=`echo "$ac_compile" | $SED \
12597   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599   -e 's:$: $lt_compiler_flag:'`
12600   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12601   (eval "$lt_compile" 2>out/conftest.err)
12602   ac_status=$?
12603   cat out/conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12606   then
12607     # The compiler can only warn and ignore the option if not recognized
12608     # So say no if there are warnings
12609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12610     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612       lt_cv_prog_compiler_c_o=yes
12613     fi
12614   fi
12615   chmod u+w . 2>&5
12616   $RM conftest*
12617   # SGI C++ compiler will create directory out/ii_files/ for
12618   # template instantiation
12619   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12620   $RM out/* && rmdir out
12621   cd ..
12622   $RM -r conftest
12623   $RM conftest*
12624
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12627$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12628
12629
12630
12631
12632hard_links=nottested
12633if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12634  # do not overwrite the value of need_locks provided by the user
12635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12636$as_echo_n "checking if we can lock with hard links... " >&6; }
12637  hard_links=yes
12638  $RM conftest*
12639  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12640  touch conftest.a
12641  ln conftest.a conftest.b 2>&5 || hard_links=no
12642  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12644$as_echo "$hard_links" >&6; }
12645  if test no = "$hard_links"; then
12646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12647$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12648    need_locks=warn
12649  fi
12650else
12651  need_locks=no
12652fi
12653
12654
12655
12656
12657
12658
12659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12660$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12661
12662  runpath_var=
12663  allow_undefined_flag=
12664  always_export_symbols=no
12665  archive_cmds=
12666  archive_expsym_cmds=
12667  compiler_needs_object=no
12668  enable_shared_with_static_runtimes=no
12669  export_dynamic_flag_spec=
12670  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12671  hardcode_automatic=no
12672  hardcode_direct=no
12673  hardcode_direct_absolute=no
12674  hardcode_libdir_flag_spec=
12675  hardcode_libdir_separator=
12676  hardcode_minus_L=no
12677  hardcode_shlibpath_var=unsupported
12678  inherit_rpath=no
12679  link_all_deplibs=unknown
12680  module_cmds=
12681  module_expsym_cmds=
12682  old_archive_from_new_cmds=
12683  old_archive_from_expsyms_cmds=
12684  thread_safe_flag_spec=
12685  whole_archive_flag_spec=
12686  # include_expsyms should be a list of space-separated symbols to be *always*
12687  # included in the symbol list
12688  include_expsyms=
12689  # exclude_expsyms can be an extended regexp of symbols to exclude
12690  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12691  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12692  # as well as any symbol that contains 'd'.
12693  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12694  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12695  # platforms (ab)use it in PIC code, but their linkers get confused if
12696  # the symbol is explicitly referenced.  Since portable code cannot
12697  # rely on this symbol name, it's probably fine to never include it in
12698  # preloaded symbol tables.
12699  # Exclude shared library initialization/finalization symbols.
12700  extract_expsyms_cmds=
12701
12702  case $host_os in
12703  cygwin* | mingw* | pw32* | cegcc*)
12704    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12705    # When not using gcc, we currently assume that we are using
12706    # Microsoft Visual C++.
12707    if test yes != "$GCC"; then
12708      with_gnu_ld=no
12709    fi
12710    ;;
12711  interix*)
12712    # we just hope/assume this is gcc and not c89 (= MSVC++)
12713    with_gnu_ld=yes
12714    ;;
12715  openbsd* | bitrig*)
12716    with_gnu_ld=no
12717    ;;
12718  linux* | k*bsd*-gnu | gnu*)
12719    link_all_deplibs=no
12720    ;;
12721  esac
12722
12723  ld_shlibs=yes
12724
12725  # On some targets, GNU ld is compatible enough with the native linker
12726  # that we're better off using the native interface for both.
12727  lt_use_gnu_ld_interface=no
12728  if test yes = "$with_gnu_ld"; then
12729    case $host_os in
12730      aix*)
12731	# The AIX port of GNU ld has always aspired to compatibility
12732	# with the native linker.  However, as the warning in the GNU ld
12733	# block says, versions before 2.19.5* couldn't really create working
12734	# shared libraries, regardless of the interface used.
12735	case `$LD -v 2>&1` in
12736	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12737	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12738	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12739	  *)
12740	    lt_use_gnu_ld_interface=yes
12741	    ;;
12742	esac
12743	;;
12744      *)
12745	lt_use_gnu_ld_interface=yes
12746	;;
12747    esac
12748  fi
12749
12750  if test yes = "$lt_use_gnu_ld_interface"; then
12751    # If archive_cmds runs LD, not CC, wlarc should be empty
12752    wlarc='$wl'
12753
12754    # Set some defaults for GNU ld with shared library support. These
12755    # are reset later if shared libraries are not supported. Putting them
12756    # here allows them to be overridden if necessary.
12757    runpath_var=LD_RUN_PATH
12758    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12759    export_dynamic_flag_spec='$wl--export-dynamic'
12760    # ancient GNU ld didn't support --whole-archive et. al.
12761    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12762      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12763    else
12764      whole_archive_flag_spec=
12765    fi
12766    supports_anon_versioning=no
12767    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12768      *GNU\ gold*) supports_anon_versioning=yes ;;
12769      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12770      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12771      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12772      *\ 2.11.*) ;; # other 2.11 versions
12773      *) supports_anon_versioning=yes ;;
12774    esac
12775
12776    # See if GNU ld supports shared libraries.
12777    case $host_os in
12778    aix[3-9]*)
12779      # On AIX/PPC, the GNU linker is very broken
12780      if test ia64 != "$host_cpu"; then
12781	ld_shlibs=no
12782	cat <<_LT_EOF 1>&2
12783
12784*** Warning: the GNU linker, at least up to release 2.19, is reported
12785*** to be unable to reliably create shared libraries on AIX.
12786*** Therefore, libtool is disabling shared libraries support.  If you
12787*** really care for shared libraries, you may want to install binutils
12788*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12789*** You will then need to restart the configuration process.
12790
12791_LT_EOF
12792      fi
12793      ;;
12794
12795    amigaos*)
12796      case $host_cpu in
12797      powerpc)
12798            # see comment about AmigaOS4 .so support
12799            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12800            archive_expsym_cmds=''
12801        ;;
12802      m68k)
12803            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)'
12804            hardcode_libdir_flag_spec='-L$libdir'
12805            hardcode_minus_L=yes
12806        ;;
12807      esac
12808      ;;
12809
12810    beos*)
12811      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12812	allow_undefined_flag=unsupported
12813	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12814	# support --undefined.  This deserves some investigation.  FIXME
12815	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12816      else
12817	ld_shlibs=no
12818      fi
12819      ;;
12820
12821    cygwin* | mingw* | pw32* | cegcc*)
12822      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12823      # as there is no search path for DLLs.
12824      hardcode_libdir_flag_spec='-L$libdir'
12825      export_dynamic_flag_spec='$wl--export-all-symbols'
12826      allow_undefined_flag=unsupported
12827      always_export_symbols=no
12828      enable_shared_with_static_runtimes=yes
12829      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'
12830      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12831
12832      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12833        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12834	# If the export-symbols file already is a .def file, use it as
12835	# is; otherwise, prepend EXPORTS...
12836	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12837          cp $export_symbols $output_objdir/$soname.def;
12838        else
12839          echo EXPORTS > $output_objdir/$soname.def;
12840          cat $export_symbols >> $output_objdir/$soname.def;
12841        fi~
12842        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12843      else
12844	ld_shlibs=no
12845      fi
12846      ;;
12847
12848    haiku*)
12849      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12850      link_all_deplibs=yes
12851      ;;
12852
12853    os2*)
12854      hardcode_libdir_flag_spec='-L$libdir'
12855      hardcode_minus_L=yes
12856      allow_undefined_flag=unsupported
12857      shrext_cmds=.dll
12858      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12859	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12860	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12861	$ECHO EXPORTS >> $output_objdir/$libname.def~
12862	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12863	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12864	emximp -o $lib $output_objdir/$libname.def'
12865      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12866	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12867	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12868	$ECHO EXPORTS >> $output_objdir/$libname.def~
12869	prefix_cmds="$SED"~
12870	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12871	  prefix_cmds="$prefix_cmds -e 1d";
12872	fi~
12873	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12874	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12875	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12876	emximp -o $lib $output_objdir/$libname.def'
12877      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12878      enable_shared_with_static_runtimes=yes
12879      ;;
12880
12881    interix[3-9]*)
12882      hardcode_direct=no
12883      hardcode_shlibpath_var=no
12884      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12885      export_dynamic_flag_spec='$wl-E'
12886      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12887      # Instead, shared libraries are loaded at an image base (0x10000000 by
12888      # default) and relocated if they conflict, which is a slow very memory
12889      # consuming and fragmenting process.  To avoid this, we pick a random,
12890      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12891      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12892      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12893      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'
12894      ;;
12895
12896    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12897      tmp_diet=no
12898      if test linux-dietlibc = "$host_os"; then
12899	case $cc_basename in
12900	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12901	esac
12902      fi
12903      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12904	 && test no = "$tmp_diet"
12905      then
12906	tmp_addflag=' $pic_flag'
12907	tmp_sharedflag='-shared'
12908	case $cc_basename,$host_cpu in
12909        pgcc*)				# Portland Group C compiler
12910	  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'
12911	  tmp_addflag=' $pic_flag'
12912	  ;;
12913	pgf77* | pgf90* | pgf95* | pgfortran*)
12914					# Portland Group f77 and f90 compilers
12915	  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'
12916	  tmp_addflag=' $pic_flag -Mnomain' ;;
12917	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12918	  tmp_addflag=' -i_dynamic' ;;
12919	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12920	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12921	ifc* | ifort*)			# Intel Fortran compiler
12922	  tmp_addflag=' -nofor_main' ;;
12923	lf95*)				# Lahey Fortran 8.1
12924	  whole_archive_flag_spec=
12925	  tmp_sharedflag='--shared' ;;
12926        nagfor*)                        # NAGFOR 5.3
12927          tmp_sharedflag='-Wl,-shared' ;;
12928	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12929	  tmp_sharedflag='-qmkshrobj'
12930	  tmp_addflag= ;;
12931	nvcc*)	# Cuda Compiler Driver 2.2
12932	  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'
12933	  compiler_needs_object=yes
12934	  ;;
12935	esac
12936	case `$CC -V 2>&1 | sed 5q` in
12937	*Sun\ C*)			# Sun C 5.9
12938	  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'
12939	  compiler_needs_object=yes
12940	  tmp_sharedflag='-G' ;;
12941	*Sun\ F*)			# Sun Fortran 8.3
12942	  tmp_sharedflag='-G' ;;
12943	esac
12944	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12945
12946        if test yes = "$supports_anon_versioning"; then
12947          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12948            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12949            echo "local: *; };" >> $output_objdir/$libname.ver~
12950            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12951        fi
12952
12953	case $cc_basename in
12954	tcc*)
12955	  export_dynamic_flag_spec='-rdynamic'
12956	  ;;
12957	xlf* | bgf* | bgxlf* | mpixlf*)
12958	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12959	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12960	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12961	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12962	  if test yes = "$supports_anon_versioning"; then
12963	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12964              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12965              echo "local: *; };" >> $output_objdir/$libname.ver~
12966              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12967	  fi
12968	  ;;
12969	esac
12970      else
12971        ld_shlibs=no
12972      fi
12973      ;;
12974
12975    netbsd* | netbsdelf*-gnu)
12976      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12977	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12978	wlarc=
12979      else
12980	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12981	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12982      fi
12983      ;;
12984
12985    solaris*)
12986      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12987	ld_shlibs=no
12988	cat <<_LT_EOF 1>&2
12989
12990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12991*** create shared libraries on Solaris systems.  Therefore, libtool
12992*** is disabling shared libraries support.  We urge you to upgrade GNU
12993*** binutils to release 2.9.1 or newer.  Another option is to modify
12994*** your PATH or compiler configuration so that the native linker is
12995*** used, and then restart.
12996
12997_LT_EOF
12998      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12999	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13000	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13001      else
13002	ld_shlibs=no
13003      fi
13004      ;;
13005
13006    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13007      case `$LD -v 2>&1` in
13008        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13009	ld_shlibs=no
13010	cat <<_LT_EOF 1>&2
13011
13012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13013*** reliably create shared libraries on SCO systems.  Therefore, libtool
13014*** is disabling shared libraries support.  We urge you to upgrade GNU
13015*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13016*** your PATH or compiler configuration so that the native linker is
13017*** used, and then restart.
13018
13019_LT_EOF
13020	;;
13021	*)
13022	  # For security reasons, it is highly recommended that you always
13023	  # use absolute paths for naming shared libraries, and exclude the
13024	  # DT_RUNPATH tag from executables and libraries.  But doing so
13025	  # requires that you compile everything twice, which is a pain.
13026	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13027	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13028	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13029	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13030	  else
13031	    ld_shlibs=no
13032	  fi
13033	;;
13034      esac
13035      ;;
13036
13037    sunos4*)
13038      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13039      wlarc=
13040      hardcode_direct=yes
13041      hardcode_shlibpath_var=no
13042      ;;
13043
13044    *)
13045      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13046	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13047	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13048      else
13049	ld_shlibs=no
13050      fi
13051      ;;
13052    esac
13053
13054    if test no = "$ld_shlibs"; then
13055      runpath_var=
13056      hardcode_libdir_flag_spec=
13057      export_dynamic_flag_spec=
13058      whole_archive_flag_spec=
13059    fi
13060  else
13061    # PORTME fill in a description of your system's linker (not GNU ld)
13062    case $host_os in
13063    aix3*)
13064      allow_undefined_flag=unsupported
13065      always_export_symbols=yes
13066      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'
13067      # Note: this linker hardcodes the directories in LIBPATH if there
13068      # are no directories specified by -L.
13069      hardcode_minus_L=yes
13070      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13071	# Neither direct hardcoding nor static linking is supported with a
13072	# broken collect2.
13073	hardcode_direct=unsupported
13074      fi
13075      ;;
13076
13077    aix[4-9]*)
13078      if test ia64 = "$host_cpu"; then
13079	# On IA64, the linker does run time linking by default, so we don't
13080	# have to do anything special.
13081	aix_use_runtimelinking=no
13082	exp_sym_flag='-Bexport'
13083	no_entry_flag=
13084      else
13085	# If we're using GNU nm, then we don't want the "-C" option.
13086	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13087	# Without the "-l" option, or with the "-B" option, AIX nm treats
13088	# weak defined symbols like other global defined symbols, whereas
13089	# GNU nm marks them as "W".
13090	# While the 'weak' keyword is ignored in the Export File, we need
13091	# it in the Import File for the 'aix-soname' feature, so we have
13092	# to replace the "-B" option with "-P" for AIX nm.
13093	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13094	  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'
13095	else
13096	  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'
13097	fi
13098	aix_use_runtimelinking=no
13099
13100	# Test if we are trying to use run time linking or normal
13101	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13102	# have runtime linking enabled, and use it for executables.
13103	# For shared libraries, we enable/disable runtime linking
13104	# depending on the kind of the shared library created -
13105	# when "with_aix_soname,aix_use_runtimelinking" is:
13106	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13107	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13108	#            lib.a           static archive
13109	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13110	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13111	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13112	#            lib.a(lib.so.V) shared, rtl:no
13113	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13114	#            lib.a           static archive
13115	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13116	  for ld_flag in $LDFLAGS; do
13117	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13118	    aix_use_runtimelinking=yes
13119	    break
13120	  fi
13121	  done
13122	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13123	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13124	    # so we don't have lib.a shared libs to link our executables.
13125	    # We have to force runtime linking in this case.
13126	    aix_use_runtimelinking=yes
13127	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13128	  fi
13129	  ;;
13130	esac
13131
13132	exp_sym_flag='-bexport'
13133	no_entry_flag='-bnoentry'
13134      fi
13135
13136      # When large executables or shared objects are built, AIX ld can
13137      # have problems creating the table of contents.  If linking a library
13138      # or program results in "error TOC overflow" add -mminimal-toc to
13139      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13140      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13141
13142      archive_cmds=''
13143      hardcode_direct=yes
13144      hardcode_direct_absolute=yes
13145      hardcode_libdir_separator=':'
13146      link_all_deplibs=yes
13147      file_list_spec='$wl-f,'
13148      case $with_aix_soname,$aix_use_runtimelinking in
13149      aix,*) ;; # traditional, no import file
13150      svr4,* | *,yes) # use import file
13151	# The Import File defines what to hardcode.
13152	hardcode_direct=no
13153	hardcode_direct_absolute=no
13154	;;
13155      esac
13156
13157      if test yes = "$GCC"; then
13158	case $host_os in aix4.[012]|aix4.[012].*)
13159	# We only want to do this on AIX 4.2 and lower, the check
13160	# below for broken collect2 doesn't work under 4.3+
13161	  collect2name=`$CC -print-prog-name=collect2`
13162	  if test -f "$collect2name" &&
13163	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13164	  then
13165	  # We have reworked collect2
13166	  :
13167	  else
13168	  # We have old collect2
13169	  hardcode_direct=unsupported
13170	  # It fails to find uninstalled libraries when the uninstalled
13171	  # path is not listed in the libpath.  Setting hardcode_minus_L
13172	  # to unsupported forces relinking
13173	  hardcode_minus_L=yes
13174	  hardcode_libdir_flag_spec='-L$libdir'
13175	  hardcode_libdir_separator=
13176	  fi
13177	  ;;
13178	esac
13179	shared_flag='-shared'
13180	if test yes = "$aix_use_runtimelinking"; then
13181	  shared_flag="$shared_flag "'$wl-G'
13182	fi
13183	# Need to ensure runtime linking is disabled for the traditional
13184	# shared library, or the linker may eventually find shared libraries
13185	# /with/ Import File - we do not want to mix them.
13186	shared_flag_aix='-shared'
13187	shared_flag_svr4='-shared $wl-G'
13188      else
13189	# not using gcc
13190	if test ia64 = "$host_cpu"; then
13191	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13192	# chokes on -Wl,-G. The following line is correct:
13193	  shared_flag='-G'
13194	else
13195	  if test yes = "$aix_use_runtimelinking"; then
13196	    shared_flag='$wl-G'
13197	  else
13198	    shared_flag='$wl-bM:SRE'
13199	  fi
13200	  shared_flag_aix='$wl-bM:SRE'
13201	  shared_flag_svr4='$wl-G'
13202	fi
13203      fi
13204
13205      export_dynamic_flag_spec='$wl-bexpall'
13206      # It seems that -bexpall does not export symbols beginning with
13207      # underscore (_), so it is better to generate a list of symbols to export.
13208      always_export_symbols=yes
13209      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13210	# Warning - without using the other runtime loading flags (-brtl),
13211	# -berok will link without error, but may produce a broken library.
13212	allow_undefined_flag='-berok'
13213        # Determine the default libpath from the value encoded in an
13214        # empty executable.
13215        if test set = "${lt_cv_aix_libpath+set}"; then
13216  aix_libpath=$lt_cv_aix_libpath
13217else
13218  if ${lt_cv_aix_libpath_+:} false; then :
13219  $as_echo_n "(cached) " >&6
13220else
13221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223
13224int main (void)
13225{
13226
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
13232
13233  lt_aix_libpath_sed='
13234      /Import File Strings/,/^$/ {
13235	  /^0/ {
13236	      s/^0  *\([^ ]*\) *$/\1/
13237	      p
13238	  }
13239      }'
13240  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13241  # Check for a 64-bit object if we didn't find anything.
13242  if test -z "$lt_cv_aix_libpath_"; then
13243    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13244  fi
13245fi
13246rm -f core conftest.err conftest.$ac_objext \
13247    conftest$ac_exeext conftest.$ac_ext
13248  if test -z "$lt_cv_aix_libpath_"; then
13249    lt_cv_aix_libpath_=/usr/lib:/lib
13250  fi
13251
13252fi
13253
13254  aix_libpath=$lt_cv_aix_libpath_
13255fi
13256
13257        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13258        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
13259      else
13260	if test ia64 = "$host_cpu"; then
13261	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13262	  allow_undefined_flag="-z nodefs"
13263	  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"
13264	else
13265	 # Determine the default libpath from the value encoded in an
13266	 # empty executable.
13267	 if test set = "${lt_cv_aix_libpath+set}"; then
13268  aix_libpath=$lt_cv_aix_libpath
13269else
13270  if ${lt_cv_aix_libpath_+:} false; then :
13271  $as_echo_n "(cached) " >&6
13272else
13273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274/* end confdefs.h.  */
13275
13276int main (void)
13277{
13278
13279 ;
13280 return 0;
13281}
13282_ACEOF
13283if ac_fn_c_try_link "$LINENO"; then :
13284
13285  lt_aix_libpath_sed='
13286      /Import File Strings/,/^$/ {
13287	  /^0/ {
13288	      s/^0  *\([^ ]*\) *$/\1/
13289	      p
13290	  }
13291      }'
13292  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13293  # Check for a 64-bit object if we didn't find anything.
13294  if test -z "$lt_cv_aix_libpath_"; then
13295    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13296  fi
13297fi
13298rm -f core conftest.err conftest.$ac_objext \
13299    conftest$ac_exeext conftest.$ac_ext
13300  if test -z "$lt_cv_aix_libpath_"; then
13301    lt_cv_aix_libpath_=/usr/lib:/lib
13302  fi
13303
13304fi
13305
13306  aix_libpath=$lt_cv_aix_libpath_
13307fi
13308
13309	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13310	  # Warning - without using the other run time loading flags,
13311	  # -berok will link without error, but may produce a broken library.
13312	  no_undefined_flag=' $wl-bernotok'
13313	  allow_undefined_flag=' $wl-berok'
13314	  if test yes = "$with_gnu_ld"; then
13315	    # We only use this code for GNU lds that support --whole-archive.
13316	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13317	  else
13318	    # Exported symbols can be pulled into shared objects from archives
13319	    whole_archive_flag_spec='$convenience'
13320	  fi
13321	  archive_cmds_need_lc=yes
13322	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13323	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13324	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13325	  if test svr4 != "$with_aix_soname"; then
13326	    # This is similar to how AIX traditionally builds its shared libraries.
13327	    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'
13328	  fi
13329	  if test aix != "$with_aix_soname"; then
13330	    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'
13331	  else
13332	    # used by -dlpreopen to get the symbols
13333	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13334	  fi
13335	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13336	fi
13337      fi
13338      ;;
13339
13340    amigaos*)
13341      case $host_cpu in
13342      powerpc)
13343            # see comment about AmigaOS4 .so support
13344            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13345            archive_expsym_cmds=''
13346        ;;
13347      m68k)
13348            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)'
13349            hardcode_libdir_flag_spec='-L$libdir'
13350            hardcode_minus_L=yes
13351        ;;
13352      esac
13353      ;;
13354
13355    bsdi[45]*)
13356      export_dynamic_flag_spec=-rdynamic
13357      ;;
13358
13359    cygwin* | mingw* | pw32* | cegcc*)
13360      # When not using gcc, we currently assume that we are using
13361      # Microsoft Visual C++.
13362      # hardcode_libdir_flag_spec is actually meaningless, as there is
13363      # no search path for DLLs.
13364      case $cc_basename in
13365      cl*)
13366	# Native MSVC
13367	hardcode_libdir_flag_spec=' '
13368	allow_undefined_flag=unsupported
13369	always_export_symbols=yes
13370	file_list_spec='@'
13371	# Tell ltmain to make .lib files, not .a files.
13372	libext=lib
13373	# Tell ltmain to make .dll files, not .so files.
13374	shrext_cmds=.dll
13375	# FIXME: Setting linknames here is a bad hack.
13376	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13377	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13378            cp "$export_symbols" "$output_objdir/$soname.def";
13379            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13380          else
13381            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13382          fi~
13383          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13384          linknames='
13385	# The linker will not automatically build a static lib if we build a DLL.
13386	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13387	enable_shared_with_static_runtimes=yes
13388	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13389	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13390	# Don't use ranlib
13391	old_postinstall_cmds='chmod 644 $oldlib'
13392	postlink_cmds='lt_outputfile="@OUTPUT@"~
13393          lt_tool_outputfile="@TOOL_OUTPUT@"~
13394          case $lt_outputfile in
13395            *.exe|*.EXE) ;;
13396            *)
13397              lt_outputfile=$lt_outputfile.exe
13398              lt_tool_outputfile=$lt_tool_outputfile.exe
13399              ;;
13400          esac~
13401          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13402            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13403            $RM "$lt_outputfile.manifest";
13404          fi'
13405	;;
13406      *)
13407	# Assume MSVC wrapper
13408	hardcode_libdir_flag_spec=' '
13409	allow_undefined_flag=unsupported
13410	# Tell ltmain to make .lib files, not .a files.
13411	libext=lib
13412	# Tell ltmain to make .dll files, not .so files.
13413	shrext_cmds=.dll
13414	# FIXME: Setting linknames here is a bad hack.
13415	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13416	# The linker will automatically build a .lib file if we build a DLL.
13417	old_archive_from_new_cmds='true'
13418	# FIXME: Should let the user specify the lib program.
13419	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13420	enable_shared_with_static_runtimes=yes
13421	;;
13422      esac
13423      ;;
13424
13425    darwin* | rhapsody*)
13426
13427
13428  archive_cmds_need_lc=no
13429  hardcode_direct=no
13430  hardcode_automatic=yes
13431  hardcode_shlibpath_var=unsupported
13432  if test yes = "$lt_cv_ld_force_load"; then
13433    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\"`'
13434
13435  else
13436    whole_archive_flag_spec=''
13437  fi
13438  link_all_deplibs=yes
13439  allow_undefined_flag=$_lt_dar_allow_undefined
13440  case $cc_basename in
13441     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13442     *) _lt_dar_can_shared=$GCC ;;
13443  esac
13444  if test yes = "$_lt_dar_can_shared"; then
13445    output_verbose_link_cmd=func_echo_all
13446    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13447    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13448    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"
13449    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"
13450
13451  else
13452  ld_shlibs=no
13453  fi
13454
13455      ;;
13456
13457    dgux*)
13458      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13459      hardcode_libdir_flag_spec='-L$libdir'
13460      hardcode_shlibpath_var=no
13461      ;;
13462
13463    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13464    # support.  Future versions do this automatically, but an explicit c++rt0.o
13465    # does not break anything, and helps significantly (at the cost of a little
13466    # extra space).
13467    freebsd2.2*)
13468      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13469      hardcode_libdir_flag_spec='-R$libdir'
13470      hardcode_direct=yes
13471      hardcode_shlibpath_var=no
13472      ;;
13473
13474    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13475    freebsd2.*)
13476      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13477      hardcode_direct=yes
13478      hardcode_minus_L=yes
13479      hardcode_shlibpath_var=no
13480      ;;
13481
13482    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13483    freebsd* | dragonfly*)
13484      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13485      hardcode_libdir_flag_spec='-R$libdir'
13486      hardcode_direct=yes
13487      hardcode_shlibpath_var=no
13488      ;;
13489
13490    hpux9*)
13491      if test yes = "$GCC"; then
13492	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13493      else
13494	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13495      fi
13496      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13497      hardcode_libdir_separator=:
13498      hardcode_direct=yes
13499
13500      # hardcode_minus_L: Not really in the search PATH,
13501      # but as the default location of the library.
13502      hardcode_minus_L=yes
13503      export_dynamic_flag_spec='$wl-E'
13504      ;;
13505
13506    hpux10*)
13507      if test yes,no = "$GCC,$with_gnu_ld"; then
13508	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13509      else
13510	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13511      fi
13512      if test no = "$with_gnu_ld"; then
13513	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13514	hardcode_libdir_separator=:
13515	hardcode_direct=yes
13516	hardcode_direct_absolute=yes
13517	export_dynamic_flag_spec='$wl-E'
13518	# hardcode_minus_L: Not really in the search PATH,
13519	# but as the default location of the library.
13520	hardcode_minus_L=yes
13521      fi
13522      ;;
13523
13524    hpux11*)
13525      if test yes,no = "$GCC,$with_gnu_ld"; then
13526	case $host_cpu in
13527	hppa*64*)
13528	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13529	  ;;
13530	ia64*)
13531	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13532	  ;;
13533	*)
13534	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13535	  ;;
13536	esac
13537      else
13538	case $host_cpu in
13539	hppa*64*)
13540	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13541	  ;;
13542	ia64*)
13543	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13544	  ;;
13545	*)
13546
13547	  # Older versions of the 11.00 compiler do not understand -b yet
13548	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13549	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13550$as_echo_n "checking if $CC understands -b... " >&6; }
13551if ${lt_cv_prog_compiler__b+:} false; then :
13552  $as_echo_n "(cached) " >&6
13553else
13554  lt_cv_prog_compiler__b=no
13555   save_LDFLAGS=$LDFLAGS
13556   LDFLAGS="$LDFLAGS -b"
13557   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13558   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13559     # The linker can only warn and ignore the option if not recognized
13560     # So say no if there are warnings
13561     if test -s conftest.err; then
13562       # Append any errors to the config.log.
13563       cat conftest.err 1>&5
13564       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13565       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13566       if diff conftest.exp conftest.er2 >/dev/null; then
13567         lt_cv_prog_compiler__b=yes
13568       fi
13569     else
13570       lt_cv_prog_compiler__b=yes
13571     fi
13572   fi
13573   $RM -r conftest*
13574   LDFLAGS=$save_LDFLAGS
13575
13576fi
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13578$as_echo "$lt_cv_prog_compiler__b" >&6; }
13579
13580if test yes = "$lt_cv_prog_compiler__b"; then
13581    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13582else
13583    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13584fi
13585
13586	  ;;
13587	esac
13588      fi
13589      if test no = "$with_gnu_ld"; then
13590	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13591	hardcode_libdir_separator=:
13592
13593	case $host_cpu in
13594	hppa*64*|ia64*)
13595	  hardcode_direct=no
13596	  hardcode_shlibpath_var=no
13597	  ;;
13598	*)
13599	  hardcode_direct=yes
13600	  hardcode_direct_absolute=yes
13601	  export_dynamic_flag_spec='$wl-E'
13602
13603	  # hardcode_minus_L: Not really in the search PATH,
13604	  # but as the default location of the library.
13605	  hardcode_minus_L=yes
13606	  ;;
13607	esac
13608      fi
13609      ;;
13610
13611    irix5* | irix6* | nonstopux*)
13612      if test yes = "$GCC"; then
13613	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'
13614	# Try to use the -exported_symbol ld option, if it does not
13615	# work, assume that -exports_file does not work either and
13616	# implicitly export all symbols.
13617	# This should be the same for all languages, so no per-tag cache variable.
13618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13619$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13620if ${lt_cv_irix_exported_symbol+:} false; then :
13621  $as_echo_n "(cached) " >&6
13622else
13623  save_LDFLAGS=$LDFLAGS
13624	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13625	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627int foo (void) { return 0; }
13628_ACEOF
13629if ac_fn_c_try_link "$LINENO"; then :
13630  lt_cv_irix_exported_symbol=yes
13631else
13632  lt_cv_irix_exported_symbol=no
13633fi
13634rm -f core conftest.err conftest.$ac_objext \
13635    conftest$ac_exeext conftest.$ac_ext
13636           LDFLAGS=$save_LDFLAGS
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13639$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13640	if test yes = "$lt_cv_irix_exported_symbol"; then
13641          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'
13642	fi
13643	link_all_deplibs=no
13644      else
13645	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'
13646	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'
13647      fi
13648      archive_cmds_need_lc='no'
13649      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13650      hardcode_libdir_separator=:
13651      inherit_rpath=yes
13652      link_all_deplibs=yes
13653      ;;
13654
13655    linux*)
13656      case $cc_basename in
13657      tcc*)
13658	# Fabrice Bellard et al's Tiny C Compiler
13659	ld_shlibs=yes
13660	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661	;;
13662      esac
13663      ;;
13664
13665    netbsd* | netbsdelf*-gnu)
13666      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13667	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13668      else
13669	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13670      fi
13671      hardcode_libdir_flag_spec='-R$libdir'
13672      hardcode_direct=yes
13673      hardcode_shlibpath_var=no
13674      ;;
13675
13676    newsos6)
13677      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13678      hardcode_direct=yes
13679      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13680      hardcode_libdir_separator=:
13681      hardcode_shlibpath_var=no
13682      ;;
13683
13684    *nto* | *qnx*)
13685      ;;
13686
13687    openbsd* | bitrig*)
13688      if test -f /usr/libexec/ld.so; then
13689	hardcode_direct=yes
13690	hardcode_shlibpath_var=no
13691	hardcode_direct_absolute=yes
13692	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13693	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13694	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13695	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13696	  export_dynamic_flag_spec='$wl-E'
13697	else
13698	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13699	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13700	fi
13701      else
13702	ld_shlibs=no
13703      fi
13704      ;;
13705
13706    os2*)
13707      hardcode_libdir_flag_spec='-L$libdir'
13708      hardcode_minus_L=yes
13709      allow_undefined_flag=unsupported
13710      shrext_cmds=.dll
13711      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13712	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13713	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13714	$ECHO EXPORTS >> $output_objdir/$libname.def~
13715	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13716	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13717	emximp -o $lib $output_objdir/$libname.def'
13718      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13719	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13720	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13721	$ECHO EXPORTS >> $output_objdir/$libname.def~
13722	prefix_cmds="$SED"~
13723	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13724	  prefix_cmds="$prefix_cmds -e 1d";
13725	fi~
13726	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13727	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13728	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13729	emximp -o $lib $output_objdir/$libname.def'
13730      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13731      enable_shared_with_static_runtimes=yes
13732      ;;
13733
13734    osf3*)
13735      if test yes = "$GCC"; then
13736	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13737	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'
13738      else
13739	allow_undefined_flag=' -expect_unresolved \*'
13740	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'
13741      fi
13742      archive_cmds_need_lc='no'
13743      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13744      hardcode_libdir_separator=:
13745      ;;
13746
13747    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13748      if test yes = "$GCC"; then
13749	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13750	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'
13751	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13752      else
13753	allow_undefined_flag=' -expect_unresolved \*'
13754	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'
13755	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~
13756          $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'
13757
13758	# Both c and cxx compiler support -rpath directly
13759	hardcode_libdir_flag_spec='-rpath $libdir'
13760      fi
13761      archive_cmds_need_lc='no'
13762      hardcode_libdir_separator=:
13763      ;;
13764
13765    solaris*)
13766      no_undefined_flag=' -z defs'
13767      if test yes = "$GCC"; then
13768	wlarc='$wl'
13769	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13770	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13771          $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'
13772      else
13773	case `$CC -V 2>&1` in
13774	*"Compilers 5.0"*)
13775	  wlarc=''
13776	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13778            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13779	  ;;
13780	*)
13781	  wlarc='$wl'
13782	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13783	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13784            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13785	  ;;
13786	esac
13787      fi
13788      hardcode_libdir_flag_spec='-R$libdir'
13789      hardcode_shlibpath_var=no
13790      case $host_os in
13791      solaris2.[0-5] | solaris2.[0-5].*) ;;
13792      *)
13793	# The compiler driver will combine and reorder linker options,
13794	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13795	# but is careful enough not to reorder.
13796	# Supported since Solaris 2.6 (maybe 2.5.1?)
13797	if test yes = "$GCC"; then
13798	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13799	else
13800	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13801	fi
13802	;;
13803      esac
13804      link_all_deplibs=yes
13805      ;;
13806
13807    sunos4*)
13808      if test sequent = "$host_vendor"; then
13809	# Use $CC to link under sequent, because it throws in some extra .o
13810	# files that make .init and .fini sections work.
13811	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13812      else
13813	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13814      fi
13815      hardcode_libdir_flag_spec='-L$libdir'
13816      hardcode_direct=yes
13817      hardcode_minus_L=yes
13818      hardcode_shlibpath_var=no
13819      ;;
13820
13821    sysv4)
13822      case $host_vendor in
13823	sni)
13824	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825	  hardcode_direct=yes # is this really true???
13826	;;
13827	siemens)
13828	  ## LD is ld it makes a PLAMLIB
13829	  ## CC just makes a GrossModule.
13830	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13831	  reload_cmds='$CC -r -o $output$reload_objs'
13832	  hardcode_direct=no
13833        ;;
13834	motorola)
13835	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13837	;;
13838      esac
13839      runpath_var='LD_RUN_PATH'
13840      hardcode_shlibpath_var=no
13841      ;;
13842
13843    sysv4.3*)
13844      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845      hardcode_shlibpath_var=no
13846      export_dynamic_flag_spec='-Bexport'
13847      ;;
13848
13849    sysv4*MP*)
13850      if test -d /usr/nec; then
13851	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13852	hardcode_shlibpath_var=no
13853	runpath_var=LD_RUN_PATH
13854	hardcode_runpath_var=yes
13855	ld_shlibs=yes
13856      fi
13857      ;;
13858
13859    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13860      no_undefined_flag='$wl-z,text'
13861      archive_cmds_need_lc=no
13862      hardcode_shlibpath_var=no
13863      runpath_var='LD_RUN_PATH'
13864
13865      if test yes = "$GCC"; then
13866	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868      else
13869	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871      fi
13872      ;;
13873
13874    sysv5* | sco3.2v5* | sco5v6*)
13875      # Note: We CANNOT use -z defs as we might desire, because we do not
13876      # link with -lc, and that would cause any symbols used from libc to
13877      # always be unresolved, which means just about no library would
13878      # ever link correctly.  If we're not using GNU ld we use -z text
13879      # though, which does catch some bad symbols but isn't as heavy-handed
13880      # as -z defs.
13881      no_undefined_flag='$wl-z,text'
13882      allow_undefined_flag='$wl-z,nodefs'
13883      archive_cmds_need_lc=no
13884      hardcode_shlibpath_var=no
13885      hardcode_libdir_flag_spec='$wl-R,$libdir'
13886      hardcode_libdir_separator=':'
13887      link_all_deplibs=yes
13888      export_dynamic_flag_spec='$wl-Bexport'
13889      runpath_var='LD_RUN_PATH'
13890
13891      if test yes = "$GCC"; then
13892	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13893	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894      else
13895	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897      fi
13898      ;;
13899
13900    uts4*)
13901      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902      hardcode_libdir_flag_spec='-L$libdir'
13903      hardcode_shlibpath_var=no
13904      ;;
13905
13906    *)
13907      ld_shlibs=no
13908      ;;
13909    esac
13910
13911    if test sni = "$host_vendor"; then
13912      case $host in
13913      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13914	export_dynamic_flag_spec='$wl-Blargedynsym'
13915	;;
13916      esac
13917    fi
13918  fi
13919
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13921$as_echo "$ld_shlibs" >&6; }
13922test no = "$ld_shlibs" && can_build_shared=no
13923
13924with_gnu_ld=$with_gnu_ld
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940#
13941# Do we need to explicitly link libc?
13942#
13943case "x$archive_cmds_need_lc" in
13944x|xyes)
13945  # Assume -lc should be added
13946  archive_cmds_need_lc=yes
13947
13948  if test yes,yes = "$GCC,$enable_shared"; then
13949    case $archive_cmds in
13950    *'~'*)
13951      # FIXME: we may have to deal with multi-command sequences.
13952      ;;
13953    '$CC '*)
13954      # Test whether the compiler implicitly links with -lc since on some
13955      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13956      # to ld, don't add -lc before -lgcc.
13957      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13958$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13959if ${lt_cv_archive_cmds_need_lc+:} false; then :
13960  $as_echo_n "(cached) " >&6
13961else
13962  $RM conftest*
13963	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
13965	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13966  (eval $ac_compile) 2>&5
13967  ac_status=$?
13968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13969  test $ac_status = 0; } 2>conftest.err; then
13970	  soname=conftest
13971	  lib=conftest
13972	  libobjs=conftest.$ac_objext
13973	  deplibs=
13974	  wl=$lt_prog_compiler_wl
13975	  pic_flag=$lt_prog_compiler_pic
13976	  compiler_flags=-v
13977	  linker_flags=-v
13978	  verstring=
13979	  output_objdir=.
13980	  libname=conftest
13981	  lt_save_allow_undefined_flag=$allow_undefined_flag
13982	  allow_undefined_flag=
13983	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13984  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13985  ac_status=$?
13986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13987  test $ac_status = 0; }
13988	  then
13989	    lt_cv_archive_cmds_need_lc=no
13990	  else
13991	    lt_cv_archive_cmds_need_lc=yes
13992	  fi
13993	  allow_undefined_flag=$lt_save_allow_undefined_flag
13994	else
13995	  cat conftest.err 1>&5
13996	fi
13997	$RM conftest*
13998
13999fi
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14001$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14002      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14003      ;;
14004    esac
14005  fi
14006  ;;
14007esac
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14161$as_echo_n "checking dynamic linker characteristics... " >&6; }
14162
14163if test yes = "$GCC"; then
14164  case $host_os in
14165    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14166    *) lt_awk_arg='/^libraries:/' ;;
14167  esac
14168  case $host_os in
14169    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14170    *) lt_sed_strip_eq='s|=/|/|g' ;;
14171  esac
14172  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14173  case $lt_search_path_spec in
14174  *\;*)
14175    # if the path contains ";" then we assume it to be the separator
14176    # otherwise default to the standard path separator (i.e. ":") - it is
14177    # assumed that no part of a normal pathname contains ";" but that should
14178    # okay in the real world where ";" in dirpaths is itself problematic.
14179    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14180    ;;
14181  *)
14182    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14183    ;;
14184  esac
14185  # Ok, now we have the path, separated by spaces, we can step through it
14186  # and add multilib dir if necessary...
14187  lt_tmp_lt_search_path_spec=
14188  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14189  # ...but if some path component already ends with the multilib dir we assume
14190  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14191  case "$lt_multi_os_dir; $lt_search_path_spec " in
14192  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14193    lt_multi_os_dir=
14194    ;;
14195  esac
14196  for lt_sys_path in $lt_search_path_spec; do
14197    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14198      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14199    elif test -n "$lt_multi_os_dir"; then
14200      test -d "$lt_sys_path" && \
14201	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14202    fi
14203  done
14204  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14205BEGIN {RS = " "; FS = "/|\n";} {
14206  lt_foo = "";
14207  lt_count = 0;
14208  for (lt_i = NF; lt_i > 0; lt_i--) {
14209    if ($lt_i != "" && $lt_i != ".") {
14210      if ($lt_i == "..") {
14211        lt_count++;
14212      } else {
14213        if (lt_count == 0) {
14214          lt_foo = "/" $lt_i lt_foo;
14215        } else {
14216          lt_count--;
14217        }
14218      }
14219    }
14220  }
14221  if (lt_foo != "") { lt_freq[lt_foo]++; }
14222  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14223}'`
14224  # AWK program above erroneously prepends '/' to C:/dos/paths
14225  # for these hosts.
14226  case $host_os in
14227    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14228      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14229  esac
14230  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14231else
14232  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14233fi
14234library_names_spec=
14235libname_spec='lib$name'
14236soname_spec=
14237shrext_cmds=.so
14238postinstall_cmds=
14239postuninstall_cmds=
14240finish_cmds=
14241finish_eval=
14242shlibpath_var=
14243shlibpath_overrides_runpath=unknown
14244version_type=none
14245dynamic_linker="$host_os ld.so"
14246sys_lib_dlsearch_path_spec="/lib /usr/lib"
14247need_lib_prefix=unknown
14248hardcode_into_libs=no
14249
14250# when you set need_version to no, make sure it does not cause -set_version
14251# flags to be left without arguments
14252need_version=unknown
14253
14254
14255
14256case $host_os in
14257aix3*)
14258  version_type=linux # correct to gnu/linux during the next big refactor
14259  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14260  shlibpath_var=LIBPATH
14261
14262  # AIX 3 has no versioning support, so we append a major version to the name.
14263  soname_spec='$libname$release$shared_ext$major'
14264  ;;
14265
14266aix[4-9]*)
14267  version_type=linux # correct to gnu/linux during the next big refactor
14268  need_lib_prefix=no
14269  need_version=no
14270  hardcode_into_libs=yes
14271  if test ia64 = "$host_cpu"; then
14272    # AIX 5 supports IA64
14273    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14274    shlibpath_var=LD_LIBRARY_PATH
14275  else
14276    # With GCC up to 2.95.x, collect2 would create an import file
14277    # for dependence libraries.  The import file would start with
14278    # the line '#! .'.  This would cause the generated library to
14279    # depend on '.', always an invalid library.  This was fixed in
14280    # development snapshots of GCC prior to 3.0.
14281    case $host_os in
14282      aix4 | aix4.[01] | aix4.[01].*)
14283      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14284	   echo ' yes '
14285	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14286	:
14287      else
14288	can_build_shared=no
14289      fi
14290      ;;
14291    esac
14292    # Using Import Files as archive members, it is possible to support
14293    # filename-based versioning of shared library archives on AIX. While
14294    # this would work for both with and without runtime linking, it will
14295    # prevent static linking of such archives. So we do filename-based
14296    # shared library versioning with .so extension only, which is used
14297    # when both runtime linking and shared linking is enabled.
14298    # Unfortunately, runtime linking may impact performance, so we do
14299    # not want this to be the default eventually. Also, we use the
14300    # versioned .so libs for executables only if there is the -brtl
14301    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14302    # To allow for filename-based versioning support, we need to create
14303    # libNAME.so.V as an archive file, containing:
14304    # *) an Import File, referring to the versioned filename of the
14305    #    archive as well as the shared archive member, telling the
14306    #    bitwidth (32 or 64) of that shared object, and providing the
14307    #    list of exported symbols of that shared object, eventually
14308    #    decorated with the 'weak' keyword
14309    # *) the shared object with the F_LOADONLY flag set, to really avoid
14310    #    it being seen by the linker.
14311    # At run time we better use the real file rather than another symlink,
14312    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14313
14314    case $with_aix_soname,$aix_use_runtimelinking in
14315    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14316    # soname into executable. Probably we can add versioning support to
14317    # collect2, so additional links can be useful in future.
14318    aix,yes) # traditional libtool
14319      dynamic_linker='AIX unversionable lib.so'
14320      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14321      # instead of lib<name>.a to let people know that these are not
14322      # typical AIX shared libraries.
14323      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14324      ;;
14325    aix,no) # traditional AIX only
14326      dynamic_linker='AIX lib.a(lib.so.V)'
14327      # We preserve .a as extension for shared libraries through AIX4.2
14328      # and later when we are not doing run time linking.
14329      library_names_spec='$libname$release.a $libname.a'
14330      soname_spec='$libname$release$shared_ext$major'
14331      ;;
14332    svr4,*) # full svr4 only
14333      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14334      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14335      # We do not specify a path in Import Files, so LIBPATH fires.
14336      shlibpath_overrides_runpath=yes
14337      ;;
14338    *,yes) # both, prefer svr4
14339      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14340      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14341      # unpreferred sharedlib libNAME.a needs extra handling
14342      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"'
14343      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"'
14344      # We do not specify a path in Import Files, so LIBPATH fires.
14345      shlibpath_overrides_runpath=yes
14346      ;;
14347    *,no) # both, prefer aix
14348      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14349      library_names_spec='$libname$release.a $libname.a'
14350      soname_spec='$libname$release$shared_ext$major'
14351      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14352      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)'
14353      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"'
14354      ;;
14355    esac
14356    shlibpath_var=LIBPATH
14357  fi
14358  ;;
14359
14360amigaos*)
14361  case $host_cpu in
14362  powerpc)
14363    # Since July 2007 AmigaOS4 officially supports .so libraries.
14364    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14365    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366    ;;
14367  m68k)
14368    library_names_spec='$libname.ixlibrary $libname.a'
14369    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14370    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'
14371    ;;
14372  esac
14373  ;;
14374
14375beos*)
14376  library_names_spec='$libname$shared_ext'
14377  dynamic_linker="$host_os ld.so"
14378  shlibpath_var=LIBRARY_PATH
14379  ;;
14380
14381bsdi[45]*)
14382  version_type=linux # correct to gnu/linux during the next big refactor
14383  need_version=no
14384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14385  soname_spec='$libname$release$shared_ext$major'
14386  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14387  shlibpath_var=LD_LIBRARY_PATH
14388  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14389  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14390  # the default ld.so.conf also contains /usr/contrib/lib and
14391  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14392  # libtool to hard-code these into programs
14393  ;;
14394
14395cygwin* | mingw* | pw32* | cegcc*)
14396  version_type=windows
14397  shrext_cmds=.dll
14398  need_version=no
14399  need_lib_prefix=no
14400
14401  case $GCC,$cc_basename in
14402  yes,*)
14403    # gcc
14404    library_names_spec='$libname.dll.a'
14405    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14406    postinstall_cmds='base_file=`basename \$file`~
14407      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14408      dldir=$destdir/`dirname \$dlpath`~
14409      test -d \$dldir || mkdir -p \$dldir~
14410      $install_prog $dir/$dlname \$dldir/$dlname~
14411      chmod a+x \$dldir/$dlname~
14412      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14413        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14414      fi'
14415    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14416      dlpath=$dir/\$dldll~
14417       $RM \$dlpath'
14418    shlibpath_overrides_runpath=yes
14419
14420    case $host_os in
14421    cygwin*)
14422      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14423      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14424
14425      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14426      ;;
14427    mingw* | cegcc*)
14428      # MinGW DLLs use traditional 'lib' prefix
14429      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14430      ;;
14431    pw32*)
14432      # pw32 DLLs use 'pw' prefix rather than 'lib'
14433      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14434      ;;
14435    esac
14436    dynamic_linker='Win32 ld.exe'
14437    ;;
14438
14439  *,cl*)
14440    # Native MSVC
14441    libname_spec='$name'
14442    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14443    library_names_spec='$libname.dll.lib'
14444
14445    case $build_os in
14446    mingw*)
14447      sys_lib_search_path_spec=
14448      lt_save_ifs=$IFS
14449      IFS=';'
14450      for lt_path in $LIB
14451      do
14452        IFS=$lt_save_ifs
14453        # Let DOS variable expansion print the short 8.3 style file name.
14454        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14455        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14456      done
14457      IFS=$lt_save_ifs
14458      # Convert to MSYS style.
14459      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14460      ;;
14461    cygwin*)
14462      # Convert to unix form, then to dos form, then back to unix form
14463      # but this time dos style (no spaces!) so that the unix form looks
14464      # like /cygdrive/c/PROGRA~1:/cygdr...
14465      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14466      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14467      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14468      ;;
14469    *)
14470      sys_lib_search_path_spec=$LIB
14471      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14472        # It is most probably a Windows format PATH.
14473        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14474      else
14475        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14476      fi
14477      # FIXME: find the short name or the path components, as spaces are
14478      # common. (e.g. "Program Files" -> "PROGRA~1")
14479      ;;
14480    esac
14481
14482    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14483    postinstall_cmds='base_file=`basename \$file`~
14484      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14485      dldir=$destdir/`dirname \$dlpath`~
14486      test -d \$dldir || mkdir -p \$dldir~
14487      $install_prog $dir/$dlname \$dldir/$dlname'
14488    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14489      dlpath=$dir/\$dldll~
14490       $RM \$dlpath'
14491    shlibpath_overrides_runpath=yes
14492    dynamic_linker='Win32 link.exe'
14493    ;;
14494
14495  *)
14496    # Assume MSVC wrapper
14497    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14498    dynamic_linker='Win32 ld.exe'
14499    ;;
14500  esac
14501  # FIXME: first we should search . and the directory the executable is in
14502  shlibpath_var=PATH
14503  ;;
14504
14505darwin* | rhapsody*)
14506  dynamic_linker="$host_os dyld"
14507  version_type=darwin
14508  need_lib_prefix=no
14509  need_version=no
14510  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14511  soname_spec='$libname$release$major$shared_ext'
14512  shlibpath_overrides_runpath=yes
14513  shlibpath_var=DYLD_LIBRARY_PATH
14514  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14515
14516  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14517  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14518  ;;
14519
14520dgux*)
14521  version_type=linux # correct to gnu/linux during the next big refactor
14522  need_lib_prefix=no
14523  need_version=no
14524  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14525  soname_spec='$libname$release$shared_ext$major'
14526  shlibpath_var=LD_LIBRARY_PATH
14527  ;;
14528
14529freebsd* | dragonfly*)
14530  # DragonFly does not have aout.  When/if they implement a new
14531  # versioning mechanism, adjust this.
14532  if test -x /usr/bin/objformat; then
14533    objformat=`/usr/bin/objformat`
14534  else
14535    case $host_os in
14536    freebsd[23].*) objformat=aout ;;
14537    *) objformat=elf ;;
14538    esac
14539  fi
14540  version_type=freebsd-$objformat
14541  case $version_type in
14542    freebsd-elf*)
14543      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14544      soname_spec='$libname$release$shared_ext$major'
14545      need_version=no
14546      need_lib_prefix=no
14547      ;;
14548    freebsd-*)
14549      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14550      need_version=yes
14551      ;;
14552  esac
14553  shlibpath_var=LD_LIBRARY_PATH
14554  case $host_os in
14555  freebsd2.*)
14556    shlibpath_overrides_runpath=yes
14557    ;;
14558  freebsd3.[01]* | freebsdelf3.[01]*)
14559    shlibpath_overrides_runpath=yes
14560    hardcode_into_libs=yes
14561    ;;
14562  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14563  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14564    shlibpath_overrides_runpath=no
14565    hardcode_into_libs=yes
14566    ;;
14567  *) # from 4.6 on, and DragonFly
14568    shlibpath_overrides_runpath=yes
14569    hardcode_into_libs=yes
14570    ;;
14571  esac
14572  ;;
14573
14574haiku*)
14575  version_type=linux # correct to gnu/linux during the next big refactor
14576  need_lib_prefix=no
14577  need_version=no
14578  dynamic_linker="$host_os runtime_loader"
14579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14580  soname_spec='$libname$release$shared_ext$major'
14581  shlibpath_var=LIBRARY_PATH
14582  shlibpath_overrides_runpath=no
14583  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14584  hardcode_into_libs=yes
14585  ;;
14586
14587hpux9* | hpux10* | hpux11*)
14588  # Give a soname corresponding to the major version so that dld.sl refuses to
14589  # link against other versions.
14590  version_type=sunos
14591  need_lib_prefix=no
14592  need_version=no
14593  case $host_cpu in
14594  ia64*)
14595    shrext_cmds='.so'
14596    hardcode_into_libs=yes
14597    dynamic_linker="$host_os dld.so"
14598    shlibpath_var=LD_LIBRARY_PATH
14599    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14600    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601    soname_spec='$libname$release$shared_ext$major'
14602    if test 32 = "$HPUX_IA64_MODE"; then
14603      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14604      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14605    else
14606      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14607      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14608    fi
14609    ;;
14610  hppa*64*)
14611    shrext_cmds='.sl'
14612    hardcode_into_libs=yes
14613    dynamic_linker="$host_os dld.sl"
14614    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14615    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14616    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14617    soname_spec='$libname$release$shared_ext$major'
14618    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14619    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14620    ;;
14621  *)
14622    shrext_cmds='.sl'
14623    dynamic_linker="$host_os dld.sl"
14624    shlibpath_var=SHLIB_PATH
14625    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14626    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14627    soname_spec='$libname$release$shared_ext$major'
14628    ;;
14629  esac
14630  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14631  postinstall_cmds='chmod 555 $lib'
14632  # or fails outright, so override atomically:
14633  install_override_mode=555
14634  ;;
14635
14636interix[3-9]*)
14637  version_type=linux # correct to gnu/linux during the next big refactor
14638  need_lib_prefix=no
14639  need_version=no
14640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14641  soname_spec='$libname$release$shared_ext$major'
14642  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14643  shlibpath_var=LD_LIBRARY_PATH
14644  shlibpath_overrides_runpath=no
14645  hardcode_into_libs=yes
14646  ;;
14647
14648irix5* | irix6* | nonstopux*)
14649  case $host_os in
14650    nonstopux*) version_type=nonstopux ;;
14651    *)
14652	if test yes = "$lt_cv_prog_gnu_ld"; then
14653		version_type=linux # correct to gnu/linux during the next big refactor
14654	else
14655		version_type=irix
14656	fi ;;
14657  esac
14658  need_lib_prefix=no
14659  need_version=no
14660  soname_spec='$libname$release$shared_ext$major'
14661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14662  case $host_os in
14663  irix5* | nonstopux*)
14664    libsuff= shlibsuff=
14665    ;;
14666  *)
14667    case $LD in # libtool.m4 will add one of these switches to LD
14668    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669      libsuff= shlibsuff= libmagic=32-bit;;
14670    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671      libsuff=32 shlibsuff=N32 libmagic=N32;;
14672    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674    *) libsuff= shlibsuff= libmagic=never-match;;
14675    esac
14676    ;;
14677  esac
14678  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679  shlibpath_overrides_runpath=no
14680  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14681  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14682  hardcode_into_libs=yes
14683  ;;
14684
14685# No shared lib support for Linux oldld, aout, or coff.
14686linux*oldld* | linux*aout* | linux*coff*)
14687  dynamic_linker=no
14688  ;;
14689
14690linux*android*)
14691  version_type=none # Android doesn't support versioned libraries.
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='$libname$release$shared_ext'
14695  soname_spec='$libname$release$shared_ext'
14696  finish_cmds=
14697  shlibpath_var=LD_LIBRARY_PATH
14698  shlibpath_overrides_runpath=yes
14699
14700  # This implies no fast_install, which is unacceptable.
14701  # Some rework will be needed to allow for fast_install
14702  # before this can be enabled.
14703  hardcode_into_libs=yes
14704
14705  dynamic_linker='Android linker'
14706  # Don't embed -rpath directories since the linker doesn't support them.
14707  hardcode_libdir_flag_spec='-L$libdir'
14708  ;;
14709
14710# This must be glibc/ELF.
14711linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14712  version_type=linux # correct to gnu/linux during the next big refactor
14713  need_lib_prefix=no
14714  need_version=no
14715  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14716  soname_spec='$libname$release$shared_ext$major'
14717  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14718  shlibpath_var=LD_LIBRARY_PATH
14719  shlibpath_overrides_runpath=no
14720
14721  # Some binutils ld are patched to set DT_RUNPATH
14722  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14723  $as_echo_n "(cached) " >&6
14724else
14725  lt_cv_shlibpath_overrides_runpath=no
14726    save_LDFLAGS=$LDFLAGS
14727    save_libdir=$libdir
14728    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14729	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14730    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h.  */
14732
14733int main (void)
14734{
14735
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740if ac_fn_c_try_link "$LINENO"; then :
14741  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14742  lt_cv_shlibpath_overrides_runpath=yes
14743fi
14744fi
14745rm -f core conftest.err conftest.$ac_objext \
14746    conftest$ac_exeext conftest.$ac_ext
14747    LDFLAGS=$save_LDFLAGS
14748    libdir=$save_libdir
14749
14750fi
14751
14752  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14753
14754  # This implies no fast_install, which is unacceptable.
14755  # Some rework will be needed to allow for fast_install
14756  # before this can be enabled.
14757  hardcode_into_libs=yes
14758
14759  # Ideally, we could use ldconfig to report *all* directores which are
14760  # searched for libraries, however this is still not possible.  Aside from not
14761  # being certain /sbin/ldconfig is available, command
14762  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14763  # even though it is searched at run-time.  Try to do the best guess by
14764  # appending ld.so.conf contents (and includes) to the search path.
14765  if test -f /etc/ld.so.conf; then
14766    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' ' '`
14767    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14768  fi
14769
14770  # We used to test for /lib/ld.so.1 and disable shared libraries on
14771  # powerpc, because MkLinux only supported shared libraries with the
14772  # GNU dynamic linker.  Since this was broken with cross compilers,
14773  # most powerpc-linux boxes support dynamic linking these days and
14774  # people can always --disable-shared, the test was removed, and we
14775  # assume the GNU/Linux dynamic linker is in use.
14776  dynamic_linker='GNU/Linux ld.so'
14777  ;;
14778
14779netbsdelf*-gnu)
14780  version_type=linux
14781  need_lib_prefix=no
14782  need_version=no
14783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14784  soname_spec='${libname}${release}${shared_ext}$major'
14785  shlibpath_var=LD_LIBRARY_PATH
14786  shlibpath_overrides_runpath=no
14787  hardcode_into_libs=yes
14788  dynamic_linker='NetBSD ld.elf_so'
14789  ;;
14790
14791netbsd*)
14792  version_type=sunos
14793  need_lib_prefix=no
14794  need_version=no
14795  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14796    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14797    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798    dynamic_linker='NetBSD (a.out) ld.so'
14799  else
14800    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14801    soname_spec='$libname$release$shared_ext$major'
14802    dynamic_linker='NetBSD ld.elf_so'
14803  fi
14804  shlibpath_var=LD_LIBRARY_PATH
14805  shlibpath_overrides_runpath=yes
14806  hardcode_into_libs=yes
14807  ;;
14808
14809newsos6)
14810  version_type=linux # correct to gnu/linux during the next big refactor
14811  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14812  shlibpath_var=LD_LIBRARY_PATH
14813  shlibpath_overrides_runpath=yes
14814  ;;
14815
14816*nto* | *qnx*)
14817  version_type=qnx
14818  need_lib_prefix=no
14819  need_version=no
14820  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14821  soname_spec='$libname$release$shared_ext$major'
14822  shlibpath_var=LD_LIBRARY_PATH
14823  shlibpath_overrides_runpath=no
14824  hardcode_into_libs=yes
14825  dynamic_linker='ldqnx.so'
14826  ;;
14827
14828openbsd* | bitrig*)
14829  version_type=sunos
14830  sys_lib_dlsearch_path_spec=/usr/lib
14831  need_lib_prefix=no
14832  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14833    need_version=no
14834  else
14835    need_version=yes
14836  fi
14837  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14838  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14839  shlibpath_var=LD_LIBRARY_PATH
14840  shlibpath_overrides_runpath=yes
14841  ;;
14842
14843os2*)
14844  libname_spec='$name'
14845  version_type=windows
14846  shrext_cmds=.dll
14847  need_version=no
14848  need_lib_prefix=no
14849  # OS/2 can only load a DLL with a base name of 8 characters or less.
14850  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14851    v=$($ECHO $release$versuffix | tr -d .-);
14852    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14853    $ECHO $n$v`$shared_ext'
14854  library_names_spec='${libname}_dll.$libext'
14855  dynamic_linker='OS/2 ld.exe'
14856  shlibpath_var=BEGINLIBPATH
14857  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14858  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14859  postinstall_cmds='base_file=`basename \$file`~
14860    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14861    dldir=$destdir/`dirname \$dlpath`~
14862    test -d \$dldir || mkdir -p \$dldir~
14863    $install_prog $dir/$dlname \$dldir/$dlname~
14864    chmod a+x \$dldir/$dlname~
14865    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14866      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14867    fi'
14868  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14869    dlpath=$dir/\$dldll~
14870    $RM \$dlpath'
14871  ;;
14872
14873osf3* | osf4* | osf5*)
14874  version_type=osf
14875  need_lib_prefix=no
14876  need_version=no
14877  soname_spec='$libname$release$shared_ext$major'
14878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14879  shlibpath_var=LD_LIBRARY_PATH
14880  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14881  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14882  ;;
14883
14884rdos*)
14885  dynamic_linker=no
14886  ;;
14887
14888solaris*)
14889  version_type=linux # correct to gnu/linux during the next big refactor
14890  need_lib_prefix=no
14891  need_version=no
14892  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14893  soname_spec='$libname$release$shared_ext$major'
14894  shlibpath_var=LD_LIBRARY_PATH
14895  shlibpath_overrides_runpath=yes
14896  hardcode_into_libs=yes
14897  # ldd complains unless libraries are executable
14898  postinstall_cmds='chmod +x $lib'
14899  ;;
14900
14901sunos4*)
14902  version_type=sunos
14903  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14904  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14905  shlibpath_var=LD_LIBRARY_PATH
14906  shlibpath_overrides_runpath=yes
14907  if test yes = "$with_gnu_ld"; then
14908    need_lib_prefix=no
14909  fi
14910  need_version=yes
14911  ;;
14912
14913sysv4 | sysv4.3*)
14914  version_type=linux # correct to gnu/linux during the next big refactor
14915  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14916  soname_spec='$libname$release$shared_ext$major'
14917  shlibpath_var=LD_LIBRARY_PATH
14918  case $host_vendor in
14919    sni)
14920      shlibpath_overrides_runpath=no
14921      need_lib_prefix=no
14922      runpath_var=LD_RUN_PATH
14923      ;;
14924    siemens)
14925      need_lib_prefix=no
14926      ;;
14927    motorola)
14928      need_lib_prefix=no
14929      need_version=no
14930      shlibpath_overrides_runpath=no
14931      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14932      ;;
14933  esac
14934  ;;
14935
14936sysv4*MP*)
14937  if test -d /usr/nec; then
14938    version_type=linux # correct to gnu/linux during the next big refactor
14939    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14940    soname_spec='$libname$shared_ext.$major'
14941    shlibpath_var=LD_LIBRARY_PATH
14942  fi
14943  ;;
14944
14945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14946  version_type=sco
14947  need_lib_prefix=no
14948  need_version=no
14949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14950  soname_spec='$libname$release$shared_ext$major'
14951  shlibpath_var=LD_LIBRARY_PATH
14952  shlibpath_overrides_runpath=yes
14953  hardcode_into_libs=yes
14954  if test yes = "$with_gnu_ld"; then
14955    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14956  else
14957    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14958    case $host_os in
14959      sco3.2v5*)
14960        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14961	;;
14962    esac
14963  fi
14964  sys_lib_dlsearch_path_spec='/usr/lib'
14965  ;;
14966
14967tpf*)
14968  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14969  version_type=linux # correct to gnu/linux during the next big refactor
14970  need_lib_prefix=no
14971  need_version=no
14972  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14973  shlibpath_var=LD_LIBRARY_PATH
14974  shlibpath_overrides_runpath=no
14975  hardcode_into_libs=yes
14976  ;;
14977
14978uts4*)
14979  version_type=linux # correct to gnu/linux during the next big refactor
14980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14981  soname_spec='$libname$release$shared_ext$major'
14982  shlibpath_var=LD_LIBRARY_PATH
14983  ;;
14984
14985*)
14986  dynamic_linker=no
14987  ;;
14988esac
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14990$as_echo "$dynamic_linker" >&6; }
14991test no = "$dynamic_linker" && can_build_shared=no
14992
14993variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14994if test yes = "$GCC"; then
14995  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14996fi
14997
14998if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14999  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15000fi
15001
15002if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15003  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15004fi
15005
15006# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15007configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15008
15009# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15010func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15011
15012# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15013configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15113hardcode_action=
15114if test -n "$hardcode_libdir_flag_spec" ||
15115   test -n "$runpath_var" ||
15116   test yes = "$hardcode_automatic"; then
15117
15118  # We can hardcode non-existent directories.
15119  if test no != "$hardcode_direct" &&
15120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15121     # have to relink, otherwise we might link with an installed library
15122     # when we should be linking with a yet-to-be-installed one
15123     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15124     test no != "$hardcode_minus_L"; then
15125    # Linking always hardcodes the temporary library directory.
15126    hardcode_action=relink
15127  else
15128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15129    hardcode_action=immediate
15130  fi
15131else
15132  # We cannot hardcode anything, or else we can only hardcode existing
15133  # directories.
15134  hardcode_action=unsupported
15135fi
15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15137$as_echo "$hardcode_action" >&6; }
15138
15139if test relink = "$hardcode_action" ||
15140   test yes = "$inherit_rpath"; then
15141  # Fast installation is not supported
15142  enable_fast_install=no
15143elif test yes = "$shlibpath_overrides_runpath" ||
15144     test no = "$enable_shared"; then
15145  # Fast installation is not necessary
15146  enable_fast_install=needless
15147fi
15148
15149
15150
15151
15152
15153
15154  if test yes != "$enable_dlopen"; then
15155  enable_dlopen=unknown
15156  enable_dlopen_self=unknown
15157  enable_dlopen_self_static=unknown
15158else
15159  lt_cv_dlopen=no
15160  lt_cv_dlopen_libs=
15161
15162  case $host_os in
15163  beos*)
15164    lt_cv_dlopen=load_add_on
15165    lt_cv_dlopen_libs=
15166    lt_cv_dlopen_self=yes
15167    ;;
15168
15169  mingw* | pw32* | cegcc*)
15170    lt_cv_dlopen=LoadLibrary
15171    lt_cv_dlopen_libs=
15172    ;;
15173
15174  cygwin*)
15175    lt_cv_dlopen=dlopen
15176    lt_cv_dlopen_libs=
15177    ;;
15178
15179  darwin*)
15180    # if libdl is installed we need to link against it
15181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15182$as_echo_n "checking for dlopen in -ldl... " >&6; }
15183if ${ac_cv_lib_dl_dlopen+:} false; then :
15184  $as_echo_n "(cached) " >&6
15185else
15186  ac_check_lib_save_LIBS=$LIBS
15187LIBS="-ldl  $LIBS"
15188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190
15191
15192#ifdef __cplusplus
15193extern "C"
15194#endif
15195char dlopen ();
15196int main (void)
15197{
15198return dlopen ();
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203if ac_fn_c_try_link "$LINENO"; then :
15204  ac_cv_lib_dl_dlopen=yes
15205else
15206  ac_cv_lib_dl_dlopen=no
15207fi
15208rm -f core conftest.err conftest.$ac_objext \
15209    conftest$ac_exeext conftest.$ac_ext
15210LIBS=$ac_check_lib_save_LIBS
15211fi
15212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15213$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15214if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15215  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15216else
15217
15218    lt_cv_dlopen=dyld
15219    lt_cv_dlopen_libs=
15220    lt_cv_dlopen_self=yes
15221
15222fi
15223
15224    ;;
15225
15226  tpf*)
15227    # Don't try to run any link tests for TPF.  We know it's impossible
15228    # because TPF is a cross-compiler, and we know how we open DSOs.
15229    lt_cv_dlopen=dlopen
15230    lt_cv_dlopen_libs=
15231    lt_cv_dlopen_self=no
15232    ;;
15233
15234  *)
15235    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15236if test "x$ac_cv_func_shl_load" = xyes; then :
15237  lt_cv_dlopen=shl_load
15238else
15239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15240$as_echo_n "checking for shl_load in -ldld... " >&6; }
15241if ${ac_cv_lib_dld_shl_load+:} false; then :
15242  $as_echo_n "(cached) " >&6
15243else
15244  ac_check_lib_save_LIBS=$LIBS
15245LIBS="-ldld  $LIBS"
15246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247/* end confdefs.h.  */
15248
15249
15250#ifdef __cplusplus
15251extern "C"
15252#endif
15253char shl_load ();
15254int main (void)
15255{
15256return shl_load ();
15257 ;
15258 return 0;
15259}
15260_ACEOF
15261if ac_fn_c_try_link "$LINENO"; then :
15262  ac_cv_lib_dld_shl_load=yes
15263else
15264  ac_cv_lib_dld_shl_load=no
15265fi
15266rm -f core conftest.err conftest.$ac_objext \
15267    conftest$ac_exeext conftest.$ac_ext
15268LIBS=$ac_check_lib_save_LIBS
15269fi
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15272if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15273  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15274else
15275  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15276if test "x$ac_cv_func_dlopen" = xyes; then :
15277  lt_cv_dlopen=dlopen
15278else
15279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15280$as_echo_n "checking for dlopen in -ldl... " >&6; }
15281if ${ac_cv_lib_dl_dlopen+:} false; then :
15282  $as_echo_n "(cached) " >&6
15283else
15284  ac_check_lib_save_LIBS=$LIBS
15285LIBS="-ldl  $LIBS"
15286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* end confdefs.h.  */
15288
15289
15290#ifdef __cplusplus
15291extern "C"
15292#endif
15293char dlopen ();
15294int main (void)
15295{
15296return dlopen ();
15297 ;
15298 return 0;
15299}
15300_ACEOF
15301if ac_fn_c_try_link "$LINENO"; then :
15302  ac_cv_lib_dl_dlopen=yes
15303else
15304  ac_cv_lib_dl_dlopen=no
15305fi
15306rm -f core conftest.err conftest.$ac_objext \
15307    conftest$ac_exeext conftest.$ac_ext
15308LIBS=$ac_check_lib_save_LIBS
15309fi
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15311$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15312if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15313  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15314else
15315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15316$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15317if ${ac_cv_lib_svld_dlopen+:} false; then :
15318  $as_echo_n "(cached) " >&6
15319else
15320  ac_check_lib_save_LIBS=$LIBS
15321LIBS="-lsvld  $LIBS"
15322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h.  */
15324
15325
15326#ifdef __cplusplus
15327extern "C"
15328#endif
15329char dlopen ();
15330int main (void)
15331{
15332return dlopen ();
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
15338  ac_cv_lib_svld_dlopen=yes
15339else
15340  ac_cv_lib_svld_dlopen=no
15341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343    conftest$ac_exeext conftest.$ac_ext
15344LIBS=$ac_check_lib_save_LIBS
15345fi
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15347$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15348if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15349  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15350else
15351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15352$as_echo_n "checking for dld_link in -ldld... " >&6; }
15353if ${ac_cv_lib_dld_dld_link+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  ac_check_lib_save_LIBS=$LIBS
15357LIBS="-ldld  $LIBS"
15358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359/* end confdefs.h.  */
15360
15361
15362#ifdef __cplusplus
15363extern "C"
15364#endif
15365char dld_link ();
15366int main (void)
15367{
15368return dld_link ();
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373if ac_fn_c_try_link "$LINENO"; then :
15374  ac_cv_lib_dld_dld_link=yes
15375else
15376  ac_cv_lib_dld_dld_link=no
15377fi
15378rm -f core conftest.err conftest.$ac_objext \
15379    conftest$ac_exeext conftest.$ac_ext
15380LIBS=$ac_check_lib_save_LIBS
15381fi
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15383$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15384if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15385  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15386fi
15387
15388
15389fi
15390
15391
15392fi
15393
15394
15395fi
15396
15397
15398fi
15399
15400
15401fi
15402
15403    ;;
15404  esac
15405
15406  if test no = "$lt_cv_dlopen"; then
15407    enable_dlopen=no
15408  else
15409    enable_dlopen=yes
15410  fi
15411
15412  case $lt_cv_dlopen in
15413  dlopen)
15414    save_CPPFLAGS=$CPPFLAGS
15415    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15416
15417    save_LDFLAGS=$LDFLAGS
15418    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15419
15420    save_LIBS=$LIBS
15421    LIBS="$lt_cv_dlopen_libs $LIBS"
15422
15423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15424$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15425if ${lt_cv_dlopen_self+:} false; then :
15426  $as_echo_n "(cached) " >&6
15427else
15428  	  if test yes = "$cross_compiling"; then :
15429  lt_cv_dlopen_self=cross
15430else
15431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15432  lt_status=$lt_dlunknown
15433  cat > conftest.$ac_ext <<_LT_EOF
15434#line $LINENO "configure"
15435#include "confdefs.h"
15436
15437#if HAVE_DLFCN_H
15438#include <dlfcn.h>
15439#endif
15440
15441#include <stdio.h>
15442
15443#ifdef RTLD_GLOBAL
15444#  define LT_DLGLOBAL		RTLD_GLOBAL
15445#else
15446#  ifdef DL_GLOBAL
15447#    define LT_DLGLOBAL		DL_GLOBAL
15448#  else
15449#    define LT_DLGLOBAL		0
15450#  endif
15451#endif
15452
15453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15454   find out it does not work in some platform. */
15455#ifndef LT_DLLAZY_OR_NOW
15456#  ifdef RTLD_LAZY
15457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15458#  else
15459#    ifdef DL_LAZY
15460#      define LT_DLLAZY_OR_NOW		DL_LAZY
15461#    else
15462#      ifdef RTLD_NOW
15463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15464#      else
15465#        ifdef DL_NOW
15466#          define LT_DLLAZY_OR_NOW	DL_NOW
15467#        else
15468#          define LT_DLLAZY_OR_NOW	0
15469#        endif
15470#      endif
15471#    endif
15472#  endif
15473#endif
15474
15475/* When -fvisibility=hidden is used, assume the code has been annotated
15476   correspondingly for the symbols needed.  */
15477#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15478int fnord () __attribute__((visibility("default")));
15479#endif
15480
15481int fnord () { return 42; }
15482int main ()
15483{
15484  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15485  int status = $lt_dlunknown;
15486
15487  if (self)
15488    {
15489      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15490      else
15491        {
15492	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15493          else puts (dlerror ());
15494	}
15495      /* dlclose (self); */
15496    }
15497  else
15498    puts (dlerror ());
15499
15500  return status;
15501}
15502_LT_EOF
15503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15504  (eval $ac_link) 2>&5
15505  ac_status=$?
15506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15508    (./conftest; exit; ) >&5 2>/dev/null
15509    lt_status=$?
15510    case x$lt_status in
15511      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15512      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15513      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15514    esac
15515  else :
15516    # compilation failed
15517    lt_cv_dlopen_self=no
15518  fi
15519fi
15520rm -fr conftest*
15521
15522
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15525$as_echo "$lt_cv_dlopen_self" >&6; }
15526
15527    if test yes = "$lt_cv_dlopen_self"; then
15528      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15530$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15531if ${lt_cv_dlopen_self_static+:} false; then :
15532  $as_echo_n "(cached) " >&6
15533else
15534  	  if test yes = "$cross_compiling"; then :
15535  lt_cv_dlopen_self_static=cross
15536else
15537  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15538  lt_status=$lt_dlunknown
15539  cat > conftest.$ac_ext <<_LT_EOF
15540#line $LINENO "configure"
15541#include "confdefs.h"
15542
15543#if HAVE_DLFCN_H
15544#include <dlfcn.h>
15545#endif
15546
15547#include <stdio.h>
15548
15549#ifdef RTLD_GLOBAL
15550#  define LT_DLGLOBAL		RTLD_GLOBAL
15551#else
15552#  ifdef DL_GLOBAL
15553#    define LT_DLGLOBAL		DL_GLOBAL
15554#  else
15555#    define LT_DLGLOBAL		0
15556#  endif
15557#endif
15558
15559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15560   find out it does not work in some platform. */
15561#ifndef LT_DLLAZY_OR_NOW
15562#  ifdef RTLD_LAZY
15563#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15564#  else
15565#    ifdef DL_LAZY
15566#      define LT_DLLAZY_OR_NOW		DL_LAZY
15567#    else
15568#      ifdef RTLD_NOW
15569#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15570#      else
15571#        ifdef DL_NOW
15572#          define LT_DLLAZY_OR_NOW	DL_NOW
15573#        else
15574#          define LT_DLLAZY_OR_NOW	0
15575#        endif
15576#      endif
15577#    endif
15578#  endif
15579#endif
15580
15581/* When -fvisibility=hidden is used, assume the code has been annotated
15582   correspondingly for the symbols needed.  */
15583#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15584int fnord () __attribute__((visibility("default")));
15585#endif
15586
15587int fnord () { return 42; }
15588int main ()
15589{
15590  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15591  int status = $lt_dlunknown;
15592
15593  if (self)
15594    {
15595      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15596      else
15597        {
15598	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15599          else puts (dlerror ());
15600	}
15601      /* dlclose (self); */
15602    }
15603  else
15604    puts (dlerror ());
15605
15606  return status;
15607}
15608_LT_EOF
15609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15610  (eval $ac_link) 2>&5
15611  ac_status=$?
15612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15613  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15614    (./conftest; exit; ) >&5 2>/dev/null
15615    lt_status=$?
15616    case x$lt_status in
15617      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15618      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15619      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15620    esac
15621  else :
15622    # compilation failed
15623    lt_cv_dlopen_self_static=no
15624  fi
15625fi
15626rm -fr conftest*
15627
15628
15629fi
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15631$as_echo "$lt_cv_dlopen_self_static" >&6; }
15632    fi
15633
15634    CPPFLAGS=$save_CPPFLAGS
15635    LDFLAGS=$save_LDFLAGS
15636    LIBS=$save_LIBS
15637    ;;
15638  esac
15639
15640  case $lt_cv_dlopen_self in
15641  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15642  *) enable_dlopen_self=unknown ;;
15643  esac
15644
15645  case $lt_cv_dlopen_self_static in
15646  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15647  *) enable_dlopen_self_static=unknown ;;
15648  esac
15649fi
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667striplib=
15668old_striplib=
15669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15670$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15671if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15672  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15673  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675$as_echo "yes" >&6; }
15676else
15677# FIXME - insert some real tests, host_os isn't really good enough
15678  case $host_os in
15679  darwin*)
15680    if test -n "$STRIP"; then
15681      striplib="$STRIP -x"
15682      old_striplib="$STRIP -S"
15683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15684$as_echo "yes" >&6; }
15685    else
15686      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687$as_echo "no" >&6; }
15688    fi
15689    ;;
15690  *)
15691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692$as_echo "no" >&6; }
15693    ;;
15694  esac
15695fi
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708  # Report what library types will actually be built
15709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15710$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15712$as_echo "$can_build_shared" >&6; }
15713
15714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15715$as_echo_n "checking whether to build shared libraries... " >&6; }
15716  test no = "$can_build_shared" && enable_shared=no
15717
15718  # On AIX, shared libraries and static libraries use the same namespace, and
15719  # are all built from PIC.
15720  case $host_os in
15721  aix3*)
15722    test yes = "$enable_shared" && enable_static=no
15723    if test -n "$RANLIB"; then
15724      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15725      postinstall_cmds='$RANLIB $lib'
15726    fi
15727    ;;
15728
15729  aix[4-9]*)
15730    if test ia64 != "$host_cpu"; then
15731      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15732      yes,aix,yes) ;;			# shared object as lib.so file only
15733      yes,svr4,*) ;;			# shared object as lib.so archive member only
15734      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15735      esac
15736    fi
15737    ;;
15738  esac
15739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15740$as_echo "$enable_shared" >&6; }
15741
15742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15743$as_echo_n "checking whether to build static libraries... " >&6; }
15744  # Make sure either enable_shared or enable_static is yes.
15745  test yes = "$enable_shared" || enable_static=yes
15746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15747$as_echo "$enable_static" >&6; }
15748
15749
15750
15751
15752fi
15753ac_ext=c
15754ac_cpp='$CPP $CPPFLAGS'
15755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758
15759CC=$lt_save_CC
15760
15761      if test -n "$CXX" && ( test no != "$CXX" &&
15762    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15763    (test g++ != "$CXX"))); then
15764  ac_ext=cpp
15765ac_cpp='$CXXCPP $CPPFLAGS'
15766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15770$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15771if test -z "$CXXCPP"; then
15772  if ${ac_cv_prog_CXXCPP+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775      # Double quotes because CXXCPP needs to be expanded
15776    for CXXCPP in "$CXX -E" "/lib/cpp"
15777    do
15778      ac_preproc_ok=false
15779for ac_cxx_preproc_warn_flag in '' yes
15780do
15781  # Use a header file that comes with gcc, so configuring glibc
15782  # with a fresh cross-compiler works.
15783  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15784  # <limits.h> exists even on freestanding compilers.
15785  # On the NeXT, cc -E runs the code through the compiler's parser,
15786  # not just through cpp. "Syntax error" is here to catch this case.
15787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789#ifdef __STDC__
15790# include <limits.h>
15791#else
15792# include <assert.h>
15793#endif
15794		     Syntax error
15795_ACEOF
15796if ac_fn_cxx_try_cpp "$LINENO"; then :
15797
15798else
15799  # Broken: fails on valid input.
15800continue
15801fi
15802rm -f conftest.err conftest.i conftest.$ac_ext
15803
15804  # OK, works on sane cases.  Now check whether nonexistent headers
15805  # can be detected and how.
15806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h.  */
15808#include <ac_nonexistent.h>
15809_ACEOF
15810if ac_fn_cxx_try_cpp "$LINENO"; then :
15811  # Broken: success on invalid input.
15812continue
15813else
15814  # Passes both tests.
15815ac_preproc_ok=:
15816break
15817fi
15818rm -f conftest.err conftest.i conftest.$ac_ext
15819
15820done
15821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15822rm -f conftest.i conftest.err conftest.$ac_ext
15823if $ac_preproc_ok; then :
15824  break
15825fi
15826
15827    done
15828    ac_cv_prog_CXXCPP=$CXXCPP
15829
15830fi
15831  CXXCPP=$ac_cv_prog_CXXCPP
15832else
15833  ac_cv_prog_CXXCPP=$CXXCPP
15834fi
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15836$as_echo "$CXXCPP" >&6; }
15837ac_preproc_ok=false
15838for ac_cxx_preproc_warn_flag in '' yes
15839do
15840  # Use a header file that comes with gcc, so configuring glibc
15841  # with a fresh cross-compiler works.
15842  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15843  # <limits.h> exists even on freestanding compilers.
15844  # On the NeXT, cc -E runs the code through the compiler's parser,
15845  # not just through cpp. "Syntax error" is here to catch this case.
15846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847/* end confdefs.h.  */
15848#ifdef __STDC__
15849# include <limits.h>
15850#else
15851# include <assert.h>
15852#endif
15853		     Syntax error
15854_ACEOF
15855if ac_fn_cxx_try_cpp "$LINENO"; then :
15856
15857else
15858  # Broken: fails on valid input.
15859continue
15860fi
15861rm -f conftest.err conftest.i conftest.$ac_ext
15862
15863  # OK, works on sane cases.  Now check whether nonexistent headers
15864  # can be detected and how.
15865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h.  */
15867#include <ac_nonexistent.h>
15868_ACEOF
15869if ac_fn_cxx_try_cpp "$LINENO"; then :
15870  # Broken: success on invalid input.
15871continue
15872else
15873  # Passes both tests.
15874ac_preproc_ok=:
15875break
15876fi
15877rm -f conftest.err conftest.i conftest.$ac_ext
15878
15879done
15880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15881rm -f conftest.i conftest.err conftest.$ac_ext
15882if $ac_preproc_ok; then :
15883
15884else
15885  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15887as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15888See \`config.log' for more details" "$LINENO" 5; }
15889fi
15890
15891ac_ext=c
15892ac_cpp='$CPP $CPPFLAGS'
15893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895ac_compiler_gnu=$ac_cv_c_compiler_gnu
15896
15897else
15898  _lt_caught_CXX_error=yes
15899fi
15900
15901ac_ext=cpp
15902ac_cpp='$CXXCPP $CPPFLAGS'
15903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15906
15907archive_cmds_need_lc_CXX=no
15908allow_undefined_flag_CXX=
15909always_export_symbols_CXX=no
15910archive_expsym_cmds_CXX=
15911compiler_needs_object_CXX=no
15912export_dynamic_flag_spec_CXX=
15913hardcode_direct_CXX=no
15914hardcode_direct_absolute_CXX=no
15915hardcode_libdir_flag_spec_CXX=
15916hardcode_libdir_separator_CXX=
15917hardcode_minus_L_CXX=no
15918hardcode_shlibpath_var_CXX=unsupported
15919hardcode_automatic_CXX=no
15920inherit_rpath_CXX=no
15921module_cmds_CXX=
15922module_expsym_cmds_CXX=
15923link_all_deplibs_CXX=unknown
15924old_archive_cmds_CXX=$old_archive_cmds
15925reload_flag_CXX=$reload_flag
15926reload_cmds_CXX=$reload_cmds
15927no_undefined_flag_CXX=
15928whole_archive_flag_spec_CXX=
15929enable_shared_with_static_runtimes_CXX=no
15930
15931# Source file extension for C++ test sources.
15932ac_ext=cpp
15933
15934# Object file extension for compiled C++ test sources.
15935objext=o
15936objext_CXX=$objext
15937
15938# No sense in running all these tests if we already determined that
15939# the CXX compiler isn't working.  Some variables (like enable_shared)
15940# are currently assumed to apply to all compilers on this platform,
15941# and will be corrupted by setting them based on a non-working compiler.
15942if test yes != "$_lt_caught_CXX_error"; then
15943  # Code to be used in simple compile tests
15944  lt_simple_compile_test_code="int some_variable = 0;"
15945
15946  # Code to be used in simple link tests
15947  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15948
15949  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15950
15951
15952
15953
15954
15955
15956# If no C compiler was specified, use CC.
15957LTCC=${LTCC-"$CC"}
15958
15959# If no C compiler flags were specified, use CFLAGS.
15960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15961
15962# Allow CC to be a program name with arguments.
15963compiler=$CC
15964
15965
15966  # save warnings/boilerplate of simple test code
15967  ac_outfile=conftest.$ac_objext
15968echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15969eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15970_lt_compiler_boilerplate=`cat conftest.err`
15971$RM conftest*
15972
15973  ac_outfile=conftest.$ac_objext
15974echo "$lt_simple_link_test_code" >conftest.$ac_ext
15975eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15976_lt_linker_boilerplate=`cat conftest.err`
15977$RM -r conftest*
15978
15979
15980  # Allow CC to be a program name with arguments.
15981  lt_save_CC=$CC
15982  lt_save_CFLAGS=$CFLAGS
15983  lt_save_LD=$LD
15984  lt_save_GCC=$GCC
15985  GCC=$GXX
15986  lt_save_with_gnu_ld=$with_gnu_ld
15987  lt_save_path_LD=$lt_cv_path_LD
15988  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15989    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15990  else
15991    $as_unset lt_cv_prog_gnu_ld
15992  fi
15993  if test -n "${lt_cv_path_LDCXX+set}"; then
15994    lt_cv_path_LD=$lt_cv_path_LDCXX
15995  else
15996    $as_unset lt_cv_path_LD
15997  fi
15998  test -z "${LDCXX+set}" || LD=$LDCXX
15999  CC=${CXX-"c++"}
16000  CFLAGS=$CXXFLAGS
16001  compiler=$CC
16002  compiler_CXX=$CC
16003  func_cc_basename $compiler
16004cc_basename=$func_cc_basename_result
16005
16006
16007  if test -n "$compiler"; then
16008    # We don't want -fno-exception when compiling C++ code, so set the
16009    # no_builtin_flag separately
16010    if test yes = "$GXX"; then
16011      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16012    else
16013      lt_prog_compiler_no_builtin_flag_CXX=
16014    fi
16015
16016    if test yes = "$GXX"; then
16017      # Set up default GNU C++ configuration
16018
16019
16020
16021# Check whether --with-gnu-ld was given.
16022if test "${with_gnu_ld+set}" = set; then :
16023  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16024else
16025  with_gnu_ld=no
16026fi
16027
16028ac_prog=ld
16029if test yes = "$GCC"; then
16030  # Check if gcc -print-prog-name=ld gives a path.
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16032$as_echo_n "checking for ld used by $CC... " >&6; }
16033  case $host in
16034  *-*-mingw*)
16035    # gcc leaves a trailing carriage return, which upsets mingw
16036    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16037  *)
16038    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16039  esac
16040  case $ac_prog in
16041    # Accept absolute paths.
16042    [\\/]* | ?:[\\/]*)
16043      re_direlt='/[^/][^/]*/\.\./'
16044      # Canonicalize the pathname of ld
16045      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16046      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16047	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16048      done
16049      test -z "$LD" && LD=$ac_prog
16050      ;;
16051  "")
16052    # If it fails, then pretend we aren't using GCC.
16053    ac_prog=ld
16054    ;;
16055  *)
16056    # If it is relative, then search for the first ld in PATH.
16057    with_gnu_ld=unknown
16058    ;;
16059  esac
16060elif test yes = "$with_gnu_ld"; then
16061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16062$as_echo_n "checking for GNU ld... " >&6; }
16063else
16064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16065$as_echo_n "checking for non-GNU ld... " >&6; }
16066fi
16067if ${lt_cv_path_LD+:} false; then :
16068  $as_echo_n "(cached) " >&6
16069else
16070  if test -z "$LD"; then
16071  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16072  for ac_dir in $PATH; do
16073    IFS=$lt_save_ifs
16074    test -z "$ac_dir" && ac_dir=.
16075    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16076      lt_cv_path_LD=$ac_dir/$ac_prog
16077      # Check to see if the program is GNU ld.  I'd rather use --version,
16078      # but apparently some variants of GNU ld only accept -v.
16079      # Break only if it was the GNU/non-GNU ld that we prefer.
16080      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16081      *GNU* | *'with BFD'*)
16082	test no != "$with_gnu_ld" && break
16083	;;
16084      *)
16085	test yes != "$with_gnu_ld" && break
16086	;;
16087      esac
16088    fi
16089  done
16090  IFS=$lt_save_ifs
16091else
16092  lt_cv_path_LD=$LD # Let the user override the test with a path.
16093fi
16094fi
16095
16096LD=$lt_cv_path_LD
16097if test -n "$LD"; then
16098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16099$as_echo "$LD" >&6; }
16100else
16101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16102$as_echo "no" >&6; }
16103fi
16104test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16107if ${lt_cv_prog_gnu_ld+:} false; then :
16108  $as_echo_n "(cached) " >&6
16109else
16110  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16111case `$LD -v 2>&1 </dev/null` in
16112*GNU* | *'with BFD'*)
16113  lt_cv_prog_gnu_ld=yes
16114  ;;
16115*)
16116  lt_cv_prog_gnu_ld=no
16117  ;;
16118esac
16119fi
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16121$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16122with_gnu_ld=$lt_cv_prog_gnu_ld
16123
16124
16125
16126
16127
16128
16129
16130      # Check if GNU C++ uses GNU ld as the underlying linker, since the
16131      # archiving commands below assume that GNU ld is being used.
16132      if test yes = "$with_gnu_ld"; then
16133        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16134        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'
16135
16136        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16137        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16138
16139        # If archive_cmds runs LD, not CC, wlarc should be empty
16140        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16141        #     investigate it a little bit more. (MM)
16142        wlarc='$wl'
16143
16144        # ancient GNU ld didn't support --whole-archive et. al.
16145        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16146	  $GREP 'no-whole-archive' > /dev/null; then
16147          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16148        else
16149          whole_archive_flag_spec_CXX=
16150        fi
16151      else
16152        with_gnu_ld=no
16153        wlarc=
16154
16155        # A generic and very simple default shared library creation
16156        # command for GNU C++ for the case where it uses the native
16157        # linker, instead of GNU ld.  If possible, this setting should
16158        # overridden to take advantage of the native linker features on
16159        # the platform it is being used on.
16160        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16161      fi
16162
16163      # Commands to make compiler produce verbose output that lists
16164      # what "hidden" libraries, object files and flags are used when
16165      # linking a shared library.
16166      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16167
16168    else
16169      GXX=no
16170      with_gnu_ld=no
16171      wlarc=
16172    fi
16173
16174    # PORTME: fill in a description of your system's C++ link characteristics
16175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16176$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16177    ld_shlibs_CXX=yes
16178    case $host_os in
16179      aix3*)
16180        # FIXME: insert proper C++ library support
16181        ld_shlibs_CXX=no
16182        ;;
16183      aix[4-9]*)
16184        if test ia64 = "$host_cpu"; then
16185          # On IA64, the linker does run time linking by default, so we don't
16186          # have to do anything special.
16187          aix_use_runtimelinking=no
16188          exp_sym_flag='-Bexport'
16189          no_entry_flag=
16190        else
16191          aix_use_runtimelinking=no
16192
16193          # Test if we are trying to use run time linking or normal
16194          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16195          # have runtime linking enabled, and use it for executables.
16196          # For shared libraries, we enable/disable runtime linking
16197          # depending on the kind of the shared library created -
16198          # when "with_aix_soname,aix_use_runtimelinking" is:
16199          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16200          # "aix,yes"  lib.so          shared, rtl:yes, for executables
16201          #            lib.a           static archive
16202          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16203          #            lib.a(lib.so.V) shared, rtl:no,  for executables
16204          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16205          #            lib.a(lib.so.V) shared, rtl:no
16206          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16207          #            lib.a           static archive
16208          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16209	    for ld_flag in $LDFLAGS; do
16210	      case $ld_flag in
16211	      *-brtl*)
16212	        aix_use_runtimelinking=yes
16213	        break
16214	        ;;
16215	      esac
16216	    done
16217	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16218	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
16219	      # so we don't have lib.a shared libs to link our executables.
16220	      # We have to force runtime linking in this case.
16221	      aix_use_runtimelinking=yes
16222	      LDFLAGS="$LDFLAGS -Wl,-brtl"
16223	    fi
16224	    ;;
16225          esac
16226
16227          exp_sym_flag='-bexport'
16228          no_entry_flag='-bnoentry'
16229        fi
16230
16231        # When large executables or shared objects are built, AIX ld can
16232        # have problems creating the table of contents.  If linking a library
16233        # or program results in "error TOC overflow" add -mminimal-toc to
16234        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16235        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16236
16237        archive_cmds_CXX=''
16238        hardcode_direct_CXX=yes
16239        hardcode_direct_absolute_CXX=yes
16240        hardcode_libdir_separator_CXX=':'
16241        link_all_deplibs_CXX=yes
16242        file_list_spec_CXX='$wl-f,'
16243        case $with_aix_soname,$aix_use_runtimelinking in
16244        aix,*) ;;	# no import file
16245        svr4,* | *,yes) # use import file
16246          # The Import File defines what to hardcode.
16247          hardcode_direct_CXX=no
16248          hardcode_direct_absolute_CXX=no
16249          ;;
16250        esac
16251
16252        if test yes = "$GXX"; then
16253          case $host_os in aix4.[012]|aix4.[012].*)
16254          # We only want to do this on AIX 4.2 and lower, the check
16255          # below for broken collect2 doesn't work under 4.3+
16256	  collect2name=`$CC -print-prog-name=collect2`
16257	  if test -f "$collect2name" &&
16258	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16259	  then
16260	    # We have reworked collect2
16261	    :
16262	  else
16263	    # We have old collect2
16264	    hardcode_direct_CXX=unsupported
16265	    # It fails to find uninstalled libraries when the uninstalled
16266	    # path is not listed in the libpath.  Setting hardcode_minus_L
16267	    # to unsupported forces relinking
16268	    hardcode_minus_L_CXX=yes
16269	    hardcode_libdir_flag_spec_CXX='-L$libdir'
16270	    hardcode_libdir_separator_CXX=
16271	  fi
16272          esac
16273          shared_flag='-shared'
16274	  if test yes = "$aix_use_runtimelinking"; then
16275	    shared_flag=$shared_flag' $wl-G'
16276	  fi
16277	  # Need to ensure runtime linking is disabled for the traditional
16278	  # shared library, or the linker may eventually find shared libraries
16279	  # /with/ Import File - we do not want to mix them.
16280	  shared_flag_aix='-shared'
16281	  shared_flag_svr4='-shared $wl-G'
16282        else
16283          # not using gcc
16284          if test ia64 = "$host_cpu"; then
16285	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16286	  # chokes on -Wl,-G. The following line is correct:
16287	  shared_flag='-G'
16288          else
16289	    if test yes = "$aix_use_runtimelinking"; then
16290	      shared_flag='$wl-G'
16291	    else
16292	      shared_flag='$wl-bM:SRE'
16293	    fi
16294	    shared_flag_aix='$wl-bM:SRE'
16295	    shared_flag_svr4='$wl-G'
16296          fi
16297        fi
16298
16299        export_dynamic_flag_spec_CXX='$wl-bexpall'
16300        # It seems that -bexpall does not export symbols beginning with
16301        # underscore (_), so it is better to generate a list of symbols to
16302	# export.
16303        always_export_symbols_CXX=yes
16304	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16305          # Warning - without using the other runtime loading flags (-brtl),
16306          # -berok will link without error, but may produce a broken library.
16307          # The "-G" linker flag allows undefined symbols.
16308          no_undefined_flag_CXX='-bernotok'
16309          # Determine the default libpath from the value encoded in an empty
16310          # executable.
16311          if test set = "${lt_cv_aix_libpath+set}"; then
16312  aix_libpath=$lt_cv_aix_libpath
16313else
16314  if ${lt_cv_aix_libpath__CXX+:} false; then :
16315  $as_echo_n "(cached) " >&6
16316else
16317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h.  */
16319
16320int
16321main ()
16322{
16323
16324  ;
16325  return 0;
16326}
16327_ACEOF
16328if ac_fn_cxx_try_link "$LINENO"; then :
16329
16330  lt_aix_libpath_sed='
16331      /Import File Strings/,/^$/ {
16332	  /^0/ {
16333	      s/^0  *\([^ ]*\) *$/\1/
16334	      p
16335	  }
16336      }'
16337  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338  # Check for a 64-bit object if we didn't find anything.
16339  if test -z "$lt_cv_aix_libpath__CXX"; then
16340    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16341  fi
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344    conftest$ac_exeext conftest.$ac_ext
16345  if test -z "$lt_cv_aix_libpath__CXX"; then
16346    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16347  fi
16348
16349fi
16350
16351  aix_libpath=$lt_cv_aix_libpath__CXX
16352fi
16353
16354          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16355
16356          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
16357        else
16358          if test ia64 = "$host_cpu"; then
16359	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16360	    allow_undefined_flag_CXX="-z nodefs"
16361	    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"
16362          else
16363	    # Determine the default libpath from the value encoded in an
16364	    # empty executable.
16365	    if test set = "${lt_cv_aix_libpath+set}"; then
16366  aix_libpath=$lt_cv_aix_libpath
16367else
16368  if ${lt_cv_aix_libpath__CXX+:} false; then :
16369  $as_echo_n "(cached) " >&6
16370else
16371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372/* end confdefs.h.  */
16373
16374int
16375main ()
16376{
16377
16378  ;
16379  return 0;
16380}
16381_ACEOF
16382if ac_fn_cxx_try_link "$LINENO"; then :
16383
16384  lt_aix_libpath_sed='
16385      /Import File Strings/,/^$/ {
16386	  /^0/ {
16387	      s/^0  *\([^ ]*\) *$/\1/
16388	      p
16389	  }
16390      }'
16391  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16392  # Check for a 64-bit object if we didn't find anything.
16393  if test -z "$lt_cv_aix_libpath__CXX"; then
16394    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16395  fi
16396fi
16397rm -f core conftest.err conftest.$ac_objext \
16398    conftest$ac_exeext conftest.$ac_ext
16399  if test -z "$lt_cv_aix_libpath__CXX"; then
16400    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16401  fi
16402
16403fi
16404
16405  aix_libpath=$lt_cv_aix_libpath__CXX
16406fi
16407
16408	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16409	    # Warning - without using the other run time loading flags,
16410	    # -berok will link without error, but may produce a broken library.
16411	    no_undefined_flag_CXX=' $wl-bernotok'
16412	    allow_undefined_flag_CXX=' $wl-berok'
16413	    if test yes = "$with_gnu_ld"; then
16414	      # We only use this code for GNU lds that support --whole-archive.
16415	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16416	    else
16417	      # Exported symbols can be pulled into shared objects from archives
16418	      whole_archive_flag_spec_CXX='$convenience'
16419	    fi
16420	    archive_cmds_need_lc_CXX=yes
16421	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16422	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16423	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16424	    if test svr4 != "$with_aix_soname"; then
16425	      # This is similar to how AIX traditionally builds its shared
16426	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16427	      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'
16428	    fi
16429	    if test aix != "$with_aix_soname"; then
16430	      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'
16431	    else
16432	      # used by -dlpreopen to get the symbols
16433	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16434	    fi
16435	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16436          fi
16437        fi
16438        ;;
16439
16440      beos*)
16441	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16442	  allow_undefined_flag_CXX=unsupported
16443	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16444	  # support --undefined.  This deserves some investigation.  FIXME
16445	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16446	else
16447	  ld_shlibs_CXX=no
16448	fi
16449	;;
16450
16451      chorus*)
16452        case $cc_basename in
16453          *)
16454	  # FIXME: insert proper C++ library support
16455	  ld_shlibs_CXX=no
16456	  ;;
16457        esac
16458        ;;
16459
16460      cygwin* | mingw* | pw32* | cegcc*)
16461	case $GXX,$cc_basename in
16462	,cl* | no,cl*)
16463	  # Native MSVC
16464	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16465	  # no search path for DLLs.
16466	  hardcode_libdir_flag_spec_CXX=' '
16467	  allow_undefined_flag_CXX=unsupported
16468	  always_export_symbols_CXX=yes
16469	  file_list_spec_CXX='@'
16470	  # Tell ltmain to make .lib files, not .a files.
16471	  libext=lib
16472	  # Tell ltmain to make .dll files, not .so files.
16473	  shrext_cmds=.dll
16474	  # FIXME: Setting linknames here is a bad hack.
16475	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16476	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16477              cp "$export_symbols" "$output_objdir/$soname.def";
16478              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16479            else
16480              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16481            fi~
16482            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16483            linknames='
16484	  # The linker will not automatically build a static lib if we build a DLL.
16485	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16486	  enable_shared_with_static_runtimes_CXX=yes
16487	  # Don't use ranlib
16488	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16489	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16490            lt_tool_outputfile="@TOOL_OUTPUT@"~
16491            case $lt_outputfile in
16492              *.exe|*.EXE) ;;
16493              *)
16494                lt_outputfile=$lt_outputfile.exe
16495                lt_tool_outputfile=$lt_tool_outputfile.exe
16496                ;;
16497            esac~
16498            func_to_tool_file "$lt_outputfile"~
16499            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16500              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16501              $RM "$lt_outputfile.manifest";
16502            fi'
16503	  ;;
16504	*)
16505	  # g++
16506	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16507	  # as there is no search path for DLLs.
16508	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16509	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16510	  allow_undefined_flag_CXX=unsupported
16511	  always_export_symbols_CXX=no
16512	  enable_shared_with_static_runtimes_CXX=yes
16513
16514	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16515	    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'
16516	    # If the export-symbols file already is a .def file, use it as
16517	    # is; otherwise, prepend EXPORTS...
16518	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16519              cp $export_symbols $output_objdir/$soname.def;
16520            else
16521              echo EXPORTS > $output_objdir/$soname.def;
16522              cat $export_symbols >> $output_objdir/$soname.def;
16523            fi~
16524            $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'
16525	  else
16526	    ld_shlibs_CXX=no
16527	  fi
16528	  ;;
16529	esac
16530	;;
16531      darwin* | rhapsody*)
16532
16533
16534  archive_cmds_need_lc_CXX=no
16535  hardcode_direct_CXX=no
16536  hardcode_automatic_CXX=yes
16537  hardcode_shlibpath_var_CXX=unsupported
16538  if test yes = "$lt_cv_ld_force_load"; then
16539    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\"`'
16540
16541  else
16542    whole_archive_flag_spec_CXX=''
16543  fi
16544  link_all_deplibs_CXX=yes
16545  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16546  case $cc_basename in
16547     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16548     *) _lt_dar_can_shared=$GCC ;;
16549  esac
16550  if test yes = "$_lt_dar_can_shared"; then
16551    output_verbose_link_cmd=func_echo_all
16552    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"
16553    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16554    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"
16555    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"
16556       if test yes != "$lt_cv_apple_cc_single_mod"; then
16557      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"
16558      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"
16559    fi
16560
16561  else
16562  ld_shlibs_CXX=no
16563  fi
16564
16565	;;
16566
16567      os2*)
16568	hardcode_libdir_flag_spec_CXX='-L$libdir'
16569	hardcode_minus_L_CXX=yes
16570	allow_undefined_flag_CXX=unsupported
16571	shrext_cmds=.dll
16572	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16573	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16574	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16575	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16576	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16577	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16578	  emximp -o $lib $output_objdir/$libname.def'
16579	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16580	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16581	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16582	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16583	  prefix_cmds="$SED"~
16584	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16585	    prefix_cmds="$prefix_cmds -e 1d";
16586	  fi~
16587	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16588	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16589	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16590	  emximp -o $lib $output_objdir/$libname.def'
16591	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16592	enable_shared_with_static_runtimes_CXX=yes
16593	;;
16594
16595      dgux*)
16596        case $cc_basename in
16597          ec++*)
16598	    # FIXME: insert proper C++ library support
16599	    ld_shlibs_CXX=no
16600	    ;;
16601          ghcx*)
16602	    # Green Hills C++ Compiler
16603	    # FIXME: insert proper C++ library support
16604	    ld_shlibs_CXX=no
16605	    ;;
16606          *)
16607	    # FIXME: insert proper C++ library support
16608	    ld_shlibs_CXX=no
16609	    ;;
16610        esac
16611        ;;
16612
16613      freebsd2.*)
16614        # C++ shared libraries reported to be fairly broken before
16615	# switch to ELF
16616        ld_shlibs_CXX=no
16617        ;;
16618
16619      freebsd-elf*)
16620        archive_cmds_need_lc_CXX=no
16621        ;;
16622
16623      freebsd* | dragonfly*)
16624        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16625        # conventions
16626        ld_shlibs_CXX=yes
16627        ;;
16628
16629      haiku*)
16630        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16631        link_all_deplibs_CXX=yes
16632        ;;
16633
16634      hpux9*)
16635        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16636        hardcode_libdir_separator_CXX=:
16637        export_dynamic_flag_spec_CXX='$wl-E'
16638        hardcode_direct_CXX=yes
16639        hardcode_minus_L_CXX=yes # Not in the search PATH,
16640				             # but as the default
16641				             # location of the library.
16642
16643        case $cc_basename in
16644          CC*)
16645            # FIXME: insert proper C++ library support
16646            ld_shlibs_CXX=no
16647            ;;
16648          aCC*)
16649            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 -f $output_objdir/$soname $lib'
16650            # Commands to make compiler produce verbose output that lists
16651            # what "hidden" libraries, object files and flags are used when
16652            # linking a shared library.
16653            #
16654            # There doesn't appear to be a way to prevent this compiler from
16655            # explicitly linking system object files so we need to strip them
16656            # from the output so that they don't get included in the library
16657            # dependencies.
16658            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"'
16659            ;;
16660          *)
16661            if test yes = "$GXX"; then
16662              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 -f $output_objdir/$soname $lib'
16663            else
16664              # FIXME: insert proper C++ library support
16665              ld_shlibs_CXX=no
16666            fi
16667            ;;
16668        esac
16669        ;;
16670
16671      hpux10*|hpux11*)
16672        if test no = "$with_gnu_ld"; then
16673	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16674	  hardcode_libdir_separator_CXX=:
16675
16676          case $host_cpu in
16677            hppa*64*|ia64*)
16678              ;;
16679            *)
16680	      export_dynamic_flag_spec_CXX='$wl-E'
16681              ;;
16682          esac
16683        fi
16684        case $host_cpu in
16685          hppa*64*|ia64*)
16686            hardcode_direct_CXX=no
16687            hardcode_shlibpath_var_CXX=no
16688            ;;
16689          *)
16690            hardcode_direct_CXX=yes
16691            hardcode_direct_absolute_CXX=yes
16692            hardcode_minus_L_CXX=yes # Not in the search PATH,
16693					         # but as the default
16694					         # location of the library.
16695            ;;
16696        esac
16697
16698        case $cc_basename in
16699          CC*)
16700	    # FIXME: insert proper C++ library support
16701	    ld_shlibs_CXX=no
16702	    ;;
16703          aCC*)
16704	    case $host_cpu in
16705	      hppa*64*)
16706	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16707	        ;;
16708	      ia64*)
16709	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16710	        ;;
16711	      *)
16712	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16713	        ;;
16714	    esac
16715	    # Commands to make compiler produce verbose output that lists
16716	    # what "hidden" libraries, object files and flags are used when
16717	    # linking a shared library.
16718	    #
16719	    # There doesn't appear to be a way to prevent this compiler from
16720	    # explicitly linking system object files so we need to strip them
16721	    # from the output so that they don't get included in the library
16722	    # dependencies.
16723	    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"'
16724	    ;;
16725          *)
16726	    if test yes = "$GXX"; then
16727	      if test no = "$with_gnu_ld"; then
16728	        case $host_cpu in
16729	          hppa*64*)
16730	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16731	            ;;
16732	          ia64*)
16733	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16734	            ;;
16735	          *)
16736	            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'
16737	            ;;
16738	        esac
16739	      fi
16740	    else
16741	      # FIXME: insert proper C++ library support
16742	      ld_shlibs_CXX=no
16743	    fi
16744	    ;;
16745        esac
16746        ;;
16747
16748      interix[3-9]*)
16749	hardcode_direct_CXX=no
16750	hardcode_shlibpath_var_CXX=no
16751	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16752	export_dynamic_flag_spec_CXX='$wl-E'
16753	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16754	# Instead, shared libraries are loaded at an image base (0x10000000 by
16755	# default) and relocated if they conflict, which is a slow very memory
16756	# consuming and fragmenting process.  To avoid this, we pick a random,
16757	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16758	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16759	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'
16760	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'
16761	;;
16762      irix5* | irix6*)
16763        case $cc_basename in
16764          CC*)
16765	    # SGI C++
16766	    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'
16767
16768	    # Archives containing C++ object files must be created using
16769	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16770	    # necessary to make sure instantiated templates are included
16771	    # in the archive.
16772	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16773	    ;;
16774          *)
16775	    if test yes = "$GXX"; then
16776	      if test no = "$with_gnu_ld"; then
16777	        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'
16778	      else
16779	        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'
16780	      fi
16781	    fi
16782	    link_all_deplibs_CXX=yes
16783	    ;;
16784        esac
16785        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16786        hardcode_libdir_separator_CXX=:
16787        inherit_rpath_CXX=yes
16788        ;;
16789
16790      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16791        case $cc_basename in
16792          KCC*)
16793	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16794
16795	    # KCC will only create a shared library if the output file
16796	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16797	    # to its proper name (with version) after linking.
16798	    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 -f \$templib $lib'
16799	    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 -f \$templib $lib'
16800	    # Commands to make compiler produce verbose output that lists
16801	    # what "hidden" libraries, object files and flags are used when
16802	    # linking a shared library.
16803	    #
16804	    # There doesn't appear to be a way to prevent this compiler from
16805	    # explicitly linking system object files so we need to strip them
16806	    # from the output so that they don't get included in the library
16807	    # dependencies.
16808	    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"'
16809
16810	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16811	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16812
16813	    # Archives containing C++ object files must be created using
16814	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16815	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16816	    ;;
16817	  icpc* | ecpc* )
16818	    # Intel C++
16819	    with_gnu_ld=yes
16820	    # version 8.0 and above of icpc choke on multiply defined symbols
16821	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16822	    # earlier do not add the objects themselves.
16823	    case `$CC -V 2>&1` in
16824	      *"Version 7."*)
16825	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16826		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'
16827		;;
16828	      *)  # Version 8.0 or newer
16829	        tmp_idyn=
16830	        case $host_cpu in
16831		  ia64*) tmp_idyn=' -i_dynamic';;
16832		esac
16833	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16834		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'
16835		;;
16836	    esac
16837	    archive_cmds_need_lc_CXX=no
16838	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16839	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16840	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16841	    ;;
16842          pgCC* | pgcpp*)
16843            # Portland Group C++ compiler
16844	    case `$CC -V` in
16845	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16846	      prelink_cmds_CXX='tpldir=Template.dir~
16847               rm -rf $tpldir~
16848               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16849               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16850	      old_archive_cmds_CXX='tpldir=Template.dir~
16851                rm -rf $tpldir~
16852                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16853                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16854                $RANLIB $oldlib'
16855	      archive_cmds_CXX='tpldir=Template.dir~
16856                rm -rf $tpldir~
16857                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16858                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16859	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16860                rm -rf $tpldir~
16861                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16862                $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'
16863	      ;;
16864	    *) # Version 6 and above use weak symbols
16865	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16866	      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'
16867	      ;;
16868	    esac
16869
16870	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16871	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16872	    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'
16873            ;;
16874	  cxx*)
16875	    # Compaq C++
16876	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16877	    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'
16878
16879	    runpath_var=LD_RUN_PATH
16880	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16881	    hardcode_libdir_separator_CXX=:
16882
16883	    # Commands to make compiler produce verbose output that lists
16884	    # what "hidden" libraries, object files and flags are used when
16885	    # linking a shared library.
16886	    #
16887	    # There doesn't appear to be a way to prevent this compiler from
16888	    # explicitly linking system object files so we need to strip them
16889	    # from the output so that they don't get included in the library
16890	    # dependencies.
16891	    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'
16892	    ;;
16893	  xl* | mpixl* | bgxl*)
16894	    # IBM XL 8.0 on PPC, with GNU ld
16895	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16896	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16897	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16898	    if test yes = "$supports_anon_versioning"; then
16899	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16900                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16901                echo "local: *; };" >> $output_objdir/$libname.ver~
16902                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16903	    fi
16904	    ;;
16905	  *)
16906	    case `$CC -V 2>&1 | sed 5q` in
16907	    *Sun\ C*)
16908	      # Sun C++ 5.9
16909	      no_undefined_flag_CXX=' -zdefs'
16910	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16911	      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'
16912	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16913	      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'
16914	      compiler_needs_object_CXX=yes
16915
16916	      # Not sure whether something based on
16917	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16918	      # would be better.
16919	      output_verbose_link_cmd='func_echo_all'
16920
16921	      # Archives containing C++ object files must be created using
16922	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16923	      # necessary to make sure instantiated templates are included
16924	      # in the archive.
16925	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16926	      ;;
16927	    esac
16928	    ;;
16929	esac
16930	;;
16931
16932      lynxos*)
16933        # FIXME: insert proper C++ library support
16934	ld_shlibs_CXX=no
16935	;;
16936
16937      m88k*)
16938        # FIXME: insert proper C++ library support
16939        ld_shlibs_CXX=no
16940	;;
16941
16942      mvs*)
16943        case $cc_basename in
16944          cxx*)
16945	    # FIXME: insert proper C++ library support
16946	    ld_shlibs_CXX=no
16947	    ;;
16948	  *)
16949	    # FIXME: insert proper C++ library support
16950	    ld_shlibs_CXX=no
16951	    ;;
16952	esac
16953	;;
16954
16955      netbsd*)
16956        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16957	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16958	  wlarc=
16959	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16960	  hardcode_direct_CXX=yes
16961	  hardcode_shlibpath_var_CXX=no
16962	fi
16963	# Workaround some broken pre-1.5 toolchains
16964	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16965	;;
16966
16967      *nto* | *qnx*)
16968        ld_shlibs_CXX=yes
16969	;;
16970
16971      openbsd* | bitrig*)
16972	if test -f /usr/libexec/ld.so; then
16973	  hardcode_direct_CXX=yes
16974	  hardcode_shlibpath_var_CXX=no
16975	  hardcode_direct_absolute_CXX=yes
16976	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16977	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16978	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16979	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16980	    export_dynamic_flag_spec_CXX='$wl-E'
16981	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16982	  fi
16983	  output_verbose_link_cmd=func_echo_all
16984	else
16985	  ld_shlibs_CXX=no
16986	fi
16987	;;
16988
16989      osf3* | osf4* | osf5*)
16990        case $cc_basename in
16991          KCC*)
16992	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16993
16994	    # KCC will only create a shared library if the output file
16995	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16996	    # to its proper name (with version) after linking.
16997	    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 -f \$templib $lib'
16998
16999	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17000	    hardcode_libdir_separator_CXX=:
17001
17002	    # Archives containing C++ object files must be created using
17003	    # the KAI C++ compiler.
17004	    case $host in
17005	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17006	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17007	    esac
17008	    ;;
17009          RCC*)
17010	    # Rational C++ 2.4.1
17011	    # FIXME: insert proper C++ library support
17012	    ld_shlibs_CXX=no
17013	    ;;
17014          cxx*)
17015	    case $host in
17016	      osf3*)
17017	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17018	        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'
17019	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17020		;;
17021	      *)
17022	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17023	        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'
17024	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17025                  echo "-hidden">> $lib.exp~
17026                  $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~
17027                  $RM $lib.exp'
17028	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17029		;;
17030	    esac
17031
17032	    hardcode_libdir_separator_CXX=:
17033
17034	    # Commands to make compiler produce verbose output that lists
17035	    # what "hidden" libraries, object files and flags are used when
17036	    # linking a shared library.
17037	    #
17038	    # There doesn't appear to be a way to prevent this compiler from
17039	    # explicitly linking system object files so we need to strip them
17040	    # from the output so that they don't get included in the library
17041	    # dependencies.
17042	    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"'
17043	    ;;
17044	  *)
17045	    if test yes,no = "$GXX,$with_gnu_ld"; then
17046	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17047	      case $host in
17048	        osf3*)
17049	          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'
17050		  ;;
17051	        *)
17052	          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'
17053		  ;;
17054	      esac
17055
17056	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17057	      hardcode_libdir_separator_CXX=:
17058
17059	      # Commands to make compiler produce verbose output that lists
17060	      # what "hidden" libraries, object files and flags are used when
17061	      # linking a shared library.
17062	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17063
17064	    else
17065	      # FIXME: insert proper C++ library support
17066	      ld_shlibs_CXX=no
17067	    fi
17068	    ;;
17069        esac
17070        ;;
17071
17072      psos*)
17073        # FIXME: insert proper C++ library support
17074        ld_shlibs_CXX=no
17075        ;;
17076
17077      sunos4*)
17078        case $cc_basename in
17079          CC*)
17080	    # Sun C++ 4.x
17081	    # FIXME: insert proper C++ library support
17082	    ld_shlibs_CXX=no
17083	    ;;
17084          lcc*)
17085	    # Lucid
17086	    # FIXME: insert proper C++ library support
17087	    ld_shlibs_CXX=no
17088	    ;;
17089          *)
17090	    # FIXME: insert proper C++ library support
17091	    ld_shlibs_CXX=no
17092	    ;;
17093        esac
17094        ;;
17095
17096      solaris*)
17097        case $cc_basename in
17098          CC* | sunCC*)
17099	    # Sun C++ 4.2, 5.x and Centerline C++
17100            archive_cmds_need_lc_CXX=yes
17101	    no_undefined_flag_CXX=' -zdefs'
17102	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17103	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17104              $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'
17105
17106	    hardcode_libdir_flag_spec_CXX='-R$libdir'
17107	    hardcode_shlibpath_var_CXX=no
17108	    case $host_os in
17109	      solaris2.[0-5] | solaris2.[0-5].*) ;;
17110	      *)
17111		# The compiler driver will combine and reorder linker options,
17112		# but understands '-z linker_flag'.
17113	        # Supported since Solaris 2.6 (maybe 2.5.1?)
17114		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17115	        ;;
17116	    esac
17117	    link_all_deplibs_CXX=yes
17118
17119	    output_verbose_link_cmd='func_echo_all'
17120
17121	    # Archives containing C++ object files must be created using
17122	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17123	    # necessary to make sure instantiated templates are included
17124	    # in the archive.
17125	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17126	    ;;
17127          gcx*)
17128	    # Green Hills C++ Compiler
17129	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17130
17131	    # The C++ compiler must be used to create the archive.
17132	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17133	    ;;
17134          *)
17135	    # GNU C++ compiler with Solaris linker
17136	    if test yes,no = "$GXX,$with_gnu_ld"; then
17137	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
17138	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17139	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17140	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17141                  $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'
17142
17143	        # Commands to make compiler produce verbose output that lists
17144	        # what "hidden" libraries, object files and flags are used when
17145	        # linking a shared library.
17146	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17147	      else
17148	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
17149	        # platform.
17150	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17151	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17152                  $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'
17153
17154	        # Commands to make compiler produce verbose output that lists
17155	        # what "hidden" libraries, object files and flags are used when
17156	        # linking a shared library.
17157	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17158	      fi
17159
17160	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17161	      case $host_os in
17162		solaris2.[0-5] | solaris2.[0-5].*) ;;
17163		*)
17164		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17165		  ;;
17166	      esac
17167	    fi
17168	    ;;
17169        esac
17170        ;;
17171
17172    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17173      no_undefined_flag_CXX='$wl-z,text'
17174      archive_cmds_need_lc_CXX=no
17175      hardcode_shlibpath_var_CXX=no
17176      runpath_var='LD_RUN_PATH'
17177
17178      case $cc_basename in
17179        CC*)
17180	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17181	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17182	  ;;
17183	*)
17184	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17186	  ;;
17187      esac
17188      ;;
17189
17190      sysv5* | sco3.2v5* | sco5v6*)
17191	# Note: We CANNOT use -z defs as we might desire, because we do not
17192	# link with -lc, and that would cause any symbols used from libc to
17193	# always be unresolved, which means just about no library would
17194	# ever link correctly.  If we're not using GNU ld we use -z text
17195	# though, which does catch some bad symbols but isn't as heavy-handed
17196	# as -z defs.
17197	no_undefined_flag_CXX='$wl-z,text'
17198	allow_undefined_flag_CXX='$wl-z,nodefs'
17199	archive_cmds_need_lc_CXX=no
17200	hardcode_shlibpath_var_CXX=no
17201	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17202	hardcode_libdir_separator_CXX=':'
17203	link_all_deplibs_CXX=yes
17204	export_dynamic_flag_spec_CXX='$wl-Bexport'
17205	runpath_var='LD_RUN_PATH'
17206
17207	case $cc_basename in
17208          CC*)
17209	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17210	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17211	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17212              '"$old_archive_cmds_CXX"
17213	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17214              '"$reload_cmds_CXX"
17215	    ;;
17216	  *)
17217	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17218	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17219	    ;;
17220	esac
17221      ;;
17222
17223      tandem*)
17224        case $cc_basename in
17225          NCC*)
17226	    # NonStop-UX NCC 3.20
17227	    # FIXME: insert proper C++ library support
17228	    ld_shlibs_CXX=no
17229	    ;;
17230          *)
17231	    # FIXME: insert proper C++ library support
17232	    ld_shlibs_CXX=no
17233	    ;;
17234        esac
17235        ;;
17236
17237      vxworks*)
17238        # FIXME: insert proper C++ library support
17239        ld_shlibs_CXX=no
17240        ;;
17241
17242      *)
17243        # FIXME: insert proper C++ library support
17244        ld_shlibs_CXX=no
17245        ;;
17246    esac
17247
17248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17249$as_echo "$ld_shlibs_CXX" >&6; }
17250    test no = "$ld_shlibs_CXX" && can_build_shared=no
17251
17252    GCC_CXX=$GXX
17253    LD_CXX=$LD
17254
17255    ## CAVEAT EMPTOR:
17256    ## There is no encapsulation within the following macros, do not change
17257    ## the running order or otherwise move them around unless you know exactly
17258    ## what you are doing...
17259    # Dependencies to place before and after the object being linked:
17260predep_objects_CXX=
17261postdep_objects_CXX=
17262predeps_CXX=
17263postdeps_CXX=
17264compiler_lib_search_path_CXX=
17265
17266cat > conftest.$ac_ext <<_LT_EOF
17267class Foo
17268{
17269public:
17270  Foo (void) { a = 0; }
17271private:
17272  int a;
17273};
17274_LT_EOF
17275
17276
17277_lt_libdeps_save_CFLAGS=$CFLAGS
17278case "$CC $CFLAGS " in #(
17279*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17280*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17281*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17282esac
17283
17284if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17285  (eval $ac_compile) 2>&5
17286  ac_status=$?
17287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17288  test $ac_status = 0; }; then
17289  # Parse the compiler output and extract the necessary
17290  # objects, libraries and library flags.
17291
17292  # Sentinel used to keep track of whether or not we are before
17293  # the conftest object file.
17294  pre_test_object_deps_done=no
17295
17296  for p in `eval "$output_verbose_link_cmd"`; do
17297    case $prev$p in
17298
17299    -L* | -R* | -l*)
17300       # Some compilers place space between "-{L,R}" and the path.
17301       # Remove the space.
17302       if test x-L = "$p" ||
17303          test x-R = "$p"; then
17304	 prev=$p
17305	 continue
17306       fi
17307
17308       # Expand the sysroot to ease extracting the directories later.
17309       if test -z "$prev"; then
17310         case $p in
17311         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17312         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17313         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17314         esac
17315       fi
17316       case $p in
17317       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17318       esac
17319       if test no = "$pre_test_object_deps_done"; then
17320	 case $prev in
17321	 -L | -R)
17322	   # Internal compiler library paths should come after those
17323	   # provided the user.  The postdeps already come after the
17324	   # user supplied libs so there is no need to process them.
17325	   if test -z "$compiler_lib_search_path_CXX"; then
17326	     compiler_lib_search_path_CXX=$prev$p
17327	   else
17328	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17329	   fi
17330	   ;;
17331	 # The "-l" case would never come before the object being
17332	 # linked, so don't bother handling this case.
17333	 esac
17334       else
17335	 if test -z "$postdeps_CXX"; then
17336	   postdeps_CXX=$prev$p
17337	 else
17338	   postdeps_CXX="${postdeps_CXX} $prev$p"
17339	 fi
17340       fi
17341       prev=
17342       ;;
17343
17344    *.lto.$objext) ;; # Ignore GCC LTO objects
17345    *.$objext)
17346       # This assumes that the test object file only shows up
17347       # once in the compiler output.
17348       if test "$p" = "conftest.$objext"; then
17349	 pre_test_object_deps_done=yes
17350	 continue
17351       fi
17352
17353       if test no = "$pre_test_object_deps_done"; then
17354	 if test -z "$predep_objects_CXX"; then
17355	   predep_objects_CXX=$p
17356	 else
17357	   predep_objects_CXX="$predep_objects_CXX $p"
17358	 fi
17359       else
17360	 if test -z "$postdep_objects_CXX"; then
17361	   postdep_objects_CXX=$p
17362	 else
17363	   postdep_objects_CXX="$postdep_objects_CXX $p"
17364	 fi
17365       fi
17366       ;;
17367
17368    *) ;; # Ignore the rest.
17369
17370    esac
17371  done
17372
17373  # Clean up.
17374  rm -f a.out a.exe
17375else
17376  echo "libtool.m4: error: problem compiling CXX test program"
17377fi
17378
17379$RM -f confest.$objext
17380CFLAGS=$_lt_libdeps_save_CFLAGS
17381
17382# PORTME: override above test on systems where it is broken
17383case $host_os in
17384interix[3-9]*)
17385  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17386  # hack all around it, let's just trust "g++" to DTRT.
17387  predep_objects_CXX=
17388  postdep_objects_CXX=
17389  postdeps_CXX=
17390  ;;
17391esac
17392
17393
17394case " $postdeps_CXX " in
17395*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17396esac
17397 compiler_lib_search_dirs_CXX=
17398if test -n "${compiler_lib_search_path_CXX}"; then
17399 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17400fi
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432    lt_prog_compiler_wl_CXX=
17433lt_prog_compiler_pic_CXX=
17434lt_prog_compiler_static_CXX=
17435
17436
17437  # C++ specific cases for pic, static, wl, etc.
17438  if test yes = "$GXX"; then
17439    lt_prog_compiler_wl_CXX='-Wl,'
17440    lt_prog_compiler_static_CXX='-static'
17441
17442    case $host_os in
17443    aix*)
17444      # All AIX code is PIC.
17445      if test ia64 = "$host_cpu"; then
17446	# AIX 5 now supports IA64 processor
17447	lt_prog_compiler_static_CXX='-Bstatic'
17448      fi
17449      lt_prog_compiler_pic_CXX='-fPIC'
17450      ;;
17451
17452    amigaos*)
17453      case $host_cpu in
17454      powerpc)
17455            # see comment about AmigaOS4 .so support
17456            lt_prog_compiler_pic_CXX='-fPIC'
17457        ;;
17458      m68k)
17459            # FIXME: we need at least 68020 code to build shared libraries, but
17460            # adding the '-m68020' flag to GCC prevents building anything better,
17461            # like '-m68040'.
17462            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17463        ;;
17464      esac
17465      ;;
17466
17467    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17468      # PIC is the default for these OSes.
17469      ;;
17470    mingw* | cygwin* | os2* | pw32* | cegcc*)
17471      # This hack is so that the source file can tell whether it is being
17472      # built for inclusion in a dll (and should export symbols for example).
17473      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17474      # (--disable-auto-import) libraries
17475      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17476      case $host_os in
17477      os2*)
17478	lt_prog_compiler_static_CXX='$wl-static'
17479	;;
17480      esac
17481      ;;
17482    darwin* | rhapsody*)
17483      # PIC is the default on this platform
17484      # Common symbols not allowed in MH_DYLIB files
17485      lt_prog_compiler_pic_CXX='-fno-common'
17486      ;;
17487    *djgpp*)
17488      # DJGPP does not support shared libraries at all
17489      lt_prog_compiler_pic_CXX=
17490      ;;
17491    haiku*)
17492      # PIC is the default for Haiku.
17493      # The "-static" flag exists, but is broken.
17494      lt_prog_compiler_static_CXX=
17495      ;;
17496    interix[3-9]*)
17497      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17498      # Instead, we relocate shared libraries at runtime.
17499      ;;
17500    sysv4*MP*)
17501      if test -d /usr/nec; then
17502	lt_prog_compiler_pic_CXX=-Kconform_pic
17503      fi
17504      ;;
17505    hpux*)
17506      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17507      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17508      # sets the default TLS model and affects inlining.
17509      case $host_cpu in
17510      hppa*64*)
17511	;;
17512      *)
17513	lt_prog_compiler_pic_CXX='-fPIC'
17514	;;
17515      esac
17516      ;;
17517    *qnx* | *nto*)
17518      # QNX uses GNU C++, but need to define -shared option too, otherwise
17519      # it will coredump.
17520      lt_prog_compiler_pic_CXX='-fPIC -shared'
17521      ;;
17522    *)
17523      lt_prog_compiler_pic_CXX='-fPIC'
17524      ;;
17525    esac
17526  else
17527    case $host_os in
17528      aix[4-9]*)
17529	# All AIX code is PIC.
17530	if test ia64 = "$host_cpu"; then
17531	  # AIX 5 now supports IA64 processor
17532	  lt_prog_compiler_static_CXX='-Bstatic'
17533	else
17534	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17535	fi
17536	;;
17537      chorus*)
17538	case $cc_basename in
17539	cxch68*)
17540	  # Green Hills C++ Compiler
17541	  # _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"
17542	  ;;
17543	esac
17544	;;
17545      mingw* | cygwin* | os2* | pw32* | cegcc*)
17546	# This hack is so that the source file can tell whether it is being
17547	# built for inclusion in a dll (and should export symbols for example).
17548	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17549	;;
17550      dgux*)
17551	case $cc_basename in
17552	  ec++*)
17553	    lt_prog_compiler_pic_CXX='-KPIC'
17554	    ;;
17555	  ghcx*)
17556	    # Green Hills C++ Compiler
17557	    lt_prog_compiler_pic_CXX='-pic'
17558	    ;;
17559	  *)
17560	    ;;
17561	esac
17562	;;
17563      freebsd* | dragonfly*)
17564	# FreeBSD uses GNU C++
17565	;;
17566      hpux9* | hpux10* | hpux11*)
17567	case $cc_basename in
17568	  CC*)
17569	    lt_prog_compiler_wl_CXX='-Wl,'
17570	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17571	    if test ia64 != "$host_cpu"; then
17572	      lt_prog_compiler_pic_CXX='+Z'
17573	    fi
17574	    ;;
17575	  aCC*)
17576	    lt_prog_compiler_wl_CXX='-Wl,'
17577	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17578	    case $host_cpu in
17579	    hppa*64*|ia64*)
17580	      # +Z the default
17581	      ;;
17582	    *)
17583	      lt_prog_compiler_pic_CXX='+Z'
17584	      ;;
17585	    esac
17586	    ;;
17587	  *)
17588	    ;;
17589	esac
17590	;;
17591      interix*)
17592	# This is c89, which is MS Visual C++ (no shared libs)
17593	# Anyone wants to do a port?
17594	;;
17595      irix5* | irix6* | nonstopux*)
17596	case $cc_basename in
17597	  CC*)
17598	    lt_prog_compiler_wl_CXX='-Wl,'
17599	    lt_prog_compiler_static_CXX='-non_shared'
17600	    # CC pic flag -KPIC is the default.
17601	    ;;
17602	  *)
17603	    ;;
17604	esac
17605	;;
17606      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17607	case $cc_basename in
17608	  KCC*)
17609	    # KAI C++ Compiler
17610	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17611	    lt_prog_compiler_pic_CXX='-fPIC'
17612	    ;;
17613	  ecpc* )
17614	    # old Intel C++ for x86_64, which still supported -KPIC.
17615	    lt_prog_compiler_wl_CXX='-Wl,'
17616	    lt_prog_compiler_pic_CXX='-KPIC'
17617	    lt_prog_compiler_static_CXX='-static'
17618	    ;;
17619	  icpc* )
17620	    # Intel C++, used to be incompatible with GCC.
17621	    # ICC 10 doesn't accept -KPIC any more.
17622	    lt_prog_compiler_wl_CXX='-Wl,'
17623	    lt_prog_compiler_pic_CXX='-fPIC'
17624	    lt_prog_compiler_static_CXX='-static'
17625	    ;;
17626	  pgCC* | pgcpp*)
17627	    # Portland Group C++ compiler
17628	    lt_prog_compiler_wl_CXX='-Wl,'
17629	    lt_prog_compiler_pic_CXX='-fpic'
17630	    lt_prog_compiler_static_CXX='-Bstatic'
17631	    ;;
17632	  cxx*)
17633	    # Compaq C++
17634	    # Make sure the PIC flag is empty.  It appears that all Alpha
17635	    # Linux and Compaq Tru64 Unix objects are PIC.
17636	    lt_prog_compiler_pic_CXX=
17637	    lt_prog_compiler_static_CXX='-non_shared'
17638	    ;;
17639	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17640	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17641	    lt_prog_compiler_wl_CXX='-Wl,'
17642	    lt_prog_compiler_pic_CXX='-qpic'
17643	    lt_prog_compiler_static_CXX='-qstaticlink'
17644	    ;;
17645	  *)
17646	    case `$CC -V 2>&1 | sed 5q` in
17647	    *Sun\ C*)
17648	      # Sun C++ 5.9
17649	      lt_prog_compiler_pic_CXX='-KPIC'
17650	      lt_prog_compiler_static_CXX='-Bstatic'
17651	      lt_prog_compiler_wl_CXX='-Qoption ld '
17652	      ;;
17653	    esac
17654	    ;;
17655	esac
17656	;;
17657      lynxos*)
17658	;;
17659      m88k*)
17660	;;
17661      mvs*)
17662	case $cc_basename in
17663	  cxx*)
17664	    lt_prog_compiler_pic_CXX='-W c,exportall'
17665	    ;;
17666	  *)
17667	    ;;
17668	esac
17669	;;
17670      netbsd* | netbsdelf*-gnu)
17671	;;
17672      *qnx* | *nto*)
17673        # QNX uses GNU C++, but need to define -shared option too, otherwise
17674        # it will coredump.
17675        lt_prog_compiler_pic_CXX='-fPIC -shared'
17676        ;;
17677      osf3* | osf4* | osf5*)
17678	case $cc_basename in
17679	  KCC*)
17680	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17681	    ;;
17682	  RCC*)
17683	    # Rational C++ 2.4.1
17684	    lt_prog_compiler_pic_CXX='-pic'
17685	    ;;
17686	  cxx*)
17687	    # Digital/Compaq C++
17688	    lt_prog_compiler_wl_CXX='-Wl,'
17689	    # Make sure the PIC flag is empty.  It appears that all Alpha
17690	    # Linux and Compaq Tru64 Unix objects are PIC.
17691	    lt_prog_compiler_pic_CXX=
17692	    lt_prog_compiler_static_CXX='-non_shared'
17693	    ;;
17694	  *)
17695	    ;;
17696	esac
17697	;;
17698      psos*)
17699	;;
17700      solaris*)
17701	case $cc_basename in
17702	  CC* | sunCC*)
17703	    # Sun C++ 4.2, 5.x and Centerline C++
17704	    lt_prog_compiler_pic_CXX='-KPIC'
17705	    lt_prog_compiler_static_CXX='-Bstatic'
17706	    lt_prog_compiler_wl_CXX='-Qoption ld '
17707	    ;;
17708	  gcx*)
17709	    # Green Hills C++ Compiler
17710	    lt_prog_compiler_pic_CXX='-PIC'
17711	    ;;
17712	  *)
17713	    ;;
17714	esac
17715	;;
17716      sunos4*)
17717	case $cc_basename in
17718	  CC*)
17719	    # Sun C++ 4.x
17720	    lt_prog_compiler_pic_CXX='-pic'
17721	    lt_prog_compiler_static_CXX='-Bstatic'
17722	    ;;
17723	  lcc*)
17724	    # Lucid
17725	    lt_prog_compiler_pic_CXX='-pic'
17726	    ;;
17727	  *)
17728	    ;;
17729	esac
17730	;;
17731      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17732	case $cc_basename in
17733	  CC*)
17734	    lt_prog_compiler_wl_CXX='-Wl,'
17735	    lt_prog_compiler_pic_CXX='-KPIC'
17736	    lt_prog_compiler_static_CXX='-Bstatic'
17737	    ;;
17738	esac
17739	;;
17740      tandem*)
17741	case $cc_basename in
17742	  NCC*)
17743	    # NonStop-UX NCC 3.20
17744	    lt_prog_compiler_pic_CXX='-KPIC'
17745	    ;;
17746	  *)
17747	    ;;
17748	esac
17749	;;
17750      vxworks*)
17751	;;
17752      *)
17753	lt_prog_compiler_can_build_shared_CXX=no
17754	;;
17755    esac
17756  fi
17757
17758case $host_os in
17759  # For platforms that do not support PIC, -DPIC is meaningless:
17760  *djgpp*)
17761    lt_prog_compiler_pic_CXX=
17762    ;;
17763  *)
17764    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17765    ;;
17766esac
17767
17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17769$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17770if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17771  $as_echo_n "(cached) " >&6
17772else
17773  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17774fi
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17776$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17777lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17778
17779#
17780# Check to make sure the PIC flag actually works.
17781#
17782if test -n "$lt_prog_compiler_pic_CXX"; then
17783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17784$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17785if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17786  $as_echo_n "(cached) " >&6
17787else
17788  lt_cv_prog_compiler_pic_works_CXX=no
17789   ac_outfile=conftest.$ac_objext
17790   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17791   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17792   # Insert the option either (1) after the last *FLAGS variable, or
17793   # (2) before a word containing "conftest.", or (3) at the end.
17794   # Note that $ac_compile itself does not contain backslashes and begins
17795   # with a dollar sign (not a hyphen), so the echo should work correctly.
17796   # The option is referenced via a variable to avoid confusing sed.
17797   lt_compile=`echo "$ac_compile" | $SED \
17798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17800   -e 's:$: $lt_compiler_flag:'`
17801   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17802   (eval "$lt_compile" 2>conftest.err)
17803   ac_status=$?
17804   cat conftest.err >&5
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   if (exit $ac_status) && test -s "$ac_outfile"; then
17807     # The compiler can only warn and ignore the option if not recognized
17808     # So say no if there are warnings other than the usual output.
17809     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17810     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17811     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17812       lt_cv_prog_compiler_pic_works_CXX=yes
17813     fi
17814   fi
17815   $RM conftest*
17816
17817fi
17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17819$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17820
17821if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17822    case $lt_prog_compiler_pic_CXX in
17823     "" | " "*) ;;
17824     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17825     esac
17826else
17827    lt_prog_compiler_pic_CXX=
17828     lt_prog_compiler_can_build_shared_CXX=no
17829fi
17830
17831fi
17832
17833
17834
17835
17836
17837#
17838# Check to make sure the static flag actually works.
17839#
17840wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17842$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17843if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17844  $as_echo_n "(cached) " >&6
17845else
17846  lt_cv_prog_compiler_static_works_CXX=no
17847   save_LDFLAGS=$LDFLAGS
17848   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17849   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17850   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17851     # The linker can only warn and ignore the option if not recognized
17852     # So say no if there are warnings
17853     if test -s conftest.err; then
17854       # Append any errors to the config.log.
17855       cat conftest.err 1>&5
17856       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17857       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17858       if diff conftest.exp conftest.er2 >/dev/null; then
17859         lt_cv_prog_compiler_static_works_CXX=yes
17860       fi
17861     else
17862       lt_cv_prog_compiler_static_works_CXX=yes
17863     fi
17864   fi
17865   $RM -r conftest*
17866   LDFLAGS=$save_LDFLAGS
17867
17868fi
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17870$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17871
17872if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17873    :
17874else
17875    lt_prog_compiler_static_CXX=
17876fi
17877
17878
17879
17880
17881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17882$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17883if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17884  $as_echo_n "(cached) " >&6
17885else
17886  lt_cv_prog_compiler_c_o_CXX=no
17887   $RM -r conftest 2>/dev/null
17888   mkdir conftest
17889   cd conftest
17890   mkdir out
17891   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17892
17893   lt_compiler_flag="-o out/conftest2.$ac_objext"
17894   # Insert the option either (1) after the last *FLAGS variable, or
17895   # (2) before a word containing "conftest.", or (3) at the end.
17896   # Note that $ac_compile itself does not contain backslashes and begins
17897   # with a dollar sign (not a hyphen), so the echo should work correctly.
17898   lt_compile=`echo "$ac_compile" | $SED \
17899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17901   -e 's:$: $lt_compiler_flag:'`
17902   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17903   (eval "$lt_compile" 2>out/conftest.err)
17904   ac_status=$?
17905   cat out/conftest.err >&5
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17908   then
17909     # The compiler can only warn and ignore the option if not recognized
17910     # So say no if there are warnings
17911     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17912     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17913     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17914       lt_cv_prog_compiler_c_o_CXX=yes
17915     fi
17916   fi
17917   chmod u+w . 2>&5
17918   $RM conftest*
17919   # SGI C++ compiler will create directory out/ii_files/ for
17920   # template instantiation
17921   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17922   $RM out/* && rmdir out
17923   cd ..
17924   $RM -r conftest
17925   $RM conftest*
17926
17927fi
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17929$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17930
17931
17932
17933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17934$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17935if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17936  $as_echo_n "(cached) " >&6
17937else
17938  lt_cv_prog_compiler_c_o_CXX=no
17939   $RM -r conftest 2>/dev/null
17940   mkdir conftest
17941   cd conftest
17942   mkdir out
17943   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17944
17945   lt_compiler_flag="-o out/conftest2.$ac_objext"
17946   # Insert the option either (1) after the last *FLAGS variable, or
17947   # (2) before a word containing "conftest.", or (3) at the end.
17948   # Note that $ac_compile itself does not contain backslashes and begins
17949   # with a dollar sign (not a hyphen), so the echo should work correctly.
17950   lt_compile=`echo "$ac_compile" | $SED \
17951   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17953   -e 's:$: $lt_compiler_flag:'`
17954   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17955   (eval "$lt_compile" 2>out/conftest.err)
17956   ac_status=$?
17957   cat out/conftest.err >&5
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17960   then
17961     # The compiler can only warn and ignore the option if not recognized
17962     # So say no if there are warnings
17963     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17964     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17965     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17966       lt_cv_prog_compiler_c_o_CXX=yes
17967     fi
17968   fi
17969   chmod u+w . 2>&5
17970   $RM conftest*
17971   # SGI C++ compiler will create directory out/ii_files/ for
17972   # template instantiation
17973   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17974   $RM out/* && rmdir out
17975   cd ..
17976   $RM -r conftest
17977   $RM conftest*
17978
17979fi
17980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17981$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17982
17983
17984
17985
17986hard_links=nottested
17987if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17988  # do not overwrite the value of need_locks provided by the user
17989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17990$as_echo_n "checking if we can lock with hard links... " >&6; }
17991  hard_links=yes
17992  $RM conftest*
17993  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17994  touch conftest.a
17995  ln conftest.a conftest.b 2>&5 || hard_links=no
17996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17998$as_echo "$hard_links" >&6; }
17999  if test no = "$hard_links"; then
18000    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18001$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18002    need_locks=warn
18003  fi
18004else
18005  need_locks=no
18006fi
18007
18008
18009
18010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18011$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18012
18013  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18014  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18015  case $host_os in
18016  aix[4-9]*)
18017    # If we're using GNU nm, then we don't want the "-C" option.
18018    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18019    # Without the "-l" option, or with the "-B" option, AIX nm treats
18020    # weak defined symbols like other global defined symbols, whereas
18021    # GNU nm marks them as "W".
18022    # While the 'weak' keyword is ignored in the Export File, we need
18023    # it in the Import File for the 'aix-soname' feature, so we have
18024    # to replace the "-B" option with "-P" for AIX nm.
18025    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18026      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'
18027    else
18028      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'
18029    fi
18030    ;;
18031  pw32*)
18032    export_symbols_cmds_CXX=$ltdll_cmds
18033    ;;
18034  cygwin* | mingw* | cegcc*)
18035    case $cc_basename in
18036    cl*)
18037      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18038      ;;
18039    *)
18040      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'
18041      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18042      ;;
18043    esac
18044    ;;
18045  linux* | k*bsd*-gnu | gnu*)
18046    link_all_deplibs_CXX=no
18047    ;;
18048  *)
18049    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18050    ;;
18051  esac
18052
18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18054$as_echo "$ld_shlibs_CXX" >&6; }
18055test no = "$ld_shlibs_CXX" && can_build_shared=no
18056
18057with_gnu_ld_CXX=$with_gnu_ld
18058
18059
18060
18061
18062
18063
18064#
18065# Do we need to explicitly link libc?
18066#
18067case "x$archive_cmds_need_lc_CXX" in
18068x|xyes)
18069  # Assume -lc should be added
18070  archive_cmds_need_lc_CXX=yes
18071
18072  if test yes,yes = "$GCC,$enable_shared"; then
18073    case $archive_cmds_CXX in
18074    *'~'*)
18075      # FIXME: we may have to deal with multi-command sequences.
18076      ;;
18077    '$CC '*)
18078      # Test whether the compiler implicitly links with -lc since on some
18079      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18080      # to ld, don't add -lc before -lgcc.
18081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18082$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18083if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18084  $as_echo_n "(cached) " >&6
18085else
18086  $RM conftest*
18087	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18088
18089	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18090  (eval $ac_compile) 2>&5
18091  ac_status=$?
18092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18093  test $ac_status = 0; } 2>conftest.err; then
18094	  soname=conftest
18095	  lib=conftest
18096	  libobjs=conftest.$ac_objext
18097	  deplibs=
18098	  wl=$lt_prog_compiler_wl_CXX
18099	  pic_flag=$lt_prog_compiler_pic_CXX
18100	  compiler_flags=-v
18101	  linker_flags=-v
18102	  verstring=
18103	  output_objdir=.
18104	  libname=conftest
18105	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18106	  allow_undefined_flag_CXX=
18107	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18108  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18109  ac_status=$?
18110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18111  test $ac_status = 0; }
18112	  then
18113	    lt_cv_archive_cmds_need_lc_CXX=no
18114	  else
18115	    lt_cv_archive_cmds_need_lc_CXX=yes
18116	  fi
18117	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18118	else
18119	  cat conftest.err 1>&5
18120	fi
18121	$RM conftest*
18122
18123fi
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18125$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18126      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18127      ;;
18128    esac
18129  fi
18130  ;;
18131esac
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18195$as_echo_n "checking dynamic linker characteristics... " >&6; }
18196
18197library_names_spec=
18198libname_spec='lib$name'
18199soname_spec=
18200shrext_cmds=.so
18201postinstall_cmds=
18202postuninstall_cmds=
18203finish_cmds=
18204finish_eval=
18205shlibpath_var=
18206shlibpath_overrides_runpath=unknown
18207version_type=none
18208dynamic_linker="$host_os ld.so"
18209sys_lib_dlsearch_path_spec="/lib /usr/lib"
18210need_lib_prefix=unknown
18211hardcode_into_libs=no
18212
18213# when you set need_version to no, make sure it does not cause -set_version
18214# flags to be left without arguments
18215need_version=unknown
18216
18217
18218
18219case $host_os in
18220aix3*)
18221  version_type=linux # correct to gnu/linux during the next big refactor
18222  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18223  shlibpath_var=LIBPATH
18224
18225  # AIX 3 has no versioning support, so we append a major version to the name.
18226  soname_spec='$libname$release$shared_ext$major'
18227  ;;
18228
18229aix[4-9]*)
18230  version_type=linux # correct to gnu/linux during the next big refactor
18231  need_lib_prefix=no
18232  need_version=no
18233  hardcode_into_libs=yes
18234  if test ia64 = "$host_cpu"; then
18235    # AIX 5 supports IA64
18236    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18237    shlibpath_var=LD_LIBRARY_PATH
18238  else
18239    # With GCC up to 2.95.x, collect2 would create an import file
18240    # for dependence libraries.  The import file would start with
18241    # the line '#! .'.  This would cause the generated library to
18242    # depend on '.', always an invalid library.  This was fixed in
18243    # development snapshots of GCC prior to 3.0.
18244    case $host_os in
18245      aix4 | aix4.[01] | aix4.[01].*)
18246      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18247	   echo ' yes '
18248	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18249	:
18250      else
18251	can_build_shared=no
18252      fi
18253      ;;
18254    esac
18255    # Using Import Files as archive members, it is possible to support
18256    # filename-based versioning of shared library archives on AIX. While
18257    # this would work for both with and without runtime linking, it will
18258    # prevent static linking of such archives. So we do filename-based
18259    # shared library versioning with .so extension only, which is used
18260    # when both runtime linking and shared linking is enabled.
18261    # Unfortunately, runtime linking may impact performance, so we do
18262    # not want this to be the default eventually. Also, we use the
18263    # versioned .so libs for executables only if there is the -brtl
18264    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18265    # To allow for filename-based versioning support, we need to create
18266    # libNAME.so.V as an archive file, containing:
18267    # *) an Import File, referring to the versioned filename of the
18268    #    archive as well as the shared archive member, telling the
18269    #    bitwidth (32 or 64) of that shared object, and providing the
18270    #    list of exported symbols of that shared object, eventually
18271    #    decorated with the 'weak' keyword
18272    # *) the shared object with the F_LOADONLY flag set, to really avoid
18273    #    it being seen by the linker.
18274    # At run time we better use the real file rather than another symlink,
18275    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18276
18277    case $with_aix_soname,$aix_use_runtimelinking in
18278    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18279    # soname into executable. Probably we can add versioning support to
18280    # collect2, so additional links can be useful in future.
18281    aix,yes) # traditional libtool
18282      dynamic_linker='AIX unversionable lib.so'
18283      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18284      # instead of lib<name>.a to let people know that these are not
18285      # typical AIX shared libraries.
18286      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18287      ;;
18288    aix,no) # traditional AIX only
18289      dynamic_linker='AIX lib.a(lib.so.V)'
18290      # We preserve .a as extension for shared libraries through AIX4.2
18291      # and later when we are not doing run time linking.
18292      library_names_spec='$libname$release.a $libname.a'
18293      soname_spec='$libname$release$shared_ext$major'
18294      ;;
18295    svr4,*) # full svr4 only
18296      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18297      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18298      # We do not specify a path in Import Files, so LIBPATH fires.
18299      shlibpath_overrides_runpath=yes
18300      ;;
18301    *,yes) # both, prefer svr4
18302      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18303      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18304      # unpreferred sharedlib libNAME.a needs extra handling
18305      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"'
18306      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"'
18307      # We do not specify a path in Import Files, so LIBPATH fires.
18308      shlibpath_overrides_runpath=yes
18309      ;;
18310    *,no) # both, prefer aix
18311      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18312      library_names_spec='$libname$release.a $libname.a'
18313      soname_spec='$libname$release$shared_ext$major'
18314      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18315      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)'
18316      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"'
18317      ;;
18318    esac
18319    shlibpath_var=LIBPATH
18320  fi
18321  ;;
18322
18323amigaos*)
18324  case $host_cpu in
18325  powerpc)
18326    # Since July 2007 AmigaOS4 officially supports .so libraries.
18327    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18328    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18329    ;;
18330  m68k)
18331    library_names_spec='$libname.ixlibrary $libname.a'
18332    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18333    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'
18334    ;;
18335  esac
18336  ;;
18337
18338beos*)
18339  library_names_spec='$libname$shared_ext'
18340  dynamic_linker="$host_os ld.so"
18341  shlibpath_var=LIBRARY_PATH
18342  ;;
18343
18344bsdi[45]*)
18345  version_type=linux # correct to gnu/linux during the next big refactor
18346  need_version=no
18347  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18348  soname_spec='$libname$release$shared_ext$major'
18349  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18350  shlibpath_var=LD_LIBRARY_PATH
18351  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18352  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18353  # the default ld.so.conf also contains /usr/contrib/lib and
18354  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18355  # libtool to hard-code these into programs
18356  ;;
18357
18358cygwin* | mingw* | pw32* | cegcc*)
18359  version_type=windows
18360  shrext_cmds=.dll
18361  need_version=no
18362  need_lib_prefix=no
18363
18364  case $GCC,$cc_basename in
18365  yes,*)
18366    # gcc
18367    library_names_spec='$libname.dll.a'
18368    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18369    postinstall_cmds='base_file=`basename \$file`~
18370      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18371      dldir=$destdir/`dirname \$dlpath`~
18372      test -d \$dldir || mkdir -p \$dldir~
18373      $install_prog $dir/$dlname \$dldir/$dlname~
18374      chmod a+x \$dldir/$dlname~
18375      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18376        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18377      fi'
18378    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18379      dlpath=$dir/\$dldll~
18380       $RM \$dlpath'
18381    shlibpath_overrides_runpath=yes
18382
18383    case $host_os in
18384    cygwin*)
18385      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18386      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18387
18388      ;;
18389    mingw* | cegcc*)
18390      # MinGW DLLs use traditional 'lib' prefix
18391      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18392      ;;
18393    pw32*)
18394      # pw32 DLLs use 'pw' prefix rather than 'lib'
18395      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18396      ;;
18397    esac
18398    dynamic_linker='Win32 ld.exe'
18399    ;;
18400
18401  *,cl*)
18402    # Native MSVC
18403    libname_spec='$name'
18404    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18405    library_names_spec='$libname.dll.lib'
18406
18407    case $build_os in
18408    mingw*)
18409      sys_lib_search_path_spec=
18410      lt_save_ifs=$IFS
18411      IFS=';'
18412      for lt_path in $LIB
18413      do
18414        IFS=$lt_save_ifs
18415        # Let DOS variable expansion print the short 8.3 style file name.
18416        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18417        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18418      done
18419      IFS=$lt_save_ifs
18420      # Convert to MSYS style.
18421      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18422      ;;
18423    cygwin*)
18424      # Convert to unix form, then to dos form, then back to unix form
18425      # but this time dos style (no spaces!) so that the unix form looks
18426      # like /cygdrive/c/PROGRA~1:/cygdr...
18427      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18428      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18429      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18430      ;;
18431    *)
18432      sys_lib_search_path_spec=$LIB
18433      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18434        # It is most probably a Windows format PATH.
18435        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18436      else
18437        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18438      fi
18439      # FIXME: find the short name or the path components, as spaces are
18440      # common. (e.g. "Program Files" -> "PROGRA~1")
18441      ;;
18442    esac
18443
18444    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18445    postinstall_cmds='base_file=`basename \$file`~
18446      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18447      dldir=$destdir/`dirname \$dlpath`~
18448      test -d \$dldir || mkdir -p \$dldir~
18449      $install_prog $dir/$dlname \$dldir/$dlname'
18450    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18451      dlpath=$dir/\$dldll~
18452       $RM \$dlpath'
18453    shlibpath_overrides_runpath=yes
18454    dynamic_linker='Win32 link.exe'
18455    ;;
18456
18457  *)
18458    # Assume MSVC wrapper
18459    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18460    dynamic_linker='Win32 ld.exe'
18461    ;;
18462  esac
18463  # FIXME: first we should search . and the directory the executable is in
18464  shlibpath_var=PATH
18465  ;;
18466
18467darwin* | rhapsody*)
18468  dynamic_linker="$host_os dyld"
18469  version_type=darwin
18470  need_lib_prefix=no
18471  need_version=no
18472  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18473  soname_spec='$libname$release$major$shared_ext'
18474  shlibpath_overrides_runpath=yes
18475  shlibpath_var=DYLD_LIBRARY_PATH
18476  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18477
18478  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18479  ;;
18480
18481dgux*)
18482  version_type=linux # correct to gnu/linux during the next big refactor
18483  need_lib_prefix=no
18484  need_version=no
18485  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18486  soname_spec='$libname$release$shared_ext$major'
18487  shlibpath_var=LD_LIBRARY_PATH
18488  ;;
18489
18490freebsd* | dragonfly*)
18491  # DragonFly does not have aout.  When/if they implement a new
18492  # versioning mechanism, adjust this.
18493  if test -x /usr/bin/objformat; then
18494    objformat=`/usr/bin/objformat`
18495  else
18496    case $host_os in
18497    freebsd[23].*) objformat=aout ;;
18498    *) objformat=elf ;;
18499    esac
18500  fi
18501  version_type=freebsd-$objformat
18502  case $version_type in
18503    freebsd-elf*)
18504      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18505      soname_spec='$libname$release$shared_ext$major'
18506      need_version=no
18507      need_lib_prefix=no
18508      ;;
18509    freebsd-*)
18510      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18511      need_version=yes
18512      ;;
18513  esac
18514  shlibpath_var=LD_LIBRARY_PATH
18515  case $host_os in
18516  freebsd2.*)
18517    shlibpath_overrides_runpath=yes
18518    ;;
18519  freebsd3.[01]* | freebsdelf3.[01]*)
18520    shlibpath_overrides_runpath=yes
18521    hardcode_into_libs=yes
18522    ;;
18523  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18524  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18525    shlibpath_overrides_runpath=no
18526    hardcode_into_libs=yes
18527    ;;
18528  *) # from 4.6 on, and DragonFly
18529    shlibpath_overrides_runpath=yes
18530    hardcode_into_libs=yes
18531    ;;
18532  esac
18533  ;;
18534
18535haiku*)
18536  version_type=linux # correct to gnu/linux during the next big refactor
18537  need_lib_prefix=no
18538  need_version=no
18539  dynamic_linker="$host_os runtime_loader"
18540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18541  soname_spec='$libname$release$shared_ext$major'
18542  shlibpath_var=LIBRARY_PATH
18543  shlibpath_overrides_runpath=no
18544  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18545  hardcode_into_libs=yes
18546  ;;
18547
18548hpux9* | hpux10* | hpux11*)
18549  # Give a soname corresponding to the major version so that dld.sl refuses to
18550  # link against other versions.
18551  version_type=sunos
18552  need_lib_prefix=no
18553  need_version=no
18554  case $host_cpu in
18555  ia64*)
18556    shrext_cmds='.so'
18557    hardcode_into_libs=yes
18558    dynamic_linker="$host_os dld.so"
18559    shlibpath_var=LD_LIBRARY_PATH
18560    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18561    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18562    soname_spec='$libname$release$shared_ext$major'
18563    if test 32 = "$HPUX_IA64_MODE"; then
18564      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18565      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18566    else
18567      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18568      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18569    fi
18570    ;;
18571  hppa*64*)
18572    shrext_cmds='.sl'
18573    hardcode_into_libs=yes
18574    dynamic_linker="$host_os dld.sl"
18575    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18576    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18577    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18578    soname_spec='$libname$release$shared_ext$major'
18579    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18580    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18581    ;;
18582  *)
18583    shrext_cmds='.sl'
18584    dynamic_linker="$host_os dld.sl"
18585    shlibpath_var=SHLIB_PATH
18586    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18587    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18588    soname_spec='$libname$release$shared_ext$major'
18589    ;;
18590  esac
18591  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18592  postinstall_cmds='chmod 555 $lib'
18593  # or fails outright, so override atomically:
18594  install_override_mode=555
18595  ;;
18596
18597interix[3-9]*)
18598  version_type=linux # correct to gnu/linux during the next big refactor
18599  need_lib_prefix=no
18600  need_version=no
18601  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18602  soname_spec='$libname$release$shared_ext$major'
18603  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18604  shlibpath_var=LD_LIBRARY_PATH
18605  shlibpath_overrides_runpath=no
18606  hardcode_into_libs=yes
18607  ;;
18608
18609irix5* | irix6* | nonstopux*)
18610  case $host_os in
18611    nonstopux*) version_type=nonstopux ;;
18612    *)
18613	if test yes = "$lt_cv_prog_gnu_ld"; then
18614		version_type=linux # correct to gnu/linux during the next big refactor
18615	else
18616		version_type=irix
18617	fi ;;
18618  esac
18619  need_lib_prefix=no
18620  need_version=no
18621  soname_spec='$libname$release$shared_ext$major'
18622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18623  case $host_os in
18624  irix5* | nonstopux*)
18625    libsuff= shlibsuff=
18626    ;;
18627  *)
18628    case $LD in # libtool.m4 will add one of these switches to LD
18629    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18630      libsuff= shlibsuff= libmagic=32-bit;;
18631    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18632      libsuff=32 shlibsuff=N32 libmagic=N32;;
18633    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18634      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18635    *) libsuff= shlibsuff= libmagic=never-match;;
18636    esac
18637    ;;
18638  esac
18639  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18640  shlibpath_overrides_runpath=no
18641  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18642  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18643  hardcode_into_libs=yes
18644  ;;
18645
18646# No shared lib support for Linux oldld, aout, or coff.
18647linux*oldld* | linux*aout* | linux*coff*)
18648  dynamic_linker=no
18649  ;;
18650
18651linux*android*)
18652  version_type=none # Android doesn't support versioned libraries.
18653  need_lib_prefix=no
18654  need_version=no
18655  library_names_spec='$libname$release$shared_ext'
18656  soname_spec='$libname$release$shared_ext'
18657  finish_cmds=
18658  shlibpath_var=LD_LIBRARY_PATH
18659  shlibpath_overrides_runpath=yes
18660
18661  # This implies no fast_install, which is unacceptable.
18662  # Some rework will be needed to allow for fast_install
18663  # before this can be enabled.
18664  hardcode_into_libs=yes
18665
18666  dynamic_linker='Android linker'
18667  # Don't embed -rpath directories since the linker doesn't support them.
18668  hardcode_libdir_flag_spec_CXX='-L$libdir'
18669  ;;
18670
18671# This must be glibc/ELF.
18672linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18673  version_type=linux # correct to gnu/linux during the next big refactor
18674  need_lib_prefix=no
18675  need_version=no
18676  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18677  soname_spec='$libname$release$shared_ext$major'
18678  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18679  shlibpath_var=LD_LIBRARY_PATH
18680  shlibpath_overrides_runpath=no
18681
18682  # Some binutils ld are patched to set DT_RUNPATH
18683  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18684  $as_echo_n "(cached) " >&6
18685else
18686  lt_cv_shlibpath_overrides_runpath=no
18687    save_LDFLAGS=$LDFLAGS
18688    save_libdir=$libdir
18689    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18690	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692/* end confdefs.h.  */
18693
18694int
18695main ()
18696{
18697
18698  ;
18699  return 0;
18700}
18701_ACEOF
18702if ac_fn_cxx_try_link "$LINENO"; then :
18703  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18704  lt_cv_shlibpath_overrides_runpath=yes
18705fi
18706fi
18707rm -f core conftest.err conftest.$ac_objext \
18708    conftest$ac_exeext conftest.$ac_ext
18709    LDFLAGS=$save_LDFLAGS
18710    libdir=$save_libdir
18711
18712fi
18713
18714  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18715
18716  # This implies no fast_install, which is unacceptable.
18717  # Some rework will be needed to allow for fast_install
18718  # before this can be enabled.
18719  hardcode_into_libs=yes
18720
18721  # Ideally, we could use ldconfig to report *all* directores which are
18722  # searched for libraries, however this is still not possible.  Aside from not
18723  # being certain /sbin/ldconfig is available, command
18724  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18725  # even though it is searched at run-time.  Try to do the best guess by
18726  # appending ld.so.conf contents (and includes) to the search path.
18727  if test -f /etc/ld.so.conf; then
18728    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' ' '`
18729    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18730  fi
18731
18732  # We used to test for /lib/ld.so.1 and disable shared libraries on
18733  # powerpc, because MkLinux only supported shared libraries with the
18734  # GNU dynamic linker.  Since this was broken with cross compilers,
18735  # most powerpc-linux boxes support dynamic linking these days and
18736  # people can always --disable-shared, the test was removed, and we
18737  # assume the GNU/Linux dynamic linker is in use.
18738  dynamic_linker='GNU/Linux ld.so'
18739  ;;
18740
18741netbsdelf*-gnu)
18742  version_type=linux
18743  need_lib_prefix=no
18744  need_version=no
18745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18746  soname_spec='${libname}${release}${shared_ext}$major'
18747  shlibpath_var=LD_LIBRARY_PATH
18748  shlibpath_overrides_runpath=no
18749  hardcode_into_libs=yes
18750  dynamic_linker='NetBSD ld.elf_so'
18751  ;;
18752
18753netbsd*)
18754  version_type=sunos
18755  need_lib_prefix=no
18756  need_version=no
18757  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18758    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18759    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18760    dynamic_linker='NetBSD (a.out) ld.so'
18761  else
18762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18763    soname_spec='$libname$release$shared_ext$major'
18764    dynamic_linker='NetBSD ld.elf_so'
18765  fi
18766  shlibpath_var=LD_LIBRARY_PATH
18767  shlibpath_overrides_runpath=yes
18768  hardcode_into_libs=yes
18769  ;;
18770
18771newsos6)
18772  version_type=linux # correct to gnu/linux during the next big refactor
18773  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18774  shlibpath_var=LD_LIBRARY_PATH
18775  shlibpath_overrides_runpath=yes
18776  ;;
18777
18778*nto* | *qnx*)
18779  version_type=qnx
18780  need_lib_prefix=no
18781  need_version=no
18782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18783  soname_spec='$libname$release$shared_ext$major'
18784  shlibpath_var=LD_LIBRARY_PATH
18785  shlibpath_overrides_runpath=no
18786  hardcode_into_libs=yes
18787  dynamic_linker='ldqnx.so'
18788  ;;
18789
18790openbsd* | bitrig*)
18791  version_type=sunos
18792  sys_lib_dlsearch_path_spec=/usr/lib
18793  need_lib_prefix=no
18794  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18795    need_version=no
18796  else
18797    need_version=yes
18798  fi
18799  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18800  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18801  shlibpath_var=LD_LIBRARY_PATH
18802  shlibpath_overrides_runpath=yes
18803  ;;
18804
18805os2*)
18806  libname_spec='$name'
18807  version_type=windows
18808  shrext_cmds=.dll
18809  need_version=no
18810  need_lib_prefix=no
18811  # OS/2 can only load a DLL with a base name of 8 characters or less.
18812  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18813    v=$($ECHO $release$versuffix | tr -d .-);
18814    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18815    $ECHO $n$v`$shared_ext'
18816  library_names_spec='${libname}_dll.$libext'
18817  dynamic_linker='OS/2 ld.exe'
18818  shlibpath_var=BEGINLIBPATH
18819  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18820  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18821  postinstall_cmds='base_file=`basename \$file`~
18822    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18823    dldir=$destdir/`dirname \$dlpath`~
18824    test -d \$dldir || mkdir -p \$dldir~
18825    $install_prog $dir/$dlname \$dldir/$dlname~
18826    chmod a+x \$dldir/$dlname~
18827    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18828      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18829    fi'
18830  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18831    dlpath=$dir/\$dldll~
18832    $RM \$dlpath'
18833  ;;
18834
18835osf3* | osf4* | osf5*)
18836  version_type=osf
18837  need_lib_prefix=no
18838  need_version=no
18839  soname_spec='$libname$release$shared_ext$major'
18840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18841  shlibpath_var=LD_LIBRARY_PATH
18842  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18843  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18844  ;;
18845
18846rdos*)
18847  dynamic_linker=no
18848  ;;
18849
18850solaris*)
18851  version_type=linux # correct to gnu/linux during the next big refactor
18852  need_lib_prefix=no
18853  need_version=no
18854  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18855  soname_spec='$libname$release$shared_ext$major'
18856  shlibpath_var=LD_LIBRARY_PATH
18857  shlibpath_overrides_runpath=yes
18858  hardcode_into_libs=yes
18859  # ldd complains unless libraries are executable
18860  postinstall_cmds='chmod +x $lib'
18861  ;;
18862
18863sunos4*)
18864  version_type=sunos
18865  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18866  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18867  shlibpath_var=LD_LIBRARY_PATH
18868  shlibpath_overrides_runpath=yes
18869  if test yes = "$with_gnu_ld"; then
18870    need_lib_prefix=no
18871  fi
18872  need_version=yes
18873  ;;
18874
18875sysv4 | sysv4.3*)
18876  version_type=linux # correct to gnu/linux during the next big refactor
18877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18878  soname_spec='$libname$release$shared_ext$major'
18879  shlibpath_var=LD_LIBRARY_PATH
18880  case $host_vendor in
18881    sni)
18882      shlibpath_overrides_runpath=no
18883      need_lib_prefix=no
18884      runpath_var=LD_RUN_PATH
18885      ;;
18886    siemens)
18887      need_lib_prefix=no
18888      ;;
18889    motorola)
18890      need_lib_prefix=no
18891      need_version=no
18892      shlibpath_overrides_runpath=no
18893      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18894      ;;
18895  esac
18896  ;;
18897
18898sysv4*MP*)
18899  if test -d /usr/nec; then
18900    version_type=linux # correct to gnu/linux during the next big refactor
18901    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18902    soname_spec='$libname$shared_ext.$major'
18903    shlibpath_var=LD_LIBRARY_PATH
18904  fi
18905  ;;
18906
18907sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18908  version_type=sco
18909  need_lib_prefix=no
18910  need_version=no
18911  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18912  soname_spec='$libname$release$shared_ext$major'
18913  shlibpath_var=LD_LIBRARY_PATH
18914  shlibpath_overrides_runpath=yes
18915  hardcode_into_libs=yes
18916  if test yes = "$with_gnu_ld"; then
18917    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18918  else
18919    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18920    case $host_os in
18921      sco3.2v5*)
18922        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18923	;;
18924    esac
18925  fi
18926  sys_lib_dlsearch_path_spec='/usr/lib'
18927  ;;
18928
18929tpf*)
18930  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18931  version_type=linux # correct to gnu/linux during the next big refactor
18932  need_lib_prefix=no
18933  need_version=no
18934  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18935  shlibpath_var=LD_LIBRARY_PATH
18936  shlibpath_overrides_runpath=no
18937  hardcode_into_libs=yes
18938  ;;
18939
18940uts4*)
18941  version_type=linux # correct to gnu/linux during the next big refactor
18942  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18943  soname_spec='$libname$release$shared_ext$major'
18944  shlibpath_var=LD_LIBRARY_PATH
18945  ;;
18946
18947*)
18948  dynamic_linker=no
18949  ;;
18950esac
18951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18952$as_echo "$dynamic_linker" >&6; }
18953test no = "$dynamic_linker" && can_build_shared=no
18954
18955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18956if test yes = "$GCC"; then
18957  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18958fi
18959
18960if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18961  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18962fi
18963
18964if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18965  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18966fi
18967
18968# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18969configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18970
18971# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18972func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18973
18974# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18975configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19017$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19018hardcode_action_CXX=
19019if test -n "$hardcode_libdir_flag_spec_CXX" ||
19020   test -n "$runpath_var_CXX" ||
19021   test yes = "$hardcode_automatic_CXX"; then
19022
19023  # We can hardcode non-existent directories.
19024  if test no != "$hardcode_direct_CXX" &&
19025     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19026     # have to relink, otherwise we might link with an installed library
19027     # when we should be linking with a yet-to-be-installed one
19028     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19029     test no != "$hardcode_minus_L_CXX"; then
19030    # Linking always hardcodes the temporary library directory.
19031    hardcode_action_CXX=relink
19032  else
19033    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19034    hardcode_action_CXX=immediate
19035  fi
19036else
19037  # We cannot hardcode anything, or else we can only hardcode existing
19038  # directories.
19039  hardcode_action_CXX=unsupported
19040fi
19041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19042$as_echo "$hardcode_action_CXX" >&6; }
19043
19044if test relink = "$hardcode_action_CXX" ||
19045   test yes = "$inherit_rpath_CXX"; then
19046  # Fast installation is not supported
19047  enable_fast_install=no
19048elif test yes = "$shlibpath_overrides_runpath" ||
19049     test no = "$enable_shared"; then
19050  # Fast installation is not necessary
19051  enable_fast_install=needless
19052fi
19053
19054
19055
19056
19057
19058
19059
19060  fi # test -n "$compiler"
19061
19062  CC=$lt_save_CC
19063  CFLAGS=$lt_save_CFLAGS
19064  LDCXX=$LD
19065  LD=$lt_save_LD
19066  GCC=$lt_save_GCC
19067  with_gnu_ld=$lt_save_with_gnu_ld
19068  lt_cv_path_LDCXX=$lt_cv_path_LD
19069  lt_cv_path_LD=$lt_save_path_LD
19070  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19071  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19072fi # test yes != "$_lt_caught_CXX_error"
19073
19074ac_ext=c
19075ac_cpp='$CPP $CPPFLAGS'
19076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_c_compiler_gnu
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094        ac_config_commands="$ac_config_commands libtool"
19095
19096
19097
19098
19099# Only expand once:
19100
19101
19102## --------------------- ##
19103##  End of libtool code  ##
19104## --------------------- ##
19105
19106#
19107# Verify if finally libtool shared libraries will be built
19108#
19109
19110case "x$enable_shared" in # ((
19111  xyes | xno)
19112    xc_lt_build_shared=$enable_shared
19113    ;;
19114  *)
19115    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
19116    ;;
19117esac
19118
19119#
19120# Verify if finally libtool static libraries will be built
19121#
19122
19123case "x$enable_static" in # ((
19124  xyes | xno)
19125    xc_lt_build_static=$enable_static
19126    ;;
19127  *)
19128    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
19129    ;;
19130esac
19131
19132#
19133# Verify if libtool shared libraries should be linked using flag -version-info
19134#
19135
19136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
19137$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
19138xc_lt_shlib_use_version_info='yes'
19139if test "x$version_type" = 'xnone'; then
19140  xc_lt_shlib_use_version_info='no'
19141fi
19142case $host_os in # (
19143  amigaos*)
19144    xc_lt_shlib_use_version_info='yes'
19145    ;;
19146esac
19147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
19148$as_echo "$xc_lt_shlib_use_version_info" >&6; }
19149
19150#
19151# Verify if libtool shared libraries should be linked using flag -no-undefined
19152#
19153
19154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
19155$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
19156xc_lt_shlib_use_no_undefined='no'
19157if test "x$allow_undefined" = 'xno'; then
19158  xc_lt_shlib_use_no_undefined='yes'
19159elif test "x$allow_undefined_flag" = 'xunsupported'; then
19160  xc_lt_shlib_use_no_undefined='yes'
19161fi
19162case $host_os in # (
19163  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
19164    xc_lt_shlib_use_no_undefined='yes'
19165    ;;
19166esac
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
19168$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
19169
19170#
19171# Verify if libtool shared libraries should be linked using flag -mimpure-text
19172#
19173
19174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
19175$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
19176xc_lt_shlib_use_mimpure_text='no'
19177case $host_os in # (
19178  solaris2*)
19179    if test "x$GCC" = 'xyes'; then
19180      xc_lt_shlib_use_mimpure_text='yes'
19181    fi
19182    ;;
19183esac
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
19185$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
19186
19187#
19188# Find out wether libtool libraries would be built wit PIC
19189#
19190
19191case "x$pic_mode" in # ((((
19192  xdefault)
19193    xc_lt_build_shared_with_pic='yes'
19194    xc_lt_build_static_with_pic='no'
19195    ;;
19196  xyes)
19197    xc_lt_build_shared_with_pic='yes'
19198    xc_lt_build_static_with_pic='yes'
19199    ;;
19200  xno)
19201    xc_lt_build_shared_with_pic='no'
19202    xc_lt_build_static_with_pic='no'
19203    ;;
19204  *)
19205    xc_lt_build_shared_with_pic='unknown'
19206    xc_lt_build_static_with_pic='unknown'
19207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
19208$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
19209    ;;
19210esac
19211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
19212$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
19213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
19214$as_echo "$xc_lt_build_shared_with_pic" >&6; }
19215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
19216$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
19217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
19218$as_echo "$xc_lt_build_static_with_pic" >&6; }
19219
19220#
19221# Verify if libtool shared libraries will be built while static not built
19222#
19223
19224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
19225$as_echo_n "checking whether to build shared libraries only... " >&6; }
19226if test "$xc_lt_build_shared" = 'yes' &&
19227  test "$xc_lt_build_static" = 'no'; then
19228  xc_lt_build_shared_only='yes'
19229else
19230  xc_lt_build_shared_only='no'
19231fi
19232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
19233$as_echo "$xc_lt_build_shared_only" >&6; }
19234
19235#
19236# Verify if libtool static libraries will be built while shared not built
19237#
19238
19239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
19240$as_echo_n "checking whether to build static libraries only... " >&6; }
19241if test "$xc_lt_build_static" = 'yes' &&
19242  test "$xc_lt_build_shared" = 'no'; then
19243  xc_lt_build_static_only='yes'
19244else
19245  xc_lt_build_static_only='no'
19246fi
19247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
19248$as_echo "$xc_lt_build_static_only" >&6; }
19249
19250
19251
19252
19253#
19254# Automake conditionals based on libtool related checks
19255#
19256
19257 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
19258  CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
19259  CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
19260else
19261  CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
19262  CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
19263fi
19264
19265 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19266  CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
19267  CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
19268else
19269  CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
19270  CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
19271fi
19272
19273 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
19274  CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
19275  CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
19276else
19277  CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
19278  CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
19279fi
19280
19281
19282#
19283# Due to libtool and automake machinery limitations of not allowing
19284# specifying separate CPPFLAGS or CFLAGS when compiling objects for
19285# inclusion of these in shared or static libraries, we are forced to
19286# build using separate configure runs for shared and static libraries
19287# on systems where different CPPFLAGS or CFLAGS are mandatory in order
19288# to compile objects for each kind of library. Notice that relying on
19289# the '-DPIC' CFLAG that libtool provides is not valid given that the
19290# user might for example choose to build static libraries with PIC.
19291#
19292
19293#
19294# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
19295# targeting a static library and not building its shared counterpart.
19296#
19297
19298 if test "x$xc_lt_build_static_only" = 'xyes'; then
19299  USE_CPPFLAG_CARES_STATICLIB_TRUE=
19300  USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
19301else
19302  USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
19303  USE_CPPFLAG_CARES_STATICLIB_FALSE=
19304fi
19305
19306
19307#
19308# Make staticlib CPPFLAG variable and its definition visible in output
19309# files unconditionally, providing an empty definition unless strictly
19310# targeting a static library and not building its shared counterpart.
19311#
19312
19313CPPFLAG_CARES_STATICLIB=
19314if test "x$xc_lt_build_static_only" = 'xyes'; then
19315  CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
19316fi
19317
19318
19319
19320
19321  #
19322  compiler_id="unknown"
19323  compiler_num="0"
19324  #
19325  flags_dbg_all="unknown"
19326  flags_dbg_yes="unknown"
19327  flags_dbg_off="unknown"
19328  flags_opt_all="unknown"
19329  flags_opt_yes="unknown"
19330  flags_opt_off="unknown"
19331  #
19332  flags_prefer_cppflags="no"
19333  #
19334
19335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
19336$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
19337
19338      if test -z "$SED"; then
19339    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19340  fi
19341  if test -z "$GREP"; then
19342    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19343  fi
19344
19345  tmp_exp=""
19346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347/* end confdefs.h.  */
19348
19349
19350#ifdef __DECC
19351CURL_DEF_TOKEN __DECC
19352#endif
19353
19354
19355_ACEOF
19356if ac_fn_c_try_cpp "$LINENO"; then :
19357
19358    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19359      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19360      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19361      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19362    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
19363      tmp_exp=""
19364    fi
19365
19366fi
19367rm -f conftest.err conftest.i conftest.$ac_ext
19368  if test -z "$tmp_exp"; then
19369    curl_cv_have_def___DECC=no
19370
19371  else
19372    curl_cv_have_def___DECC=yes
19373    curl_cv_def___DECC=$tmp_exp
19374
19375  fi
19376
19377
19378      if test -z "$SED"; then
19379    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19380  fi
19381  if test -z "$GREP"; then
19382    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19383  fi
19384
19385  tmp_exp=""
19386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387/* end confdefs.h.  */
19388
19389
19390#ifdef __DECC_VER
19391CURL_DEF_TOKEN __DECC_VER
19392#endif
19393
19394
19395_ACEOF
19396if ac_fn_c_try_cpp "$LINENO"; then :
19397
19398    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19399      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19400      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19401      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19402    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
19403      tmp_exp=""
19404    fi
19405
19406fi
19407rm -f conftest.err conftest.i conftest.$ac_ext
19408  if test -z "$tmp_exp"; then
19409    curl_cv_have_def___DECC_VER=no
19410
19411  else
19412    curl_cv_have_def___DECC_VER=yes
19413    curl_cv_def___DECC_VER=$tmp_exp
19414
19415  fi
19416
19417  if test "$curl_cv_have_def___DECC" = "yes" &&
19418    test "$curl_cv_have_def___DECC_VER" = "yes"; then
19419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19420$as_echo "yes" >&6; }
19421    compiler_id="DEC_C"
19422    flags_dbg_all="-g -g0 -g1 -g2 -g3"
19423    flags_dbg_yes="-g2"
19424    flags_dbg_off="-g0"
19425    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
19426    flags_opt_yes="-O1"
19427    flags_opt_off="-O0"
19428  else
19429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19430$as_echo "no" >&6; }
19431  fi
19432
19433
19434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
19435$as_echo_n "checking if compiler is HP-UX C... " >&6; }
19436
19437      if test -z "$SED"; then
19438    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19439  fi
19440  if test -z "$GREP"; then
19441    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19442  fi
19443
19444  tmp_exp=""
19445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446/* end confdefs.h.  */
19447
19448
19449#ifdef __HP_cc
19450CURL_DEF_TOKEN __HP_cc
19451#endif
19452
19453
19454_ACEOF
19455if ac_fn_c_try_cpp "$LINENO"; then :
19456
19457    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19458      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19459      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19460      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19461    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
19462      tmp_exp=""
19463    fi
19464
19465fi
19466rm -f conftest.err conftest.i conftest.$ac_ext
19467  if test -z "$tmp_exp"; then
19468    curl_cv_have_def___HP_cc=no
19469
19470  else
19471    curl_cv_have_def___HP_cc=yes
19472    curl_cv_def___HP_cc=$tmp_exp
19473
19474  fi
19475
19476  if test "$curl_cv_have_def___HP_cc" = "yes"; then
19477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19478$as_echo "yes" >&6; }
19479    compiler_id="HP_UX_C"
19480    flags_dbg_all="-g -s"
19481    flags_dbg_yes="-g"
19482    flags_dbg_off="-s"
19483    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
19484    flags_opt_yes="+O2"
19485    flags_opt_off="+O0"
19486  else
19487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19488$as_echo "no" >&6; }
19489  fi
19490
19491
19492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
19493$as_echo_n "checking if compiler is IBM C... " >&6; }
19494
19495      if test -z "$SED"; then
19496    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19497  fi
19498  if test -z "$GREP"; then
19499    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19500  fi
19501
19502  tmp_exp=""
19503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504/* end confdefs.h.  */
19505
19506
19507#ifdef __IBMC__
19508CURL_DEF_TOKEN __IBMC__
19509#endif
19510
19511
19512_ACEOF
19513if ac_fn_c_try_cpp "$LINENO"; then :
19514
19515    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19516      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19517      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19518      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19519    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
19520      tmp_exp=""
19521    fi
19522
19523fi
19524rm -f conftest.err conftest.i conftest.$ac_ext
19525  if test -z "$tmp_exp"; then
19526    curl_cv_have_def___IBMC__=no
19527
19528  else
19529    curl_cv_have_def___IBMC__=yes
19530    curl_cv_def___IBMC__=$tmp_exp
19531
19532  fi
19533
19534  if test "$curl_cv_have_def___IBMC__" = "yes"; then
19535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536$as_echo "yes" >&6; }
19537    compiler_id="IBM_C"
19538    flags_dbg_all="-g -g0 -g1 -g2 -g3"
19539    flags_dbg_yes="-g"
19540    flags_dbg_off=""
19541    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
19542    flags_opt_all="$flags_opt_all -qnooptimize"
19543    flags_opt_all="$flags_opt_all -qoptimize=0"
19544    flags_opt_all="$flags_opt_all -qoptimize=1"
19545    flags_opt_all="$flags_opt_all -qoptimize=2"
19546    flags_opt_all="$flags_opt_all -qoptimize=3"
19547    flags_opt_all="$flags_opt_all -qoptimize=4"
19548    flags_opt_all="$flags_opt_all -qoptimize=5"
19549    flags_opt_yes="-O2"
19550    flags_opt_off="-qnooptimize"
19551    flags_prefer_cppflags="yes"
19552  else
19553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554$as_echo "no" >&6; }
19555  fi
19556
19557
19558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
19559$as_echo_n "checking if compiler is Intel C... " >&6; }
19560
19561      if test -z "$SED"; then
19562    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19563  fi
19564  if test -z "$GREP"; then
19565    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19566  fi
19567
19568  tmp_exp=""
19569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570/* end confdefs.h.  */
19571
19572
19573#ifdef __INTEL_COMPILER
19574CURL_DEF_TOKEN __INTEL_COMPILER
19575#endif
19576
19577
19578_ACEOF
19579if ac_fn_c_try_cpp "$LINENO"; then :
19580
19581    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19582      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19583      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19584      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19585    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
19586      tmp_exp=""
19587    fi
19588
19589fi
19590rm -f conftest.err conftest.i conftest.$ac_ext
19591  if test -z "$tmp_exp"; then
19592    curl_cv_have_def___INTEL_COMPILER=no
19593
19594  else
19595    curl_cv_have_def___INTEL_COMPILER=yes
19596    curl_cv_def___INTEL_COMPILER=$tmp_exp
19597
19598  fi
19599
19600  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
19601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19602$as_echo "yes" >&6; }
19603    compiler_num="$curl_cv_def___INTEL_COMPILER"
19604
19605      if test -z "$SED"; then
19606    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19607  fi
19608  if test -z "$GREP"; then
19609    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19610  fi
19611
19612  tmp_exp=""
19613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614/* end confdefs.h.  */
19615
19616
19617#ifdef __unix__
19618CURL_DEF_TOKEN __unix__
19619#endif
19620
19621
19622_ACEOF
19623if ac_fn_c_try_cpp "$LINENO"; then :
19624
19625    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19626      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19627      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19628      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19629    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
19630      tmp_exp=""
19631    fi
19632
19633fi
19634rm -f conftest.err conftest.i conftest.$ac_ext
19635  if test -z "$tmp_exp"; then
19636    curl_cv_have_def___unix__=no
19637
19638  else
19639    curl_cv_have_def___unix__=yes
19640    curl_cv_def___unix__=$tmp_exp
19641
19642  fi
19643
19644    if test "$curl_cv_have_def___unix__" = "yes"; then
19645      compiler_id="INTEL_UNIX_C"
19646      flags_dbg_all="-g -g0"
19647      flags_dbg_yes="-g"
19648      flags_dbg_off="-g0"
19649      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19650      flags_opt_yes="-O2"
19651      flags_opt_off="-O0"
19652    else
19653      compiler_id="INTEL_WINDOWS_C"
19654      flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
19655      flags_dbg_all="$flags_dbg_all /debug"
19656      flags_dbg_all="$flags_dbg_all /debug:none"
19657      flags_dbg_all="$flags_dbg_all /debug:minimal"
19658      flags_dbg_all="$flags_dbg_all /debug:partial"
19659      flags_dbg_all="$flags_dbg_all /debug:full"
19660      flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
19661      flags_dbg_all="$flags_dbg_all /debug:extended"
19662      flags_dbg_yes="/Zi /Oy-"
19663      flags_dbg_off="/debug:none /Oy-"
19664      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
19665      flags_opt_yes="/O2"
19666      flags_opt_off="/Od"
19667    fi
19668  else
19669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19670$as_echo "no" >&6; }
19671  fi
19672
19673
19674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
19675$as_echo_n "checking if compiler is clang... " >&6; }
19676
19677      if test -z "$SED"; then
19678    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19679  fi
19680  if test -z "$GREP"; then
19681    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19682  fi
19683
19684  tmp_exp=""
19685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h.  */
19687
19688
19689#ifdef __clang__
19690CURL_DEF_TOKEN __clang__
19691#endif
19692
19693
19694_ACEOF
19695if ac_fn_c_try_cpp "$LINENO"; then :
19696
19697    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19698      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19699      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19700      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19701    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
19702      tmp_exp=""
19703    fi
19704
19705fi
19706rm -f conftest.err conftest.i conftest.$ac_ext
19707  if test -z "$tmp_exp"; then
19708    curl_cv_have_def___clang__=no
19709
19710  else
19711    curl_cv_have_def___clang__=yes
19712    curl_cv_def___clang__=$tmp_exp
19713
19714  fi
19715
19716  if test "$curl_cv_have_def___clang__" = "yes"; then
19717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19718$as_echo "yes" >&6; }
19719    compiler_id="CLANG"
19720    clangver=`$CC -dumpversion`
19721    clangvhi=`echo $clangver | cut -d . -f1`
19722    clangvlo=`echo $clangver | cut -d . -f2`
19723    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
19724    flags_dbg_all="-g -g0 -g1 -g2 -g3"
19725    flags_dbg_all="$flags_dbg_all -ggdb"
19726    flags_dbg_all="$flags_dbg_all -gstabs"
19727    flags_dbg_all="$flags_dbg_all -gstabs+"
19728    flags_dbg_all="$flags_dbg_all -gcoff"
19729    flags_dbg_all="$flags_dbg_all -gxcoff"
19730    flags_dbg_all="$flags_dbg_all -gdwarf-2"
19731    flags_dbg_all="$flags_dbg_all -gvms"
19732    flags_dbg_yes="-g"
19733    flags_dbg_off="-g0"
19734    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
19735    flags_opt_yes="-Os"
19736    flags_opt_off="-O0"
19737  else
19738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19739$as_echo "no" >&6; }
19740  fi
19741
19742
19743      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
19744$as_echo_n "checking if compiler is GNU C... " >&6; }
19745
19746      if test -z "$SED"; then
19747    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19748  fi
19749  if test -z "$GREP"; then
19750    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19751  fi
19752
19753  tmp_exp=""
19754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755/* end confdefs.h.  */
19756
19757
19758#ifdef __GNUC__
19759CURL_DEF_TOKEN __GNUC__
19760#endif
19761
19762
19763_ACEOF
19764if ac_fn_c_try_cpp "$LINENO"; then :
19765
19766    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19767      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19768      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19769      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19770    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19771      tmp_exp=""
19772    fi
19773
19774fi
19775rm -f conftest.err conftest.i conftest.$ac_ext
19776  if test -z "$tmp_exp"; then
19777    curl_cv_have_def___GNUC__=no
19778
19779  else
19780    curl_cv_have_def___GNUC__=yes
19781    curl_cv_def___GNUC__=$tmp_exp
19782
19783  fi
19784
19785  if test "$curl_cv_have_def___GNUC__" = "yes" &&
19786    test "$compiler_id" = "unknown"; then
19787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19788$as_echo "yes" >&6; }
19789    compiler_id="GNU_C"
19790    gccver=`$CC -dumpversion`
19791    gccvhi=`echo $gccver | cut -d . -f1`
19792    gccvlo=`echo $gccver | cut -d . -f2`
19793    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
19794    flags_dbg_all="-g -g0 -g1 -g2 -g3"
19795    flags_dbg_all="$flags_dbg_all -ggdb"
19796    flags_dbg_all="$flags_dbg_all -gstabs"
19797    flags_dbg_all="$flags_dbg_all -gstabs+"
19798    flags_dbg_all="$flags_dbg_all -gcoff"
19799    flags_dbg_all="$flags_dbg_all -gxcoff"
19800    flags_dbg_all="$flags_dbg_all -gdwarf-2"
19801    flags_dbg_all="$flags_dbg_all -gvms"
19802    flags_dbg_yes="-g"
19803    flags_dbg_off="-g0"
19804    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19805    flags_opt_yes="-O2"
19806    flags_opt_off="-O0"
19807
19808      if test -z "$SED"; then
19809    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19810  fi
19811  if test -z "$GREP"; then
19812    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19813  fi
19814
19815  tmp_exp=""
19816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817/* end confdefs.h.  */
19818
19819
19820#ifdef _WIN32
19821CURL_DEF_TOKEN _WIN32
19822#endif
19823
19824
19825_ACEOF
19826if ac_fn_c_try_cpp "$LINENO"; then :
19827
19828    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19829      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19830      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19831      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19832    if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
19833      tmp_exp=""
19834    fi
19835
19836fi
19837rm -f conftest.err conftest.i conftest.$ac_ext
19838  if test -z "$tmp_exp"; then
19839    curl_cv_have_def__WIN32=no
19840
19841  else
19842    curl_cv_have_def__WIN32=yes
19843    curl_cv_def__WIN32=$tmp_exp
19844
19845  fi
19846
19847  else
19848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19849$as_echo "no" >&6; }
19850  fi
19851
19852
19853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
19854$as_echo_n "checking if compiler is LCC... " >&6; }
19855
19856      if test -z "$SED"; then
19857    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19858  fi
19859  if test -z "$GREP"; then
19860    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19861  fi
19862
19863  tmp_exp=""
19864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865/* end confdefs.h.  */
19866
19867
19868#ifdef __LCC__
19869CURL_DEF_TOKEN __LCC__
19870#endif
19871
19872
19873_ACEOF
19874if ac_fn_c_try_cpp "$LINENO"; then :
19875
19876    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19877      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19878      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19879      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19880    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
19881      tmp_exp=""
19882    fi
19883
19884fi
19885rm -f conftest.err conftest.i conftest.$ac_ext
19886  if test -z "$tmp_exp"; then
19887    curl_cv_have_def___LCC__=no
19888
19889  else
19890    curl_cv_have_def___LCC__=yes
19891    curl_cv_def___LCC__=$tmp_exp
19892
19893  fi
19894
19895  if test "$curl_cv_have_def___LCC__" = "yes"; then
19896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19897$as_echo "yes" >&6; }
19898    compiler_id="LCC"
19899    flags_dbg_all="-g"
19900    flags_dbg_yes="-g"
19901    flags_dbg_off=""
19902    flags_opt_all=""
19903    flags_opt_yes=""
19904    flags_opt_off=""
19905  else
19906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19907$as_echo "no" >&6; }
19908  fi
19909
19910
19911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
19912$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
19913
19914      if test -z "$SED"; then
19915    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19916  fi
19917  if test -z "$GREP"; then
19918    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19919  fi
19920
19921  tmp_exp=""
19922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923/* end confdefs.h.  */
19924
19925
19926#ifdef __GNUC__
19927CURL_DEF_TOKEN __GNUC__
19928#endif
19929
19930
19931_ACEOF
19932if ac_fn_c_try_cpp "$LINENO"; then :
19933
19934    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19935      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19936      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19937      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19938    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19939      tmp_exp=""
19940    fi
19941
19942fi
19943rm -f conftest.err conftest.i conftest.$ac_ext
19944  if test -z "$tmp_exp"; then
19945    curl_cv_have_def___GNUC__=no
19946
19947  else
19948    curl_cv_have_def___GNUC__=yes
19949    curl_cv_def___GNUC__=$tmp_exp
19950
19951  fi
19952
19953
19954      if test -z "$SED"; then
19955    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19956  fi
19957  if test -z "$GREP"; then
19958    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19959  fi
19960
19961  tmp_exp=""
19962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963/* end confdefs.h.  */
19964
19965
19966#ifdef _COMPILER_VERSION
19967CURL_DEF_TOKEN _COMPILER_VERSION
19968#endif
19969
19970
19971_ACEOF
19972if ac_fn_c_try_cpp "$LINENO"; then :
19973
19974    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19975      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19976      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19977      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19978    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
19979      tmp_exp=""
19980    fi
19981
19982fi
19983rm -f conftest.err conftest.i conftest.$ac_ext
19984  if test -z "$tmp_exp"; then
19985    curl_cv_have_def__COMPILER_VERSION=no
19986
19987  else
19988    curl_cv_have_def__COMPILER_VERSION=yes
19989    curl_cv_def__COMPILER_VERSION=$tmp_exp
19990
19991  fi
19992
19993
19994      if test -z "$SED"; then
19995    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19996  fi
19997  if test -z "$GREP"; then
19998    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19999  fi
20000
20001  tmp_exp=""
20002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003/* end confdefs.h.  */
20004
20005
20006#ifdef _SGI_COMPILER_VERSION
20007CURL_DEF_TOKEN _SGI_COMPILER_VERSION
20008#endif
20009
20010
20011_ACEOF
20012if ac_fn_c_try_cpp "$LINENO"; then :
20013
20014    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20015      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20016      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20017      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20018    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
20019      tmp_exp=""
20020    fi
20021
20022fi
20023rm -f conftest.err conftest.i conftest.$ac_ext
20024  if test -z "$tmp_exp"; then
20025    curl_cv_have_def__SGI_COMPILER_VERSION=no
20026
20027  else
20028    curl_cv_have_def__SGI_COMPILER_VERSION=yes
20029    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
20030
20031  fi
20032
20033  if test "$curl_cv_have_def___GNUC__" = "no" &&
20034    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
20035     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
20036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20037$as_echo "yes" >&6; }
20038    compiler_id="SGI_MIPSPRO_C"
20039    flags_dbg_all="-g -g0 -g1 -g2 -g3"
20040    flags_dbg_yes="-g"
20041    flags_dbg_off="-g0"
20042    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20043    flags_opt_yes="-O2"
20044    flags_opt_off="-O0"
20045  else
20046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047$as_echo "no" >&6; }
20048  fi
20049
20050
20051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
20052$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
20053
20054      if test -z "$SED"; then
20055    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20056  fi
20057  if test -z "$GREP"; then
20058    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20059  fi
20060
20061  tmp_exp=""
20062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063/* end confdefs.h.  */
20064
20065
20066#ifdef __GNUC__
20067CURL_DEF_TOKEN __GNUC__
20068#endif
20069
20070
20071_ACEOF
20072if ac_fn_c_try_cpp "$LINENO"; then :
20073
20074    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20075      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20076      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20077      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20078    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
20079      tmp_exp=""
20080    fi
20081
20082fi
20083rm -f conftest.err conftest.i conftest.$ac_ext
20084  if test -z "$tmp_exp"; then
20085    curl_cv_have_def___GNUC__=no
20086
20087  else
20088    curl_cv_have_def___GNUC__=yes
20089    curl_cv_def___GNUC__=$tmp_exp
20090
20091  fi
20092
20093
20094      if test -z "$SED"; then
20095    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20096  fi
20097  if test -z "$GREP"; then
20098    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20099  fi
20100
20101  tmp_exp=""
20102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103/* end confdefs.h.  */
20104
20105
20106#ifdef __sgi
20107CURL_DEF_TOKEN __sgi
20108#endif
20109
20110
20111_ACEOF
20112if ac_fn_c_try_cpp "$LINENO"; then :
20113
20114    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20115      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20116      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20117      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20118    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
20119      tmp_exp=""
20120    fi
20121
20122fi
20123rm -f conftest.err conftest.i conftest.$ac_ext
20124  if test -z "$tmp_exp"; then
20125    curl_cv_have_def___sgi=no
20126
20127  else
20128    curl_cv_have_def___sgi=yes
20129    curl_cv_def___sgi=$tmp_exp
20130
20131  fi
20132
20133  if test "$curl_cv_have_def___GNUC__" = "no" &&
20134    test "$curl_cv_have_def___sgi" = "yes" &&
20135    test "$compiler_id" = "unknown"; then
20136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20137$as_echo "yes" >&6; }
20138    compiler_id="SGI_MIPS_C"
20139    flags_dbg_all="-g -g0 -g1 -g2 -g3"
20140    flags_dbg_yes="-g"
20141    flags_dbg_off="-g0"
20142    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20143    flags_opt_yes="-O2"
20144    flags_opt_off="-O0"
20145  else
20146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147$as_echo "no" >&6; }
20148  fi
20149
20150
20151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
20152$as_echo_n "checking if compiler is SunPro C... " >&6; }
20153
20154      if test -z "$SED"; then
20155    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20156  fi
20157  if test -z "$GREP"; then
20158    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20159  fi
20160
20161  tmp_exp=""
20162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163/* end confdefs.h.  */
20164
20165
20166#ifdef __SUNPRO_C
20167CURL_DEF_TOKEN __SUNPRO_C
20168#endif
20169
20170
20171_ACEOF
20172if ac_fn_c_try_cpp "$LINENO"; then :
20173
20174    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20175      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20176      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20177      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20178    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
20179      tmp_exp=""
20180    fi
20181
20182fi
20183rm -f conftest.err conftest.i conftest.$ac_ext
20184  if test -z "$tmp_exp"; then
20185    curl_cv_have_def___SUNPRO_C=no
20186
20187  else
20188    curl_cv_have_def___SUNPRO_C=yes
20189    curl_cv_def___SUNPRO_C=$tmp_exp
20190
20191  fi
20192
20193  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
20194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20195$as_echo "yes" >&6; }
20196    compiler_id="SUNPRO_C"
20197    flags_dbg_all="-g -s"
20198    flags_dbg_yes="-g"
20199    flags_dbg_off="-s"
20200    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
20201    flags_opt_yes="-xO2"
20202    flags_opt_off=""
20203  else
20204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20205$as_echo "no" >&6; }
20206  fi
20207
20208
20209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
20210$as_echo_n "checking if compiler is Tiny C... " >&6; }
20211
20212      if test -z "$SED"; then
20213    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20214  fi
20215  if test -z "$GREP"; then
20216    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20217  fi
20218
20219  tmp_exp=""
20220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20221/* end confdefs.h.  */
20222
20223
20224#ifdef __TINYC__
20225CURL_DEF_TOKEN __TINYC__
20226#endif
20227
20228
20229_ACEOF
20230if ac_fn_c_try_cpp "$LINENO"; then :
20231
20232    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20233      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20234      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20235      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20236    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
20237      tmp_exp=""
20238    fi
20239
20240fi
20241rm -f conftest.err conftest.i conftest.$ac_ext
20242  if test -z "$tmp_exp"; then
20243    curl_cv_have_def___TINYC__=no
20244
20245  else
20246    curl_cv_have_def___TINYC__=yes
20247    curl_cv_def___TINYC__=$tmp_exp
20248
20249  fi
20250
20251  if test "$curl_cv_have_def___TINYC__" = "yes"; then
20252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20253$as_echo "yes" >&6; }
20254    compiler_id="TINY_C"
20255    flags_dbg_all="-g -b"
20256    flags_dbg_yes="-g"
20257    flags_dbg_off=""
20258    flags_opt_all=""
20259    flags_opt_yes=""
20260    flags_opt_off=""
20261  else
20262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20263$as_echo "no" >&6; }
20264  fi
20265
20266
20267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
20268$as_echo_n "checking if compiler is Watcom C... " >&6; }
20269
20270      if test -z "$SED"; then
20271    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20272  fi
20273  if test -z "$GREP"; then
20274    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20275  fi
20276
20277  tmp_exp=""
20278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279/* end confdefs.h.  */
20280
20281
20282#ifdef __WATCOMC__
20283CURL_DEF_TOKEN __WATCOMC__
20284#endif
20285
20286
20287_ACEOF
20288if ac_fn_c_try_cpp "$LINENO"; then :
20289
20290    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20291      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20292      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20293      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20294    if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
20295      tmp_exp=""
20296    fi
20297
20298fi
20299rm -f conftest.err conftest.i conftest.$ac_ext
20300  if test -z "$tmp_exp"; then
20301    curl_cv_have_def___WATCOMC__=no
20302
20303  else
20304    curl_cv_have_def___WATCOMC__=yes
20305    curl_cv_def___WATCOMC__=$tmp_exp
20306
20307  fi
20308
20309  if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
20310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20311$as_echo "yes" >&6; }
20312
20313      if test -z "$SED"; then
20314    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20315  fi
20316  if test -z "$GREP"; then
20317    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20318  fi
20319
20320  tmp_exp=""
20321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322/* end confdefs.h.  */
20323
20324
20325#ifdef __UNIX__
20326CURL_DEF_TOKEN __UNIX__
20327#endif
20328
20329
20330_ACEOF
20331if ac_fn_c_try_cpp "$LINENO"; then :
20332
20333    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20334      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20335      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20336      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20337    if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
20338      tmp_exp=""
20339    fi
20340
20341fi
20342rm -f conftest.err conftest.i conftest.$ac_ext
20343  if test -z "$tmp_exp"; then
20344    curl_cv_have_def___UNIX__=no
20345
20346  else
20347    curl_cv_have_def___UNIX__=yes
20348    curl_cv_def___UNIX__=$tmp_exp
20349
20350  fi
20351
20352    if test "$curl_cv_have_def___UNIX__" = "yes"; then
20353      compiler_id="WATCOM_UNIX_C"
20354      flags_dbg_all="-g1 -g1+ -g2 -g3"
20355      flags_dbg_yes="-g2"
20356      flags_dbg_off=""
20357      flags_opt_all="-O0 -O1 -O2 -O3"
20358      flags_opt_yes="-O2"
20359      flags_opt_off="-O0"
20360    else
20361      compiler_id="WATCOM_WINDOWS_C"
20362      flags_dbg_all=""
20363      flags_dbg_yes=""
20364      flags_dbg_off=""
20365      flags_opt_all=""
20366      flags_opt_yes=""
20367      flags_opt_off=""
20368    fi
20369  else
20370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20371$as_echo "no" >&6; }
20372  fi
20373
20374  #
20375  if test "$compiler_id" = "unknown"; then
20376  cat <<_EOF 1>&2
20377***
20378*** Warning: This configure script does not have information about the
20379*** compiler you are using, relative to the flags required to enable or
20380*** disable generation of debug info, optimization options or warnings.
20381***
20382*** Whatever settings are present in CFLAGS will be used for this run.
20383***
20384*** If you wish to help the c-ares project to better support your compiler
20385*** you can report this and the required info on the c-ares development
20386*** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
20387***
20388_EOF
20389  fi
20390
20391
20392squeeze() {
20393  _sqz_result=""
20394  eval _sqz_input=\$$1
20395  for _sqz_token in $_sqz_input; do
20396    if test -z "$_sqz_result"; then
20397      _sqz_result="$_sqz_token"
20398    else
20399      _sqz_result="$_sqz_result $_sqz_token"
20400    fi
20401  done
20402  eval $1=\$_sqz_result
20403  return 0
20404}
20405
20406
20407      #
20408  if test "$compiler_id" != "unknown"; then
20409    #
20410    if test "$compiler_id" = "GNU_C" ||
20411      test "$compiler_id" = "CLANG"; then
20412
20413      if test "$compiler_id" = "GNU_C" ||
20414    test "$compiler_id" = "CLANG"; then
20415    tmp_has_include="no"
20416    tmp_chg_FLAGS="$CFLAGS"
20417    for word1 in $tmp_chg_FLAGS; do
20418      case "$word1" in
20419        -I*)
20420          tmp_has_include="yes"
20421          ;;
20422      esac
20423    done
20424    if test "$tmp_has_include" = "yes"; then
20425      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20426      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20427      CFLAGS="$tmp_chg_FLAGS"
20428      squeeze CFLAGS
20429    fi
20430    tmp_has_include="no"
20431    tmp_chg_FLAGS="$CPPFLAGS"
20432    for word1 in $tmp_chg_FLAGS; do
20433      case "$word1" in
20434        -I*)
20435          tmp_has_include="yes"
20436          ;;
20437      esac
20438    done
20439    if test "$tmp_has_include" = "yes"; then
20440      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20441      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20442      CPPFLAGS="$tmp_chg_FLAGS"
20443      squeeze CPPFLAGS
20444    fi
20445  fi
20446
20447    fi
20448    #
20449    tmp_save_CPPFLAGS="$CPPFLAGS"
20450    tmp_save_CFLAGS="$CFLAGS"
20451    tmp_CPPFLAGS=""
20452    tmp_CFLAGS=""
20453    #
20454    case "$compiler_id" in
20455        #
20456      CLANG)
20457        #
20458                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
20459        ;;
20460        #
20461      DEC_C)
20462        #
20463                tmp_CFLAGS="$tmp_CFLAGS -std1"
20464                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
20465                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
20466                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
20467        ;;
20468        #
20469      GNU_C)
20470        #
20471                tmp_CFLAGS="$tmp_CFLAGS"
20472        ;;
20473        #
20474      HP_UX_C)
20475        #
20476                tmp_CFLAGS="$tmp_CFLAGS -z"
20477                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
20478        ;;
20479        #
20480      IBM_C)
20481        #
20482                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
20483                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
20484                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
20485        ;;
20486        #
20487      INTEL_UNIX_C)
20488        #
20489                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
20490                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
20491                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
20492        ;;
20493        #
20494      INTEL_WINDOWS_C)
20495        #
20496                tmp_CFLAGS="$tmp_CFLAGS"
20497        ;;
20498        #
20499      LCC)
20500        #
20501                tmp_CFLAGS="$tmp_CFLAGS -n"
20502        ;;
20503        #
20504      SGI_MIPS_C)
20505        #
20506                tmp_CFLAGS="$tmp_CFLAGS"
20507        ;;
20508        #
20509      SGI_MIPSPRO_C)
20510        #
20511                tmp_CFLAGS="$tmp_CFLAGS"
20512        ;;
20513        #
20514      SUNPRO_C)
20515        #
20516                tmp_CFLAGS="$tmp_CFLAGS"
20517        ;;
20518        #
20519      TINY_C)
20520        #
20521                tmp_CFLAGS="$tmp_CFLAGS"
20522        ;;
20523        #
20524      WATCOM_UNIX_C)
20525        #
20526                tmp_CFLAGS="$tmp_CFLAGS"
20527        ;;
20528        #
20529      WATCOM_WINDOWS_C)
20530        #
20531                tmp_CFLAGS="$tmp_CFLAGS"
20532        ;;
20533        #
20534    esac
20535    #
20536    squeeze tmp_CPPFLAGS
20537    squeeze tmp_CFLAGS
20538    #
20539    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20540      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
20541$as_echo_n "checking if compiler accepts some basic options... " >&6; }
20542      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20543      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20544      squeeze CPPFLAGS
20545      squeeze CFLAGS
20546
20547    tmp_compiler_works="unknown"
20548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549/* end confdefs.h.  */
20550
20551
20552
20553int main (void)
20554{
20555
20556      int i = 1;
20557      return i;
20558
20559 ;
20560 return 0;
20561}
20562
20563_ACEOF
20564if ac_fn_c_try_compile "$LINENO"; then :
20565
20566    tmp_compiler_works="yes"
20567
20568else
20569
20570    tmp_compiler_works="no"
20571    echo " " >&6
20572    sed 's/^/cc-fail: /' conftest.err >&6
20573    echo " " >&6
20574
20575fi
20576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577    if test "$tmp_compiler_works" = "yes"; then
20578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579/* end confdefs.h.  */
20580
20581
20582
20583int main (void)
20584{
20585
20586        int i = 1;
20587        return i;
20588
20589 ;
20590 return 0;
20591}
20592
20593_ACEOF
20594if ac_fn_c_try_link "$LINENO"; then :
20595
20596      tmp_compiler_works="yes"
20597
20598else
20599
20600      tmp_compiler_works="no"
20601      echo " " >&6
20602      sed 's/^/link-fail: /' conftest.err >&6
20603      echo " " >&6
20604
20605fi
20606rm -f core conftest.err conftest.$ac_objext \
20607    conftest$ac_exeext conftest.$ac_ext
20608  fi
20609    if test "x$cross_compiling" != "xyes" &&
20610    test "$tmp_compiler_works" = "yes"; then
20611    if test "$cross_compiling" = yes; then :
20612  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20614as_fn_error $? "cannot run test program while cross compiling
20615See \`config.log' for more details" "$LINENO" 5; }
20616else
20617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618/* end confdefs.h.  */
20619
20620
20621#       ifdef __STDC__
20622#         include <stdlib.h>
20623#       endif
20624
20625int main (void)
20626{
20627
20628        int i = 0;
20629        exit(i);
20630
20631 ;
20632 return 0;
20633}
20634
20635_ACEOF
20636if ac_fn_c_try_run "$LINENO"; then :
20637
20638      tmp_compiler_works="yes"
20639
20640else
20641
20642      tmp_compiler_works="no"
20643      echo " " >&6
20644      echo "run-fail: test program exited with status $ac_status" >&6
20645      echo " " >&6
20646
20647fi
20648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20649  conftest.$ac_objext conftest.beam conftest.$ac_ext
20650fi
20651
20652  fi
20653    if test "$tmp_compiler_works" = "yes"; then
20654
20655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20656$as_echo "yes" >&6; }
20657        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20658$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20659
20660  else
20661
20662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20663$as_echo "no" >&6; }
20664        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20665$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20666                CPPFLAGS="$tmp_save_CPPFLAGS"
20667        CFLAGS="$tmp_save_CFLAGS"
20668
20669  fi
20670
20671    fi
20672    #
20673  fi
20674
20675
20676        #
20677  if test "$compiler_id" != "unknown"; then
20678    #
20679    tmp_save_CFLAGS="$CFLAGS"
20680    tmp_save_CPPFLAGS="$CPPFLAGS"
20681    #
20682    tmp_options=""
20683    tmp_CFLAGS="$CFLAGS"
20684    tmp_CPPFLAGS="$CPPFLAGS"
20685
20686    ac_var_stripped=""
20687  for word1 in $tmp_CFLAGS; do
20688    ac_var_strip_word="no"
20689    for word2 in $flags_dbg_all; do
20690      if test "$word1" = "$word2"; then
20691        ac_var_strip_word="yes"
20692      fi
20693    done
20694    if test "$ac_var_strip_word" = "no"; then
20695      ac_var_stripped="$ac_var_stripped $word1"
20696    fi
20697  done
20698    tmp_CFLAGS="$ac_var_stripped"
20699  squeeze tmp_CFLAGS
20700
20701
20702    ac_var_stripped=""
20703  for word1 in $tmp_CPPFLAGS; do
20704    ac_var_strip_word="no"
20705    for word2 in $flags_dbg_all; do
20706      if test "$word1" = "$word2"; then
20707        ac_var_strip_word="yes"
20708      fi
20709    done
20710    if test "$ac_var_strip_word" = "no"; then
20711      ac_var_stripped="$ac_var_stripped $word1"
20712    fi
20713  done
20714    tmp_CPPFLAGS="$ac_var_stripped"
20715  squeeze tmp_CPPFLAGS
20716
20717    #
20718    if test "$want_debug" = "yes"; then
20719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
20720$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
20721      tmp_options="$flags_dbg_yes"
20722    fi
20723    if test "$want_debug" = "no"; then
20724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
20725$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
20726      tmp_options="$flags_dbg_off"
20727    fi
20728    #
20729    if test "$flags_prefer_cppflags" = "yes"; then
20730      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20731      CFLAGS="$tmp_CFLAGS"
20732    else
20733      CPPFLAGS="$tmp_CPPFLAGS"
20734      CFLAGS="$tmp_CFLAGS $tmp_options"
20735    fi
20736    squeeze CPPFLAGS
20737    squeeze CFLAGS
20738
20739    tmp_compiler_works="unknown"
20740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741/* end confdefs.h.  */
20742
20743
20744
20745int main (void)
20746{
20747
20748      int i = 1;
20749      return i;
20750
20751 ;
20752 return 0;
20753}
20754
20755_ACEOF
20756if ac_fn_c_try_compile "$LINENO"; then :
20757
20758    tmp_compiler_works="yes"
20759
20760else
20761
20762    tmp_compiler_works="no"
20763    echo " " >&6
20764    sed 's/^/cc-fail: /' conftest.err >&6
20765    echo " " >&6
20766
20767fi
20768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769    if test "$tmp_compiler_works" = "yes"; then
20770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771/* end confdefs.h.  */
20772
20773
20774
20775int main (void)
20776{
20777
20778        int i = 1;
20779        return i;
20780
20781 ;
20782 return 0;
20783}
20784
20785_ACEOF
20786if ac_fn_c_try_link "$LINENO"; then :
20787
20788      tmp_compiler_works="yes"
20789
20790else
20791
20792      tmp_compiler_works="no"
20793      echo " " >&6
20794      sed 's/^/link-fail: /' conftest.err >&6
20795      echo " " >&6
20796
20797fi
20798rm -f core conftest.err conftest.$ac_objext \
20799    conftest$ac_exeext conftest.$ac_ext
20800  fi
20801    if test "x$cross_compiling" != "xyes" &&
20802    test "$tmp_compiler_works" = "yes"; then
20803    if test "$cross_compiling" = yes; then :
20804  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20806as_fn_error $? "cannot run test program while cross compiling
20807See \`config.log' for more details" "$LINENO" 5; }
20808else
20809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810/* end confdefs.h.  */
20811
20812
20813#       ifdef __STDC__
20814#         include <stdlib.h>
20815#       endif
20816
20817int main (void)
20818{
20819
20820        int i = 0;
20821        exit(i);
20822
20823 ;
20824 return 0;
20825}
20826
20827_ACEOF
20828if ac_fn_c_try_run "$LINENO"; then :
20829
20830      tmp_compiler_works="yes"
20831
20832else
20833
20834      tmp_compiler_works="no"
20835      echo " " >&6
20836      echo "run-fail: test program exited with status $ac_status" >&6
20837      echo " " >&6
20838
20839fi
20840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20841  conftest.$ac_objext conftest.beam conftest.$ac_ext
20842fi
20843
20844  fi
20845    if test "$tmp_compiler_works" = "yes"; then
20846
20847      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20848$as_echo "yes" >&6; }
20849      { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
20850$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
20851
20852  else
20853
20854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20855$as_echo "no" >&6; }
20856      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
20857$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
20858            CPPFLAGS="$tmp_save_CPPFLAGS"
20859      CFLAGS="$tmp_save_CFLAGS"
20860
20861  fi
20862
20863    #
20864  fi
20865
20866
20867        #
20868  if test "$compiler_id" != "unknown"; then
20869    #
20870    tmp_save_CFLAGS="$CFLAGS"
20871    tmp_save_CPPFLAGS="$CPPFLAGS"
20872    #
20873    tmp_options=""
20874    tmp_CFLAGS="$CFLAGS"
20875    tmp_CPPFLAGS="$CPPFLAGS"
20876    honor_optimize_option="yes"
20877    #
20878                        #
20879    if test "$want_optimize" = "assume_no" ||
20880       test "$want_optimize" = "assume_yes"; then
20881      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
20882$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
20883
20884
20885  ac_var_match_word="no"
20886  for word1 in $tmp_CFLAGS; do
20887    for word2 in $flags_opt_all; do
20888      if test "$word1" = "$word2"; then
20889        ac_var_match_word="yes"
20890      fi
20891    done
20892  done
20893
20894  if test "$ac_var_match_word" = "yes"; then
20895
20896        honor_optimize_option="no"
20897
20898
20899  fi
20900
20901
20902
20903  ac_var_match_word="no"
20904  for word1 in $tmp_CPPFLAGS; do
20905    for word2 in $flags_opt_all; do
20906      if test "$word1" = "$word2"; then
20907        ac_var_match_word="yes"
20908      fi
20909    done
20910  done
20911
20912  if test "$ac_var_match_word" = "yes"; then
20913
20914        honor_optimize_option="no"
20915
20916
20917  fi
20918
20919      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
20920$as_echo "$honor_optimize_option" >&6; }
20921      if test "$honor_optimize_option" = "yes"; then
20922        if test "$want_optimize" = "assume_yes"; then
20923          want_optimize="yes"
20924        fi
20925        if test "$want_optimize" = "assume_no"; then
20926          want_optimize="no"
20927        fi
20928      fi
20929    fi
20930    #
20931    if test "$honor_optimize_option" = "yes"; then
20932
20933    ac_var_stripped=""
20934  for word1 in $tmp_CFLAGS; do
20935    ac_var_strip_word="no"
20936    for word2 in $flags_opt_all; do
20937      if test "$word1" = "$word2"; then
20938        ac_var_strip_word="yes"
20939      fi
20940    done
20941    if test "$ac_var_strip_word" = "no"; then
20942      ac_var_stripped="$ac_var_stripped $word1"
20943    fi
20944  done
20945    tmp_CFLAGS="$ac_var_stripped"
20946  squeeze tmp_CFLAGS
20947
20948
20949    ac_var_stripped=""
20950  for word1 in $tmp_CPPFLAGS; do
20951    ac_var_strip_word="no"
20952    for word2 in $flags_opt_all; do
20953      if test "$word1" = "$word2"; then
20954        ac_var_strip_word="yes"
20955      fi
20956    done
20957    if test "$ac_var_strip_word" = "no"; then
20958      ac_var_stripped="$ac_var_stripped $word1"
20959    fi
20960  done
20961    tmp_CPPFLAGS="$ac_var_stripped"
20962  squeeze tmp_CPPFLAGS
20963
20964      if test "$want_optimize" = "yes"; then
20965        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
20966$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
20967        tmp_options="$flags_opt_yes"
20968      fi
20969      if test "$want_optimize" = "no"; then
20970        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
20971$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
20972        tmp_options="$flags_opt_off"
20973      fi
20974      if test "$flags_prefer_cppflags" = "yes"; then
20975        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20976        CFLAGS="$tmp_CFLAGS"
20977      else
20978        CPPFLAGS="$tmp_CPPFLAGS"
20979        CFLAGS="$tmp_CFLAGS $tmp_options"
20980      fi
20981      squeeze CPPFLAGS
20982      squeeze CFLAGS
20983
20984    tmp_compiler_works="unknown"
20985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986/* end confdefs.h.  */
20987
20988
20989
20990int main (void)
20991{
20992
20993      int i = 1;
20994      return i;
20995
20996 ;
20997 return 0;
20998}
20999
21000_ACEOF
21001if ac_fn_c_try_compile "$LINENO"; then :
21002
21003    tmp_compiler_works="yes"
21004
21005else
21006
21007    tmp_compiler_works="no"
21008    echo " " >&6
21009    sed 's/^/cc-fail: /' conftest.err >&6
21010    echo " " >&6
21011
21012fi
21013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014    if test "$tmp_compiler_works" = "yes"; then
21015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016/* end confdefs.h.  */
21017
21018
21019
21020int main (void)
21021{
21022
21023        int i = 1;
21024        return i;
21025
21026 ;
21027 return 0;
21028}
21029
21030_ACEOF
21031if ac_fn_c_try_link "$LINENO"; then :
21032
21033      tmp_compiler_works="yes"
21034
21035else
21036
21037      tmp_compiler_works="no"
21038      echo " " >&6
21039      sed 's/^/link-fail: /' conftest.err >&6
21040      echo " " >&6
21041
21042fi
21043rm -f core conftest.err conftest.$ac_objext \
21044    conftest$ac_exeext conftest.$ac_ext
21045  fi
21046    if test "x$cross_compiling" != "xyes" &&
21047    test "$tmp_compiler_works" = "yes"; then
21048    if test "$cross_compiling" = yes; then :
21049  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21051as_fn_error $? "cannot run test program while cross compiling
21052See \`config.log' for more details" "$LINENO" 5; }
21053else
21054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21055/* end confdefs.h.  */
21056
21057
21058#       ifdef __STDC__
21059#         include <stdlib.h>
21060#       endif
21061
21062int main (void)
21063{
21064
21065        int i = 0;
21066        exit(i);
21067
21068 ;
21069 return 0;
21070}
21071
21072_ACEOF
21073if ac_fn_c_try_run "$LINENO"; then :
21074
21075      tmp_compiler_works="yes"
21076
21077else
21078
21079      tmp_compiler_works="no"
21080      echo " " >&6
21081      echo "run-fail: test program exited with status $ac_status" >&6
21082      echo " " >&6
21083
21084fi
21085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21086  conftest.$ac_objext conftest.beam conftest.$ac_ext
21087fi
21088
21089  fi
21090    if test "$tmp_compiler_works" = "yes"; then
21091
21092        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093$as_echo "yes" >&6; }
21094        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
21095$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
21096
21097  else
21098
21099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21100$as_echo "no" >&6; }
21101        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
21102$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
21103                CPPFLAGS="$tmp_save_CPPFLAGS"
21104        CFLAGS="$tmp_save_CFLAGS"
21105
21106  fi
21107
21108    fi
21109    #
21110  fi
21111
21112
21113        #
21114  if test "$compiler_id" != "unknown"; then
21115    #
21116    tmp_save_CPPFLAGS="$CPPFLAGS"
21117    tmp_save_CFLAGS="$CFLAGS"
21118    tmp_CPPFLAGS=""
21119    tmp_CFLAGS=""
21120    #
21121    case "$compiler_id" in
21122        #
21123      CLANG)
21124        #
21125        if test "$want_warnings" = "yes"; then
21126          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21127          tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21128          tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21129          tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
21130          tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21131          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21132          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21133          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21134          tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21135          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21136          tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21137          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21138          tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21139          tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21140          tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21141          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21142          tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
21143          #
21144                    if test "$compiler_num" -ge "101"; then
21145            tmp_CFLAGS="$tmp_CFLAGS -Wunused"
21146          fi
21147        fi
21148        ;;
21149        #
21150      DEC_C)
21151        #
21152        if test "$want_warnings" = "yes"; then
21153                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
21154        fi
21155        ;;
21156        #
21157      GNU_C)
21158        #
21159        if test "$want_warnings" = "yes"; then
21160          #
21161                              if test "x$cross_compiling" != "xyes" ||
21162            test "$compiler_num" -ge "300"; then
21163            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21164          fi
21165          #
21166                    tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
21167          #
21168                    if test "$compiler_num" -ge "104"; then
21169            tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21170                        if test "x$cross_compiling" != "xyes" ||
21171              test "$compiler_num" -ge "300"; then
21172              tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
21173            fi
21174          fi
21175          #
21176                    if test "$compiler_num" -ge "207"; then
21177            tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21178                        if test "x$cross_compiling" != "xyes" ||
21179              test "$compiler_num" -ge "300"; then
21180              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21181              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21182            fi
21183          fi
21184          #
21185                    if test "$compiler_num" -ge "295"; then
21186            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21187          fi
21188          #
21189                    if test "$compiler_num" -ge "296"; then
21190            tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21191            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21192                                                tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21193          fi
21194          #
21195                    if test "$compiler_num" -ge "297"; then
21196            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21197          fi
21198          #
21199                    if test "$compiler_num" -ge "300"; then
21200                                                            tmp_CFLAGS="$tmp_CFLAGS"
21201          fi
21202          #
21203                    if test "$compiler_num" -ge "303"; then
21204            tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21205          fi
21206          #
21207                    if test "$compiler_num" -ge "304"; then
21208            tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21209          fi
21210          #
21211                    if test "$compiler_num" -ge "400"; then
21212            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
21213          fi
21214          #
21215                    if test "$compiler_num" -ge "402"; then
21216            tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21217          fi
21218          #
21219                    if test "$compiler_num" -ge "403"; then
21220            tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
21221            tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
21222            tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
21223            tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
21224          fi
21225          #
21226                    if test "$compiler_num" -ge "405"; then
21227                        if test "$curl_cv_have_def__WIN32" = "yes"; then
21228              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
21229            fi
21230          fi
21231          #
21232        fi
21233        #
21234                if test "$compiler_num" -ge "300"; then
21235          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21236        else
21237                              if test "x$cross_compiling" = "xyes"; then
21238            if test "$compiler_num" -ge "104"; then
21239                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
21240            fi
21241            if test "$compiler_num" -ge "207"; then
21242                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
21243              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
21244            fi
21245          fi
21246        fi
21247        ;;
21248        #
21249      HP_UX_C)
21250        #
21251        if test "$want_warnings" = "yes"; then
21252                    tmp_CFLAGS="$tmp_CFLAGS +w1"
21253        fi
21254        ;;
21255        #
21256      IBM_C)
21257        #
21258                tmp_CFLAGS="$tmp_CFLAGS"
21259        ;;
21260        #
21261      INTEL_UNIX_C)
21262        #
21263        if test "$want_warnings" = "yes"; then
21264          if test "$compiler_num" -gt "600"; then
21265                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
21266                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
21267                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
21268                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
21269                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
21270                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
21271                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
21272                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
21273                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
21274                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
21275                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
21276          fi
21277        fi
21278                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
21279                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
21280                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
21281                if test "$compiler_num" -ge "1000"; then
21282                    tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
21283        fi
21284        ;;
21285        #
21286      INTEL_WINDOWS_C)
21287        #
21288                tmp_CFLAGS="$tmp_CFLAGS"
21289        ;;
21290        #
21291      LCC)
21292        #
21293        if test "$want_warnings" = "yes"; then
21294                                                  tmp_CFLAGS="$tmp_CFLAGS"
21295        fi
21296        ;;
21297        #
21298      SGI_MIPS_C)
21299        #
21300        if test "$want_warnings" = "yes"; then
21301                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21302        fi
21303        ;;
21304        #
21305      SGI_MIPSPRO_C)
21306        #
21307        if test "$want_warnings" = "yes"; then
21308                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21309                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
21310        fi
21311        ;;
21312        #
21313      SUNPRO_C)
21314        #
21315        if test "$want_warnings" = "yes"; then
21316                    tmp_CFLAGS="$tmp_CFLAGS -v"
21317        fi
21318        ;;
21319        #
21320      TINY_C)
21321        #
21322        if test "$want_warnings" = "yes"; then
21323                    tmp_CFLAGS="$tmp_CFLAGS -Wall"
21324                    tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
21325                    tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
21326        fi
21327        ;;
21328        #
21329      WATCOM_UNIX_C)
21330        #
21331        if test "$want_warnings" = "yes"; then
21332                    tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21333        fi
21334        ;;
21335        #
21336      WATCOM_WINDOWS_C)
21337        #
21338                tmp_CFLAGS="$tmp_CFLAGS"
21339        ;;
21340        #
21341    esac
21342    #
21343    squeeze tmp_CPPFLAGS
21344    squeeze tmp_CFLAGS
21345    #
21346    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21347      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21348$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
21349      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21350      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21351      squeeze CPPFLAGS
21352      squeeze CFLAGS
21353
21354    tmp_compiler_works="unknown"
21355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356/* end confdefs.h.  */
21357
21358
21359
21360int main (void)
21361{
21362
21363      int i = 1;
21364      return i;
21365
21366 ;
21367 return 0;
21368}
21369
21370_ACEOF
21371if ac_fn_c_try_compile "$LINENO"; then :
21372
21373    tmp_compiler_works="yes"
21374
21375else
21376
21377    tmp_compiler_works="no"
21378    echo " " >&6
21379    sed 's/^/cc-fail: /' conftest.err >&6
21380    echo " " >&6
21381
21382fi
21383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384    if test "$tmp_compiler_works" = "yes"; then
21385    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386/* end confdefs.h.  */
21387
21388
21389
21390int main (void)
21391{
21392
21393        int i = 1;
21394        return i;
21395
21396 ;
21397 return 0;
21398}
21399
21400_ACEOF
21401if ac_fn_c_try_link "$LINENO"; then :
21402
21403      tmp_compiler_works="yes"
21404
21405else
21406
21407      tmp_compiler_works="no"
21408      echo " " >&6
21409      sed 's/^/link-fail: /' conftest.err >&6
21410      echo " " >&6
21411
21412fi
21413rm -f core conftest.err conftest.$ac_objext \
21414    conftest$ac_exeext conftest.$ac_ext
21415  fi
21416    if test "x$cross_compiling" != "xyes" &&
21417    test "$tmp_compiler_works" = "yes"; then
21418    if test "$cross_compiling" = yes; then :
21419  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21421as_fn_error $? "cannot run test program while cross compiling
21422See \`config.log' for more details" "$LINENO" 5; }
21423else
21424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425/* end confdefs.h.  */
21426
21427
21428#       ifdef __STDC__
21429#         include <stdlib.h>
21430#       endif
21431
21432int main (void)
21433{
21434
21435        int i = 0;
21436        exit(i);
21437
21438 ;
21439 return 0;
21440}
21441
21442_ACEOF
21443if ac_fn_c_try_run "$LINENO"; then :
21444
21445      tmp_compiler_works="yes"
21446
21447else
21448
21449      tmp_compiler_works="no"
21450      echo " " >&6
21451      echo "run-fail: test program exited with status $ac_status" >&6
21452      echo " " >&6
21453
21454fi
21455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21456  conftest.$ac_objext conftest.beam conftest.$ac_ext
21457fi
21458
21459  fi
21460    if test "$tmp_compiler_works" = "yes"; then
21461
21462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21463$as_echo "yes" >&6; }
21464        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21465$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21466
21467  else
21468
21469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470$as_echo "no" >&6; }
21471        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21472$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21473                CPPFLAGS="$tmp_save_CPPFLAGS"
21474        CFLAGS="$tmp_save_CFLAGS"
21475
21476  fi
21477
21478    fi
21479    #
21480  fi
21481
21482
21483if test "$compiler_id" = "INTEL_UNIX_C"; then
21484  #
21485  if test "$compiler_num" -ge "1000"; then
21486        CFLAGS="$CFLAGS -shared-intel"
21487  elif test "$compiler_num" -ge "900"; then
21488        CFLAGS="$CFLAGS -i-dynamic"
21489  fi
21490  #
21491fi
21492
21493
21494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21495$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
21496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497/* end confdefs.h.  */
21498
21499
21500
21501int main (void)
21502{
21503
21504      force compilation error
21505
21506 ;
21507 return 0;
21508}
21509
21510_ACEOF
21511if ac_fn_c_try_compile "$LINENO"; then :
21512
21513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21514$as_echo "no" >&6; }
21515    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21516
21517else
21518
21519    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21520$as_echo "yes" >&6; }
21521
21522fi
21523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524
21525
21526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21527$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
21528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21529/* end confdefs.h.  */
21530
21531
21532      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21533
21534int main (void)
21535{
21536
21537      bad_t dummy;
21538
21539 ;
21540 return 0;
21541}
21542
21543_ACEOF
21544if ac_fn_c_try_compile "$LINENO"; then :
21545
21546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21547$as_echo "no" >&6; }
21548    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21549
21550else
21551
21552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21553$as_echo "yes" >&6; }
21554
21555fi
21556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557
21558
21559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21560$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
21561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562/* end confdefs.h.  */
21563
21564
21565#     include <stdlib.h>
21566      int rand(int n);
21567      int rand(int n)
21568      {
21569        if(n)
21570          return ++n;
21571        else
21572          return n;
21573      }
21574
21575int main (void)
21576{
21577
21578      int i[2];
21579      int j = rand(i[0]);
21580      if(j)
21581        return j;
21582
21583 ;
21584 return 0;
21585}
21586
21587_ACEOF
21588if ac_fn_c_try_compile "$LINENO"; then :
21589
21590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591$as_echo "no" >&6; }
21592    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21593
21594else
21595
21596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597$as_echo "yes" >&6; }
21598
21599fi
21600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601
21602
21603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21604$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
21605  supports_symbol_hiding="no"
21606  symbol_hiding_CFLAGS=""
21607  symbol_hiding_EXTERN=""
21608  tmp_CFLAGS=""
21609  tmp_EXTERN=""
21610  case "$compiler_id" in
21611    CLANG)
21612            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21613      tmp_CFLAGS="-fvisibility=hidden"
21614      supports_symbol_hiding="yes"
21615      ;;
21616    GNU_C)
21617            if test "$compiler_num" -ge "304"; then
21618        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21619          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21620          tmp_CFLAGS="-fvisibility=hidden"
21621          supports_symbol_hiding="yes"
21622        fi
21623      fi
21624      ;;
21625    INTEL_UNIX_C)
21626            if test "$compiler_num" -ge "900"; then
21627        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21628          tmp_save_CFLAGS="$CFLAGS"
21629          CFLAGS="$CFLAGS -fvisibility=hidden"
21630          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631/* end confdefs.h.  */
21632
21633
21634#             include <stdio.h>
21635
21636int main (void)
21637{
21638
21639              printf("icc fvisibility bug test");
21640
21641 ;
21642 return 0;
21643}
21644
21645_ACEOF
21646if ac_fn_c_try_link "$LINENO"; then :
21647
21648            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21649            tmp_CFLAGS="-fvisibility=hidden"
21650            supports_symbol_hiding="yes"
21651
21652fi
21653rm -f core conftest.err conftest.$ac_objext \
21654    conftest$ac_exeext conftest.$ac_ext
21655          CFLAGS="$tmp_save_CFLAGS"
21656        fi
21657      fi
21658      ;;
21659    SUNPRO_C)
21660      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21661        tmp_EXTERN="__global"
21662        tmp_CFLAGS="-xldscope=hidden"
21663        supports_symbol_hiding="yes"
21664      fi
21665      ;;
21666  esac
21667  if test "$supports_symbol_hiding" = "yes"; then
21668    tmp_save_CFLAGS="$CFLAGS"
21669    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21670    squeeze CFLAGS
21671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21672/* end confdefs.h.  */
21673
21674
21675        $tmp_EXTERN char *dummy(char *buff);
21676        char *dummy(char *buff)
21677        {
21678         if(buff)
21679           return ++buff;
21680         else
21681           return buff;
21682        }
21683
21684int main (void)
21685{
21686
21687        char b[16];
21688        char *r = dummy(&b[0]);
21689        if(r)
21690          return (int)*r;
21691
21692 ;
21693 return 0;
21694}
21695
21696_ACEOF
21697if ac_fn_c_try_compile "$LINENO"; then :
21698
21699      supports_symbol_hiding="yes"
21700      if test -f conftest.err; then
21701        grep 'visibility' conftest.err >/dev/null
21702        if test "$?" -eq "0"; then
21703          supports_symbol_hiding="no"
21704        fi
21705      fi
21706
21707else
21708
21709      supports_symbol_hiding="no"
21710      echo " " >&6
21711      sed 's/^/cc-src: /' conftest.$ac_ext >&6
21712      sed 's/^/cc-err: /' conftest.err >&6
21713      echo " " >&6
21714
21715fi
21716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717    CFLAGS="$tmp_save_CFLAGS"
21718  fi
21719  if test "$supports_symbol_hiding" = "yes"; then
21720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21721$as_echo "yes" >&6; }
21722    symbol_hiding_CFLAGS="$tmp_CFLAGS"
21723    symbol_hiding_EXTERN="$tmp_EXTERN"
21724  else
21725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726$as_echo "no" >&6; }
21727  fi
21728
21729
21730
21731      cares_builddir=`pwd`
21732  supports_curldebug="unknown"
21733  if test "$want_curldebug" = "yes"; then
21734    if test "x$enable_shared" != "xno" &&
21735      test "x$enable_shared" != "xyes"; then
21736      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21737$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
21738      supports_curldebug="no"
21739    fi
21740    if test "x$enable_static" != "xno" &&
21741      test "x$enable_static" != "xyes"; then
21742      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21743$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
21744      supports_curldebug="no"
21745    fi
21746    if test "$supports_curldebug" != "no"; then
21747      if test "$enable_shared" = "yes" &&
21748        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21749        supports_curldebug="no"
21750        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21751$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21752      fi
21753      if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
21754        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
21755$as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
21756        supports_curldebug="no"
21757      elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
21758        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
21759$as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
21760        supports_curldebug="no"
21761      elif test ! -f "$cares_builddir/../libcurl.pc" ||
21762        test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
21763        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
21764$as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
21765        supports_curldebug="no"
21766      elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
21767        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
21768$as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
21769        supports_curldebug="no"
21770      elif test ! -f "$cares_builddir/../config.status"; then
21771        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
21772$as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
21773        supports_curldebug="no"
21774      fi
21775      if test "$supports_curldebug" != "no"; then
21776        grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
21777        if test "$?" -ne "0"; then
21778          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
21779$as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
21780          supports_curldebug="no"
21781        fi
21782      fi
21783      if test "$supports_curldebug" != "no"; then
21784        grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
21785        if test "$?" -ne "0"; then
21786          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
21787$as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
21788          supports_curldebug="no"
21789        fi
21790      fi
21791    fi
21792  fi
21793  #
21794  if test "$want_curldebug" = "yes"; then
21795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21796$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
21797    test "$supports_curldebug" = "no" || supports_curldebug="yes"
21798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21799$as_echo "$supports_curldebug" >&6; }
21800    if test "$supports_curldebug" = "no"; then
21801      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21802$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21803      want_curldebug="no"
21804    fi
21805  fi
21806  #
21807  if test "$want_curldebug" = "yes"; then
21808
21809$as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
21810
21811    CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
21812    squeeze CPPFLAGS
21813  fi
21814  #
21815  if test "$want_debug" = "yes"; then
21816    CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
21817    squeeze CPPFLAGS
21818  fi
21819
21820 if test x$want_curldebug = xyes; then
21821  CURLDEBUG_TRUE=
21822  CURLDEBUG_FALSE='#'
21823else
21824  CURLDEBUG_TRUE='#'
21825  CURLDEBUG_FALSE=
21826fi
21827
21828
21829
21830
21831
21832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21833$as_echo_n "checking for windows.h... " >&6; }
21834if ${ac_cv_header_windows_h+:} false; then :
21835  $as_echo_n "(cached) " >&6
21836else
21837
21838    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839/* end confdefs.h.  */
21840
21841
21842#undef inline
21843#ifndef WIN32_LEAN_AND_MEAN
21844#define WIN32_LEAN_AND_MEAN
21845#endif
21846#include <windows.h>
21847
21848int main (void)
21849{
21850
21851#if defined(__CYGWIN__) || defined(__CEGCC__)
21852        HAVE_WINDOWS_H shall not be defined.
21853#else
21854        int dummy=2*WINVER;
21855#endif
21856
21857 ;
21858 return 0;
21859}
21860
21861_ACEOF
21862if ac_fn_c_try_compile "$LINENO"; then :
21863
21864      ac_cv_header_windows_h="yes"
21865
21866else
21867
21868      ac_cv_header_windows_h="no"
21869
21870fi
21871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872
21873fi
21874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
21875$as_echo "$ac_cv_header_windows_h" >&6; }
21876  case "$ac_cv_header_windows_h" in
21877    yes)
21878
21879cat >>confdefs.h <<_ACEOF
21880#define HAVE_WINDOWS_H 1
21881_ACEOF
21882
21883
21884cat >>confdefs.h <<_ACEOF
21885#define WIN32_LEAN_AND_MEAN 1
21886_ACEOF
21887
21888      ;;
21889  esac
21890
21891
21892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21893$as_echo_n "checking whether build target is a native Windows one... " >&6; }
21894if ${ac_cv_native_windows+:} false; then :
21895  $as_echo_n "(cached) " >&6
21896else
21897
21898    if test "$ac_cv_header_windows_h" = "no"; then
21899      ac_cv_native_windows="no"
21900    else
21901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902/* end confdefs.h.  */
21903
21904
21905
21906int main (void)
21907{
21908
21909#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21910   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21911          int dummy=1;
21912#else
21913          Not a native Windows build target.
21914#endif
21915
21916 ;
21917 return 0;
21918}
21919
21920_ACEOF
21921if ac_fn_c_try_compile "$LINENO"; then :
21922
21923        ac_cv_native_windows="yes"
21924
21925else
21926
21927        ac_cv_native_windows="no"
21928
21929fi
21930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931    fi
21932
21933fi
21934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
21935$as_echo "$ac_cv_native_windows" >&6; }
21936   if test "x$ac_cv_native_windows" = xyes; then
21937  DOING_NATIVE_WINDOWS_TRUE=
21938  DOING_NATIVE_WINDOWS_FALSE='#'
21939else
21940  DOING_NATIVE_WINDOWS_TRUE='#'
21941  DOING_NATIVE_WINDOWS_FALSE=
21942fi
21943
21944
21945case X-"$ac_cv_native_windows" in
21946  X-yes)
21947
21948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21949$as_echo_n "checking for winsock.h... " >&6; }
21950if ${ac_cv_header_winsock_h+:} false; then :
21951  $as_echo_n "(cached) " >&6
21952else
21953
21954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955/* end confdefs.h.  */
21956
21957
21958#undef inline
21959#ifndef WIN32_LEAN_AND_MEAN
21960#define WIN32_LEAN_AND_MEAN
21961#endif
21962#include <windows.h>
21963#include <winsock.h>
21964
21965int main (void)
21966{
21967
21968#if defined(__CYGWIN__) || defined(__CEGCC__)
21969        HAVE_WINSOCK_H shall not be defined.
21970#else
21971        int dummy=WSACleanup();
21972#endif
21973
21974 ;
21975 return 0;
21976}
21977
21978_ACEOF
21979if ac_fn_c_try_compile "$LINENO"; then :
21980
21981      ac_cv_header_winsock_h="yes"
21982
21983else
21984
21985      ac_cv_header_winsock_h="no"
21986
21987fi
21988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989
21990fi
21991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
21992$as_echo "$ac_cv_header_winsock_h" >&6; }
21993  case "$ac_cv_header_winsock_h" in
21994    yes)
21995
21996cat >>confdefs.h <<_ACEOF
21997#define HAVE_WINSOCK_H 1
21998_ACEOF
21999
22000      ;;
22001  esac
22002
22003
22004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22005$as_echo_n "checking for winsock2.h... " >&6; }
22006if ${ac_cv_header_winsock2_h+:} false; then :
22007  $as_echo_n "(cached) " >&6
22008else
22009
22010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22011/* end confdefs.h.  */
22012
22013
22014#undef inline
22015#ifndef WIN32_LEAN_AND_MEAN
22016#define WIN32_LEAN_AND_MEAN
22017#endif
22018#include <windows.h>
22019#include <winsock2.h>
22020
22021int main (void)
22022{
22023
22024#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22025        HAVE_WINSOCK2_H shall not be defined.
22026#else
22027        int dummy=2*IPPROTO_ESP;
22028#endif
22029
22030 ;
22031 return 0;
22032}
22033
22034_ACEOF
22035if ac_fn_c_try_compile "$LINENO"; then :
22036
22037      ac_cv_header_winsock2_h="yes"
22038
22039else
22040
22041      ac_cv_header_winsock2_h="no"
22042
22043fi
22044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045
22046fi
22047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22048$as_echo "$ac_cv_header_winsock2_h" >&6; }
22049  case "$ac_cv_header_winsock2_h" in
22050    yes)
22051
22052cat >>confdefs.h <<_ACEOF
22053#define HAVE_WINSOCK2_H 1
22054_ACEOF
22055
22056      ;;
22057  esac
22058
22059
22060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
22061$as_echo_n "checking for ws2tcpip.h... " >&6; }
22062if ${ac_cv_header_ws2tcpip_h+:} false; then :
22063  $as_echo_n "(cached) " >&6
22064else
22065
22066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067/* end confdefs.h.  */
22068
22069
22070#undef inline
22071#ifndef WIN32_LEAN_AND_MEAN
22072#define WIN32_LEAN_AND_MEAN
22073#endif
22074#include <windows.h>
22075#include <winsock2.h>
22076#include <ws2tcpip.h>
22077
22078int main (void)
22079{
22080
22081#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22082        HAVE_WS2TCPIP_H shall not be defined.
22083#else
22084        int dummy=2*IP_PKTINFO;
22085#endif
22086
22087 ;
22088 return 0;
22089}
22090
22091_ACEOF
22092if ac_fn_c_try_compile "$LINENO"; then :
22093
22094      ac_cv_header_ws2tcpip_h="yes"
22095
22096else
22097
22098      ac_cv_header_ws2tcpip_h="no"
22099
22100fi
22101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102
22103fi
22104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
22105$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
22106  case "$ac_cv_header_ws2tcpip_h" in
22107    yes)
22108
22109cat >>confdefs.h <<_ACEOF
22110#define HAVE_WS2TCPIP_H 1
22111_ACEOF
22112
22113      ;;
22114  esac
22115
22116    CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
22117    ;;
22118  *)
22119    ac_cv_header_winsock_h="no"
22120    ac_cv_header_winsock2_h="no"
22121    ac_cv_header_ws2tcpip_h="no"
22122    ;;
22123esac
22124
22125
22126
22127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22128$as_echo_n "checking if X/Open network library is required... " >&6; }
22129  tst_lib_xnet_required="no"
22130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131/* end confdefs.h.  */
22132
22133
22134int main (void)
22135{
22136#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22137  return 0;
22138#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22139  return 0;
22140#else
22141  force compilation error
22142#endif
22143}
22144
22145
22146_ACEOF
22147if ac_fn_c_try_compile "$LINENO"; then :
22148
22149    tst_lib_xnet_required="yes"
22150    LIBS="$LIBS -lxnet"
22151
22152fi
22153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22155$as_echo "$tst_lib_xnet_required" >&6; }
22156
22157
22158ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22159if test "x$ac_cv_func_gethostbyname" = xyes; then :
22160  HAVE_GETHOSTBYNAME="1"
22161
22162else
22163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22164$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22165if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22166  $as_echo_n "(cached) " >&6
22167else
22168  ac_check_lib_save_LIBS=$LIBS
22169LIBS="-lnsl  $LIBS"
22170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171/* end confdefs.h.  */
22172
22173
22174#ifdef __cplusplus
22175extern "C"
22176#endif
22177char gethostbyname ();
22178int main (void)
22179{
22180return gethostbyname ();
22181 ;
22182 return 0;
22183}
22184_ACEOF
22185if ac_fn_c_try_link "$LINENO"; then :
22186  ac_cv_lib_nsl_gethostbyname=yes
22187else
22188  ac_cv_lib_nsl_gethostbyname=no
22189fi
22190rm -f core conftest.err conftest.$ac_objext \
22191    conftest$ac_exeext conftest.$ac_ext
22192LIBS=$ac_check_lib_save_LIBS
22193fi
22194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22195$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22196if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22197  HAVE_GETHOSTBYNAME="1"
22198                             LIBS="$LIBS -lnsl"
22199
22200fi
22201
22202
22203fi
22204
22205
22206if test "$HAVE_GETHOSTBYNAME" != "1"
22207then
22208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22209$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
22210if ${ac_cv_lib_socket_gethostbyname+:} false; then :
22211  $as_echo_n "(cached) " >&6
22212else
22213  ac_check_lib_save_LIBS=$LIBS
22214LIBS="-lsocket  $LIBS"
22215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216/* end confdefs.h.  */
22217
22218
22219#ifdef __cplusplus
22220extern "C"
22221#endif
22222char gethostbyname ();
22223int main (void)
22224{
22225return gethostbyname ();
22226 ;
22227 return 0;
22228}
22229_ACEOF
22230if ac_fn_c_try_link "$LINENO"; then :
22231  ac_cv_lib_socket_gethostbyname=yes
22232else
22233  ac_cv_lib_socket_gethostbyname=no
22234fi
22235rm -f core conftest.err conftest.$ac_objext \
22236    conftest$ac_exeext conftest.$ac_ext
22237LIBS=$ac_check_lib_save_LIBS
22238fi
22239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22240$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
22241if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
22242  HAVE_GETHOSTBYNAME="1"
22243               LIBS="$LIBS -lsocket"
22244
22245fi
22246
22247fi
22248
22249if test "$HAVE_GETHOSTBYNAME" != "1"
22250then
22251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22252$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
22253  my_ac_save_LIBS=$LIBS
22254  LIBS="-lnsl -lsocket $LIBS"
22255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256/* end confdefs.h.  */
22257
22258
22259
22260int main (void)
22261{
22262
22263      gethostbyname();
22264
22265 ;
22266 return 0;
22267}
22268
22269_ACEOF
22270if ac_fn_c_try_link "$LINENO"; then :
22271
22272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22273$as_echo "yes" >&6; }
22274    HAVE_GETHOSTBYNAME="1"
22275
22276else
22277
22278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22279$as_echo "no" >&6; }
22280    LIBS=$my_ac_save_LIBS
22281
22282fi
22283rm -f core conftest.err conftest.$ac_objext \
22284    conftest$ac_exeext conftest.$ac_ext
22285fi
22286
22287if test "$HAVE_GETHOSTBYNAME" != "1"
22288then
22289    if test "$ac_cv_header_windows_h" = "yes"; then
22290    if test "$ac_cv_header_winsock_h" = "yes"; then
22291      case $host in
22292        *-*-mingw32ce*)
22293          winsock_LIB="-lwinsock"
22294          ;;
22295        *)
22296          winsock_LIB="-lwsock32"
22297          ;;
22298      esac
22299    fi
22300    if test "$ac_cv_header_winsock2_h" = "yes"; then
22301      winsock_LIB="-lws2_32"
22302    fi
22303    if test ! -z "$winsock_LIB"; then
22304      my_ac_save_LIBS=$LIBS
22305      LIBS="$winsock_LIB $LIBS"
22306      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22307$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
22308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22309/* end confdefs.h.  */
22310
22311
22312#ifdef HAVE_WINDOWS_H
22313#ifndef WIN32_LEAN_AND_MEAN
22314#define WIN32_LEAN_AND_MEAN
22315#endif
22316#include <windows.h>
22317#ifdef HAVE_WINSOCK2_H
22318#include <winsock2.h>
22319#else
22320#ifdef HAVE_WINSOCK_H
22321#include <winsock.h>
22322#endif
22323#endif
22324#endif
22325
22326int main (void)
22327{
22328
22329          gethostbyname("www.dummysite.com");
22330
22331 ;
22332 return 0;
22333}
22334
22335_ACEOF
22336if ac_fn_c_try_link "$LINENO"; then :
22337
22338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22339$as_echo "yes" >&6; }
22340        HAVE_GETHOSTBYNAME="1"
22341
22342else
22343
22344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345$as_echo "no" >&6; }
22346        winsock_LIB=""
22347        LIBS=$my_ac_save_LIBS
22348
22349fi
22350rm -f core conftest.err conftest.$ac_objext \
22351    conftest$ac_exeext conftest.$ac_ext
22352    fi
22353  fi
22354fi
22355
22356if test "$HAVE_GETHOSTBYNAME" != "1"
22357then
22358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22359$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
22360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361/* end confdefs.h.  */
22362
22363
22364/* Older Minix versions may need <net/gen/netdb.h> here instead */
22365#include <netdb.h>
22366
22367int main (void)
22368{
22369
22370      gethostbyname("www.dummysite.com");
22371
22372 ;
22373 return 0;
22374}
22375
22376_ACEOF
22377if ac_fn_c_try_link "$LINENO"; then :
22378
22379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22380$as_echo "yes" >&6; }
22381    HAVE_GETHOSTBYNAME="1"
22382
22383else
22384
22385    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22386$as_echo "no" >&6; }
22387
22388fi
22389rm -f core conftest.err conftest.$ac_objext \
22390    conftest$ac_exeext conftest.$ac_ext
22391fi
22392
22393if test "$HAVE_GETHOSTBYNAME" != "1"
22394then
22395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22396$as_echo_n "checking for gethostbyname for eCos... " >&6; }
22397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398/* end confdefs.h.  */
22399
22400
22401#include <stdio.h>
22402#include <netdb.h>
22403
22404int main (void)
22405{
22406
22407      gethostbyname("www.dummysite.com");
22408
22409 ;
22410 return 0;
22411}
22412
22413_ACEOF
22414if ac_fn_c_try_link "$LINENO"; then :
22415
22416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22417$as_echo "yes" >&6; }
22418    HAVE_GETHOSTBYNAME="1"
22419
22420else
22421
22422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423$as_echo "no" >&6; }
22424
22425fi
22426rm -f core conftest.err conftest.$ac_objext \
22427    conftest$ac_exeext conftest.$ac_ext
22428fi
22429
22430if test "$HAVE_GETHOSTBYNAME" != "1"
22431then
22432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22433$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
22434if ${ac_cv_lib_net_gethostbyname+:} false; then :
22435  $as_echo_n "(cached) " >&6
22436else
22437  ac_check_lib_save_LIBS=$LIBS
22438LIBS="-lnet  $LIBS"
22439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440/* end confdefs.h.  */
22441
22442
22443#ifdef __cplusplus
22444extern "C"
22445#endif
22446char gethostbyname ();
22447int main (void)
22448{
22449return gethostbyname ();
22450 ;
22451 return 0;
22452}
22453_ACEOF
22454if ac_fn_c_try_link "$LINENO"; then :
22455  ac_cv_lib_net_gethostbyname=yes
22456else
22457  ac_cv_lib_net_gethostbyname=no
22458fi
22459rm -f core conftest.err conftest.$ac_objext \
22460    conftest$ac_exeext conftest.$ac_ext
22461LIBS=$ac_check_lib_save_LIBS
22462fi
22463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22464$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
22465if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
22466  HAVE_GETHOSTBYNAME="1"
22467               LIBS="$LIBS -lnet"
22468
22469fi
22470
22471fi
22472
22473
22474if test "$HAVE_GETHOSTBYNAME" != "1"; then
22475  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22476fi
22477
22478if test "x$host_vendor" = "xapple"; then :
22479
22480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
22481$as_echo_n "checking for library containing res_servicename... " >&6; }
22482if ${ac_cv_search_res_servicename+:} false; then :
22483  $as_echo_n "(cached) " >&6
22484else
22485  ac_func_search_save_LIBS=$LIBS
22486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487/* end confdefs.h.  */
22488
22489
22490#ifdef __cplusplus
22491extern "C"
22492#endif
22493char res_servicename ();
22494int main (void)
22495{
22496return res_servicename ();
22497 ;
22498 return 0;
22499}
22500_ACEOF
22501for ac_lib in '' resolv; do
22502  if test -z "$ac_lib"; then
22503    ac_res="none required"
22504  else
22505    ac_res=-l$ac_lib
22506    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22507  fi
22508  if ac_fn_c_try_link "$LINENO"; then :
22509  ac_cv_search_res_servicename=$ac_res
22510fi
22511rm -f core conftest.err conftest.$ac_objext \
22512    conftest$ac_exeext
22513  if ${ac_cv_search_res_servicename+:} false; then :
22514  break
22515fi
22516done
22517if ${ac_cv_search_res_servicename+:} false; then :
22518
22519else
22520  ac_cv_search_res_servicename=no
22521fi
22522rm conftest.$ac_ext
22523LIBS=$ac_func_search_save_LIBS
22524fi
22525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
22526$as_echo "$ac_cv_search_res_servicename" >&6; }
22527ac_res=$ac_cv_search_res_servicename
22528if test "$ac_res" != no; then :
22529  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530
22531
22532$as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
22533
22534
22535else
22536
22537    as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
22538
22539fi
22540
22541
22542fi
22543
22544ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22545if test "x$ac_cv_func_strcasecmp" = xyes; then :
22546
22547else
22548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22549$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22550if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22551  $as_echo_n "(cached) " >&6
22552else
22553  ac_check_lib_save_LIBS=$LIBS
22554LIBS="-lresolve  $LIBS"
22555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556/* end confdefs.h.  */
22557
22558
22559#ifdef __cplusplus
22560extern "C"
22561#endif
22562char strcasecmp ();
22563int main (void)
22564{
22565return strcasecmp ();
22566 ;
22567 return 0;
22568}
22569_ACEOF
22570if ac_fn_c_try_link "$LINENO"; then :
22571  ac_cv_lib_resolve_strcasecmp=yes
22572else
22573  ac_cv_lib_resolve_strcasecmp=no
22574fi
22575rm -f core conftest.err conftest.$ac_objext \
22576    conftest$ac_exeext conftest.$ac_ext
22577LIBS=$ac_check_lib_save_LIBS
22578fi
22579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22580$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22581if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22582  cat >>confdefs.h <<_ACEOF
22583#define HAVE_LIBRESOLVE 1
22584_ACEOF
22585
22586  LIBS="-lresolve $LIBS"
22587
22588fi
22589
22590fi
22591
22592
22593if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
22594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22595$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22596if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22597  $as_echo_n "(cached) " >&6
22598else
22599  ac_check_lib_save_LIBS=$LIBS
22600LIBS="-lresolve -lnsl $LIBS"
22601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22602/* end confdefs.h.  */
22603
22604
22605#ifdef __cplusplus
22606extern "C"
22607#endif
22608char strcasecmp ();
22609int main (void)
22610{
22611return strcasecmp ();
22612 ;
22613 return 0;
22614}
22615_ACEOF
22616if ac_fn_c_try_link "$LINENO"; then :
22617  ac_cv_lib_resolve_strcasecmp=yes
22618else
22619  ac_cv_lib_resolve_strcasecmp=no
22620fi
22621rm -f core conftest.err conftest.$ac_objext \
22622    conftest$ac_exeext conftest.$ac_ext
22623LIBS=$ac_check_lib_save_LIBS
22624fi
22625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22626$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22627if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22628  LIBS="-lresolve $LIBS"
22629fi
22630
22631fi
22632ac_cv_func_strcasecmp="no"
22633
22634
22635cares_includes_winsock2="\
22636/* includes start */
22637#ifdef HAVE_WINDOWS_H
22638#  ifndef WIN32_LEAN_AND_MEAN
22639#    define WIN32_LEAN_AND_MEAN
22640#  endif
22641#  include <windows.h>
22642#  ifdef HAVE_WINSOCK2_H
22643#    include <winsock2.h>
22644#  else
22645#    ifdef HAVE_WINSOCK_H
22646#      include <winsock.h>
22647#    endif
22648#  endif
22649#endif
22650/* includes end */"
22651
22652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22653$as_echo_n "checking for windows.h... " >&6; }
22654if ${ac_cv_header_windows_h+:} false; then :
22655  $as_echo_n "(cached) " >&6
22656else
22657
22658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659/* end confdefs.h.  */
22660
22661
22662#undef inline
22663#ifndef WIN32_LEAN_AND_MEAN
22664#define WIN32_LEAN_AND_MEAN
22665#endif
22666#include <windows.h>
22667
22668int main (void)
22669{
22670
22671#if defined(__CYGWIN__) || defined(__CEGCC__)
22672        HAVE_WINDOWS_H shall not be defined.
22673#else
22674        int dummy=2*WINVER;
22675#endif
22676
22677 ;
22678 return 0;
22679}
22680
22681_ACEOF
22682if ac_fn_c_try_compile "$LINENO"; then :
22683
22684      ac_cv_header_windows_h="yes"
22685
22686else
22687
22688      ac_cv_header_windows_h="no"
22689
22690fi
22691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692
22693fi
22694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22695$as_echo "$ac_cv_header_windows_h" >&6; }
22696  case "$ac_cv_header_windows_h" in
22697    yes)
22698
22699cat >>confdefs.h <<_ACEOF
22700#define HAVE_WINDOWS_H 1
22701_ACEOF
22702
22703
22704cat >>confdefs.h <<_ACEOF
22705#define WIN32_LEAN_AND_MEAN 1
22706_ACEOF
22707
22708      ;;
22709  esac
22710
22711
22712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
22713$as_echo_n "checking for winsock.h... " >&6; }
22714if ${ac_cv_header_winsock_h+:} false; then :
22715  $as_echo_n "(cached) " >&6
22716else
22717
22718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22719/* end confdefs.h.  */
22720
22721
22722#undef inline
22723#ifndef WIN32_LEAN_AND_MEAN
22724#define WIN32_LEAN_AND_MEAN
22725#endif
22726#include <windows.h>
22727#include <winsock.h>
22728
22729int main (void)
22730{
22731
22732#if defined(__CYGWIN__) || defined(__CEGCC__)
22733        HAVE_WINSOCK_H shall not be defined.
22734#else
22735        int dummy=WSACleanup();
22736#endif
22737
22738 ;
22739 return 0;
22740}
22741
22742_ACEOF
22743if ac_fn_c_try_compile "$LINENO"; then :
22744
22745      ac_cv_header_winsock_h="yes"
22746
22747else
22748
22749      ac_cv_header_winsock_h="no"
22750
22751fi
22752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753
22754fi
22755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
22756$as_echo "$ac_cv_header_winsock_h" >&6; }
22757  case "$ac_cv_header_winsock_h" in
22758    yes)
22759
22760cat >>confdefs.h <<_ACEOF
22761#define HAVE_WINSOCK_H 1
22762_ACEOF
22763
22764      ;;
22765  esac
22766
22767
22768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22769$as_echo_n "checking for winsock2.h... " >&6; }
22770if ${ac_cv_header_winsock2_h+:} false; then :
22771  $as_echo_n "(cached) " >&6
22772else
22773
22774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775/* end confdefs.h.  */
22776
22777
22778#undef inline
22779#ifndef WIN32_LEAN_AND_MEAN
22780#define WIN32_LEAN_AND_MEAN
22781#endif
22782#include <windows.h>
22783#include <winsock2.h>
22784
22785int main (void)
22786{
22787
22788#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22789        HAVE_WINSOCK2_H shall not be defined.
22790#else
22791        int dummy=2*IPPROTO_ESP;
22792#endif
22793
22794 ;
22795 return 0;
22796}
22797
22798_ACEOF
22799if ac_fn_c_try_compile "$LINENO"; then :
22800
22801      ac_cv_header_winsock2_h="yes"
22802
22803else
22804
22805      ac_cv_header_winsock2_h="no"
22806
22807fi
22808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809
22810fi
22811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22812$as_echo "$ac_cv_header_winsock2_h" >&6; }
22813  case "$ac_cv_header_winsock2_h" in
22814    yes)
22815
22816cat >>confdefs.h <<_ACEOF
22817#define HAVE_WINSOCK2_H 1
22818_ACEOF
22819
22820      ;;
22821  esac
22822
22823
22824
22825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22826$as_echo_n "checking for connect in libraries... " >&6; }
22827  tst_connect_save_LIBS="$LIBS"
22828  tst_connect_need_LIBS="unknown"
22829  for tst_lib in '' '-lsocket' ; do
22830    if test "$tst_connect_need_LIBS" = "unknown"; then
22831      LIBS="$tst_lib $tst_connect_save_LIBS"
22832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833/* end confdefs.h.  */
22834
22835
22836          $cares_includes_winsock2
22837          #ifndef HAVE_WINDOWS_H
22838            int connect(int, void*, int);
22839          #endif
22840
22841int main (void)
22842{
22843
22844          if(0 != connect(0, 0, 0))
22845            return 1;
22846
22847 ;
22848 return 0;
22849}
22850
22851_ACEOF
22852if ac_fn_c_try_link "$LINENO"; then :
22853
22854        tst_connect_need_LIBS="$tst_lib"
22855
22856fi
22857rm -f core conftest.err conftest.$ac_objext \
22858    conftest$ac_exeext conftest.$ac_ext
22859    fi
22860  done
22861  LIBS="$tst_connect_save_LIBS"
22862  #
22863  case X-"$tst_connect_need_LIBS" in
22864    X-unknown)
22865      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22866$as_echo "cannot find connect" >&6; }
22867      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22868      ;;
22869    X-)
22870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22871$as_echo "yes" >&6; }
22872      ;;
22873    *)
22874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22875$as_echo "$tst_connect_need_LIBS" >&6; }
22876      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22877      ;;
22878  esac
22879
22880
22881if test "x$host_vendor" = "xapple"; then :
22882
22883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
22884$as_echo_n "checking for iOS minimum version 10 or later... " >&6; }
22885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886/* end confdefs.h.  */
22887
22888
22889#include <stdio.h>
22890#include <TargetConditionals.h>
22891
22892int main (void)
22893{
22894
22895#if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
22896#error Not iOS 10 or later
22897#endif
22898return 0;
22899
22900 ;
22901 return 0;
22902}
22903
22904_ACEOF
22905if ac_fn_c_try_compile "$LINENO"; then :
22906
22907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22908$as_echo "yes" >&6; }
22909    ac_cv_ios_10="yes"
22910
22911else
22912
22913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22914$as_echo "no" >&6; }
22915
22916fi
22917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918
22919fi
22920
22921if test "x$host_vendor" = "xapple"; then :
22922
22923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
22924$as_echo_n "checking for macOS minimum version 10.12 or later... " >&6; }
22925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22926/* end confdefs.h.  */
22927
22928
22929#include <stdio.h>
22930#include <TargetConditionals.h>
22931
22932int main (void)
22933{
22934
22935#ifndef MAC_OS_X_VERSION_10_12
22936#  define MAC_OS_X_VERSION_10_12 101200
22937#endif
22938#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
22939#error Not macOS 10.12 or later
22940#endif
22941return 0;
22942
22943 ;
22944 return 0;
22945}
22946
22947_ACEOF
22948if ac_fn_c_try_compile "$LINENO"; then :
22949
22950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22951$as_echo "yes" >&6; }
22952    ac_cv_macos_10_12="yes"
22953
22954else
22955
22956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957$as_echo "no" >&6; }
22958
22959fi
22960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961
22962fi
22963
22964if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
22965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22966$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22967if ${ac_cv_header_time+:} false; then :
22968  $as_echo_n "(cached) " >&6
22969else
22970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971/* end confdefs.h.  */
22972#include <sys/types.h>
22973#include <sys/time.h>
22974#include <time.h>
22975
22976int main (void)
22977{
22978if ((struct tm *) 0)
22979return 0;
22980 ;
22981 return 0;
22982}
22983_ACEOF
22984if ac_fn_c_try_compile "$LINENO"; then :
22985  ac_cv_header_time=yes
22986else
22987  ac_cv_header_time=no
22988fi
22989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990fi
22991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22992$as_echo "$ac_cv_header_time" >&6; }
22993if test $ac_cv_header_time = yes; then
22994
22995$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22996
22997fi
22998
22999
23000    for ac_header in sys/types.h sys/time.h time.h
23001do :
23002  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23003ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23005  cat >>confdefs.h <<_ACEOF
23006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23007_ACEOF
23008
23009fi
23010
23011done
23012
23013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23014$as_echo_n "checking for monotonic clock_gettime... " >&6; }
23015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016/* end confdefs.h.  */
23017
23018
23019#ifdef HAVE_SYS_TYPES_H
23020#include <sys/types.h>
23021#endif
23022#ifdef HAVE_SYS_TIME_H
23023#include <sys/time.h>
23024#ifdef TIME_WITH_SYS_TIME
23025#include <time.h>
23026#endif
23027#else
23028#ifdef HAVE_TIME_H
23029#include <time.h>
23030#endif
23031#endif
23032
23033int main (void)
23034{
23035
23036      struct timespec ts;
23037      (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23038
23039 ;
23040 return 0;
23041}
23042
23043_ACEOF
23044if ac_fn_c_try_compile "$LINENO"; then :
23045
23046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23047$as_echo "yes" >&6; }
23048    ac_cv_func_clock_gettime="yes"
23049
23050else
23051
23052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053$as_echo "no" >&6; }
23054    ac_cv_func_clock_gettime="no"
23055
23056fi
23057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058
23059
23060    #
23061  if test "$ac_cv_func_clock_gettime" = "yes"; then
23062    #
23063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23064$as_echo_n "checking for clock_gettime in libraries... " >&6; }
23065    #
23066    curl_cv_save_LIBS="$LIBS"
23067    curl_cv_gclk_LIBS="unknown"
23068    #
23069    for x_xlibs in '' '-lrt' '-lposix4' ; do
23070      if test "$curl_cv_gclk_LIBS" = "unknown"; then
23071        if test -z "$x_xlibs"; then
23072          LIBS="$curl_cv_save_LIBS"
23073        else
23074          LIBS="$x_xlibs $curl_cv_save_LIBS"
23075        fi
23076        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077/* end confdefs.h.  */
23078
23079
23080#ifdef HAVE_SYS_TYPES_H
23081#include <sys/types.h>
23082#endif
23083#ifdef HAVE_SYS_TIME_H
23084#include <sys/time.h>
23085#ifdef TIME_WITH_SYS_TIME
23086#include <time.h>
23087#endif
23088#else
23089#ifdef HAVE_TIME_H
23090#include <time.h>
23091#endif
23092#endif
23093
23094int main (void)
23095{
23096
23097            struct timespec ts;
23098            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23099
23100 ;
23101 return 0;
23102}
23103
23104_ACEOF
23105if ac_fn_c_try_link "$LINENO"; then :
23106
23107          curl_cv_gclk_LIBS="$x_xlibs"
23108
23109fi
23110rm -f core conftest.err conftest.$ac_objext \
23111    conftest$ac_exeext conftest.$ac_ext
23112      fi
23113    done
23114    #
23115    LIBS="$curl_cv_save_LIBS"
23116    #
23117    case X-"$curl_cv_gclk_LIBS" in
23118      X-unknown)
23119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23120$as_echo "cannot find clock_gettime" >&6; }
23121        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23122$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23123        ac_cv_func_clock_gettime="no"
23124        ;;
23125      X-)
23126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23127$as_echo "no additional lib required" >&6; }
23128        ac_cv_func_clock_gettime="yes"
23129        ;;
23130      *)
23131        if test -z "$curl_cv_save_LIBS"; then
23132          LIBS="$curl_cv_gclk_LIBS"
23133        else
23134          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23135        fi
23136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23137$as_echo "$curl_cv_gclk_LIBS" >&6; }
23138        ac_cv_func_clock_gettime="yes"
23139        ;;
23140    esac
23141    #
23142        if test "x$cross_compiling" != "xyes" &&
23143      test "$ac_cv_func_clock_gettime" = "yes"; then
23144      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23145$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
23146      if test "$cross_compiling" = yes; then :
23147  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23149as_fn_error $? "cannot run test program while cross compiling
23150See \`config.log' for more details" "$LINENO" 5; }
23151else
23152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153/* end confdefs.h.  */
23154
23155
23156#ifdef HAVE_STDLIB_H
23157#include <stdlib.h>
23158#endif
23159#ifdef HAVE_SYS_TYPES_H
23160#include <sys/types.h>
23161#endif
23162#ifdef HAVE_SYS_TIME_H
23163#include <sys/time.h>
23164#ifdef TIME_WITH_SYS_TIME
23165#include <time.h>
23166#endif
23167#else
23168#ifdef HAVE_TIME_H
23169#include <time.h>
23170#endif
23171#endif
23172
23173int main (void)
23174{
23175
23176          struct timespec ts;
23177          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23178            exit(0);
23179          else
23180            exit(1);
23181
23182 ;
23183 return 0;
23184}
23185
23186_ACEOF
23187if ac_fn_c_try_run "$LINENO"; then :
23188
23189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23190$as_echo "yes" >&6; }
23191
23192else
23193
23194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23195$as_echo "no" >&6; }
23196        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23197$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23198        ac_cv_func_clock_gettime="no"
23199        LIBS="$curl_cv_save_LIBS"
23200
23201fi
23202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23203  conftest.$ac_objext conftest.beam conftest.$ac_ext
23204fi
23205
23206    fi
23207    #
23208    case "$ac_cv_func_clock_gettime" in
23209      yes)
23210
23211cat >>confdefs.h <<_ACEOF
23212#define HAVE_CLOCK_GETTIME_MONOTONIC 1
23213_ACEOF
23214
23215        ;;
23216    esac
23217    #
23218  fi
23219  #
23220
23221fi
23222
23223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
23224$as_echo_n "checking whether to use libgcc... " >&6; }
23225# Check whether --enable-libgcc was given.
23226if test "${enable_libgcc+set}" = set; then :
23227  enableval=$enable_libgcc;  case "$enableval" in
23228  yes)
23229        LIBS="$LIBS -lgcc"
23230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23231$as_echo "yes" >&6; }
23232       ;;
23233  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23234$as_echo "no" >&6; }
23235       ;;
23236  esac
23237else
23238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23239$as_echo "no" >&6; }
23240
23241fi
23242
23243
23244
23245
23246
23247
23248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23249$as_echo_n "checking for ANSI C header files... " >&6; }
23250if ${ac_cv_header_stdc+:} false; then :
23251  $as_echo_n "(cached) " >&6
23252else
23253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254/* end confdefs.h.  */
23255#include <stdlib.h>
23256#include <stdarg.h>
23257#include <string.h>
23258#include <float.h>
23259
23260int main (void)
23261{
23262
23263 ;
23264 return 0;
23265}
23266_ACEOF
23267if ac_fn_c_try_compile "$LINENO"; then :
23268  ac_cv_header_stdc=yes
23269else
23270  ac_cv_header_stdc=no
23271fi
23272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273
23274if test $ac_cv_header_stdc = yes; then
23275  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23277/* end confdefs.h.  */
23278#include <string.h>
23279
23280_ACEOF
23281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23282  $EGREP "memchr" >/dev/null 2>&1; then :
23283
23284else
23285  ac_cv_header_stdc=no
23286fi
23287rm -f conftest*
23288
23289fi
23290
23291if test $ac_cv_header_stdc = yes; then
23292  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23294/* end confdefs.h.  */
23295#include <stdlib.h>
23296
23297_ACEOF
23298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23299  $EGREP "free" >/dev/null 2>&1; then :
23300
23301else
23302  ac_cv_header_stdc=no
23303fi
23304rm -f conftest*
23305
23306fi
23307
23308if test $ac_cv_header_stdc = yes; then
23309  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23310  if test "$cross_compiling" = yes; then :
23311  :
23312else
23313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23314/* end confdefs.h.  */
23315#include <ctype.h>
23316#include <stdlib.h>
23317#if ((' ' & 0x0FF) == 0x020)
23318# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23319# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23320#else
23321# define ISLOWER(c) \
23322		   (('a' <= (c) && (c) <= 'i') \
23323		     || ('j' <= (c) && (c) <= 'r') \
23324		     || ('s' <= (c) && (c) <= 'z'))
23325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23326#endif
23327
23328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23329int
23330main ()
23331{
23332  int i;
23333  for (i = 0; i < 256; i++)
23334    if (XOR (islower (i), ISLOWER (i))
23335	|| toupper (i) != TOUPPER (i))
23336      return 2;
23337  return 0;
23338}
23339_ACEOF
23340if ac_fn_c_try_run "$LINENO"; then :
23341
23342else
23343  ac_cv_header_stdc=no
23344fi
23345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23346  conftest.$ac_objext conftest.beam conftest.$ac_ext
23347fi
23348
23349fi
23350fi
23351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23352$as_echo "$ac_cv_header_stdc" >&6; }
23353if test $ac_cv_header_stdc = yes; then
23354
23355$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23356
23357fi
23358
23359
23360
23361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
23362$as_echo_n "checking for malloc.h... " >&6; }
23363if ${ac_cv_header_malloc_h+:} false; then :
23364  $as_echo_n "(cached) " >&6
23365else
23366
23367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368/* end confdefs.h.  */
23369
23370
23371#include <malloc.h>
23372
23373int main (void)
23374{
23375
23376        void *p = malloc(10);
23377        void *q = calloc(10,10);
23378        free(p);
23379        free(q);
23380
23381 ;
23382 return 0;
23383}
23384
23385_ACEOF
23386if ac_fn_c_try_compile "$LINENO"; then :
23387
23388      ac_cv_header_malloc_h="yes"
23389
23390else
23391
23392      ac_cv_header_malloc_h="no"
23393
23394fi
23395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396
23397fi
23398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
23399$as_echo "$ac_cv_header_malloc_h" >&6; }
23400  if test "$ac_cv_header_malloc_h" = "yes"; then
23401
23402cat >>confdefs.h <<_ACEOF
23403#define HAVE_MALLOC_H 1
23404_ACEOF
23405
23406    #
23407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23408/* end confdefs.h.  */
23409
23410
23411#include <stdlib.h>
23412
23413int main (void)
23414{
23415
23416        void *p = malloc(10);
23417        void *q = calloc(10,10);
23418        free(p);
23419        free(q);
23420
23421 ;
23422 return 0;
23423}
23424
23425_ACEOF
23426if ac_fn_c_try_compile "$LINENO"; then :
23427
23428      curl_cv_need_header_malloc_h="no"
23429
23430else
23431
23432      curl_cv_need_header_malloc_h="yes"
23433
23434fi
23435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436    #
23437    case "$curl_cv_need_header_malloc_h" in
23438      yes)
23439
23440cat >>confdefs.h <<_ACEOF
23441#define NEED_MALLOC_H 1
23442_ACEOF
23443
23444        ;;
23445    esac
23446  fi
23447
23448
23449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
23450$as_echo_n "checking for memory.h... " >&6; }
23451if ${ac_cv_header_memory_h+:} false; then :
23452  $as_echo_n "(cached) " >&6
23453else
23454
23455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456/* end confdefs.h.  */
23457
23458
23459#include <memory.h>
23460
23461int main (void)
23462{
23463
23464        void *p = malloc(10);
23465        void *q = calloc(10,10);
23466        free(p);
23467        free(q);
23468
23469 ;
23470 return 0;
23471}
23472
23473_ACEOF
23474if ac_fn_c_try_compile "$LINENO"; then :
23475
23476      ac_cv_header_memory_h="yes"
23477
23478else
23479
23480      ac_cv_header_memory_h="no"
23481
23482fi
23483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484
23485fi
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
23487$as_echo "$ac_cv_header_memory_h" >&6; }
23488  if test "$ac_cv_header_memory_h" = "yes"; then
23489
23490cat >>confdefs.h <<_ACEOF
23491#define HAVE_MEMORY_H 1
23492_ACEOF
23493
23494    #
23495    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496/* end confdefs.h.  */
23497
23498
23499#include <stdlib.h>
23500
23501int main (void)
23502{
23503
23504        void *p = malloc(10);
23505        void *q = calloc(10,10);
23506        free(p);
23507        free(q);
23508
23509 ;
23510 return 0;
23511}
23512
23513_ACEOF
23514if ac_fn_c_try_compile "$LINENO"; then :
23515
23516      curl_cv_need_header_memory_h="no"
23517
23518else
23519
23520      curl_cv_need_header_memory_h="yes"
23521
23522fi
23523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524    #
23525    case "$curl_cv_need_header_memory_h" in
23526      yes)
23527
23528cat >>confdefs.h <<_ACEOF
23529#define NEED_MEMORY_H 1
23530_ACEOF
23531
23532        ;;
23533    esac
23534  fi
23535
23536
23537for ac_header in sys/types.h \
23538       sys/time.h \
23539       sys/select.h \
23540       sys/socket.h \
23541       sys/ioctl.h \
23542       sys/param.h \
23543       sys/uio.h \
23544       assert.h \
23545       netdb.h \
23546       netinet/in.h \
23547       netinet/tcp.h \
23548       net/if.h \
23549       errno.h \
23550       socket.h \
23551       strings.h \
23552       stdbool.h \
23553       time.h \
23554       limits.h \
23555       arpa/nameser.h \
23556       arpa/nameser_compat.h \
23557       arpa/inet.h
23558do :
23559  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23561#ifdef HAVE_SYS_TYPES_H
23562#include <sys/types.h>
23563#endif
23564#ifdef HAVE_SYS_TIME_H
23565#include <sys/time.h>
23566#endif
23567#ifdef HAVE_ARPA_NAMESER_H
23568#include <arpa/nameser.h>
23569#endif
23570
23571#ifdef HAVE_SYS_SOCKET_H
23572#include <sys/socket.h>
23573#endif
23574#ifdef HAVE_NETINET_IN_H
23575#include <netinet/in.h>
23576#endif
23577
23578
23579"
23580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23581  cat >>confdefs.h <<_ACEOF
23582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23583_ACEOF
23584
23585fi
23586
23587done
23588
23589
23590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23591$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23592if ${ac_cv_c_const+:} false; then :
23593  $as_echo_n "(cached) " >&6
23594else
23595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23596/* end confdefs.h.  */
23597
23598int main (void)
23599{
23600
23601#ifndef __cplusplus
23602  /* Ultrix mips cc rejects this sort of thing.  */
23603  typedef int charset[2];
23604  const charset cs = { 0, 0 };
23605  /* SunOS 4.1.1 cc rejects this.  */
23606  char const *const *pcpcc;
23607  char **ppc;
23608  /* NEC SVR4.0.2 mips cc rejects this.  */
23609  struct point {int x, y;};
23610  static struct point const zero = {0,0};
23611  /* AIX XL C 1.02.0.0 rejects this.
23612     It does not let you subtract one const X* pointer from another in
23613     an arm of an if-expression whose if-part is not a constant
23614     expression */
23615  const char *g = "string";
23616  pcpcc = &g + (g ? g-g : 0);
23617  /* HPUX 7.0 cc rejects these. */
23618  ++pcpcc;
23619  ppc = (char**) pcpcc;
23620  pcpcc = (char const *const *) ppc;
23621  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23622    char tx;
23623    char *t = &tx;
23624    char const *s = 0 ? (char *) 0 : (char const *) 0;
23625
23626    *t++ = 0;
23627    if (s) return 0;
23628  }
23629  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23630    int x[] = {25, 17};
23631    const int *foo = &x[0];
23632    ++foo;
23633  }
23634  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23635    typedef const int *iptr;
23636    iptr p = 0;
23637    ++p;
23638  }
23639  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23640       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23641    struct s { int j; const int *ap[3]; } bx;
23642    struct s *b = &bx; b->j = 5;
23643  }
23644  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23645    const int foo = 10;
23646    if (!foo) return 0;
23647  }
23648  return !cs[0] && !zero.x;
23649#endif
23650
23651 ;
23652 return 0;
23653}
23654_ACEOF
23655if ac_fn_c_try_compile "$LINENO"; then :
23656  ac_cv_c_const=yes
23657else
23658  ac_cv_c_const=no
23659fi
23660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661fi
23662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23663$as_echo "$ac_cv_c_const" >&6; }
23664if test $ac_cv_c_const = no; then
23665
23666$as_echo "#define const /**/" >>confdefs.h
23667
23668fi
23669
23670ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23671if test "x$ac_cv_type_size_t" = xyes; then :
23672
23673else
23674
23675cat >>confdefs.h <<_ACEOF
23676#define size_t unsigned int
23677_ACEOF
23678
23679fi
23680
23681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23682$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23683if ${ac_cv_header_time+:} false; then :
23684  $as_echo_n "(cached) " >&6
23685else
23686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23687/* end confdefs.h.  */
23688#include <sys/types.h>
23689#include <sys/time.h>
23690#include <time.h>
23691
23692int main (void)
23693{
23694if ((struct tm *) 0)
23695return 0;
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700if ac_fn_c_try_compile "$LINENO"; then :
23701  ac_cv_header_time=yes
23702else
23703  ac_cv_header_time=no
23704fi
23705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706fi
23707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23708$as_echo "$ac_cv_header_time" >&6; }
23709if test $ac_cv_header_time = yes; then
23710
23711$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23712
23713fi
23714
23715
23716        for ac_header in sys/types.h sys/time.h time.h sys/socket.h
23717do :
23718  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23719ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23721  cat >>confdefs.h <<_ACEOF
23722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23723_ACEOF
23724
23725fi
23726
23727done
23728
23729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23730$as_echo_n "checking for struct timeval... " >&6; }
23731if ${ac_cv_struct_timeval+:} false; then :
23732  $as_echo_n "(cached) " >&6
23733else
23734
23735    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736/* end confdefs.h.  */
23737
23738
23739#undef inline
23740#ifdef HAVE_WINDOWS_H
23741#ifndef WIN32_LEAN_AND_MEAN
23742#define WIN32_LEAN_AND_MEAN
23743#endif
23744#include <windows.h>
23745#ifdef HAVE_WINSOCK2_H
23746#include <winsock2.h>
23747#else
23748#ifdef HAVE_WINSOCK_H
23749#include <winsock.h>
23750#endif
23751#endif
23752#endif
23753#ifdef HAVE_SYS_TYPES_H
23754#include <sys/types.h>
23755#endif
23756#ifdef HAVE_SYS_TIME_H
23757#include <sys/time.h>
23758#ifdef TIME_WITH_SYS_TIME
23759#include <time.h>
23760#endif
23761#else
23762#ifdef HAVE_TIME_H
23763#include <time.h>
23764#endif
23765#endif
23766#ifdef HAVE_SYS_SOCKET_H
23767#include <sys/socket.h>
23768#endif
23769
23770int main (void)
23771{
23772
23773        struct timeval ts;
23774        ts.tv_sec  = 0;
23775        ts.tv_usec = 0;
23776
23777 ;
23778 return 0;
23779}
23780
23781_ACEOF
23782if ac_fn_c_try_compile "$LINENO"; then :
23783
23784      ac_cv_struct_timeval="yes"
23785
23786else
23787
23788      ac_cv_struct_timeval="no"
23789
23790fi
23791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792
23793fi
23794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
23795$as_echo "$ac_cv_struct_timeval" >&6; }
23796  case "$ac_cv_struct_timeval" in
23797    yes)
23798
23799cat >>confdefs.h <<_ACEOF
23800#define HAVE_STRUCT_TIMEVAL 1
23801_ACEOF
23802
23803      ;;
23804  esac
23805
23806
23807ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23808if test "x$ac_cv_type_long_long" = xyes; then :
23809
23810$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
23811
23812   longlong="yes"
23813
23814fi
23815
23816
23817if test "xyes" = "x$longlong"; then
23818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
23819$as_echo_n "checking if numberLL works... " >&6; }
23820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23821/* end confdefs.h.  */
23822
23823
23824
23825int main (void)
23826{
23827
23828      long long val = 1000LL;
23829
23830 ;
23831 return 0;
23832}
23833
23834_ACEOF
23835if ac_fn_c_try_compile "$LINENO"; then :
23836
23837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23838$as_echo "yes" >&6; }
23839
23840$as_echo "#define HAVE_LL 1" >>confdefs.h
23841
23842
23843else
23844
23845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23846$as_echo "no" >&6; }
23847
23848fi
23849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850fi
23851
23852
23853# check for ssize_t
23854ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23855if test "x$ac_cv_type_ssize_t" = xyes; then :
23856   CARES_TYPEOF_ARES_SSIZE_T=ssize_t
23857else
23858   CARES_TYPEOF_ARES_SSIZE_T=int
23859fi
23860
23861
23862
23863cat >>confdefs.h <<_ACEOF
23864#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}
23865_ACEOF
23866
23867
23868
23869# check for bool type
23870ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
23871#ifdef HAVE_SYS_TYPES_H
23872#include <sys/types.h>
23873#endif
23874#ifdef HAVE_STDBOOL_H
23875#include <stdbool.h>
23876#endif
23877
23878"
23879if test "x$ac_cv_type_bool" = xyes; then :
23880
23881
23882$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
23883
23884
23885fi
23886
23887
23888
23889cares_includes_ws2tcpip="\
23890/* includes start */
23891#ifdef HAVE_WINDOWS_H
23892#  ifndef WIN32_LEAN_AND_MEAN
23893#    define WIN32_LEAN_AND_MEAN
23894#  endif
23895#  include <windows.h>
23896#  ifdef HAVE_WINSOCK2_H
23897#    include <winsock2.h>
23898#    ifdef HAVE_WS2TCPIP_H
23899#       include <ws2tcpip.h>
23900#    endif
23901#  endif
23902#endif
23903/* includes end */"
23904
23905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23906$as_echo_n "checking for windows.h... " >&6; }
23907if ${ac_cv_header_windows_h+:} false; then :
23908  $as_echo_n "(cached) " >&6
23909else
23910
23911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912/* end confdefs.h.  */
23913
23914
23915#undef inline
23916#ifndef WIN32_LEAN_AND_MEAN
23917#define WIN32_LEAN_AND_MEAN
23918#endif
23919#include <windows.h>
23920
23921int main (void)
23922{
23923
23924#if defined(__CYGWIN__) || defined(__CEGCC__)
23925        HAVE_WINDOWS_H shall not be defined.
23926#else
23927        int dummy=2*WINVER;
23928#endif
23929
23930 ;
23931 return 0;
23932}
23933
23934_ACEOF
23935if ac_fn_c_try_compile "$LINENO"; then :
23936
23937      ac_cv_header_windows_h="yes"
23938
23939else
23940
23941      ac_cv_header_windows_h="no"
23942
23943fi
23944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945
23946fi
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23948$as_echo "$ac_cv_header_windows_h" >&6; }
23949  case "$ac_cv_header_windows_h" in
23950    yes)
23951
23952cat >>confdefs.h <<_ACEOF
23953#define HAVE_WINDOWS_H 1
23954_ACEOF
23955
23956
23957cat >>confdefs.h <<_ACEOF
23958#define WIN32_LEAN_AND_MEAN 1
23959_ACEOF
23960
23961      ;;
23962  esac
23963
23964
23965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23966$as_echo_n "checking for winsock2.h... " >&6; }
23967if ${ac_cv_header_winsock2_h+:} false; then :
23968  $as_echo_n "(cached) " >&6
23969else
23970
23971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972/* end confdefs.h.  */
23973
23974
23975#undef inline
23976#ifndef WIN32_LEAN_AND_MEAN
23977#define WIN32_LEAN_AND_MEAN
23978#endif
23979#include <windows.h>
23980#include <winsock2.h>
23981
23982int main (void)
23983{
23984
23985#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23986        HAVE_WINSOCK2_H shall not be defined.
23987#else
23988        int dummy=2*IPPROTO_ESP;
23989#endif
23990
23991 ;
23992 return 0;
23993}
23994
23995_ACEOF
23996if ac_fn_c_try_compile "$LINENO"; then :
23997
23998      ac_cv_header_winsock2_h="yes"
23999
24000else
24001
24002      ac_cv_header_winsock2_h="no"
24003
24004fi
24005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006
24007fi
24008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
24009$as_echo "$ac_cv_header_winsock2_h" >&6; }
24010  case "$ac_cv_header_winsock2_h" in
24011    yes)
24012
24013cat >>confdefs.h <<_ACEOF
24014#define HAVE_WINSOCK2_H 1
24015_ACEOF
24016
24017      ;;
24018  esac
24019
24020
24021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
24022$as_echo_n "checking for ws2tcpip.h... " >&6; }
24023if ${ac_cv_header_ws2tcpip_h+:} false; then :
24024  $as_echo_n "(cached) " >&6
24025else
24026
24027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028/* end confdefs.h.  */
24029
24030
24031#undef inline
24032#ifndef WIN32_LEAN_AND_MEAN
24033#define WIN32_LEAN_AND_MEAN
24034#endif
24035#include <windows.h>
24036#include <winsock2.h>
24037#include <ws2tcpip.h>
24038
24039int main (void)
24040{
24041
24042#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
24043        HAVE_WS2TCPIP_H shall not be defined.
24044#else
24045        int dummy=2*IP_PKTINFO;
24046#endif
24047
24048 ;
24049 return 0;
24050}
24051
24052_ACEOF
24053if ac_fn_c_try_compile "$LINENO"; then :
24054
24055      ac_cv_header_ws2tcpip_h="yes"
24056
24057else
24058
24059      ac_cv_header_ws2tcpip_h="no"
24060
24061fi
24062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063
24064fi
24065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
24066$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
24067  case "$ac_cv_header_ws2tcpip_h" in
24068    yes)
24069
24070cat >>confdefs.h <<_ACEOF
24071#define HAVE_WS2TCPIP_H 1
24072_ACEOF
24073
24074      ;;
24075  esac
24076
24077
24078
24079cares_includes_sys_socket="\
24080/* includes start */
24081#ifdef HAVE_SYS_TYPES_H
24082#  include <sys/types.h>
24083#endif
24084#ifdef HAVE_SYS_SOCKET_H
24085#  include <sys/socket.h>
24086#endif
24087/* includes end */"
24088  for ac_header in sys/types.h sys/socket.h
24089do :
24090  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24091ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
24092"
24093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24094  cat >>confdefs.h <<_ACEOF
24095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24096_ACEOF
24097
24098fi
24099
24100done
24101
24102
24103
24104cares_preprocess_callconv="\
24105/* preprocess start */
24106#ifdef HAVE_WINDOWS_H
24107#  define FUNCALLCONV __stdcall
24108#else
24109#  define FUNCALLCONV
24110#endif
24111/* preprocess end */"
24112
24113
24114        #
24115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
24116$as_echo_n "checking for ares_socklen_t data type... " >&6; }
24117  cares_typeof_ares_socklen_t="unknown"
24118  for arg1 in int SOCKET; do
24119    for arg2 in 'struct sockaddr' void; do
24120      for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
24121        if test "$cares_typeof_ares_socklen_t" = "unknown"; then
24122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123/* end confdefs.h.  */
24124
24125
24126              $cares_includes_ws2tcpip
24127              $cares_includes_sys_socket
24128              $cares_preprocess_callconv
24129              extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
24130
24131int main (void)
24132{
24133
24134              $t *lenptr = 0;
24135              if(0 != getpeername(0, 0, lenptr))
24136                return 1;
24137
24138 ;
24139 return 0;
24140}
24141
24142_ACEOF
24143if ac_fn_c_try_compile "$LINENO"; then :
24144
24145            cares_typeof_ares_socklen_t="$t"
24146
24147fi
24148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149        fi
24150      done
24151    done
24152  done
24153  for t in socklen_t int; do
24154    if test "$cares_typeof_ares_socklen_t" = "void"; then
24155      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156/* end confdefs.h.  */
24157
24158
24159          $cares_includes_sys_socket
24160          typedef $t ares_socklen_t;
24161
24162int main (void)
24163{
24164
24165          ares_socklen_t dummy;
24166
24167 ;
24168 return 0;
24169}
24170
24171_ACEOF
24172if ac_fn_c_try_compile "$LINENO"; then :
24173
24174        cares_typeof_ares_socklen_t="$t"
24175
24176fi
24177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178    fi
24179  done
24180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
24181$as_echo "$cares_typeof_ares_socklen_t" >&6; }
24182  if test "$cares_typeof_ares_socklen_t" = "void" ||
24183    test "$cares_typeof_ares_socklen_t" = "unknown"; then
24184    as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
24185  fi
24186  #
24187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
24188$as_echo_n "checking size of ares_socklen_t... " >&6; }
24189  cares_sizeof_ares_socklen_t="unknown"
24190  cares_pull_headers_socklen_t="unknown"
24191  if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
24192    tst_pull_header_checks='none ws2tcpip'
24193    tst_size_checks='4'
24194  else
24195    tst_pull_header_checks='none systypes syssocket'
24196    tst_size_checks='4 8 2'
24197  fi
24198  for tst_size in $tst_size_checks; do
24199    for tst_pull_headers in $tst_pull_header_checks; do
24200      if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24201        case $tst_pull_headers in
24202          ws2tcpip)
24203            tmp_includes="$cares_includes_ws2tcpip"
24204            ;;
24205          systypes)
24206            tmp_includes="$cares_includes_sys_types"
24207            ;;
24208          syssocket)
24209            tmp_includes="$cares_includes_sys_socket"
24210            ;;
24211          *)
24212            tmp_includes=""
24213            ;;
24214        esac
24215        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216/* end confdefs.h.  */
24217
24218
24219            $tmp_includes
24220            typedef $cares_typeof_ares_socklen_t ares_socklen_t;
24221            typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
24222
24223int main (void)
24224{
24225
24226            ares_socklen_t dummy;
24227
24228 ;
24229 return 0;
24230}
24231
24232_ACEOF
24233if ac_fn_c_try_compile "$LINENO"; then :
24234
24235          cares_sizeof_ares_socklen_t="$tst_size"
24236          cares_pull_headers_socklen_t="$tst_pull_headers"
24237
24238fi
24239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240      fi
24241    done
24242  done
24243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
24244$as_echo "$cares_sizeof_ares_socklen_t" >&6; }
24245  if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24246    as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
24247  fi
24248  #
24249  case $cares_pull_headers_socklen_t in
24250    ws2tcpip)
24251
24252cat >>confdefs.h <<_EOF
24253#define CARES_PULL_WS2TCPIP_H 1
24254_EOF
24255
24256      ;;
24257    systypes)
24258
24259cat >>confdefs.h <<_EOF
24260#define CARES_PULL_SYS_TYPES_H 1
24261_EOF
24262
24263      ;;
24264    syssocket)
24265
24266cat >>confdefs.h <<_EOF
24267#define CARES_PULL_SYS_TYPES_H 1
24268_EOF
24269
24270
24271cat >>confdefs.h <<_EOF
24272#define CARES_PULL_SYS_SOCKET_H 1
24273_EOF
24274
24275      ;;
24276  esac
24277
24278cat >>confdefs.h <<_EOF
24279#define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
24280_EOF
24281
24282
24283cat >>confdefs.h <<_EOF
24284#define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
24285_EOF
24286
24287
24288
24289
24290  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
24291#undef inline
24292#ifdef HAVE_WINDOWS_H
24293#ifndef WIN32_LEAN_AND_MEAN
24294#define WIN32_LEAN_AND_MEAN
24295#endif
24296#include <windows.h>
24297#ifdef HAVE_WINSOCK2_H
24298#include <winsock2.h>
24299#else
24300#ifdef HAVE_WINSOCK_H
24301#include <winsock.h>
24302#endif
24303#endif
24304#else
24305#ifdef HAVE_SYS_TYPES_H
24306#include <sys/types.h>
24307#endif
24308#ifdef HAVE_SYS_SOCKET_H
24309#include <sys/socket.h>
24310#endif
24311#ifdef HAVE_NETINET_IN_H
24312#include <netinet/in.h>
24313#endif
24314#ifdef HAVE_ARPA_INET_H
24315#include <arpa/inet.h>
24316#endif
24317#endif
24318
24319"
24320if test "x$ac_cv_type_in_addr_t" = xyes; then :
24321
24322else
24323
24324        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
24325$as_echo_n "checking for in_addr_t equivalent... " >&6; }
24326if ${curl_cv_in_addr_t_equiv+:} false; then :
24327  $as_echo_n "(cached) " >&6
24328else
24329
24330      curl_cv_in_addr_t_equiv="unknown"
24331      for t in "unsigned long" int size_t unsigned long; do
24332        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
24333          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334/* end confdefs.h.  */
24335
24336
24337#undef inline
24338#ifdef HAVE_WINDOWS_H
24339#ifndef WIN32_LEAN_AND_MEAN
24340#define WIN32_LEAN_AND_MEAN
24341#endif
24342#include <windows.h>
24343#ifdef HAVE_WINSOCK2_H
24344#include <winsock2.h>
24345#else
24346#ifdef HAVE_WINSOCK_H
24347#include <winsock.h>
24348#endif
24349#endif
24350#else
24351#ifdef HAVE_SYS_TYPES_H
24352#include <sys/types.h>
24353#endif
24354#ifdef HAVE_SYS_SOCKET_H
24355#include <sys/socket.h>
24356#endif
24357#ifdef HAVE_NETINET_IN_H
24358#include <netinet/in.h>
24359#endif
24360#ifdef HAVE_ARPA_INET_H
24361#include <arpa/inet.h>
24362#endif
24363#endif
24364
24365int main (void)
24366{
24367
24368              $t data = inet_addr ("1.2.3.4");
24369
24370 ;
24371 return 0;
24372}
24373
24374_ACEOF
24375if ac_fn_c_try_link "$LINENO"; then :
24376
24377            curl_cv_in_addr_t_equiv="$t"
24378
24379fi
24380rm -f core conftest.err conftest.$ac_objext \
24381    conftest$ac_exeext conftest.$ac_ext
24382        fi
24383      done
24384
24385fi
24386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
24387$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
24388    case "$curl_cv_in_addr_t_equiv" in
24389      unknown)
24390        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
24391        ;;
24392      *)
24393
24394cat >>confdefs.h <<_ACEOF
24395#define in_addr_t $curl_cv_in_addr_t_equiv
24396_ACEOF
24397
24398        ;;
24399    esac
24400
24401fi
24402
24403
24404
24405
24406   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
24407#undef inline
24408#ifdef HAVE_WINDOWS_H
24409#ifndef WIN32_LEAN_AND_MEAN
24410#define WIN32_LEAN_AND_MEAN
24411#endif
24412#include <windows.h>
24413#ifdef HAVE_WINSOCK2_H
24414#include <winsock2.h>
24415#endif
24416#else
24417#ifdef HAVE_SYS_TYPES_H
24418#include <sys/types.h>
24419#endif
24420#ifdef HAVE_SYS_SOCKET_H
24421#include <sys/socket.h>
24422#endif
24423#ifdef HAVE_NETINET_IN_H
24424#include <netinet/in.h>
24425#endif
24426#ifdef HAVE_ARPA_INET_H
24427#include <arpa/inet.h>
24428#endif
24429#endif
24430
24431"
24432if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
24433
24434$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
24435
24436fi
24437
24438
24439
24440
24441  for ac_header in signal.h
24442do :
24443  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24444if test "x$ac_cv_header_signal_h" = xyes; then :
24445  cat >>confdefs.h <<_ACEOF
24446#define HAVE_SIGNAL_H 1
24447_ACEOF
24448
24449fi
24450
24451done
24452
24453  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
24454#ifdef HAVE_SIGNAL_H
24455#include <signal.h>
24456#endif
24457
24458"
24459if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24460
24461
24462$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
24463
24464
24465fi
24466
24467  case "$ac_cv_type_sig_atomic_t" in
24468    yes)
24469      #
24470      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
24471$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
24472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473/* end confdefs.h.  */
24474
24475
24476#ifdef HAVE_SIGNAL_H
24477#include <signal.h>
24478#endif
24479
24480int main (void)
24481{
24482
24483          static volatile sig_atomic_t dummy = 0;
24484
24485 ;
24486 return 0;
24487}
24488
24489_ACEOF
24490if ac_fn_c_try_link "$LINENO"; then :
24491
24492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24493$as_echo "no" >&6; }
24494        ac_cv_sig_atomic_t_volatile="no"
24495
24496else
24497
24498        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24499$as_echo "yes" >&6; }
24500        ac_cv_sig_atomic_t_volatile="yes"
24501
24502fi
24503rm -f core conftest.err conftest.$ac_objext \
24504    conftest$ac_exeext conftest.$ac_ext
24505      #
24506      if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
24507
24508$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
24509
24510      fi
24511      ;;
24512  esac
24513
24514
24515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24516$as_echo_n "checking return type of signal handlers... " >&6; }
24517if ${ac_cv_type_signal+:} false; then :
24518  $as_echo_n "(cached) " >&6
24519else
24520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521/* end confdefs.h.  */
24522#include <sys/types.h>
24523#include <signal.h>
24524
24525int main (void)
24526{
24527return *(signal (0, 0)) (0) == 1;
24528 ;
24529 return 0;
24530}
24531_ACEOF
24532if ac_fn_c_try_compile "$LINENO"; then :
24533  ac_cv_type_signal=int
24534else
24535  ac_cv_type_signal=void
24536fi
24537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538fi
24539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24540$as_echo "$ac_cv_type_signal" >&6; }
24541
24542cat >>confdefs.h <<_ACEOF
24543#define RETSIGTYPE $ac_cv_type_signal
24544_ACEOF
24545
24546
24547
24548
24549      for ac_header in sys/types.h sys/socket.h
24550do :
24551  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24552ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24553if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24554  cat >>confdefs.h <<_ACEOF
24555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24556_ACEOF
24557
24558fi
24559
24560done
24561
24562  #
24563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
24564$as_echo_n "checking for recv... " >&6; }
24565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566/* end confdefs.h.  */
24567
24568
24569#undef inline
24570#ifdef HAVE_WINDOWS_H
24571#ifndef WIN32_LEAN_AND_MEAN
24572#define WIN32_LEAN_AND_MEAN
24573#endif
24574#include <windows.h>
24575#ifdef HAVE_WINSOCK2_H
24576#include <winsock2.h>
24577#else
24578#ifdef HAVE_WINSOCK_H
24579#include <winsock.h>
24580#endif
24581#endif
24582#else
24583#ifdef HAVE_SYS_TYPES_H
24584#include <sys/types.h>
24585#endif
24586#ifdef HAVE_SYS_SOCKET_H
24587#include <sys/socket.h>
24588#endif
24589#endif
24590
24591int main (void)
24592{
24593
24594      recv(0, 0, 0, 0);
24595
24596 ;
24597 return 0;
24598}
24599
24600_ACEOF
24601if ac_fn_c_try_link "$LINENO"; then :
24602
24603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24604$as_echo "yes" >&6; }
24605    curl_cv_recv="yes"
24606
24607else
24608
24609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610$as_echo "no" >&6; }
24611    curl_cv_recv="no"
24612
24613fi
24614rm -f core conftest.err conftest.$ac_objext \
24615    conftest$ac_exeext conftest.$ac_ext
24616  #
24617  if test "$curl_cv_recv" = "yes"; then
24618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
24619$as_echo_n "checking types of args and return type for recv... " >&6; }
24620if ${curl_cv_func_recv_args+:} false; then :
24621  $as_echo_n "(cached) " >&6
24622else
24623
24624      curl_cv_func_recv_args="unknown"
24625      for recv_retv in 'int' 'ssize_t'; do
24626        for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24627          for recv_arg2 in 'char *' 'void *'; do
24628            for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24629              for recv_arg4 in 'int' 'unsigned int'; do
24630                if test "$curl_cv_func_recv_args" = "unknown"; then
24631                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632/* end confdefs.h.  */
24633
24634
24635#undef inline
24636#ifdef HAVE_WINDOWS_H
24637#ifndef WIN32_LEAN_AND_MEAN
24638#define WIN32_LEAN_AND_MEAN
24639#endif
24640#include <windows.h>
24641#ifdef HAVE_WINSOCK2_H
24642#include <winsock2.h>
24643#else
24644#ifdef HAVE_WINSOCK_H
24645#include <winsock.h>
24646#endif
24647#endif
24648#define RECVCALLCONV PASCAL
24649#else
24650#ifdef HAVE_SYS_TYPES_H
24651#include <sys/types.h>
24652#endif
24653#ifdef HAVE_SYS_SOCKET_H
24654#include <sys/socket.h>
24655#endif
24656#define RECVCALLCONV
24657#endif
24658                      extern $recv_retv RECVCALLCONV
24659                      recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
24660
24661int main (void)
24662{
24663
24664                      $recv_arg1 s=0;
24665                      $recv_arg2 buf=0;
24666                      $recv_arg3 len=0;
24667                      $recv_arg4 flags=0;
24668                      $recv_retv res = recv(s, buf, len, flags);
24669
24670 ;
24671 return 0;
24672}
24673
24674_ACEOF
24675if ac_fn_c_try_compile "$LINENO"; then :
24676
24677                    curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
24678
24679fi
24680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24681                fi
24682              done
24683            done
24684          done
24685        done
24686      done
24687
24688fi
24689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
24690$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
24691    if test "$curl_cv_func_recv_args" = "unknown"; then
24692      as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
24693    else
24694      recv_prev_IFS=$IFS; IFS=','
24695      set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
24696      IFS=$recv_prev_IFS
24697      shift
24698      #
24699
24700cat >>confdefs.h <<_ACEOF
24701#define RECV_TYPE_ARG1 $1
24702_ACEOF
24703
24704
24705cat >>confdefs.h <<_ACEOF
24706#define RECV_TYPE_ARG2 $2
24707_ACEOF
24708
24709
24710cat >>confdefs.h <<_ACEOF
24711#define RECV_TYPE_ARG3 $3
24712_ACEOF
24713
24714
24715cat >>confdefs.h <<_ACEOF
24716#define RECV_TYPE_ARG4 $4
24717_ACEOF
24718
24719
24720cat >>confdefs.h <<_ACEOF
24721#define RECV_TYPE_RETV $5
24722_ACEOF
24723
24724      #
24725
24726cat >>confdefs.h <<_ACEOF
24727#define HAVE_RECV 1
24728_ACEOF
24729
24730      ac_cv_func_recv="yes"
24731    fi
24732  else
24733    as_fn_error $? "Unable to link function recv" "$LINENO" 5
24734  fi
24735
24736
24737      for ac_header in sys/types.h sys/socket.h
24738do :
24739  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24742  cat >>confdefs.h <<_ACEOF
24743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24744_ACEOF
24745
24746fi
24747
24748done
24749
24750  #
24751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
24752$as_echo_n "checking for recvfrom... " >&6; }
24753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754/* end confdefs.h.  */
24755
24756
24757#undef inline
24758#ifdef HAVE_WINDOWS_H
24759#ifndef WIN32_LEAN_AND_MEAN
24760#define WIN32_LEAN_AND_MEAN
24761#endif
24762#include <windows.h>
24763#ifdef HAVE_WINSOCK2_H
24764#include <winsock2.h>
24765#else
24766#ifdef HAVE_WINSOCK_H
24767#include <winsock.h>
24768#endif
24769#endif
24770#else
24771#ifdef HAVE_SYS_TYPES_H
24772#include <sys/types.h>
24773#endif
24774#ifdef HAVE_SYS_SOCKET_H
24775#include <sys/socket.h>
24776#endif
24777#endif
24778
24779int main (void)
24780{
24781
24782      recvfrom(0, 0, 0, 0, 0, 0);
24783
24784 ;
24785 return 0;
24786}
24787
24788_ACEOF
24789if ac_fn_c_try_link "$LINENO"; then :
24790
24791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24792$as_echo "yes" >&6; }
24793    curl_cv_recvfrom="yes"
24794
24795else
24796
24797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24798$as_echo "no" >&6; }
24799    curl_cv_recvfrom="no"
24800
24801fi
24802rm -f core conftest.err conftest.$ac_objext \
24803    conftest$ac_exeext conftest.$ac_ext
24804  #
24805  if test "$curl_cv_recvfrom" = "yes"; then
24806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
24807$as_echo_n "checking types of args and return type for recvfrom... " >&6; }
24808if ${curl_cv_func_recvfrom_args+:} false; then :
24809  $as_echo_n "(cached) " >&6
24810else
24811
24812      curl_cv_func_recvfrom_args="unknown"
24813      for recvfrom_retv in 'int' 'ssize_t'; do
24814        for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24815          for recvfrom_arg2 in 'char *' 'void *'; do
24816            for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24817              for recvfrom_arg4 in 'int' 'unsigned int'; do
24818                for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
24819                  for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
24820                    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24821                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822/* end confdefs.h.  */
24823
24824
24825#undef inline
24826#ifdef HAVE_WINDOWS_H
24827#ifndef WIN32_LEAN_AND_MEAN
24828#define WIN32_LEAN_AND_MEAN
24829#endif
24830#include <windows.h>
24831#ifdef HAVE_WINSOCK2_H
24832#include <winsock2.h>
24833#else
24834#ifdef HAVE_WINSOCK_H
24835#include <winsock.h>
24836#endif
24837#endif
24838#define RECVFROMCALLCONV PASCAL
24839#else
24840#ifdef HAVE_SYS_TYPES_H
24841#include <sys/types.h>
24842#endif
24843#ifdef HAVE_SYS_SOCKET_H
24844#include <sys/socket.h>
24845#endif
24846#define RECVFROMCALLCONV
24847#endif
24848                          extern $recvfrom_retv RECVFROMCALLCONV
24849                          recvfrom($recvfrom_arg1, $recvfrom_arg2,
24850                                   $recvfrom_arg3, $recvfrom_arg4,
24851                                   $recvfrom_arg5, $recvfrom_arg6);
24852
24853int main (void)
24854{
24855
24856                          $recvfrom_arg1 s=0;
24857                          $recvfrom_arg2 buf=0;
24858                          $recvfrom_arg3 len=0;
24859                          $recvfrom_arg4 flags=0;
24860                          $recvfrom_arg5 addr=0;
24861                          $recvfrom_arg6 addrlen=0;
24862                          $recvfrom_retv res=0;
24863                          res = recvfrom(s, buf, len, flags, addr, addrlen);
24864
24865 ;
24866 return 0;
24867}
24868
24869_ACEOF
24870if ac_fn_c_try_compile "$LINENO"; then :
24871
24872                        curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
24873
24874fi
24875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876                    fi
24877                  done
24878                done
24879              done
24880            done
24881          done
24882        done
24883      done
24884
24885fi
24886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
24887$as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
24888    # Nearly last minute change for this release starts here
24889
24890cat >>confdefs.h <<_ACEOF
24891#define HAVE_RECVFROM 1
24892_ACEOF
24893
24894    ac_cv_func_recvfrom="yes"
24895    # Nearly last minute change for this release ends here
24896    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24897      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
24898$as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
24899    else
24900      recvfrom_prev_IFS=$IFS; IFS=','
24901      set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
24902      IFS=$recvfrom_prev_IFS
24903      shift
24904      #
24905      recvfrom_ptrt_arg2=$2
24906      recvfrom_qual_ptrt_arg5=$5
24907      recvfrom_ptrt_arg6=$6
24908      #
24909
24910cat >>confdefs.h <<_ACEOF
24911#define RECVFROM_TYPE_ARG1 $1
24912_ACEOF
24913
24914
24915cat >>confdefs.h <<_ACEOF
24916#define RECVFROM_TYPE_ARG3 $3
24917_ACEOF
24918
24919
24920cat >>confdefs.h <<_ACEOF
24921#define RECVFROM_TYPE_ARG4 $4
24922_ACEOF
24923
24924
24925cat >>confdefs.h <<_ACEOF
24926#define RECVFROM_TYPE_RETV $7
24927_ACEOF
24928
24929      #
24930      prev_sh_opts=$-
24931      #
24932      case $prev_sh_opts in
24933        *f*)
24934          ;;
24935        *)
24936          set -f
24937          ;;
24938      esac
24939      #
24940      case "$recvfrom_qual_ptrt_arg5" in
24941        const*)
24942          recvfrom_qual_arg5=const
24943          recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
24944        ;;
24945        *)
24946          recvfrom_qual_arg5=
24947          recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
24948        ;;
24949      esac
24950      #
24951      recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
24952      recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
24953      recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
24954      #
24955
24956cat >>confdefs.h <<_ACEOF
24957#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
24958_ACEOF
24959
24960
24961cat >>confdefs.h <<_ACEOF
24962#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
24963_ACEOF
24964
24965
24966cat >>confdefs.h <<_ACEOF
24967#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
24968_ACEOF
24969
24970
24971cat >>confdefs.h <<_ACEOF
24972#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
24973_ACEOF
24974
24975      #
24976      if test "$recvfrom_type_arg2" = "void"; then
24977
24978cat >>confdefs.h <<_ACEOF
24979#define RECVFROM_TYPE_ARG2_IS_VOID 1
24980_ACEOF
24981
24982      fi
24983      if test "$recvfrom_type_arg5" = "void"; then
24984
24985cat >>confdefs.h <<_ACEOF
24986#define RECVFROM_TYPE_ARG5_IS_VOID 1
24987_ACEOF
24988
24989      fi
24990      if test "$recvfrom_type_arg6" = "void"; then
24991
24992cat >>confdefs.h <<_ACEOF
24993#define RECVFROM_TYPE_ARG6_IS_VOID 1
24994_ACEOF
24995
24996      fi
24997      #
24998      case $prev_sh_opts in
24999        *f*)
25000          ;;
25001        *)
25002          set +f
25003          ;;
25004      esac
25005      #
25006
25007cat >>confdefs.h <<_ACEOF
25008#define HAVE_RECVFROM 1
25009_ACEOF
25010
25011      ac_cv_func_recvfrom="yes"
25012    fi
25013  else
25014    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
25015$as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
25016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
25017$as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
25018  fi
25019
25020
25021      for ac_header in sys/types.h sys/socket.h
25022do :
25023  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25024ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25026  cat >>confdefs.h <<_ACEOF
25027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25028_ACEOF
25029
25030fi
25031
25032done
25033
25034  #
25035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
25036$as_echo_n "checking for send... " >&6; }
25037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25038/* end confdefs.h.  */
25039
25040
25041#undef inline
25042#ifdef HAVE_WINDOWS_H
25043#ifndef WIN32_LEAN_AND_MEAN
25044#define WIN32_LEAN_AND_MEAN
25045#endif
25046#include <windows.h>
25047#ifdef HAVE_WINSOCK2_H
25048#include <winsock2.h>
25049#else
25050#ifdef HAVE_WINSOCK_H
25051#include <winsock.h>
25052#endif
25053#endif
25054#else
25055#ifdef HAVE_SYS_TYPES_H
25056#include <sys/types.h>
25057#endif
25058#ifdef HAVE_SYS_SOCKET_H
25059#include <sys/socket.h>
25060#endif
25061#endif
25062
25063int main (void)
25064{
25065
25066      send(0, 0, 0, 0);
25067
25068 ;
25069 return 0;
25070}
25071
25072_ACEOF
25073if ac_fn_c_try_link "$LINENO"; then :
25074
25075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25076$as_echo "yes" >&6; }
25077    curl_cv_send="yes"
25078
25079else
25080
25081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082$as_echo "no" >&6; }
25083    curl_cv_send="no"
25084
25085fi
25086rm -f core conftest.err conftest.$ac_objext \
25087    conftest$ac_exeext conftest.$ac_ext
25088  #
25089  if test "$curl_cv_send" = "yes"; then
25090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
25091$as_echo_n "checking types of args and return type for send... " >&6; }
25092if ${curl_cv_func_send_args+:} false; then :
25093  $as_echo_n "(cached) " >&6
25094else
25095
25096      curl_cv_func_send_args="unknown"
25097      for send_retv in 'int' 'ssize_t'; do
25098        for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
25099          for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
25100            for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
25101              for send_arg4 in 'int' 'unsigned int'; do
25102                if test "$curl_cv_func_send_args" = "unknown"; then
25103                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25104/* end confdefs.h.  */
25105
25106
25107#undef inline
25108#ifdef HAVE_WINDOWS_H
25109#ifndef WIN32_LEAN_AND_MEAN
25110#define WIN32_LEAN_AND_MEAN
25111#endif
25112#include <windows.h>
25113#ifdef HAVE_WINSOCK2_H
25114#include <winsock2.h>
25115#else
25116#ifdef HAVE_WINSOCK_H
25117#include <winsock.h>
25118#endif
25119#endif
25120#define SENDCALLCONV PASCAL
25121#else
25122#ifdef HAVE_SYS_TYPES_H
25123#include <sys/types.h>
25124#endif
25125#ifdef HAVE_SYS_SOCKET_H
25126#include <sys/socket.h>
25127#endif
25128#define SENDCALLCONV
25129#endif
25130                      extern $send_retv SENDCALLCONV
25131                      send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
25132
25133int main (void)
25134{
25135
25136                      $send_arg1 s=0;
25137                      $send_arg3 len=0;
25138                      $send_arg4 flags=0;
25139                      $send_retv res = send(s, 0, len, flags);
25140
25141 ;
25142 return 0;
25143}
25144
25145_ACEOF
25146if ac_fn_c_try_compile "$LINENO"; then :
25147
25148                    curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
25149
25150fi
25151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25152                fi
25153              done
25154            done
25155          done
25156        done
25157      done
25158
25159fi
25160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
25161$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
25162    if test "$curl_cv_func_send_args" = "unknown"; then
25163      as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
25164    else
25165      send_prev_IFS=$IFS; IFS=','
25166      set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
25167      IFS=$send_prev_IFS
25168      shift
25169      #
25170      send_qual_type_arg2=$2
25171      #
25172
25173cat >>confdefs.h <<_ACEOF
25174#define SEND_TYPE_ARG1 $1
25175_ACEOF
25176
25177
25178cat >>confdefs.h <<_ACEOF
25179#define SEND_TYPE_ARG3 $3
25180_ACEOF
25181
25182
25183cat >>confdefs.h <<_ACEOF
25184#define SEND_TYPE_ARG4 $4
25185_ACEOF
25186
25187
25188cat >>confdefs.h <<_ACEOF
25189#define SEND_TYPE_RETV $5
25190_ACEOF
25191
25192      #
25193      prev_sh_opts=$-
25194      #
25195      case $prev_sh_opts in
25196        *f*)
25197          ;;
25198        *)
25199          set -f
25200          ;;
25201      esac
25202      #
25203      case "$send_qual_type_arg2" in
25204        const*)
25205          send_qual_arg2=const
25206          send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
25207        ;;
25208        *)
25209          send_qual_arg2=
25210          send_type_arg2=$send_qual_type_arg2
25211        ;;
25212      esac
25213      #
25214
25215cat >>confdefs.h <<_ACEOF
25216#define SEND_QUAL_ARG2 $send_qual_arg2
25217_ACEOF
25218
25219
25220cat >>confdefs.h <<_ACEOF
25221#define SEND_TYPE_ARG2 $send_type_arg2
25222_ACEOF
25223
25224      #
25225      case $prev_sh_opts in
25226        *f*)
25227          ;;
25228        *)
25229          set +f
25230          ;;
25231      esac
25232      #
25233
25234cat >>confdefs.h <<_ACEOF
25235#define HAVE_SEND 1
25236_ACEOF
25237
25238      ac_cv_func_send="yes"
25239    fi
25240  else
25241    as_fn_error $? "Unable to link function send" "$LINENO" 5
25242  fi
25243
25244
25245  for ac_header in sys/types.h sys/socket.h
25246do :
25247  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25248ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25249if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25250  cat >>confdefs.h <<_ACEOF
25251#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25252_ACEOF
25253
25254fi
25255
25256done
25257
25258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
25259$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
25260if ${ac_cv_msg_nosignal+:} false; then :
25261  $as_echo_n "(cached) " >&6
25262else
25263
25264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25265/* end confdefs.h.  */
25266
25267
25268#undef inline
25269#ifdef HAVE_WINDOWS_H
25270#ifndef WIN32_LEAN_AND_MEAN
25271#define WIN32_LEAN_AND_MEAN
25272#endif
25273#include <windows.h>
25274#ifdef HAVE_WINSOCK2_H
25275#include <winsock2.h>
25276#else
25277#ifdef HAVE_WINSOCK_H
25278#include <winsock.h>
25279#endif
25280#endif
25281#else
25282#ifdef HAVE_SYS_TYPES_H
25283#include <sys/types.h>
25284#endif
25285#ifdef HAVE_SYS_SOCKET_H
25286#include <sys/socket.h>
25287#endif
25288#endif
25289
25290int main (void)
25291{
25292
25293        int flag=MSG_NOSIGNAL;
25294
25295 ;
25296 return 0;
25297}
25298
25299_ACEOF
25300if ac_fn_c_try_compile "$LINENO"; then :
25301
25302      ac_cv_msg_nosignal="yes"
25303
25304else
25305
25306      ac_cv_msg_nosignal="no"
25307
25308fi
25309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310
25311fi
25312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
25313$as_echo "$ac_cv_msg_nosignal" >&6; }
25314  case "$ac_cv_msg_nosignal" in
25315    yes)
25316
25317cat >>confdefs.h <<_ACEOF
25318#define HAVE_MSG_NOSIGNAL 1
25319_ACEOF
25320
25321      ;;
25322  esac
25323
25324
25325
25326cares_includes_socket="\
25327/* includes start */
25328#ifdef HAVE_SYS_TYPES_H
25329#  include <sys/types.h>
25330#endif
25331#ifdef HAVE_SOCKET_H
25332#  include <socket.h>
25333#endif
25334/* includes end */"
25335  for ac_header in sys/types.h socket.h
25336do :
25337  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
25339"
25340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25341  cat >>confdefs.h <<_ACEOF
25342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25343_ACEOF
25344
25345fi
25346
25347done
25348
25349
25350
25351      #
25352  tst_links_closesocket="unknown"
25353  tst_proto_closesocket="unknown"
25354  tst_compi_closesocket="unknown"
25355  tst_allow_closesocket="unknown"
25356  #
25357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
25358$as_echo_n "checking if closesocket can be linked... " >&6; }
25359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25360/* end confdefs.h.  */
25361
25362
25363      $cares_includes_winsock2
25364      $cares_includes_socket
25365
25366int main (void)
25367{
25368
25369      if(0 != closesocket(0))
25370        return 1;
25371
25372 ;
25373 return 0;
25374}
25375
25376_ACEOF
25377if ac_fn_c_try_link "$LINENO"; then :
25378
25379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25380$as_echo "yes" >&6; }
25381    tst_links_closesocket="yes"
25382
25383else
25384
25385    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25386$as_echo "no" >&6; }
25387    tst_links_closesocket="no"
25388
25389fi
25390rm -f core conftest.err conftest.$ac_objext \
25391    conftest$ac_exeext conftest.$ac_ext
25392  #
25393  if test "$tst_links_closesocket" = "yes"; then
25394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
25395$as_echo_n "checking if closesocket is prototyped... " >&6; }
25396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397/* end confdefs.h.  */
25398
25399      $cares_includes_winsock2
25400      $cares_includes_socket
25401
25402_ACEOF
25403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25404  $EGREP "closesocket" >/dev/null 2>&1; then :
25405
25406      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25407$as_echo "yes" >&6; }
25408      tst_proto_closesocket="yes"
25409
25410else
25411
25412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25413$as_echo "no" >&6; }
25414      tst_proto_closesocket="no"
25415
25416fi
25417rm -f conftest*
25418
25419  fi
25420  #
25421  if test "$tst_proto_closesocket" = "yes"; then
25422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
25423$as_echo_n "checking if closesocket is compilable... " >&6; }
25424    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425/* end confdefs.h.  */
25426
25427
25428        $cares_includes_winsock2
25429        $cares_includes_socket
25430
25431int main (void)
25432{
25433
25434        if(0 != closesocket(0))
25435          return 1;
25436
25437 ;
25438 return 0;
25439}
25440
25441_ACEOF
25442if ac_fn_c_try_compile "$LINENO"; then :
25443
25444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25445$as_echo "yes" >&6; }
25446      tst_compi_closesocket="yes"
25447
25448else
25449
25450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25451$as_echo "no" >&6; }
25452      tst_compi_closesocket="no"
25453
25454fi
25455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456  fi
25457  #
25458  if test "$tst_compi_closesocket" = "yes"; then
25459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
25460$as_echo_n "checking if closesocket usage allowed... " >&6; }
25461    if test "x$cares_disallow_closesocket" != "xyes"; then
25462      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25463$as_echo "yes" >&6; }
25464      tst_allow_closesocket="yes"
25465    else
25466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25467$as_echo "no" >&6; }
25468      tst_allow_closesocket="no"
25469    fi
25470  fi
25471  #
25472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
25473$as_echo_n "checking if closesocket might be used... " >&6; }
25474  if test "$tst_links_closesocket" = "yes" &&
25475     test "$tst_proto_closesocket" = "yes" &&
25476     test "$tst_compi_closesocket" = "yes" &&
25477     test "$tst_allow_closesocket" = "yes"; then
25478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25479$as_echo "yes" >&6; }
25480
25481cat >>confdefs.h <<_ACEOF
25482#define HAVE_CLOSESOCKET 1
25483_ACEOF
25484
25485    ac_cv_func_closesocket="yes"
25486  else
25487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25488$as_echo "no" >&6; }
25489    ac_cv_func_closesocket="no"
25490  fi
25491
25492
25493    #
25494  tst_links_closesocket_camel="unknown"
25495  tst_proto_closesocket_camel="unknown"
25496  tst_compi_closesocket_camel="unknown"
25497  tst_allow_closesocket_camel="unknown"
25498  #
25499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
25500$as_echo_n "checking if CloseSocket can be linked... " >&6; }
25501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502/* end confdefs.h.  */
25503
25504
25505      $cares_includes_sys_socket
25506
25507int main (void)
25508{
25509
25510      if(0 != CloseSocket(0))
25511        return 1;
25512
25513 ;
25514 return 0;
25515}
25516
25517_ACEOF
25518if ac_fn_c_try_link "$LINENO"; then :
25519
25520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25521$as_echo "yes" >&6; }
25522    tst_links_closesocket_camel="yes"
25523
25524else
25525
25526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25527$as_echo "no" >&6; }
25528    tst_links_closesocket_camel="no"
25529
25530fi
25531rm -f core conftest.err conftest.$ac_objext \
25532    conftest$ac_exeext conftest.$ac_ext
25533  #
25534  if test "$tst_links_closesocket_camel" = "yes"; then
25535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
25536$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
25537    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25538/* end confdefs.h.  */
25539
25540      $cares_includes_sys_socket
25541
25542_ACEOF
25543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25544  $EGREP "CloseSocket" >/dev/null 2>&1; then :
25545
25546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25547$as_echo "yes" >&6; }
25548      tst_proto_closesocket_camel="yes"
25549
25550else
25551
25552      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553$as_echo "no" >&6; }
25554      tst_proto_closesocket_camel="no"
25555
25556fi
25557rm -f conftest*
25558
25559  fi
25560  #
25561  if test "$tst_proto_closesocket_camel" = "yes"; then
25562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
25563$as_echo_n "checking if CloseSocket is compilable... " >&6; }
25564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565/* end confdefs.h.  */
25566
25567
25568        $cares_includes_sys_socket
25569
25570int main (void)
25571{
25572
25573        if(0 != CloseSocket(0))
25574          return 1;
25575
25576 ;
25577 return 0;
25578}
25579
25580_ACEOF
25581if ac_fn_c_try_compile "$LINENO"; then :
25582
25583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25584$as_echo "yes" >&6; }
25585      tst_compi_closesocket_camel="yes"
25586
25587else
25588
25589      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25590$as_echo "no" >&6; }
25591      tst_compi_closesocket_camel="no"
25592
25593fi
25594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595  fi
25596  #
25597  if test "$tst_compi_closesocket_camel" = "yes"; then
25598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
25599$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
25600    if test "x$cares_disallow_closesocket_camel" != "xyes"; then
25601      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25602$as_echo "yes" >&6; }
25603      tst_allow_closesocket_camel="yes"
25604    else
25605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25606$as_echo "no" >&6; }
25607      tst_allow_closesocket_camel="no"
25608    fi
25609  fi
25610  #
25611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
25612$as_echo_n "checking if CloseSocket might be used... " >&6; }
25613  if test "$tst_links_closesocket_camel" = "yes" &&
25614     test "$tst_proto_closesocket_camel" = "yes" &&
25615     test "$tst_compi_closesocket_camel" = "yes" &&
25616     test "$tst_allow_closesocket_camel" = "yes"; then
25617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25618$as_echo "yes" >&6; }
25619
25620cat >>confdefs.h <<_ACEOF
25621#define HAVE_CLOSESOCKET_CAMEL 1
25622_ACEOF
25623
25624    ac_cv_func_closesocket_camel="yes"
25625  else
25626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627$as_echo "no" >&6; }
25628    ac_cv_func_closesocket_camel="no"
25629  fi
25630
25631
25632        #
25633  tst_links_connect="unknown"
25634  tst_proto_connect="unknown"
25635  tst_compi_connect="unknown"
25636  tst_allow_connect="unknown"
25637  #
25638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
25639$as_echo_n "checking if connect can be linked... " >&6; }
25640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641/* end confdefs.h.  */
25642
25643
25644      $cares_includes_winsock2
25645      $cares_includes_sys_socket
25646      $cares_includes_socket
25647
25648int main (void)
25649{
25650
25651      if(0 != connect(0, 0, 0))
25652        return 1;
25653
25654 ;
25655 return 0;
25656}
25657
25658_ACEOF
25659if ac_fn_c_try_link "$LINENO"; then :
25660
25661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25662$as_echo "yes" >&6; }
25663    tst_links_connect="yes"
25664
25665else
25666
25667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25668$as_echo "no" >&6; }
25669    tst_links_connect="no"
25670
25671fi
25672rm -f core conftest.err conftest.$ac_objext \
25673    conftest$ac_exeext conftest.$ac_ext
25674  #
25675  if test "$tst_links_connect" = "yes"; then
25676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
25677$as_echo_n "checking if connect is prototyped... " >&6; }
25678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679/* end confdefs.h.  */
25680
25681      $cares_includes_winsock2
25682      $cares_includes_sys_socket
25683      $cares_includes_socket
25684
25685_ACEOF
25686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25687  $EGREP "connect" >/dev/null 2>&1; then :
25688
25689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690$as_echo "yes" >&6; }
25691      tst_proto_connect="yes"
25692
25693else
25694
25695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25696$as_echo "no" >&6; }
25697      tst_proto_connect="no"
25698
25699fi
25700rm -f conftest*
25701
25702  fi
25703  #
25704  if test "$tst_proto_connect" = "yes"; then
25705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
25706$as_echo_n "checking if connect is compilable... " >&6; }
25707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25708/* end confdefs.h.  */
25709
25710
25711        $cares_includes_winsock2
25712        $cares_includes_sys_socket
25713        $cares_includes_socket
25714
25715int main (void)
25716{
25717
25718        if(0 != connect(0, 0, 0))
25719          return 1;
25720
25721 ;
25722 return 0;
25723}
25724
25725_ACEOF
25726if ac_fn_c_try_compile "$LINENO"; then :
25727
25728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25729$as_echo "yes" >&6; }
25730      tst_compi_connect="yes"
25731
25732else
25733
25734      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25735$as_echo "no" >&6; }
25736      tst_compi_connect="no"
25737
25738fi
25739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740  fi
25741  #
25742  if test "$tst_compi_connect" = "yes"; then
25743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25744$as_echo_n "checking if connect usage allowed... " >&6; }
25745    if test "x$cares_disallow_connect" != "xyes"; then
25746      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25747$as_echo "yes" >&6; }
25748      tst_allow_connect="yes"
25749    else
25750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751$as_echo "no" >&6; }
25752      tst_allow_connect="no"
25753    fi
25754  fi
25755  #
25756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25757$as_echo_n "checking if connect might be used... " >&6; }
25758  if test "$tst_links_connect" = "yes" &&
25759     test "$tst_proto_connect" = "yes" &&
25760     test "$tst_compi_connect" = "yes" &&
25761     test "$tst_allow_connect" = "yes"; then
25762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25763$as_echo "yes" >&6; }
25764
25765cat >>confdefs.h <<_ACEOF
25766#define HAVE_CONNECT 1
25767_ACEOF
25768
25769    ac_cv_func_connect="yes"
25770  else
25771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25772$as_echo "no" >&6; }
25773    ac_cv_func_connect="no"
25774  fi
25775
25776
25777cares_includes_fcntl="\
25778/* includes start */
25779#ifdef HAVE_SYS_TYPES_H
25780#  include <sys/types.h>
25781#endif
25782#ifdef HAVE_UNISTD_H
25783#  include <unistd.h>
25784#endif
25785#ifdef HAVE_FCNTL_H
25786#  include <fcntl.h>
25787#endif
25788/* includes end */"
25789  for ac_header in sys/types.h unistd.h fcntl.h
25790do :
25791  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
25793"
25794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25795  cat >>confdefs.h <<_ACEOF
25796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25797_ACEOF
25798
25799fi
25800
25801done
25802
25803
25804
25805    #
25806  tst_links_fcntl="unknown"
25807  tst_proto_fcntl="unknown"
25808  tst_compi_fcntl="unknown"
25809  tst_allow_fcntl="unknown"
25810  #
25811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25812$as_echo_n "checking if fcntl can be linked... " >&6; }
25813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25814/* end confdefs.h.  */
25815
25816
25817#define fcntl innocuous_fcntl
25818#ifdef __STDC__
25819# include <limits.h>
25820#else
25821# include <assert.h>
25822#endif
25823#undef fcntl
25824#ifdef __cplusplus
25825extern "C"
25826#endif
25827char fcntl ();
25828#if defined __stub_fcntl || defined __stub___fcntl
25829choke me
25830#endif
25831
25832int main (void)
25833{
25834return fcntl ();
25835 ;
25836 return 0;
25837}
25838
25839_ACEOF
25840if ac_fn_c_try_link "$LINENO"; then :
25841
25842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25843$as_echo "yes" >&6; }
25844    tst_links_fcntl="yes"
25845
25846else
25847
25848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25849$as_echo "no" >&6; }
25850    tst_links_fcntl="no"
25851
25852fi
25853rm -f core conftest.err conftest.$ac_objext \
25854    conftest$ac_exeext conftest.$ac_ext
25855  #
25856  if test "$tst_links_fcntl" = "yes"; then
25857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25858$as_echo_n "checking if fcntl is prototyped... " >&6; }
25859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860/* end confdefs.h.  */
25861
25862      $cares_includes_fcntl
25863
25864_ACEOF
25865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25866  $EGREP "fcntl" >/dev/null 2>&1; then :
25867
25868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25869$as_echo "yes" >&6; }
25870      tst_proto_fcntl="yes"
25871
25872else
25873
25874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25875$as_echo "no" >&6; }
25876      tst_proto_fcntl="no"
25877
25878fi
25879rm -f conftest*
25880
25881  fi
25882  #
25883  if test "$tst_proto_fcntl" = "yes"; then
25884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25885$as_echo_n "checking if fcntl is compilable... " >&6; }
25886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887/* end confdefs.h.  */
25888
25889
25890        $cares_includes_fcntl
25891
25892int main (void)
25893{
25894
25895        if(0 != fcntl(0, 0, 0))
25896          return 1;
25897
25898 ;
25899 return 0;
25900}
25901
25902_ACEOF
25903if ac_fn_c_try_compile "$LINENO"; then :
25904
25905      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25906$as_echo "yes" >&6; }
25907      tst_compi_fcntl="yes"
25908
25909else
25910
25911      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25912$as_echo "no" >&6; }
25913      tst_compi_fcntl="no"
25914
25915fi
25916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25917  fi
25918  #
25919  if test "$tst_compi_fcntl" = "yes"; then
25920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25921$as_echo_n "checking if fcntl usage allowed... " >&6; }
25922    if test "x$cares_disallow_fcntl" != "xyes"; then
25923      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25924$as_echo "yes" >&6; }
25925      tst_allow_fcntl="yes"
25926    else
25927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25928$as_echo "no" >&6; }
25929      tst_allow_fcntl="no"
25930    fi
25931  fi
25932  #
25933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25934$as_echo_n "checking if fcntl might be used... " >&6; }
25935  if test "$tst_links_fcntl" = "yes" &&
25936     test "$tst_proto_fcntl" = "yes" &&
25937     test "$tst_compi_fcntl" = "yes" &&
25938     test "$tst_allow_fcntl" = "yes"; then
25939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25940$as_echo "yes" >&6; }
25941
25942cat >>confdefs.h <<_ACEOF
25943#define HAVE_FCNTL 1
25944_ACEOF
25945
25946    ac_cv_func_fcntl="yes"
25947
25948  #
25949  tst_compi_fcntl_o_nonblock="unknown"
25950  tst_allow_fcntl_o_nonblock="unknown"
25951  #
25952  case $host_os in
25953    sunos4* | aix3* | beos*)
25954            cares_disallow_fcntl_o_nonblock="yes"
25955      ;;
25956  esac
25957  #
25958  if test "$ac_cv_func_fcntl" = "yes"; then
25959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25960$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25962/* end confdefs.h.  */
25963
25964
25965        $cares_includes_fcntl
25966
25967int main (void)
25968{
25969
25970        int flags = 0;
25971        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25972          return 1;
25973
25974 ;
25975 return 0;
25976}
25977
25978_ACEOF
25979if ac_fn_c_try_compile "$LINENO"; then :
25980
25981      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25982$as_echo "yes" >&6; }
25983      tst_compi_fcntl_o_nonblock="yes"
25984
25985else
25986
25987      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25988$as_echo "no" >&6; }
25989      tst_compi_fcntl_o_nonblock="no"
25990
25991fi
25992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993  fi
25994  #
25995  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25997$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25998    if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
25999      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26000$as_echo "yes" >&6; }
26001      tst_allow_fcntl_o_nonblock="yes"
26002    else
26003      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26004$as_echo "no" >&6; }
26005      tst_allow_fcntl_o_nonblock="no"
26006    fi
26007  fi
26008  #
26009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
26010$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
26011  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
26012     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
26013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26014$as_echo "yes" >&6; }
26015
26016cat >>confdefs.h <<_ACEOF
26017#define HAVE_FCNTL_O_NONBLOCK 1
26018_ACEOF
26019
26020    ac_cv_func_fcntl_o_nonblock="yes"
26021  else
26022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26023$as_echo "no" >&6; }
26024    ac_cv_func_fcntl_o_nonblock="no"
26025  fi
26026
26027  else
26028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26029$as_echo "no" >&6; }
26030    ac_cv_func_fcntl="no"
26031  fi
26032
26033
26034cares_includes_netdb="\
26035/* includes start */
26036#ifdef HAVE_SYS_TYPES_H
26037#  include <sys/types.h>
26038#endif
26039#ifdef HAVE_NETDB_H
26040#  include <netdb.h>
26041#endif
26042/* includes end */"
26043  for ac_header in sys/types.h netdb.h
26044do :
26045  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
26047"
26048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26049  cat >>confdefs.h <<_ACEOF
26050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26051_ACEOF
26052
26053fi
26054
26055done
26056
26057
26058
26059        #
26060  tst_links_freeaddrinfo="unknown"
26061  tst_proto_freeaddrinfo="unknown"
26062  tst_compi_freeaddrinfo="unknown"
26063  tst_allow_freeaddrinfo="unknown"
26064  #
26065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
26066$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
26067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26068/* end confdefs.h.  */
26069
26070
26071      $cares_includes_ws2tcpip
26072      $cares_includes_sys_socket
26073      $cares_includes_netdb
26074
26075int main (void)
26076{
26077
26078      freeaddrinfo(0);
26079
26080 ;
26081 return 0;
26082}
26083
26084_ACEOF
26085if ac_fn_c_try_link "$LINENO"; then :
26086
26087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26088$as_echo "yes" >&6; }
26089    tst_links_freeaddrinfo="yes"
26090
26091else
26092
26093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094$as_echo "no" >&6; }
26095    tst_links_freeaddrinfo="no"
26096
26097fi
26098rm -f core conftest.err conftest.$ac_objext \
26099    conftest$ac_exeext conftest.$ac_ext
26100  #
26101  if test "$tst_links_freeaddrinfo" = "yes"; then
26102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
26103$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
26104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105/* end confdefs.h.  */
26106
26107      $cares_includes_ws2tcpip
26108      $cares_includes_sys_socket
26109      $cares_includes_netdb
26110
26111_ACEOF
26112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26113  $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
26114
26115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26116$as_echo "yes" >&6; }
26117      tst_proto_freeaddrinfo="yes"
26118
26119else
26120
26121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26122$as_echo "no" >&6; }
26123      tst_proto_freeaddrinfo="no"
26124
26125fi
26126rm -f conftest*
26127
26128  fi
26129  #
26130  if test "$tst_proto_freeaddrinfo" = "yes"; then
26131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
26132$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
26133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134/* end confdefs.h.  */
26135
26136
26137        $cares_includes_ws2tcpip
26138        $cares_includes_sys_socket
26139        $cares_includes_netdb
26140
26141int main (void)
26142{
26143
26144        freeaddrinfo(0);
26145
26146 ;
26147 return 0;
26148}
26149
26150_ACEOF
26151if ac_fn_c_try_compile "$LINENO"; then :
26152
26153      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26154$as_echo "yes" >&6; }
26155      tst_compi_freeaddrinfo="yes"
26156
26157else
26158
26159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26160$as_echo "no" >&6; }
26161      tst_compi_freeaddrinfo="no"
26162
26163fi
26164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165  fi
26166  #
26167  if test "$tst_compi_freeaddrinfo" = "yes"; then
26168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
26169$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
26170    if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
26171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26172$as_echo "yes" >&6; }
26173      tst_allow_freeaddrinfo="yes"
26174    else
26175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176$as_echo "no" >&6; }
26177      tst_allow_freeaddrinfo="no"
26178    fi
26179  fi
26180  #
26181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
26182$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
26183  if test "$tst_links_freeaddrinfo" = "yes" &&
26184     test "$tst_proto_freeaddrinfo" = "yes" &&
26185     test "$tst_compi_freeaddrinfo" = "yes" &&
26186     test "$tst_allow_freeaddrinfo" = "yes"; then
26187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26188$as_echo "yes" >&6; }
26189
26190cat >>confdefs.h <<_ACEOF
26191#define HAVE_FREEADDRINFO 1
26192_ACEOF
26193
26194    ac_cv_func_freeaddrinfo="yes"
26195  else
26196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26197$as_echo "no" >&6; }
26198    ac_cv_func_freeaddrinfo="no"
26199  fi
26200
26201
26202cares_includes_stdlib="\
26203/* includes start */
26204#ifdef HAVE_SYS_TYPES_H
26205#  include <sys/types.h>
26206#endif
26207#ifdef HAVE_STDLIB_H
26208#  include <stdlib.h>
26209#endif
26210/* includes end */"
26211  for ac_header in sys/types.h stdlib.h
26212do :
26213  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26214ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
26215"
26216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26217  cat >>confdefs.h <<_ACEOF
26218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26219_ACEOF
26220
26221fi
26222
26223done
26224
26225
26226
26227cares_includes_string="\
26228/* includes start */
26229#ifdef HAVE_SYS_TYPES_H
26230#  include <sys/types.h>
26231#endif
26232#ifdef HAVE_STRING_H
26233#  include <string.h>
26234#endif
26235#ifdef HAVE_STRINGS_H
26236#  include <strings.h>
26237#endif
26238/* includes end */"
26239  for ac_header in sys/types.h string.h strings.h
26240do :
26241  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26242ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
26243"
26244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26245  cat >>confdefs.h <<_ACEOF
26246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26247_ACEOF
26248
26249fi
26250
26251done
26252
26253
26254
26255              #
26256  tst_links_getaddrinfo="unknown"
26257  tst_proto_getaddrinfo="unknown"
26258  tst_compi_getaddrinfo="unknown"
26259  tst_works_getaddrinfo="unknown"
26260  tst_allow_getaddrinfo="unknown"
26261  tst_tsafe_getaddrinfo="unknown"
26262  #
26263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26264$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26266/* end confdefs.h.  */
26267
26268
26269      $cares_includes_ws2tcpip
26270      $cares_includes_sys_socket
26271      $cares_includes_netdb
26272
26273int main (void)
26274{
26275
26276      if(0 != getaddrinfo(0, 0, 0, 0))
26277        return 1;
26278
26279 ;
26280 return 0;
26281}
26282
26283_ACEOF
26284if ac_fn_c_try_link "$LINENO"; then :
26285
26286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26287$as_echo "yes" >&6; }
26288    tst_links_getaddrinfo="yes"
26289
26290else
26291
26292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26293$as_echo "no" >&6; }
26294    tst_links_getaddrinfo="no"
26295
26296fi
26297rm -f core conftest.err conftest.$ac_objext \
26298    conftest$ac_exeext conftest.$ac_ext
26299  #
26300  if test "$tst_links_getaddrinfo" = "yes"; then
26301    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26302$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26304/* end confdefs.h.  */
26305
26306      $cares_includes_ws2tcpip
26307      $cares_includes_sys_socket
26308      $cares_includes_netdb
26309
26310_ACEOF
26311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26312  $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26313
26314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26315$as_echo "yes" >&6; }
26316      tst_proto_getaddrinfo="yes"
26317
26318else
26319
26320      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26321$as_echo "no" >&6; }
26322      tst_proto_getaddrinfo="no"
26323
26324fi
26325rm -f conftest*
26326
26327  fi
26328  #
26329  if test "$tst_proto_getaddrinfo" = "yes"; then
26330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26331$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26333/* end confdefs.h.  */
26334
26335
26336        $cares_includes_ws2tcpip
26337        $cares_includes_sys_socket
26338        $cares_includes_netdb
26339
26340int main (void)
26341{
26342
26343        if(0 != getaddrinfo(0, 0, 0, 0))
26344          return 1;
26345
26346 ;
26347 return 0;
26348}
26349
26350_ACEOF
26351if ac_fn_c_try_compile "$LINENO"; then :
26352
26353      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26354$as_echo "yes" >&6; }
26355      tst_compi_getaddrinfo="yes"
26356
26357else
26358
26359      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26360$as_echo "no" >&6; }
26361      tst_compi_getaddrinfo="no"
26362
26363fi
26364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26365  fi
26366  #
26367    if test "x$cross_compiling" != "xyes" &&
26368    test "$tst_compi_getaddrinfo" = "yes"; then
26369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26370$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26371    if test "$cross_compiling" = yes; then :
26372  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26374as_fn_error $? "cannot run test program while cross compiling
26375See \`config.log' for more details" "$LINENO" 5; }
26376else
26377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378/* end confdefs.h.  */
26379
26380
26381        $cares_includes_ws2tcpip
26382        $cares_includes_stdlib
26383        $cares_includes_string
26384        $cares_includes_sys_socket
26385        $cares_includes_netdb
26386
26387int main (void)
26388{
26389
26390        struct addrinfo hints;
26391        struct addrinfo *ai = 0;
26392        int error;
26393
26394        memset(&hints, 0, sizeof(hints));
26395        hints.ai_flags = AI_NUMERICHOST;
26396        hints.ai_family = AF_UNSPEC;
26397        hints.ai_socktype = SOCK_STREAM;
26398        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26399        if(error || !ai)
26400          exit(1); /* fail */
26401        else
26402          exit(0);
26403
26404 ;
26405 return 0;
26406}
26407
26408_ACEOF
26409if ac_fn_c_try_run "$LINENO"; then :
26410
26411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26412$as_echo "yes" >&6; }
26413      tst_works_getaddrinfo="yes"
26414
26415else
26416
26417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26418$as_echo "no" >&6; }
26419      tst_works_getaddrinfo="no"
26420
26421fi
26422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26423  conftest.$ac_objext conftest.beam conftest.$ac_ext
26424fi
26425
26426  fi
26427  #
26428  if test "$tst_compi_getaddrinfo" = "yes" &&
26429    test "$tst_works_getaddrinfo" != "no"; then
26430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26431$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26432    if test "x$cares_disallow_getaddrinfo" != "xyes"; then
26433      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26434$as_echo "yes" >&6; }
26435      tst_allow_getaddrinfo="yes"
26436    else
26437      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26438$as_echo "no" >&6; }
26439      tst_allow_getaddrinfo="no"
26440    fi
26441  fi
26442  #
26443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26444$as_echo_n "checking if getaddrinfo might be used... " >&6; }
26445  if test "$tst_links_getaddrinfo" = "yes" &&
26446     test "$tst_proto_getaddrinfo" = "yes" &&
26447     test "$tst_compi_getaddrinfo" = "yes" &&
26448     test "$tst_allow_getaddrinfo" = "yes" &&
26449     test "$tst_works_getaddrinfo" != "no"; then
26450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451$as_echo "yes" >&6; }
26452
26453cat >>confdefs.h <<_ACEOF
26454#define HAVE_GETADDRINFO 1
26455_ACEOF
26456
26457    ac_cv_func_getaddrinfo="yes"
26458  else
26459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26460$as_echo "no" >&6; }
26461    ac_cv_func_getaddrinfo="no"
26462    ac_cv_func_getaddrinfo_threadsafe="no"
26463  fi
26464  #
26465  if test "$ac_cv_func_getaddrinfo" = "yes"; then
26466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26467$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26468    case $host_os in
26469      aix[1234].* | aix5.[01].*)
26470                tst_tsafe_getaddrinfo="no"
26471        ;;
26472      aix*)
26473                tst_tsafe_getaddrinfo="yes"
26474        ;;
26475      darwin[12345].*)
26476                tst_tsafe_getaddrinfo="no"
26477        ;;
26478      darwin*)
26479                tst_tsafe_getaddrinfo="yes"
26480        ;;
26481      freebsd[1234].* | freebsd5.[1234]*)
26482                tst_tsafe_getaddrinfo="no"
26483        ;;
26484      freebsd*)
26485                tst_tsafe_getaddrinfo="yes"
26486        ;;
26487      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26488                tst_tsafe_getaddrinfo="no"
26489        ;;
26490      hpux*)
26491                tst_tsafe_getaddrinfo="yes"
26492        ;;
26493      netbsd[123].*)
26494                tst_tsafe_getaddrinfo="no"
26495        ;;
26496      netbsd*)
26497                tst_tsafe_getaddrinfo="yes"
26498        ;;
26499      *bsd*)
26500                tst_tsafe_getaddrinfo="no"
26501        ;;
26502      solaris2*)
26503                tst_tsafe_getaddrinfo="yes"
26504        ;;
26505    esac
26506    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
26507       test "$ac_cv_native_windows" = "yes"; then
26508      tst_tsafe_getaddrinfo="yes"
26509    fi
26510    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26511
26512
26513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26514/* end confdefs.h.  */
26515
26516
26517        $cares_includes_sys_socket
26518        $cares_includes_netdb
26519
26520int main (void)
26521{
26522#ifdef h_errno
26523  return 0;
26524#else
26525  force compilation error
26526#endif
26527}
26528
26529
26530_ACEOF
26531if ac_fn_c_try_compile "$LINENO"; then :
26532
26533    tst_symbol_defined="yes"
26534
26535else
26536
26537    tst_symbol_defined="no"
26538
26539fi
26540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541  if test "$tst_symbol_defined" = "yes"; then
26542    curl_cv_have_def_h_errno=yes
26543
26544  else
26545    curl_cv_have_def_h_errno=no
26546
26547  fi
26548
26549      if test "$curl_cv_have_def_h_errno" = "yes"; then
26550        tst_h_errno_macro="yes"
26551      else
26552        tst_h_errno_macro="no"
26553      fi
26554      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26555/* end confdefs.h.  */
26556
26557
26558          $cares_includes_sys_socket
26559          $cares_includes_netdb
26560
26561int main (void)
26562{
26563
26564          h_errno = 2;
26565          if(0 != h_errno)
26566            return 1;
26567
26568 ;
26569 return 0;
26570}
26571
26572_ACEOF
26573if ac_fn_c_try_compile "$LINENO"; then :
26574
26575        tst_h_errno_modifiable_lvalue="yes"
26576
26577else
26578
26579        tst_h_errno_modifiable_lvalue="no"
26580
26581fi
26582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26583      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26584/* end confdefs.h.  */
26585
26586
26587
26588int main (void)
26589{
26590
26591#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
26592          return 0;
26593#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
26594          return 0;
26595#else
26596          force compilation error
26597#endif
26598
26599 ;
26600 return 0;
26601}
26602
26603_ACEOF
26604if ac_fn_c_try_compile "$LINENO"; then :
26605
26606        tst_h_errno_sbs_issue_7="yes"
26607
26608else
26609
26610        tst_h_errno_sbs_issue_7="no"
26611
26612fi
26613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26614      if test "$tst_h_errno_macro" = "no" &&
26615         test "$tst_h_errno_modifiable_lvalue" = "no" &&
26616         test "$tst_h_errno_sbs_issue_7" = "no"; then
26617        tst_tsafe_getaddrinfo="no"
26618      else
26619        tst_tsafe_getaddrinfo="yes"
26620      fi
26621    fi
26622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26623$as_echo "$tst_tsafe_getaddrinfo" >&6; }
26624    if test "$tst_tsafe_getaddrinfo" = "yes"; then
26625
26626cat >>confdefs.h <<_ACEOF
26627#define HAVE_GETADDRINFO_THREADSAFE 1
26628_ACEOF
26629
26630      ac_cv_func_getaddrinfo_threadsafe="yes"
26631    else
26632      ac_cv_func_getaddrinfo_threadsafe="no"
26633    fi
26634  fi
26635
26636
26637    #
26638  tst_links_getenv="unknown"
26639  tst_proto_getenv="unknown"
26640  tst_compi_getenv="unknown"
26641  tst_allow_getenv="unknown"
26642  #
26643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
26644$as_echo_n "checking if getenv can be linked... " >&6; }
26645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26646/* end confdefs.h.  */
26647
26648
26649#define getenv innocuous_getenv
26650#ifdef __STDC__
26651# include <limits.h>
26652#else
26653# include <assert.h>
26654#endif
26655#undef getenv
26656#ifdef __cplusplus
26657extern "C"
26658#endif
26659char getenv ();
26660#if defined __stub_getenv || defined __stub___getenv
26661choke me
26662#endif
26663
26664int main (void)
26665{
26666return getenv ();
26667 ;
26668 return 0;
26669}
26670
26671_ACEOF
26672if ac_fn_c_try_link "$LINENO"; then :
26673
26674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26675$as_echo "yes" >&6; }
26676    tst_links_getenv="yes"
26677
26678else
26679
26680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26681$as_echo "no" >&6; }
26682    tst_links_getenv="no"
26683
26684fi
26685rm -f core conftest.err conftest.$ac_objext \
26686    conftest$ac_exeext conftest.$ac_ext
26687  #
26688  if test "$tst_links_getenv" = "yes"; then
26689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
26690$as_echo_n "checking if getenv is prototyped... " >&6; }
26691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692/* end confdefs.h.  */
26693
26694      $cares_includes_stdlib
26695
26696_ACEOF
26697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26698  $EGREP "getenv" >/dev/null 2>&1; then :
26699
26700      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26701$as_echo "yes" >&6; }
26702      tst_proto_getenv="yes"
26703
26704else
26705
26706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26707$as_echo "no" >&6; }
26708      tst_proto_getenv="no"
26709
26710fi
26711rm -f conftest*
26712
26713  fi
26714  #
26715  if test "$tst_proto_getenv" = "yes"; then
26716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
26717$as_echo_n "checking if getenv is compilable... " >&6; }
26718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26719/* end confdefs.h.  */
26720
26721
26722        $cares_includes_stdlib
26723
26724int main (void)
26725{
26726
26727        if(0 != getenv(0))
26728          return 1;
26729
26730 ;
26731 return 0;
26732}
26733
26734_ACEOF
26735if ac_fn_c_try_compile "$LINENO"; then :
26736
26737      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26738$as_echo "yes" >&6; }
26739      tst_compi_getenv="yes"
26740
26741else
26742
26743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26744$as_echo "no" >&6; }
26745      tst_compi_getenv="no"
26746
26747fi
26748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26749  fi
26750  #
26751  if test "$tst_compi_getenv" = "yes"; then
26752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
26753$as_echo_n "checking if getenv usage allowed... " >&6; }
26754    if test "x$cares_disallow_getenv" != "xyes"; then
26755      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26756$as_echo "yes" >&6; }
26757      tst_allow_getenv="yes"
26758    else
26759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26760$as_echo "no" >&6; }
26761      tst_allow_getenv="no"
26762    fi
26763  fi
26764  #
26765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
26766$as_echo_n "checking if getenv might be used... " >&6; }
26767  if test "$tst_links_getenv" = "yes" &&
26768     test "$tst_proto_getenv" = "yes" &&
26769     test "$tst_compi_getenv" = "yes" &&
26770     test "$tst_allow_getenv" = "yes"; then
26771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26772$as_echo "yes" >&6; }
26773
26774cat >>confdefs.h <<_ACEOF
26775#define HAVE_GETENV 1
26776_ACEOF
26777
26778    ac_cv_func_getenv="yes"
26779  else
26780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26781$as_echo "no" >&6; }
26782    ac_cv_func_getenv="no"
26783  fi
26784
26785
26786      #
26787  tst_links_gethostbyaddr="unknown"
26788  tst_proto_gethostbyaddr="unknown"
26789  tst_compi_gethostbyaddr="unknown"
26790  tst_allow_gethostbyaddr="unknown"
26791  #
26792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26793$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26795/* end confdefs.h.  */
26796
26797
26798      $cares_includes_winsock2
26799      $cares_includes_netdb
26800
26801int main (void)
26802{
26803
26804      if(0 != gethostbyaddr(0, 0, 0))
26805        return 1;
26806
26807 ;
26808 return 0;
26809}
26810
26811_ACEOF
26812if ac_fn_c_try_link "$LINENO"; then :
26813
26814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26815$as_echo "yes" >&6; }
26816    tst_links_gethostbyaddr="yes"
26817
26818else
26819
26820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26821$as_echo "no" >&6; }
26822    tst_links_gethostbyaddr="no"
26823
26824fi
26825rm -f core conftest.err conftest.$ac_objext \
26826    conftest$ac_exeext conftest.$ac_ext
26827  #
26828  if test "$tst_links_gethostbyaddr" = "yes"; then
26829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26830$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26831    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832/* end confdefs.h.  */
26833
26834      $cares_includes_winsock2
26835      $cares_includes_netdb
26836
26837_ACEOF
26838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26839  $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26840
26841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26842$as_echo "yes" >&6; }
26843      tst_proto_gethostbyaddr="yes"
26844
26845else
26846
26847      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26848$as_echo "no" >&6; }
26849      tst_proto_gethostbyaddr="no"
26850
26851fi
26852rm -f conftest*
26853
26854  fi
26855  #
26856  if test "$tst_proto_gethostbyaddr" = "yes"; then
26857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26858$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860/* end confdefs.h.  */
26861
26862
26863        $cares_includes_winsock2
26864        $cares_includes_netdb
26865
26866int main (void)
26867{
26868
26869        if(0 != gethostbyaddr(0, 0, 0))
26870          return 1;
26871
26872 ;
26873 return 0;
26874}
26875
26876_ACEOF
26877if ac_fn_c_try_compile "$LINENO"; then :
26878
26879      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26880$as_echo "yes" >&6; }
26881      tst_compi_gethostbyaddr="yes"
26882
26883else
26884
26885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26886$as_echo "no" >&6; }
26887      tst_compi_gethostbyaddr="no"
26888
26889fi
26890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26891  fi
26892  #
26893  if test "$tst_compi_gethostbyaddr" = "yes"; then
26894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26895$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26896    if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
26897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26898$as_echo "yes" >&6; }
26899      tst_allow_gethostbyaddr="yes"
26900    else
26901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26902$as_echo "no" >&6; }
26903      tst_allow_gethostbyaddr="no"
26904    fi
26905  fi
26906  #
26907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26908$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26909  if test "$tst_links_gethostbyaddr" = "yes" &&
26910     test "$tst_proto_gethostbyaddr" = "yes" &&
26911     test "$tst_compi_gethostbyaddr" = "yes" &&
26912     test "$tst_allow_gethostbyaddr" = "yes"; then
26913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26914$as_echo "yes" >&6; }
26915
26916cat >>confdefs.h <<_ACEOF
26917#define HAVE_GETHOSTBYADDR 1
26918_ACEOF
26919
26920    ac_cv_func_gethostbyaddr="yes"
26921  else
26922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26923$as_echo "no" >&6; }
26924    ac_cv_func_gethostbyaddr="no"
26925  fi
26926
26927
26928      #
26929  tst_links_gethostbyname="unknown"
26930  tst_proto_gethostbyname="unknown"
26931  tst_compi_gethostbyname="unknown"
26932  tst_allow_gethostbyname="unknown"
26933  #
26934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26935$as_echo_n "checking if gethostbyname can be linked... " >&6; }
26936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937/* end confdefs.h.  */
26938
26939
26940      $cares_includes_winsock2
26941      $cares_includes_netdb
26942
26943int main (void)
26944{
26945
26946      if(0 != gethostbyname(0))
26947        return 1;
26948
26949 ;
26950 return 0;
26951}
26952
26953_ACEOF
26954if ac_fn_c_try_link "$LINENO"; then :
26955
26956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26957$as_echo "yes" >&6; }
26958    tst_links_gethostbyname="yes"
26959
26960else
26961
26962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26963$as_echo "no" >&6; }
26964    tst_links_gethostbyname="no"
26965
26966fi
26967rm -f core conftest.err conftest.$ac_objext \
26968    conftest$ac_exeext conftest.$ac_ext
26969  #
26970  if test "$tst_links_gethostbyname" = "yes"; then
26971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26972$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26974/* end confdefs.h.  */
26975
26976      $cares_includes_winsock2
26977      $cares_includes_netdb
26978
26979_ACEOF
26980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26981  $EGREP "gethostbyname" >/dev/null 2>&1; then :
26982
26983      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26984$as_echo "yes" >&6; }
26985      tst_proto_gethostbyname="yes"
26986
26987else
26988
26989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26990$as_echo "no" >&6; }
26991      tst_proto_gethostbyname="no"
26992
26993fi
26994rm -f conftest*
26995
26996  fi
26997  #
26998  if test "$tst_proto_gethostbyname" = "yes"; then
26999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
27000$as_echo_n "checking if gethostbyname is compilable... " >&6; }
27001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27002/* end confdefs.h.  */
27003
27004
27005        $cares_includes_winsock2
27006        $cares_includes_netdb
27007
27008int main (void)
27009{
27010
27011        if(0 != gethostbyname(0))
27012          return 1;
27013
27014 ;
27015 return 0;
27016}
27017
27018_ACEOF
27019if ac_fn_c_try_compile "$LINENO"; then :
27020
27021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27022$as_echo "yes" >&6; }
27023      tst_compi_gethostbyname="yes"
27024
27025else
27026
27027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27028$as_echo "no" >&6; }
27029      tst_compi_gethostbyname="no"
27030
27031fi
27032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27033  fi
27034  #
27035  if test "$tst_compi_gethostbyname" = "yes"; then
27036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
27037$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
27038    if test "x$cares_disallow_gethostbyname" != "xyes"; then
27039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27040$as_echo "yes" >&6; }
27041      tst_allow_gethostbyname="yes"
27042    else
27043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27044$as_echo "no" >&6; }
27045      tst_allow_gethostbyname="no"
27046    fi
27047  fi
27048  #
27049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
27050$as_echo_n "checking if gethostbyname might be used... " >&6; }
27051  if test "$tst_links_gethostbyname" = "yes" &&
27052     test "$tst_proto_gethostbyname" = "yes" &&
27053     test "$tst_compi_gethostbyname" = "yes" &&
27054     test "$tst_allow_gethostbyname" = "yes"; then
27055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27056$as_echo "yes" >&6; }
27057
27058cat >>confdefs.h <<_ACEOF
27059#define HAVE_GETHOSTBYNAME 1
27060_ACEOF
27061
27062    ac_cv_func_gethostbyname="yes"
27063  else
27064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27065$as_echo "no" >&6; }
27066    ac_cv_func_gethostbyname="no"
27067  fi
27068
27069
27070cares_includes_unistd="\
27071/* includes start */
27072#ifdef HAVE_SYS_TYPES_H
27073#  include <sys/types.h>
27074#endif
27075#ifdef HAVE_UNISTD_H
27076#  include <unistd.h>
27077#endif
27078/* includes end */"
27079  for ac_header in sys/types.h unistd.h
27080do :
27081  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
27083"
27084if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27085  cat >>confdefs.h <<_ACEOF
27086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27087_ACEOF
27088
27089fi
27090
27091done
27092
27093
27094
27095        #
27096  tst_links_gethostname="unknown"
27097  tst_proto_gethostname="unknown"
27098  tst_compi_gethostname="unknown"
27099  tst_allow_gethostname="unknown"
27100  #
27101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
27102$as_echo_n "checking if gethostname can be linked... " >&6; }
27103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27104/* end confdefs.h.  */
27105
27106
27107      $cares_includes_winsock2
27108      $cares_includes_unistd
27109
27110int main (void)
27111{
27112
27113      if(0 != gethostname(0, 0))
27114        return 1;
27115
27116 ;
27117 return 0;
27118}
27119
27120_ACEOF
27121if ac_fn_c_try_link "$LINENO"; then :
27122
27123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27124$as_echo "yes" >&6; }
27125    tst_links_gethostname="yes"
27126
27127else
27128
27129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27130$as_echo "no" >&6; }
27131    tst_links_gethostname="no"
27132
27133fi
27134rm -f core conftest.err conftest.$ac_objext \
27135    conftest$ac_exeext conftest.$ac_ext
27136  #
27137  if test "$tst_links_gethostname" = "yes"; then
27138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27139$as_echo_n "checking if gethostname is prototyped... " >&6; }
27140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27141/* end confdefs.h.  */
27142
27143      $cares_includes_winsock2
27144      $cares_includes_unistd
27145
27146_ACEOF
27147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27148  $EGREP "gethostname" >/dev/null 2>&1; then :
27149
27150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27151$as_echo "yes" >&6; }
27152      tst_proto_gethostname="yes"
27153
27154else
27155
27156      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27157$as_echo "no" >&6; }
27158      tst_proto_gethostname="no"
27159
27160fi
27161rm -f conftest*
27162
27163  fi
27164  #
27165  if test "$tst_proto_gethostname" = "yes"; then
27166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27167$as_echo_n "checking if gethostname is compilable... " >&6; }
27168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27169/* end confdefs.h.  */
27170
27171
27172        $cares_includes_winsock2
27173        $cares_includes_unistd
27174
27175int main (void)
27176{
27177
27178        if(0 != gethostname(0, 0))
27179          return 1;
27180
27181 ;
27182 return 0;
27183}
27184
27185_ACEOF
27186if ac_fn_c_try_compile "$LINENO"; then :
27187
27188      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189$as_echo "yes" >&6; }
27190      tst_compi_gethostname="yes"
27191
27192else
27193
27194      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27195$as_echo "no" >&6; }
27196      tst_compi_gethostname="no"
27197
27198fi
27199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27200  fi
27201  #
27202  if test "$tst_compi_gethostname" = "yes"; then
27203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
27204$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
27205    tst_gethostname_type_arg2="unknown"
27206    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
27207      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
27208        if test "$tst_gethostname_type_arg2" = "unknown"; then
27209          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210/* end confdefs.h.  */
27211
27212
27213              $cares_includes_winsock2
27214              $cares_includes_unistd
27215              $cares_preprocess_callconv
27216              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
27217
27218int main (void)
27219{
27220
27221              if(0 != gethostname(0, 0))
27222                return 1;
27223
27224 ;
27225 return 0;
27226}
27227
27228_ACEOF
27229if ac_fn_c_try_compile "$LINENO"; then :
27230
27231            tst_gethostname_type_arg2="$tst_arg2"
27232
27233fi
27234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235        fi
27236      done
27237    done
27238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
27239$as_echo "$tst_gethostname_type_arg2" >&6; }
27240    if test "$tst_gethostname_type_arg2" != "unknown"; then
27241
27242cat >>confdefs.h <<_ACEOF
27243#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
27244_ACEOF
27245
27246    fi
27247  fi
27248  #
27249  if test "$tst_compi_gethostname" = "yes"; then
27250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27251$as_echo_n "checking if gethostname usage allowed... " >&6; }
27252    if test "x$cares_disallow_gethostname" != "xyes"; then
27253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27254$as_echo "yes" >&6; }
27255      tst_allow_gethostname="yes"
27256    else
27257      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27258$as_echo "no" >&6; }
27259      tst_allow_gethostname="no"
27260    fi
27261  fi
27262  #
27263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27264$as_echo_n "checking if gethostname might be used... " >&6; }
27265  if test "$tst_links_gethostname" = "yes" &&
27266     test "$tst_proto_gethostname" = "yes" &&
27267     test "$tst_compi_gethostname" = "yes" &&
27268     test "$tst_allow_gethostname" = "yes"; then
27269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27270$as_echo "yes" >&6; }
27271
27272cat >>confdefs.h <<_ACEOF
27273#define HAVE_GETHOSTNAME 1
27274_ACEOF
27275
27276    ac_cv_func_gethostname="yes"
27277  else
27278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27279$as_echo "no" >&6; }
27280    ac_cv_func_gethostname="no"
27281  fi
27282
27283
27284    #
27285  tst_links_getservbyport_r="unknown"
27286  tst_proto_getservbyport_r="unknown"
27287  tst_compi_getservbyport_r="unknown"
27288  tst_allow_getservbyport_r="unknown"
27289  tst_nargs_getservbyport_r="unknown"
27290  #
27291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27292$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27294/* end confdefs.h.  */
27295
27296
27297#define getservbyport_r innocuous_getservbyport_r
27298#ifdef __STDC__
27299# include <limits.h>
27300#else
27301# include <assert.h>
27302#endif
27303#undef getservbyport_r
27304#ifdef __cplusplus
27305extern "C"
27306#endif
27307char getservbyport_r ();
27308#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27309choke me
27310#endif
27311
27312int main (void)
27313{
27314return getservbyport_r ();
27315 ;
27316 return 0;
27317}
27318
27319_ACEOF
27320if ac_fn_c_try_link "$LINENO"; then :
27321
27322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27323$as_echo "yes" >&6; }
27324    tst_links_getservbyport_r="yes"
27325
27326else
27327
27328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329$as_echo "no" >&6; }
27330    tst_links_getservbyport_r="no"
27331
27332fi
27333rm -f core conftest.err conftest.$ac_objext \
27334    conftest$ac_exeext conftest.$ac_ext
27335  #
27336  if test "$tst_links_getservbyport_r" = "yes"; then
27337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27338$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340/* end confdefs.h.  */
27341
27342      $cares_includes_netdb
27343
27344_ACEOF
27345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27346  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27347
27348      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27349$as_echo "yes" >&6; }
27350      tst_proto_getservbyport_r="yes"
27351
27352else
27353
27354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27355$as_echo "no" >&6; }
27356      tst_proto_getservbyport_r="no"
27357
27358fi
27359rm -f conftest*
27360
27361  fi
27362  #
27363  if test "$tst_proto_getservbyport_r" = "yes"; then
27364    if test "$tst_nargs_getservbyport_r" = "unknown"; then
27365      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27366$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27367      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368/* end confdefs.h.  */
27369
27370
27371          $cares_includes_netdb
27372
27373int main (void)
27374{
27375
27376          if(0 != getservbyport_r(0, 0, 0, 0))
27377            return 1;
27378
27379 ;
27380 return 0;
27381}
27382
27383_ACEOF
27384if ac_fn_c_try_compile "$LINENO"; then :
27385
27386        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27387$as_echo "yes" >&6; }
27388        tst_compi_getservbyport_r="yes"
27389        tst_nargs_getservbyport_r="4"
27390
27391else
27392
27393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27394$as_echo "no" >&6; }
27395        tst_compi_getservbyport_r="no"
27396
27397fi
27398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399    fi
27400    if test "$tst_nargs_getservbyport_r" = "unknown"; then
27401      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27402$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27403      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27404/* end confdefs.h.  */
27405
27406
27407          $cares_includes_netdb
27408
27409int main (void)
27410{
27411
27412          if(0 != getservbyport_r(0, 0, 0, 0, 0))
27413            return 1;
27414
27415 ;
27416 return 0;
27417}
27418
27419_ACEOF
27420if ac_fn_c_try_compile "$LINENO"; then :
27421
27422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27423$as_echo "yes" >&6; }
27424        tst_compi_getservbyport_r="yes"
27425        tst_nargs_getservbyport_r="5"
27426
27427else
27428
27429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27430$as_echo "no" >&6; }
27431        tst_compi_getservbyport_r="no"
27432
27433fi
27434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27435    fi
27436    if test "$tst_nargs_getservbyport_r" = "unknown"; then
27437      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27438$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440/* end confdefs.h.  */
27441
27442
27443          $cares_includes_netdb
27444
27445int main (void)
27446{
27447
27448          if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27449            return 1;
27450
27451 ;
27452 return 0;
27453}
27454
27455_ACEOF
27456if ac_fn_c_try_compile "$LINENO"; then :
27457
27458        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27459$as_echo "yes" >&6; }
27460        tst_compi_getservbyport_r="yes"
27461        tst_nargs_getservbyport_r="6"
27462
27463else
27464
27465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27466$as_echo "no" >&6; }
27467        tst_compi_getservbyport_r="no"
27468
27469fi
27470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27471    fi
27472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27473$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27474    if test "$tst_compi_getservbyport_r" = "yes"; then
27475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27476$as_echo "yes" >&6; }
27477    else
27478      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27479$as_echo "no" >&6; }
27480    fi
27481  fi
27482  #
27483  if test "$tst_compi_getservbyport_r" = "yes"; then
27484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27485$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27486    if test "x$cares_disallow_getservbyport_r" != "xyes"; then
27487      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27488$as_echo "yes" >&6; }
27489      tst_allow_getservbyport_r="yes"
27490    else
27491      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27492$as_echo "no" >&6; }
27493      tst_allow_getservbyport_r="no"
27494    fi
27495  fi
27496  #
27497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27498$as_echo_n "checking if getservbyport_r might be used... " >&6; }
27499  if test "$tst_links_getservbyport_r" = "yes" &&
27500     test "$tst_proto_getservbyport_r" = "yes" &&
27501     test "$tst_compi_getservbyport_r" = "yes" &&
27502     test "$tst_allow_getservbyport_r" = "yes"; then
27503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27504$as_echo "yes" >&6; }
27505
27506cat >>confdefs.h <<_ACEOF
27507#define HAVE_GETSERVBYPORT_R 1
27508_ACEOF
27509
27510
27511cat >>confdefs.h <<_ACEOF
27512#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27513_ACEOF
27514
27515    if test "$tst_nargs_getservbyport_r" -eq "4"; then
27516
27517$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27518
27519    else
27520
27521$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27522
27523    fi
27524    ac_cv_func_getservbyport_r="yes"
27525  else
27526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527$as_echo "no" >&6; }
27528    ac_cv_func_getservbyport_r="no"
27529  fi
27530
27531
27532cares_includes_arpa_inet="\
27533/* includes start */
27534#ifdef HAVE_SYS_TYPES_H
27535#  include <sys/types.h>
27536#endif
27537#ifdef HAVE_SYS_SOCKET_H
27538#  include <sys/socket.h>
27539#endif
27540#ifdef HAVE_NETINET_IN_H
27541#  include <netinet/in.h>
27542#endif
27543#ifdef HAVE_ARPA_INET_H
27544#  include <arpa/inet.h>
27545#endif
27546/* includes end */"
27547  for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
27548do :
27549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27550ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
27551"
27552if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27553  cat >>confdefs.h <<_ACEOF
27554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27555_ACEOF
27556
27557fi
27558
27559done
27560
27561
27562
27563        #
27564  tst_links_inet_net_pton="unknown"
27565  tst_proto_inet_net_pton="unknown"
27566  tst_compi_inet_net_pton="unknown"
27567  tst_works_inet_net_pton="unknown"
27568  tst_allow_inet_net_pton="unknown"
27569  #
27570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
27571$as_echo_n "checking if inet_net_pton can be linked... " >&6; }
27572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573/* end confdefs.h.  */
27574
27575
27576#define inet_net_pton innocuous_inet_net_pton
27577#ifdef __STDC__
27578# include <limits.h>
27579#else
27580# include <assert.h>
27581#endif
27582#undef inet_net_pton
27583#ifdef __cplusplus
27584extern "C"
27585#endif
27586char inet_net_pton ();
27587#if defined __stub_inet_net_pton || defined __stub___inet_net_pton
27588choke me
27589#endif
27590
27591int main (void)
27592{
27593return inet_net_pton ();
27594 ;
27595 return 0;
27596}
27597
27598_ACEOF
27599if ac_fn_c_try_link "$LINENO"; then :
27600
27601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27602$as_echo "yes" >&6; }
27603    tst_links_inet_net_pton="yes"
27604
27605else
27606
27607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27608$as_echo "no" >&6; }
27609    tst_links_inet_net_pton="no"
27610
27611fi
27612rm -f core conftest.err conftest.$ac_objext \
27613    conftest$ac_exeext conftest.$ac_ext
27614  #
27615  if test "$tst_links_inet_net_pton" = "yes"; then
27616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
27617$as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
27618    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619/* end confdefs.h.  */
27620
27621      $cares_includes_arpa_inet
27622
27623_ACEOF
27624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27625  $EGREP "inet_net_pton" >/dev/null 2>&1; then :
27626
27627      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27628$as_echo "yes" >&6; }
27629      tst_proto_inet_net_pton="yes"
27630
27631else
27632
27633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27634$as_echo "no" >&6; }
27635      tst_proto_inet_net_pton="no"
27636
27637fi
27638rm -f conftest*
27639
27640  fi
27641  #
27642  if test "$tst_proto_inet_net_pton" = "yes"; then
27643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
27644$as_echo_n "checking if inet_net_pton is compilable... " >&6; }
27645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27646/* end confdefs.h.  */
27647
27648
27649        $cares_includes_arpa_inet
27650
27651int main (void)
27652{
27653
27654        if(0 != inet_net_pton(0, 0, 0, 0))
27655          return 1;
27656
27657 ;
27658 return 0;
27659}
27660
27661_ACEOF
27662if ac_fn_c_try_compile "$LINENO"; then :
27663
27664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27665$as_echo "yes" >&6; }
27666      tst_compi_inet_net_pton="yes"
27667
27668else
27669
27670      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27671$as_echo "no" >&6; }
27672      tst_compi_inet_net_pton="no"
27673
27674fi
27675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27676  fi
27677  #
27678    if test "x$cross_compiling" != "xyes" &&
27679    test "$tst_compi_inet_net_pton" = "yes"; then
27680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
27681$as_echo_n "checking if inet_net_pton seems to work... " >&6; }
27682    if test "$cross_compiling" = yes; then :
27683  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27685as_fn_error $? "cannot run test program while cross compiling
27686See \`config.log' for more details" "$LINENO" 5; }
27687else
27688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27689/* end confdefs.h.  */
27690
27691
27692        $cares_includes_stdlib
27693        $cares_includes_arpa_inet
27694        $cares_includes_string
27695
27696int main (void)
27697{
27698
27699        unsigned char ipv6a[16+1];
27700        unsigned char ipv4a[4+1];
27701        const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
27702        const char *ipv6net2 = "::fffe:7f00:1";
27703        const char *ipv6net3 = "7f20:1::/64";
27704        const char *ipv6net4 = "7f20:1::/2147483649";
27705        const char *ipv4net1 = "192.168.100.1";
27706        const char *ipv4net2 = "192.168.100/32";
27707        const char *ipv4net3 = "192.168.100.1/2147483649";
27708        /* - */
27709        memset(ipv4a, 1, sizeof(ipv4a));
27710        if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
27711          exit(1); /* fail */
27712        /* - */
27713        if( (ipv4a[0x00] != 0xc0) ||
27714            (ipv4a[0x01] != 0xa8) ||
27715            (ipv4a[0x02] != 0x64) ||
27716            (ipv4a[0x03] != 0x01) ||
27717            (ipv4a[0x04] != 0x01) )
27718          exit(1); /* fail */
27719        /* - */
27720        memset(ipv4a, 1, sizeof(ipv4a));
27721        if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
27722          exit(1); /* fail */
27723        /* - */
27724        if( (ipv4a[0x00] != 0xc0) ||
27725            (ipv4a[0x01] != 0xa8) ||
27726            (ipv4a[0x02] != 0x64) ||
27727            (ipv4a[0x03] != 0x00) ||
27728            (ipv4a[0x04] != 0x01) )
27729          exit(1); /* fail */
27730        /* - */
27731        memset(ipv4a, 1, sizeof(ipv4a));
27732        if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
27733          exit(1); /* fail */
27734        /* - */
27735        memset(ipv6a, 1, sizeof(ipv6a));
27736        if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
27737          exit(1); /* fail */
27738        /* - */
27739        if( (ipv6a[0x00] != 0xfe) ||
27740            (ipv6a[0x01] != 0x80) ||
27741            (ipv6a[0x08] != 0x02) ||
27742            (ipv6a[0x09] != 0x14) ||
27743            (ipv6a[0x0a] != 0x4f) ||
27744            (ipv6a[0x0b] != 0xff) ||
27745            (ipv6a[0x0c] != 0xfe) ||
27746            (ipv6a[0x0d] != 0x0b) ||
27747            (ipv6a[0x0e] != 0x76) ||
27748            (ipv6a[0x0f] != 0xc8) ||
27749            (ipv6a[0x10] != 0x01) )
27750          exit(1); /* fail */
27751        /* - */
27752        if( (ipv6a[0x02] != 0x0) ||
27753            (ipv6a[0x03] != 0x0) ||
27754            (ipv6a[0x04] != 0x0) ||
27755            (ipv6a[0x05] != 0x0) ||
27756            (ipv6a[0x06] != 0x0) ||
27757            (ipv6a[0x07] != 0x0) )
27758          exit(1); /* fail */
27759        /* - */
27760        memset(ipv6a, 0, sizeof(ipv6a));
27761        ipv6a[0x10] = 0x01;
27762        if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
27763          exit(1); /* fail */
27764        /* - */
27765        if( (ipv6a[0x0a] != 0xff) ||
27766            (ipv6a[0x0b] != 0xfe) ||
27767            (ipv6a[0x0c] != 0x7f) ||
27768            (ipv6a[0x0f] != 0x01) ||
27769            (ipv6a[0x10] != 0x01) )
27770          exit(1); /* fail */
27771        /* - */
27772        if( (ipv6a[0x00] != 0x0) ||
27773            (ipv6a[0x01] != 0x0) ||
27774            (ipv6a[0x02] != 0x0) ||
27775            (ipv6a[0x03] != 0x0) ||
27776            (ipv6a[0x04] != 0x0) ||
27777            (ipv6a[0x05] != 0x0) ||
27778            (ipv6a[0x06] != 0x0) ||
27779            (ipv6a[0x07] != 0x0) ||
27780            (ipv6a[0x08] != 0x0) ||
27781            (ipv6a[0x09] != 0x0) ||
27782            (ipv6a[0x0d] != 0x0) ||
27783            (ipv6a[0x0e] != 0x0) )
27784          exit(1); /* fail */
27785        /* - */
27786        memset(ipv6a, 1, sizeof(ipv6a));
27787        if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
27788          exit(1); /* fail */
27789        if( (ipv6a[0x00] != 0x7f) ||
27790            (ipv6a[0x01] != 0x20) ||
27791            (ipv6a[0x03] != 0x01) ||
27792            (ipv6a[0x08] != 0x01) ||
27793            (ipv6a[0x09] != 0x01) ||
27794            (ipv6a[0x0a] != 0x01) ||
27795            (ipv6a[0x0b] != 0x01) ||
27796            (ipv6a[0x0c] != 0x01) ||
27797            (ipv6a[0x0d] != 0x01) ||
27798            (ipv6a[0x0e] != 0x01) ||
27799            (ipv6a[0x0f] != 0x01) ||
27800            (ipv6a[0x10] != 0x01) )
27801          exit(1); /* fail */
27802        if( (ipv6a[0x02] != 0x0) ||
27803            (ipv6a[0x04] != 0x0) ||
27804            (ipv6a[0x05] != 0x0) ||
27805            (ipv6a[0x06] != 0x0) ||
27806            (ipv6a[0x07] != 0x0) ||
27807            (ipv6a[0x07] != 0x0) )
27808          exit(1); /* fail */
27809        /* - */
27810        memset(ipv6a, 1, sizeof(ipv6a));
27811        if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
27812          exit(1); /* fail */
27813        /* - */
27814        exit(0);
27815
27816 ;
27817 return 0;
27818}
27819
27820_ACEOF
27821if ac_fn_c_try_run "$LINENO"; then :
27822
27823      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27824$as_echo "yes" >&6; }
27825      tst_works_inet_net_pton="yes"
27826
27827else
27828
27829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27830$as_echo "no" >&6; }
27831      tst_works_inet_net_pton="no"
27832
27833fi
27834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27835  conftest.$ac_objext conftest.beam conftest.$ac_ext
27836fi
27837
27838  fi
27839  #
27840  if test "$tst_compi_inet_net_pton" = "yes" &&
27841    test "$tst_works_inet_net_pton" != "no"; then
27842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
27843$as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
27844    if test "x$cares_disallow_inet_net_pton" != "xyes"; then
27845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27846$as_echo "yes" >&6; }
27847      tst_allow_inet_net_pton="yes"
27848    else
27849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27850$as_echo "no" >&6; }
27851      tst_allow_inet_net_pton="no"
27852    fi
27853  fi
27854  #
27855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
27856$as_echo_n "checking if inet_net_pton might be used... " >&6; }
27857  if test "$tst_links_inet_net_pton" = "yes" &&
27858     test "$tst_proto_inet_net_pton" = "yes" &&
27859     test "$tst_compi_inet_net_pton" = "yes" &&
27860     test "$tst_allow_inet_net_pton" = "yes" &&
27861     test "$tst_works_inet_net_pton" != "no"; then
27862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27863$as_echo "yes" >&6; }
27864
27865cat >>confdefs.h <<_ACEOF
27866#define HAVE_INET_NET_PTON 1
27867_ACEOF
27868
27869    ac_cv_func_inet_net_pton="yes"
27870  else
27871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27872$as_echo "no" >&6; }
27873    ac_cv_func_inet_net_pton="no"
27874  fi
27875
27876
27877        #
27878  tst_links_inet_ntop="unknown"
27879  tst_proto_inet_ntop="unknown"
27880  tst_compi_inet_ntop="unknown"
27881  tst_works_inet_ntop="unknown"
27882  tst_allow_inet_ntop="unknown"
27883  #
27884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
27885$as_echo_n "checking if inet_ntop can be linked... " >&6; }
27886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27887/* end confdefs.h.  */
27888
27889
27890#define inet_ntop innocuous_inet_ntop
27891#ifdef __STDC__
27892# include <limits.h>
27893#else
27894# include <assert.h>
27895#endif
27896#undef inet_ntop
27897#ifdef __cplusplus
27898extern "C"
27899#endif
27900char inet_ntop ();
27901#if defined __stub_inet_ntop || defined __stub___inet_ntop
27902choke me
27903#endif
27904
27905int main (void)
27906{
27907return inet_ntop ();
27908 ;
27909 return 0;
27910}
27911
27912_ACEOF
27913if ac_fn_c_try_link "$LINENO"; then :
27914
27915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27916$as_echo "yes" >&6; }
27917    tst_links_inet_ntop="yes"
27918
27919else
27920
27921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27922$as_echo "no" >&6; }
27923    tst_links_inet_ntop="no"
27924
27925fi
27926rm -f core conftest.err conftest.$ac_objext \
27927    conftest$ac_exeext conftest.$ac_ext
27928  #
27929  if test "$tst_links_inet_ntop" = "yes"; then
27930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
27931$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
27932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27933/* end confdefs.h.  */
27934
27935      $cares_includes_arpa_inet
27936
27937_ACEOF
27938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27939  $EGREP "inet_ntop" >/dev/null 2>&1; then :
27940
27941      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27942$as_echo "yes" >&6; }
27943      tst_proto_inet_ntop="yes"
27944
27945else
27946
27947      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27948$as_echo "no" >&6; }
27949      tst_proto_inet_ntop="no"
27950
27951fi
27952rm -f conftest*
27953
27954  fi
27955  #
27956  if test "$tst_proto_inet_ntop" = "yes"; then
27957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
27958$as_echo_n "checking if inet_ntop is compilable... " >&6; }
27959    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960/* end confdefs.h.  */
27961
27962
27963        $cares_includes_arpa_inet
27964
27965int main (void)
27966{
27967
27968        if(0 != inet_ntop(0, 0, 0, 0))
27969          return 1;
27970
27971 ;
27972 return 0;
27973}
27974
27975_ACEOF
27976if ac_fn_c_try_compile "$LINENO"; then :
27977
27978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27979$as_echo "yes" >&6; }
27980      tst_compi_inet_ntop="yes"
27981
27982else
27983
27984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27985$as_echo "no" >&6; }
27986      tst_compi_inet_ntop="no"
27987
27988fi
27989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990  fi
27991  #
27992    if test "x$cross_compiling" != "xyes" &&
27993    test "$tst_compi_inet_ntop" = "yes"; then
27994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
27995$as_echo_n "checking if inet_ntop seems to work... " >&6; }
27996    if test "$cross_compiling" = yes; then :
27997  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27999as_fn_error $? "cannot run test program while cross compiling
28000See \`config.log' for more details" "$LINENO" 5; }
28001else
28002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003/* end confdefs.h.  */
28004
28005
28006        $cares_includes_stdlib
28007        $cares_includes_arpa_inet
28008        $cares_includes_string
28009
28010int main (void)
28011{
28012
28013        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
28014        char ipv4res[sizeof "255.255.255.255"];
28015        unsigned char ipv6a[26];
28016        unsigned char ipv4a[5];
28017        char *ipv6ptr = 0;
28018        char *ipv4ptr = 0;
28019        /* - */
28020        ipv4res[0] = '\0';
28021        ipv4a[0] = 0xc0;
28022        ipv4a[1] = 0xa8;
28023        ipv4a[2] = 0x64;
28024        ipv4a[3] = 0x01;
28025        ipv4a[4] = 0x01;
28026        /* - */
28027        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
28028        if(!ipv4ptr)
28029          exit(1); /* fail */
28030        if(ipv4ptr != ipv4res)
28031          exit(1); /* fail */
28032        if(!ipv4ptr[0])
28033          exit(1); /* fail */
28034        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
28035          exit(1); /* fail */
28036        /* - */
28037        ipv6res[0] = '\0';
28038        memset(ipv6a, 0, sizeof(ipv6a));
28039        ipv6a[0] = 0xfe;
28040        ipv6a[1] = 0x80;
28041        ipv6a[8] = 0x02;
28042        ipv6a[9] = 0x14;
28043        ipv6a[10] = 0x4f;
28044        ipv6a[11] = 0xff;
28045        ipv6a[12] = 0xfe;
28046        ipv6a[13] = 0x0b;
28047        ipv6a[14] = 0x76;
28048        ipv6a[15] = 0xc8;
28049        ipv6a[25] = 0x01;
28050        /* - */
28051        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
28052        if(!ipv6ptr)
28053          exit(1); /* fail */
28054        if(ipv6ptr != ipv6res)
28055          exit(1); /* fail */
28056        if(!ipv6ptr[0])
28057          exit(1); /* fail */
28058        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
28059          exit(1); /* fail */
28060        /* - */
28061        exit(0);
28062
28063 ;
28064 return 0;
28065}
28066
28067_ACEOF
28068if ac_fn_c_try_run "$LINENO"; then :
28069
28070      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28071$as_echo "yes" >&6; }
28072      tst_works_inet_ntop="yes"
28073
28074else
28075
28076      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28077$as_echo "no" >&6; }
28078      tst_works_inet_ntop="no"
28079
28080fi
28081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28082  conftest.$ac_objext conftest.beam conftest.$ac_ext
28083fi
28084
28085  fi
28086  #
28087  if test "$tst_compi_inet_ntop" = "yes" &&
28088    test "$tst_works_inet_ntop" != "no"; then
28089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
28090$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
28091    if test "x$cares_disallow_inet_ntop" != "xyes"; then
28092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28093$as_echo "yes" >&6; }
28094      tst_allow_inet_ntop="yes"
28095    else
28096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28097$as_echo "no" >&6; }
28098      tst_allow_inet_ntop="no"
28099    fi
28100  fi
28101  #
28102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
28103$as_echo_n "checking if inet_ntop might be used... " >&6; }
28104  if test "$tst_links_inet_ntop" = "yes" &&
28105     test "$tst_proto_inet_ntop" = "yes" &&
28106     test "$tst_compi_inet_ntop" = "yes" &&
28107     test "$tst_allow_inet_ntop" = "yes" &&
28108     test "$tst_works_inet_ntop" != "no"; then
28109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28110$as_echo "yes" >&6; }
28111
28112cat >>confdefs.h <<_ACEOF
28113#define HAVE_INET_NTOP 1
28114_ACEOF
28115
28116    ac_cv_func_inet_ntop="yes"
28117  else
28118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28119$as_echo "no" >&6; }
28120    ac_cv_func_inet_ntop="no"
28121  fi
28122
28123
28124        #
28125  tst_links_inet_pton="unknown"
28126  tst_proto_inet_pton="unknown"
28127  tst_compi_inet_pton="unknown"
28128  tst_works_inet_pton="unknown"
28129  tst_allow_inet_pton="unknown"
28130  #
28131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28132$as_echo_n "checking if inet_pton can be linked... " >&6; }
28133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28134/* end confdefs.h.  */
28135
28136
28137#define inet_pton innocuous_inet_pton
28138#ifdef __STDC__
28139# include <limits.h>
28140#else
28141# include <assert.h>
28142#endif
28143#undef inet_pton
28144#ifdef __cplusplus
28145extern "C"
28146#endif
28147char inet_pton ();
28148#if defined __stub_inet_pton || defined __stub___inet_pton
28149choke me
28150#endif
28151
28152int main (void)
28153{
28154return inet_pton ();
28155 ;
28156 return 0;
28157}
28158
28159_ACEOF
28160if ac_fn_c_try_link "$LINENO"; then :
28161
28162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28163$as_echo "yes" >&6; }
28164    tst_links_inet_pton="yes"
28165
28166else
28167
28168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28169$as_echo "no" >&6; }
28170    tst_links_inet_pton="no"
28171
28172fi
28173rm -f core conftest.err conftest.$ac_objext \
28174    conftest$ac_exeext conftest.$ac_ext
28175  #
28176  if test "$tst_links_inet_pton" = "yes"; then
28177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28178$as_echo_n "checking if inet_pton is prototyped... " >&6; }
28179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28180/* end confdefs.h.  */
28181
28182      $cares_includes_arpa_inet
28183
28184_ACEOF
28185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28186  $EGREP "inet_pton" >/dev/null 2>&1; then :
28187
28188      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189$as_echo "yes" >&6; }
28190      tst_proto_inet_pton="yes"
28191
28192else
28193
28194      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28195$as_echo "no" >&6; }
28196      tst_proto_inet_pton="no"
28197
28198fi
28199rm -f conftest*
28200
28201  fi
28202  #
28203  if test "$tst_proto_inet_pton" = "yes"; then
28204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28205$as_echo_n "checking if inet_pton is compilable... " >&6; }
28206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28207/* end confdefs.h.  */
28208
28209
28210        $cares_includes_arpa_inet
28211
28212int main (void)
28213{
28214
28215        if(0 != inet_pton(0, 0, 0))
28216          return 1;
28217
28218 ;
28219 return 0;
28220}
28221
28222_ACEOF
28223if ac_fn_c_try_compile "$LINENO"; then :
28224
28225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28226$as_echo "yes" >&6; }
28227      tst_compi_inet_pton="yes"
28228
28229else
28230
28231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232$as_echo "no" >&6; }
28233      tst_compi_inet_pton="no"
28234
28235fi
28236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237  fi
28238  #
28239    if test "x$cross_compiling" != "xyes" &&
28240    test "$tst_compi_inet_pton" = "yes"; then
28241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28242$as_echo_n "checking if inet_pton seems to work... " >&6; }
28243    if test "$cross_compiling" = yes; then :
28244  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28246as_fn_error $? "cannot run test program while cross compiling
28247See \`config.log' for more details" "$LINENO" 5; }
28248else
28249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28250/* end confdefs.h.  */
28251
28252
28253        $cares_includes_stdlib
28254        $cares_includes_arpa_inet
28255        $cares_includes_string
28256
28257int main (void)
28258{
28259
28260        unsigned char ipv6a[16+1];
28261        unsigned char ipv4a[4+1];
28262        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28263        const char *ipv4src = "192.168.100.1";
28264        /* - */
28265        memset(ipv4a, 1, sizeof(ipv4a));
28266        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28267          exit(1); /* fail */
28268        /* - */
28269        if( (ipv4a[0] != 0xc0) ||
28270            (ipv4a[1] != 0xa8) ||
28271            (ipv4a[2] != 0x64) ||
28272            (ipv4a[3] != 0x01) ||
28273            (ipv4a[4] != 0x01) )
28274          exit(1); /* fail */
28275        /* - */
28276        memset(ipv6a, 1, sizeof(ipv6a));
28277        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28278          exit(1); /* fail */
28279        /* - */
28280        if( (ipv6a[0]  != 0xfe) ||
28281            (ipv6a[1]  != 0x80) ||
28282            (ipv6a[8]  != 0x02) ||
28283            (ipv6a[9]  != 0x14) ||
28284            (ipv6a[10] != 0x4f) ||
28285            (ipv6a[11] != 0xff) ||
28286            (ipv6a[12] != 0xfe) ||
28287            (ipv6a[13] != 0x0b) ||
28288            (ipv6a[14] != 0x76) ||
28289            (ipv6a[15] != 0xc8) ||
28290            (ipv6a[16] != 0x01) )
28291          exit(1); /* fail */
28292        /* - */
28293        if( (ipv6a[2]  != 0x0) ||
28294            (ipv6a[3]  != 0x0) ||
28295            (ipv6a[4]  != 0x0) ||
28296            (ipv6a[5]  != 0x0) ||
28297            (ipv6a[6]  != 0x0) ||
28298            (ipv6a[7]  != 0x0) )
28299          exit(1); /* fail */
28300        /* - */
28301        exit(0);
28302
28303 ;
28304 return 0;
28305}
28306
28307_ACEOF
28308if ac_fn_c_try_run "$LINENO"; then :
28309
28310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28311$as_echo "yes" >&6; }
28312      tst_works_inet_pton="yes"
28313
28314else
28315
28316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28317$as_echo "no" >&6; }
28318      tst_works_inet_pton="no"
28319
28320fi
28321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28322  conftest.$ac_objext conftest.beam conftest.$ac_ext
28323fi
28324
28325  fi
28326  #
28327  if test "$tst_compi_inet_pton" = "yes" &&
28328    test "$tst_works_inet_pton" != "no"; then
28329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28330$as_echo_n "checking if inet_pton usage allowed... " >&6; }
28331    if test "x$cares_disallow_inet_pton" != "xyes"; then
28332      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28333$as_echo "yes" >&6; }
28334      tst_allow_inet_pton="yes"
28335    else
28336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337$as_echo "no" >&6; }
28338      tst_allow_inet_pton="no"
28339    fi
28340  fi
28341  #
28342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28343$as_echo_n "checking if inet_pton might be used... " >&6; }
28344  if test "$tst_links_inet_pton" = "yes" &&
28345     test "$tst_proto_inet_pton" = "yes" &&
28346     test "$tst_compi_inet_pton" = "yes" &&
28347     test "$tst_allow_inet_pton" = "yes" &&
28348     test "$tst_works_inet_pton" != "no"; then
28349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28350$as_echo "yes" >&6; }
28351
28352cat >>confdefs.h <<_ACEOF
28353#define HAVE_INET_PTON 1
28354_ACEOF
28355
28356    ac_cv_func_inet_pton="yes"
28357  else
28358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28359$as_echo "no" >&6; }
28360    ac_cv_func_inet_pton="no"
28361  fi
28362
28363
28364cares_includes_stropts="\
28365/* includes start */
28366#ifdef HAVE_SYS_TYPES_H
28367#  include <sys/types.h>
28368#endif
28369#ifdef HAVE_UNISTD_H
28370#  include <unistd.h>
28371#endif
28372#ifdef HAVE_SYS_SOCKET_H
28373#  include <sys/socket.h>
28374#endif
28375#ifdef HAVE_SYS_IOCTL_H
28376#  include <sys/ioctl.h>
28377#endif
28378#ifdef HAVE_STROPTS_H
28379#  include <stropts.h>
28380#endif
28381/* includes end */"
28382  for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28383do :
28384  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
28386"
28387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28388  cat >>confdefs.h <<_ACEOF
28389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28390_ACEOF
28391
28392fi
28393
28394done
28395
28396
28397
28398    #
28399  tst_links_ioctl="unknown"
28400  tst_proto_ioctl="unknown"
28401  tst_compi_ioctl="unknown"
28402  tst_allow_ioctl="unknown"
28403  #
28404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28405$as_echo_n "checking if ioctl can be linked... " >&6; }
28406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28407/* end confdefs.h.  */
28408
28409
28410#define ioctl innocuous_ioctl
28411#ifdef __STDC__
28412# include <limits.h>
28413#else
28414# include <assert.h>
28415#endif
28416#undef ioctl
28417#ifdef __cplusplus
28418extern "C"
28419#endif
28420char ioctl ();
28421#if defined __stub_ioctl || defined __stub___ioctl
28422choke me
28423#endif
28424
28425int main (void)
28426{
28427return ioctl ();
28428 ;
28429 return 0;
28430}
28431
28432_ACEOF
28433if ac_fn_c_try_link "$LINENO"; then :
28434
28435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28436$as_echo "yes" >&6; }
28437    tst_links_ioctl="yes"
28438
28439else
28440
28441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28442$as_echo "no" >&6; }
28443    tst_links_ioctl="no"
28444
28445fi
28446rm -f core conftest.err conftest.$ac_objext \
28447    conftest$ac_exeext conftest.$ac_ext
28448  #
28449  if test "$tst_links_ioctl" = "yes"; then
28450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28451$as_echo_n "checking if ioctl is prototyped... " >&6; }
28452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28453/* end confdefs.h.  */
28454
28455      $cares_includes_stropts
28456
28457_ACEOF
28458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28459  $EGREP "ioctl" >/dev/null 2>&1; then :
28460
28461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28462$as_echo "yes" >&6; }
28463      tst_proto_ioctl="yes"
28464
28465else
28466
28467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28468$as_echo "no" >&6; }
28469      tst_proto_ioctl="no"
28470
28471fi
28472rm -f conftest*
28473
28474  fi
28475  #
28476  if test "$tst_proto_ioctl" = "yes"; then
28477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28478$as_echo_n "checking if ioctl is compilable... " >&6; }
28479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480/* end confdefs.h.  */
28481
28482
28483        $cares_includes_stropts
28484
28485int main (void)
28486{
28487
28488        if(0 != ioctl(0, 0, 0))
28489          return 1;
28490
28491 ;
28492 return 0;
28493}
28494
28495_ACEOF
28496if ac_fn_c_try_compile "$LINENO"; then :
28497
28498      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28499$as_echo "yes" >&6; }
28500      tst_compi_ioctl="yes"
28501
28502else
28503
28504      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505$as_echo "no" >&6; }
28506      tst_compi_ioctl="no"
28507
28508fi
28509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28510  fi
28511  #
28512  if test "$tst_compi_ioctl" = "yes"; then
28513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
28514$as_echo_n "checking if ioctl usage allowed... " >&6; }
28515    if test "x$cares_disallow_ioctl" != "xyes"; then
28516      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28517$as_echo "yes" >&6; }
28518      tst_allow_ioctl="yes"
28519    else
28520      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28521$as_echo "no" >&6; }
28522      tst_allow_ioctl="no"
28523    fi
28524  fi
28525  #
28526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
28527$as_echo_n "checking if ioctl might be used... " >&6; }
28528  if test "$tst_links_ioctl" = "yes" &&
28529     test "$tst_proto_ioctl" = "yes" &&
28530     test "$tst_compi_ioctl" = "yes" &&
28531     test "$tst_allow_ioctl" = "yes"; then
28532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28533$as_echo "yes" >&6; }
28534
28535cat >>confdefs.h <<_ACEOF
28536#define HAVE_IOCTL 1
28537_ACEOF
28538
28539    ac_cv_func_ioctl="yes"
28540
28541  #
28542  tst_compi_ioctl_fionbio="unknown"
28543  tst_allow_ioctl_fionbio="unknown"
28544  #
28545  if test "$ac_cv_func_ioctl" = "yes"; then
28546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
28547$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
28548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28549/* end confdefs.h.  */
28550
28551
28552        $cares_includes_stropts
28553
28554int main (void)
28555{
28556
28557        int flags = 0;
28558        if(0 != ioctl(0, FIONBIO, &flags))
28559          return 1;
28560
28561 ;
28562 return 0;
28563}
28564
28565_ACEOF
28566if ac_fn_c_try_compile "$LINENO"; then :
28567
28568      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28569$as_echo "yes" >&6; }
28570      tst_compi_ioctl_fionbio="yes"
28571
28572else
28573
28574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575$as_echo "no" >&6; }
28576      tst_compi_ioctl_fionbio="no"
28577
28578fi
28579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580  fi
28581  #
28582  if test "$tst_compi_ioctl_fionbio" = "yes"; then
28583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
28584$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
28585    if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
28586      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28587$as_echo "yes" >&6; }
28588      tst_allow_ioctl_fionbio="yes"
28589    else
28590      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28591$as_echo "no" >&6; }
28592      tst_allow_ioctl_fionbio="no"
28593    fi
28594  fi
28595  #
28596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
28597$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
28598  if test "$tst_compi_ioctl_fionbio" = "yes" &&
28599     test "$tst_allow_ioctl_fionbio" = "yes"; then
28600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28601$as_echo "yes" >&6; }
28602
28603cat >>confdefs.h <<_ACEOF
28604#define HAVE_IOCTL_FIONBIO 1
28605_ACEOF
28606
28607    ac_cv_func_ioctl_fionbio="yes"
28608  else
28609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28610$as_echo "no" >&6; }
28611    ac_cv_func_ioctl_fionbio="no"
28612  fi
28613
28614
28615  #
28616  tst_compi_ioctl_siocgifaddr="unknown"
28617  tst_allow_ioctl_siocgifaddr="unknown"
28618  #
28619  if test "$ac_cv_func_ioctl" = "yes"; then
28620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
28621$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
28622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623/* end confdefs.h.  */
28624
28625
28626        $cares_includes_stropts
28627        #include <net/if.h>
28628
28629int main (void)
28630{
28631
28632        struct ifreq ifr;
28633        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
28634          return 1;
28635
28636 ;
28637 return 0;
28638}
28639
28640_ACEOF
28641if ac_fn_c_try_compile "$LINENO"; then :
28642
28643      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28644$as_echo "yes" >&6; }
28645      tst_compi_ioctl_siocgifaddr="yes"
28646
28647else
28648
28649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28650$as_echo "no" >&6; }
28651      tst_compi_ioctl_siocgifaddr="no"
28652
28653fi
28654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655  fi
28656  #
28657  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
28658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
28659$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
28660    if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
28661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28662$as_echo "yes" >&6; }
28663      tst_allow_ioctl_siocgifaddr="yes"
28664    else
28665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28666$as_echo "no" >&6; }
28667      tst_allow_ioctl_siocgifaddr="no"
28668    fi
28669  fi
28670  #
28671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
28672$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
28673  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
28674     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
28675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28676$as_echo "yes" >&6; }
28677
28678cat >>confdefs.h <<_ACEOF
28679#define HAVE_IOCTL_SIOCGIFADDR 1
28680_ACEOF
28681
28682    ac_cv_func_ioctl_siocgifaddr="yes"
28683  else
28684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28685$as_echo "no" >&6; }
28686    ac_cv_func_ioctl_siocgifaddr="no"
28687  fi
28688
28689  else
28690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28691$as_echo "no" >&6; }
28692    ac_cv_func_ioctl="no"
28693  fi
28694
28695
28696    #
28697  tst_links_ioctlsocket="unknown"
28698  tst_proto_ioctlsocket="unknown"
28699  tst_compi_ioctlsocket="unknown"
28700  tst_allow_ioctlsocket="unknown"
28701  #
28702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
28703$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
28704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705/* end confdefs.h.  */
28706
28707
28708      $cares_includes_winsock2
28709
28710int main (void)
28711{
28712
28713      if(0 != ioctlsocket(0, 0, 0))
28714        return 1;
28715
28716 ;
28717 return 0;
28718}
28719
28720_ACEOF
28721if ac_fn_c_try_link "$LINENO"; then :
28722
28723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28724$as_echo "yes" >&6; }
28725    tst_links_ioctlsocket="yes"
28726
28727else
28728
28729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28730$as_echo "no" >&6; }
28731    tst_links_ioctlsocket="no"
28732
28733fi
28734rm -f core conftest.err conftest.$ac_objext \
28735    conftest$ac_exeext conftest.$ac_ext
28736  #
28737  if test "$tst_links_ioctlsocket" = "yes"; then
28738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
28739$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
28740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741/* end confdefs.h.  */
28742
28743      $cares_includes_winsock2
28744
28745_ACEOF
28746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28747  $EGREP "ioctlsocket" >/dev/null 2>&1; then :
28748
28749      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28750$as_echo "yes" >&6; }
28751      tst_proto_ioctlsocket="yes"
28752
28753else
28754
28755      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28756$as_echo "no" >&6; }
28757      tst_proto_ioctlsocket="no"
28758
28759fi
28760rm -f conftest*
28761
28762  fi
28763  #
28764  if test "$tst_proto_ioctlsocket" = "yes"; then
28765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
28766$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
28767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28768/* end confdefs.h.  */
28769
28770
28771        $cares_includes_winsock2
28772
28773int main (void)
28774{
28775
28776        if(0 != ioctlsocket(0, 0, 0))
28777          return 1;
28778
28779 ;
28780 return 0;
28781}
28782
28783_ACEOF
28784if ac_fn_c_try_compile "$LINENO"; then :
28785
28786      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28787$as_echo "yes" >&6; }
28788      tst_compi_ioctlsocket="yes"
28789
28790else
28791
28792      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28793$as_echo "no" >&6; }
28794      tst_compi_ioctlsocket="no"
28795
28796fi
28797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28798  fi
28799  #
28800  if test "$tst_compi_ioctlsocket" = "yes"; then
28801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
28802$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
28803    if test "x$cares_disallow_ioctlsocket" != "xyes"; then
28804      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28805$as_echo "yes" >&6; }
28806      tst_allow_ioctlsocket="yes"
28807    else
28808      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28809$as_echo "no" >&6; }
28810      tst_allow_ioctlsocket="no"
28811    fi
28812  fi
28813  #
28814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
28815$as_echo_n "checking if ioctlsocket might be used... " >&6; }
28816  if test "$tst_links_ioctlsocket" = "yes" &&
28817     test "$tst_proto_ioctlsocket" = "yes" &&
28818     test "$tst_compi_ioctlsocket" = "yes" &&
28819     test "$tst_allow_ioctlsocket" = "yes"; then
28820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28821$as_echo "yes" >&6; }
28822
28823cat >>confdefs.h <<_ACEOF
28824#define HAVE_IOCTLSOCKET 1
28825_ACEOF
28826
28827    ac_cv_func_ioctlsocket="yes"
28828
28829  #
28830  tst_compi_ioctlsocket_fionbio="unknown"
28831  tst_allow_ioctlsocket_fionbio="unknown"
28832  #
28833  if test "$ac_cv_func_ioctlsocket" = "yes"; then
28834    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
28835$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
28836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28837/* end confdefs.h.  */
28838
28839
28840        $cares_includes_winsock2
28841
28842int main (void)
28843{
28844
28845        int flags = 0;
28846        if(0 != ioctlsocket(0, FIONBIO, &flags))
28847          return 1;
28848
28849 ;
28850 return 0;
28851}
28852
28853_ACEOF
28854if ac_fn_c_try_compile "$LINENO"; then :
28855
28856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28857$as_echo "yes" >&6; }
28858      tst_compi_ioctlsocket_fionbio="yes"
28859
28860else
28861
28862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28863$as_echo "no" >&6; }
28864      tst_compi_ioctlsocket_fionbio="no"
28865
28866fi
28867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868  fi
28869  #
28870  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
28871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
28872$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
28873    if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
28874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28875$as_echo "yes" >&6; }
28876      tst_allow_ioctlsocket_fionbio="yes"
28877    else
28878      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28879$as_echo "no" >&6; }
28880      tst_allow_ioctlsocket_fionbio="no"
28881    fi
28882  fi
28883  #
28884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
28885$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
28886  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
28887     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
28888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28889$as_echo "yes" >&6; }
28890
28891cat >>confdefs.h <<_ACEOF
28892#define HAVE_IOCTLSOCKET_FIONBIO 1
28893_ACEOF
28894
28895    ac_cv_func_ioctlsocket_fionbio="yes"
28896  else
28897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28898$as_echo "no" >&6; }
28899    ac_cv_func_ioctlsocket_fionbio="no"
28900  fi
28901
28902  else
28903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28904$as_echo "no" >&6; }
28905    ac_cv_func_ioctlsocket="no"
28906  fi
28907
28908
28909    #
28910  tst_links_ioctlsocket_camel="unknown"
28911  tst_proto_ioctlsocket_camel="unknown"
28912  tst_compi_ioctlsocket_camel="unknown"
28913  tst_allow_ioctlsocket_camel="unknown"
28914  #
28915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
28916$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
28917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28918/* end confdefs.h.  */
28919
28920
28921#define IoctlSocket innocuous_IoctlSocket
28922#ifdef __STDC__
28923# include <limits.h>
28924#else
28925# include <assert.h>
28926#endif
28927#undef IoctlSocket
28928#ifdef __cplusplus
28929extern "C"
28930#endif
28931char IoctlSocket ();
28932#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
28933choke me
28934#endif
28935
28936int main (void)
28937{
28938return IoctlSocket ();
28939 ;
28940 return 0;
28941}
28942
28943_ACEOF
28944if ac_fn_c_try_link "$LINENO"; then :
28945
28946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28947$as_echo "yes" >&6; }
28948    tst_links_ioctlsocket_camel="yes"
28949
28950else
28951
28952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28953$as_echo "no" >&6; }
28954    tst_links_ioctlsocket_camel="no"
28955
28956fi
28957rm -f core conftest.err conftest.$ac_objext \
28958    conftest$ac_exeext conftest.$ac_ext
28959  #
28960  if test "$tst_links_ioctlsocket_camel" = "yes"; then
28961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
28962$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
28963    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28964/* end confdefs.h.  */
28965
28966      $cares_includes_stropts
28967
28968_ACEOF
28969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28970  $EGREP "IoctlSocket" >/dev/null 2>&1; then :
28971
28972      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28973$as_echo "yes" >&6; }
28974      tst_proto_ioctlsocket_camel="yes"
28975
28976else
28977
28978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28979$as_echo "no" >&6; }
28980      tst_proto_ioctlsocket_camel="no"
28981
28982fi
28983rm -f conftest*
28984
28985  fi
28986  #
28987  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
28988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
28989$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
28990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28991/* end confdefs.h.  */
28992
28993
28994        $cares_includes_stropts
28995
28996int main (void)
28997{
28998
28999        if(0 != IoctlSocket(0, 0, 0))
29000          return 1;
29001
29002 ;
29003 return 0;
29004}
29005
29006_ACEOF
29007if ac_fn_c_try_compile "$LINENO"; then :
29008
29009      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29010$as_echo "yes" >&6; }
29011      tst_compi_ioctlsocket_camel="yes"
29012
29013else
29014
29015      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29016$as_echo "no" >&6; }
29017      tst_compi_ioctlsocket_camel="no"
29018
29019fi
29020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021  fi
29022  #
29023  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
29024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
29025$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
29026    if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
29027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29028$as_echo "yes" >&6; }
29029      tst_allow_ioctlsocket_camel="yes"
29030    else
29031      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29032$as_echo "no" >&6; }
29033      tst_allow_ioctlsocket_camel="no"
29034    fi
29035  fi
29036  #
29037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
29038$as_echo_n "checking if IoctlSocket might be used... " >&6; }
29039  if test "$tst_links_ioctlsocket_camel" = "yes" &&
29040     test "$tst_proto_ioctlsocket_camel" = "yes" &&
29041     test "$tst_compi_ioctlsocket_camel" = "yes" &&
29042     test "$tst_allow_ioctlsocket_camel" = "yes"; then
29043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29044$as_echo "yes" >&6; }
29045
29046cat >>confdefs.h <<_ACEOF
29047#define HAVE_IOCTLSOCKET_CAMEL 1
29048_ACEOF
29049
29050    ac_cv_func_ioctlsocket_camel="yes"
29051
29052  #
29053  tst_compi_ioctlsocket_camel_fionbio="unknown"
29054  tst_allow_ioctlsocket_camel_fionbio="unknown"
29055  #
29056  if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
29057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
29058$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
29059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29060/* end confdefs.h.  */
29061
29062
29063        $cares_includes_stropts
29064
29065int main (void)
29066{
29067
29068        long flags = 0;
29069        if(0 != ioctlsocket(0, FIONBIO, &flags))
29070          return 1;
29071
29072 ;
29073 return 0;
29074}
29075
29076_ACEOF
29077if ac_fn_c_try_compile "$LINENO"; then :
29078
29079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29080$as_echo "yes" >&6; }
29081      tst_compi_ioctlsocket_camel_fionbio="yes"
29082
29083else
29084
29085      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29086$as_echo "no" >&6; }
29087      tst_compi_ioctlsocket_camel_fionbio="no"
29088
29089fi
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091  fi
29092  #
29093  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
29094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
29095$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
29096    if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
29097      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29098$as_echo "yes" >&6; }
29099      tst_allow_ioctlsocket_camel_fionbio="yes"
29100    else
29101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29102$as_echo "no" >&6; }
29103      tst_allow_ioctlsocket_camel_fionbio="no"
29104    fi
29105  fi
29106  #
29107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
29108$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
29109  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
29110     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
29111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112$as_echo "yes" >&6; }
29113
29114cat >>confdefs.h <<_ACEOF
29115#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
29116_ACEOF
29117
29118    ac_cv_func_ioctlsocket_camel_fionbio="yes"
29119  else
29120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29121$as_echo "no" >&6; }
29122    ac_cv_func_ioctlsocket_camel_fionbio="no"
29123  fi
29124
29125  else
29126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29127$as_echo "no" >&6; }
29128    ac_cv_func_ioctlsocket_camel="no"
29129  fi
29130
29131
29132      #
29133  tst_links_setsockopt="unknown"
29134  tst_proto_setsockopt="unknown"
29135  tst_compi_setsockopt="unknown"
29136  tst_allow_setsockopt="unknown"
29137  #
29138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
29139$as_echo_n "checking if setsockopt can be linked... " >&6; }
29140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29141/* end confdefs.h.  */
29142
29143
29144      $cares_includes_winsock2
29145      $cares_includes_sys_socket
29146
29147int main (void)
29148{
29149
29150      if(0 != setsockopt(0, 0, 0, 0, 0))
29151        return 1;
29152
29153 ;
29154 return 0;
29155}
29156
29157_ACEOF
29158if ac_fn_c_try_link "$LINENO"; then :
29159
29160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161$as_echo "yes" >&6; }
29162    tst_links_setsockopt="yes"
29163
29164else
29165
29166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29167$as_echo "no" >&6; }
29168    tst_links_setsockopt="no"
29169
29170fi
29171rm -f core conftest.err conftest.$ac_objext \
29172    conftest$ac_exeext conftest.$ac_ext
29173  #
29174  if test "$tst_links_setsockopt" = "yes"; then
29175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
29176$as_echo_n "checking if setsockopt is prototyped... " >&6; }
29177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178/* end confdefs.h.  */
29179
29180      $cares_includes_winsock2
29181      $cares_includes_sys_socket
29182
29183_ACEOF
29184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29185  $EGREP "setsockopt" >/dev/null 2>&1; then :
29186
29187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29188$as_echo "yes" >&6; }
29189      tst_proto_setsockopt="yes"
29190
29191else
29192
29193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29194$as_echo "no" >&6; }
29195      tst_proto_setsockopt="no"
29196
29197fi
29198rm -f conftest*
29199
29200  fi
29201  #
29202  if test "$tst_proto_setsockopt" = "yes"; then
29203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
29204$as_echo_n "checking if setsockopt is compilable... " >&6; }
29205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29206/* end confdefs.h.  */
29207
29208
29209        $cares_includes_winsock2
29210        $cares_includes_sys_socket
29211
29212int main (void)
29213{
29214
29215        if(0 != setsockopt(0, 0, 0, 0, 0))
29216          return 1;
29217
29218 ;
29219 return 0;
29220}
29221
29222_ACEOF
29223if ac_fn_c_try_compile "$LINENO"; then :
29224
29225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29226$as_echo "yes" >&6; }
29227      tst_compi_setsockopt="yes"
29228
29229else
29230
29231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232$as_echo "no" >&6; }
29233      tst_compi_setsockopt="no"
29234
29235fi
29236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29237  fi
29238  #
29239  if test "$tst_compi_setsockopt" = "yes"; then
29240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
29241$as_echo_n "checking if setsockopt usage allowed... " >&6; }
29242    if test "x$cares_disallow_setsockopt" != "xyes"; then
29243      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29244$as_echo "yes" >&6; }
29245      tst_allow_setsockopt="yes"
29246    else
29247      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248$as_echo "no" >&6; }
29249      tst_allow_setsockopt="no"
29250    fi
29251  fi
29252  #
29253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
29254$as_echo_n "checking if setsockopt might be used... " >&6; }
29255  if test "$tst_links_setsockopt" = "yes" &&
29256     test "$tst_proto_setsockopt" = "yes" &&
29257     test "$tst_compi_setsockopt" = "yes" &&
29258     test "$tst_allow_setsockopt" = "yes"; then
29259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29260$as_echo "yes" >&6; }
29261
29262cat >>confdefs.h <<_ACEOF
29263#define HAVE_SETSOCKOPT 1
29264_ACEOF
29265
29266    ac_cv_func_setsockopt="yes"
29267
29268  #
29269  tst_compi_setsockopt_so_nonblock="unknown"
29270  tst_allow_setsockopt_so_nonblock="unknown"
29271  #
29272  if test "$ac_cv_func_setsockopt" = "yes"; then
29273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
29274$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
29275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29276/* end confdefs.h.  */
29277
29278
29279        $cares_includes_winsock2
29280        $cares_includes_sys_socket
29281
29282int main (void)
29283{
29284
29285        if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
29286          return 1;
29287
29288 ;
29289 return 0;
29290}
29291
29292_ACEOF
29293if ac_fn_c_try_compile "$LINENO"; then :
29294
29295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29296$as_echo "yes" >&6; }
29297      tst_compi_setsockopt_so_nonblock="yes"
29298
29299else
29300
29301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29302$as_echo "no" >&6; }
29303      tst_compi_setsockopt_so_nonblock="no"
29304
29305fi
29306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307  fi
29308  #
29309  if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
29310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
29311$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
29312    if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
29313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29314$as_echo "yes" >&6; }
29315      tst_allow_setsockopt_so_nonblock="yes"
29316    else
29317      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29318$as_echo "no" >&6; }
29319      tst_allow_setsockopt_so_nonblock="no"
29320    fi
29321  fi
29322  #
29323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
29324$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
29325  if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
29326     test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
29327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29328$as_echo "yes" >&6; }
29329
29330cat >>confdefs.h <<_ACEOF
29331#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
29332_ACEOF
29333
29334    ac_cv_func_setsockopt_so_nonblock="yes"
29335  else
29336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29337$as_echo "no" >&6; }
29338    ac_cv_func_setsockopt_so_nonblock="no"
29339  fi
29340
29341  else
29342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29343$as_echo "no" >&6; }
29344    ac_cv_func_setsockopt="no"
29345  fi
29346
29347
29348        #
29349  tst_links_socket="unknown"
29350  tst_proto_socket="unknown"
29351  tst_compi_socket="unknown"
29352  tst_allow_socket="unknown"
29353  #
29354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
29355$as_echo_n "checking if socket can be linked... " >&6; }
29356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29357/* end confdefs.h.  */
29358
29359
29360      $cares_includes_winsock2
29361      $cares_includes_sys_socket
29362      $cares_includes_socket
29363
29364int main (void)
29365{
29366
29367      if(0 != socket(0, 0, 0))
29368        return 1;
29369
29370 ;
29371 return 0;
29372}
29373
29374_ACEOF
29375if ac_fn_c_try_link "$LINENO"; then :
29376
29377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378$as_echo "yes" >&6; }
29379    tst_links_socket="yes"
29380
29381else
29382
29383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29384$as_echo "no" >&6; }
29385    tst_links_socket="no"
29386
29387fi
29388rm -f core conftest.err conftest.$ac_objext \
29389    conftest$ac_exeext conftest.$ac_ext
29390  #
29391  if test "$tst_links_socket" = "yes"; then
29392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
29393$as_echo_n "checking if socket is prototyped... " >&6; }
29394    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29395/* end confdefs.h.  */
29396
29397      $cares_includes_winsock2
29398      $cares_includes_sys_socket
29399      $cares_includes_socket
29400
29401_ACEOF
29402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29403  $EGREP "socket" >/dev/null 2>&1; then :
29404
29405      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29406$as_echo "yes" >&6; }
29407      tst_proto_socket="yes"
29408
29409else
29410
29411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29412$as_echo "no" >&6; }
29413      tst_proto_socket="no"
29414
29415fi
29416rm -f conftest*
29417
29418  fi
29419  #
29420  if test "$tst_proto_socket" = "yes"; then
29421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
29422$as_echo_n "checking if socket is compilable... " >&6; }
29423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29424/* end confdefs.h.  */
29425
29426
29427        $cares_includes_winsock2
29428        $cares_includes_sys_socket
29429        $cares_includes_socket
29430
29431int main (void)
29432{
29433
29434        if(0 != socket(0, 0, 0))
29435          return 1;
29436
29437 ;
29438 return 0;
29439}
29440
29441_ACEOF
29442if ac_fn_c_try_compile "$LINENO"; then :
29443
29444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29445$as_echo "yes" >&6; }
29446      tst_compi_socket="yes"
29447
29448else
29449
29450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29451$as_echo "no" >&6; }
29452      tst_compi_socket="no"
29453
29454fi
29455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29456  fi
29457  #
29458  if test "$tst_compi_socket" = "yes"; then
29459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
29460$as_echo_n "checking if socket usage allowed... " >&6; }
29461    if test "x$cares_disallow_socket" != "xyes"; then
29462      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29463$as_echo "yes" >&6; }
29464      tst_allow_socket="yes"
29465    else
29466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29467$as_echo "no" >&6; }
29468      tst_allow_socket="no"
29469    fi
29470  fi
29471  #
29472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
29473$as_echo_n "checking if socket might be used... " >&6; }
29474  if test "$tst_links_socket" = "yes" &&
29475     test "$tst_proto_socket" = "yes" &&
29476     test "$tst_compi_socket" = "yes" &&
29477     test "$tst_allow_socket" = "yes"; then
29478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29479$as_echo "yes" >&6; }
29480
29481cat >>confdefs.h <<_ACEOF
29482#define HAVE_SOCKET 1
29483_ACEOF
29484
29485    ac_cv_func_socket="yes"
29486  else
29487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29488$as_echo "no" >&6; }
29489    ac_cv_func_socket="no"
29490  fi
29491
29492
29493    #
29494  tst_links_strcasecmp="unknown"
29495  tst_proto_strcasecmp="unknown"
29496  tst_compi_strcasecmp="unknown"
29497  tst_allow_strcasecmp="unknown"
29498  #
29499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
29500$as_echo_n "checking if strcasecmp can be linked... " >&6; }
29501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29502/* end confdefs.h.  */
29503
29504
29505#define strcasecmp innocuous_strcasecmp
29506#ifdef __STDC__
29507# include <limits.h>
29508#else
29509# include <assert.h>
29510#endif
29511#undef strcasecmp
29512#ifdef __cplusplus
29513extern "C"
29514#endif
29515char strcasecmp ();
29516#if defined __stub_strcasecmp || defined __stub___strcasecmp
29517choke me
29518#endif
29519
29520int main (void)
29521{
29522return strcasecmp ();
29523 ;
29524 return 0;
29525}
29526
29527_ACEOF
29528if ac_fn_c_try_link "$LINENO"; then :
29529
29530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531$as_echo "yes" >&6; }
29532    tst_links_strcasecmp="yes"
29533
29534else
29535
29536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29537$as_echo "no" >&6; }
29538    tst_links_strcasecmp="no"
29539
29540fi
29541rm -f core conftest.err conftest.$ac_objext \
29542    conftest$ac_exeext conftest.$ac_ext
29543  #
29544  if test "$tst_links_strcasecmp" = "yes"; then
29545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
29546$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
29547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29548/* end confdefs.h.  */
29549
29550      $cares_includes_string
29551
29552_ACEOF
29553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29554  $EGREP "strcasecmp" >/dev/null 2>&1; then :
29555
29556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29557$as_echo "yes" >&6; }
29558      tst_proto_strcasecmp="yes"
29559
29560else
29561
29562      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29563$as_echo "no" >&6; }
29564      tst_proto_strcasecmp="no"
29565
29566fi
29567rm -f conftest*
29568
29569  fi
29570  #
29571  if test "$tst_proto_strcasecmp" = "yes"; then
29572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
29573$as_echo_n "checking if strcasecmp is compilable... " >&6; }
29574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29575/* end confdefs.h.  */
29576
29577
29578        $cares_includes_string
29579
29580int main (void)
29581{
29582
29583        if(0 != strcasecmp(0, 0))
29584          return 1;
29585
29586 ;
29587 return 0;
29588}
29589
29590_ACEOF
29591if ac_fn_c_try_compile "$LINENO"; then :
29592
29593      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29594$as_echo "yes" >&6; }
29595      tst_compi_strcasecmp="yes"
29596
29597else
29598
29599      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29600$as_echo "no" >&6; }
29601      tst_compi_strcasecmp="no"
29602
29603fi
29604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29605  fi
29606  #
29607  if test "$tst_compi_strcasecmp" = "yes"; then
29608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
29609$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
29610    if test "x$cares_disallow_strcasecmp" != "xyes"; then
29611      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29612$as_echo "yes" >&6; }
29613      tst_allow_strcasecmp="yes"
29614    else
29615      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29616$as_echo "no" >&6; }
29617      tst_allow_strcasecmp="no"
29618    fi
29619  fi
29620  #
29621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
29622$as_echo_n "checking if strcasecmp might be used... " >&6; }
29623  if test "$tst_links_strcasecmp" = "yes" &&
29624     test "$tst_proto_strcasecmp" = "yes" &&
29625     test "$tst_compi_strcasecmp" = "yes" &&
29626     test "$tst_allow_strcasecmp" = "yes"; then
29627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29628$as_echo "yes" >&6; }
29629
29630cat >>confdefs.h <<_ACEOF
29631#define HAVE_STRCASECMP 1
29632_ACEOF
29633
29634    ac_cv_func_strcasecmp="yes"
29635  else
29636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29637$as_echo "no" >&6; }
29638    ac_cv_func_strcasecmp="no"
29639  fi
29640
29641
29642    #
29643  tst_links_strcmpi="unknown"
29644  tst_proto_strcmpi="unknown"
29645  tst_compi_strcmpi="unknown"
29646  tst_allow_strcmpi="unknown"
29647  #
29648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
29649$as_echo_n "checking if strcmpi can be linked... " >&6; }
29650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29651/* end confdefs.h.  */
29652
29653
29654#define strcmpi innocuous_strcmpi
29655#ifdef __STDC__
29656# include <limits.h>
29657#else
29658# include <assert.h>
29659#endif
29660#undef strcmpi
29661#ifdef __cplusplus
29662extern "C"
29663#endif
29664char strcmpi ();
29665#if defined __stub_strcmpi || defined __stub___strcmpi
29666choke me
29667#endif
29668
29669int main (void)
29670{
29671return strcmpi ();
29672 ;
29673 return 0;
29674}
29675
29676_ACEOF
29677if ac_fn_c_try_link "$LINENO"; then :
29678
29679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29680$as_echo "yes" >&6; }
29681    tst_links_strcmpi="yes"
29682
29683else
29684
29685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29686$as_echo "no" >&6; }
29687    tst_links_strcmpi="no"
29688
29689fi
29690rm -f core conftest.err conftest.$ac_objext \
29691    conftest$ac_exeext conftest.$ac_ext
29692  #
29693  if test "$tst_links_strcmpi" = "yes"; then
29694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
29695$as_echo_n "checking if strcmpi is prototyped... " >&6; }
29696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697/* end confdefs.h.  */
29698
29699      $cares_includes_string
29700
29701_ACEOF
29702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29703  $EGREP "strcmpi" >/dev/null 2>&1; then :
29704
29705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29706$as_echo "yes" >&6; }
29707      tst_proto_strcmpi="yes"
29708
29709else
29710
29711      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29712$as_echo "no" >&6; }
29713      tst_proto_strcmpi="no"
29714
29715fi
29716rm -f conftest*
29717
29718  fi
29719  #
29720  if test "$tst_proto_strcmpi" = "yes"; then
29721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
29722$as_echo_n "checking if strcmpi is compilable... " >&6; }
29723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724/* end confdefs.h.  */
29725
29726
29727        $cares_includes_string
29728
29729int main (void)
29730{
29731
29732        if(0 != strcmpi(0, 0))
29733          return 1;
29734
29735 ;
29736 return 0;
29737}
29738
29739_ACEOF
29740if ac_fn_c_try_compile "$LINENO"; then :
29741
29742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29743$as_echo "yes" >&6; }
29744      tst_compi_strcmpi="yes"
29745
29746else
29747
29748      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29749$as_echo "no" >&6; }
29750      tst_compi_strcmpi="no"
29751
29752fi
29753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29754  fi
29755  #
29756  if test "$tst_compi_strcmpi" = "yes"; then
29757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
29758$as_echo_n "checking if strcmpi usage allowed... " >&6; }
29759    if test "x$cares_disallow_strcmpi" != "xyes"; then
29760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29761$as_echo "yes" >&6; }
29762      tst_allow_strcmpi="yes"
29763    else
29764      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29765$as_echo "no" >&6; }
29766      tst_allow_strcmpi="no"
29767    fi
29768  fi
29769  #
29770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
29771$as_echo_n "checking if strcmpi might be used... " >&6; }
29772  if test "$tst_links_strcmpi" = "yes" &&
29773     test "$tst_proto_strcmpi" = "yes" &&
29774     test "$tst_compi_strcmpi" = "yes" &&
29775     test "$tst_allow_strcmpi" = "yes"; then
29776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29777$as_echo "yes" >&6; }
29778
29779cat >>confdefs.h <<_ACEOF
29780#define HAVE_STRCMPI 1
29781_ACEOF
29782
29783    ac_cv_func_strcmpi="yes"
29784  else
29785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29786$as_echo "no" >&6; }
29787    ac_cv_func_strcmpi="no"
29788  fi
29789
29790
29791    #
29792  tst_links_strdup="unknown"
29793  tst_proto_strdup="unknown"
29794  tst_compi_strdup="unknown"
29795  tst_allow_strdup="unknown"
29796  #
29797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
29798$as_echo_n "checking if strdup can be linked... " >&6; }
29799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29800/* end confdefs.h.  */
29801
29802
29803#define strdup innocuous_strdup
29804#ifdef __STDC__
29805# include <limits.h>
29806#else
29807# include <assert.h>
29808#endif
29809#undef strdup
29810#ifdef __cplusplus
29811extern "C"
29812#endif
29813char strdup ();
29814#if defined __stub_strdup || defined __stub___strdup
29815choke me
29816#endif
29817
29818int main (void)
29819{
29820return strdup ();
29821 ;
29822 return 0;
29823}
29824
29825_ACEOF
29826if ac_fn_c_try_link "$LINENO"; then :
29827
29828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29829$as_echo "yes" >&6; }
29830    tst_links_strdup="yes"
29831
29832else
29833
29834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29835$as_echo "no" >&6; }
29836    tst_links_strdup="no"
29837
29838fi
29839rm -f core conftest.err conftest.$ac_objext \
29840    conftest$ac_exeext conftest.$ac_ext
29841  #
29842  if test "$tst_links_strdup" = "yes"; then
29843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
29844$as_echo_n "checking if strdup is prototyped... " >&6; }
29845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29846/* end confdefs.h.  */
29847
29848      $cares_includes_string
29849
29850_ACEOF
29851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29852  $EGREP "strdup" >/dev/null 2>&1; then :
29853
29854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29855$as_echo "yes" >&6; }
29856      tst_proto_strdup="yes"
29857
29858else
29859
29860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29861$as_echo "no" >&6; }
29862      tst_proto_strdup="no"
29863
29864fi
29865rm -f conftest*
29866
29867  fi
29868  #
29869  if test "$tst_proto_strdup" = "yes"; then
29870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
29871$as_echo_n "checking if strdup is compilable... " >&6; }
29872    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29873/* end confdefs.h.  */
29874
29875
29876        $cares_includes_string
29877
29878int main (void)
29879{
29880
29881        if(0 != strdup(0))
29882          return 1;
29883
29884 ;
29885 return 0;
29886}
29887
29888_ACEOF
29889if ac_fn_c_try_compile "$LINENO"; then :
29890
29891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29892$as_echo "yes" >&6; }
29893      tst_compi_strdup="yes"
29894
29895else
29896
29897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29898$as_echo "no" >&6; }
29899      tst_compi_strdup="no"
29900
29901fi
29902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29903  fi
29904  #
29905  if test "$tst_compi_strdup" = "yes"; then
29906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
29907$as_echo_n "checking if strdup usage allowed... " >&6; }
29908    if test "x$cares_disallow_strdup" != "xyes"; then
29909      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29910$as_echo "yes" >&6; }
29911      tst_allow_strdup="yes"
29912    else
29913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29914$as_echo "no" >&6; }
29915      tst_allow_strdup="no"
29916    fi
29917  fi
29918  #
29919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
29920$as_echo_n "checking if strdup might be used... " >&6; }
29921  if test "$tst_links_strdup" = "yes" &&
29922     test "$tst_proto_strdup" = "yes" &&
29923     test "$tst_compi_strdup" = "yes" &&
29924     test "$tst_allow_strdup" = "yes"; then
29925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29926$as_echo "yes" >&6; }
29927
29928cat >>confdefs.h <<_ACEOF
29929#define HAVE_STRDUP 1
29930_ACEOF
29931
29932    ac_cv_func_strdup="yes"
29933  else
29934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29935$as_echo "no" >&6; }
29936    ac_cv_func_strdup="no"
29937  fi
29938
29939
29940    #
29941  tst_links_stricmp="unknown"
29942  tst_proto_stricmp="unknown"
29943  tst_compi_stricmp="unknown"
29944  tst_allow_stricmp="unknown"
29945  #
29946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
29947$as_echo_n "checking if stricmp can be linked... " >&6; }
29948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29949/* end confdefs.h.  */
29950
29951
29952#define stricmp innocuous_stricmp
29953#ifdef __STDC__
29954# include <limits.h>
29955#else
29956# include <assert.h>
29957#endif
29958#undef stricmp
29959#ifdef __cplusplus
29960extern "C"
29961#endif
29962char stricmp ();
29963#if defined __stub_stricmp || defined __stub___stricmp
29964choke me
29965#endif
29966
29967int main (void)
29968{
29969return stricmp ();
29970 ;
29971 return 0;
29972}
29973
29974_ACEOF
29975if ac_fn_c_try_link "$LINENO"; then :
29976
29977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29978$as_echo "yes" >&6; }
29979    tst_links_stricmp="yes"
29980
29981else
29982
29983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984$as_echo "no" >&6; }
29985    tst_links_stricmp="no"
29986
29987fi
29988rm -f core conftest.err conftest.$ac_objext \
29989    conftest$ac_exeext conftest.$ac_ext
29990  #
29991  if test "$tst_links_stricmp" = "yes"; then
29992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
29993$as_echo_n "checking if stricmp is prototyped... " >&6; }
29994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29995/* end confdefs.h.  */
29996
29997      $cares_includes_string
29998
29999_ACEOF
30000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30001  $EGREP "stricmp" >/dev/null 2>&1; then :
30002
30003      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30004$as_echo "yes" >&6; }
30005      tst_proto_stricmp="yes"
30006
30007else
30008
30009      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30010$as_echo "no" >&6; }
30011      tst_proto_stricmp="no"
30012
30013fi
30014rm -f conftest*
30015
30016  fi
30017  #
30018  if test "$tst_proto_stricmp" = "yes"; then
30019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
30020$as_echo_n "checking if stricmp is compilable... " >&6; }
30021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30022/* end confdefs.h.  */
30023
30024
30025        $cares_includes_string
30026
30027int main (void)
30028{
30029
30030        if(0 != stricmp(0, 0))
30031          return 1;
30032
30033 ;
30034 return 0;
30035}
30036
30037_ACEOF
30038if ac_fn_c_try_compile "$LINENO"; then :
30039
30040      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041$as_echo "yes" >&6; }
30042      tst_compi_stricmp="yes"
30043
30044else
30045
30046      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047$as_echo "no" >&6; }
30048      tst_compi_stricmp="no"
30049
30050fi
30051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052  fi
30053  #
30054  if test "$tst_compi_stricmp" = "yes"; then
30055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
30056$as_echo_n "checking if stricmp usage allowed... " >&6; }
30057    if test "x$cares_disallow_stricmp" != "xyes"; then
30058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30059$as_echo "yes" >&6; }
30060      tst_allow_stricmp="yes"
30061    else
30062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30063$as_echo "no" >&6; }
30064      tst_allow_stricmp="no"
30065    fi
30066  fi
30067  #
30068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
30069$as_echo_n "checking if stricmp might be used... " >&6; }
30070  if test "$tst_links_stricmp" = "yes" &&
30071     test "$tst_proto_stricmp" = "yes" &&
30072     test "$tst_compi_stricmp" = "yes" &&
30073     test "$tst_allow_stricmp" = "yes"; then
30074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30075$as_echo "yes" >&6; }
30076
30077cat >>confdefs.h <<_ACEOF
30078#define HAVE_STRICMP 1
30079_ACEOF
30080
30081    ac_cv_func_stricmp="yes"
30082  else
30083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084$as_echo "no" >&6; }
30085    ac_cv_func_stricmp="no"
30086  fi
30087
30088
30089    #
30090  tst_links_strncasecmp="unknown"
30091  tst_proto_strncasecmp="unknown"
30092  tst_compi_strncasecmp="unknown"
30093  tst_allow_strncasecmp="unknown"
30094  #
30095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
30096$as_echo_n "checking if strncasecmp can be linked... " >&6; }
30097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30098/* end confdefs.h.  */
30099
30100
30101#define strncasecmp innocuous_strncasecmp
30102#ifdef __STDC__
30103# include <limits.h>
30104#else
30105# include <assert.h>
30106#endif
30107#undef strncasecmp
30108#ifdef __cplusplus
30109extern "C"
30110#endif
30111char strncasecmp ();
30112#if defined __stub_strncasecmp || defined __stub___strncasecmp
30113choke me
30114#endif
30115
30116int main (void)
30117{
30118return strncasecmp ();
30119 ;
30120 return 0;
30121}
30122
30123_ACEOF
30124if ac_fn_c_try_link "$LINENO"; then :
30125
30126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30127$as_echo "yes" >&6; }
30128    tst_links_strncasecmp="yes"
30129
30130else
30131
30132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30133$as_echo "no" >&6; }
30134    tst_links_strncasecmp="no"
30135
30136fi
30137rm -f core conftest.err conftest.$ac_objext \
30138    conftest$ac_exeext conftest.$ac_ext
30139  #
30140  if test "$tst_links_strncasecmp" = "yes"; then
30141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
30142$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
30143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30144/* end confdefs.h.  */
30145
30146      $cares_includes_string
30147
30148_ACEOF
30149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30150  $EGREP "strncasecmp" >/dev/null 2>&1; then :
30151
30152      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30153$as_echo "yes" >&6; }
30154      tst_proto_strncasecmp="yes"
30155
30156else
30157
30158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30159$as_echo "no" >&6; }
30160      tst_proto_strncasecmp="no"
30161
30162fi
30163rm -f conftest*
30164
30165  fi
30166  #
30167  if test "$tst_proto_strncasecmp" = "yes"; then
30168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
30169$as_echo_n "checking if strncasecmp is compilable... " >&6; }
30170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171/* end confdefs.h.  */
30172
30173
30174        $cares_includes_string
30175
30176int main (void)
30177{
30178
30179        if(0 != strncasecmp(0, 0, 0))
30180          return 1;
30181
30182 ;
30183 return 0;
30184}
30185
30186_ACEOF
30187if ac_fn_c_try_compile "$LINENO"; then :
30188
30189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30190$as_echo "yes" >&6; }
30191      tst_compi_strncasecmp="yes"
30192
30193else
30194
30195      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30196$as_echo "no" >&6; }
30197      tst_compi_strncasecmp="no"
30198
30199fi
30200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30201  fi
30202  #
30203  if test "$tst_compi_strncasecmp" = "yes"; then
30204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
30205$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
30206    if test "x$cares_disallow_strncasecmp" != "xyes"; then
30207      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30208$as_echo "yes" >&6; }
30209      tst_allow_strncasecmp="yes"
30210    else
30211      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212$as_echo "no" >&6; }
30213      tst_allow_strncasecmp="no"
30214    fi
30215  fi
30216  #
30217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
30218$as_echo_n "checking if strncasecmp might be used... " >&6; }
30219  if test "$tst_links_strncasecmp" = "yes" &&
30220     test "$tst_proto_strncasecmp" = "yes" &&
30221     test "$tst_compi_strncasecmp" = "yes" &&
30222     test "$tst_allow_strncasecmp" = "yes"; then
30223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30224$as_echo "yes" >&6; }
30225
30226cat >>confdefs.h <<_ACEOF
30227#define HAVE_STRNCASECMP 1
30228_ACEOF
30229
30230    ac_cv_func_strncasecmp="yes"
30231  else
30232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30233$as_echo "no" >&6; }
30234    ac_cv_func_strncasecmp="no"
30235  fi
30236
30237
30238    #
30239  tst_links_strncmpi="unknown"
30240  tst_proto_strncmpi="unknown"
30241  tst_compi_strncmpi="unknown"
30242  tst_allow_strncmpi="unknown"
30243  #
30244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
30245$as_echo_n "checking if strncmpi can be linked... " >&6; }
30246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30247/* end confdefs.h.  */
30248
30249
30250#define strncmpi innocuous_strncmpi
30251#ifdef __STDC__
30252# include <limits.h>
30253#else
30254# include <assert.h>
30255#endif
30256#undef strncmpi
30257#ifdef __cplusplus
30258extern "C"
30259#endif
30260char strncmpi ();
30261#if defined __stub_strncmpi || defined __stub___strncmpi
30262choke me
30263#endif
30264
30265int main (void)
30266{
30267return strncmpi ();
30268 ;
30269 return 0;
30270}
30271
30272_ACEOF
30273if ac_fn_c_try_link "$LINENO"; then :
30274
30275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30276$as_echo "yes" >&6; }
30277    tst_links_strncmpi="yes"
30278
30279else
30280
30281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30282$as_echo "no" >&6; }
30283    tst_links_strncmpi="no"
30284
30285fi
30286rm -f core conftest.err conftest.$ac_objext \
30287    conftest$ac_exeext conftest.$ac_ext
30288  #
30289  if test "$tst_links_strncmpi" = "yes"; then
30290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
30291$as_echo_n "checking if strncmpi is prototyped... " >&6; }
30292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30293/* end confdefs.h.  */
30294
30295      $cares_includes_string
30296
30297_ACEOF
30298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30299  $EGREP "strncmpi" >/dev/null 2>&1; then :
30300
30301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30302$as_echo "yes" >&6; }
30303      tst_proto_strncmpi="yes"
30304
30305else
30306
30307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30308$as_echo "no" >&6; }
30309      tst_proto_strncmpi="no"
30310
30311fi
30312rm -f conftest*
30313
30314  fi
30315  #
30316  if test "$tst_proto_strncmpi" = "yes"; then
30317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
30318$as_echo_n "checking if strncmpi is compilable... " >&6; }
30319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30320/* end confdefs.h.  */
30321
30322
30323        $cares_includes_string
30324
30325int main (void)
30326{
30327
30328        if(0 != strncmpi(0, 0))
30329          return 1;
30330
30331 ;
30332 return 0;
30333}
30334
30335_ACEOF
30336if ac_fn_c_try_compile "$LINENO"; then :
30337
30338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30339$as_echo "yes" >&6; }
30340      tst_compi_strncmpi="yes"
30341
30342else
30343
30344      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345$as_echo "no" >&6; }
30346      tst_compi_strncmpi="no"
30347
30348fi
30349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350  fi
30351  #
30352  if test "$tst_compi_strncmpi" = "yes"; then
30353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
30354$as_echo_n "checking if strncmpi usage allowed... " >&6; }
30355    if test "x$cares_disallow_strncmpi" != "xyes"; then
30356      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30357$as_echo "yes" >&6; }
30358      tst_allow_strncmpi="yes"
30359    else
30360      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30361$as_echo "no" >&6; }
30362      tst_allow_strncmpi="no"
30363    fi
30364  fi
30365  #
30366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
30367$as_echo_n "checking if strncmpi might be used... " >&6; }
30368  if test "$tst_links_strncmpi" = "yes" &&
30369     test "$tst_proto_strncmpi" = "yes" &&
30370     test "$tst_compi_strncmpi" = "yes" &&
30371     test "$tst_allow_strncmpi" = "yes"; then
30372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30373$as_echo "yes" >&6; }
30374
30375cat >>confdefs.h <<_ACEOF
30376#define HAVE_STRNCMPI 1
30377_ACEOF
30378
30379    ac_cv_func_strncmpi="yes"
30380  else
30381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30382$as_echo "no" >&6; }
30383    ac_cv_func_strncmpi="no"
30384  fi
30385
30386
30387    #
30388  tst_links_strnicmp="unknown"
30389  tst_proto_strnicmp="unknown"
30390  tst_compi_strnicmp="unknown"
30391  tst_allow_strnicmp="unknown"
30392  #
30393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
30394$as_echo_n "checking if strnicmp can be linked... " >&6; }
30395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30396/* end confdefs.h.  */
30397
30398
30399#define strnicmp innocuous_strnicmp
30400#ifdef __STDC__
30401# include <limits.h>
30402#else
30403# include <assert.h>
30404#endif
30405#undef strnicmp
30406#ifdef __cplusplus
30407extern "C"
30408#endif
30409char strnicmp ();
30410#if defined __stub_strnicmp || defined __stub___strnicmp
30411choke me
30412#endif
30413
30414int main (void)
30415{
30416return strnicmp ();
30417 ;
30418 return 0;
30419}
30420
30421_ACEOF
30422if ac_fn_c_try_link "$LINENO"; then :
30423
30424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30425$as_echo "yes" >&6; }
30426    tst_links_strnicmp="yes"
30427
30428else
30429
30430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30431$as_echo "no" >&6; }
30432    tst_links_strnicmp="no"
30433
30434fi
30435rm -f core conftest.err conftest.$ac_objext \
30436    conftest$ac_exeext conftest.$ac_ext
30437  #
30438  if test "$tst_links_strnicmp" = "yes"; then
30439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
30440$as_echo_n "checking if strnicmp is prototyped... " >&6; }
30441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30442/* end confdefs.h.  */
30443
30444      $cares_includes_string
30445
30446_ACEOF
30447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30448  $EGREP "strnicmp" >/dev/null 2>&1; then :
30449
30450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30451$as_echo "yes" >&6; }
30452      tst_proto_strnicmp="yes"
30453
30454else
30455
30456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30457$as_echo "no" >&6; }
30458      tst_proto_strnicmp="no"
30459
30460fi
30461rm -f conftest*
30462
30463  fi
30464  #
30465  if test "$tst_proto_strnicmp" = "yes"; then
30466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
30467$as_echo_n "checking if strnicmp is compilable... " >&6; }
30468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469/* end confdefs.h.  */
30470
30471
30472        $cares_includes_string
30473
30474int main (void)
30475{
30476
30477        if(0 != strnicmp(0, 0))
30478          return 1;
30479
30480 ;
30481 return 0;
30482}
30483
30484_ACEOF
30485if ac_fn_c_try_compile "$LINENO"; then :
30486
30487      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30488$as_echo "yes" >&6; }
30489      tst_compi_strnicmp="yes"
30490
30491else
30492
30493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30494$as_echo "no" >&6; }
30495      tst_compi_strnicmp="no"
30496
30497fi
30498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30499  fi
30500  #
30501  if test "$tst_compi_strnicmp" = "yes"; then
30502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
30503$as_echo_n "checking if strnicmp usage allowed... " >&6; }
30504    if test "x$cares_disallow_strnicmp" != "xyes"; then
30505      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30506$as_echo "yes" >&6; }
30507      tst_allow_strnicmp="yes"
30508    else
30509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30510$as_echo "no" >&6; }
30511      tst_allow_strnicmp="no"
30512    fi
30513  fi
30514  #
30515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
30516$as_echo_n "checking if strnicmp might be used... " >&6; }
30517  if test "$tst_links_strnicmp" = "yes" &&
30518     test "$tst_proto_strnicmp" = "yes" &&
30519     test "$tst_compi_strnicmp" = "yes" &&
30520     test "$tst_allow_strnicmp" = "yes"; then
30521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30522$as_echo "yes" >&6; }
30523
30524cat >>confdefs.h <<_ACEOF
30525#define HAVE_STRNICMP 1
30526_ACEOF
30527
30528    ac_cv_func_strnicmp="yes"
30529  else
30530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30531$as_echo "no" >&6; }
30532    ac_cv_func_strnicmp="no"
30533  fi
30534
30535
30536cares_includes_sys_uio="\
30537/* includes start */
30538#ifdef HAVE_SYS_TYPES_H
30539#  include <sys/types.h>
30540#endif
30541#ifdef HAVE_SYS_UIO_H
30542#  include <sys/uio.h>
30543#endif
30544/* includes end */"
30545  for ac_header in sys/types.h sys/uio.h
30546do :
30547  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30548ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
30549"
30550if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30551  cat >>confdefs.h <<_ACEOF
30552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30553_ACEOF
30554
30555fi
30556
30557done
30558
30559
30560
30561    #
30562  tst_links_writev="unknown"
30563  tst_proto_writev="unknown"
30564  tst_compi_writev="unknown"
30565  tst_allow_writev="unknown"
30566  #
30567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
30568$as_echo_n "checking if writev can be linked... " >&6; }
30569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30570/* end confdefs.h.  */
30571
30572
30573#define writev innocuous_writev
30574#ifdef __STDC__
30575# include <limits.h>
30576#else
30577# include <assert.h>
30578#endif
30579#undef writev
30580#ifdef __cplusplus
30581extern "C"
30582#endif
30583char writev ();
30584#if defined __stub_writev || defined __stub___writev
30585choke me
30586#endif
30587
30588int main (void)
30589{
30590return writev ();
30591 ;
30592 return 0;
30593}
30594
30595_ACEOF
30596if ac_fn_c_try_link "$LINENO"; then :
30597
30598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30599$as_echo "yes" >&6; }
30600    tst_links_writev="yes"
30601
30602else
30603
30604    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30605$as_echo "no" >&6; }
30606    tst_links_writev="no"
30607
30608fi
30609rm -f core conftest.err conftest.$ac_objext \
30610    conftest$ac_exeext conftest.$ac_ext
30611  #
30612  if test "$tst_links_writev" = "yes"; then
30613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
30614$as_echo_n "checking if writev is prototyped... " >&6; }
30615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30616/* end confdefs.h.  */
30617
30618      $cares_includes_sys_uio
30619
30620_ACEOF
30621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30622  $EGREP "writev" >/dev/null 2>&1; then :
30623
30624      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30625$as_echo "yes" >&6; }
30626      tst_proto_writev="yes"
30627
30628else
30629
30630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30631$as_echo "no" >&6; }
30632      tst_proto_writev="no"
30633
30634fi
30635rm -f conftest*
30636
30637  fi
30638  #
30639  if test "$tst_proto_writev" = "yes"; then
30640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
30641$as_echo_n "checking if writev is compilable... " >&6; }
30642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30643/* end confdefs.h.  */
30644
30645
30646        $cares_includes_sys_uio
30647
30648int main (void)
30649{
30650
30651        if(0 != writev(0, 0, 0))
30652          return 1;
30653
30654 ;
30655 return 0;
30656}
30657
30658_ACEOF
30659if ac_fn_c_try_compile "$LINENO"; then :
30660
30661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30662$as_echo "yes" >&6; }
30663      tst_compi_writev="yes"
30664
30665else
30666
30667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30668$as_echo "no" >&6; }
30669      tst_compi_writev="no"
30670
30671fi
30672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30673  fi
30674  #
30675  if test "$tst_compi_writev" = "yes"; then
30676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
30677$as_echo_n "checking if writev usage allowed... " >&6; }
30678    if test "x$cares_disallow_writev" != "xyes"; then
30679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30680$as_echo "yes" >&6; }
30681      tst_allow_writev="yes"
30682    else
30683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30684$as_echo "no" >&6; }
30685      tst_allow_writev="no"
30686    fi
30687  fi
30688  #
30689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
30690$as_echo_n "checking if writev might be used... " >&6; }
30691  if test "$tst_links_writev" = "yes" &&
30692     test "$tst_proto_writev" = "yes" &&
30693     test "$tst_compi_writev" = "yes" &&
30694     test "$tst_allow_writev" = "yes"; then
30695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30696$as_echo "yes" >&6; }
30697
30698cat >>confdefs.h <<_ACEOF
30699#define HAVE_WRITEV 1
30700_ACEOF
30701
30702    ac_cv_func_writev="yes"
30703  else
30704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30705$as_echo "no" >&6; }
30706    ac_cv_func_writev="no"
30707  fi
30708
30709
30710
30711
30712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
30713$as_echo_n "checking for PF_INET6... " >&6; }
30714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30715/* end confdefs.h.  */
30716
30717
30718#undef inline
30719#ifdef HAVE_WINDOWS_H
30720#ifndef WIN32_LEAN_AND_MEAN
30721#define WIN32_LEAN_AND_MEAN
30722#endif
30723#include <windows.h>
30724#ifdef HAVE_WINSOCK2_H
30725#include <winsock2.h>
30726#endif
30727#else
30728#ifdef HAVE_SYS_TYPES_H
30729#include <sys/types.h>
30730#endif
30731#ifdef HAVE_SYS_SOCKET_H
30732#include <sys/socket.h>
30733#endif
30734#endif
30735
30736
30737      #ifdef PF_INET6
30738        VARIABLEWASDEFINED
30739      #else
30740        NJET
30741      #endif
30742
30743_ACEOF
30744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30745  $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30746  ac_constant="yes"
30747else
30748  ac_constant="no"
30749
30750fi
30751rm -f conftest*
30752
30753  if test "$ac_constant" = "yes" ; then
30754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30755$as_echo "yes" >&6; }
30756
30757cat >>confdefs.h <<_ACEOF
30758#define HAVE_PF_INET6 1
30759_ACEOF
30760
30761
30762  else
30763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764$as_echo "no" >&6; }
30765
30766  fi
30767
30768
30769
30770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
30771$as_echo_n "checking for AF_INET6... " >&6; }
30772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30773/* end confdefs.h.  */
30774
30775
30776#undef inline
30777#ifdef HAVE_WINDOWS_H
30778#ifndef WIN32_LEAN_AND_MEAN
30779#define WIN32_LEAN_AND_MEAN
30780#endif
30781#include <windows.h>
30782#ifdef HAVE_WINSOCK2_H
30783#include <winsock2.h>
30784#endif
30785#else
30786#ifdef HAVE_SYS_TYPES_H
30787#include <sys/types.h>
30788#endif
30789#ifdef HAVE_SYS_SOCKET_H
30790#include <sys/socket.h>
30791#endif
30792#endif
30793
30794
30795      #ifdef AF_INET6
30796        VARIABLEWASDEFINED
30797      #else
30798        NJET
30799      #endif
30800
30801_ACEOF
30802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30803  $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30804  ac_constant="yes"
30805else
30806  ac_constant="no"
30807
30808fi
30809rm -f conftest*
30810
30811  if test "$ac_constant" = "yes" ; then
30812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30813$as_echo "yes" >&6; }
30814
30815cat >>confdefs.h <<_ACEOF
30816#define HAVE_AF_INET6 1
30817_ACEOF
30818
30819
30820  else
30821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30822$as_echo "no" >&6; }
30823
30824  fi
30825
30826
30827
30828
30829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
30830$as_echo_n "checking for struct in6_addr... " >&6; }
30831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30832/* end confdefs.h.  */
30833
30834#undef inline
30835#ifdef HAVE_WINDOWS_H
30836#ifndef WIN32_LEAN_AND_MEAN
30837#define WIN32_LEAN_AND_MEAN
30838#endif
30839#include <windows.h>
30840#ifdef HAVE_WINSOCK2_H
30841#include <winsock2.h>
30842#ifdef HAVE_WS2TCPIP_H
30843#include <ws2tcpip.h>
30844#endif
30845#endif
30846#else
30847#ifdef HAVE_SYS_TYPES_H
30848#include <sys/types.h>
30849#endif
30850#ifdef HAVE_NETINET_IN_H
30851#include <netinet/in.h>
30852#endif
30853#endif
30854
30855int main (void)
30856{
30857
30858      struct in6_addr struct_instance;
30859
30860 ;
30861 return 0;
30862}
30863_ACEOF
30864if ac_fn_c_try_compile "$LINENO"; then :
30865  ac_struct="yes"
30866else
30867  ac_found="no"
30868fi
30869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30870  if test "$ac_struct" = "yes" ; then
30871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30872$as_echo "yes" >&6; }
30873
30874cat >>confdefs.h <<_ACEOF
30875#define HAVE_STRUCT_IN6_ADDR 1
30876_ACEOF
30877
30878
30879  else
30880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30881$as_echo "no" >&6; }
30882
30883  fi
30884
30885
30886
30887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
30888$as_echo_n "checking for struct sockaddr_in6... " >&6; }
30889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30890/* end confdefs.h.  */
30891
30892#undef inline
30893#ifdef HAVE_WINDOWS_H
30894#ifndef WIN32_LEAN_AND_MEAN
30895#define WIN32_LEAN_AND_MEAN
30896#endif
30897#include <windows.h>
30898#ifdef HAVE_WINSOCK2_H
30899#include <winsock2.h>
30900#ifdef HAVE_WS2TCPIP_H
30901#include <ws2tcpip.h>
30902#endif
30903#endif
30904#else
30905#ifdef HAVE_SYS_TYPES_H
30906#include <sys/types.h>
30907#endif
30908#ifdef HAVE_NETINET_IN_H
30909#include <netinet/in.h>
30910#endif
30911#endif
30912
30913int main (void)
30914{
30915
30916      struct sockaddr_in6 struct_instance;
30917
30918 ;
30919 return 0;
30920}
30921_ACEOF
30922if ac_fn_c_try_compile "$LINENO"; then :
30923  ac_struct="yes"
30924else
30925  ac_found="no"
30926fi
30927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30928  if test "$ac_struct" = "yes" ; then
30929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30930$as_echo "yes" >&6; }
30931
30932cat >>confdefs.h <<_ACEOF
30933#define HAVE_STRUCT_SOCKADDR_IN6 1
30934_ACEOF
30935 ac_have_sockaddr_in6=yes
30936
30937  else
30938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30939$as_echo "no" >&6; }
30940
30941  fi
30942
30943
30944ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
30945#undef inline
30946#ifdef HAVE_WINDOWS_H
30947#ifndef WIN32_LEAN_AND_MEAN
30948#define WIN32_LEAN_AND_MEAN
30949#endif
30950#include <windows.h>
30951#ifdef HAVE_WINSOCK2_H
30952#include <winsock2.h>
30953#ifdef HAVE_WS2TCPIP_H
30954#include <ws2tcpip.h>
30955#endif
30956#endif
30957#else
30958#ifdef HAVE_SYS_TYPES_H
30959#include <sys/types.h>
30960#endif
30961#ifdef HAVE_NETINET_IN_H
30962#include <netinet/in.h>
30963#endif
30964#endif
30965
30966"
30967if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
30968
30969cat >>confdefs.h <<_ACEOF
30970#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
30971_ACEOF
30972
30973
30974fi
30975
30976
30977ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
30978#undef inline
30979#ifdef HAVE_WINDOWS_H
30980#ifndef WIN32_LEAN_AND_MEAN
30981#define WIN32_LEAN_AND_MEAN
30982#endif
30983#include <windows.h>
30984#ifdef HAVE_WINSOCK2_H
30985#include <winsock2.h>
30986#ifdef HAVE_WS2TCPIP_H
30987#include <ws2tcpip.h>
30988#endif
30989#endif
30990#else
30991#ifdef HAVE_SYS_TYPES_H
30992#include <sys/types.h>
30993#endif
30994#ifdef HAVE_NETINET_IN_H
30995#include <netinet/in.h>
30996#endif
30997#ifdef HAVE_SYS_SOCKET_H
30998#include <sys/socket.h>
30999#endif
31000#ifdef HAVE_NETDB_H
31001#include <netdb.h>
31002#endif
31003#endif
31004
31005
31006"
31007if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
31008
31009cat >>confdefs.h <<_ACEOF
31010#define HAVE_STRUCT_ADDRINFO 1
31011_ACEOF
31012
31013fi
31014
31015
31016
31017for ac_func in bitncmp \
31018  gettimeofday \
31019  if_indextoname
31020
31021do :
31022  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31023ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31024if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31025  cat >>confdefs.h <<_ACEOF
31026#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31027_ACEOF
31028
31029
31030else
31031
31032  func="$ac_func"
31033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
31034$as_echo_n "checking deeper for $func... " >&6; }
31035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31036/* end confdefs.h.  */
31037
31038
31039
31040int main (void)
31041{
31042
31043      $func ();
31044
31045 ;
31046 return 0;
31047}
31048
31049_ACEOF
31050if ac_fn_c_try_link "$LINENO"; then :
31051
31052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31053$as_echo "yes" >&6; }
31054    eval "ac_cv_func_$func=yes"
31055
31056cat >>confdefs.h <<_ACEOF
31057#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
31058_ACEOF
31059
31060
31061else
31062
31063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31064$as_echo "but still no" >&6; }
31065
31066fi
31067rm -f core conftest.err conftest.$ac_objext \
31068    conftest$ac_exeext conftest.$ac_ext
31069
31070fi
31071done
31072
31073
31074ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
31075if test "x$ac_cv_func___system_property_get" = xyes; then :
31076
31077
31078$as_echo "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
31079
31080
31081fi
31082
31083
31084
31085    for ac_header in sys/types.h sys/socket.h netdb.h
31086do :
31087  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31088ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31089if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31090  cat >>confdefs.h <<_ACEOF
31091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31092_ACEOF
31093
31094fi
31095
31096done
31097
31098  #
31099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
31100$as_echo_n "checking for getnameinfo... " >&6; }
31101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31102/* end confdefs.h.  */
31103
31104
31105#define getnameinfo innocuous_getnameinfo
31106#ifdef __STDC__
31107# include <limits.h>
31108#else
31109# include <assert.h>
31110#endif
31111#undef getnameinfo
31112#ifdef __cplusplus
31113extern "C"
31114#endif
31115char getnameinfo ();
31116#if defined __stub_getnameinfo || defined __stub___getnameinfo
31117choke me
31118#endif
31119
31120int main (void)
31121{
31122return getnameinfo ();
31123 ;
31124 return 0;
31125}
31126
31127_ACEOF
31128if ac_fn_c_try_link "$LINENO"; then :
31129
31130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31131$as_echo "yes" >&6; }
31132    curl_cv_getnameinfo="yes"
31133
31134else
31135
31136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138    curl_cv_getnameinfo="no"
31139
31140fi
31141rm -f core conftest.err conftest.$ac_objext \
31142    conftest$ac_exeext conftest.$ac_ext
31143  #
31144  if test "$curl_cv_getnameinfo" != "yes"; then
31145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
31146$as_echo_n "checking deeper for getnameinfo... " >&6; }
31147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31148/* end confdefs.h.  */
31149
31150
31151
31152int main (void)
31153{
31154
31155        getnameinfo();
31156
31157 ;
31158 return 0;
31159}
31160
31161_ACEOF
31162if ac_fn_c_try_link "$LINENO"; then :
31163
31164      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165$as_echo "yes" >&6; }
31166      curl_cv_getnameinfo="yes"
31167
31168else
31169
31170      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31171$as_echo "but still no" >&6; }
31172      curl_cv_getnameinfo="no"
31173
31174fi
31175rm -f core conftest.err conftest.$ac_objext \
31176    conftest$ac_exeext conftest.$ac_ext
31177  fi
31178  #
31179  if test "$curl_cv_getnameinfo" != "yes"; then
31180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
31181$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
31182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31183/* end confdefs.h.  */
31184
31185
31186#undef inline
31187#ifdef HAVE_WINDOWS_H
31188#ifndef WIN32_LEAN_AND_MEAN
31189#define WIN32_LEAN_AND_MEAN
31190#endif
31191#include <windows.h>
31192#ifdef HAVE_WINSOCK2_H
31193#include <winsock2.h>
31194#ifdef HAVE_WS2TCPIP_H
31195#include <ws2tcpip.h>
31196#endif
31197#endif
31198#else
31199#ifdef HAVE_SYS_TYPES_H
31200#include <sys/types.h>
31201#endif
31202#ifdef HAVE_SYS_SOCKET_H
31203#include <sys/socket.h>
31204#endif
31205#ifdef HAVE_NETDB_H
31206#include <netdb.h>
31207#endif
31208#endif
31209
31210int main (void)
31211{
31212
31213        getnameinfo(0, 0, 0, 0, 0, 0, 0);
31214
31215 ;
31216 return 0;
31217}
31218
31219_ACEOF
31220if ac_fn_c_try_link "$LINENO"; then :
31221
31222      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31223$as_echo "yes" >&6; }
31224      curl_cv_getnameinfo="yes"
31225
31226else
31227
31228      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31229$as_echo "but still no" >&6; }
31230      curl_cv_getnameinfo="no"
31231
31232fi
31233rm -f core conftest.err conftest.$ac_objext \
31234    conftest$ac_exeext conftest.$ac_ext
31235  fi
31236  #
31237  if test "$curl_cv_getnameinfo" = "yes"; then
31238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
31239$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
31240if ${curl_cv_func_getnameinfo_args+:} false; then :
31241  $as_echo_n "(cached) " >&6
31242else
31243
31244      curl_cv_func_getnameinfo_args="unknown"
31245      for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
31246        for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
31247          for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
31248            for gni_arg7 in 'int' 'unsigned int'; do
31249              if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31250                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251/* end confdefs.h.  */
31252
31253
31254#undef inline
31255#ifdef HAVE_WINDOWS_H
31256#ifndef WIN32_LEAN_AND_MEAN
31257#define WIN32_LEAN_AND_MEAN
31258#endif
31259#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
31260#undef _WIN32_WINNT
31261#define _WIN32_WINNT 0x0501
31262#endif
31263#include <windows.h>
31264#ifdef HAVE_WINSOCK2_H
31265#include <winsock2.h>
31266#ifdef HAVE_WS2TCPIP_H
31267#include <ws2tcpip.h>
31268#endif
31269#endif
31270#define GNICALLCONV WSAAPI
31271#else
31272#ifdef HAVE_SYS_TYPES_H
31273#include <sys/types.h>
31274#endif
31275#ifdef HAVE_SYS_SOCKET_H
31276#include <sys/socket.h>
31277#endif
31278#ifdef HAVE_NETDB_H
31279#include <netdb.h>
31280#endif
31281#define GNICALLCONV
31282#endif
31283                    extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
31284                                           char *, $gni_arg46,
31285                                           char *, $gni_arg46,
31286                                           $gni_arg7);
31287
31288int main (void)
31289{
31290
31291                    $gni_arg2 salen=0;
31292                    $gni_arg46 hostlen=0;
31293                    $gni_arg46 servlen=0;
31294                    $gni_arg7 flags=0;
31295                    int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
31296
31297 ;
31298 return 0;
31299}
31300
31301_ACEOF
31302if ac_fn_c_try_compile "$LINENO"; then :
31303
31304                  curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
31305
31306fi
31307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308              fi
31309            done
31310          done
31311        done
31312      done
31313
31314fi
31315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
31316$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
31317    if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31318      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
31319$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
31320      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
31321$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
31322    else
31323      gni_prev_IFS=$IFS; IFS=','
31324      set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
31325      IFS=$gni_prev_IFS
31326      shift
31327      #
31328      gni_qual_type_arg1=$1
31329      #
31330
31331cat >>confdefs.h <<_ACEOF
31332#define GETNAMEINFO_TYPE_ARG2 $2
31333_ACEOF
31334
31335
31336cat >>confdefs.h <<_ACEOF
31337#define GETNAMEINFO_TYPE_ARG46 $3
31338_ACEOF
31339
31340
31341cat >>confdefs.h <<_ACEOF
31342#define GETNAMEINFO_TYPE_ARG7 $4
31343_ACEOF
31344
31345      #
31346      prev_sh_opts=$-
31347      #
31348      case $prev_sh_opts in
31349        *f*)
31350          ;;
31351        *)
31352          set -f
31353          ;;
31354      esac
31355      #
31356      case "$gni_qual_type_arg1" in
31357        const*)
31358          gni_qual_arg1=const
31359          gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
31360        ;;
31361        *)
31362          gni_qual_arg1=
31363          gni_type_arg1=$gni_qual_type_arg1
31364        ;;
31365      esac
31366      #
31367
31368cat >>confdefs.h <<_ACEOF
31369#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
31370_ACEOF
31371
31372
31373cat >>confdefs.h <<_ACEOF
31374#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
31375_ACEOF
31376
31377      #
31378      case $prev_sh_opts in
31379        *f*)
31380          ;;
31381        *)
31382          set +f
31383          ;;
31384      esac
31385      #
31386
31387cat >>confdefs.h <<_ACEOF
31388#define HAVE_GETNAMEINFO 1
31389_ACEOF
31390
31391      ac_cv_func_getnameinfo="yes"
31392    fi
31393  fi
31394
31395
31396
31397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
31398$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
31399if ${ac_cv_c_bigendian+:} false; then :
31400  $as_echo_n "(cached) " >&6
31401else
31402  ac_cv_c_bigendian=unknown
31403    # See if we're dealing with a universal compiler.
31404    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31405/* end confdefs.h.  */
31406#ifndef __APPLE_CC__
31407	       not a universal capable compiler
31408	     #endif
31409	     typedef int dummy;
31410
31411_ACEOF
31412if ac_fn_c_try_compile "$LINENO"; then :
31413
31414	# Check for potential -arch flags.  It is not universal unless
31415	# there are at least two -arch flags with different values.
31416	ac_arch=
31417	ac_prev=
31418	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
31419	 if test -n "$ac_prev"; then
31420	   case $ac_word in
31421	     i?86 | x86_64 | ppc | ppc64)
31422	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
31423		 ac_arch=$ac_word
31424	       else
31425		 ac_cv_c_bigendian=universal
31426		 break
31427	       fi
31428	       ;;
31429	   esac
31430	   ac_prev=
31431	 elif test "x$ac_word" = "x-arch"; then
31432	   ac_prev=arch
31433	 fi
31434       done
31435fi
31436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31437    if test $ac_cv_c_bigendian = unknown; then
31438      # See if sys/param.h defines the BYTE_ORDER macro.
31439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440/* end confdefs.h.  */
31441#include <sys/types.h>
31442	     #include <sys/param.h>
31443
31444int main (void)
31445{
31446#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
31447		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
31448		     && LITTLE_ENDIAN)
31449	      bogus endian macros
31450	     #endif
31451
31452 ;
31453 return 0;
31454}
31455_ACEOF
31456if ac_fn_c_try_compile "$LINENO"; then :
31457  # It does; now see whether it defined to BIG_ENDIAN or not.
31458	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459/* end confdefs.h.  */
31460#include <sys/types.h>
31461		#include <sys/param.h>
31462
31463int main (void)
31464{
31465#if BYTE_ORDER != BIG_ENDIAN
31466		 not big endian
31467		#endif
31468
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473if ac_fn_c_try_compile "$LINENO"; then :
31474  ac_cv_c_bigendian=yes
31475else
31476  ac_cv_c_bigendian=no
31477fi
31478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479fi
31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481    fi
31482    if test $ac_cv_c_bigendian = unknown; then
31483      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
31484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31485/* end confdefs.h.  */
31486#include <limits.h>
31487
31488int main (void)
31489{
31490#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
31491	      bogus endian macros
31492	     #endif
31493
31494 ;
31495 return 0;
31496}
31497_ACEOF
31498if ac_fn_c_try_compile "$LINENO"; then :
31499  # It does; now see whether it defined to _BIG_ENDIAN or not.
31500	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31501/* end confdefs.h.  */
31502#include <limits.h>
31503
31504int main (void)
31505{
31506#ifndef _BIG_ENDIAN
31507		 not big endian
31508		#endif
31509
31510 ;
31511 return 0;
31512}
31513_ACEOF
31514if ac_fn_c_try_compile "$LINENO"; then :
31515  ac_cv_c_bigendian=yes
31516else
31517  ac_cv_c_bigendian=no
31518fi
31519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31520fi
31521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31522    fi
31523    if test $ac_cv_c_bigendian = unknown; then
31524      # Compile a test program.
31525      if test "$cross_compiling" = yes; then :
31526  # Try to guess by grepping values from an object file.
31527	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528/* end confdefs.h.  */
31529short int ascii_mm[] =
31530		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31531		short int ascii_ii[] =
31532		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31533		int use_ascii (int i) {
31534		  return ascii_mm[i] + ascii_ii[i];
31535		}
31536		short int ebcdic_ii[] =
31537		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31538		short int ebcdic_mm[] =
31539		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31540		int use_ebcdic (int i) {
31541		  return ebcdic_mm[i] + ebcdic_ii[i];
31542		}
31543		extern int foo;
31544
31545int main (void)
31546{
31547return use_ascii (foo) == use_ebcdic (foo);
31548 ;
31549 return 0;
31550}
31551_ACEOF
31552if ac_fn_c_try_compile "$LINENO"; then :
31553  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
31554	      ac_cv_c_bigendian=yes
31555	    fi
31556	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31557	      if test "$ac_cv_c_bigendian" = unknown; then
31558		ac_cv_c_bigendian=no
31559	      else
31560		# finding both strings is unlikely to happen, but who knows?
31561		ac_cv_c_bigendian=unknown
31562	      fi
31563	    fi
31564fi
31565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31566else
31567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31568/* end confdefs.h.  */
31569$ac_includes_default
31570int main (void)
31571{
31572
31573	     /* Are we little or big endian?  From Harbison&Steele.  */
31574	     union
31575	     {
31576	       long int l;
31577	       char c[sizeof (long int)];
31578	     } u;
31579	     u.l = 1;
31580	     return u.c[sizeof (long int) - 1] == 1;
31581
31582 ;
31583 return 0;
31584}
31585_ACEOF
31586if ac_fn_c_try_run "$LINENO"; then :
31587  ac_cv_c_bigendian=no
31588else
31589  ac_cv_c_bigendian=yes
31590fi
31591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31592  conftest.$ac_objext conftest.beam conftest.$ac_ext
31593fi
31594
31595    fi
31596fi
31597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
31598$as_echo "$ac_cv_c_bigendian" >&6; }
31599 case $ac_cv_c_bigendian in #(
31600   yes)
31601
31602$as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
31603;; #(
31604   no)
31605      ;; #(
31606   universal)
31607
31608$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
31609
31610     ;; #(
31611   *)
31612     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
31613$as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
31614 ;;
31615 esac
31616
31617
31618
31619# Check whether --with-random was given.
31620if test "${with_random+set}" = set; then :
31621  withval=$with_random;  RANDOM_FILE="$withval"
31622else
31623
31624                                if test "$cross_compiling" = "no"; then
31625          as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
31626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
31627$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
31628if eval \${$as_ac_File+:} false; then :
31629  $as_echo_n "(cached) " >&6
31630else
31631  test "$cross_compiling" = yes &&
31632  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
31633if test -r ""/dev/urandom""; then
31634  eval "$as_ac_File=yes"
31635else
31636  eval "$as_ac_File=no"
31637fi
31638fi
31639eval ac_res=\$$as_ac_File
31640	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31641$as_echo "$ac_res" >&6; }
31642if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
31643   RANDOM_FILE="/dev/urandom"
31644fi
31645
31646        else
31647          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
31648$as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
31649        fi
31650
31651
31652
31653fi
31654
31655if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31656
31657
31658cat >>confdefs.h <<_ACEOF
31659#define RANDOM_FILE "$RANDOM_FILE"
31660_ACEOF
31661
31662fi
31663
31664
31665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
31666$as_echo_n "checking whether to enable non-blocking communications... " >&6; }
31667  OPT_NONBLOCKING="default"
31668  # Check whether --enable-nonblocking was given.
31669if test "${enable_nonblocking+set}" = set; then :
31670  enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
31671fi
31672
31673  case "$OPT_NONBLOCKING" in
31674    no)
31675            want_nonblocking="no"
31676      ;;
31677    default)
31678            want_nonblocking="yes"
31679      ;;
31680    *)
31681            want_nonblocking="yes"
31682      ;;
31683  esac
31684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
31685$as_echo "$want_nonblocking" >&6; }
31686
31687
31688              #
31689  tst_method="unknown"
31690  if test "$want_nonblocking" = "yes"; then
31691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
31692$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
31693    if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
31694      tst_method="fcntl O_NONBLOCK"
31695    elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
31696      tst_method="ioctl FIONBIO"
31697    elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
31698      tst_method="ioctlsocket FIONBIO"
31699    elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
31700      tst_method="IoctlSocket FIONBIO"
31701    elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
31702      tst_method="setsockopt SO_NONBLOCK"
31703    fi
31704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
31705$as_echo "$tst_method" >&6; }
31706    if test "$tst_method" = "unknown"; then
31707      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
31708$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
31709    fi
31710  fi
31711  if test "$tst_method" = "unknown"; then
31712
31713cat >>confdefs.h <<_ACEOF
31714#define USE_BLOCKING_SOCKETS 1
31715_ACEOF
31716
31717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
31718$as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
31719  fi
31720
31721
31722
31723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
31724$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
31725  CFLAG_CARES_SYMBOL_HIDING=""
31726  doing_symbol_hiding="no"
31727  if test x"$ac_cv_native_windows" != "xyes" &&
31728    test "$want_symbol_hiding" = "yes" &&
31729    test "$supports_symbol_hiding" = "yes"; then
31730    doing_symbol_hiding="yes"
31731    CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
31732
31733cat >>confdefs.h <<_ACEOF
31734#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
31735_ACEOF
31736
31737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31738$as_echo "yes" >&6; }
31739  else
31740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31741$as_echo "no" >&6; }
31742  fi
31743   if test x$doing_symbol_hiding = xyes; then
31744  DOING_CARES_SYMBOL_HIDING_TRUE=
31745  DOING_CARES_SYMBOL_HIDING_FALSE='#'
31746else
31747  DOING_CARES_SYMBOL_HIDING_TRUE='#'
31748  DOING_CARES_SYMBOL_HIDING_FALSE=
31749fi
31750
31751
31752  if test "$doing_symbol_hiding" = "yes"; then
31753
31754cat >>confdefs.h <<_ACEOF
31755#define CARES_SYMBOL_HIDING 1
31756_ACEOF
31757
31758  fi
31759
31760
31761CARES_PRIVATE_LIBS="$LIBS"
31762
31763
31764CARES_CFLAG_EXTRAS=""
31765if test X"$want_werror" = Xyes; then
31766  CARES_CFLAG_EXTRAS="-Werror"
31767fi
31768
31769
31770
31771squeeze CFLAGS
31772squeeze CPPFLAGS
31773squeeze DEFS
31774squeeze LDFLAGS
31775squeeze LIBS
31776
31777squeeze CARES_PRIVATE_LIBS
31778
31779
31780
31781  xc_bad_var_libs=no
31782  for xc_word in $LIBS; do
31783    case "$xc_word" in
31784      -l* | --library=*)
31785        :
31786        ;;
31787      *)
31788        xc_bad_var_libs=yes
31789        ;;
31790    esac
31791  done
31792  if test $xc_bad_var_libs = yes; then
31793    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
31794$as_echo "$as_me: using LIBS: $LIBS" >&6;}
31795    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
31796$as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
31797  fi
31798
31799
31800  xc_bad_var_ldflags=no
31801  for xc_word in $LDFLAGS; do
31802    case "$xc_word" in
31803      -D*)
31804        xc_bad_var_ldflags=yes
31805        ;;
31806      -U*)
31807        xc_bad_var_ldflags=yes
31808        ;;
31809      -I*)
31810        xc_bad_var_ldflags=yes
31811        ;;
31812      -l* | --library=*)
31813        xc_bad_var_ldflags=yes
31814        ;;
31815    esac
31816  done
31817  if test $xc_bad_var_ldflags = yes; then
31818    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
31819$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
31820    xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
31821    for xc_word in $LDFLAGS; do
31822      case "$xc_word" in
31823        -D*)
31824          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31825$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31826          ;;
31827        -U*)
31828          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31829$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31830          ;;
31831        -I*)
31832          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31833$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31834          ;;
31835        -l* | --library=*)
31836          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31837$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31838          ;;
31839      esac
31840    done
31841  fi
31842
31843
31844  xc_bad_var_cppflags=no
31845  for xc_word in $CPPFLAGS; do
31846    case "$xc_word" in
31847      -rpath*)
31848        xc_bad_var_cppflags=yes
31849        ;;
31850      -L* | --library-path=*)
31851        xc_bad_var_cppflags=yes
31852        ;;
31853      -l* | --library=*)
31854        xc_bad_var_cppflags=yes
31855        ;;
31856    esac
31857  done
31858  if test $xc_bad_var_cppflags = yes; then
31859    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
31860$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
31861    xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
31862    for xc_word in $CPPFLAGS; do
31863      case "$xc_word" in
31864        -rpath*)
31865          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31866$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31867          ;;
31868        -L* | --library-path=*)
31869          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31870$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31871          ;;
31872        -l* | --library=*)
31873          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31874$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31875          ;;
31876      esac
31877    done
31878  fi
31879
31880
31881  xc_bad_var_cflags=no
31882  for xc_word in $CFLAGS; do
31883    case "$xc_word" in
31884      -D*)
31885        xc_bad_var_cflags=yes
31886        ;;
31887      -U*)
31888        xc_bad_var_cflags=yes
31889        ;;
31890      -I*)
31891        xc_bad_var_cflags=yes
31892        ;;
31893      -rpath*)
31894        xc_bad_var_cflags=yes
31895        ;;
31896      -L* | --library-path=*)
31897        xc_bad_var_cflags=yes
31898        ;;
31899      -l* | --library=*)
31900        xc_bad_var_cflags=yes
31901        ;;
31902    esac
31903  done
31904  if test $xc_bad_var_cflags = yes; then
31905    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
31906$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
31907    xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
31908    for xc_word in $CFLAGS; do
31909      case "$xc_word" in
31910        -D*)
31911          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31912$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31913          ;;
31914        -U*)
31915          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31916$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31917          ;;
31918        -I*)
31919          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31920$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31921          ;;
31922        -rpath*)
31923          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31924$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31925          ;;
31926        -L* | --library-path=*)
31927          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31928$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31929          ;;
31930        -l* | --library=*)
31931          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31932$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31933          ;;
31934      esac
31935    done
31936  fi
31937
31938  if test $xc_bad_var_libs = yes ||
31939     test $xc_bad_var_cflags = yes ||
31940     test $xc_bad_var_ldflags = yes ||
31941     test $xc_bad_var_cppflags = yes; then
31942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
31943$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
31944  fi
31945
31946
31947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
31948$as_echo_n "checking whether to build tests... " >&6; }
31949# Check whether --enable-tests was given.
31950if test "${enable_tests+set}" = set; then :
31951  enableval=$enable_tests;  build_tests="$enableval"
31952else
31953   if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
31954	    build_tests="yes"
31955	  else
31956	    build_tests="no"
31957	  fi
31958
31959
31960fi
31961
31962
31963if test "x$build_tests" = "xyes" ; then
31964	if test "x$HAVE_CXX11" = "0" ; then
31965		as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
31966	fi
31967	if test "x$cross_compiling" = "xyes" ; then
31968		as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
31969	fi
31970fi
31971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
31972$as_echo "$build_tests" >&6; }
31973
31974if test "x$build_tests" = "xyes" ; then
31975
31976
31977subdirs="$subdirs test"
31978
31979fi
31980
31981ac_config_files="$ac_config_files Makefile libcares.pc"
31982
31983cat >confcache <<\_ACEOF
31984# This file is a shell script that caches the results of configure
31985# tests run on this system so they can be shared between configure
31986# scripts and configure runs, see configure's option --config-cache.
31987# It is not useful on other systems.  If it contains results you don't
31988# want to keep, you may remove or edit it.
31989#
31990# config.status only pays attention to the cache file if you give it
31991# the --recheck option to rerun configure.
31992#
31993# `ac_cv_env_foo' variables (set or unset) will be overridden when
31994# loading this file, other *unset* `ac_cv_foo' will be assigned the
31995# following values.
31996
31997_ACEOF
31998
31999# The following way of writing the cache mishandles newlines in values,
32000# but we know of no workaround that is simple, portable, and efficient.
32001# So, we kill variables containing newlines.
32002# Ultrix sh set writes to stderr and can't be redirected directly,
32003# and sets the high bit in the cache file unless we assign to the vars.
32004(
32005  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32006    eval ac_val=\$$ac_var
32007    case $ac_val in #(
32008    *${as_nl}*)
32009      case $ac_var in #(
32010      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32012      esac
32013      case $ac_var in #(
32014      _ | IFS | as_nl) ;; #(
32015      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32016      *) { eval $ac_var=; unset $ac_var;} ;;
32017      esac ;;
32018    esac
32019  done
32020
32021  (set) 2>&1 |
32022    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32023    *${as_nl}ac_space=\ *)
32024      # `set' does not quote correctly, so add quotes: double-quote
32025      # substitution turns \\\\ into \\, and sed turns \\ into \.
32026      sed -n \
32027	"s/'/'\\\\''/g;
32028	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32029      ;; #(
32030    *)
32031      # `set' quotes correctly as required by POSIX, so do not add quotes.
32032      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32033      ;;
32034    esac |
32035    sort
32036) |
32037  sed '
32038     /^ac_cv_env_/b end
32039     t clear
32040     :clear
32041     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32042     t end
32043     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32044     :end' >>confcache
32045if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32046  if test -w "$cache_file"; then
32047    if test "x$cache_file" != "x/dev/null"; then
32048      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32049$as_echo "$as_me: updating cache $cache_file" >&6;}
32050      if test ! -f "$cache_file" || test -h "$cache_file"; then
32051	cat confcache >"$cache_file"
32052      else
32053        case $cache_file in #(
32054        */* | ?:*)
32055	  mv -f confcache "$cache_file"$$ &&
32056	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32057        *)
32058	  mv -f confcache "$cache_file" ;;
32059	esac
32060      fi
32061    fi
32062  else
32063    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32064$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32065  fi
32066fi
32067rm -f confcache
32068
32069test "x$prefix" = xNONE && prefix=$ac_default_prefix
32070# Let make expand exec_prefix.
32071test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32072
32073DEFS=-DHAVE_CONFIG_H
32074
32075ac_libobjs=
32076ac_ltlibobjs=
32077U=
32078for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32079  # 1. Remove the extension, and $U if already installed.
32080  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32081  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32082  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32083  #    will be set to the directory where LIBOBJS objects are built.
32084  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32085  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32086done
32087LIBOBJS=$ac_libobjs
32088
32089LTLIBOBJS=$ac_ltlibobjs
32090
32091
32092if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32093  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32094Usually this means the macro was only invoked conditionally." "$LINENO" 5
32095fi
32096if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
32097  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
32098Usually this means the macro was only invoked conditionally." "$LINENO" 5
32099fi
32100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32101$as_echo_n "checking that generated files are newer than configure... " >&6; }
32102   if test -n "$am_sleep_pid"; then
32103     # Hide warnings about reused PIDs.
32104     wait $am_sleep_pid 2>/dev/null
32105   fi
32106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32107$as_echo "done" >&6; }
32108if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32109  as_fn_error $? "conditional \"AMDEP\" was never defined.
32110Usually this means the macro was only invoked conditionally." "$LINENO" 5
32111fi
32112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32113  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32114Usually this means the macro was only invoked conditionally." "$LINENO" 5
32115fi
32116if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32117  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32118Usually this means the macro was only invoked conditionally." "$LINENO" 5
32119fi
32120 if test -n "$EXEEXT"; then
32121  am__EXEEXT_TRUE=
32122  am__EXEEXT_FALSE='#'
32123else
32124  am__EXEEXT_TRUE='#'
32125  am__EXEEXT_FALSE=
32126fi
32127
32128if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
32129  as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
32130Usually this means the macro was only invoked conditionally." "$LINENO" 5
32131fi
32132if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
32133  as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
32134Usually this means the macro was only invoked conditionally." "$LINENO" 5
32135fi
32136if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
32137  as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
32138Usually this means the macro was only invoked conditionally." "$LINENO" 5
32139fi
32140if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
32141  as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
32142Usually this means the macro was only invoked conditionally." "$LINENO" 5
32143fi
32144if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
32145  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
32146Usually this means the macro was only invoked conditionally." "$LINENO" 5
32147fi
32148if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
32149  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
32150Usually this means the macro was only invoked conditionally." "$LINENO" 5
32151fi
32152
32153if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
32154  as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
32155Usually this means the macro was only invoked conditionally." "$LINENO" 5
32156fi
32157
32158: "${CONFIG_STATUS=./config.status}"
32159ac_write_fail=0
32160ac_clean_files_save=$ac_clean_files
32161ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32162{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32163$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32164as_write_fail=0
32165cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32166#! $SHELL
32167# Generated by $as_me.
32168# Run this file to recreate the current configuration.
32169# Compiler output produced by configure, useful for debugging
32170# configure, is in config.log if it exists.
32171
32172debug=false
32173ac_cs_recheck=false
32174ac_cs_silent=false
32175
32176SHELL=\${CONFIG_SHELL-$SHELL}
32177export SHELL
32178_ASEOF
32179cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32180## -------------------- ##
32181## M4sh Initialization. ##
32182## -------------------- ##
32183
32184# Be more Bourne compatible
32185DUALCASE=1; export DUALCASE # for MKS sh
32186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32187  emulate sh
32188  NULLCMD=:
32189  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32190  # is contrary to our usage.  Disable this feature.
32191  alias -g '${1+"$@"}'='"$@"'
32192  setopt NO_GLOB_SUBST
32193else
32194  case `(set -o) 2>/dev/null` in #(
32195  *posix*) :
32196    set -o posix ;; #(
32197  *) :
32198     ;;
32199esac
32200fi
32201
32202
32203as_nl='
32204'
32205export as_nl
32206# Printing a long string crashes Solaris 7 /usr/bin/printf.
32207as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32209as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32210# Prefer a ksh shell builtin over an external printf program on Solaris,
32211# but without wasting forks for bash or zsh.
32212if test -z "$BASH_VERSION$ZSH_VERSION" \
32213    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32214  as_echo='print -r --'
32215  as_echo_n='print -rn --'
32216elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32217  as_echo='printf %s\n'
32218  as_echo_n='printf %s'
32219else
32220  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32221    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32222    as_echo_n='/usr/ucb/echo -n'
32223  else
32224    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32225    as_echo_n_body='eval
32226      arg=$1;
32227      case $arg in #(
32228      *"$as_nl"*)
32229	expr "X$arg" : "X\\(.*\\)$as_nl";
32230	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32231      esac;
32232      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32233    '
32234    export as_echo_n_body
32235    as_echo_n='sh -c $as_echo_n_body as_echo'
32236  fi
32237  export as_echo_body
32238  as_echo='sh -c $as_echo_body as_echo'
32239fi
32240
32241
32242
32243# IFS
32244# We need space, tab and new line, in precisely that order.  Quoting is
32245# there to prevent editors from complaining about space-tab.
32246# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32247# splitting by setting IFS to empty value.)
32248IFS=" ""	$as_nl"
32249
32250# Find who we are.  Look in the path if we contain no directory separator.
32251as_myself=
32252case $0 in #((
32253  *[\\/]* ) as_myself=$0 ;;
32254  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32255for as_dir in $PATH
32256do
32257  IFS=$as_save_IFS
32258  test -z "$as_dir" && as_dir=.
32259    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32260  done
32261IFS=$as_save_IFS
32262
32263     ;;
32264esac
32265# We did not find ourselves, most probably we were run as `sh COMMAND'
32266# in which case we are not to be found in the path.
32267if test "x$as_myself" = x; then
32268  as_myself=$0
32269fi
32270if test ! -f "$as_myself"; then
32271  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32272  exit 1
32273fi
32274
32275# Unset variables that we do not need and which cause bugs (e.g. in
32276# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32277# suppresses any "Segmentation fault" message there.  '((' could
32278# trigger a bug in pdksh 5.2.14.
32279for as_var in BASH_ENV ENV MAIL MAILPATH
32280do eval test x\${$as_var+set} = xset \
32281  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32282done
32283PS1='$ '
32284PS2='> '
32285PS4='+ '
32286
32287# NLS nuisances.
32288LC_ALL=C
32289export LC_ALL
32290LANGUAGE=C
32291export LANGUAGE
32292
32293# CDPATH.
32294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32295
32296
32297# as_fn_error STATUS ERROR [LINENO LOG_FD]
32298# ----------------------------------------
32299# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32300# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32301# script with STATUS, using 1 if that was 0.
32302as_fn_error ()
32303{
32304  as_status=$1; test $as_status -eq 0 && as_status=1
32305  if test "$4"; then
32306    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32307    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32308  fi
32309  $as_echo "$as_me: error: $2" >&2
32310  as_fn_exit $as_status
32311} # as_fn_error
32312
32313
32314# as_fn_set_status STATUS
32315# -----------------------
32316# Set $? to STATUS, without forking.
32317as_fn_set_status ()
32318{
32319  return $1
32320} # as_fn_set_status
32321
32322# as_fn_exit STATUS
32323# -----------------
32324# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32325as_fn_exit ()
32326{
32327  set +e
32328  as_fn_set_status $1
32329  exit $1
32330} # as_fn_exit
32331
32332# as_fn_unset VAR
32333# ---------------
32334# Portably unset VAR.
32335as_fn_unset ()
32336{
32337  { eval $1=; unset $1;}
32338}
32339as_unset=as_fn_unset
32340# as_fn_append VAR VALUE
32341# ----------------------
32342# Append the text in VALUE to the end of the definition contained in VAR. Take
32343# advantage of any shell optimizations that allow amortized linear growth over
32344# repeated appends, instead of the typical quadratic growth present in naive
32345# implementations.
32346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32347  eval 'as_fn_append ()
32348  {
32349    eval $1+=\$2
32350  }'
32351else
32352  as_fn_append ()
32353  {
32354    eval $1=\$$1\$2
32355  }
32356fi # as_fn_append
32357
32358# as_fn_arith ARG...
32359# ------------------
32360# Perform arithmetic evaluation on the ARGs, and store the result in the
32361# global $as_val. Take advantage of shells that can avoid forks. The arguments
32362# must be portable across $(()) and expr.
32363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32364  eval 'as_fn_arith ()
32365  {
32366    as_val=$(( $* ))
32367  }'
32368else
32369  as_fn_arith ()
32370  {
32371    as_val=`expr "$@" || test $? -eq 1`
32372  }
32373fi # as_fn_arith
32374
32375
32376if expr a : '\(a\)' >/dev/null 2>&1 &&
32377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
32378  as_expr=expr
32379else
32380  as_expr=false
32381fi
32382
32383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32384  as_basename=basename
32385else
32386  as_basename=false
32387fi
32388
32389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32390  as_dirname=dirname
32391else
32392  as_dirname=false
32393fi
32394
32395as_me=`$as_basename -- "$0" ||
32396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32397	 X"$0" : 'X\(//\)$' \| \
32398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32399$as_echo X/"$0" |
32400    sed '/^.*\/\([^/][^/]*\)\/*$/{
32401	    s//\1/
32402	    q
32403	  }
32404	  /^X\/\(\/\/\)$/{
32405	    s//\1/
32406	    q
32407	  }
32408	  /^X\/\(\/\).*/{
32409	    s//\1/
32410	    q
32411	  }
32412	  s/.*/./; q'`
32413
32414# Avoid depending upon Character Ranges.
32415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32418as_cr_digits='0123456789'
32419as_cr_alnum=$as_cr_Letters$as_cr_digits
32420
32421ECHO_C= ECHO_N= ECHO_T=
32422case `echo -n x` in #(((((
32423-n*)
32424  case `echo 'xy\c'` in
32425  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
32426  xy)  ECHO_C='\c';;
32427  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32428       ECHO_T='	';;
32429  esac;;
32430*)
32431  ECHO_N='-n';;
32432esac
32433
32434rm -f conf$$ conf$$.exe conf$$.file
32435if test -d conf$$.dir; then
32436  rm -f conf$$.dir/conf$$.file
32437else
32438  rm -f conf$$.dir
32439  mkdir conf$$.dir 2>/dev/null
32440fi
32441if (echo >conf$$.file) 2>/dev/null; then
32442  if ln -s conf$$.file conf$$ 2>/dev/null; then
32443    as_ln_s='ln -s'
32444    # ... but there are two gotchas:
32445    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32446    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32447    # In both cases, we have to default to `cp -pR'.
32448    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32449      as_ln_s='cp -pR'
32450  elif ln conf$$.file conf$$ 2>/dev/null; then
32451    as_ln_s=ln
32452  else
32453    as_ln_s='cp -pR'
32454  fi
32455else
32456  as_ln_s='cp -pR'
32457fi
32458rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32459rmdir conf$$.dir 2>/dev/null
32460
32461
32462# as_fn_mkdir_p
32463# -------------
32464# Create "$as_dir" as a directory, including parents if necessary.
32465as_fn_mkdir_p ()
32466{
32467
32468  case $as_dir in #(
32469  -*) as_dir=./$as_dir;;
32470  esac
32471  test -d "$as_dir" || eval $as_mkdir_p || {
32472    as_dirs=
32473    while :; do
32474      case $as_dir in #(
32475      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32476      *) as_qdir=$as_dir;;
32477      esac
32478      as_dirs="'$as_qdir' $as_dirs"
32479      as_dir=`$as_dirname -- "$as_dir" ||
32480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32481	 X"$as_dir" : 'X\(//\)[^/]' \| \
32482	 X"$as_dir" : 'X\(//\)$' \| \
32483	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32484$as_echo X"$as_dir" |
32485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32486	    s//\1/
32487	    q
32488	  }
32489	  /^X\(\/\/\)[^/].*/{
32490	    s//\1/
32491	    q
32492	  }
32493	  /^X\(\/\/\)$/{
32494	    s//\1/
32495	    q
32496	  }
32497	  /^X\(\/\).*/{
32498	    s//\1/
32499	    q
32500	  }
32501	  s/.*/./; q'`
32502      test -d "$as_dir" && break
32503    done
32504    test -z "$as_dirs" || eval "mkdir $as_dirs"
32505  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32506
32507
32508} # as_fn_mkdir_p
32509if mkdir -p . 2>/dev/null; then
32510  as_mkdir_p='mkdir -p "$as_dir"'
32511else
32512  test -d ./-p && rmdir ./-p
32513  as_mkdir_p=false
32514fi
32515
32516
32517# as_fn_executable_p FILE
32518# -----------------------
32519# Test if FILE is an executable regular file.
32520as_fn_executable_p ()
32521{
32522  test -f "$1" && test -x "$1"
32523} # as_fn_executable_p
32524as_test_x='test -x'
32525as_executable_p=as_fn_executable_p
32526
32527# Sed expression to map a string onto a valid CPP name.
32528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32529
32530# Sed expression to map a string onto a valid variable name.
32531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32532
32533
32534exec 6>&1
32535## ----------------------------------- ##
32536## Main body of $CONFIG_STATUS script. ##
32537## ----------------------------------- ##
32538_ASEOF
32539test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32540
32541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32542# Save the log message, to keep $0 and so on meaningful, and to
32543# report actual input values of CONFIG_FILES etc. instead of their
32544# values after options handling.
32545ac_log="
32546This file was extended by c-ares $as_me 1.16.1, which was
32547generated by GNU Autoconf 2.69.  Invocation command line was
32548
32549  CONFIG_FILES    = $CONFIG_FILES
32550  CONFIG_HEADERS  = $CONFIG_HEADERS
32551  CONFIG_LINKS    = $CONFIG_LINKS
32552  CONFIG_COMMANDS = $CONFIG_COMMANDS
32553  $ $0 $@
32554
32555on `(hostname || uname -n) 2>/dev/null | sed 1q`
32556"
32557
32558_ACEOF
32559
32560case $ac_config_files in *"
32561"*) set x $ac_config_files; shift; ac_config_files=$*;;
32562esac
32563
32564case $ac_config_headers in *"
32565"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32566esac
32567
32568
32569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32570# Files that config.status was made for.
32571config_files="$ac_config_files"
32572config_headers="$ac_config_headers"
32573config_commands="$ac_config_commands"
32574
32575_ACEOF
32576
32577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32578ac_cs_usage="\
32579\`$as_me' instantiates files and other configuration actions
32580from templates according to the current configuration.  Unless the files
32581and actions are specified as TAGs, all are instantiated by default.
32582
32583Usage: $0 [OPTION]... [TAG]...
32584
32585  -h, --help       print this help, then exit
32586  -V, --version    print version number and configuration settings, then exit
32587      --config     print configuration, then exit
32588  -q, --quiet, --silent
32589                   do not print progress messages
32590  -d, --debug      don't remove temporary files
32591      --recheck    update $as_me by reconfiguring in the same conditions
32592      --file=FILE[:TEMPLATE]
32593                   instantiate the configuration file FILE
32594      --header=FILE[:TEMPLATE]
32595                   instantiate the configuration header FILE
32596
32597Configuration files:
32598$config_files
32599
32600Configuration headers:
32601$config_headers
32602
32603Configuration commands:
32604$config_commands
32605
32606Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
32607
32608_ACEOF
32609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32610ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32611ac_cs_version="\\
32612c-ares config.status 1.16.1
32613configured by $0, generated by GNU Autoconf 2.69,
32614  with options \\"\$ac_cs_config\\"
32615
32616Copyright (C) 2012 Free Software Foundation, Inc.
32617This config.status script is free software; the Free Software Foundation
32618gives unlimited permission to copy, distribute and modify it."
32619
32620ac_pwd='$ac_pwd'
32621srcdir='$srcdir'
32622INSTALL='$INSTALL'
32623MKDIR_P='$MKDIR_P'
32624AWK='$AWK'
32625test -n "\$AWK" || AWK=awk
32626_ACEOF
32627
32628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32629# The default lists apply if the user does not specify any file.
32630ac_need_defaults=:
32631while test $# != 0
32632do
32633  case $1 in
32634  --*=?*)
32635    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32636    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32637    ac_shift=:
32638    ;;
32639  --*=)
32640    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32641    ac_optarg=
32642    ac_shift=:
32643    ;;
32644  *)
32645    ac_option=$1
32646    ac_optarg=$2
32647    ac_shift=shift
32648    ;;
32649  esac
32650
32651  case $ac_option in
32652  # Handling of the options.
32653  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32654    ac_cs_recheck=: ;;
32655  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32656    $as_echo "$ac_cs_version"; exit ;;
32657  --config | --confi | --conf | --con | --co | --c )
32658    $as_echo "$ac_cs_config"; exit ;;
32659  --debug | --debu | --deb | --de | --d | -d )
32660    debug=: ;;
32661  --file | --fil | --fi | --f )
32662    $ac_shift
32663    case $ac_optarg in
32664    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32665    '') as_fn_error $? "missing file argument" ;;
32666    esac
32667    as_fn_append CONFIG_FILES " '$ac_optarg'"
32668    ac_need_defaults=false;;
32669  --header | --heade | --head | --hea )
32670    $ac_shift
32671    case $ac_optarg in
32672    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32673    esac
32674    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32675    ac_need_defaults=false;;
32676  --he | --h)
32677    # Conflict between --help and --header
32678    as_fn_error $? "ambiguous option: \`$1'
32679Try \`$0 --help' for more information.";;
32680  --help | --hel | -h )
32681    $as_echo "$ac_cs_usage"; exit ;;
32682  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32683  | -silent | --silent | --silen | --sile | --sil | --si | --s)
32684    ac_cs_silent=: ;;
32685
32686  # This is an error.
32687  -*) as_fn_error $? "unrecognized option: \`$1'
32688Try \`$0 --help' for more information." ;;
32689
32690  *) as_fn_append ac_config_targets " $1"
32691     ac_need_defaults=false ;;
32692
32693  esac
32694  shift
32695done
32696
32697ac_configure_extra_args=
32698
32699if $ac_cs_silent; then
32700  exec 6>/dev/null
32701  ac_configure_extra_args="$ac_configure_extra_args --silent"
32702fi
32703
32704_ACEOF
32705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32706if \$ac_cs_recheck; then
32707  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32708  shift
32709  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32710  CONFIG_SHELL='$SHELL'
32711  export CONFIG_SHELL
32712  exec "\$@"
32713fi
32714
32715_ACEOF
32716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32717exec 5>>config.log
32718{
32719  echo
32720  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32721## Running $as_me. ##
32722_ASBOX
32723  $as_echo "$ac_log"
32724} >&5
32725
32726_ACEOF
32727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32728#
32729# INIT-COMMANDS
32730#
32731AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
32732
32733
32734# The HP-UX ksh and POSIX shell print the target directory to stdout
32735# if CDPATH is set.
32736(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32737
32738sed_quote_subst='$sed_quote_subst'
32739double_quote_subst='$double_quote_subst'
32740delay_variable_subst='$delay_variable_subst'
32741macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32742macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32743AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32744DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32745OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32746enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32747enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32748pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32749enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32750shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32751SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32752ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32753PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32754host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32755host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32756host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32757build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32758build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32759build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32760SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32761Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32762GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32763EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32764FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32765LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32766NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32767LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32768max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32769ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32770exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32771lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32772lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32773lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32774lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32775lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32776reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32777reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32778deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32779file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32780file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32781want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32782sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32783AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32784AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32785archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32786STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32787RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32788old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32789old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32790old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32791lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32792CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32793CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32794compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32795GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32796lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32797lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32798lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32799lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32800lt_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"`'
32801lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32802nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32803lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32804lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32805objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32806MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32807lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32808lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32809lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32810lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32811lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32812need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32813MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32814DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32815NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32816LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32817OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32818OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32819libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32820shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32821extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32822archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32823enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32824export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32825whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32826compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32827old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32828old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32829archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32830archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32831module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32832module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32833with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32834allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32835no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32836hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32837hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32838hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32839hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32840hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32841hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32842hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32843inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32844link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32845always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32846export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32847exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32848include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32849prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32850postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32851file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32852variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32853need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32854need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32855version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32856runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32857shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32858shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32859libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32860library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32861soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32862install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32863postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32864postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32865finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32866finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32867hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32868sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32869configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32870configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32871hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32872enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32873enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32874enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32875old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32876striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32877compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32878predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32879postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32880predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32881postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32882compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32883LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32884reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32885reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32886old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32887compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32888GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32889lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32890lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32891lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32892lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32893lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32894archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32895enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32896export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32897whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32898compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32899old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32900old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32901archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32902archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32903module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32904module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32905with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32906allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32907no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32908hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32909hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32910hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32911hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32912hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32913hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32914hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32915inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32916link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32917always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32918export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32919exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32920include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32921prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32922postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32923file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32924hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32925compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32926predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32927postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32928predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32929postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32930compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32931
32932LTCC='$LTCC'
32933LTCFLAGS='$LTCFLAGS'
32934compiler='$compiler_DEFAULT'
32935
32936# A function that is used when there is no print builtin or printf.
32937func_fallback_echo ()
32938{
32939  eval 'cat <<_LTECHO_EOF
32940\$1
32941_LTECHO_EOF'
32942}
32943
32944# Quote evaled strings.
32945for var in AS \
32946DLLTOOL \
32947OBJDUMP \
32948SHELL \
32949ECHO \
32950PATH_SEPARATOR \
32951SED \
32952GREP \
32953EGREP \
32954FGREP \
32955LD \
32956NM \
32957LN_S \
32958lt_SP2NL \
32959lt_NL2SP \
32960reload_flag \
32961deplibs_check_method \
32962file_magic_cmd \
32963file_magic_glob \
32964want_nocaseglob \
32965sharedlib_from_linklib_cmd \
32966AR \
32967AR_FLAGS \
32968archiver_list_spec \
32969STRIP \
32970RANLIB \
32971CC \
32972CFLAGS \
32973compiler \
32974lt_cv_sys_global_symbol_pipe \
32975lt_cv_sys_global_symbol_to_cdecl \
32976lt_cv_sys_global_symbol_to_import \
32977lt_cv_sys_global_symbol_to_c_name_address \
32978lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32979lt_cv_nm_interface \
32980nm_file_list_spec \
32981lt_cv_truncate_bin \
32982lt_prog_compiler_no_builtin_flag \
32983lt_prog_compiler_pic \
32984lt_prog_compiler_wl \
32985lt_prog_compiler_static \
32986lt_cv_prog_compiler_c_o \
32987need_locks \
32988MANIFEST_TOOL \
32989DSYMUTIL \
32990NMEDIT \
32991LIPO \
32992OTOOL \
32993OTOOL64 \
32994shrext_cmds \
32995export_dynamic_flag_spec \
32996whole_archive_flag_spec \
32997compiler_needs_object \
32998with_gnu_ld \
32999allow_undefined_flag \
33000no_undefined_flag \
33001hardcode_libdir_flag_spec \
33002hardcode_libdir_separator \
33003exclude_expsyms \
33004include_expsyms \
33005file_list_spec \
33006variables_saved_for_relink \
33007libname_spec \
33008library_names_spec \
33009soname_spec \
33010install_override_mode \
33011finish_eval \
33012old_striplib \
33013striplib \
33014compiler_lib_search_dirs \
33015predep_objects \
33016postdep_objects \
33017predeps \
33018postdeps \
33019compiler_lib_search_path \
33020LD_CXX \
33021reload_flag_CXX \
33022compiler_CXX \
33023lt_prog_compiler_no_builtin_flag_CXX \
33024lt_prog_compiler_pic_CXX \
33025lt_prog_compiler_wl_CXX \
33026lt_prog_compiler_static_CXX \
33027lt_cv_prog_compiler_c_o_CXX \
33028export_dynamic_flag_spec_CXX \
33029whole_archive_flag_spec_CXX \
33030compiler_needs_object_CXX \
33031with_gnu_ld_CXX \
33032allow_undefined_flag_CXX \
33033no_undefined_flag_CXX \
33034hardcode_libdir_flag_spec_CXX \
33035hardcode_libdir_separator_CXX \
33036exclude_expsyms_CXX \
33037include_expsyms_CXX \
33038file_list_spec_CXX \
33039compiler_lib_search_dirs_CXX \
33040predep_objects_CXX \
33041postdep_objects_CXX \
33042predeps_CXX \
33043postdeps_CXX \
33044compiler_lib_search_path_CXX; do
33045    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33046    *[\\\\\\\`\\"\\\$]*)
33047      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33048      ;;
33049    *)
33050      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33051      ;;
33052    esac
33053done
33054
33055# Double-quote double-evaled strings.
33056for var in reload_cmds \
33057old_postinstall_cmds \
33058old_postuninstall_cmds \
33059old_archive_cmds \
33060extract_expsyms_cmds \
33061old_archive_from_new_cmds \
33062old_archive_from_expsyms_cmds \
33063archive_cmds \
33064archive_expsym_cmds \
33065module_cmds \
33066module_expsym_cmds \
33067export_symbols_cmds \
33068prelink_cmds \
33069postlink_cmds \
33070postinstall_cmds \
33071postuninstall_cmds \
33072finish_cmds \
33073sys_lib_search_path_spec \
33074configure_time_dlsearch_path \
33075configure_time_lt_sys_library_path \
33076reload_cmds_CXX \
33077old_archive_cmds_CXX \
33078old_archive_from_new_cmds_CXX \
33079old_archive_from_expsyms_cmds_CXX \
33080archive_cmds_CXX \
33081archive_expsym_cmds_CXX \
33082module_cmds_CXX \
33083module_expsym_cmds_CXX \
33084export_symbols_cmds_CXX \
33085prelink_cmds_CXX \
33086postlink_cmds_CXX; do
33087    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33088    *[\\\\\\\`\\"\\\$]*)
33089      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33090      ;;
33091    *)
33092      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33093      ;;
33094    esac
33095done
33096
33097ac_aux_dir='$ac_aux_dir'
33098
33099# See if we are running on zsh, and set the options that allow our
33100# commands through without removal of \ escapes INIT.
33101if test -n "\${ZSH_VERSION+set}"; then
33102   setopt NO_GLOB_SUBST
33103fi
33104
33105
33106    PACKAGE='$PACKAGE'
33107    VERSION='$VERSION'
33108    RM='$RM'
33109    ofile='$ofile'
33110
33111
33112
33113
33114
33115
33116_ACEOF
33117
33118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33119
33120# Handling of arguments.
33121for ac_config_target in $ac_config_targets
33122do
33123  case $ac_config_target in
33124    "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
33125    "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
33126    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33127    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33128    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33129    "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
33130
33131  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33132  esac
33133done
33134
33135
33136# If the user did not use the arguments to specify the items to instantiate,
33137# then the envvar interface is used.  Set only those that are not.
33138# We use the long form for the default assignment because of an extremely
33139# bizarre bug on SunOS 4.1.3.
33140if $ac_need_defaults; then
33141  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33142  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33143  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33144fi
33145
33146# Have a temporary directory for convenience.  Make it in the build tree
33147# simply because there is no reason against having it here, and in addition,
33148# creating and moving files from /tmp can sometimes cause problems.
33149# Hook for its removal unless debugging.
33150# Note that there is a small window in which the directory will not be cleaned:
33151# after its creation but before its name has been assigned to `$tmp'.
33152$debug ||
33153{
33154  tmp= ac_tmp=
33155  trap 'exit_status=$?
33156  : "${ac_tmp:=$tmp}"
33157  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33158' 0
33159  trap 'as_fn_exit 1' 1 2 13 15
33160}
33161# Create a (secure) tmp directory for tmp files.
33162
33163{
33164  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33165  test -d "$tmp"
33166}  ||
33167{
33168  tmp=./conf$$-$RANDOM
33169  (umask 077 && mkdir "$tmp")
33170} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33171ac_tmp=$tmp
33172
33173# Set up the scripts for CONFIG_FILES section.
33174# No need to generate them if there are no CONFIG_FILES.
33175# This happens for instance with `./config.status config.h'.
33176if test -n "$CONFIG_FILES"; then
33177
33178
33179ac_cr=`echo X | tr X '\015'`
33180# On cygwin, bash can eat \r inside `` if the user requested igncr.
33181# But we know of no other shell where ac_cr would be empty at this
33182# point, so we can use a bashism as a fallback.
33183if test "x$ac_cr" = x; then
33184  eval ac_cr=\$\'\\r\'
33185fi
33186ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33187if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33188  ac_cs_awk_cr='\\r'
33189else
33190  ac_cs_awk_cr=$ac_cr
33191fi
33192
33193echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33194_ACEOF
33195
33196
33197{
33198  echo "cat >conf$$subs.awk <<_ACEOF" &&
33199  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33200  echo "_ACEOF"
33201} >conf$$subs.sh ||
33202  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33203ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33204ac_delim='%!_!# '
33205for ac_last_try in false false false false false :; do
33206  . ./conf$$subs.sh ||
33207    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33208
33209  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33210  if test $ac_delim_n = $ac_delim_num; then
33211    break
33212  elif $ac_last_try; then
33213    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33214  else
33215    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33216  fi
33217done
33218rm -f conf$$subs.sh
33219
33220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33221cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33222_ACEOF
33223sed -n '
33224h
33225s/^/S["/; s/!.*/"]=/
33226p
33227g
33228s/^[^!]*!//
33229:repl
33230t repl
33231s/'"$ac_delim"'$//
33232t delim
33233:nl
33234h
33235s/\(.\{148\}\)..*/\1/
33236t more1
33237s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33238p
33239n
33240b repl
33241:more1
33242s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33243p
33244g
33245s/.\{148\}//
33246t nl
33247:delim
33248h
33249s/\(.\{148\}\)..*/\1/
33250t more2
33251s/["\\]/\\&/g; s/^/"/; s/$/"/
33252p
33253b
33254:more2
33255s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33256p
33257g
33258s/.\{148\}//
33259t delim
33260' <conf$$subs.awk | sed '
33261/^[^""]/{
33262  N
33263  s/\n//
33264}
33265' >>$CONFIG_STATUS || ac_write_fail=1
33266rm -f conf$$subs.awk
33267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33268_ACAWK
33269cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33270  for (key in S) S_is_set[key] = 1
33271  FS = ""
33272
33273}
33274{
33275  line = $ 0
33276  nfields = split(line, field, "@")
33277  substed = 0
33278  len = length(field[1])
33279  for (i = 2; i < nfields; i++) {
33280    key = field[i]
33281    keylen = length(key)
33282    if (S_is_set[key]) {
33283      value = S[key]
33284      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33285      len += length(value) + length(field[++i])
33286      substed = 1
33287    } else
33288      len += 1 + keylen
33289  }
33290
33291  print line
33292}
33293
33294_ACAWK
33295_ACEOF
33296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33297if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33298  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33299else
33300  cat
33301fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33302  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33303_ACEOF
33304
33305# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33306# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33307# trailing colons and then remove the whole line if VPATH becomes empty
33308# (actually we leave an empty line to preserve line numbers).
33309if test "x$srcdir" = x.; then
33310  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33311h
33312s///
33313s/^/:/
33314s/[	 ]*$/:/
33315s/:\$(srcdir):/:/g
33316s/:\${srcdir}:/:/g
33317s/:@srcdir@:/:/g
33318s/^:*//
33319s/:*$//
33320x
33321s/\(=[	 ]*\).*/\1/
33322G
33323s/\n//
33324s/^[^=]*=[	 ]*$//
33325}'
33326fi
33327
33328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33329fi # test -n "$CONFIG_FILES"
33330
33331# Set up the scripts for CONFIG_HEADERS section.
33332# No need to generate them if there are no CONFIG_HEADERS.
33333# This happens for instance with `./config.status Makefile'.
33334if test -n "$CONFIG_HEADERS"; then
33335cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33336BEGIN {
33337_ACEOF
33338
33339# Transform confdefs.h into an awk script `defines.awk', embedded as
33340# here-document in config.status, that substitutes the proper values into
33341# config.h.in to produce config.h.
33342
33343# Create a delimiter string that does not exist in confdefs.h, to ease
33344# handling of long lines.
33345ac_delim='%!_!# '
33346for ac_last_try in false false :; do
33347  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33348  if test -z "$ac_tt"; then
33349    break
33350  elif $ac_last_try; then
33351    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33352  else
33353    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33354  fi
33355done
33356
33357# For the awk script, D is an array of macro values keyed by name,
33358# likewise P contains macro parameters if any.  Preserve backslash
33359# newline sequences.
33360
33361ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33362sed -n '
33363s/.\{148\}/&'"$ac_delim"'/g
33364t rset
33365:rset
33366s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33367t def
33368d
33369:def
33370s/\\$//
33371t bsnl
33372s/["\\]/\\&/g
33373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33374D["\1"]=" \3"/p
33375s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33376d
33377:bsnl
33378s/["\\]/\\&/g
33379s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33380D["\1"]=" \3\\\\\\n"\\/p
33381t cont
33382s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33383t cont
33384d
33385:cont
33386n
33387s/.\{148\}/&'"$ac_delim"'/g
33388t clear
33389:clear
33390s/\\$//
33391t bsnlc
33392s/["\\]/\\&/g; s/^/"/; s/$/"/p
33393d
33394:bsnlc
33395s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33396b cont
33397' <confdefs.h | sed '
33398s/'"$ac_delim"'/"\\\
33399"/g' >>$CONFIG_STATUS || ac_write_fail=1
33400
33401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33402  for (key in D) D_is_set[key] = 1
33403  FS = ""
33404}
33405/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33406  line = \$ 0
33407  split(line, arg, " ")
33408  if (arg[1] == "#") {
33409    defundef = arg[2]
33410    mac1 = arg[3]
33411  } else {
33412    defundef = substr(arg[1], 2)
33413    mac1 = arg[2]
33414  }
33415  split(mac1, mac2, "(") #)
33416  macro = mac2[1]
33417  prefix = substr(line, 1, index(line, defundef) - 1)
33418  if (D_is_set[macro]) {
33419    # Preserve the white space surrounding the "#".
33420    print prefix "define", macro P[macro] D[macro]
33421    next
33422  } else {
33423    # Replace #undef with comments.  This is necessary, for example,
33424    # in the case of _POSIX_SOURCE, which is predefined and required
33425    # on some systems where configure will not decide to define it.
33426    if (defundef == "undef") {
33427      print "/*", prefix defundef, macro, "*/"
33428      next
33429    }
33430  }
33431}
33432{ print }
33433_ACAWK
33434_ACEOF
33435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33436  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33437fi # test -n "$CONFIG_HEADERS"
33438
33439
33440eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33441shift
33442for ac_tag
33443do
33444  case $ac_tag in
33445  :[FHLC]) ac_mode=$ac_tag; continue;;
33446  esac
33447  case $ac_mode$ac_tag in
33448  :[FHL]*:*);;
33449  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33450  :[FH]-) ac_tag=-:-;;
33451  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33452  esac
33453  ac_save_IFS=$IFS
33454  IFS=:
33455  set x $ac_tag
33456  IFS=$ac_save_IFS
33457  shift
33458  ac_file=$1
33459  shift
33460
33461  case $ac_mode in
33462  :L) ac_source=$1;;
33463  :[FH])
33464    ac_file_inputs=
33465    for ac_f
33466    do
33467      case $ac_f in
33468      -) ac_f="$ac_tmp/stdin";;
33469      *) # Look for the file first in the build tree, then in the source tree
33470	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33471	 # because $ac_f cannot contain `:'.
33472	 test -f "$ac_f" ||
33473	   case $ac_f in
33474	   [\\/$]*) false;;
33475	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33476	   esac ||
33477	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33478      esac
33479      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33480      as_fn_append ac_file_inputs " '$ac_f'"
33481    done
33482
33483    # Let's still pretend it is `configure' which instantiates (i.e., don't
33484    # use $as_me), people would be surprised to read:
33485    #    /* config.h.  Generated by config.status.  */
33486    configure_input='Generated from '`
33487	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33488	`' by configure.'
33489    if test x"$ac_file" != x-; then
33490      configure_input="$ac_file.  $configure_input"
33491      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33492$as_echo "$as_me: creating $ac_file" >&6;}
33493    fi
33494    # Neutralize special characters interpreted by sed in replacement strings.
33495    case $configure_input in #(
33496    *\&* | *\|* | *\\* )
33497       ac_sed_conf_input=`$as_echo "$configure_input" |
33498       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33499    *) ac_sed_conf_input=$configure_input;;
33500    esac
33501
33502    case $ac_tag in
33503    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33504      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33505    esac
33506    ;;
33507  esac
33508
33509  ac_dir=`$as_dirname -- "$ac_file" ||
33510$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33511	 X"$ac_file" : 'X\(//\)[^/]' \| \
33512	 X"$ac_file" : 'X\(//\)$' \| \
33513	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33514$as_echo X"$ac_file" |
33515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33516	    s//\1/
33517	    q
33518	  }
33519	  /^X\(\/\/\)[^/].*/{
33520	    s//\1/
33521	    q
33522	  }
33523	  /^X\(\/\/\)$/{
33524	    s//\1/
33525	    q
33526	  }
33527	  /^X\(\/\).*/{
33528	    s//\1/
33529	    q
33530	  }
33531	  s/.*/./; q'`
33532  as_dir="$ac_dir"; as_fn_mkdir_p
33533  ac_builddir=.
33534
33535case "$ac_dir" in
33536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33537*)
33538  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33539  # A ".." for each directory in $ac_dir_suffix.
33540  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33541  case $ac_top_builddir_sub in
33542  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33543  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33544  esac ;;
33545esac
33546ac_abs_top_builddir=$ac_pwd
33547ac_abs_builddir=$ac_pwd$ac_dir_suffix
33548# for backward compatibility:
33549ac_top_builddir=$ac_top_build_prefix
33550
33551case $srcdir in
33552  .)  # We are building in place.
33553    ac_srcdir=.
33554    ac_top_srcdir=$ac_top_builddir_sub
33555    ac_abs_top_srcdir=$ac_pwd ;;
33556  [\\/]* | ?:[\\/]* )  # Absolute name.
33557    ac_srcdir=$srcdir$ac_dir_suffix;
33558    ac_top_srcdir=$srcdir
33559    ac_abs_top_srcdir=$srcdir ;;
33560  *) # Relative name.
33561    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33562    ac_top_srcdir=$ac_top_build_prefix$srcdir
33563    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33564esac
33565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33566
33567
33568  case $ac_mode in
33569  :F)
33570  #
33571  # CONFIG_FILE
33572  #
33573
33574  case $INSTALL in
33575  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33576  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33577  esac
33578  ac_MKDIR_P=$MKDIR_P
33579  case $MKDIR_P in
33580  [\\/$]* | ?:[\\/]* ) ;;
33581  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33582  esac
33583_ACEOF
33584
33585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33586# If the template does not know about datarootdir, expand it.
33587# FIXME: This hack should be removed a few years after 2.60.
33588ac_datarootdir_hack=; ac_datarootdir_seen=
33589ac_sed_dataroot='
33590/datarootdir/ {
33591  p
33592  q
33593}
33594/@datadir@/p
33595/@docdir@/p
33596/@infodir@/p
33597/@localedir@/p
33598/@mandir@/p'
33599case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33600*datarootdir*) ac_datarootdir_seen=yes;;
33601*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33602  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33603$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33604_ACEOF
33605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33606  ac_datarootdir_hack='
33607  s&@datadir@&$datadir&g
33608  s&@docdir@&$docdir&g
33609  s&@infodir@&$infodir&g
33610  s&@localedir@&$localedir&g
33611  s&@mandir@&$mandir&g
33612  s&\\\${datarootdir}&$datarootdir&g' ;;
33613esac
33614_ACEOF
33615
33616# Neutralize VPATH when `$srcdir' = `.'.
33617# Shell code in configure.ac might set extrasub.
33618# FIXME: do we really want to maintain this feature?
33619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33620ac_sed_extra="$ac_vpsub
33621$extrasub
33622_ACEOF
33623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33624:t
33625/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33626s|@configure_input@|$ac_sed_conf_input|;t t
33627s&@top_builddir@&$ac_top_builddir_sub&;t t
33628s&@top_build_prefix@&$ac_top_build_prefix&;t t
33629s&@srcdir@&$ac_srcdir&;t t
33630s&@abs_srcdir@&$ac_abs_srcdir&;t t
33631s&@top_srcdir@&$ac_top_srcdir&;t t
33632s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33633s&@builddir@&$ac_builddir&;t t
33634s&@abs_builddir@&$ac_abs_builddir&;t t
33635s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33636s&@INSTALL@&$ac_INSTALL&;t t
33637s&@MKDIR_P@&$ac_MKDIR_P&;t t
33638$ac_datarootdir_hack
33639"
33640eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33641  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33642
33643test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33644  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33645  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33646      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33647  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33648which seems to be undefined.  Please make sure it is defined" >&5
33649$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33650which seems to be undefined.  Please make sure it is defined" >&2;}
33651
33652  rm -f "$ac_tmp/stdin"
33653  case $ac_file in
33654  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33655  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33656  esac \
33657  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33658 ;;
33659  :H)
33660  #
33661  # CONFIG_HEADER
33662  #
33663  if test x"$ac_file" != x-; then
33664    {
33665      $as_echo "/* $configure_input  */" \
33666      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33667    } >"$ac_tmp/config.h" \
33668      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33669    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33670      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33671$as_echo "$as_me: $ac_file is unchanged" >&6;}
33672    else
33673      rm -f "$ac_file"
33674      mv "$ac_tmp/config.h" "$ac_file" \
33675	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
33676    fi
33677  else
33678    $as_echo "/* $configure_input  */" \
33679      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33680      || as_fn_error $? "could not create -" "$LINENO" 5
33681  fi
33682# Compute "$ac_file"'s index in $config_headers.
33683_am_arg="$ac_file"
33684_am_stamp_count=1
33685for _am_header in $config_headers :; do
33686  case $_am_header in
33687    $_am_arg | $_am_arg:* )
33688      break ;;
33689    * )
33690      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33691  esac
33692done
33693echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33694$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33695	 X"$_am_arg" : 'X\(//\)[^/]' \| \
33696	 X"$_am_arg" : 'X\(//\)$' \| \
33697	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33698$as_echo X"$_am_arg" |
33699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33700	    s//\1/
33701	    q
33702	  }
33703	  /^X\(\/\/\)[^/].*/{
33704	    s//\1/
33705	    q
33706	  }
33707	  /^X\(\/\/\)$/{
33708	    s//\1/
33709	    q
33710	  }
33711	  /^X\(\/\).*/{
33712	    s//\1/
33713	    q
33714	  }
33715	  s/.*/./; q'`/stamp-h$_am_stamp_count
33716 ;;
33717
33718  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33719$as_echo "$as_me: executing $ac_file commands" >&6;}
33720 ;;
33721  esac
33722
33723
33724  case $ac_file$ac_mode in
33725    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33726  # Older Autoconf quotes --file arguments for eval, but not when files
33727  # are listed without --file.  Let's play safe and only enable the eval
33728  # if we detect the quoting.
33729  # TODO: see whether this extra hack can be removed once we start
33730  # requiring Autoconf 2.70 or later.
33731  case $CONFIG_FILES in #(
33732  *\'*) :
33733    eval set x "$CONFIG_FILES" ;; #(
33734  *) :
33735    set x $CONFIG_FILES ;; #(
33736  *) :
33737     ;;
33738esac
33739  shift
33740  # Used to flag and report bootstrapping failures.
33741  am_rc=0
33742  for am_mf
33743  do
33744    # Strip MF so we end up with the name of the file.
33745    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
33746    # Check whether this is an Automake generated Makefile which includes
33747    # dependency-tracking related rules and includes.
33748    # Grep'ing the whole file directly is not great: AIX grep has a line
33749    # limit of 2048, but all sed's we know have understand at least 4000.
33750    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
33751      || continue
33752    am_dirpart=`$as_dirname -- "$am_mf" ||
33753$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33754	 X"$am_mf" : 'X\(//\)[^/]' \| \
33755	 X"$am_mf" : 'X\(//\)$' \| \
33756	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33757$as_echo X"$am_mf" |
33758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33759	    s//\1/
33760	    q
33761	  }
33762	  /^X\(\/\/\)[^/].*/{
33763	    s//\1/
33764	    q
33765	  }
33766	  /^X\(\/\/\)$/{
33767	    s//\1/
33768	    q
33769	  }
33770	  /^X\(\/\).*/{
33771	    s//\1/
33772	    q
33773	  }
33774	  s/.*/./; q'`
33775    am_filepart=`$as_basename -- "$am_mf" ||
33776$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
33777	 X"$am_mf" : 'X\(//\)$' \| \
33778	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33779$as_echo X/"$am_mf" |
33780    sed '/^.*\/\([^/][^/]*\)\/*$/{
33781	    s//\1/
33782	    q
33783	  }
33784	  /^X\/\(\/\/\)$/{
33785	    s//\1/
33786	    q
33787	  }
33788	  /^X\/\(\/\).*/{
33789	    s//\1/
33790	    q
33791	  }
33792	  s/.*/./; q'`
33793    { echo "$as_me:$LINENO: cd "$am_dirpart" \
33794      && sed -e '/# am--include-marker/d' "$am_filepart" \
33795        | $MAKE -f - am--depfiles" >&5
33796   (cd "$am_dirpart" \
33797      && sed -e '/# am--include-marker/d' "$am_filepart" \
33798        | $MAKE -f - am--depfiles) >&5 2>&5
33799   ac_status=$?
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } || am_rc=$?
33802  done
33803  if test $am_rc -ne 0; then
33804    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33806as_fn_error $? "Something went wrong bootstrapping makefile fragments
33807    for automatic dependency tracking.  Try re-running configure with the
33808    '--disable-dependency-tracking' option to at least be able to build
33809    the package (albeit without support for automatic dependency tracking).
33810See \`config.log' for more details" "$LINENO" 5; }
33811  fi
33812  { am_dirpart=; unset am_dirpart;}
33813  { am_filepart=; unset am_filepart;}
33814  { am_mf=; unset am_mf;}
33815  { am_rc=; unset am_rc;}
33816  rm -f conftest-deps.mk
33817}
33818 ;;
33819    "libtool":C)
33820
33821    # See if we are running on zsh, and set the options that allow our
33822    # commands through without removal of \ escapes.
33823    if test -n "${ZSH_VERSION+set}"; then
33824      setopt NO_GLOB_SUBST
33825    fi
33826
33827    cfgfile=${ofile}T
33828    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33829    $RM "$cfgfile"
33830
33831    cat <<_LT_EOF >> "$cfgfile"
33832#! $SHELL
33833# Generated automatically by $as_me ($PACKAGE) $VERSION
33834# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33835
33836# Provide generalized library-building support services.
33837# Written by Gordon Matzigkeit, 1996
33838
33839# Copyright (C) 2014 Free Software Foundation, Inc.
33840# This is free software; see the source for copying conditions.  There is NO
33841# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33842
33843# GNU Libtool is free software; you can redistribute it and/or modify
33844# it under the terms of the GNU General Public License as published by
33845# the Free Software Foundation; either version 2 of of the License, or
33846# (at your option) any later version.
33847#
33848# As a special exception to the GNU General Public License, if you
33849# distribute this file as part of a program or library that is built
33850# using GNU Libtool, you may include this file under the  same
33851# distribution terms that you use for the rest of that program.
33852#
33853# GNU Libtool is distributed in the hope that it will be useful, but
33854# WITHOUT ANY WARRANTY; without even the implied warranty of
33855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33856# GNU General Public License for more details.
33857#
33858# You should have received a copy of the GNU General Public License
33859# along with this program.  If not, see <http://www.gnu.org/licenses/>.
33860
33861
33862# The names of the tagged configurations supported by this script.
33863available_tags='CXX '
33864
33865# Configured defaults for sys_lib_dlsearch_path munging.
33866: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33867
33868# ### BEGIN LIBTOOL CONFIG
33869
33870# Which release of libtool.m4 was used?
33871macro_version=$macro_version
33872macro_revision=$macro_revision
33873
33874# Assembler program.
33875AS=$lt_AS
33876
33877# DLL creation program.
33878DLLTOOL=$lt_DLLTOOL
33879
33880# Object dumper program.
33881OBJDUMP=$lt_OBJDUMP
33882
33883# Whether or not to build shared libraries.
33884build_libtool_libs=$enable_shared
33885
33886# Whether or not to build static libraries.
33887build_old_libs=$enable_static
33888
33889# What type of objects to build.
33890pic_mode=$pic_mode
33891
33892# Whether or not to optimize for fast installation.
33893fast_install=$enable_fast_install
33894
33895# Shared archive member basename,for filename based shared library versioning on AIX.
33896shared_archive_member_spec=$shared_archive_member_spec
33897
33898# Shell to use when invoking shell scripts.
33899SHELL=$lt_SHELL
33900
33901# An echo program that protects backslashes.
33902ECHO=$lt_ECHO
33903
33904# The PATH separator for the build system.
33905PATH_SEPARATOR=$lt_PATH_SEPARATOR
33906
33907# The host system.
33908host_alias=$host_alias
33909host=$host
33910host_os=$host_os
33911
33912# The build system.
33913build_alias=$build_alias
33914build=$build
33915build_os=$build_os
33916
33917# A sed program that does not truncate output.
33918SED=$lt_SED
33919
33920# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33921Xsed="\$SED -e 1s/^X//"
33922
33923# A grep program that handles long lines.
33924GREP=$lt_GREP
33925
33926# An ERE matcher.
33927EGREP=$lt_EGREP
33928
33929# A literal string matcher.
33930FGREP=$lt_FGREP
33931
33932# A BSD- or MS-compatible name lister.
33933NM=$lt_NM
33934
33935# Whether we need soft or hard links.
33936LN_S=$lt_LN_S
33937
33938# What is the maximum length of a command?
33939max_cmd_len=$max_cmd_len
33940
33941# Object file suffix (normally "o").
33942objext=$ac_objext
33943
33944# Executable file suffix (normally "").
33945exeext=$exeext
33946
33947# whether the shell understands "unset".
33948lt_unset=$lt_unset
33949
33950# turn spaces into newlines.
33951SP2NL=$lt_lt_SP2NL
33952
33953# turn newlines into spaces.
33954NL2SP=$lt_lt_NL2SP
33955
33956# convert \$build file names to \$host format.
33957to_host_file_cmd=$lt_cv_to_host_file_cmd
33958
33959# convert \$build files to toolchain format.
33960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33961
33962# Method to check whether dependent libraries are shared objects.
33963deplibs_check_method=$lt_deplibs_check_method
33964
33965# Command to use when deplibs_check_method = "file_magic".
33966file_magic_cmd=$lt_file_magic_cmd
33967
33968# How to find potential files when deplibs_check_method = "file_magic".
33969file_magic_glob=$lt_file_magic_glob
33970
33971# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33972want_nocaseglob=$lt_want_nocaseglob
33973
33974# Command to associate shared and link libraries.
33975sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33976
33977# The archiver.
33978AR=$lt_AR
33979
33980# Flags to create an archive.
33981AR_FLAGS=$lt_AR_FLAGS
33982
33983# How to feed a file listing to the archiver.
33984archiver_list_spec=$lt_archiver_list_spec
33985
33986# A symbol stripping program.
33987STRIP=$lt_STRIP
33988
33989# Commands used to install an old-style archive.
33990RANLIB=$lt_RANLIB
33991old_postinstall_cmds=$lt_old_postinstall_cmds
33992old_postuninstall_cmds=$lt_old_postuninstall_cmds
33993
33994# Whether to use a lock for old archive extraction.
33995lock_old_archive_extraction=$lock_old_archive_extraction
33996
33997# A C compiler.
33998LTCC=$lt_CC
33999
34000# LTCC compiler flags.
34001LTCFLAGS=$lt_CFLAGS
34002
34003# Take the output of nm and produce a listing of raw symbols and C names.
34004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34005
34006# Transform the output of nm in a proper C declaration.
34007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34008
34009# Transform the output of nm into a list of symbols to manually relocate.
34010global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34011
34012# Transform the output of nm in a C name address pair.
34013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34014
34015# Transform the output of nm in a C name address pair when lib prefix is needed.
34016global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34017
34018# The name lister interface.
34019nm_interface=$lt_lt_cv_nm_interface
34020
34021# Specify filename containing input files for \$NM.
34022nm_file_list_spec=$lt_nm_file_list_spec
34023
34024# The root where to search for dependent libraries,and where our libraries should be installed.
34025lt_sysroot=$lt_sysroot
34026
34027# Command to truncate a binary pipe.
34028lt_truncate_bin=$lt_lt_cv_truncate_bin
34029
34030# The name of the directory that contains temporary libtool files.
34031objdir=$objdir
34032
34033# Used to examine libraries when file_magic_cmd begins with "file".
34034MAGIC_CMD=$MAGIC_CMD
34035
34036# Must we lock files when doing compilation?
34037need_locks=$lt_need_locks
34038
34039# Manifest tool.
34040MANIFEST_TOOL=$lt_MANIFEST_TOOL
34041
34042# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34043DSYMUTIL=$lt_DSYMUTIL
34044
34045# Tool to change global to local symbols on Mac OS X.
34046NMEDIT=$lt_NMEDIT
34047
34048# Tool to manipulate fat objects and archives on Mac OS X.
34049LIPO=$lt_LIPO
34050
34051# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34052OTOOL=$lt_OTOOL
34053
34054# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34055OTOOL64=$lt_OTOOL64
34056
34057# Old archive suffix (normally "a").
34058libext=$libext
34059
34060# Shared library suffix (normally ".so").
34061shrext_cmds=$lt_shrext_cmds
34062
34063# The commands to extract the exported symbol list from a shared archive.
34064extract_expsyms_cmds=$lt_extract_expsyms_cmds
34065
34066# Variables whose values should be saved in libtool wrapper scripts and
34067# restored at link time.
34068variables_saved_for_relink=$lt_variables_saved_for_relink
34069
34070# Do we need the "lib" prefix for modules?
34071need_lib_prefix=$need_lib_prefix
34072
34073# Do we need a version for libraries?
34074need_version=$need_version
34075
34076# Library versioning type.
34077version_type=$version_type
34078
34079# Shared library runtime path variable.
34080runpath_var=$runpath_var
34081
34082# Shared library path variable.
34083shlibpath_var=$shlibpath_var
34084
34085# Is shlibpath searched before the hard-coded library search path?
34086shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34087
34088# Format of library name prefix.
34089libname_spec=$lt_libname_spec
34090
34091# List of archive names.  First name is the real one, the rest are links.
34092# The last name is the one that the linker finds with -lNAME
34093library_names_spec=$lt_library_names_spec
34094
34095# The coded name of the library, if different from the real name.
34096soname_spec=$lt_soname_spec
34097
34098# Permission mode override for installation of shared libraries.
34099install_override_mode=$lt_install_override_mode
34100
34101# Command to use after installation of a shared archive.
34102postinstall_cmds=$lt_postinstall_cmds
34103
34104# Command to use after uninstallation of a shared archive.
34105postuninstall_cmds=$lt_postuninstall_cmds
34106
34107# Commands used to finish a libtool library installation in a directory.
34108finish_cmds=$lt_finish_cmds
34109
34110# As "finish_cmds", except a single script fragment to be evaled but
34111# not shown.
34112finish_eval=$lt_finish_eval
34113
34114# Whether we should hardcode library paths into libraries.
34115hardcode_into_libs=$hardcode_into_libs
34116
34117# Compile-time system search path for libraries.
34118sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34119
34120# Detected run-time system search path for libraries.
34121sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34122
34123# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34124configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34125
34126# Whether dlopen is supported.
34127dlopen_support=$enable_dlopen
34128
34129# Whether dlopen of programs is supported.
34130dlopen_self=$enable_dlopen_self
34131
34132# Whether dlopen of statically linked programs is supported.
34133dlopen_self_static=$enable_dlopen_self_static
34134
34135# Commands to strip libraries.
34136old_striplib=$lt_old_striplib
34137striplib=$lt_striplib
34138
34139
34140# The linker used to build libraries.
34141LD=$lt_LD
34142
34143# How to create reloadable object files.
34144reload_flag=$lt_reload_flag
34145reload_cmds=$lt_reload_cmds
34146
34147# Commands used to build an old-style archive.
34148old_archive_cmds=$lt_old_archive_cmds
34149
34150# A language specific compiler.
34151CC=$lt_compiler
34152
34153# Is the compiler the GNU compiler?
34154with_gcc=$GCC
34155
34156# Compiler flag to turn off builtin functions.
34157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34158
34159# Additional compiler flags for building library objects.
34160pic_flag=$lt_lt_prog_compiler_pic
34161
34162# How to pass a linker flag through the compiler.
34163wl=$lt_lt_prog_compiler_wl
34164
34165# Compiler flag to prevent dynamic linking.
34166link_static_flag=$lt_lt_prog_compiler_static
34167
34168# Does compiler simultaneously support -c and -o options?
34169compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34170
34171# Whether or not to add -lc for building shared libraries.
34172build_libtool_need_lc=$archive_cmds_need_lc
34173
34174# Whether or not to disallow shared libs when runtime libs are static.
34175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34176
34177# Compiler flag to allow reflexive dlopens.
34178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34179
34180# Compiler flag to generate shared objects directly from archives.
34181whole_archive_flag_spec=$lt_whole_archive_flag_spec
34182
34183# Whether the compiler copes with passing no objects directly.
34184compiler_needs_object=$lt_compiler_needs_object
34185
34186# Create an old-style archive from a shared archive.
34187old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34188
34189# Create a temporary old-style archive to link instead of a shared archive.
34190old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34191
34192# Commands used to build a shared archive.
34193archive_cmds=$lt_archive_cmds
34194archive_expsym_cmds=$lt_archive_expsym_cmds
34195
34196# Commands used to build a loadable module if different from building
34197# a shared archive.
34198module_cmds=$lt_module_cmds
34199module_expsym_cmds=$lt_module_expsym_cmds
34200
34201# Whether we are building with GNU ld or not.
34202with_gnu_ld=$lt_with_gnu_ld
34203
34204# Flag that allows shared libraries with undefined symbols to be built.
34205allow_undefined_flag=$lt_allow_undefined_flag
34206
34207# Flag that enforces no undefined symbols.
34208no_undefined_flag=$lt_no_undefined_flag
34209
34210# Flag to hardcode \$libdir into a binary during linking.
34211# This must work even if \$libdir does not exist
34212hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34213
34214# Whether we need a single "-rpath" flag with a separated argument.
34215hardcode_libdir_separator=$lt_hardcode_libdir_separator
34216
34217# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34218# DIR into the resulting binary.
34219hardcode_direct=$hardcode_direct
34220
34221# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34222# DIR into the resulting binary and the resulting library dependency is
34223# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34224# library is relocated.
34225hardcode_direct_absolute=$hardcode_direct_absolute
34226
34227# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34228# into the resulting binary.
34229hardcode_minus_L=$hardcode_minus_L
34230
34231# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34232# into the resulting binary.
34233hardcode_shlibpath_var=$hardcode_shlibpath_var
34234
34235# Set to "yes" if building a shared library automatically hardcodes DIR
34236# into the library and all subsequent libraries and executables linked
34237# against it.
34238hardcode_automatic=$hardcode_automatic
34239
34240# Set to yes if linker adds runtime paths of dependent libraries
34241# to runtime path list.
34242inherit_rpath=$inherit_rpath
34243
34244# Whether libtool must link a program against all its dependency libraries.
34245link_all_deplibs=$link_all_deplibs
34246
34247# Set to "yes" if exported symbols are required.
34248always_export_symbols=$always_export_symbols
34249
34250# The commands to list exported symbols.
34251export_symbols_cmds=$lt_export_symbols_cmds
34252
34253# Symbols that should not be listed in the preloaded symbols.
34254exclude_expsyms=$lt_exclude_expsyms
34255
34256# Symbols that must always be exported.
34257include_expsyms=$lt_include_expsyms
34258
34259# Commands necessary for linking programs (against libraries) with templates.
34260prelink_cmds=$lt_prelink_cmds
34261
34262# Commands necessary for finishing linking programs.
34263postlink_cmds=$lt_postlink_cmds
34264
34265# Specify filename containing input files.
34266file_list_spec=$lt_file_list_spec
34267
34268# How to hardcode a shared library path into an executable.
34269hardcode_action=$hardcode_action
34270
34271# The directories searched by this compiler when creating a shared library.
34272compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34273
34274# Dependencies to place before and after the objects being linked to
34275# create a shared library.
34276predep_objects=$lt_predep_objects
34277postdep_objects=$lt_postdep_objects
34278predeps=$lt_predeps
34279postdeps=$lt_postdeps
34280
34281# The library search path used internally by the compiler when linking
34282# a shared library.
34283compiler_lib_search_path=$lt_compiler_lib_search_path
34284
34285# ### END LIBTOOL CONFIG
34286
34287_LT_EOF
34288
34289    cat <<'_LT_EOF' >> "$cfgfile"
34290
34291# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34292
34293# func_munge_path_list VARIABLE PATH
34294# -----------------------------------
34295# VARIABLE is name of variable containing _space_ separated list of
34296# directories to be munged by the contents of PATH, which is string
34297# having a format:
34298# "DIR[:DIR]:"
34299#       string "DIR[ DIR]" will be prepended to VARIABLE
34300# ":DIR[:DIR]"
34301#       string "DIR[ DIR]" will be appended to VARIABLE
34302# "DIRP[:DIRP]::[DIRA:]DIRA"
34303#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34304#       "DIRA[ DIRA]" will be appended to VARIABLE
34305# "DIR[:DIR]"
34306#       VARIABLE will be replaced by "DIR[ DIR]"
34307func_munge_path_list ()
34308{
34309    case x$2 in
34310    x)
34311        ;;
34312    *:)
34313        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34314        ;;
34315    x:*)
34316        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34317        ;;
34318    *::*)
34319        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34320        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34321        ;;
34322    *)
34323        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34324        ;;
34325    esac
34326}
34327
34328
34329# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
34330func_cc_basename ()
34331{
34332    for cc_temp in $*""; do
34333      case $cc_temp in
34334        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34335        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34336        \-*) ;;
34337        *) break;;
34338      esac
34339    done
34340    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34341}
34342
34343
34344# ### END FUNCTIONS SHARED WITH CONFIGURE
34345
34346_LT_EOF
34347
34348  case $host_os in
34349  aix3*)
34350    cat <<\_LT_EOF >> "$cfgfile"
34351# AIX sometimes has problems with the GCC collect2 program.  For some
34352# reason, if we set the COLLECT_NAMES environment variable, the problems
34353# vanish in a puff of smoke.
34354if test set != "${COLLECT_NAMES+set}"; then
34355  COLLECT_NAMES=
34356  export COLLECT_NAMES
34357fi
34358_LT_EOF
34359    ;;
34360  esac
34361
34362
34363ltmain=$ac_aux_dir/ltmain.sh
34364
34365
34366  # We use sed instead of cat because bash on DJGPP gets confused if
34367  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34368  # text mode, it properly converts lines to CR/LF.  This bash problem
34369  # is reportedly fixed, but why not run on old versions too?
34370  sed '$q' "$ltmain" >> "$cfgfile" \
34371     || (rm -f "$cfgfile"; exit 1)
34372
34373   mv -f "$cfgfile" "$ofile" ||
34374    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34375  chmod +x "$ofile"
34376
34377
34378    cat <<_LT_EOF >> "$ofile"
34379
34380# ### BEGIN LIBTOOL TAG CONFIG: CXX
34381
34382# The linker used to build libraries.
34383LD=$lt_LD_CXX
34384
34385# How to create reloadable object files.
34386reload_flag=$lt_reload_flag_CXX
34387reload_cmds=$lt_reload_cmds_CXX
34388
34389# Commands used to build an old-style archive.
34390old_archive_cmds=$lt_old_archive_cmds_CXX
34391
34392# A language specific compiler.
34393CC=$lt_compiler_CXX
34394
34395# Is the compiler the GNU compiler?
34396with_gcc=$GCC_CXX
34397
34398# Compiler flag to turn off builtin functions.
34399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34400
34401# Additional compiler flags for building library objects.
34402pic_flag=$lt_lt_prog_compiler_pic_CXX
34403
34404# How to pass a linker flag through the compiler.
34405wl=$lt_lt_prog_compiler_wl_CXX
34406
34407# Compiler flag to prevent dynamic linking.
34408link_static_flag=$lt_lt_prog_compiler_static_CXX
34409
34410# Does compiler simultaneously support -c and -o options?
34411compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34412
34413# Whether or not to add -lc for building shared libraries.
34414build_libtool_need_lc=$archive_cmds_need_lc_CXX
34415
34416# Whether or not to disallow shared libs when runtime libs are static.
34417allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34418
34419# Compiler flag to allow reflexive dlopens.
34420export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34421
34422# Compiler flag to generate shared objects directly from archives.
34423whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34424
34425# Whether the compiler copes with passing no objects directly.
34426compiler_needs_object=$lt_compiler_needs_object_CXX
34427
34428# Create an old-style archive from a shared archive.
34429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34430
34431# Create a temporary old-style archive to link instead of a shared archive.
34432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34433
34434# Commands used to build a shared archive.
34435archive_cmds=$lt_archive_cmds_CXX
34436archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34437
34438# Commands used to build a loadable module if different from building
34439# a shared archive.
34440module_cmds=$lt_module_cmds_CXX
34441module_expsym_cmds=$lt_module_expsym_cmds_CXX
34442
34443# Whether we are building with GNU ld or not.
34444with_gnu_ld=$lt_with_gnu_ld_CXX
34445
34446# Flag that allows shared libraries with undefined symbols to be built.
34447allow_undefined_flag=$lt_allow_undefined_flag_CXX
34448
34449# Flag that enforces no undefined symbols.
34450no_undefined_flag=$lt_no_undefined_flag_CXX
34451
34452# Flag to hardcode \$libdir into a binary during linking.
34453# This must work even if \$libdir does not exist
34454hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34455
34456# Whether we need a single "-rpath" flag with a separated argument.
34457hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34458
34459# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34460# DIR into the resulting binary.
34461hardcode_direct=$hardcode_direct_CXX
34462
34463# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34464# DIR into the resulting binary and the resulting library dependency is
34465# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34466# library is relocated.
34467hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34468
34469# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34470# into the resulting binary.
34471hardcode_minus_L=$hardcode_minus_L_CXX
34472
34473# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34474# into the resulting binary.
34475hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34476
34477# Set to "yes" if building a shared library automatically hardcodes DIR
34478# into the library and all subsequent libraries and executables linked
34479# against it.
34480hardcode_automatic=$hardcode_automatic_CXX
34481
34482# Set to yes if linker adds runtime paths of dependent libraries
34483# to runtime path list.
34484inherit_rpath=$inherit_rpath_CXX
34485
34486# Whether libtool must link a program against all its dependency libraries.
34487link_all_deplibs=$link_all_deplibs_CXX
34488
34489# Set to "yes" if exported symbols are required.
34490always_export_symbols=$always_export_symbols_CXX
34491
34492# The commands to list exported symbols.
34493export_symbols_cmds=$lt_export_symbols_cmds_CXX
34494
34495# Symbols that should not be listed in the preloaded symbols.
34496exclude_expsyms=$lt_exclude_expsyms_CXX
34497
34498# Symbols that must always be exported.
34499include_expsyms=$lt_include_expsyms_CXX
34500
34501# Commands necessary for linking programs (against libraries) with templates.
34502prelink_cmds=$lt_prelink_cmds_CXX
34503
34504# Commands necessary for finishing linking programs.
34505postlink_cmds=$lt_postlink_cmds_CXX
34506
34507# Specify filename containing input files.
34508file_list_spec=$lt_file_list_spec_CXX
34509
34510# How to hardcode a shared library path into an executable.
34511hardcode_action=$hardcode_action_CXX
34512
34513# The directories searched by this compiler when creating a shared library.
34514compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34515
34516# Dependencies to place before and after the objects being linked to
34517# create a shared library.
34518predep_objects=$lt_predep_objects_CXX
34519postdep_objects=$lt_postdep_objects_CXX
34520predeps=$lt_predeps_CXX
34521postdeps=$lt_postdeps_CXX
34522
34523# The library search path used internally by the compiler when linking
34524# a shared library.
34525compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34526
34527# ### END LIBTOOL TAG CONFIG: CXX
34528_LT_EOF
34529
34530 ;;
34531
34532  esac
34533done # for ac_tag
34534
34535
34536as_fn_exit 0
34537_ACEOF
34538ac_clean_files=$ac_clean_files_save
34539
34540test $ac_write_fail = 0 ||
34541  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34542
34543
34544# configure is writing to config.log, and then calls config.status.
34545# config.status does its own redirection, appending to config.log.
34546# Unfortunately, on DOS this fails, as config.log is still kept open
34547# by configure, so config.status won't be able to write to it; its
34548# output is simply discarded.  So we exec the FD to /dev/null,
34549# effectively closing config.log, so it can be properly (re)opened and
34550# appended to by config.status.  When coming back to configure, we
34551# need to make the FD available again.
34552if test "$no_create" != yes; then
34553  ac_cs_success=:
34554  ac_config_status_args=
34555  test "$silent" = yes &&
34556    ac_config_status_args="$ac_config_status_args --quiet"
34557  exec 5>/dev/null
34558  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34559  exec 5>>config.log
34560  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34561  # would make configure fail if this is the last instruction.
34562  $ac_cs_success || as_fn_exit 1
34563fi
34564
34565#
34566# CONFIG_SUBDIRS section.
34567#
34568if test "$no_recursion" != yes; then
34569
34570  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34571  # so they do not pile up.
34572  ac_sub_configure_args=
34573  ac_prev=
34574  eval "set x $ac_configure_args"
34575  shift
34576  for ac_arg
34577  do
34578    if test -n "$ac_prev"; then
34579      ac_prev=
34580      continue
34581    fi
34582    case $ac_arg in
34583    -cache-file | --cache-file | --cache-fil | --cache-fi \
34584    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34585      ac_prev=cache_file ;;
34586    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34587    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34588    | --c=*)
34589      ;;
34590    --config-cache | -C)
34591      ;;
34592    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34593      ac_prev=srcdir ;;
34594    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34595      ;;
34596    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34597      ac_prev=prefix ;;
34598    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34599      ;;
34600    --disable-option-checking)
34601      ;;
34602    *)
34603      case $ac_arg in
34604      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34605      esac
34606      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34607    esac
34608  done
34609
34610  # Always prepend --prefix to ensure using the same prefix
34611  # in subdir configurations.
34612  ac_arg="--prefix=$prefix"
34613  case $ac_arg in
34614  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34615  esac
34616  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34617
34618  # Pass --silent
34619  if test "$silent" = yes; then
34620    ac_sub_configure_args="--silent $ac_sub_configure_args"
34621  fi
34622
34623  # Always prepend --disable-option-checking to silence warnings, since
34624  # different subdirs can have different --enable and --with options.
34625  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34626
34627  ac_popdir=`pwd`
34628  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34629
34630    # Do not complain, so a configure script can configure whichever
34631    # parts of a large source tree are present.
34632    test -d "$srcdir/$ac_dir" || continue
34633
34634    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34635    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34636    $as_echo "$ac_msg" >&6
34637    as_dir="$ac_dir"; as_fn_mkdir_p
34638    ac_builddir=.
34639
34640case "$ac_dir" in
34641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34642*)
34643  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34644  # A ".." for each directory in $ac_dir_suffix.
34645  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34646  case $ac_top_builddir_sub in
34647  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34648  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34649  esac ;;
34650esac
34651ac_abs_top_builddir=$ac_pwd
34652ac_abs_builddir=$ac_pwd$ac_dir_suffix
34653# for backward compatibility:
34654ac_top_builddir=$ac_top_build_prefix
34655
34656case $srcdir in
34657  .)  # We are building in place.
34658    ac_srcdir=.
34659    ac_top_srcdir=$ac_top_builddir_sub
34660    ac_abs_top_srcdir=$ac_pwd ;;
34661  [\\/]* | ?:[\\/]* )  # Absolute name.
34662    ac_srcdir=$srcdir$ac_dir_suffix;
34663    ac_top_srcdir=$srcdir
34664    ac_abs_top_srcdir=$srcdir ;;
34665  *) # Relative name.
34666    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34667    ac_top_srcdir=$ac_top_build_prefix$srcdir
34668    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34669esac
34670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34671
34672
34673    cd "$ac_dir"
34674
34675    # Check for guested configure; otherwise get Cygnus style configure.
34676    if test -f "$ac_srcdir/configure.gnu"; then
34677      ac_sub_configure=$ac_srcdir/configure.gnu
34678    elif test -f "$ac_srcdir/configure"; then
34679      ac_sub_configure=$ac_srcdir/configure
34680    elif test -f "$ac_srcdir/configure.in"; then
34681      # This should be Cygnus configure.
34682      ac_sub_configure=$ac_aux_dir/configure
34683    else
34684      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34685$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34686      ac_sub_configure=
34687    fi
34688
34689    # The recursion is here.
34690    if test -n "$ac_sub_configure"; then
34691      # Make the cache file name correct relative to the subdirectory.
34692      case $cache_file in
34693      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34694      *) # Relative name.
34695	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34696      esac
34697
34698      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34699$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34700      # The eval makes quoting arguments work.
34701      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34702	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34703	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34704    fi
34705
34706    cd "$ac_popdir"
34707  done
34708fi
34709if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34711$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34712fi
34713
34714
34715## ---------------------------------- ##
34716##  Start of distclean amending code  ##
34717## ---------------------------------- ##
34718
34719for xc_subdir in '.'
34720do
34721
34722if test ! -f "$xc_subdir/Makefile"; then
34723  echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
34724  exit 1
34725fi
34726
34727# Fetch dependency tracking file list from Makefile include lines.
34728
34729xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
34730xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
34731
34732# --disable-dependency-tracking might have been used, consequently
34733# there is nothing to amend without a dependency tracking file list.
34734
34735if test $xc_cnt_words -gt 0; then
34736
34737{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
34738$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
34739
34740# Build Makefile specific patch hunk.
34741
34742xc_p="$xc_subdir/xc_patch.tmp"
34743
34744xc_rm_depfiles=`echo "$xc_inc_lines" \
34745  | $SED 's%include%	-rm -f%' 2>/dev/null`
34746
34747xc_dep_subdirs=`echo "$xc_inc_lines" \
34748  | $SED 's%include[ ][ ]*%%' 2>/dev/null \
34749  | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
34750  | sort | uniq`
34751
34752echo "$xc_rm_depfiles" >$xc_p
34753
34754for xc_dep_dir in $xc_dep_subdirs; do
34755  echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
34756  echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
34757  echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
34758  echo "${xc_tab}fi"                                                                >>$xc_p
34759done
34760
34761# Build Makefile patching sed scripts.
34762
34763xc_s1="$xc_subdir/xc_script_1.tmp"
34764xc_s2="$xc_subdir/xc_script_2.tmp"
34765xc_s3="$xc_subdir/xc_script_3.tmp"
34766
34767cat >$xc_s1 <<\_EOT
34768/^distclean[ ]*:/,/^[^	][^	]*:/{
34769  s/^.*(DEPDIR)/___xc_depdir_line___/
34770}
34771/^maintainer-clean[ ]*:/,/^[^	][^	]*:/{
34772  s/^.*(DEPDIR)/___xc_depdir_line___/
34773}
34774_EOT
34775
34776cat >$xc_s2 <<\_EOT
34777/___xc_depdir_line___$/{
34778  N
34779  /___xc_depdir_line___$/D
34780}
34781_EOT
34782
34783cat >$xc_s3 <<_EOT
34784/^___xc_depdir_line___/{
34785  r $xc_p
34786  d
34787}
34788_EOT
34789
34790# Apply patch to Makefile and cleanup.
34791
34792$SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
34793$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
34794$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
34795
34796if test -f "$xc_subdir/Makefile.tmp3"; then
34797  mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
34798fi
34799
34800test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
34801test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
34802test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
34803
34804test -f "$xc_p"  && rm -f "$xc_p"
34805test -f "$xc_s1" && rm -f "$xc_s1"
34806test -f "$xc_s2" && rm -f "$xc_s2"
34807test -f "$xc_s3" && rm -f "$xc_s3"
34808
34809fi
34810
34811done
34812
34813## -------------------------------- ##
34814##  End of distclean amending code  ##
34815## -------------------------------- ##
34816
34817
34818