xref: /third_party/node/deps/cares/configure (revision 1cb0ef41)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for c-ares 1.27.0.
4#
5# Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
279$0: list: http://lists.haxx.se/listinfo/c-ares about your
280$0: system, including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='c-ares'
623PACKAGE_TARNAME='c-ares'
624PACKAGE_VERSION='1.27.0'
625PACKAGE_STRING='c-ares 1.27.0'
626PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares'
627PACKAGE_URL=''
628
629ac_unique_file="src/lib/ares_ipv6.h"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666BUILD_SUBDIRS
667PKGCONFIG_CFLAGS
668AM_CPPFLAGS
669AM_CFLAGS
670BUILD_TESTS_FALSE
671BUILD_TESTS_TRUE
672GMOCK_LIBS
673GMOCK_CFLAGS
674PKG_CONFIG_LIBDIR
675PKG_CONFIG_PATH
676PKG_CONFIG
677CARES_PRIVATE_LIBS
678PTHREAD_CFLAGS
679PTHREAD_LIBS
680PTHREAD_CXX
681PTHREAD_CC
682ax_pthread_config
683CPP
684CARES_SYMBOL_HIDING_CFLAG
685CARES_SYMBOL_HIDING_FALSE
686CARES_SYMBOL_HIDING_TRUE
687CARES_USE_NO_UNDEFINED_FALSE
688CARES_USE_NO_UNDEFINED_TRUE
689CODE_COVERAGE_LIBS
690CODE_COVERAGE_CXXFLAGS
691CODE_COVERAGE_CFLAGS
692CODE_COVERAGE_CPPFLAGS
693GENHTML
694LCOV
695GCOV
696ifnGNUmake
697ifGNUmake
698CODE_COVERAGE_ENABLED
699CODE_COVERAGE_ENABLED_FALSE
700CODE_COVERAGE_ENABLED_TRUE
701MAINT
702MAINTAINER_MODE_FALSE
703MAINTAINER_MODE_TRUE
704CARES_RANDOM_FILE
705CXXCPP
706LT_SYS_LIBRARY_PATH
707OTOOL64
708OTOOL
709LIPO
710NMEDIT
711DSYMUTIL
712MANIFEST_TOOL
713RANLIB
714ac_ct_AR
715AR
716FILECMD
717LN_S
718NM
719ac_ct_DUMPBIN
720DUMPBIN
721LD
722FGREP
723EGREP
724GREP
725SED
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734LIBTOOL
735OBJDUMP
736DLLTOOL
737AS
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
742CSCOPE
743ETAGS
744CTAGS
745am__fastdepCXX_FALSE
746am__fastdepCXX_TRUE
747CXXDEPMODE
748am__fastdepCC_FALSE
749am__fastdepCC_TRUE
750CCDEPMODE
751am__nodep
752AMDEPBACKSLASH
753AMDEP_FALSE
754AMDEP_TRUE
755am__include
756DEPDIR
757am__untar
758am__tar
759AMTAR
760am__leading_dot
761SET_MAKE
762AWK
763mkdir_p
764MKDIR_P
765INSTALL_STRIP_PROGRAM
766STRIP
767install_sh
768MAKEINFO
769AUTOHEADER
770AUTOMAKE
771AUTOCONF
772ACLOCAL
773VERSION
774PACKAGE
775CYGPATH_W
776am__isrc
777INSTALL_DATA
778INSTALL_SCRIPT
779INSTALL_PROGRAM
780HAVE_CXX14
781ac_ct_CXX
782CXXFLAGS
783CXX
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791CARES_VERSION_INFO
792target_alias
793host_alias
794build_alias
795LIBS
796ECHO_T
797ECHO_N
798ECHO_C
799DEFS
800mandir
801localedir
802libdir
803psdir
804pdfdir
805dvidir
806htmldir
807infodir
808docdir
809oldincludedir
810includedir
811runstatedir
812localstatedir
813sharedstatedir
814sysconfdir
815datadir
816datarootdir
817libexecdir
818sbindir
819bindir
820program_transform_name
821prefix
822exec_prefix
823PACKAGE_URL
824PACKAGE_BUGREPORT
825PACKAGE_STRING
826PACKAGE_VERSION
827PACKAGE_TARNAME
828PACKAGE_NAME
829PATH_SEPARATOR
830SHELL
831am__quote'
832ac_subst_files=''
833ac_user_opts='
834enable_option_checking
835enable_dependency_tracking
836enable_silent_rules
837enable_shared
838enable_static
839with_pic
840enable_fast_install
841with_aix_soname
842with_gnu_ld
843with_sysroot
844enable_libtool_lock
845enable_warnings
846enable_symbol_hiding
847enable_tests
848enable_cares_threads
849with_random
850enable_maintainer_mode
851with_gcov
852enable_code_coverage
853enable_largefile
854enable_libgcc
855'
856      ac_precious_vars='build_alias
857host_alias
858target_alias
859CC
860CFLAGS
861LDFLAGS
862LIBS
863CPPFLAGS
864CXX
865CXXFLAGS
866CCC
867LT_SYS_LIBRARY_PATH
868CXXCPP
869CPP
870PKG_CONFIG
871PKG_CONFIG_PATH
872PKG_CONFIG_LIBDIR
873GMOCK_CFLAGS
874GMOCK_LIBS'
875
876
877# Initialize some variables set by options.
878ac_init_help=
879ac_init_version=false
880ac_unrecognized_opts=
881ac_unrecognized_sep=
882# The variables have the same names as the options, with
883# dashes changed to underlines.
884cache_file=/dev/null
885exec_prefix=NONE
886no_create=
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
895verbose=
896x_includes=NONE
897x_libraries=NONE
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
904# (The list follows the same order as the GNU Coding Standards.)
905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
913runstatedir='${localstatedir}/run'
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
925
926ac_prev=
927ac_dashdash=
928for ac_option
929do
930  # If the previous option needs an argument, assign it.
931  if test -n "$ac_prev"; then
932    eval $ac_prev=\$ac_option
933    ac_prev=
934    continue
935  fi
936
937  case $ac_option in
938  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939  *=)   ac_optarg= ;;
940  *)    ac_optarg=yes ;;
941  esac
942
943  case $ac_dashdash$ac_option in
944  --)
945    ac_dashdash=yes ;;
946
947  -bindir | --bindir | --bindi | --bind | --bin | --bi)
948    ac_prev=bindir ;;
949  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950    bindir=$ac_optarg ;;
951
952  -build | --build | --buil | --bui | --bu)
953    ac_prev=build_alias ;;
954  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955    build_alias=$ac_optarg ;;
956
957  -cache-file | --cache-file | --cache-fil | --cache-fi \
958  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959    ac_prev=cache_file ;;
960  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962    cache_file=$ac_optarg ;;
963
964  --config-cache | -C)
965    cache_file=config.cache ;;
966
967  -datadir | --datadir | --datadi | --datad)
968    ac_prev=datadir ;;
969  -datadir=* | --datadir=* | --datadi=* | --datad=*)
970    datadir=$ac_optarg ;;
971
972  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973  | --dataroo | --dataro | --datar)
974    ac_prev=datarootdir ;;
975  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977    datarootdir=$ac_optarg ;;
978
979  -disable-* | --disable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: \`$ac_useropt'"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=no ;;
994
995  -docdir | --docdir | --docdi | --doc | --do)
996    ac_prev=docdir ;;
997  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998    docdir=$ac_optarg ;;
999
1000  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001    ac_prev=dvidir ;;
1002  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003    dvidir=$ac_optarg ;;
1004
1005  -enable-* | --enable-*)
1006    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007    # Reject names that are not valid shell variable names.
1008    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1010    ac_useropt_orig=$ac_useropt
1011    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1012    case $ac_user_opts in
1013      *"
1014"enable_$ac_useropt"
1015"*) ;;
1016      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017	 ac_unrecognized_sep=', ';;
1018    esac
1019    eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023  | --exec | --exe | --ex)
1024    ac_prev=exec_prefix ;;
1025  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027  | --exec=* | --exe=* | --ex=*)
1028    exec_prefix=$ac_optarg ;;
1029
1030  -gas | --gas | --ga | --g)
1031    # Obsolete; use --with-gas.
1032    with_gas=yes ;;
1033
1034  -help | --help | --hel | --he | -h)
1035    ac_init_help=long ;;
1036  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037    ac_init_help=recursive ;;
1038  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039    ac_init_help=short ;;
1040
1041  -host | --host | --hos | --ho)
1042    ac_prev=host_alias ;;
1043  -host=* | --host=* | --hos=* | --ho=*)
1044    host_alias=$ac_optarg ;;
1045
1046  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047    ac_prev=htmldir ;;
1048  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049  | --ht=*)
1050    htmldir=$ac_optarg ;;
1051
1052  -includedir | --includedir | --includedi | --included | --include \
1053  | --includ | --inclu | --incl | --inc)
1054    ac_prev=includedir ;;
1055  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056  | --includ=* | --inclu=* | --incl=* | --inc=*)
1057    includedir=$ac_optarg ;;
1058
1059  -infodir | --infodir | --infodi | --infod | --info | --inf)
1060    ac_prev=infodir ;;
1061  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062    infodir=$ac_optarg ;;
1063
1064  -libdir | --libdir | --libdi | --libd)
1065    ac_prev=libdir ;;
1066  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067    libdir=$ac_optarg ;;
1068
1069  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070  | --libexe | --libex | --libe)
1071    ac_prev=libexecdir ;;
1072  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073  | --libexe=* | --libex=* | --libe=*)
1074    libexecdir=$ac_optarg ;;
1075
1076  -localedir | --localedir | --localedi | --localed | --locale)
1077    ac_prev=localedir ;;
1078  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079    localedir=$ac_optarg ;;
1080
1081  -localstatedir | --localstatedir | --localstatedi | --localstated \
1082  | --localstate | --localstat | --localsta | --localst | --locals)
1083    ac_prev=localstatedir ;;
1084  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086    localstatedir=$ac_optarg ;;
1087
1088  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089    ac_prev=mandir ;;
1090  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091    mandir=$ac_optarg ;;
1092
1093  -nfp | --nfp | --nf)
1094    # Obsolete; use --without-fp.
1095    with_fp=no ;;
1096
1097  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098  | --no-cr | --no-c | -n)
1099    no_create=yes ;;
1100
1101  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103    no_recursion=yes ;;
1104
1105  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107  | --oldin | --oldi | --old | --ol | --o)
1108    ac_prev=oldincludedir ;;
1109  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112    oldincludedir=$ac_optarg ;;
1113
1114  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115    ac_prev=prefix ;;
1116  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117    prefix=$ac_optarg ;;
1118
1119  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120  | --program-pre | --program-pr | --program-p)
1121    ac_prev=program_prefix ;;
1122  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124    program_prefix=$ac_optarg ;;
1125
1126  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127  | --program-suf | --program-su | --program-s)
1128    ac_prev=program_suffix ;;
1129  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131    program_suffix=$ac_optarg ;;
1132
1133  -program-transform-name | --program-transform-name \
1134  | --program-transform-nam | --program-transform-na \
1135  | --program-transform-n | --program-transform- \
1136  | --program-transform | --program-transfor \
1137  | --program-transfo | --program-transf \
1138  | --program-trans | --program-tran \
1139  | --progr-tra | --program-tr | --program-t)
1140    ac_prev=program_transform_name ;;
1141  -program-transform-name=* | --program-transform-name=* \
1142  | --program-transform-nam=* | --program-transform-na=* \
1143  | --program-transform-n=* | --program-transform-=* \
1144  | --program-transform=* | --program-transfor=* \
1145  | --program-transfo=* | --program-transf=* \
1146  | --program-trans=* | --program-tran=* \
1147  | --progr-tra=* | --program-tr=* | --program-t=*)
1148    program_transform_name=$ac_optarg ;;
1149
1150  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151    ac_prev=pdfdir ;;
1152  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153    pdfdir=$ac_optarg ;;
1154
1155  -psdir | --psdir | --psdi | --psd | --ps)
1156    ac_prev=psdir ;;
1157  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158    psdir=$ac_optarg ;;
1159
1160  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161  | -silent | --silent | --silen | --sile | --sil)
1162    silent=yes ;;
1163
1164  -runstatedir | --runstatedir | --runstatedi | --runstated \
1165  | --runstate | --runstat | --runsta | --runst | --runs \
1166  | --run | --ru | --r)
1167    ac_prev=runstatedir ;;
1168  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1169  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1170  | --run=* | --ru=* | --r=*)
1171    runstatedir=$ac_optarg ;;
1172
1173  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174    ac_prev=sbindir ;;
1175  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176  | --sbi=* | --sb=*)
1177    sbindir=$ac_optarg ;;
1178
1179  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181  | --sharedst | --shareds | --shared | --share | --shar \
1182  | --sha | --sh)
1183    ac_prev=sharedstatedir ;;
1184  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187  | --sha=* | --sh=*)
1188    sharedstatedir=$ac_optarg ;;
1189
1190  -site | --site | --sit)
1191    ac_prev=site ;;
1192  -site=* | --site=* | --sit=*)
1193    site=$ac_optarg ;;
1194
1195  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196    ac_prev=srcdir ;;
1197  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198    srcdir=$ac_optarg ;;
1199
1200  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201  | --syscon | --sysco | --sysc | --sys | --sy)
1202    ac_prev=sysconfdir ;;
1203  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205    sysconfdir=$ac_optarg ;;
1206
1207  -target | --target | --targe | --targ | --tar | --ta | --t)
1208    ac_prev=target_alias ;;
1209  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210    target_alias=$ac_optarg ;;
1211
1212  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213    verbose=yes ;;
1214
1215  -version | --version | --versio | --versi | --vers | -V)
1216    ac_init_version=: ;;
1217
1218  -with-* | --with-*)
1219    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222      as_fn_error $? "invalid package name: \`$ac_useropt'"
1223    ac_useropt_orig=$ac_useropt
1224    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225    case $ac_user_opts in
1226      *"
1227"with_$ac_useropt"
1228"*) ;;
1229      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230	 ac_unrecognized_sep=', ';;
1231    esac
1232    eval with_$ac_useropt=\$ac_optarg ;;
1233
1234  -without-* | --without-*)
1235    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236    # Reject names that are not valid shell variable names.
1237    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238      as_fn_error $? "invalid package name: \`$ac_useropt'"
1239    ac_useropt_orig=$ac_useropt
1240    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241    case $ac_user_opts in
1242      *"
1243"with_$ac_useropt"
1244"*) ;;
1245      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246	 ac_unrecognized_sep=', ';;
1247    esac
1248    eval with_$ac_useropt=no ;;
1249
1250  --x)
1251    # Obsolete; use --with-x.
1252    with_x=yes ;;
1253
1254  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255  | --x-incl | --x-inc | --x-in | --x-i)
1256    ac_prev=x_includes ;;
1257  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259    x_includes=$ac_optarg ;;
1260
1261  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263    ac_prev=x_libraries ;;
1264  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266    x_libraries=$ac_optarg ;;
1267
1268  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269Try \`$0 --help' for more information"
1270    ;;
1271
1272  *=*)
1273    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274    # Reject names that are not valid shell variable names.
1275    case $ac_envvar in #(
1276      '' | [0-9]* | *[!_$as_cr_alnum]* )
1277      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278    esac
1279    eval $ac_envvar=\$ac_optarg
1280    export $ac_envvar ;;
1281
1282  *)
1283    # FIXME: should be removed in autoconf 3.0.
1284    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1285    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1287    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288    ;;
1289
1290  esac
1291done
1292
1293if test -n "$ac_prev"; then
1294  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295  as_fn_error $? "missing argument to $ac_option"
1296fi
1297
1298if test -n "$ac_unrecognized_opts"; then
1299  case $enable_option_checking in
1300    no) ;;
1301    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303  esac
1304fi
1305
1306# Check all directory arguments for consistency.
1307for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308		datadir sysconfdir sharedstatedir localstatedir includedir \
1309		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310		libdir localedir mandir runstatedir
1311do
1312  eval ac_val=\$$ac_var
1313  # Remove trailing slashes.
1314  case $ac_val in
1315    */ )
1316      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317      eval $ac_var=\$ac_val;;
1318  esac
1319  # Be sure to have absolute directory names.
1320  case $ac_val in
1321    [\\/$]* | ?:[\\/]* )  continue;;
1322    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323  esac
1324  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325done
1326
1327# There might be people who depend on the old broken behavior: `$host'
1328# used to hold the argument of --host etc.
1329# FIXME: To remove some day.
1330build=$build_alias
1331host=$host_alias
1332target=$target_alias
1333
1334# FIXME: To remove some day.
1335if test "x$host_alias" != x; then
1336  if test "x$build_alias" = x; then
1337    cross_compiling=maybe
1338  elif test "x$build_alias" != "x$host_alias"; then
1339    cross_compiling=yes
1340  fi
1341fi
1342
1343ac_tool_prefix=
1344test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346test "$silent" = yes && exec 6>/dev/null
1347
1348
1349ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350ac_ls_di=`ls -di .` &&
1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352  as_fn_error $? "working directory cannot be determined"
1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354  as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357# Find the source files, if location was not specified.
1358if test -z "$srcdir"; then
1359  ac_srcdir_defaulted=yes
1360  # Try the directory containing this script, then the parent directory.
1361  ac_confdir=`$as_dirname -- "$as_myself" ||
1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363	 X"$as_myself" : 'X\(//\)[^/]' \| \
1364	 X"$as_myself" : 'X\(//\)$' \| \
1365	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366printf "%s\n" X"$as_myself" |
1367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)[^/].*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\/\)$/{
1376	    s//\1/
1377	    q
1378	  }
1379	  /^X\(\/\).*/{
1380	    s//\1/
1381	    q
1382	  }
1383	  s/.*/./; q'`
1384  srcdir=$ac_confdir
1385  if test ! -r "$srcdir/$ac_unique_file"; then
1386    srcdir=..
1387  fi
1388else
1389  ac_srcdir_defaulted=no
1390fi
1391if test ! -r "$srcdir/$ac_unique_file"; then
1392  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394fi
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
1397	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398	pwd)`
1399# When building in place, set srcdir=.
1400if test "$ac_abs_confdir" = "$ac_pwd"; then
1401  srcdir=.
1402fi
1403# Remove unnecessary trailing slashes from srcdir.
1404# Double slashes in file names in object file debugging info
1405# mess up M-x gdb in Emacs.
1406case $srcdir in
1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408esac
1409for ac_var in $ac_precious_vars; do
1410  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411  eval ac_env_${ac_var}_value=\$${ac_var}
1412  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414done
1415
1416#
1417# Report the --help message.
1418#
1419if test "$ac_init_help" = "long"; then
1420  # Omit some internal or obsolete options to make the list less imposing.
1421  # This message is too long to be a string in the A/UX 3.1 sh.
1422  cat <<_ACEOF
1423\`configure' configures c-ares 1.27.0 to adapt to many kinds of systems.
1424
1425Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428VAR=VALUE.  See below for descriptions of some of the useful variables.
1429
1430Defaults for the options are specified in brackets.
1431
1432Configuration:
1433  -h, --help              display this help and exit
1434      --help=short        display options specific to this package
1435      --help=recursive    display the short help of all the included packages
1436  -V, --version           display version information and exit
1437  -q, --quiet, --silent   do not print \`checking ...' messages
1438      --cache-file=FILE   cache test results in FILE [disabled]
1439  -C, --config-cache      alias for \`--cache-file=config.cache'
1440  -n, --no-create         do not create output files
1441      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1442
1443Installation directories:
1444  --prefix=PREFIX         install architecture-independent files in PREFIX
1445                          [$ac_default_prefix]
1446  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1447                          [PREFIX]
1448
1449By default, \`make install' will install all the files in
1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1451an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452for instance \`--prefix=\$HOME'.
1453
1454For better control, use the options below.
1455
1456Fine tuning of the installation directories:
1457  --bindir=DIR            user executables [EPREFIX/bin]
1458  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1459  --libexecdir=DIR        program executables [EPREFIX/libexec]
1460  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1461  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1462  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1463  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1464  --libdir=DIR            object code libraries [EPREFIX/lib]
1465  --includedir=DIR        C header files [PREFIX/include]
1466  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469  --infodir=DIR           info documentation [DATAROOTDIR/info]
1470  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471  --mandir=DIR            man documentation [DATAROOTDIR/man]
1472  --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1473  --htmldir=DIR           html documentation [DOCDIR]
1474  --dvidir=DIR            dvi documentation [DOCDIR]
1475  --pdfdir=DIR            pdf documentation [DOCDIR]
1476  --psdir=DIR             ps documentation [DOCDIR]
1477_ACEOF
1478
1479  cat <<\_ACEOF
1480
1481Program names:
1482  --program-prefix=PREFIX            prepend PREFIX to installed program names
1483  --program-suffix=SUFFIX            append SUFFIX to installed program names
1484  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486System types:
1487  --build=BUILD     configure for building on BUILD [guessed]
1488  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489_ACEOF
1490fi
1491
1492if test -n "$ac_init_help"; then
1493  case $ac_init_help in
1494     short | recursive ) echo "Configuration of c-ares 1.27.0:";;
1495   esac
1496  cat <<\_ACEOF
1497
1498Optional Features:
1499  --disable-option-checking  ignore unrecognized --enable/--with options
1500  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502  --enable-dependency-tracking
1503                          do not reject slow dependency extractors
1504  --disable-dependency-tracking
1505                          speeds up one-time build
1506  --enable-silent-rules   less verbose build output (undo: "make V=1")
1507  --disable-silent-rules  verbose build output (undo: "make V=0")
1508  --enable-shared[=PKGS]  build shared libraries [default=yes]
1509  --enable-static[=PKGS]  build static libraries [default=yes]
1510  --enable-fast-install[=PKGS]
1511                          optimize for fast installation [default=yes]
1512  --disable-libtool-lock  avoid locking (might break parallel builds)
1513  --disable-warnings      Disable strict compiler warnings
1514  --disable-symbol-hiding Disable symbol hiding. Enabled by default if the
1515                          compiler supports it.
1516  --disable-tests         disable building of test suite. Built by default if
1517                          GoogleTest is found.
1518  --disable-cares-threads Disable building of thread safety support
1519  --enable-maintainer-mode
1520                          enable make rules and dependencies not useful (and
1521                          sometimes confusing) to the casual installer
1522  --enable-code-coverage  Whether to enable code coverage support
1523  --disable-largefile     omit support for large files
1524  --enable-libgcc         use libgcc when linking
1525
1526Optional Packages:
1527  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1530                          both]
1531  --with-aix-soname=aix|svr4|both
1532                          shared library versioning (aka "SONAME") variant to
1533                          provide on AIX, [default=aix].
1534  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1536                          compiler's sysroot if not specified).
1537  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1538  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1539
1540Some influential environment variables:
1541  CC          C compiler command
1542  CFLAGS      C compiler flags
1543  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544              nonstandard directory <lib dir>
1545  LIBS        libraries to pass to the linker, e.g. -l<library>
1546  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547              you have headers in a nonstandard directory <include dir>
1548  CXX         C++ compiler command
1549  CXXFLAGS    C++ compiler flags
1550  LT_SYS_LIBRARY_PATH
1551              User-defined run-time library search path.
1552  CXXCPP      C++ preprocessor
1553  CPP         C preprocessor
1554  PKG_CONFIG  path to pkg-config utility
1555  PKG_CONFIG_PATH
1556              directories to add to pkg-config's search path
1557  PKG_CONFIG_LIBDIR
1558              path overriding pkg-config's built-in search path
1559  GMOCK_CFLAGS
1560              C compiler flags for GMOCK, overriding pkg-config
1561  GMOCK_LIBS  linker flags for GMOCK, overriding pkg-config
1562
1563Use these variables to override the choices made by `configure' or to help
1564it to find libraries and programs with nonstandard names/locations.
1565
1566Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
1567_ACEOF
1568ac_status=$?
1569fi
1570
1571if test "$ac_init_help" = "recursive"; then
1572  # If there are subdirs, report their specific --help.
1573  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574    test -d "$ac_dir" ||
1575      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576      continue
1577    ac_builddir=.
1578
1579case "$ac_dir" in
1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581*)
1582  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1583  # A ".." for each directory in $ac_dir_suffix.
1584  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585  case $ac_top_builddir_sub in
1586  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588  esac ;;
1589esac
1590ac_abs_top_builddir=$ac_pwd
1591ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592# for backward compatibility:
1593ac_top_builddir=$ac_top_build_prefix
1594
1595case $srcdir in
1596  .)  # We are building in place.
1597    ac_srcdir=.
1598    ac_top_srcdir=$ac_top_builddir_sub
1599    ac_abs_top_srcdir=$ac_pwd ;;
1600  [\\/]* | ?:[\\/]* )  # Absolute name.
1601    ac_srcdir=$srcdir$ac_dir_suffix;
1602    ac_top_srcdir=$srcdir
1603    ac_abs_top_srcdir=$srcdir ;;
1604  *) # Relative name.
1605    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606    ac_top_srcdir=$ac_top_build_prefix$srcdir
1607    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608esac
1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611    cd "$ac_dir" || { ac_status=$?; continue; }
1612    # Check for configure.gnu first; this name is used for a wrapper for
1613    # Metaconfig's "Configure" on case-insensitive file systems.
1614    if test -f "$ac_srcdir/configure.gnu"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617    elif test -f "$ac_srcdir/configure"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure" --help=recursive
1620    else
1621      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622    fi || ac_status=$?
1623    cd "$ac_pwd" || { ac_status=$?; break; }
1624  done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629  cat <<\_ACEOF
1630c-ares configure 1.27.0
1631generated by GNU Autoconf 2.71
1632
1633Copyright (C) 2021 Free Software Foundation, Inc.
1634This configure script is free software; the Free Software Foundation
1635gives unlimited permission to copy, distribute and modify it.
1636_ACEOF
1637  exit
1638fi
1639
1640## ------------------------ ##
1641## Autoconf initialization. ##
1642## ------------------------ ##
1643
1644# ac_fn_c_try_compile LINENO
1645# --------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext conftest.beam
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657printf "%s\n" "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667	 test -z "$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       } && test -s conftest.$ac_objext
1670then :
1671  ac_retval=0
1672else $as_nop
1673  printf "%s\n" "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676	ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_compile
1682
1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists and can be compiled using the include files in
1686# INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691printf %s "checking for $2... " >&6; }
1692if eval test \${$3+y}
1693then :
1694  printf %s "(cached) " >&6
1695else $as_nop
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"
1702then :
1703  eval "$3=yes"
1704else $as_nop
1705  eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711printf "%s\n" "$ac_res" >&6; }
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_cxx_try_compile LINENO
1717# ----------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_cxx_try_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest.beam
1723  if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729printf "%s\n" "$ac_try_echo"; } >&5
1730  (eval "$ac_compile") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_cxx_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest.$ac_objext
1742then :
1743  ac_retval=0
1744else $as_nop
1745  printf "%s\n" "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_cxx_try_compile
1754
1755# ac_fn_c_try_link LINENO
1756# -----------------------
1757# Try to link conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_link ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1762  if { { ac_try="$ac_link"
1763case "(($ac_try" in
1764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765  *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768printf "%s\n" "$ac_try_echo"; } >&5
1769  (eval "$ac_link") 2>conftest.err
1770  ac_status=$?
1771  if test -s conftest.err; then
1772    grep -v '^ *+' conftest.err >conftest.er1
1773    cat conftest.er1 >&5
1774    mv -f conftest.er1 conftest.err
1775  fi
1776  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777  test $ac_status = 0; } && {
1778	 test -z "$ac_c_werror_flag" ||
1779	 test ! -s conftest.err
1780       } && test -s conftest$ac_exeext && {
1781	 test "$cross_compiling" = yes ||
1782	 test -x conftest$ac_exeext
1783       }
1784then :
1785  ac_retval=0
1786else $as_nop
1787  printf "%s\n" "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790	ac_retval=1
1791fi
1792  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794  # interfere with the next link command; also delete a directory that is
1795  # left behind by Apple's compiler.  We do this before executing the actions.
1796  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_link
1801
1802# ac_fn_c_check_func LINENO FUNC VAR
1803# ----------------------------------
1804# Tests whether FUNC exists, setting the cache variable VAR accordingly
1805ac_fn_c_check_func ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809printf %s "checking for $2... " >&6; }
1810if eval test \${$3+y}
1811then :
1812  printf %s "(cached) " >&6
1813else $as_nop
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818#define $2 innocuous_$2
1819
1820/* System header to define __stub macros and hopefully few prototypes,
1821   which can conflict with char $2 (); below.  */
1822
1823#include <limits.h>
1824#undef $2
1825
1826/* Override any GCC internal prototype to avoid an error.
1827   Use char because int might match the return type of a GCC
1828   builtin and then its argument prototype would still apply.  */
1829#ifdef __cplusplus
1830extern "C"
1831#endif
1832char $2 ();
1833/* The GNU C library defines this for functions which it implements
1834    to always fail with ENOSYS.  Some functions are actually named
1835    something starting with __ and the normal name is an alias.  */
1836#if defined __stub_$2 || defined __stub___$2
1837choke me
1838#endif
1839
1840int
1841main (void)
1842{
1843return $2 ();
1844  ;
1845  return 0;
1846}
1847_ACEOF
1848if ac_fn_c_try_link "$LINENO"
1849then :
1850  eval "$3=yes"
1851else $as_nop
1852  eval "$3=no"
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.beam \
1855    conftest$ac_exeext conftest.$ac_ext
1856fi
1857eval ac_res=\$$3
1858	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859printf "%s\n" "$ac_res" >&6; }
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_func
1863
1864# ac_fn_cxx_try_cpp LINENO
1865# ------------------------
1866# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1867ac_fn_cxx_try_cpp ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  if { { ac_try="$ac_cpp conftest.$ac_ext"
1871case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876printf "%s\n" "$ac_try_echo"; } >&5
1877  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878  ac_status=$?
1879  if test -s conftest.err; then
1880    grep -v '^ *+' conftest.err >conftest.er1
1881    cat conftest.er1 >&5
1882    mv -f conftest.er1 conftest.err
1883  fi
1884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; } > conftest.i && {
1886	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1887	 test ! -s conftest.err
1888       }
1889then :
1890  ac_retval=0
1891else $as_nop
1892  printf "%s\n" "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895    ac_retval=1
1896fi
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898  as_fn_set_status $ac_retval
1899
1900} # ac_fn_cxx_try_cpp
1901
1902# ac_fn_cxx_try_link LINENO
1903# -------------------------
1904# Try to link conftest.$ac_ext, and return whether this succeeded.
1905ac_fn_cxx_try_link ()
1906{
1907  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1909  if { { ac_try="$ac_link"
1910case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915printf "%s\n" "$ac_try_echo"; } >&5
1916  (eval "$ac_link") 2>conftest.err
1917  ac_status=$?
1918  if test -s conftest.err; then
1919    grep -v '^ *+' conftest.err >conftest.er1
1920    cat conftest.er1 >&5
1921    mv -f conftest.er1 conftest.err
1922  fi
1923  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924  test $ac_status = 0; } && {
1925	 test -z "$ac_cxx_werror_flag" ||
1926	 test ! -s conftest.err
1927       } && test -s conftest$ac_exeext && {
1928	 test "$cross_compiling" = yes ||
1929	 test -x conftest$ac_exeext
1930       }
1931then :
1932  ac_retval=0
1933else $as_nop
1934  printf "%s\n" "$as_me: failed program was:" >&5
1935sed 's/^/| /' conftest.$ac_ext >&5
1936
1937	ac_retval=1
1938fi
1939  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941  # interfere with the next link command; also delete a directory that is
1942  # left behind by Apple's compiler.  We do this before executing the actions.
1943  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945  as_fn_set_status $ac_retval
1946
1947} # ac_fn_cxx_try_link
1948
1949# ac_fn_c_try_run LINENO
1950# ----------------------
1951# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1952# executables *can* be run.
1953ac_fn_c_try_run ()
1954{
1955  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956  if { { ac_try="$ac_link"
1957case "(($ac_try" in
1958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959  *) ac_try_echo=$ac_try;;
1960esac
1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962printf "%s\n" "$ac_try_echo"; } >&5
1963  (eval "$ac_link") 2>&5
1964  ac_status=$?
1965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967  { { case "(($ac_try" in
1968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969  *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972printf "%s\n" "$ac_try_echo"; } >&5
1973  (eval "$ac_try") 2>&5
1974  ac_status=$?
1975  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976  test $ac_status = 0; }; }
1977then :
1978  ac_retval=0
1979else $as_nop
1980  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1981       printf "%s\n" "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984       ac_retval=$ac_status
1985fi
1986  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988  as_fn_set_status $ac_retval
1989
1990} # ac_fn_c_try_run
1991
1992# ac_fn_c_try_cpp LINENO
1993# ----------------------
1994# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_c_try_cpp ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  if { { ac_try="$ac_cpp conftest.$ac_ext"
1999case "(($ac_try" in
2000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001  *) ac_try_echo=$ac_try;;
2002esac
2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004printf "%s\n" "$ac_try_echo"; } >&5
2005  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2006  ac_status=$?
2007  if test -s conftest.err; then
2008    grep -v '^ *+' conftest.err >conftest.er1
2009    cat conftest.er1 >&5
2010    mv -f conftest.er1 conftest.err
2011  fi
2012  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013  test $ac_status = 0; } > conftest.i && {
2014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2015	 test ! -s conftest.err
2016       }
2017then :
2018  ac_retval=0
2019else $as_nop
2020  printf "%s\n" "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023    ac_retval=1
2024fi
2025  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026  as_fn_set_status $ac_retval
2027
2028} # ac_fn_c_try_cpp
2029
2030# ac_fn_c_check_header_preproc LINENO HEADER VAR
2031# ----------------------------------------------
2032# Tests whether HEADER exists and can be preprocessed (in isolation), setting
2033# the cache variable VAR accordingly.
2034ac_fn_c_check_header_preproc ()
2035{
2036  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038printf %s "checking for $2... " >&6; }
2039if eval test \${$3+y}
2040then :
2041  printf %s "(cached) " >&6
2042else $as_nop
2043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045#include <$2>
2046_ACEOF
2047if ac_fn_c_try_cpp "$LINENO"
2048then :
2049  eval "$3=yes"
2050else $as_nop
2051  eval "$3=no"
2052fi
2053rm -f conftest.err conftest.i conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057printf "%s\n" "$ac_res" >&6; }
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_header_preproc
2061
2062# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2063# ------------------------------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2066ac_fn_check_decl ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  as_decl_name=`echo $2|sed 's/ *(.*//'`
2070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071printf %s "checking whether $as_decl_name is declared... " >&6; }
2072if eval test \${$3+y}
2073then :
2074  printf %s "(cached) " >&6
2075else $as_nop
2076  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077  eval ac_save_FLAGS=\$$6
2078  as_fn_append $6 " $5"
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main (void)
2084{
2085#ifndef $as_decl_name
2086#ifdef __cplusplus
2087  (void) $as_decl_use;
2088#else
2089  (void) $as_decl_name;
2090#endif
2091#endif
2092
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"
2098then :
2099  eval "$3=yes"
2100else $as_nop
2101  eval "$3=no"
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2104  eval $6=\$ac_save_FLAGS
2105
2106fi
2107eval ac_res=\$$3
2108	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109printf "%s\n" "$ac_res" >&6; }
2110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112} # ac_fn_check_decl
2113
2114# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115# -------------------------------------------
2116# Tests whether TYPE exists after having included INCLUDES, setting cache
2117# variable VAR accordingly.
2118ac_fn_c_check_type ()
2119{
2120  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122printf %s "checking for $2... " >&6; }
2123if eval test \${$3+y}
2124then :
2125  printf %s "(cached) " >&6
2126else $as_nop
2127  eval "$3=no"
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main (void)
2133{
2134if (sizeof ($2))
2135	 return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"
2141then :
2142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h.  */
2144$4
2145int
2146main (void)
2147{
2148if (sizeof (($2)))
2149	    return 0;
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154if ac_fn_c_try_compile "$LINENO"
2155then :
2156
2157else $as_nop
2158  eval "$3=yes"
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2163fi
2164eval ac_res=\$$3
2165	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166printf "%s\n" "$ac_res" >&6; }
2167  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169} # ac_fn_c_check_type
2170
2171# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2172# ----------------------------------------------------
2173# Tries to find if the field MEMBER exists in type AGGR, after including
2174# INCLUDES, setting cache variable VAR accordingly.
2175ac_fn_c_check_member ()
2176{
2177  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2179printf %s "checking for $2.$3... " >&6; }
2180if eval test \${$4+y}
2181then :
2182  printf %s "(cached) " >&6
2183else $as_nop
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186$5
2187int
2188main (void)
2189{
2190static $2 ac_aggr;
2191if (ac_aggr.$3)
2192return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"
2198then :
2199  eval "$4=yes"
2200else $as_nop
2201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h.  */
2203$5
2204int
2205main (void)
2206{
2207static $2 ac_aggr;
2208if (sizeof ac_aggr.$3)
2209return 0;
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"
2215then :
2216  eval "$4=yes"
2217else $as_nop
2218  eval "$4=no"
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2223fi
2224eval ac_res=\$$4
2225	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226printf "%s\n" "$ac_res" >&6; }
2227  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229} # ac_fn_c_check_member
2230ac_configure_args_raw=
2231for ac_arg
2232do
2233  case $ac_arg in
2234  *\'*)
2235    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236  esac
2237  as_fn_append ac_configure_args_raw " '$ac_arg'"
2238done
2239
2240case $ac_configure_args_raw in
2241  *$as_nl*)
2242    ac_safe_unquote= ;;
2243  *)
2244    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2245    ac_unsafe_a="$ac_unsafe_z#~"
2246    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2247    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2248esac
2249
2250cat >config.log <<_ACEOF
2251This file contains any messages produced by compilers while
2252running configure, to aid debugging if configure makes a mistake.
2253
2254It was created by c-ares $as_me 1.27.0, which was
2255generated by GNU Autoconf 2.71.  Invocation command line was
2256
2257  $ $0$ac_configure_args_raw
2258
2259_ACEOF
2260exec 5>>config.log
2261{
2262cat <<_ASUNAME
2263## --------- ##
2264## Platform. ##
2265## --------- ##
2266
2267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272
2273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2275
2276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2283
2284_ASUNAME
2285
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289  IFS=$as_save_IFS
2290  case $as_dir in #(((
2291    '') as_dir=./ ;;
2292    */) ;;
2293    *) as_dir=$as_dir/ ;;
2294  esac
2295    printf "%s\n" "PATH: $as_dir"
2296  done
2297IFS=$as_save_IFS
2298
2299} >&5
2300
2301cat >&5 <<_ACEOF
2302
2303
2304## ----------- ##
2305## Core tests. ##
2306## ----------- ##
2307
2308_ACEOF
2309
2310
2311# Keep a trace of the command line.
2312# Strip out --no-create and --no-recursion so they do not pile up.
2313# Strip out --silent because we don't want to record it for future runs.
2314# Also quote any args containing shell meta-characters.
2315# Make two passes to allow for proper duplicate-argument suppression.
2316ac_configure_args=
2317ac_configure_args0=
2318ac_configure_args1=
2319ac_must_keep_next=false
2320for ac_pass in 1 2
2321do
2322  for ac_arg
2323  do
2324    case $ac_arg in
2325    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327    | -silent | --silent | --silen | --sile | --sil)
2328      continue ;;
2329    *\'*)
2330      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331    esac
2332    case $ac_pass in
2333    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334    2)
2335      as_fn_append ac_configure_args1 " '$ac_arg'"
2336      if test $ac_must_keep_next = true; then
2337	ac_must_keep_next=false # Got value, back to normal.
2338      else
2339	case $ac_arg in
2340	  *=* | --config-cache | -C | -disable-* | --disable-* \
2341	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343	  | -with-* | --with-* | -without-* | --without-* | --x)
2344	    case "$ac_configure_args0 " in
2345	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346	    esac
2347	    ;;
2348	  -* ) ac_must_keep_next=true ;;
2349	esac
2350      fi
2351      as_fn_append ac_configure_args " '$ac_arg'"
2352      ;;
2353    esac
2354  done
2355done
2356{ ac_configure_args0=; unset ac_configure_args0;}
2357{ ac_configure_args1=; unset ac_configure_args1;}
2358
2359# When interrupted or exit'd, cleanup temporary files, and complete
2360# config.log.  We remove comments because anyway the quotes in there
2361# would cause problems or look ugly.
2362# WARNING: Use '\'' to represent an apostrophe within the trap.
2363# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364trap 'exit_status=$?
2365  # Sanitize IFS.
2366  IFS=" ""	$as_nl"
2367  # Save into config.log some information that might help in debugging.
2368  {
2369    echo
2370
2371    printf "%s\n" "## ---------------- ##
2372## Cache variables. ##
2373## ---------------- ##"
2374    echo
2375    # The following way of writing the cache mishandles newlines in values,
2376(
2377  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378    eval ac_val=\$$ac_var
2379    case $ac_val in #(
2380    *${as_nl}*)
2381      case $ac_var in #(
2382      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384      esac
2385      case $ac_var in #(
2386      _ | IFS | as_nl) ;; #(
2387      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388      *) { eval $ac_var=; unset $ac_var;} ;;
2389      esac ;;
2390    esac
2391  done
2392  (set) 2>&1 |
2393    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394    *${as_nl}ac_space=\ *)
2395      sed -n \
2396	"s/'\''/'\''\\\\'\'''\''/g;
2397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398      ;; #(
2399    *)
2400      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401      ;;
2402    esac |
2403    sort
2404)
2405    echo
2406
2407    printf "%s\n" "## ----------------- ##
2408## Output variables. ##
2409## ----------------- ##"
2410    echo
2411    for ac_var in $ac_subst_vars
2412    do
2413      eval ac_val=\$$ac_var
2414      case $ac_val in
2415      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416      esac
2417      printf "%s\n" "$ac_var='\''$ac_val'\''"
2418    done | sort
2419    echo
2420
2421    if test -n "$ac_subst_files"; then
2422      printf "%s\n" "## ------------------- ##
2423## File substitutions. ##
2424## ------------------- ##"
2425      echo
2426      for ac_var in $ac_subst_files
2427      do
2428	eval ac_val=\$$ac_var
2429	case $ac_val in
2430	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431	esac
2432	printf "%s\n" "$ac_var='\''$ac_val'\''"
2433      done | sort
2434      echo
2435    fi
2436
2437    if test -s confdefs.h; then
2438      printf "%s\n" "## ----------- ##
2439## confdefs.h. ##
2440## ----------- ##"
2441      echo
2442      cat confdefs.h
2443      echo
2444    fi
2445    test "$ac_signal" != 0 &&
2446      printf "%s\n" "$as_me: caught signal $ac_signal"
2447    printf "%s\n" "$as_me: exit $exit_status"
2448  } >&5
2449  rm -f core *.core core.conftest.* &&
2450    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451    exit $exit_status
2452' 0
2453for ac_signal in 1 2 13 15; do
2454  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455done
2456ac_signal=0
2457
2458# confdefs.h avoids OS command line length limits that DEFS can exceed.
2459rm -f -r conftest* confdefs.h
2460
2461printf "%s\n" "/* confdefs.h */" > confdefs.h
2462
2463# Predefined preprocessor variables.
2464
2465printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2466
2467printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2468
2469printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2470
2471printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2472
2473printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2474
2475printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2476
2477
2478# Let the site file select an alternate cache file if it wants to.
2479# Prefer an explicitly selected file to automatically selected ones.
2480if test -n "$CONFIG_SITE"; then
2481  ac_site_files="$CONFIG_SITE"
2482elif test "x$prefix" != xNONE; then
2483  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2484else
2485  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2486fi
2487
2488for ac_site_file in $ac_site_files
2489do
2490  case $ac_site_file in #(
2491  */*) :
2492     ;; #(
2493  *) :
2494    ac_site_file=./$ac_site_file ;;
2495esac
2496  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2497    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2498printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2499    sed 's/^/| /' "$ac_site_file" >&5
2500    . "$ac_site_file" \
2501      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2503as_fn_error $? "failed to load site script $ac_site_file
2504See \`config.log' for more details" "$LINENO" 5; }
2505  fi
2506done
2507
2508if test -r "$cache_file"; then
2509  # Some versions of bash will fail to source /dev/null (special files
2510  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2511  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2513printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2514    case $cache_file in
2515      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2516      *)                      . "./$cache_file";;
2517    esac
2518  fi
2519else
2520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2521printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2522  >$cache_file
2523fi
2524
2525as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2526# Test code for whether the C compiler supports C89 (global declarations)
2527ac_c_conftest_c89_globals='
2528/* Does the compiler advertise C89 conformance?
2529   Do not test the value of __STDC__, because some compilers set it to 0
2530   while being otherwise adequately conformant. */
2531#if !defined __STDC__
2532# error "Compiler does not advertise C89 conformance"
2533#endif
2534
2535#include <stddef.h>
2536#include <stdarg.h>
2537struct stat;
2538/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2539struct buf { int x; };
2540struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2541static char *e (p, i)
2542     char **p;
2543     int i;
2544{
2545  return p[i];
2546}
2547static char *f (char * (*g) (char **, int), char **p, ...)
2548{
2549  char *s;
2550  va_list v;
2551  va_start (v,p);
2552  s = g (p, va_arg (v,int));
2553  va_end (v);
2554  return s;
2555}
2556
2557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2558   function prototypes and stuff, but not \xHH hex character constants.
2559   These do not provoke an error unfortunately, instead are silently treated
2560   as an "x".  The following induces an error, until -std is added to get
2561   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2562   array size at least.  It is necessary to write \x00 == 0 to get something
2563   that is true only with -std.  */
2564int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2565
2566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2567   inside strings and character constants.  */
2568#define FOO(x) '\''x'\''
2569int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2570
2571int test (int i, double x);
2572struct s1 {int (*f) (int a);};
2573struct s2 {int (*f) (double a);};
2574int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2575               int, int);'
2576
2577# Test code for whether the C compiler supports C89 (body of main).
2578ac_c_conftest_c89_main='
2579ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2580'
2581
2582# Test code for whether the C compiler supports C99 (global declarations)
2583ac_c_conftest_c99_globals='
2584// Does the compiler advertise C99 conformance?
2585#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2586# error "Compiler does not advertise C99 conformance"
2587#endif
2588
2589#include <stdbool.h>
2590extern int puts (const char *);
2591extern int printf (const char *, ...);
2592extern int dprintf (int, const char *, ...);
2593extern void *malloc (size_t);
2594
2595// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2596// dprintf is used instead of fprintf to avoid needing to declare
2597// FILE and stderr.
2598#define debug(...) dprintf (2, __VA_ARGS__)
2599#define showlist(...) puts (#__VA_ARGS__)
2600#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2601static void
2602test_varargs_macros (void)
2603{
2604  int x = 1234;
2605  int y = 5678;
2606  debug ("Flag");
2607  debug ("X = %d\n", x);
2608  showlist (The first, second, and third items.);
2609  report (x>y, "x is %d but y is %d", x, y);
2610}
2611
2612// Check long long types.
2613#define BIG64 18446744073709551615ull
2614#define BIG32 4294967295ul
2615#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2616#if !BIG_OK
2617  #error "your preprocessor is broken"
2618#endif
2619#if BIG_OK
2620#else
2621  #error "your preprocessor is broken"
2622#endif
2623static long long int bignum = -9223372036854775807LL;
2624static unsigned long long int ubignum = BIG64;
2625
2626struct incomplete_array
2627{
2628  int datasize;
2629  double data[];
2630};
2631
2632struct named_init {
2633  int number;
2634  const wchar_t *name;
2635  double average;
2636};
2637
2638typedef const char *ccp;
2639
2640static inline int
2641test_restrict (ccp restrict text)
2642{
2643  // See if C++-style comments work.
2644  // Iterate through items via the restricted pointer.
2645  // Also check for declarations in for loops.
2646  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2647    continue;
2648  return 0;
2649}
2650
2651// Check varargs and va_copy.
2652static bool
2653test_varargs (const char *format, ...)
2654{
2655  va_list args;
2656  va_start (args, format);
2657  va_list args_copy;
2658  va_copy (args_copy, args);
2659
2660  const char *str = "";
2661  int number = 0;
2662  float fnumber = 0;
2663
2664  while (*format)
2665    {
2666      switch (*format++)
2667	{
2668	case '\''s'\'': // string
2669	  str = va_arg (args_copy, const char *);
2670	  break;
2671	case '\''d'\'': // int
2672	  number = va_arg (args_copy, int);
2673	  break;
2674	case '\''f'\'': // float
2675	  fnumber = va_arg (args_copy, double);
2676	  break;
2677	default:
2678	  break;
2679	}
2680    }
2681  va_end (args_copy);
2682  va_end (args);
2683
2684  return *str && number && fnumber;
2685}
2686'
2687
2688# Test code for whether the C compiler supports C99 (body of main).
2689ac_c_conftest_c99_main='
2690  // Check bool.
2691  _Bool success = false;
2692  success |= (argc != 0);
2693
2694  // Check restrict.
2695  if (test_restrict ("String literal") == 0)
2696    success = true;
2697  char *restrict newvar = "Another string";
2698
2699  // Check varargs.
2700  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2701  test_varargs_macros ();
2702
2703  // Check flexible array members.
2704  struct incomplete_array *ia =
2705    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2706  ia->datasize = 10;
2707  for (int i = 0; i < ia->datasize; ++i)
2708    ia->data[i] = i * 1.234;
2709
2710  // Check named initializers.
2711  struct named_init ni = {
2712    .number = 34,
2713    .name = L"Test wide string",
2714    .average = 543.34343,
2715  };
2716
2717  ni.number = 58;
2718
2719  int dynamic_array[ni.number];
2720  dynamic_array[0] = argv[0][0];
2721  dynamic_array[ni.number - 1] = 543;
2722
2723  // work around unused variable warnings
2724  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2725	 || dynamic_array[ni.number - 1] != 543);
2726'
2727
2728# Test code for whether the C compiler supports C11 (global declarations)
2729ac_c_conftest_c11_globals='
2730// Does the compiler advertise C11 conformance?
2731#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2732# error "Compiler does not advertise C11 conformance"
2733#endif
2734
2735// Check _Alignas.
2736char _Alignas (double) aligned_as_double;
2737char _Alignas (0) no_special_alignment;
2738extern char aligned_as_int;
2739char _Alignas (0) _Alignas (int) aligned_as_int;
2740
2741// Check _Alignof.
2742enum
2743{
2744  int_alignment = _Alignof (int),
2745  int_array_alignment = _Alignof (int[100]),
2746  char_alignment = _Alignof (char)
2747};
2748_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2749
2750// Check _Noreturn.
2751int _Noreturn does_not_return (void) { for (;;) continue; }
2752
2753// Check _Static_assert.
2754struct test_static_assert
2755{
2756  int x;
2757  _Static_assert (sizeof (int) <= sizeof (long int),
2758                  "_Static_assert does not work in struct");
2759  long int y;
2760};
2761
2762// Check UTF-8 literals.
2763#define u8 syntax error!
2764char const utf8_literal[] = u8"happens to be ASCII" "another string";
2765
2766// Check duplicate typedefs.
2767typedef long *long_ptr;
2768typedef long int *long_ptr;
2769typedef long_ptr long_ptr;
2770
2771// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2772struct anonymous
2773{
2774  union {
2775    struct { int i; int j; };
2776    struct { int k; long int l; } w;
2777  };
2778  int m;
2779} v1;
2780'
2781
2782# Test code for whether the C compiler supports C11 (body of main).
2783ac_c_conftest_c11_main='
2784  _Static_assert ((offsetof (struct anonymous, i)
2785		   == offsetof (struct anonymous, w.k)),
2786		  "Anonymous union alignment botch");
2787  v1.i = 2;
2788  v1.w.k = 5;
2789  ok |= v1.i != 5;
2790'
2791
2792# Test code for whether the C compiler supports C11 (complete).
2793ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2794${ac_c_conftest_c99_globals}
2795${ac_c_conftest_c11_globals}
2796
2797int
2798main (int argc, char **argv)
2799{
2800  int ok = 0;
2801  ${ac_c_conftest_c89_main}
2802  ${ac_c_conftest_c99_main}
2803  ${ac_c_conftest_c11_main}
2804  return ok;
2805}
2806"
2807
2808# Test code for whether the C compiler supports C99 (complete).
2809ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2810${ac_c_conftest_c99_globals}
2811
2812int
2813main (int argc, char **argv)
2814{
2815  int ok = 0;
2816  ${ac_c_conftest_c89_main}
2817  ${ac_c_conftest_c99_main}
2818  return ok;
2819}
2820"
2821
2822# Test code for whether the C compiler supports C89 (complete).
2823ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2824
2825int
2826main (int argc, char **argv)
2827{
2828  int ok = 0;
2829  ${ac_c_conftest_c89_main}
2830  return ok;
2831}
2832"
2833
2834as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2835as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2836as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2837as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2838as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2839as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2840as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2841as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2842as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2843as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2844# Test code for whether the C++ compiler supports C++98 (global declarations)
2845ac_cxx_conftest_cxx98_globals='
2846// Does the compiler advertise C++98 conformance?
2847#if !defined __cplusplus || __cplusplus < 199711L
2848# error "Compiler does not advertise C++98 conformance"
2849#endif
2850
2851// These inclusions are to reject old compilers that
2852// lack the unsuffixed header files.
2853#include <cstdlib>
2854#include <exception>
2855
2856// <cassert> and <cstring> are *not* freestanding headers in C++98.
2857extern void assert (int);
2858namespace std {
2859  extern int strcmp (const char *, const char *);
2860}
2861
2862// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2863using std::exception;
2864using std::strcmp;
2865
2866namespace {
2867
2868void test_exception_syntax()
2869{
2870  try {
2871    throw "test";
2872  } catch (const char *s) {
2873    // Extra parentheses suppress a warning when building autoconf itself,
2874    // due to lint rules shared with more typical C programs.
2875    assert (!(strcmp) (s, "test"));
2876  }
2877}
2878
2879template <typename T> struct test_template
2880{
2881  T const val;
2882  explicit test_template(T t) : val(t) {}
2883  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2884};
2885
2886} // anonymous namespace
2887'
2888
2889# Test code for whether the C++ compiler supports C++98 (body of main)
2890ac_cxx_conftest_cxx98_main='
2891  assert (argc);
2892  assert (! argv[0]);
2893{
2894  test_exception_syntax ();
2895  test_template<double> tt (2.0);
2896  assert (tt.add (4) == 6.0);
2897  assert (true && !false);
2898}
2899'
2900
2901# Test code for whether the C++ compiler supports C++11 (global declarations)
2902ac_cxx_conftest_cxx11_globals='
2903// Does the compiler advertise C++ 2011 conformance?
2904#if !defined __cplusplus || __cplusplus < 201103L
2905# error "Compiler does not advertise C++11 conformance"
2906#endif
2907
2908namespace cxx11test
2909{
2910  constexpr int get_val() { return 20; }
2911
2912  struct testinit
2913  {
2914    int i;
2915    double d;
2916  };
2917
2918  class delegate
2919  {
2920  public:
2921    delegate(int n) : n(n) {}
2922    delegate(): delegate(2354) {}
2923
2924    virtual int getval() { return this->n; };
2925  protected:
2926    int n;
2927  };
2928
2929  class overridden : public delegate
2930  {
2931  public:
2932    overridden(int n): delegate(n) {}
2933    virtual int getval() override final { return this->n * 2; }
2934  };
2935
2936  class nocopy
2937  {
2938  public:
2939    nocopy(int i): i(i) {}
2940    nocopy() = default;
2941    nocopy(const nocopy&) = delete;
2942    nocopy & operator=(const nocopy&) = delete;
2943  private:
2944    int i;
2945  };
2946
2947  // for testing lambda expressions
2948  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2949  {
2950    return f(v);
2951  }
2952
2953  // for testing variadic templates and trailing return types
2954  template <typename V> auto sum(V first) -> V
2955  {
2956    return first;
2957  }
2958  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2959  {
2960    return first + sum(rest...);
2961  }
2962}
2963'
2964
2965# Test code for whether the C++ compiler supports C++11 (body of main)
2966ac_cxx_conftest_cxx11_main='
2967{
2968  // Test auto and decltype
2969  auto a1 = 6538;
2970  auto a2 = 48573953.4;
2971  auto a3 = "String literal";
2972
2973  int total = 0;
2974  for (auto i = a3; *i; ++i) { total += *i; }
2975
2976  decltype(a2) a4 = 34895.034;
2977}
2978{
2979  // Test constexpr
2980  short sa[cxx11test::get_val()] = { 0 };
2981}
2982{
2983  // Test initializer lists
2984  cxx11test::testinit il = { 4323, 435234.23544 };
2985}
2986{
2987  // Test range-based for
2988  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2989                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2990  for (auto &x : array) { x += 23; }
2991}
2992{
2993  // Test lambda expressions
2994  using cxx11test::eval;
2995  assert (eval ([](int x) { return x*2; }, 21) == 42);
2996  double d = 2.0;
2997  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2998  assert (d == 5.0);
2999  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3000  assert (d == 5.0);
3001}
3002{
3003  // Test use of variadic templates
3004  using cxx11test::sum;
3005  auto a = sum(1);
3006  auto b = sum(1, 2);
3007  auto c = sum(1.0, 2.0, 3.0);
3008}
3009{
3010  // Test constructor delegation
3011  cxx11test::delegate d1;
3012  cxx11test::delegate d2();
3013  cxx11test::delegate d3(45);
3014}
3015{
3016  // Test override and final
3017  cxx11test::overridden o1(55464);
3018}
3019{
3020  // Test nullptr
3021  char *c = nullptr;
3022}
3023{
3024  // Test template brackets
3025  test_template<::test_template<int>> v(test_template<int>(12));
3026}
3027{
3028  // Unicode literals
3029  char const *utf8 = u8"UTF-8 string \u2500";
3030  char16_t const *utf16 = u"UTF-8 string \u2500";
3031  char32_t const *utf32 = U"UTF-32 string \u2500";
3032}
3033'
3034
3035# Test code for whether the C compiler supports C++11 (complete).
3036ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3037${ac_cxx_conftest_cxx11_globals}
3038
3039int
3040main (int argc, char **argv)
3041{
3042  int ok = 0;
3043  ${ac_cxx_conftest_cxx98_main}
3044  ${ac_cxx_conftest_cxx11_main}
3045  return ok;
3046}
3047"
3048
3049# Test code for whether the C compiler supports C++98 (complete).
3050ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3051int
3052main (int argc, char **argv)
3053{
3054  int ok = 0;
3055  ${ac_cxx_conftest_cxx98_main}
3056  return ok;
3057}
3058"
3059
3060
3061# Auxiliary files required by this configure script.
3062ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
3063
3064# Locations in which to look for auxiliary files.
3065ac_aux_dir_candidates="${srcdir}/config"
3066
3067# Search for a directory containing all of the required auxiliary files,
3068# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3069# If we don't find one directory that contains all the files we need,
3070# we report the set of missing files from the *first* directory in
3071# $ac_aux_dir_candidates and give up.
3072ac_missing_aux_files=""
3073ac_first_candidate=:
3074printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076as_found=false
3077for as_dir in $ac_aux_dir_candidates
3078do
3079  IFS=$as_save_IFS
3080  case $as_dir in #(((
3081    '') as_dir=./ ;;
3082    */) ;;
3083    *) as_dir=$as_dir/ ;;
3084  esac
3085  as_found=:
3086
3087  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3088  ac_aux_dir_found=yes
3089  ac_install_sh=
3090  for ac_aux in $ac_aux_files
3091  do
3092    # As a special case, if "install-sh" is required, that requirement
3093    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3094    # and $ac_install_sh is set appropriately for whichever one is found.
3095    if test x"$ac_aux" = x"install-sh"
3096    then
3097      if test -f "${as_dir}install-sh"; then
3098        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3099        ac_install_sh="${as_dir}install-sh -c"
3100      elif test -f "${as_dir}install.sh"; then
3101        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3102        ac_install_sh="${as_dir}install.sh -c"
3103      elif test -f "${as_dir}shtool"; then
3104        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3105        ac_install_sh="${as_dir}shtool install -c"
3106      else
3107        ac_aux_dir_found=no
3108        if $ac_first_candidate; then
3109          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3110        else
3111          break
3112        fi
3113      fi
3114    else
3115      if test -f "${as_dir}${ac_aux}"; then
3116        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3117      else
3118        ac_aux_dir_found=no
3119        if $ac_first_candidate; then
3120          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3121        else
3122          break
3123        fi
3124      fi
3125    fi
3126  done
3127  if test "$ac_aux_dir_found" = yes; then
3128    ac_aux_dir="$as_dir"
3129    break
3130  fi
3131  ac_first_candidate=false
3132
3133  as_found=false
3134done
3135IFS=$as_save_IFS
3136if $as_found
3137then :
3138
3139else $as_nop
3140  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3141fi
3142
3143
3144# These three variables are undocumented and unsupported,
3145# and are intended to be withdrawn in a future Autoconf release.
3146# They can cause serious problems if a builder's source tree is in a directory
3147# whose full name contains unusual characters.
3148if test -f "${ac_aux_dir}config.guess"; then
3149  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3150fi
3151if test -f "${ac_aux_dir}config.sub"; then
3152  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3153fi
3154if test -f "$ac_aux_dir/configure"; then
3155  ac_configure="$SHELL ${ac_aux_dir}configure"
3156fi
3157
3158# Check that the precious variables saved in the cache have kept the same
3159# value.
3160ac_cache_corrupted=false
3161for ac_var in $ac_precious_vars; do
3162  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3163  eval ac_new_set=\$ac_env_${ac_var}_set
3164  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3165  eval ac_new_val=\$ac_env_${ac_var}_value
3166  case $ac_old_set,$ac_new_set in
3167    set,)
3168      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3169printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3170      ac_cache_corrupted=: ;;
3171    ,set)
3172      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3173printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3174      ac_cache_corrupted=: ;;
3175    ,);;
3176    *)
3177      if test "x$ac_old_val" != "x$ac_new_val"; then
3178	# differences in whitespace do not lead to failure.
3179	ac_old_val_w=`echo x $ac_old_val`
3180	ac_new_val_w=`echo x $ac_new_val`
3181	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3182	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3183printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3184	  ac_cache_corrupted=:
3185	else
3186	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3187printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3188	  eval $ac_var=\$ac_old_val
3189	fi
3190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3191printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3193printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3194      fi;;
3195  esac
3196  # Pass precious variables to config.status.
3197  if test "$ac_new_set" = set; then
3198    case $ac_new_val in
3199    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3200    *) ac_arg=$ac_var=$ac_new_val ;;
3201    esac
3202    case " $ac_configure_args " in
3203      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3204      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3205    esac
3206  fi
3207done
3208if $ac_cache_corrupted; then
3209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3212printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3213  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3214	    and start over" "$LINENO" 5
3215fi
3216## -------------------- ##
3217## Main body of script. ##
3218## -------------------- ##
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226
3227
3228CARES_VERSION_INFO="14:0:12"
3229
3230
3231
3232ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247# Expand $ac_aux_dir to an absolute path.
3248am_aux_dir=`cd "$ac_aux_dir" && pwd`
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255if test -n "$ac_tool_prefix"; then
3256  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259printf %s "checking for $ac_word... " >&6; }
3260if test ${ac_cv_prog_CC+y}
3261then :
3262  printf %s "(cached) " >&6
3263else $as_nop
3264  if test -n "$CC"; then
3265  ac_cv_prog_CC="$CC" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270  IFS=$as_save_IFS
3271  case $as_dir in #(((
3272    '') as_dir=./ ;;
3273    */) ;;
3274    *) as_dir=$as_dir/ ;;
3275  esac
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3278    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291printf "%s\n" "$CC" >&6; }
3292else
3293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294printf "%s\n" "no" >&6; }
3295fi
3296
3297
3298fi
3299if test -z "$ac_cv_prog_CC"; then
3300  ac_ct_CC=$CC
3301  # Extract the first word of "gcc", so it can be a program name with args.
3302set dummy gcc; ac_word=$2
3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304printf %s "checking for $ac_word... " >&6; }
3305if test ${ac_cv_prog_ac_ct_CC+y}
3306then :
3307  printf %s "(cached) " >&6
3308else $as_nop
3309  if test -n "$ac_ct_CC"; then
3310  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311else
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315  IFS=$as_save_IFS
3316  case $as_dir in #(((
3317    '') as_dir=./ ;;
3318    */) ;;
3319    *) as_dir=$as_dir/ ;;
3320  esac
3321    for ac_exec_ext in '' $ac_executable_extensions; do
3322  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3323    ac_cv_prog_ac_ct_CC="gcc"
3324    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325    break 2
3326  fi
3327done
3328  done
3329IFS=$as_save_IFS
3330
3331fi
3332fi
3333ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334if test -n "$ac_ct_CC"; then
3335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336printf "%s\n" "$ac_ct_CC" >&6; }
3337else
3338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339printf "%s\n" "no" >&6; }
3340fi
3341
3342  if test "x$ac_ct_CC" = x; then
3343    CC=""
3344  else
3345    case $cross_compiling:$ac_tool_warned in
3346yes:)
3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349ac_tool_warned=yes ;;
3350esac
3351    CC=$ac_ct_CC
3352  fi
3353else
3354  CC="$ac_cv_prog_CC"
3355fi
3356
3357if test -z "$CC"; then
3358          if test -n "$ac_tool_prefix"; then
3359    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360set dummy ${ac_tool_prefix}cc; ac_word=$2
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362printf %s "checking for $ac_word... " >&6; }
3363if test ${ac_cv_prog_CC+y}
3364then :
3365  printf %s "(cached) " >&6
3366else $as_nop
3367  if test -n "$CC"; then
3368  ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  case $as_dir in #(((
3375    '') as_dir=./ ;;
3376    */) ;;
3377    *) as_dir=$as_dir/ ;;
3378  esac
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_CC="${ac_tool_prefix}cc"
3382    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394printf "%s\n" "$CC" >&6; }
3395else
3396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397printf "%s\n" "no" >&6; }
3398fi
3399
3400
3401  fi
3402fi
3403if test -z "$CC"; then
3404  # Extract the first word of "cc", so it can be a program name with args.
3405set dummy cc; ac_word=$2
3406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407printf %s "checking for $ac_word... " >&6; }
3408if test ${ac_cv_prog_CC+y}
3409then :
3410  printf %s "(cached) " >&6
3411else $as_nop
3412  if test -n "$CC"; then
3413  ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415  ac_prog_rejected=no
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  case $as_dir in #(((
3421    '') as_dir=./ ;;
3422    */) ;;
3423    *) as_dir=$as_dir/ ;;
3424  esac
3425    for ac_exec_ext in '' $ac_executable_extensions; do
3426  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428       ac_prog_rejected=yes
3429       continue
3430     fi
3431    ac_cv_prog_CC="cc"
3432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439if test $ac_prog_rejected = yes; then
3440  # We found a bogon in the path, so make sure we never use it.
3441  set dummy $ac_cv_prog_CC
3442  shift
3443  if test $# != 0; then
3444    # We chose a different compiler from the bogus one.
3445    # However, it has the same basename, so the bogon will be chosen
3446    # first if we set CC to just the basename; use the full file name.
3447    shift
3448    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3449  fi
3450fi
3451fi
3452fi
3453CC=$ac_cv_prog_CC
3454if test -n "$CC"; then
3455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456printf "%s\n" "$CC" >&6; }
3457else
3458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459printf "%s\n" "no" >&6; }
3460fi
3461
3462
3463fi
3464if test -z "$CC"; then
3465  if test -n "$ac_tool_prefix"; then
3466  for ac_prog in cl.exe
3467  do
3468    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471printf %s "checking for $ac_word... " >&6; }
3472if test ${ac_cv_prog_CC+y}
3473then :
3474  printf %s "(cached) " >&6
3475else $as_nop
3476  if test -n "$CC"; then
3477  ac_cv_prog_CC="$CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  case $as_dir in #(((
3484    '') as_dir=./ ;;
3485    */) ;;
3486    *) as_dir=$as_dir/ ;;
3487  esac
3488    for ac_exec_ext in '' $ac_executable_extensions; do
3489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495  done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503printf "%s\n" "$CC" >&6; }
3504else
3505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506printf "%s\n" "no" >&6; }
3507fi
3508
3509
3510    test -n "$CC" && break
3511  done
3512fi
3513if test -z "$CC"; then
3514  ac_ct_CC=$CC
3515  for ac_prog in cl.exe
3516do
3517  # Extract the first word of "$ac_prog", so it can be a program name with args.
3518set dummy $ac_prog; ac_word=$2
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520printf %s "checking for $ac_word... " >&6; }
3521if test ${ac_cv_prog_ac_ct_CC+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  if test -n "$ac_ct_CC"; then
3526  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  case $as_dir in #(((
3533    '') as_dir=./ ;;
3534    */) ;;
3535    *) as_dir=$as_dir/ ;;
3536  esac
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_ac_ct_CC="$ac_prog"
3540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550if test -n "$ac_ct_CC"; then
3551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552printf "%s\n" "$ac_ct_CC" >&6; }
3553else
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555printf "%s\n" "no" >&6; }
3556fi
3557
3558
3559  test -n "$ac_ct_CC" && break
3560done
3561
3562  if test "x$ac_ct_CC" = x; then
3563    CC=""
3564  else
3565    case $cross_compiling:$ac_tool_warned in
3566yes:)
3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569ac_tool_warned=yes ;;
3570esac
3571    CC=$ac_ct_CC
3572  fi
3573fi
3574
3575fi
3576if test -z "$CC"; then
3577  if test -n "$ac_tool_prefix"; then
3578  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3579set dummy ${ac_tool_prefix}clang; ac_word=$2
3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581printf %s "checking for $ac_word... " >&6; }
3582if test ${ac_cv_prog_CC+y}
3583then :
3584  printf %s "(cached) " >&6
3585else $as_nop
3586  if test -n "$CC"; then
3587  ac_cv_prog_CC="$CC" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  case $as_dir in #(((
3594    '') as_dir=./ ;;
3595    */) ;;
3596    *) as_dir=$as_dir/ ;;
3597  esac
3598    for ac_exec_ext in '' $ac_executable_extensions; do
3599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600    ac_cv_prog_CC="${ac_tool_prefix}clang"
3601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602    break 2
3603  fi
3604done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609fi
3610CC=$ac_cv_prog_CC
3611if test -n "$CC"; then
3612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613printf "%s\n" "$CC" >&6; }
3614else
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616printf "%s\n" "no" >&6; }
3617fi
3618
3619
3620fi
3621if test -z "$ac_cv_prog_CC"; then
3622  ac_ct_CC=$CC
3623  # Extract the first word of "clang", so it can be a program name with args.
3624set dummy clang; ac_word=$2
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626printf %s "checking for $ac_word... " >&6; }
3627if test ${ac_cv_prog_ac_ct_CC+y}
3628then :
3629  printf %s "(cached) " >&6
3630else $as_nop
3631  if test -n "$ac_ct_CC"; then
3632  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  case $as_dir in #(((
3639    '') as_dir=./ ;;
3640    */) ;;
3641    *) as_dir=$as_dir/ ;;
3642  esac
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_ac_ct_CC="clang"
3646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656if test -n "$ac_ct_CC"; then
3657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658printf "%s\n" "$ac_ct_CC" >&6; }
3659else
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661printf "%s\n" "no" >&6; }
3662fi
3663
3664  if test "x$ac_ct_CC" = x; then
3665    CC=""
3666  else
3667    case $cross_compiling:$ac_tool_warned in
3668yes:)
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671ac_tool_warned=yes ;;
3672esac
3673    CC=$ac_ct_CC
3674  fi
3675else
3676  CC="$ac_cv_prog_CC"
3677fi
3678
3679fi
3680
3681
3682test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3684as_fn_error $? "no acceptable C compiler found in \$PATH
3685See \`config.log' for more details" "$LINENO" 5; }
3686
3687# Provide some information about the compiler.
3688printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3689set X $ac_compile
3690ac_compiler=$2
3691for ac_option in --version -v -V -qversion -version; do
3692  { { ac_try="$ac_compiler $ac_option >&5"
3693case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698printf "%s\n" "$ac_try_echo"; } >&5
3699  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3700  ac_status=$?
3701  if test -s conftest.err; then
3702    sed '10a\
3703... rest of stderr output deleted ...
3704         10q' conftest.err >conftest.er1
3705    cat conftest.er1 >&5
3706  fi
3707  rm -f conftest.er1 conftest.err
3708  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709  test $ac_status = 0; }
3710done
3711
3712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main (void)
3717{
3718
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723ac_clean_files_save=$ac_clean_files
3724ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3725# Try to create an executable without -o first, disregard a.out.
3726# It will help us diagnose broken compilers, and finding out an intuition
3727# of exeext.
3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3729printf %s "checking whether the C compiler works... " >&6; }
3730ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3731
3732# The possible output files:
3733ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734
3735ac_rmfiles=
3736for ac_file in $ac_files
3737do
3738  case $ac_file in
3739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741  esac
3742done
3743rm -f $ac_rmfiles
3744
3745if { { ac_try="$ac_link_default"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751printf "%s\n" "$ac_try_echo"; } >&5
3752  (eval "$ac_link_default") 2>&5
3753  ac_status=$?
3754  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755  test $ac_status = 0; }
3756then :
3757  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3760# so that the user can short-circuit this test for compilers unknown to
3761# Autoconf.
3762for ac_file in $ac_files ''
3763do
3764  test -f "$ac_file" || continue
3765  case $ac_file in
3766    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767	;;
3768    [ab].out )
3769	# We found the default executable, but exeext='' is most
3770	# certainly right.
3771	break;;
3772    *.* )
3773	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3774	then :; else
3775	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776	fi
3777	# We set ac_cv_exeext here because the later test for it is not
3778	# safe: cross compilers may not add the suffix if given an `-o'
3779	# argument, so we may need to know it at that point already.
3780	# Even if this section looks crufty: it has the advantage of
3781	# actually working.
3782	break;;
3783    * )
3784	break;;
3785  esac
3786done
3787test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789else $as_nop
3790  ac_file=''
3791fi
3792if test -z "$ac_file"
3793then :
3794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795printf "%s\n" "no" >&6; }
3796printf "%s\n" "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3801as_fn_error 77 "C compiler cannot create executables
3802See \`config.log' for more details" "$LINENO" 5; }
3803else $as_nop
3804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805printf "%s\n" "yes" >&6; }
3806fi
3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3808printf %s "checking for C compiler default output file name... " >&6; }
3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810printf "%s\n" "$ac_file" >&6; }
3811ac_exeext=$ac_cv_exeext
3812
3813rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3814ac_clean_files=$ac_clean_files_save
3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816printf %s "checking for suffix of executables... " >&6; }
3817if { { ac_try="$ac_link"
3818case "(($ac_try" in
3819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820  *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823printf "%s\n" "$ac_try_echo"; } >&5
3824  (eval "$ac_link") 2>&5
3825  ac_status=$?
3826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827  test $ac_status = 0; }
3828then :
3829  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3831# work properly (i.e., refer to `conftest.exe'), while it won't with
3832# `rm'.
3833for ac_file in conftest.exe conftest conftest.*; do
3834  test -f "$ac_file" || continue
3835  case $ac_file in
3836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838	  break;;
3839    * ) break;;
3840  esac
3841done
3842else $as_nop
3843  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846See \`config.log' for more details" "$LINENO" 5; }
3847fi
3848rm -f conftest conftest$ac_cv_exeext
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850printf "%s\n" "$ac_cv_exeext" >&6; }
3851
3852rm -f conftest.$ac_ext
3853EXEEXT=$ac_cv_exeext
3854ac_exeext=$EXEEXT
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857#include <stdio.h>
3858int
3859main (void)
3860{
3861FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files="$ac_clean_files conftest.out"
3869# Check that the compiler produces executables we can run.  If not, either
3870# the compiler is broken, or we cross compile.
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872printf %s "checking whether we are cross compiling... " >&6; }
3873if test "$cross_compiling" != yes; then
3874  { { ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880printf "%s\n" "$ac_try_echo"; } >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885  if { ac_try='./conftest$ac_cv_exeext'
3886  { { case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891printf "%s\n" "$ac_try_echo"; } >&5
3892  (eval "$ac_try") 2>&5
3893  ac_status=$?
3894  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; }; then
3896    cross_compiling=no
3897  else
3898    if test "$cross_compiling" = maybe; then
3899	cross_compiling=yes
3900    else
3901	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error 77 "cannot run C compiled programs.
3904If you meant to cross compile, use \`--host'.
3905See \`config.log' for more details" "$LINENO" 5; }
3906    fi
3907  fi
3908fi
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910printf "%s\n" "$cross_compiling" >&6; }
3911
3912rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913ac_clean_files=$ac_clean_files_save
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915printf %s "checking for suffix of object files... " >&6; }
3916if test ${ac_cv_objext+y}
3917then :
3918  printf %s "(cached) " >&6
3919else $as_nop
3920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922
3923int
3924main (void)
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931rm -f conftest.o conftest.obj
3932if { { ac_try="$ac_compile"
3933case "(($ac_try" in
3934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935  *) ac_try_echo=$ac_try;;
3936esac
3937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938printf "%s\n" "$ac_try_echo"; } >&5
3939  (eval "$ac_compile") 2>&5
3940  ac_status=$?
3941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942  test $ac_status = 0; }
3943then :
3944  for ac_file in conftest.o conftest.obj conftest.*; do
3945  test -f "$ac_file" || continue;
3946  case $ac_file in
3947    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3948    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949       break;;
3950  esac
3951done
3952else $as_nop
3953  printf "%s\n" "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3958as_fn_error $? "cannot compute suffix of object files: cannot compile
3959See \`config.log' for more details" "$LINENO" 5; }
3960fi
3961rm -f conftest.$ac_cv_objext conftest.$ac_ext
3962fi
3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964printf "%s\n" "$ac_cv_objext" >&6; }
3965OBJEXT=$ac_cv_objext
3966ac_objext=$OBJEXT
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3968printf %s "checking whether the compiler supports GNU C... " >&6; }
3969if test ${ac_cv_c_compiler_gnu+y}
3970then :
3971  printf %s "(cached) " >&6
3972else $as_nop
3973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h.  */
3975
3976int
3977main (void)
3978{
3979#ifndef __GNUC__
3980       choke me
3981#endif
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"
3988then :
3989  ac_compiler_gnu=yes
3990else $as_nop
3991  ac_compiler_gnu=no
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3994ac_cv_c_compiler_gnu=$ac_compiler_gnu
3995
3996fi
3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3998printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001if test $ac_compiler_gnu = yes; then
4002  GCC=yes
4003else
4004  GCC=
4005fi
4006ac_test_CFLAGS=${CFLAGS+y}
4007ac_save_CFLAGS=$CFLAGS
4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009printf %s "checking whether $CC accepts -g... " >&6; }
4010if test ${ac_cv_prog_cc_g+y}
4011then :
4012  printf %s "(cached) " >&6
4013else $as_nop
4014  ac_save_c_werror_flag=$ac_c_werror_flag
4015   ac_c_werror_flag=yes
4016   ac_cv_prog_cc_g=no
4017   CFLAGS="-g"
4018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h.  */
4020
4021int
4022main (void)
4023{
4024
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029if ac_fn_c_try_compile "$LINENO"
4030then :
4031  ac_cv_prog_cc_g=yes
4032else $as_nop
4033  CFLAGS=""
4034      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main (void)
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_compile "$LINENO"
4046then :
4047
4048else $as_nop
4049  ac_c_werror_flag=$ac_save_c_werror_flag
4050	 CFLAGS="-g"
4051	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h.  */
4053
4054int
4055main (void)
4056{
4057
4058  ;
4059  return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"
4063then :
4064  ac_cv_prog_cc_g=yes
4065fi
4066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4067fi
4068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4071   ac_c_werror_flag=$ac_save_c_werror_flag
4072fi
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4075if test $ac_test_CFLAGS; then
4076  CFLAGS=$ac_save_CFLAGS
4077elif test $ac_cv_prog_cc_g = yes; then
4078  if test "$GCC" = yes; then
4079    CFLAGS="-g -O2"
4080  else
4081    CFLAGS="-g"
4082  fi
4083else
4084  if test "$GCC" = yes; then
4085    CFLAGS="-O2"
4086  else
4087    CFLAGS=
4088  fi
4089fi
4090ac_prog_cc_stdc=no
4091if test x$ac_prog_cc_stdc = xno
4092then :
4093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4094printf %s "checking for $CC option to enable C11 features... " >&6; }
4095if test ${ac_cv_prog_cc_c11+y}
4096then :
4097  printf %s "(cached) " >&6
4098else $as_nop
4099  ac_cv_prog_cc_c11=no
4100ac_save_CC=$CC
4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103$ac_c_conftest_c11_program
4104_ACEOF
4105for ac_arg in '' -std=gnu11
4106do
4107  CC="$ac_save_CC $ac_arg"
4108  if ac_fn_c_try_compile "$LINENO"
4109then :
4110  ac_cv_prog_cc_c11=$ac_arg
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.beam
4113  test "x$ac_cv_prog_cc_c11" != "xno" && break
4114done
4115rm -f conftest.$ac_ext
4116CC=$ac_save_CC
4117fi
4118
4119if test "x$ac_cv_prog_cc_c11" = xno
4120then :
4121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122printf "%s\n" "unsupported" >&6; }
4123else $as_nop
4124  if test "x$ac_cv_prog_cc_c11" = x
4125then :
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127printf "%s\n" "none needed" >&6; }
4128else $as_nop
4129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4130printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4131     CC="$CC $ac_cv_prog_cc_c11"
4132fi
4133  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4134  ac_prog_cc_stdc=c11
4135fi
4136fi
4137if test x$ac_prog_cc_stdc = xno
4138then :
4139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4140printf %s "checking for $CC option to enable C99 features... " >&6; }
4141if test ${ac_cv_prog_cc_c99+y}
4142then :
4143  printf %s "(cached) " >&6
4144else $as_nop
4145  ac_cv_prog_cc_c99=no
4146ac_save_CC=$CC
4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149$ac_c_conftest_c99_program
4150_ACEOF
4151for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4152do
4153  CC="$ac_save_CC $ac_arg"
4154  if ac_fn_c_try_compile "$LINENO"
4155then :
4156  ac_cv_prog_cc_c99=$ac_arg
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.beam
4159  test "x$ac_cv_prog_cc_c99" != "xno" && break
4160done
4161rm -f conftest.$ac_ext
4162CC=$ac_save_CC
4163fi
4164
4165if test "x$ac_cv_prog_cc_c99" = xno
4166then :
4167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168printf "%s\n" "unsupported" >&6; }
4169else $as_nop
4170  if test "x$ac_cv_prog_cc_c99" = x
4171then :
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173printf "%s\n" "none needed" >&6; }
4174else $as_nop
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4176printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4177     CC="$CC $ac_cv_prog_cc_c99"
4178fi
4179  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4180  ac_prog_cc_stdc=c99
4181fi
4182fi
4183if test x$ac_prog_cc_stdc = xno
4184then :
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4186printf %s "checking for $CC option to enable C89 features... " >&6; }
4187if test ${ac_cv_prog_cc_c89+y}
4188then :
4189  printf %s "(cached) " >&6
4190else $as_nop
4191  ac_cv_prog_cc_c89=no
4192ac_save_CC=$CC
4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195$ac_c_conftest_c89_program
4196_ACEOF
4197for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4198do
4199  CC="$ac_save_CC $ac_arg"
4200  if ac_fn_c_try_compile "$LINENO"
4201then :
4202  ac_cv_prog_cc_c89=$ac_arg
4203fi
4204rm -f core conftest.err conftest.$ac_objext conftest.beam
4205  test "x$ac_cv_prog_cc_c89" != "xno" && break
4206done
4207rm -f conftest.$ac_ext
4208CC=$ac_save_CC
4209fi
4210
4211if test "x$ac_cv_prog_cc_c89" = xno
4212then :
4213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214printf "%s\n" "unsupported" >&6; }
4215else $as_nop
4216  if test "x$ac_cv_prog_cc_c89" = x
4217then :
4218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219printf "%s\n" "none needed" >&6; }
4220else $as_nop
4221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4223     CC="$CC $ac_cv_prog_cc_c89"
4224fi
4225  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4226  ac_prog_cc_stdc=c89
4227fi
4228fi
4229
4230ac_ext=c
4231ac_cpp='$CPP $CPPFLAGS'
4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236
4237  ac_ext=c
4238ac_cpp='$CPP $CPPFLAGS'
4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4243printf %s "checking whether $CC understands -c and -o together... " >&6; }
4244if test ${am_cv_prog_cc_c_o+y}
4245then :
4246  printf %s "(cached) " >&6
4247else $as_nop
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250
4251int
4252main (void)
4253{
4254
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259  # Make sure it works both with $CC and with simple cc.
4260  # Following AC_PROG_CC_C_O, we do the test twice because some
4261  # compilers refuse to overwrite an existing .o file with -o,
4262  # though they will create one.
4263  am_cv_prog_cc_c_o=yes
4264  for am_i in 1 2; do
4265    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4266   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } \
4270         && test -f conftest2.$ac_objext; then
4271      : OK
4272    else
4273      am_cv_prog_cc_c_o=no
4274      break
4275    fi
4276  done
4277  rm -f core conftest*
4278  unset am_i
4279fi
4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4281printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4282if test "$am_cv_prog_cc_c_o" != yes; then
4283   # Losing compiler, so override with the script.
4284   # FIXME: It is wrong to rewrite CC.
4285   # But if we don't then we get into trouble of one sort or another.
4286   # A longer-term fix would be to have automake use am__CC in this case,
4287   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4288   CC="$am_aux_dir/compile $CC"
4289fi
4290ac_ext=c
4291ac_cpp='$CPP $CPPFLAGS'
4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296
4297
4298ac_header= ac_cache=
4299for ac_item in $ac_header_c_list
4300do
4301  if test $ac_cache; then
4302    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4303    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4304      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4305    fi
4306    ac_header= ac_cache=
4307  elif test $ac_header; then
4308    ac_cache=$ac_item
4309  else
4310    ac_header=$ac_item
4311  fi
4312done
4313
4314
4315
4316
4317
4318
4319
4320
4321if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4322then :
4323
4324printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4325
4326fi
4327
4328
4329
4330
4331
4332
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4334printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4335if test ${ac_cv_safe_to_define___extensions__+y}
4336then :
4337  printf %s "(cached) " >&6
4338else $as_nop
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341
4342#         define __EXTENSIONS__ 1
4343          $ac_includes_default
4344int
4345main (void)
4346{
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352if ac_fn_c_try_compile "$LINENO"
4353then :
4354  ac_cv_safe_to_define___extensions__=yes
4355else $as_nop
4356  ac_cv_safe_to_define___extensions__=no
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4359fi
4360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4361printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4362
4363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4364printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4365if test ${ac_cv_should_define__xopen_source+y}
4366then :
4367  printf %s "(cached) " >&6
4368else $as_nop
4369  ac_cv_should_define__xopen_source=no
4370    if test $ac_cv_header_wchar_h = yes
4371then :
4372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374
4375          #include <wchar.h>
4376          mbstate_t x;
4377int
4378main (void)
4379{
4380
4381  ;
4382  return 0;
4383}
4384_ACEOF
4385if ac_fn_c_try_compile "$LINENO"
4386then :
4387
4388else $as_nop
4389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392            #define _XOPEN_SOURCE 500
4393            #include <wchar.h>
4394            mbstate_t x;
4395int
4396main (void)
4397{
4398
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403if ac_fn_c_try_compile "$LINENO"
4404then :
4405  ac_cv_should_define__xopen_source=yes
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4410fi
4411fi
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4413printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4414
4415  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4416
4417  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4418
4419  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4420
4421  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4422
4423  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4424
4425  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4426
4427  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4428
4429  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4430
4431  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4432
4433  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4434
4435  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4436
4437  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4438
4439  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4440
4441  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4442
4443  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4444
4445  if test $ac_cv_header_minix_config_h = yes
4446then :
4447  MINIX=yes
4448    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4449
4450    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4451
4452    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4453
4454else $as_nop
4455  MINIX=
4456fi
4457  if test $ac_cv_safe_to_define___extensions__ = yes
4458then :
4459  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4460
4461fi
4462  if test $ac_cv_should_define__xopen_source = yes
4463then :
4464  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4465
4466fi
4467
4468
4469
4470
4471
4472
4473
4474ac_ext=cpp
4475ac_cpp='$CXXCPP $CPPFLAGS'
4476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4479if test -z "$CXX"; then
4480  if test -n "$CCC"; then
4481    CXX=$CCC
4482  else
4483    if test -n "$ac_tool_prefix"; then
4484  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4485  do
4486    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489printf %s "checking for $ac_word... " >&6; }
4490if test ${ac_cv_prog_CXX+y}
4491then :
4492  printf %s "(cached) " >&6
4493else $as_nop
4494  if test -n "$CXX"; then
4495  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500  IFS=$as_save_IFS
4501  case $as_dir in #(((
4502    '') as_dir=./ ;;
4503    */) ;;
4504    *) as_dir=$as_dir/ ;;
4505  esac
4506    for ac_exec_ext in '' $ac_executable_extensions; do
4507  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4508    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4509    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4510    break 2
4511  fi
4512done
4513  done
4514IFS=$as_save_IFS
4515
4516fi
4517fi
4518CXX=$ac_cv_prog_CXX
4519if test -n "$CXX"; then
4520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4521printf "%s\n" "$CXX" >&6; }
4522else
4523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524printf "%s\n" "no" >&6; }
4525fi
4526
4527
4528    test -n "$CXX" && break
4529  done
4530fi
4531if test -z "$CXX"; then
4532  ac_ct_CXX=$CXX
4533  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4534do
4535  # Extract the first word of "$ac_prog", so it can be a program name with args.
4536set dummy $ac_prog; ac_word=$2
4537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538printf %s "checking for $ac_word... " >&6; }
4539if test ${ac_cv_prog_ac_ct_CXX+y}
4540then :
4541  printf %s "(cached) " >&6
4542else $as_nop
4543  if test -n "$ac_ct_CXX"; then
4544  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549  IFS=$as_save_IFS
4550  case $as_dir in #(((
4551    '') as_dir=./ ;;
4552    */) ;;
4553    *) as_dir=$as_dir/ ;;
4554  esac
4555    for ac_exec_ext in '' $ac_executable_extensions; do
4556  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4557    ac_cv_prog_ac_ct_CXX="$ac_prog"
4558    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4559    break 2
4560  fi
4561done
4562  done
4563IFS=$as_save_IFS
4564
4565fi
4566fi
4567ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4568if test -n "$ac_ct_CXX"; then
4569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4570printf "%s\n" "$ac_ct_CXX" >&6; }
4571else
4572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573printf "%s\n" "no" >&6; }
4574fi
4575
4576
4577  test -n "$ac_ct_CXX" && break
4578done
4579
4580  if test "x$ac_ct_CXX" = x; then
4581    CXX="g++"
4582  else
4583    case $cross_compiling:$ac_tool_warned in
4584yes:)
4585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587ac_tool_warned=yes ;;
4588esac
4589    CXX=$ac_ct_CXX
4590  fi
4591fi
4592
4593  fi
4594fi
4595# Provide some information about the compiler.
4596printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4597set X $ac_compile
4598ac_compiler=$2
4599for ac_option in --version -v -V -qversion; do
4600  { { ac_try="$ac_compiler $ac_option >&5"
4601case "(($ac_try" in
4602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603  *) ac_try_echo=$ac_try;;
4604esac
4605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606printf "%s\n" "$ac_try_echo"; } >&5
4607  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4608  ac_status=$?
4609  if test -s conftest.err; then
4610    sed '10a\
4611... rest of stderr output deleted ...
4612         10q' conftest.err >conftest.er1
4613    cat conftest.er1 >&5
4614  fi
4615  rm -f conftest.er1 conftest.err
4616  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617  test $ac_status = 0; }
4618done
4619
4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4621printf %s "checking whether the compiler supports GNU C++... " >&6; }
4622if test ${ac_cv_cxx_compiler_gnu+y}
4623then :
4624  printf %s "(cached) " >&6
4625else $as_nop
4626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h.  */
4628
4629int
4630main (void)
4631{
4632#ifndef __GNUC__
4633       choke me
4634#endif
4635
4636  ;
4637  return 0;
4638}
4639_ACEOF
4640if ac_fn_cxx_try_compile "$LINENO"
4641then :
4642  ac_compiler_gnu=yes
4643else $as_nop
4644  ac_compiler_gnu=no
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4647ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4648
4649fi
4650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4651printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4653
4654if test $ac_compiler_gnu = yes; then
4655  GXX=yes
4656else
4657  GXX=
4658fi
4659ac_test_CXXFLAGS=${CXXFLAGS+y}
4660ac_save_CXXFLAGS=$CXXFLAGS
4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4662printf %s "checking whether $CXX accepts -g... " >&6; }
4663if test ${ac_cv_prog_cxx_g+y}
4664then :
4665  printf %s "(cached) " >&6
4666else $as_nop
4667  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4668   ac_cxx_werror_flag=yes
4669   ac_cv_prog_cxx_g=no
4670   CXXFLAGS="-g"
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673
4674int
4675main (void)
4676{
4677
4678  ;
4679  return 0;
4680}
4681_ACEOF
4682if ac_fn_cxx_try_compile "$LINENO"
4683then :
4684  ac_cv_prog_cxx_g=yes
4685else $as_nop
4686  CXXFLAGS=""
4687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h.  */
4689
4690int
4691main (void)
4692{
4693
4694  ;
4695  return 0;
4696}
4697_ACEOF
4698if ac_fn_cxx_try_compile "$LINENO"
4699then :
4700
4701else $as_nop
4702  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4703	 CXXFLAGS="-g"
4704	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706
4707int
4708main (void)
4709{
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715if ac_fn_cxx_try_compile "$LINENO"
4716then :
4717  ac_cv_prog_cxx_g=yes
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4722fi
4723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4724   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725fi
4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4727printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4728if test $ac_test_CXXFLAGS; then
4729  CXXFLAGS=$ac_save_CXXFLAGS
4730elif test $ac_cv_prog_cxx_g = yes; then
4731  if test "$GXX" = yes; then
4732    CXXFLAGS="-g -O2"
4733  else
4734    CXXFLAGS="-g"
4735  fi
4736else
4737  if test "$GXX" = yes; then
4738    CXXFLAGS="-O2"
4739  else
4740    CXXFLAGS=
4741  fi
4742fi
4743ac_prog_cxx_stdcxx=no
4744if test x$ac_prog_cxx_stdcxx = xno
4745then :
4746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4747printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4748if test ${ac_cv_prog_cxx_cxx11+y}
4749then :
4750  printf %s "(cached) " >&6
4751else $as_nop
4752  ac_cv_prog_cxx_cxx11=no
4753ac_save_CXX=$CXX
4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756$ac_cxx_conftest_cxx11_program
4757_ACEOF
4758for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4759do
4760  CXX="$ac_save_CXX $ac_arg"
4761  if ac_fn_cxx_try_compile "$LINENO"
4762then :
4763  ac_cv_prog_cxx_cxx11=$ac_arg
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.beam
4766  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4767done
4768rm -f conftest.$ac_ext
4769CXX=$ac_save_CXX
4770fi
4771
4772if test "x$ac_cv_prog_cxx_cxx11" = xno
4773then :
4774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4775printf "%s\n" "unsupported" >&6; }
4776else $as_nop
4777  if test "x$ac_cv_prog_cxx_cxx11" = x
4778then :
4779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4780printf "%s\n" "none needed" >&6; }
4781else $as_nop
4782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4783printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4784     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4785fi
4786  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4787  ac_prog_cxx_stdcxx=cxx11
4788fi
4789fi
4790if test x$ac_prog_cxx_stdcxx = xno
4791then :
4792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4793printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4794if test ${ac_cv_prog_cxx_cxx98+y}
4795then :
4796  printf %s "(cached) " >&6
4797else $as_nop
4798  ac_cv_prog_cxx_cxx98=no
4799ac_save_CXX=$CXX
4800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h.  */
4802$ac_cxx_conftest_cxx98_program
4803_ACEOF
4804for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4805do
4806  CXX="$ac_save_CXX $ac_arg"
4807  if ac_fn_cxx_try_compile "$LINENO"
4808then :
4809  ac_cv_prog_cxx_cxx98=$ac_arg
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.beam
4812  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4813done
4814rm -f conftest.$ac_ext
4815CXX=$ac_save_CXX
4816fi
4817
4818if test "x$ac_cv_prog_cxx_cxx98" = xno
4819then :
4820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4821printf "%s\n" "unsupported" >&6; }
4822else $as_nop
4823  if test "x$ac_cv_prog_cxx_cxx98" = x
4824then :
4825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4826printf "%s\n" "none needed" >&6; }
4827else $as_nop
4828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4829printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4830     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4831fi
4832  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4833  ac_prog_cxx_stdcxx=cxx98
4834fi
4835fi
4836
4837ac_ext=cpp
4838ac_cpp='$CXXCPP $CPPFLAGS'
4839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4842
4843
4844  ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=false
4845  ac_ext=cpp
4846ac_cpp='$CXXCPP $CPPFLAGS'
4847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4850  ac_success=no
4851
4852
4853
4854
4855
4856    if test x$ac_success = xno; then
4857                    for alternative in ${ax_cxx_compile_alternatives}; do
4858      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
4859        if test x"$switch" = xMSVC; then
4860                                        switch=-std:c++${alternative}
4861          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_${switch}_MSVC" | $as_tr_sh`
4862        else
4863          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
4864        fi
4865        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
4866printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
4867if eval test \${$cachevar+y}
4868then :
4869  printf %s "(cached) " >&6
4870else $as_nop
4871  ac_save_CXX="$CXX"
4872           CXX="$CXX $switch"
4873           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875
4876
4877// If the compiler admits that it is not ready for C++11, why torture it?
4878// Hopefully, this will speed up the test.
4879
4880#ifndef __cplusplus
4881
4882#error "This is not a C++ compiler"
4883
4884// MSVC always sets __cplusplus to 199711L in older versions; newer versions
4885// only set it correctly if /Zc:__cplusplus is specified as well as a
4886// /std:c++NN switch:
4887// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
4888#elif __cplusplus < 201103L && !defined _MSC_VER
4889
4890#error "This is not a C++11 compiler"
4891
4892#else
4893
4894namespace cxx11
4895{
4896
4897  namespace test_static_assert
4898  {
4899
4900    template <typename T>
4901    struct check
4902    {
4903      static_assert(sizeof(int) <= sizeof(T), "not big enough");
4904    };
4905
4906  }
4907
4908  namespace test_final_override
4909  {
4910
4911    struct Base
4912    {
4913      virtual ~Base() {}
4914      virtual void f() {}
4915    };
4916
4917    struct Derived : public Base
4918    {
4919      virtual ~Derived() override {}
4920      virtual void f() override {}
4921    };
4922
4923  }
4924
4925  namespace test_double_right_angle_brackets
4926  {
4927
4928    template < typename T >
4929    struct check {};
4930
4931    typedef check<void> single_type;
4932    typedef check<check<void>> double_type;
4933    typedef check<check<check<void>>> triple_type;
4934    typedef check<check<check<check<void>>>> quadruple_type;
4935
4936  }
4937
4938  namespace test_decltype
4939  {
4940
4941    int
4942    f()
4943    {
4944      int a = 1;
4945      decltype(a) b = 2;
4946      return a + b;
4947    }
4948
4949  }
4950
4951  namespace test_type_deduction
4952  {
4953
4954    template < typename T1, typename T2 >
4955    struct is_same
4956    {
4957      static const bool value = false;
4958    };
4959
4960    template < typename T >
4961    struct is_same<T, T>
4962    {
4963      static const bool value = true;
4964    };
4965
4966    template < typename T1, typename T2 >
4967    auto
4968    add(T1 a1, T2 a2) -> decltype(a1 + a2)
4969    {
4970      return a1 + a2;
4971    }
4972
4973    int
4974    test(const int c, volatile int v)
4975    {
4976      static_assert(is_same<int, decltype(0)>::value == true, "");
4977      static_assert(is_same<int, decltype(c)>::value == false, "");
4978      static_assert(is_same<int, decltype(v)>::value == false, "");
4979      auto ac = c;
4980      auto av = v;
4981      auto sumi = ac + av + 'x';
4982      auto sumf = ac + av + 1.0;
4983      static_assert(is_same<int, decltype(ac)>::value == true, "");
4984      static_assert(is_same<int, decltype(av)>::value == true, "");
4985      static_assert(is_same<int, decltype(sumi)>::value == true, "");
4986      static_assert(is_same<int, decltype(sumf)>::value == false, "");
4987      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4988      return (sumf > 0.0) ? sumi : add(c, v);
4989    }
4990
4991  }
4992
4993  namespace test_noexcept
4994  {
4995
4996    int f() { return 0; }
4997    int g() noexcept { return 0; }
4998
4999    static_assert(noexcept(f()) == false, "");
5000    static_assert(noexcept(g()) == true, "");
5001
5002  }
5003
5004  namespace test_constexpr
5005  {
5006
5007    template < typename CharT >
5008    unsigned long constexpr
5009    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5010    {
5011      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5012    }
5013
5014    template < typename CharT >
5015    unsigned long constexpr
5016    strlen_c(const CharT *const s) noexcept
5017    {
5018      return strlen_c_r(s, 0UL);
5019    }
5020
5021    static_assert(strlen_c("") == 0UL, "");
5022    static_assert(strlen_c("1") == 1UL, "");
5023    static_assert(strlen_c("example") == 7UL, "");
5024    static_assert(strlen_c("another\0example") == 7UL, "");
5025
5026  }
5027
5028  namespace test_rvalue_references
5029  {
5030
5031    template < int N >
5032    struct answer
5033    {
5034      static constexpr int value = N;
5035    };
5036
5037    answer<1> f(int&)       { return answer<1>(); }
5038    answer<2> f(const int&) { return answer<2>(); }
5039    answer<3> f(int&&)      { return answer<3>(); }
5040
5041    void
5042    test()
5043    {
5044      int i = 0;
5045      const int c = 0;
5046      static_assert(decltype(f(i))::value == 1, "");
5047      static_assert(decltype(f(c))::value == 2, "");
5048      static_assert(decltype(f(0))::value == 3, "");
5049    }
5050
5051  }
5052
5053  namespace test_uniform_initialization
5054  {
5055
5056    struct test
5057    {
5058      static const int zero {};
5059      static const int one {1};
5060    };
5061
5062    static_assert(test::zero == 0, "");
5063    static_assert(test::one == 1, "");
5064
5065  }
5066
5067  namespace test_lambdas
5068  {
5069
5070    void
5071    test1()
5072    {
5073      auto lambda1 = [](){};
5074      auto lambda2 = lambda1;
5075      lambda1();
5076      lambda2();
5077    }
5078
5079    int
5080    test2()
5081    {
5082      auto a = [](int i, int j){ return i + j; }(1, 2);
5083      auto b = []() -> int { return '0'; }();
5084      auto c = [=](){ return a + b; }();
5085      auto d = [&](){ return c; }();
5086      auto e = [a, &b](int x) mutable {
5087        const auto identity = [](int y){ return y; };
5088        for (auto i = 0; i < a; ++i)
5089          a += b--;
5090        return x + identity(a + b);
5091      }(0);
5092      return a + b + c + d + e;
5093    }
5094
5095    int
5096    test3()
5097    {
5098      const auto nullary = [](){ return 0; };
5099      const auto unary = [](int x){ return x; };
5100      using nullary_t = decltype(nullary);
5101      using unary_t = decltype(unary);
5102      const auto higher1st = [](nullary_t f){ return f(); };
5103      const auto higher2nd = [unary](nullary_t f1){
5104        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5105      };
5106      return higher1st(nullary) + higher2nd(nullary)(unary);
5107    }
5108
5109  }
5110
5111  namespace test_variadic_templates
5112  {
5113
5114    template <int...>
5115    struct sum;
5116
5117    template <int N0, int... N1toN>
5118    struct sum<N0, N1toN...>
5119    {
5120      static constexpr auto value = N0 + sum<N1toN...>::value;
5121    };
5122
5123    template <>
5124    struct sum<>
5125    {
5126      static constexpr auto value = 0;
5127    };
5128
5129    static_assert(sum<>::value == 0, "");
5130    static_assert(sum<1>::value == 1, "");
5131    static_assert(sum<23>::value == 23, "");
5132    static_assert(sum<1, 2>::value == 3, "");
5133    static_assert(sum<5, 5, 11>::value == 21, "");
5134    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5135
5136  }
5137
5138  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5139  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5140  // because of this.
5141  namespace test_template_alias_sfinae
5142  {
5143
5144    struct foo {};
5145
5146    template<typename T>
5147    using member = typename T::member_type;
5148
5149    template<typename T>
5150    void func(...) {}
5151
5152    template<typename T>
5153    void func(member<T>*) {}
5154
5155    void test();
5156
5157    void test() { func<foo>(0); }
5158
5159  }
5160
5161}  // namespace cxx11
5162
5163#endif  // __cplusplus >= 201103L
5164
5165
5166
5167
5168// If the compiler admits that it is not ready for C++14, why torture it?
5169// Hopefully, this will speed up the test.
5170
5171#ifndef __cplusplus
5172
5173#error "This is not a C++ compiler"
5174
5175#elif __cplusplus < 201402L && !defined _MSC_VER
5176
5177#error "This is not a C++14 compiler"
5178
5179#else
5180
5181namespace cxx14
5182{
5183
5184  namespace test_polymorphic_lambdas
5185  {
5186
5187    int
5188    test()
5189    {
5190      const auto lambda = [](auto&&... args){
5191        const auto istiny = [](auto x){
5192          return (sizeof(x) == 1UL) ? 1 : 0;
5193        };
5194        const int aretiny[] = { istiny(args)... };
5195        return aretiny[0];
5196      };
5197      return lambda(1, 1L, 1.0f, '1');
5198    }
5199
5200  }
5201
5202  namespace test_binary_literals
5203  {
5204
5205    constexpr auto ivii = 0b0000000000101010;
5206    static_assert(ivii == 42, "wrong value");
5207
5208  }
5209
5210  namespace test_generalized_constexpr
5211  {
5212
5213    template < typename CharT >
5214    constexpr unsigned long
5215    strlen_c(const CharT *const s) noexcept
5216    {
5217      auto length = 0UL;
5218      for (auto p = s; *p; ++p)
5219        ++length;
5220      return length;
5221    }
5222
5223    static_assert(strlen_c("") == 0UL, "");
5224    static_assert(strlen_c("x") == 1UL, "");
5225    static_assert(strlen_c("test") == 4UL, "");
5226    static_assert(strlen_c("another\0test") == 7UL, "");
5227
5228  }
5229
5230  namespace test_lambda_init_capture
5231  {
5232
5233    int
5234    test()
5235    {
5236      auto x = 0;
5237      const auto lambda1 = [a = x](int b){ return a + b; };
5238      const auto lambda2 = [a = lambda1(x)](){ return a; };
5239      return lambda2();
5240    }
5241
5242  }
5243
5244  namespace test_digit_separators
5245  {
5246
5247    constexpr auto ten_million = 100'000'000;
5248    static_assert(ten_million == 100000000, "");
5249
5250  }
5251
5252  namespace test_return_type_deduction
5253  {
5254
5255    auto f(int& x) { return x; }
5256    decltype(auto) g(int& x) { return x; }
5257
5258    template < typename T1, typename T2 >
5259    struct is_same
5260    {
5261      static constexpr auto value = false;
5262    };
5263
5264    template < typename T >
5265    struct is_same<T, T>
5266    {
5267      static constexpr auto value = true;
5268    };
5269
5270    int
5271    test()
5272    {
5273      auto x = 0;
5274      static_assert(is_same<int, decltype(f(x))>::value, "");
5275      static_assert(is_same<int&, decltype(g(x))>::value, "");
5276      return x;
5277    }
5278
5279  }
5280
5281}  // namespace cxx14
5282
5283#endif  // __cplusplus >= 201402L
5284
5285
5286
5287_ACEOF
5288if ac_fn_cxx_try_compile "$LINENO"
5289then :
5290  eval $cachevar=yes
5291else $as_nop
5292  eval $cachevar=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295           CXX="$ac_save_CXX"
5296fi
5297eval ac_res=\$$cachevar
5298	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5299printf "%s\n" "$ac_res" >&6; }
5300        if eval test x\$$cachevar = xyes; then
5301          CXX="$CXX $switch"
5302          if test -n "$CXXCPP" ; then
5303            CXXCPP="$CXXCPP $switch"
5304          fi
5305          ac_success=yes
5306          break
5307        fi
5308      done
5309      if test x$ac_success = xyes; then
5310        break
5311      fi
5312    done
5313  fi
5314  ac_ext=c
5315ac_cpp='$CPP $CPPFLAGS'
5316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318ac_compiler_gnu=$ac_cv_c_compiler_gnu
5319
5320  if test x$ax_cxx_compile_cxx14_required = xtrue; then
5321    if test x$ac_success = xno; then
5322      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5323    fi
5324  fi
5325  if test x$ac_success = xno; then
5326    HAVE_CXX14=0
5327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5328printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
5329  else
5330    HAVE_CXX14=1
5331
5332printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
5333
5334  fi
5335
5336
5337am__api_version='1.16'
5338
5339
5340  # Find a good install program.  We prefer a C program (faster),
5341# so one script is as good as another.  But avoid the broken or
5342# incompatible versions:
5343# SysV /etc/install, /usr/sbin/install
5344# SunOS /usr/etc/install
5345# IRIX /sbin/install
5346# AIX /bin/install
5347# AmigaOS /C/install, which installs bootblocks on floppy discs
5348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5351# OS/2's system install, which has a completely different semantic
5352# ./install, which can be erroneously created by make from ./install.sh.
5353# Reject install programs that cannot install multiple files.
5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5355printf %s "checking for a BSD-compatible install... " >&6; }
5356if test -z "$INSTALL"; then
5357if test ${ac_cv_path_install+y}
5358then :
5359  printf %s "(cached) " >&6
5360else $as_nop
5361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364  IFS=$as_save_IFS
5365  case $as_dir in #(((
5366    '') as_dir=./ ;;
5367    */) ;;
5368    *) as_dir=$as_dir/ ;;
5369  esac
5370    # Account for fact that we put trailing slashes in our PATH walk.
5371case $as_dir in #((
5372  ./ | /[cC]/* | \
5373  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5374  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5375  /usr/ucb/* ) ;;
5376  *)
5377    # OSF1 and SCO ODT 3.0 have their own names for install.
5378    # Don't use installbsd from OSF since it installs stuff as root
5379    # by default.
5380    for ac_prog in ginstall scoinst install; do
5381      for ac_exec_ext in '' $ac_executable_extensions; do
5382	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5383	  if test $ac_prog = install &&
5384	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5385	    # AIX install.  It has an incompatible calling convention.
5386	    :
5387	  elif test $ac_prog = install &&
5388	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389	    # program-specific install script used by HP pwplus--don't use.
5390	    :
5391	  else
5392	    rm -rf conftest.one conftest.two conftest.dir
5393	    echo one > conftest.one
5394	    echo two > conftest.two
5395	    mkdir conftest.dir
5396	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5397	      test -s conftest.one && test -s conftest.two &&
5398	      test -s conftest.dir/conftest.one &&
5399	      test -s conftest.dir/conftest.two
5400	    then
5401	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5402	      break 3
5403	    fi
5404	  fi
5405	fi
5406      done
5407    done
5408    ;;
5409esac
5410
5411  done
5412IFS=$as_save_IFS
5413
5414rm -rf conftest.one conftest.two conftest.dir
5415
5416fi
5417  if test ${ac_cv_path_install+y}; then
5418    INSTALL=$ac_cv_path_install
5419  else
5420    # As a last resort, use the slow shell script.  Don't cache a
5421    # value for INSTALL within a source directory, because that will
5422    # break other packages using the cache if that directory is
5423    # removed, or if the value is a relative name.
5424    INSTALL=$ac_install_sh
5425  fi
5426fi
5427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5428printf "%s\n" "$INSTALL" >&6; }
5429
5430# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5431# It thinks the first close brace ends the variable substitution.
5432test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5433
5434test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5435
5436test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5437
5438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5439printf %s "checking whether build environment is sane... " >&6; }
5440# Reject unsafe characters in $srcdir or the absolute working directory
5441# name.  Accept space and tab only in the latter.
5442am_lf='
5443'
5444case `pwd` in
5445  *[\\\"\#\$\&\'\`$am_lf]*)
5446    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5447esac
5448case $srcdir in
5449  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5450    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5451esac
5452
5453# Do 'set' in a subshell so we don't clobber the current shell's
5454# arguments.  Must try -L first in case configure is actually a
5455# symlink; some systems play weird games with the mod time of symlinks
5456# (eg FreeBSD returns the mod time of the symlink's containing
5457# directory).
5458if (
5459   am_has_slept=no
5460   for am_try in 1 2; do
5461     echo "timestamp, slept: $am_has_slept" > conftest.file
5462     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5463     if test "$*" = "X"; then
5464	# -L didn't work.
5465	set X `ls -t "$srcdir/configure" conftest.file`
5466     fi
5467     if test "$*" != "X $srcdir/configure conftest.file" \
5468	&& test "$*" != "X conftest.file $srcdir/configure"; then
5469
5470	# If neither matched, then we have a broken ls.  This can happen
5471	# if, for instance, CONFIG_SHELL is bash and it inherits a
5472	# broken ls alias from the environment.  This has actually
5473	# happened.  Such a system could not be considered "sane".
5474	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5475  alias in your environment" "$LINENO" 5
5476     fi
5477     if test "$2" = conftest.file || test $am_try -eq 2; then
5478       break
5479     fi
5480     # Just in case.
5481     sleep 1
5482     am_has_slept=yes
5483   done
5484   test "$2" = conftest.file
5485   )
5486then
5487   # Ok.
5488   :
5489else
5490   as_fn_error $? "newly created file is older than distributed files!
5491Check your system clock" "$LINENO" 5
5492fi
5493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494printf "%s\n" "yes" >&6; }
5495# If we didn't sleep, we still need to ensure time stamps of config.status and
5496# generated files are strictly newer.
5497am_sleep_pid=
5498if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5499  ( sleep 1 ) &
5500  am_sleep_pid=$!
5501fi
5502
5503rm -f conftest.file
5504
5505test "$program_prefix" != NONE &&
5506  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5507# Use a double $ so make ignores it.
5508test "$program_suffix" != NONE &&
5509  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5510# Double any \ or $.
5511# By default was `s,x,x', remove it if useless.
5512ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5513program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
5514
5515
5516  if test x"${MISSING+set}" != xset; then
5517  MISSING="\${SHELL} '$am_aux_dir/missing'"
5518fi
5519# Use eval to expand $SHELL
5520if eval "$MISSING --is-lightweight"; then
5521  am_missing_run="$MISSING "
5522else
5523  am_missing_run=
5524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5525printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5526fi
5527
5528if test x"${install_sh+set}" != xset; then
5529  case $am_aux_dir in
5530  *\ * | *\	*)
5531    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5532  *)
5533    install_sh="\${SHELL} $am_aux_dir/install-sh"
5534  esac
5535fi
5536
5537# Installed binaries are usually stripped using 'strip' when the user
5538# run "make install-strip".  However 'strip' might not be the right
5539# tool to use in cross-compilation environments, therefore Automake
5540# will honor the 'STRIP' environment variable to overrule this program.
5541if test "$cross_compiling" != no; then
5542  if test -n "$ac_tool_prefix"; then
5543  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5544set dummy ${ac_tool_prefix}strip; ac_word=$2
5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546printf %s "checking for $ac_word... " >&6; }
5547if test ${ac_cv_prog_STRIP+y}
5548then :
5549  printf %s "(cached) " >&6
5550else $as_nop
5551  if test -n "$STRIP"; then
5552  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  case $as_dir in #(((
5559    '') as_dir=./ ;;
5560    */) ;;
5561    *) as_dir=$as_dir/ ;;
5562  esac
5563    for ac_exec_ext in '' $ac_executable_extensions; do
5564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5567    break 2
5568  fi
5569done
5570  done
5571IFS=$as_save_IFS
5572
5573fi
5574fi
5575STRIP=$ac_cv_prog_STRIP
5576if test -n "$STRIP"; then
5577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5578printf "%s\n" "$STRIP" >&6; }
5579else
5580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581printf "%s\n" "no" >&6; }
5582fi
5583
5584
5585fi
5586if test -z "$ac_cv_prog_STRIP"; then
5587  ac_ct_STRIP=$STRIP
5588  # Extract the first word of "strip", so it can be a program name with args.
5589set dummy strip; ac_word=$2
5590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591printf %s "checking for $ac_word... " >&6; }
5592if test ${ac_cv_prog_ac_ct_STRIP+y}
5593then :
5594  printf %s "(cached) " >&6
5595else $as_nop
5596  if test -n "$ac_ct_STRIP"; then
5597  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  case $as_dir in #(((
5604    '') as_dir=./ ;;
5605    */) ;;
5606    *) as_dir=$as_dir/ ;;
5607  esac
5608    for ac_exec_ext in '' $ac_executable_extensions; do
5609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5610    ac_cv_prog_ac_ct_STRIP="strip"
5611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5612    break 2
5613  fi
5614done
5615  done
5616IFS=$as_save_IFS
5617
5618fi
5619fi
5620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5621if test -n "$ac_ct_STRIP"; then
5622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5623printf "%s\n" "$ac_ct_STRIP" >&6; }
5624else
5625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626printf "%s\n" "no" >&6; }
5627fi
5628
5629  if test "x$ac_ct_STRIP" = x; then
5630    STRIP=":"
5631  else
5632    case $cross_compiling:$ac_tool_warned in
5633yes:)
5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5636ac_tool_warned=yes ;;
5637esac
5638    STRIP=$ac_ct_STRIP
5639  fi
5640else
5641  STRIP="$ac_cv_prog_STRIP"
5642fi
5643
5644fi
5645INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5646
5647
5648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5649printf %s "checking for a race-free mkdir -p... " >&6; }
5650if test -z "$MKDIR_P"; then
5651  if test ${ac_cv_path_mkdir+y}
5652then :
5653  printf %s "(cached) " >&6
5654else $as_nop
5655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5657do
5658  IFS=$as_save_IFS
5659  case $as_dir in #(((
5660    '') as_dir=./ ;;
5661    */) ;;
5662    *) as_dir=$as_dir/ ;;
5663  esac
5664    for ac_prog in mkdir gmkdir; do
5665	 for ac_exec_ext in '' $ac_executable_extensions; do
5666	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5667	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5668	     'mkdir ('*'coreutils) '* | \
5669	     'BusyBox '* | \
5670	     'mkdir (fileutils) '4.1*)
5671	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5672	       break 3;;
5673	   esac
5674	 done
5675       done
5676  done
5677IFS=$as_save_IFS
5678
5679fi
5680
5681  test -d ./--version && rmdir ./--version
5682  if test ${ac_cv_path_mkdir+y}; then
5683    MKDIR_P="$ac_cv_path_mkdir -p"
5684  else
5685    # As a last resort, use the slow shell script.  Don't cache a
5686    # value for MKDIR_P within a source directory, because that will
5687    # break other packages using the cache if that directory is
5688    # removed, or if the value is a relative name.
5689    MKDIR_P="$ac_install_sh -d"
5690  fi
5691fi
5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5693printf "%s\n" "$MKDIR_P" >&6; }
5694
5695for ac_prog in gawk mawk nawk awk
5696do
5697  # Extract the first word of "$ac_prog", so it can be a program name with args.
5698set dummy $ac_prog; ac_word=$2
5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700printf %s "checking for $ac_word... " >&6; }
5701if test ${ac_cv_prog_AWK+y}
5702then :
5703  printf %s "(cached) " >&6
5704else $as_nop
5705  if test -n "$AWK"; then
5706  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  case $as_dir in #(((
5713    '') as_dir=./ ;;
5714    */) ;;
5715    *) as_dir=$as_dir/ ;;
5716  esac
5717    for ac_exec_ext in '' $ac_executable_extensions; do
5718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5719    ac_cv_prog_AWK="$ac_prog"
5720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724  done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729AWK=$ac_cv_prog_AWK
5730if test -n "$AWK"; then
5731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5732printf "%s\n" "$AWK" >&6; }
5733else
5734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735printf "%s\n" "no" >&6; }
5736fi
5737
5738
5739  test -n "$AWK" && break
5740done
5741
5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5743printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5744set x ${MAKE-make}
5745ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5746if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5747then :
5748  printf %s "(cached) " >&6
5749else $as_nop
5750  cat >conftest.make <<\_ACEOF
5751SHELL = /bin/sh
5752all:
5753	@echo '@@@%%%=$(MAKE)=@@@%%%'
5754_ACEOF
5755# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5756case `${MAKE-make} -f conftest.make 2>/dev/null` in
5757  *@@@%%%=?*=@@@%%%*)
5758    eval ac_cv_prog_make_${ac_make}_set=yes;;
5759  *)
5760    eval ac_cv_prog_make_${ac_make}_set=no;;
5761esac
5762rm -f conftest.make
5763fi
5764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766printf "%s\n" "yes" >&6; }
5767  SET_MAKE=
5768else
5769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770printf "%s\n" "no" >&6; }
5771  SET_MAKE="MAKE=${MAKE-make}"
5772fi
5773
5774rm -rf .tst 2>/dev/null
5775mkdir .tst 2>/dev/null
5776if test -d .tst; then
5777  am__leading_dot=.
5778else
5779  am__leading_dot=_
5780fi
5781rmdir .tst 2>/dev/null
5782
5783DEPDIR="${am__leading_dot}deps"
5784
5785ac_config_commands="$ac_config_commands depfiles"
5786
5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5788printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5789cat > confinc.mk << 'END'
5790am__doit:
5791	@echo this is the am__doit target >confinc.out
5792.PHONY: am__doit
5793END
5794am__include="#"
5795am__quote=
5796# BSD make does it like this.
5797echo '.include "confinc.mk" # ignored' > confmf.BSD
5798# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5799echo 'include confinc.mk # ignored' > confmf.GNU
5800_am_result=no
5801for s in GNU BSD; do
5802  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5803   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }
5807  case $?:`cat confinc.out 2>/dev/null` in #(
5808  '0:this is the am__doit target') :
5809    case $s in #(
5810  BSD) :
5811    am__include='.include' am__quote='"' ;; #(
5812  *) :
5813    am__include='include' am__quote='' ;;
5814esac ;; #(
5815  *) :
5816     ;;
5817esac
5818  if test "$am__include" != "#"; then
5819    _am_result="yes ($s style)"
5820    break
5821  fi
5822done
5823rm -f confinc.* confmf.*
5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5825printf "%s\n" "${_am_result}" >&6; }
5826
5827# Check whether --enable-dependency-tracking was given.
5828if test ${enable_dependency_tracking+y}
5829then :
5830  enableval=$enable_dependency_tracking;
5831fi
5832
5833if test "x$enable_dependency_tracking" != xno; then
5834  am_depcomp="$ac_aux_dir/depcomp"
5835  AMDEPBACKSLASH='\'
5836  am__nodep='_no'
5837fi
5838 if test "x$enable_dependency_tracking" != xno; then
5839  AMDEP_TRUE=
5840  AMDEP_FALSE='#'
5841else
5842  AMDEP_TRUE='#'
5843  AMDEP_FALSE=
5844fi
5845
5846
5847# Check whether --enable-silent-rules was given.
5848if test ${enable_silent_rules+y}
5849then :
5850  enableval=$enable_silent_rules;
5851fi
5852
5853case $enable_silent_rules in # (((
5854  yes) AM_DEFAULT_VERBOSITY=0;;
5855   no) AM_DEFAULT_VERBOSITY=1;;
5856    *) AM_DEFAULT_VERBOSITY=1;;
5857esac
5858am_make=${MAKE-make}
5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5860printf %s "checking whether $am_make supports nested variables... " >&6; }
5861if test ${am_cv_make_support_nested_variables+y}
5862then :
5863  printf %s "(cached) " >&6
5864else $as_nop
5865  if printf "%s\n" 'TRUE=$(BAR$(V))
5866BAR0=false
5867BAR1=true
5868V=1
5869am__doit:
5870	@$(TRUE)
5871.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5872  am_cv_make_support_nested_variables=yes
5873else
5874  am_cv_make_support_nested_variables=no
5875fi
5876fi
5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5878printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5879if test $am_cv_make_support_nested_variables = yes; then
5880    AM_V='$(V)'
5881  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5882else
5883  AM_V=$AM_DEFAULT_VERBOSITY
5884  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5885fi
5886AM_BACKSLASH='\'
5887
5888if test "`cd $srcdir && pwd`" != "`pwd`"; then
5889  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5890  # is not polluted with repeated "-I."
5891  am__isrc=' -I$(srcdir)'
5892  # test to see if srcdir already configured
5893  if test -f $srcdir/config.status; then
5894    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5895  fi
5896fi
5897
5898# test whether we have cygpath
5899if test -z "$CYGPATH_W"; then
5900  if (cygpath --version) >/dev/null 2>/dev/null; then
5901    CYGPATH_W='cygpath -w'
5902  else
5903    CYGPATH_W=echo
5904  fi
5905fi
5906
5907
5908# Define the identity of the package.
5909 PACKAGE='c-ares'
5910 VERSION='1.27.0'
5911
5912
5913printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5914
5915
5916printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5917
5918# Some tools Automake needs.
5919
5920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5921
5922
5923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5924
5925
5926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5927
5928
5929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5930
5931
5932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5933
5934# For better backward compatibility.  To be removed once Automake 1.9.x
5935# dies out for good.  For more background, see:
5936# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5937# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5938mkdir_p='$(MKDIR_P)'
5939
5940# We need awk for the "check" target (and possibly the TAP driver).  The
5941# system "awk" is bad on some platforms.
5942# Always define AMTAR for backward compatibility.  Yes, it's still used
5943# in the wild :-(  We should find a proper way to deprecate it ...
5944AMTAR='$${TAR-tar}'
5945
5946
5947# We'll loop over all known methods to create a tar archive until one works.
5948_am_tools='gnutar  pax cpio none'
5949
5950am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5951
5952
5953
5954
5955
5956depcc="$CC"   am_compiler_list=
5957
5958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5959printf %s "checking dependency style of $depcc... " >&6; }
5960if test ${am_cv_CC_dependencies_compiler_type+y}
5961then :
5962  printf %s "(cached) " >&6
5963else $as_nop
5964  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5965  # We make a subdir and do the tests there.  Otherwise we can end up
5966  # making bogus files that we don't know about and never remove.  For
5967  # instance it was reported that on HP-UX the gcc test will end up
5968  # making a dummy file named 'D' -- because '-MD' means "put the output
5969  # in D".
5970  rm -rf conftest.dir
5971  mkdir conftest.dir
5972  # Copy depcomp to subdir because otherwise we won't find it if we're
5973  # using a relative directory.
5974  cp "$am_depcomp" conftest.dir
5975  cd conftest.dir
5976  # We will build objects and dependencies in a subdirectory because
5977  # it helps to detect inapplicable dependency modes.  For instance
5978  # both Tru64's cc and ICC support -MD to output dependencies as a
5979  # side effect of compilation, but ICC will put the dependencies in
5980  # the current directory while Tru64 will put them in the object
5981  # directory.
5982  mkdir sub
5983
5984  am_cv_CC_dependencies_compiler_type=none
5985  if test "$am_compiler_list" = ""; then
5986     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5987  fi
5988  am__universal=false
5989  case " $depcc " in #(
5990     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5991     esac
5992
5993  for depmode in $am_compiler_list; do
5994    # Setup a source with many dependencies, because some compilers
5995    # like to wrap large dependency lists on column 80 (with \), and
5996    # we should not choose a depcomp mode which is confused by this.
5997    #
5998    # We need to recreate these files for each test, as the compiler may
5999    # overwrite some of them when testing with obscure command lines.
6000    # This happens at least with the AIX C compiler.
6001    : > sub/conftest.c
6002    for i in 1 2 3 4 5 6; do
6003      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6004      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6005      # Solaris 10 /bin/sh.
6006      echo '/* dummy */' > sub/conftst$i.h
6007    done
6008    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009
6010    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6011    # mode.  It turns out that the SunPro C++ compiler does not properly
6012    # handle '-M -o', and we need to detect this.  Also, some Intel
6013    # versions had trouble with output in subdirs.
6014    am__obj=sub/conftest.${OBJEXT-o}
6015    am__minus_obj="-o $am__obj"
6016    case $depmode in
6017    gcc)
6018      # This depmode causes a compiler race in universal mode.
6019      test "$am__universal" = false || continue
6020      ;;
6021    nosideeffect)
6022      # After this tag, mechanisms are not by side-effect, so they'll
6023      # only be used when explicitly requested.
6024      if test "x$enable_dependency_tracking" = xyes; then
6025	continue
6026      else
6027	break
6028      fi
6029      ;;
6030    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6031      # This compiler won't grok '-c -o', but also, the minuso test has
6032      # not run yet.  These depmodes are late enough in the game, and
6033      # so weak that their functioning should not be impacted.
6034      am__obj=conftest.${OBJEXT-o}
6035      am__minus_obj=
6036      ;;
6037    none) break ;;
6038    esac
6039    if depmode=$depmode \
6040       source=sub/conftest.c object=$am__obj \
6041       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6042       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6043         >/dev/null 2>conftest.err &&
6044       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6045       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6046       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6047       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6048      # icc doesn't choke on unknown options, it will just issue warnings
6049      # or remarks (even with -Werror).  So we grep stderr for any message
6050      # that says an option was ignored or not supported.
6051      # When given -MP, icc 7.0 and 7.1 complain thusly:
6052      #   icc: Command line warning: ignoring option '-M'; no argument required
6053      # The diagnosis changed in icc 8.0:
6054      #   icc: Command line remark: option '-MP' not supported
6055      if (grep 'ignoring option' conftest.err ||
6056          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6057        am_cv_CC_dependencies_compiler_type=$depmode
6058        break
6059      fi
6060    fi
6061  done
6062
6063  cd ..
6064  rm -rf conftest.dir
6065else
6066  am_cv_CC_dependencies_compiler_type=none
6067fi
6068
6069fi
6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6071printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6072CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6073
6074 if
6075  test "x$enable_dependency_tracking" != xno \
6076  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6077  am__fastdepCC_TRUE=
6078  am__fastdepCC_FALSE='#'
6079else
6080  am__fastdepCC_TRUE='#'
6081  am__fastdepCC_FALSE=
6082fi
6083
6084
6085depcc="$CXX"  am_compiler_list=
6086
6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6088printf %s "checking dependency style of $depcc... " >&6; }
6089if test ${am_cv_CXX_dependencies_compiler_type+y}
6090then :
6091  printf %s "(cached) " >&6
6092else $as_nop
6093  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6094  # We make a subdir and do the tests there.  Otherwise we can end up
6095  # making bogus files that we don't know about and never remove.  For
6096  # instance it was reported that on HP-UX the gcc test will end up
6097  # making a dummy file named 'D' -- because '-MD' means "put the output
6098  # in D".
6099  rm -rf conftest.dir
6100  mkdir conftest.dir
6101  # Copy depcomp to subdir because otherwise we won't find it if we're
6102  # using a relative directory.
6103  cp "$am_depcomp" conftest.dir
6104  cd conftest.dir
6105  # We will build objects and dependencies in a subdirectory because
6106  # it helps to detect inapplicable dependency modes.  For instance
6107  # both Tru64's cc and ICC support -MD to output dependencies as a
6108  # side effect of compilation, but ICC will put the dependencies in
6109  # the current directory while Tru64 will put them in the object
6110  # directory.
6111  mkdir sub
6112
6113  am_cv_CXX_dependencies_compiler_type=none
6114  if test "$am_compiler_list" = ""; then
6115     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6116  fi
6117  am__universal=false
6118  case " $depcc " in #(
6119     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6120     esac
6121
6122  for depmode in $am_compiler_list; do
6123    # Setup a source with many dependencies, because some compilers
6124    # like to wrap large dependency lists on column 80 (with \), and
6125    # we should not choose a depcomp mode which is confused by this.
6126    #
6127    # We need to recreate these files for each test, as the compiler may
6128    # overwrite some of them when testing with obscure command lines.
6129    # This happens at least with the AIX C compiler.
6130    : > sub/conftest.c
6131    for i in 1 2 3 4 5 6; do
6132      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6133      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6134      # Solaris 10 /bin/sh.
6135      echo '/* dummy */' > sub/conftst$i.h
6136    done
6137    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6138
6139    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6140    # mode.  It turns out that the SunPro C++ compiler does not properly
6141    # handle '-M -o', and we need to detect this.  Also, some Intel
6142    # versions had trouble with output in subdirs.
6143    am__obj=sub/conftest.${OBJEXT-o}
6144    am__minus_obj="-o $am__obj"
6145    case $depmode in
6146    gcc)
6147      # This depmode causes a compiler race in universal mode.
6148      test "$am__universal" = false || continue
6149      ;;
6150    nosideeffect)
6151      # After this tag, mechanisms are not by side-effect, so they'll
6152      # only be used when explicitly requested.
6153      if test "x$enable_dependency_tracking" = xyes; then
6154	continue
6155      else
6156	break
6157      fi
6158      ;;
6159    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6160      # This compiler won't grok '-c -o', but also, the minuso test has
6161      # not run yet.  These depmodes are late enough in the game, and
6162      # so weak that their functioning should not be impacted.
6163      am__obj=conftest.${OBJEXT-o}
6164      am__minus_obj=
6165      ;;
6166    none) break ;;
6167    esac
6168    if depmode=$depmode \
6169       source=sub/conftest.c object=$am__obj \
6170       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6171       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6172         >/dev/null 2>conftest.err &&
6173       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6174       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6175       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6176       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6177      # icc doesn't choke on unknown options, it will just issue warnings
6178      # or remarks (even with -Werror).  So we grep stderr for any message
6179      # that says an option was ignored or not supported.
6180      # When given -MP, icc 7.0 and 7.1 complain thusly:
6181      #   icc: Command line warning: ignoring option '-M'; no argument required
6182      # The diagnosis changed in icc 8.0:
6183      #   icc: Command line remark: option '-MP' not supported
6184      if (grep 'ignoring option' conftest.err ||
6185          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6186        am_cv_CXX_dependencies_compiler_type=$depmode
6187        break
6188      fi
6189    fi
6190  done
6191
6192  cd ..
6193  rm -rf conftest.dir
6194else
6195  am_cv_CXX_dependencies_compiler_type=none
6196fi
6197
6198fi
6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6200printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6201CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6202
6203 if
6204  test "x$enable_dependency_tracking" != xno \
6205  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6206  am__fastdepCXX_TRUE=
6207  am__fastdepCXX_FALSE='#'
6208else
6209  am__fastdepCXX_TRUE='#'
6210  am__fastdepCXX_FALSE=
6211fi
6212
6213
6214# Variables for tags utilities; see am/tags.am
6215if test -z "$CTAGS"; then
6216  CTAGS=ctags
6217fi
6218
6219if test -z "$ETAGS"; then
6220  ETAGS=etags
6221fi
6222
6223if test -z "$CSCOPE"; then
6224  CSCOPE=cscope
6225fi
6226
6227
6228
6229# POSIX will say in a future version that running "rm -f" with no argument
6230# is OK; and we want to be able to make that assumption in our Makefile
6231# recipes.  So use an aggressive probe to check that the usage we want is
6232# actually supported "in the wild" to an acceptable degree.
6233# See automake bug#10828.
6234# To make any issue more visible, cause the running configure to be aborted
6235# by default if the 'rm' program in use doesn't match our expectations; the
6236# user can still override this though.
6237if rm -f && rm -fr && rm -rf; then : OK; else
6238  cat >&2 <<'END'
6239Oops!
6240
6241Your 'rm' program seems unable to run without file operands specified
6242on the command line, even when the '-f' option is present.  This is contrary
6243to the behaviour of most rm programs out there, and not conforming with
6244the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6245
6246Please tell bug-automake@gnu.org about your system, including the value
6247of your $PATH and any error possibly output before this message.  This
6248can help us improve future automake versions.
6249
6250END
6251  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6252    echo 'Configuration will proceed anyway, since you have set the' >&2
6253    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6254    echo >&2
6255  else
6256    cat >&2 <<'END'
6257Aborting the configuration process, to ensure you take notice of the issue.
6258
6259You can download and install GNU coreutils to get an 'rm' implementation
6260that behaves properly: <https://www.gnu.org/software/coreutils/>.
6261
6262If you want to complete the configuration process using your problematic
6263'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6264to "yes", and re-run configure.
6265
6266END
6267    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6268  fi
6269fi
6270
6271case `pwd` in
6272  *\ * | *\	*)
6273    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6274printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6275esac
6276
6277
6278
6279macro_version='2.4.7'
6280macro_revision='2.4.7'
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295ltmain=$ac_aux_dir/ltmain.sh
6296
6297
6298
6299  # Make sure we can run config.sub.
6300$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6301  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6302
6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6304printf %s "checking build system type... " >&6; }
6305if test ${ac_cv_build+y}
6306then :
6307  printf %s "(cached) " >&6
6308else $as_nop
6309  ac_build_alias=$build_alias
6310test "x$ac_build_alias" = x &&
6311  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6312test "x$ac_build_alias" = x &&
6313  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6314ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6315  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6316
6317fi
6318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6319printf "%s\n" "$ac_cv_build" >&6; }
6320case $ac_cv_build in
6321*-*-*) ;;
6322*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6323esac
6324build=$ac_cv_build
6325ac_save_IFS=$IFS; IFS='-'
6326set x $ac_cv_build
6327shift
6328build_cpu=$1
6329build_vendor=$2
6330shift; shift
6331# Remember, the first character of IFS is used to create $*,
6332# except with old shells:
6333build_os=$*
6334IFS=$ac_save_IFS
6335case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6336
6337
6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6339printf %s "checking host system type... " >&6; }
6340if test ${ac_cv_host+y}
6341then :
6342  printf %s "(cached) " >&6
6343else $as_nop
6344  if test "x$host_alias" = x; then
6345  ac_cv_host=$ac_cv_build
6346else
6347  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6348    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6349fi
6350
6351fi
6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6353printf "%s\n" "$ac_cv_host" >&6; }
6354case $ac_cv_host in
6355*-*-*) ;;
6356*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6357esac
6358host=$ac_cv_host
6359ac_save_IFS=$IFS; IFS='-'
6360set x $ac_cv_host
6361shift
6362host_cpu=$1
6363host_vendor=$2
6364shift; shift
6365# Remember, the first character of IFS is used to create $*,
6366# except with old shells:
6367host_os=$*
6368IFS=$ac_save_IFS
6369case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6370
6371
6372# Backslashify metacharacters that are still active within
6373# double-quoted strings.
6374sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6375
6376# Same as above, but do not quote variable references.
6377double_quote_subst='s/\(["`\\]\)/\\\1/g'
6378
6379# Sed substitution to delay expansion of an escaped shell variable in a
6380# double_quote_subst'ed string.
6381delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6382
6383# Sed substitution to delay expansion of an escaped single quote.
6384delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6385
6386# Sed substitution to avoid accidental globbing in evaled expressions
6387no_glob_subst='s/\*/\\\*/g'
6388
6389ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6390ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6391ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6392
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6394printf %s "checking how to print strings... " >&6; }
6395# Test print first, because it will be a builtin if present.
6396if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6397   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6398  ECHO='print -r --'
6399elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6400  ECHO='printf %s\n'
6401else
6402  # Use this function as a fallback that always works.
6403  func_fallback_echo ()
6404  {
6405    eval 'cat <<_LTECHO_EOF
6406$1
6407_LTECHO_EOF'
6408  }
6409  ECHO='func_fallback_echo'
6410fi
6411
6412# func_echo_all arg...
6413# Invoke $ECHO with all args, space-separated.
6414func_echo_all ()
6415{
6416    $ECHO ""
6417}
6418
6419case $ECHO in
6420  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6421printf "%s\n" "printf" >&6; } ;;
6422  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6423printf "%s\n" "print -r" >&6; } ;;
6424  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6425printf "%s\n" "cat" >&6; } ;;
6426esac
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6442printf %s "checking for a sed that does not truncate output... " >&6; }
6443if test ${ac_cv_path_SED+y}
6444then :
6445  printf %s "(cached) " >&6
6446else $as_nop
6447            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6448     for ac_i in 1 2 3 4 5 6 7; do
6449       ac_script="$ac_script$as_nl$ac_script"
6450     done
6451     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6452     { ac_script=; unset ac_script;}
6453     if test -z "$SED"; then
6454  ac_path_SED_found=false
6455  # Loop through the user's path and test for each of PROGNAME-LIST
6456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  case $as_dir in #(((
6461    '') as_dir=./ ;;
6462    */) ;;
6463    *) as_dir=$as_dir/ ;;
6464  esac
6465    for ac_prog in sed gsed
6466   do
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6469      as_fn_executable_p "$ac_path_SED" || continue
6470# Check for GNU ac_path_SED and select it if it is found.
6471  # Check for GNU $ac_path_SED
6472case `"$ac_path_SED" --version 2>&1` in
6473*GNU*)
6474  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6475*)
6476  ac_count=0
6477  printf %s 0123456789 >"conftest.in"
6478  while :
6479  do
6480    cat "conftest.in" "conftest.in" >"conftest.tmp"
6481    mv "conftest.tmp" "conftest.in"
6482    cp "conftest.in" "conftest.nl"
6483    printf "%s\n" '' >> "conftest.nl"
6484    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6485    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6486    as_fn_arith $ac_count + 1 && ac_count=$as_val
6487    if test $ac_count -gt ${ac_path_SED_max-0}; then
6488      # Best one so far, save it but keep looking for a better one
6489      ac_cv_path_SED="$ac_path_SED"
6490      ac_path_SED_max=$ac_count
6491    fi
6492    # 10*(2^10) chars as input seems more than enough
6493    test $ac_count -gt 10 && break
6494  done
6495  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6496esac
6497
6498      $ac_path_SED_found && break 3
6499    done
6500  done
6501  done
6502IFS=$as_save_IFS
6503  if test -z "$ac_cv_path_SED"; then
6504    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6505  fi
6506else
6507  ac_cv_path_SED=$SED
6508fi
6509
6510fi
6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6512printf "%s\n" "$ac_cv_path_SED" >&6; }
6513 SED="$ac_cv_path_SED"
6514  rm -f conftest.sed
6515
6516test -z "$SED" && SED=sed
6517Xsed="$SED -e 1s/^X//"
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6530printf %s "checking for grep that handles long lines and -e... " >&6; }
6531if test ${ac_cv_path_GREP+y}
6532then :
6533  printf %s "(cached) " >&6
6534else $as_nop
6535  if test -z "$GREP"; then
6536  ac_path_GREP_found=false
6537  # Loop through the user's path and test for each of PROGNAME-LIST
6538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6540do
6541  IFS=$as_save_IFS
6542  case $as_dir in #(((
6543    '') as_dir=./ ;;
6544    */) ;;
6545    *) as_dir=$as_dir/ ;;
6546  esac
6547    for ac_prog in grep ggrep
6548   do
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6551      as_fn_executable_p "$ac_path_GREP" || continue
6552# Check for GNU ac_path_GREP and select it if it is found.
6553  # Check for GNU $ac_path_GREP
6554case `"$ac_path_GREP" --version 2>&1` in
6555*GNU*)
6556  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6557*)
6558  ac_count=0
6559  printf %s 0123456789 >"conftest.in"
6560  while :
6561  do
6562    cat "conftest.in" "conftest.in" >"conftest.tmp"
6563    mv "conftest.tmp" "conftest.in"
6564    cp "conftest.in" "conftest.nl"
6565    printf "%s\n" 'GREP' >> "conftest.nl"
6566    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6567    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6568    as_fn_arith $ac_count + 1 && ac_count=$as_val
6569    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6570      # Best one so far, save it but keep looking for a better one
6571      ac_cv_path_GREP="$ac_path_GREP"
6572      ac_path_GREP_max=$ac_count
6573    fi
6574    # 10*(2^10) chars as input seems more than enough
6575    test $ac_count -gt 10 && break
6576  done
6577  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6578esac
6579
6580      $ac_path_GREP_found && break 3
6581    done
6582  done
6583  done
6584IFS=$as_save_IFS
6585  if test -z "$ac_cv_path_GREP"; then
6586    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6587  fi
6588else
6589  ac_cv_path_GREP=$GREP
6590fi
6591
6592fi
6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6594printf "%s\n" "$ac_cv_path_GREP" >&6; }
6595 GREP="$ac_cv_path_GREP"
6596
6597
6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6599printf %s "checking for egrep... " >&6; }
6600if test ${ac_cv_path_EGREP+y}
6601then :
6602  printf %s "(cached) " >&6
6603else $as_nop
6604  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6605   then ac_cv_path_EGREP="$GREP -E"
6606   else
6607     if test -z "$EGREP"; then
6608  ac_path_EGREP_found=false
6609  # Loop through the user's path and test for each of PROGNAME-LIST
6610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6612do
6613  IFS=$as_save_IFS
6614  case $as_dir in #(((
6615    '') as_dir=./ ;;
6616    */) ;;
6617    *) as_dir=$as_dir/ ;;
6618  esac
6619    for ac_prog in egrep
6620   do
6621    for ac_exec_ext in '' $ac_executable_extensions; do
6622      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6623      as_fn_executable_p "$ac_path_EGREP" || continue
6624# Check for GNU ac_path_EGREP and select it if it is found.
6625  # Check for GNU $ac_path_EGREP
6626case `"$ac_path_EGREP" --version 2>&1` in
6627*GNU*)
6628  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6629*)
6630  ac_count=0
6631  printf %s 0123456789 >"conftest.in"
6632  while :
6633  do
6634    cat "conftest.in" "conftest.in" >"conftest.tmp"
6635    mv "conftest.tmp" "conftest.in"
6636    cp "conftest.in" "conftest.nl"
6637    printf "%s\n" 'EGREP' >> "conftest.nl"
6638    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6639    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6640    as_fn_arith $ac_count + 1 && ac_count=$as_val
6641    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6642      # Best one so far, save it but keep looking for a better one
6643      ac_cv_path_EGREP="$ac_path_EGREP"
6644      ac_path_EGREP_max=$ac_count
6645    fi
6646    # 10*(2^10) chars as input seems more than enough
6647    test $ac_count -gt 10 && break
6648  done
6649  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6650esac
6651
6652      $ac_path_EGREP_found && break 3
6653    done
6654  done
6655  done
6656IFS=$as_save_IFS
6657  if test -z "$ac_cv_path_EGREP"; then
6658    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6659  fi
6660else
6661  ac_cv_path_EGREP=$EGREP
6662fi
6663
6664   fi
6665fi
6666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6667printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6668 EGREP="$ac_cv_path_EGREP"
6669
6670
6671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6672printf %s "checking for fgrep... " >&6; }
6673if test ${ac_cv_path_FGREP+y}
6674then :
6675  printf %s "(cached) " >&6
6676else $as_nop
6677  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6678   then ac_cv_path_FGREP="$GREP -F"
6679   else
6680     if test -z "$FGREP"; then
6681  ac_path_FGREP_found=false
6682  # Loop through the user's path and test for each of PROGNAME-LIST
6683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6685do
6686  IFS=$as_save_IFS
6687  case $as_dir in #(((
6688    '') as_dir=./ ;;
6689    */) ;;
6690    *) as_dir=$as_dir/ ;;
6691  esac
6692    for ac_prog in fgrep
6693   do
6694    for ac_exec_ext in '' $ac_executable_extensions; do
6695      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6696      as_fn_executable_p "$ac_path_FGREP" || continue
6697# Check for GNU ac_path_FGREP and select it if it is found.
6698  # Check for GNU $ac_path_FGREP
6699case `"$ac_path_FGREP" --version 2>&1` in
6700*GNU*)
6701  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6702*)
6703  ac_count=0
6704  printf %s 0123456789 >"conftest.in"
6705  while :
6706  do
6707    cat "conftest.in" "conftest.in" >"conftest.tmp"
6708    mv "conftest.tmp" "conftest.in"
6709    cp "conftest.in" "conftest.nl"
6710    printf "%s\n" 'FGREP' >> "conftest.nl"
6711    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6713    as_fn_arith $ac_count + 1 && ac_count=$as_val
6714    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6715      # Best one so far, save it but keep looking for a better one
6716      ac_cv_path_FGREP="$ac_path_FGREP"
6717      ac_path_FGREP_max=$ac_count
6718    fi
6719    # 10*(2^10) chars as input seems more than enough
6720    test $ac_count -gt 10 && break
6721  done
6722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6723esac
6724
6725      $ac_path_FGREP_found && break 3
6726    done
6727  done
6728  done
6729IFS=$as_save_IFS
6730  if test -z "$ac_cv_path_FGREP"; then
6731    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6732  fi
6733else
6734  ac_cv_path_FGREP=$FGREP
6735fi
6736
6737   fi
6738fi
6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6740printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6741 FGREP="$ac_cv_path_FGREP"
6742
6743
6744test -z "$GREP" && GREP=grep
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764# Check whether --with-gnu-ld was given.
6765if test ${with_gnu_ld+y}
6766then :
6767  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6768else $as_nop
6769  with_gnu_ld=no
6770fi
6771
6772ac_prog=ld
6773if test yes = "$GCC"; then
6774  # Check if gcc -print-prog-name=ld gives a path.
6775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6776printf %s "checking for ld used by $CC... " >&6; }
6777  case $host in
6778  *-*-mingw*)
6779    # gcc leaves a trailing carriage return, which upsets mingw
6780    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6781  *)
6782    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6783  esac
6784  case $ac_prog in
6785    # Accept absolute paths.
6786    [\\/]* | ?:[\\/]*)
6787      re_direlt='/[^/][^/]*/\.\./'
6788      # Canonicalize the pathname of ld
6789      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6790      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6791	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6792      done
6793      test -z "$LD" && LD=$ac_prog
6794      ;;
6795  "")
6796    # If it fails, then pretend we aren't using GCC.
6797    ac_prog=ld
6798    ;;
6799  *)
6800    # If it is relative, then search for the first ld in PATH.
6801    with_gnu_ld=unknown
6802    ;;
6803  esac
6804elif test yes = "$with_gnu_ld"; then
6805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6806printf %s "checking for GNU ld... " >&6; }
6807else
6808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6809printf %s "checking for non-GNU ld... " >&6; }
6810fi
6811if test ${lt_cv_path_LD+y}
6812then :
6813  printf %s "(cached) " >&6
6814else $as_nop
6815  if test -z "$LD"; then
6816  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6817  for ac_dir in $PATH; do
6818    IFS=$lt_save_ifs
6819    test -z "$ac_dir" && ac_dir=.
6820    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6821      lt_cv_path_LD=$ac_dir/$ac_prog
6822      # Check to see if the program is GNU ld.  I'd rather use --version,
6823      # but apparently some variants of GNU ld only accept -v.
6824      # Break only if it was the GNU/non-GNU ld that we prefer.
6825      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6826      *GNU* | *'with BFD'*)
6827	test no != "$with_gnu_ld" && break
6828	;;
6829      *)
6830	test yes != "$with_gnu_ld" && break
6831	;;
6832      esac
6833    fi
6834  done
6835  IFS=$lt_save_ifs
6836else
6837  lt_cv_path_LD=$LD # Let the user override the test with a path.
6838fi
6839fi
6840
6841LD=$lt_cv_path_LD
6842if test -n "$LD"; then
6843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6844printf "%s\n" "$LD" >&6; }
6845else
6846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847printf "%s\n" "no" >&6; }
6848fi
6849test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6851printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6852if test ${lt_cv_prog_gnu_ld+y}
6853then :
6854  printf %s "(cached) " >&6
6855else $as_nop
6856  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6857case `$LD -v 2>&1 </dev/null` in
6858*GNU* | *'with BFD'*)
6859  lt_cv_prog_gnu_ld=yes
6860  ;;
6861*)
6862  lt_cv_prog_gnu_ld=no
6863  ;;
6864esac
6865fi
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6867printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6868with_gnu_ld=$lt_cv_prog_gnu_ld
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6879printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6880if test ${lt_cv_path_NM+y}
6881then :
6882  printf %s "(cached) " >&6
6883else $as_nop
6884  if test -n "$NM"; then
6885  # Let the user override the test.
6886  lt_cv_path_NM=$NM
6887else
6888  lt_nm_to_check=${ac_tool_prefix}nm
6889  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6890    lt_nm_to_check="$lt_nm_to_check nm"
6891  fi
6892  for lt_tmp_nm in $lt_nm_to_check; do
6893    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6894    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6895      IFS=$lt_save_ifs
6896      test -z "$ac_dir" && ac_dir=.
6897      tmp_nm=$ac_dir/$lt_tmp_nm
6898      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6899	# Check to see if the nm accepts a BSD-compat flag.
6900	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6901	#   nm: unknown option "B" ignored
6902	# Tru64's nm complains that /dev/null is an invalid object file
6903	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6904	case $build_os in
6905	mingw*) lt_bad_file=conftest.nm/nofile ;;
6906	*) lt_bad_file=/dev/null ;;
6907	esac
6908	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6909	*$lt_bad_file* | *'Invalid file or object type'*)
6910	  lt_cv_path_NM="$tmp_nm -B"
6911	  break 2
6912	  ;;
6913	*)
6914	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6915	  */dev/null*)
6916	    lt_cv_path_NM="$tmp_nm -p"
6917	    break 2
6918	    ;;
6919	  *)
6920	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6921	    continue # so that we can try to find one that supports BSD flags
6922	    ;;
6923	  esac
6924	  ;;
6925	esac
6926      fi
6927    done
6928    IFS=$lt_save_ifs
6929  done
6930  : ${lt_cv_path_NM=no}
6931fi
6932fi
6933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6934printf "%s\n" "$lt_cv_path_NM" >&6; }
6935if test no != "$lt_cv_path_NM"; then
6936  NM=$lt_cv_path_NM
6937else
6938  # Didn't find any BSD compatible name lister, look for dumpbin.
6939  if test -n "$DUMPBIN"; then :
6940    # Let the user override the test.
6941  else
6942    if test -n "$ac_tool_prefix"; then
6943  for ac_prog in dumpbin "link -dump"
6944  do
6945    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948printf %s "checking for $ac_word... " >&6; }
6949if test ${ac_cv_prog_DUMPBIN+y}
6950then :
6951  printf %s "(cached) " >&6
6952else $as_nop
6953  if test -n "$DUMPBIN"; then
6954  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  case $as_dir in #(((
6961    '') as_dir=./ ;;
6962    */) ;;
6963    *) as_dir=$as_dir/ ;;
6964  esac
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977DUMPBIN=$ac_cv_prog_DUMPBIN
6978if test -n "$DUMPBIN"; then
6979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6980printf "%s\n" "$DUMPBIN" >&6; }
6981else
6982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983printf "%s\n" "no" >&6; }
6984fi
6985
6986
6987    test -n "$DUMPBIN" && break
6988  done
6989fi
6990if test -z "$DUMPBIN"; then
6991  ac_ct_DUMPBIN=$DUMPBIN
6992  for ac_prog in dumpbin "link -dump"
6993do
6994  # Extract the first word of "$ac_prog", so it can be a program name with args.
6995set dummy $ac_prog; ac_word=$2
6996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997printf %s "checking for $ac_word... " >&6; }
6998if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6999then :
7000  printf %s "(cached) " >&6
7001else $as_nop
7002  if test -n "$ac_ct_DUMPBIN"; then
7003  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  case $as_dir in #(((
7010    '') as_dir=./ ;;
7011    */) ;;
7012    *) as_dir=$as_dir/ ;;
7013  esac
7014    for ac_exec_ext in '' $ac_executable_extensions; do
7015  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7016    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7017    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7018    break 2
7019  fi
7020done
7021  done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
7026ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7027if test -n "$ac_ct_DUMPBIN"; then
7028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7029printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7030else
7031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032printf "%s\n" "no" >&6; }
7033fi
7034
7035
7036  test -n "$ac_ct_DUMPBIN" && break
7037done
7038
7039  if test "x$ac_ct_DUMPBIN" = x; then
7040    DUMPBIN=":"
7041  else
7042    case $cross_compiling:$ac_tool_warned in
7043yes:)
7044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046ac_tool_warned=yes ;;
7047esac
7048    DUMPBIN=$ac_ct_DUMPBIN
7049  fi
7050fi
7051
7052    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7053    *COFF*)
7054      DUMPBIN="$DUMPBIN -symbols -headers"
7055      ;;
7056    *)
7057      DUMPBIN=:
7058      ;;
7059    esac
7060  fi
7061
7062  if test : != "$DUMPBIN"; then
7063    NM=$DUMPBIN
7064  fi
7065fi
7066test -z "$NM" && NM=nm
7067
7068
7069
7070
7071
7072
7073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7074printf %s "checking the name lister ($NM) interface... " >&6; }
7075if test ${lt_cv_nm_interface+y}
7076then :
7077  printf %s "(cached) " >&6
7078else $as_nop
7079  lt_cv_nm_interface="BSD nm"
7080  echo "int some_variable = 0;" > conftest.$ac_ext
7081  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7082  (eval "$ac_compile" 2>conftest.err)
7083  cat conftest.err >&5
7084  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7085  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7086  cat conftest.err >&5
7087  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7088  cat conftest.out >&5
7089  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7090    lt_cv_nm_interface="MS dumpbin"
7091  fi
7092  rm -f conftest*
7093fi
7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7095printf "%s\n" "$lt_cv_nm_interface" >&6; }
7096
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7098printf %s "checking whether ln -s works... " >&6; }
7099LN_S=$as_ln_s
7100if test "$LN_S" = "ln -s"; then
7101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102printf "%s\n" "yes" >&6; }
7103else
7104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7105printf "%s\n" "no, using $LN_S" >&6; }
7106fi
7107
7108# find the maximum length of command line arguments
7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7110printf %s "checking the maximum length of command line arguments... " >&6; }
7111if test ${lt_cv_sys_max_cmd_len+y}
7112then :
7113  printf %s "(cached) " >&6
7114else $as_nop
7115    i=0
7116  teststring=ABCD
7117
7118  case $build_os in
7119  msdosdjgpp*)
7120    # On DJGPP, this test can blow up pretty badly due to problems in libc
7121    # (any single argument exceeding 2000 bytes causes a buffer overrun
7122    # during glob expansion).  Even if it were fixed, the result of this
7123    # check would be larger than it should be.
7124    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7125    ;;
7126
7127  gnu*)
7128    # Under GNU Hurd, this test is not required because there is
7129    # no limit to the length of command line arguments.
7130    # Libtool will interpret -1 as no limit whatsoever
7131    lt_cv_sys_max_cmd_len=-1;
7132    ;;
7133
7134  cygwin* | mingw* | cegcc*)
7135    # On Win9x/ME, this test blows up -- it succeeds, but takes
7136    # about 5 minutes as the teststring grows exponentially.
7137    # Worse, since 9x/ME are not pre-emptively multitasking,
7138    # you end up with a "frozen" computer, even though with patience
7139    # the test eventually succeeds (with a max line length of 256k).
7140    # Instead, let's just punt: use the minimum linelength reported by
7141    # all of the supported platforms: 8192 (on NT/2K/XP).
7142    lt_cv_sys_max_cmd_len=8192;
7143    ;;
7144
7145  mint*)
7146    # On MiNT this can take a long time and run out of memory.
7147    lt_cv_sys_max_cmd_len=8192;
7148    ;;
7149
7150  amigaos*)
7151    # On AmigaOS with pdksh, this test takes hours, literally.
7152    # So we just punt and use a minimum line length of 8192.
7153    lt_cv_sys_max_cmd_len=8192;
7154    ;;
7155
7156  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7157    # This has been around since 386BSD, at least.  Likely further.
7158    if test -x /sbin/sysctl; then
7159      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7160    elif test -x /usr/sbin/sysctl; then
7161      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7162    else
7163      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7164    fi
7165    # And add a safety zone
7166    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7167    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7168    ;;
7169
7170  interix*)
7171    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7172    lt_cv_sys_max_cmd_len=196608
7173    ;;
7174
7175  os2*)
7176    # The test takes a long time on OS/2.
7177    lt_cv_sys_max_cmd_len=8192
7178    ;;
7179
7180  osf*)
7181    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7182    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7183    # nice to cause kernel panics so lets avoid the loop below.
7184    # First set a reasonable default.
7185    lt_cv_sys_max_cmd_len=16384
7186    #
7187    if test -x /sbin/sysconfig; then
7188      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7189        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7190      esac
7191    fi
7192    ;;
7193  sco3.2v5*)
7194    lt_cv_sys_max_cmd_len=102400
7195    ;;
7196  sysv5* | sco5v6* | sysv4.2uw2*)
7197    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7198    if test -n "$kargmax"; then
7199      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
7200    else
7201      lt_cv_sys_max_cmd_len=32768
7202    fi
7203    ;;
7204  *)
7205    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7206    if test -n "$lt_cv_sys_max_cmd_len" && \
7207       test undefined != "$lt_cv_sys_max_cmd_len"; then
7208      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7209      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7210    else
7211      # Make teststring a little bigger before we do anything with it.
7212      # a 1K string should be a reasonable start.
7213      for i in 1 2 3 4 5 6 7 8; do
7214        teststring=$teststring$teststring
7215      done
7216      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7217      # If test is not a shell built-in, we'll probably end up computing a
7218      # maximum length that is only half of the actual maximum length, but
7219      # we can't tell.
7220      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7221	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7222	      test 17 != "$i" # 1/2 MB should be enough
7223      do
7224        i=`expr $i + 1`
7225        teststring=$teststring$teststring
7226      done
7227      # Only check the string length outside the loop.
7228      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7229      teststring=
7230      # Add a significant safety factor because C++ compilers can tack on
7231      # massive amounts of additional arguments before passing them to the
7232      # linker.  It appears as though 1/2 is a usable value.
7233      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7234    fi
7235    ;;
7236  esac
7237
7238fi
7239
7240if test -n "$lt_cv_sys_max_cmd_len"; then
7241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7242printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7243else
7244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7245printf "%s\n" "none" >&6; }
7246fi
7247max_cmd_len=$lt_cv_sys_max_cmd_len
7248
7249
7250
7251
7252
7253
7254: ${CP="cp -f"}
7255: ${MV="mv -f"}
7256: ${RM="rm -f"}
7257
7258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7259  lt_unset=unset
7260else
7261  lt_unset=false
7262fi
7263
7264
7265
7266
7267
7268# test EBCDIC or ASCII
7269case `echo X|tr X '\101'` in
7270 A) # ASCII based system
7271    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7272  lt_SP2NL='tr \040 \012'
7273  lt_NL2SP='tr \015\012 \040\040'
7274  ;;
7275 *) # EBCDIC based system
7276  lt_SP2NL='tr \100 \n'
7277  lt_NL2SP='tr \r\n \100\100'
7278  ;;
7279esac
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7290printf %s "checking how to convert $build file names to $host format... " >&6; }
7291if test ${lt_cv_to_host_file_cmd+y}
7292then :
7293  printf %s "(cached) " >&6
7294else $as_nop
7295  case $host in
7296  *-*-mingw* )
7297    case $build in
7298      *-*-mingw* ) # actually msys
7299        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7300        ;;
7301      *-*-cygwin* )
7302        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7303        ;;
7304      * ) # otherwise, assume *nix
7305        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7306        ;;
7307    esac
7308    ;;
7309  *-*-cygwin* )
7310    case $build in
7311      *-*-mingw* ) # actually msys
7312        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7313        ;;
7314      *-*-cygwin* )
7315        lt_cv_to_host_file_cmd=func_convert_file_noop
7316        ;;
7317      * ) # otherwise, assume *nix
7318        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7319        ;;
7320    esac
7321    ;;
7322  * ) # unhandled hosts (and "normal" native builds)
7323    lt_cv_to_host_file_cmd=func_convert_file_noop
7324    ;;
7325esac
7326
7327fi
7328
7329to_host_file_cmd=$lt_cv_to_host_file_cmd
7330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7331printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7332
7333
7334
7335
7336
7337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7338printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7339if test ${lt_cv_to_tool_file_cmd+y}
7340then :
7341  printf %s "(cached) " >&6
7342else $as_nop
7343  #assume ordinary cross tools, or native build.
7344lt_cv_to_tool_file_cmd=func_convert_file_noop
7345case $host in
7346  *-*-mingw* )
7347    case $build in
7348      *-*-mingw* ) # actually msys
7349        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7350        ;;
7351    esac
7352    ;;
7353esac
7354
7355fi
7356
7357to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7359printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7360
7361
7362
7363
7364
7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7366printf %s "checking for $LD option to reload object files... " >&6; }
7367if test ${lt_cv_ld_reload_flag+y}
7368then :
7369  printf %s "(cached) " >&6
7370else $as_nop
7371  lt_cv_ld_reload_flag='-r'
7372fi
7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7374printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7375reload_flag=$lt_cv_ld_reload_flag
7376case $reload_flag in
7377"" | " "*) ;;
7378*) reload_flag=" $reload_flag" ;;
7379esac
7380reload_cmds='$LD$reload_flag -o $output$reload_objs'
7381case $host_os in
7382  cygwin* | mingw* | pw32* | cegcc*)
7383    if test yes != "$GCC"; then
7384      reload_cmds=false
7385    fi
7386    ;;
7387  darwin*)
7388    if test yes = "$GCC"; then
7389      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7390    else
7391      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7392    fi
7393    ;;
7394esac
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404if test -n "$ac_tool_prefix"; then
7405  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}file; ac_word=$2
7407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408printf %s "checking for $ac_word... " >&6; }
7409if test ${ac_cv_prog_FILECMD+y}
7410then :
7411  printf %s "(cached) " >&6
7412else $as_nop
7413  if test -n "$FILECMD"; then
7414  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419  IFS=$as_save_IFS
7420  case $as_dir in #(((
7421    '') as_dir=./ ;;
7422    */) ;;
7423    *) as_dir=$as_dir/ ;;
7424  esac
7425    for ac_exec_ext in '' $ac_executable_extensions; do
7426  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7427    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7428    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432  done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437FILECMD=$ac_cv_prog_FILECMD
7438if test -n "$FILECMD"; then
7439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7440printf "%s\n" "$FILECMD" >&6; }
7441else
7442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443printf "%s\n" "no" >&6; }
7444fi
7445
7446
7447fi
7448if test -z "$ac_cv_prog_FILECMD"; then
7449  ac_ct_FILECMD=$FILECMD
7450  # Extract the first word of "file", so it can be a program name with args.
7451set dummy file; ac_word=$2
7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453printf %s "checking for $ac_word... " >&6; }
7454if test ${ac_cv_prog_ac_ct_FILECMD+y}
7455then :
7456  printf %s "(cached) " >&6
7457else $as_nop
7458  if test -n "$ac_ct_FILECMD"; then
7459  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  case $as_dir in #(((
7466    '') as_dir=./ ;;
7467    */) ;;
7468    *) as_dir=$as_dir/ ;;
7469  esac
7470    for ac_exec_ext in '' $ac_executable_extensions; do
7471  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7472    ac_cv_prog_ac_ct_FILECMD="file"
7473    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477  done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7483if test -n "$ac_ct_FILECMD"; then
7484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7485printf "%s\n" "$ac_ct_FILECMD" >&6; }
7486else
7487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488printf "%s\n" "no" >&6; }
7489fi
7490
7491  if test "x$ac_ct_FILECMD" = x; then
7492    FILECMD=":"
7493  else
7494    case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500    FILECMD=$ac_ct_FILECMD
7501  fi
7502else
7503  FILECMD="$ac_cv_prog_FILECMD"
7504fi
7505
7506
7507
7508
7509
7510
7511
7512if test -n "$ac_tool_prefix"; then
7513  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7514set dummy ${ac_tool_prefix}objdump; ac_word=$2
7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516printf %s "checking for $ac_word... " >&6; }
7517if test ${ac_cv_prog_OBJDUMP+y}
7518then :
7519  printf %s "(cached) " >&6
7520else $as_nop
7521  if test -n "$OBJDUMP"; then
7522  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  case $as_dir in #(((
7529    '') as_dir=./ ;;
7530    */) ;;
7531    *) as_dir=$as_dir/ ;;
7532  esac
7533    for ac_exec_ext in '' $ac_executable_extensions; do
7534  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7535    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7536    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7537    break 2
7538  fi
7539done
7540  done
7541IFS=$as_save_IFS
7542
7543fi
7544fi
7545OBJDUMP=$ac_cv_prog_OBJDUMP
7546if test -n "$OBJDUMP"; then
7547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7548printf "%s\n" "$OBJDUMP" >&6; }
7549else
7550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551printf "%s\n" "no" >&6; }
7552fi
7553
7554
7555fi
7556if test -z "$ac_cv_prog_OBJDUMP"; then
7557  ac_ct_OBJDUMP=$OBJDUMP
7558  # Extract the first word of "objdump", so it can be a program name with args.
7559set dummy objdump; ac_word=$2
7560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561printf %s "checking for $ac_word... " >&6; }
7562if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7563then :
7564  printf %s "(cached) " >&6
7565else $as_nop
7566  if test -n "$ac_ct_OBJDUMP"; then
7567  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7568else
7569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572  IFS=$as_save_IFS
7573  case $as_dir in #(((
7574    '') as_dir=./ ;;
7575    */) ;;
7576    *) as_dir=$as_dir/ ;;
7577  esac
7578    for ac_exec_ext in '' $ac_executable_extensions; do
7579  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7580    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7581    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7582    break 2
7583  fi
7584done
7585  done
7586IFS=$as_save_IFS
7587
7588fi
7589fi
7590ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7591if test -n "$ac_ct_OBJDUMP"; then
7592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7593printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7594else
7595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596printf "%s\n" "no" >&6; }
7597fi
7598
7599  if test "x$ac_ct_OBJDUMP" = x; then
7600    OBJDUMP="false"
7601  else
7602    case $cross_compiling:$ac_tool_warned in
7603yes:)
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606ac_tool_warned=yes ;;
7607esac
7608    OBJDUMP=$ac_ct_OBJDUMP
7609  fi
7610else
7611  OBJDUMP="$ac_cv_prog_OBJDUMP"
7612fi
7613
7614test -z "$OBJDUMP" && OBJDUMP=objdump
7615
7616
7617
7618
7619
7620
7621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7622printf %s "checking how to recognize dependent libraries... " >&6; }
7623if test ${lt_cv_deplibs_check_method+y}
7624then :
7625  printf %s "(cached) " >&6
7626else $as_nop
7627  lt_cv_file_magic_cmd='$MAGIC_CMD'
7628lt_cv_file_magic_test_file=
7629lt_cv_deplibs_check_method='unknown'
7630# Need to set the preceding variable on all platforms that support
7631# interlibrary dependencies.
7632# 'none' -- dependencies not supported.
7633# 'unknown' -- same as none, but documents that we really don't know.
7634# 'pass_all' -- all dependencies passed with no checks.
7635# 'test_compile' -- check by making test program.
7636# 'file_magic [[regex]]' -- check by looking for files in library path
7637# that responds to the $file_magic_cmd with a given extended regex.
7638# If you have 'file' or equivalent on your system and you're not sure
7639# whether 'pass_all' will *always* work, you probably want this one.
7640
7641case $host_os in
7642aix[4-9]*)
7643  lt_cv_deplibs_check_method=pass_all
7644  ;;
7645
7646beos*)
7647  lt_cv_deplibs_check_method=pass_all
7648  ;;
7649
7650bsdi[45]*)
7651  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7652  lt_cv_file_magic_cmd='$FILECMD -L'
7653  lt_cv_file_magic_test_file=/shlib/libc.so
7654  ;;
7655
7656cygwin*)
7657  # func_win32_libid is a shell function defined in ltmain.sh
7658  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7659  lt_cv_file_magic_cmd='func_win32_libid'
7660  ;;
7661
7662mingw* | pw32*)
7663  # Base MSYS/MinGW do not provide the 'file' command needed by
7664  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7665  # unless we find 'file', for example because we are cross-compiling.
7666  if ( file / ) >/dev/null 2>&1; then
7667    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7668    lt_cv_file_magic_cmd='func_win32_libid'
7669  else
7670    # Keep this pattern in sync with the one in func_win32_libid.
7671    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7672    lt_cv_file_magic_cmd='$OBJDUMP -f'
7673  fi
7674  ;;
7675
7676cegcc*)
7677  # use the weaker test based on 'objdump'. See mingw*.
7678  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7679  lt_cv_file_magic_cmd='$OBJDUMP -f'
7680  ;;
7681
7682darwin* | rhapsody*)
7683  lt_cv_deplibs_check_method=pass_all
7684  ;;
7685
7686freebsd* | dragonfly* | midnightbsd*)
7687  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7688    case $host_cpu in
7689    i*86 )
7690      # Not sure whether the presence of OpenBSD here was a mistake.
7691      # Let's accept both of them until this is cleared up.
7692      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7693      lt_cv_file_magic_cmd=$FILECMD
7694      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7695      ;;
7696    esac
7697  else
7698    lt_cv_deplibs_check_method=pass_all
7699  fi
7700  ;;
7701
7702haiku*)
7703  lt_cv_deplibs_check_method=pass_all
7704  ;;
7705
7706hpux10.20* | hpux11*)
7707  lt_cv_file_magic_cmd=$FILECMD
7708  case $host_cpu in
7709  ia64*)
7710    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7711    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7712    ;;
7713  hppa*64*)
7714    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]'
7715    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7716    ;;
7717  *)
7718    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7719    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7720    ;;
7721  esac
7722  ;;
7723
7724interix[3-9]*)
7725  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7726  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7727  ;;
7728
7729irix5* | irix6* | nonstopux*)
7730  case $LD in
7731  *-32|*"-32 ") libmagic=32-bit;;
7732  *-n32|*"-n32 ") libmagic=N32;;
7733  *-64|*"-64 ") libmagic=64-bit;;
7734  *) libmagic=never-match;;
7735  esac
7736  lt_cv_deplibs_check_method=pass_all
7737  ;;
7738
7739# This must be glibc/ELF.
7740linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7741  lt_cv_deplibs_check_method=pass_all
7742  ;;
7743
7744netbsd* | netbsdelf*-gnu)
7745  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7747  else
7748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7749  fi
7750  ;;
7751
7752newos6*)
7753  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7754  lt_cv_file_magic_cmd=$FILECMD
7755  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7756  ;;
7757
7758*nto* | *qnx*)
7759  lt_cv_deplibs_check_method=pass_all
7760  ;;
7761
7762openbsd* | bitrig*)
7763  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7764    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7765  else
7766    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7767  fi
7768  ;;
7769
7770osf3* | osf4* | osf5*)
7771  lt_cv_deplibs_check_method=pass_all
7772  ;;
7773
7774rdos*)
7775  lt_cv_deplibs_check_method=pass_all
7776  ;;
7777
7778solaris*)
7779  lt_cv_deplibs_check_method=pass_all
7780  ;;
7781
7782sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7783  lt_cv_deplibs_check_method=pass_all
7784  ;;
7785
7786sysv4 | sysv4.3*)
7787  case $host_vendor in
7788  motorola)
7789    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]'
7790    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7791    ;;
7792  ncr)
7793    lt_cv_deplibs_check_method=pass_all
7794    ;;
7795  sequent)
7796    lt_cv_file_magic_cmd='/bin/file'
7797    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7798    ;;
7799  sni)
7800    lt_cv_file_magic_cmd='/bin/file'
7801    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7802    lt_cv_file_magic_test_file=/lib/libc.so
7803    ;;
7804  siemens)
7805    lt_cv_deplibs_check_method=pass_all
7806    ;;
7807  pc)
7808    lt_cv_deplibs_check_method=pass_all
7809    ;;
7810  esac
7811  ;;
7812
7813tpf*)
7814  lt_cv_deplibs_check_method=pass_all
7815  ;;
7816os2*)
7817  lt_cv_deplibs_check_method=pass_all
7818  ;;
7819esac
7820
7821fi
7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7823printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7824
7825file_magic_glob=
7826want_nocaseglob=no
7827if test "$build" = "$host"; then
7828  case $host_os in
7829  mingw* | pw32*)
7830    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7831      want_nocaseglob=yes
7832    else
7833      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7834    fi
7835    ;;
7836  esac
7837fi
7838
7839file_magic_cmd=$lt_cv_file_magic_cmd
7840deplibs_check_method=$lt_cv_deplibs_check_method
7841test -z "$deplibs_check_method" && deplibs_check_method=unknown
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864if test -n "$ac_tool_prefix"; then
7865  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7866set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868printf %s "checking for $ac_word... " >&6; }
7869if test ${ac_cv_prog_DLLTOOL+y}
7870then :
7871  printf %s "(cached) " >&6
7872else $as_nop
7873  if test -n "$DLLTOOL"; then
7874  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879  IFS=$as_save_IFS
7880  case $as_dir in #(((
7881    '') as_dir=./ ;;
7882    */) ;;
7883    *) as_dir=$as_dir/ ;;
7884  esac
7885    for ac_exec_ext in '' $ac_executable_extensions; do
7886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7887    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7889    break 2
7890  fi
7891done
7892  done
7893IFS=$as_save_IFS
7894
7895fi
7896fi
7897DLLTOOL=$ac_cv_prog_DLLTOOL
7898if test -n "$DLLTOOL"; then
7899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7900printf "%s\n" "$DLLTOOL" >&6; }
7901else
7902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903printf "%s\n" "no" >&6; }
7904fi
7905
7906
7907fi
7908if test -z "$ac_cv_prog_DLLTOOL"; then
7909  ac_ct_DLLTOOL=$DLLTOOL
7910  # Extract the first word of "dlltool", so it can be a program name with args.
7911set dummy dlltool; ac_word=$2
7912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913printf %s "checking for $ac_word... " >&6; }
7914if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7915then :
7916  printf %s "(cached) " >&6
7917else $as_nop
7918  if test -n "$ac_ct_DLLTOOL"; then
7919  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924  IFS=$as_save_IFS
7925  case $as_dir in #(((
7926    '') as_dir=./ ;;
7927    */) ;;
7928    *) as_dir=$as_dir/ ;;
7929  esac
7930    for ac_exec_ext in '' $ac_executable_extensions; do
7931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7932    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7934    break 2
7935  fi
7936done
7937  done
7938IFS=$as_save_IFS
7939
7940fi
7941fi
7942ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7943if test -n "$ac_ct_DLLTOOL"; then
7944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7945printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7946else
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948printf "%s\n" "no" >&6; }
7949fi
7950
7951  if test "x$ac_ct_DLLTOOL" = x; then
7952    DLLTOOL="false"
7953  else
7954    case $cross_compiling:$ac_tool_warned in
7955yes:)
7956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958ac_tool_warned=yes ;;
7959esac
7960    DLLTOOL=$ac_ct_DLLTOOL
7961  fi
7962else
7963  DLLTOOL="$ac_cv_prog_DLLTOOL"
7964fi
7965
7966test -z "$DLLTOOL" && DLLTOOL=dlltool
7967
7968
7969
7970
7971
7972
7973
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7975printf %s "checking how to associate runtime and link libraries... " >&6; }
7976if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7977then :
7978  printf %s "(cached) " >&6
7979else $as_nop
7980  lt_cv_sharedlib_from_linklib_cmd='unknown'
7981
7982case $host_os in
7983cygwin* | mingw* | pw32* | cegcc*)
7984  # two different shell functions defined in ltmain.sh;
7985  # decide which one to use based on capabilities of $DLLTOOL
7986  case `$DLLTOOL --help 2>&1` in
7987  *--identify-strict*)
7988    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7989    ;;
7990  *)
7991    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7992    ;;
7993  esac
7994  ;;
7995*)
7996  # fallback: assume linklib IS sharedlib
7997  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7998  ;;
7999esac
8000
8001fi
8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8003printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8004sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8005test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8006
8007
8008
8009
8010
8011
8012
8013if test -n "$ac_tool_prefix"; then
8014  for ac_prog in ar
8015  do
8016    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019printf %s "checking for $ac_word... " >&6; }
8020if test ${ac_cv_prog_AR+y}
8021then :
8022  printf %s "(cached) " >&6
8023else $as_nop
8024  if test -n "$AR"; then
8025  ac_cv_prog_AR="$AR" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030  IFS=$as_save_IFS
8031  case $as_dir in #(((
8032    '') as_dir=./ ;;
8033    */) ;;
8034    *) as_dir=$as_dir/ ;;
8035  esac
8036    for ac_exec_ext in '' $ac_executable_extensions; do
8037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8038    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040    break 2
8041  fi
8042done
8043  done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048AR=$ac_cv_prog_AR
8049if test -n "$AR"; then
8050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051printf "%s\n" "$AR" >&6; }
8052else
8053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054printf "%s\n" "no" >&6; }
8055fi
8056
8057
8058    test -n "$AR" && break
8059  done
8060fi
8061if test -z "$AR"; then
8062  ac_ct_AR=$AR
8063  for ac_prog in ar
8064do
8065  # Extract the first word of "$ac_prog", so it can be a program name with args.
8066set dummy $ac_prog; ac_word=$2
8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068printf %s "checking for $ac_word... " >&6; }
8069if test ${ac_cv_prog_ac_ct_AR+y}
8070then :
8071  printf %s "(cached) " >&6
8072else $as_nop
8073  if test -n "$ac_ct_AR"; then
8074  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079  IFS=$as_save_IFS
8080  case $as_dir in #(((
8081    '') as_dir=./ ;;
8082    */) ;;
8083    *) as_dir=$as_dir/ ;;
8084  esac
8085    for ac_exec_ext in '' $ac_executable_extensions; do
8086  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087    ac_cv_prog_ac_ct_AR="$ac_prog"
8088    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089    break 2
8090  fi
8091done
8092  done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097ac_ct_AR=$ac_cv_prog_ac_ct_AR
8098if test -n "$ac_ct_AR"; then
8099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8100printf "%s\n" "$ac_ct_AR" >&6; }
8101else
8102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103printf "%s\n" "no" >&6; }
8104fi
8105
8106
8107  test -n "$ac_ct_AR" && break
8108done
8109
8110  if test "x$ac_ct_AR" = x; then
8111    AR="false"
8112  else
8113    case $cross_compiling:$ac_tool_warned in
8114yes:)
8115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8116printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8117ac_tool_warned=yes ;;
8118esac
8119    AR=$ac_ct_AR
8120  fi
8121fi
8122
8123: ${AR=ar}
8124
8125
8126
8127
8128
8129
8130# Use ARFLAGS variable as AR's operation code to sync the variable naming with
8131# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8132# higher priority because thats what people were doing historically (setting
8133# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
8134# variable obsoleted/removed.
8135
8136test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8137lt_ar_flags=$AR_FLAGS
8138
8139
8140
8141
8142
8143
8144# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
8145# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8146
8147
8148
8149
8150
8151
8152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8153printf %s "checking for archiver @FILE support... " >&6; }
8154if test ${lt_cv_ar_at_file+y}
8155then :
8156  printf %s "(cached) " >&6
8157else $as_nop
8158  lt_cv_ar_at_file=no
8159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161
8162int
8163main (void)
8164{
8165
8166  ;
8167  return 0;
8168}
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"
8171then :
8172  echo conftest.$ac_objext > conftest.lst
8173      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8174      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8175  (eval $lt_ar_try) 2>&5
8176  ac_status=$?
8177  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178  test $ac_status = 0; }
8179      if test 0 -eq "$ac_status"; then
8180	# Ensure the archiver fails upon bogus file names.
8181	rm -f conftest.$ac_objext libconftest.a
8182	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8183  (eval $lt_ar_try) 2>&5
8184  ac_status=$?
8185  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8186  test $ac_status = 0; }
8187	if test 0 -ne "$ac_status"; then
8188          lt_cv_ar_at_file=@
8189        fi
8190      fi
8191      rm -f conftest.* libconftest.a
8192
8193fi
8194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8195
8196fi
8197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8198printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8199
8200if test no = "$lt_cv_ar_at_file"; then
8201  archiver_list_spec=
8202else
8203  archiver_list_spec=$lt_cv_ar_at_file
8204fi
8205
8206
8207
8208
8209
8210
8211
8212if test -n "$ac_tool_prefix"; then
8213  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8214set dummy ${ac_tool_prefix}strip; ac_word=$2
8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216printf %s "checking for $ac_word... " >&6; }
8217if test ${ac_cv_prog_STRIP+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  if test -n "$STRIP"; then
8222  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8223else
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227  IFS=$as_save_IFS
8228  case $as_dir in #(((
8229    '') as_dir=./ ;;
8230    */) ;;
8231    *) as_dir=$as_dir/ ;;
8232  esac
8233    for ac_exec_ext in '' $ac_executable_extensions; do
8234  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8236    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237    break 2
8238  fi
8239done
8240  done
8241IFS=$as_save_IFS
8242
8243fi
8244fi
8245STRIP=$ac_cv_prog_STRIP
8246if test -n "$STRIP"; then
8247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8248printf "%s\n" "$STRIP" >&6; }
8249else
8250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251printf "%s\n" "no" >&6; }
8252fi
8253
8254
8255fi
8256if test -z "$ac_cv_prog_STRIP"; then
8257  ac_ct_STRIP=$STRIP
8258  # Extract the first word of "strip", so it can be a program name with args.
8259set dummy strip; ac_word=$2
8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261printf %s "checking for $ac_word... " >&6; }
8262if test ${ac_cv_prog_ac_ct_STRIP+y}
8263then :
8264  printf %s "(cached) " >&6
8265else $as_nop
8266  if test -n "$ac_ct_STRIP"; then
8267  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  case $as_dir in #(((
8274    '') as_dir=./ ;;
8275    */) ;;
8276    *) as_dir=$as_dir/ ;;
8277  esac
8278    for ac_exec_ext in '' $ac_executable_extensions; do
8279  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280    ac_cv_prog_ac_ct_STRIP="strip"
8281    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282    break 2
8283  fi
8284done
8285  done
8286IFS=$as_save_IFS
8287
8288fi
8289fi
8290ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8291if test -n "$ac_ct_STRIP"; then
8292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8293printf "%s\n" "$ac_ct_STRIP" >&6; }
8294else
8295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296printf "%s\n" "no" >&6; }
8297fi
8298
8299  if test "x$ac_ct_STRIP" = x; then
8300    STRIP=":"
8301  else
8302    case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308    STRIP=$ac_ct_STRIP
8309  fi
8310else
8311  STRIP="$ac_cv_prog_STRIP"
8312fi
8313
8314test -z "$STRIP" && STRIP=:
8315
8316
8317
8318
8319
8320
8321if test -n "$ac_tool_prefix"; then
8322  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8323set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325printf %s "checking for $ac_word... " >&6; }
8326if test ${ac_cv_prog_RANLIB+y}
8327then :
8328  printf %s "(cached) " >&6
8329else $as_nop
8330  if test -n "$RANLIB"; then
8331  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336  IFS=$as_save_IFS
8337  case $as_dir in #(((
8338    '') as_dir=./ ;;
8339    */) ;;
8340    *) as_dir=$as_dir/ ;;
8341  esac
8342    for ac_exec_ext in '' $ac_executable_extensions; do
8343  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8344    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8346    break 2
8347  fi
8348done
8349  done
8350IFS=$as_save_IFS
8351
8352fi
8353fi
8354RANLIB=$ac_cv_prog_RANLIB
8355if test -n "$RANLIB"; then
8356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8357printf "%s\n" "$RANLIB" >&6; }
8358else
8359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360printf "%s\n" "no" >&6; }
8361fi
8362
8363
8364fi
8365if test -z "$ac_cv_prog_RANLIB"; then
8366  ac_ct_RANLIB=$RANLIB
8367  # Extract the first word of "ranlib", so it can be a program name with args.
8368set dummy ranlib; ac_word=$2
8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370printf %s "checking for $ac_word... " >&6; }
8371if test ${ac_cv_prog_ac_ct_RANLIB+y}
8372then :
8373  printf %s "(cached) " >&6
8374else $as_nop
8375  if test -n "$ac_ct_RANLIB"; then
8376  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381  IFS=$as_save_IFS
8382  case $as_dir in #(((
8383    '') as_dir=./ ;;
8384    */) ;;
8385    *) as_dir=$as_dir/ ;;
8386  esac
8387    for ac_exec_ext in '' $ac_executable_extensions; do
8388  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8389    ac_cv_prog_ac_ct_RANLIB="ranlib"
8390    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8391    break 2
8392  fi
8393done
8394  done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
8399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8400if test -n "$ac_ct_RANLIB"; then
8401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8402printf "%s\n" "$ac_ct_RANLIB" >&6; }
8403else
8404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405printf "%s\n" "no" >&6; }
8406fi
8407
8408  if test "x$ac_ct_RANLIB" = x; then
8409    RANLIB=":"
8410  else
8411    case $cross_compiling:$ac_tool_warned in
8412yes:)
8413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415ac_tool_warned=yes ;;
8416esac
8417    RANLIB=$ac_ct_RANLIB
8418  fi
8419else
8420  RANLIB="$ac_cv_prog_RANLIB"
8421fi
8422
8423test -z "$RANLIB" && RANLIB=:
8424
8425
8426
8427
8428
8429
8430# Determine commands to create old-style static archives.
8431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8432old_postinstall_cmds='chmod 644 $oldlib'
8433old_postuninstall_cmds=
8434
8435if test -n "$RANLIB"; then
8436  case $host_os in
8437  bitrig* | openbsd*)
8438    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8439    ;;
8440  *)
8441    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8442    ;;
8443  esac
8444  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8445fi
8446
8447case $host_os in
8448  darwin*)
8449    lock_old_archive_extraction=yes ;;
8450  *)
8451    lock_old_archive_extraction=no ;;
8452esac
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492# If no C compiler was specified, use CC.
8493LTCC=${LTCC-"$CC"}
8494
8495# If no C compiler flags were specified, use CFLAGS.
8496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8497
8498# Allow CC to be a program name with arguments.
8499compiler=$CC
8500
8501
8502# Check for command to grab the raw symbol name followed by C symbol from nm.
8503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8504printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8505if test ${lt_cv_sys_global_symbol_pipe+y}
8506then :
8507  printf %s "(cached) " >&6
8508else $as_nop
8509
8510# These are sane defaults that work on at least a few old systems.
8511# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8512
8513# Character class describing NM global symbol codes.
8514symcode='[BCDEGRST]'
8515
8516# Regexp to match symbols that can be accessed directly from C.
8517sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8518
8519# Define system-specific variables.
8520case $host_os in
8521aix*)
8522  symcode='[BCDT]'
8523  ;;
8524cygwin* | mingw* | pw32* | cegcc*)
8525  symcode='[ABCDGISTW]'
8526  ;;
8527hpux*)
8528  if test ia64 = "$host_cpu"; then
8529    symcode='[ABCDEGRST]'
8530  fi
8531  ;;
8532irix* | nonstopux*)
8533  symcode='[BCDEGRST]'
8534  ;;
8535osf*)
8536  symcode='[BCDEGQRST]'
8537  ;;
8538solaris*)
8539  symcode='[BDRT]'
8540  ;;
8541sco3.2v5*)
8542  symcode='[DT]'
8543  ;;
8544sysv4.2uw2*)
8545  symcode='[DT]'
8546  ;;
8547sysv5* | sco5v6* | unixware* | OpenUNIX*)
8548  symcode='[ABDT]'
8549  ;;
8550sysv4)
8551  symcode='[DFNSTU]'
8552  ;;
8553esac
8554
8555# If we're using GNU nm, then use its standard symbol codes.
8556case `$NM -V 2>&1` in
8557*GNU* | *'with BFD'*)
8558  symcode='[ABCDGIRSTW]' ;;
8559esac
8560
8561if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8562  # Gets list of data symbols to import.
8563  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8564  # Adjust the below global symbol transforms to fixup imported variables.
8565  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8566  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8567  lt_c_name_lib_hook="\
8568  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8569  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8570else
8571  # Disable hooks by default.
8572  lt_cv_sys_global_symbol_to_import=
8573  lt_cdecl_hook=
8574  lt_c_name_hook=
8575  lt_c_name_lib_hook=
8576fi
8577
8578# Transform an extracted symbol line into a proper C declaration.
8579# Some systems (esp. on ia64) link data and code symbols differently,
8580# so use this general approach.
8581lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8582$lt_cdecl_hook\
8583" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8584" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8585
8586# Transform an extracted symbol line into symbol name and symbol address
8587lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8588$lt_c_name_hook\
8589" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8590" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8591
8592# Transform an extracted symbol line into symbol name with lib prefix and
8593# symbol address.
8594lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8595$lt_c_name_lib_hook\
8596" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8597" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8598" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8599
8600# Handle CRLF in mingw tool chain
8601opt_cr=
8602case $build_os in
8603mingw*)
8604  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8605  ;;
8606esac
8607
8608# Try without a prefix underscore, then with it.
8609for ac_symprfx in "" "_"; do
8610
8611  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8612  symxfrm="\\1 $ac_symprfx\\2 \\2"
8613
8614  # Write the raw and C identifiers.
8615  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8616    # Fake it for dumpbin and say T for any non-static function,
8617    # D for any global variable and I for any imported variable.
8618    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8619    # which start with @ or ?.
8620    lt_cv_sys_global_symbol_pipe="$AWK '"\
8621"     {last_section=section; section=\$ 3};"\
8622"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8623"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8624"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8625"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8626"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8627"     \$ 0!~/External *\|/{next};"\
8628"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8629"     {if(hide[section]) next};"\
8630"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8631"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8632"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8633"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8634"     ' prfx=^$ac_symprfx"
8635  else
8636    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8637  fi
8638  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8639
8640  # Check to see that the pipe works correctly.
8641  pipe_works=no
8642
8643  rm -f conftest*
8644  cat > conftest.$ac_ext <<_LT_EOF
8645#ifdef __cplusplus
8646extern "C" {
8647#endif
8648char nm_test_var;
8649void nm_test_func(void);
8650void nm_test_func(void){}
8651#ifdef __cplusplus
8652}
8653#endif
8654int main(){nm_test_var='a';nm_test_func();return(0);}
8655_LT_EOF
8656
8657  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8658  (eval $ac_compile) 2>&5
8659  ac_status=$?
8660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8661  test $ac_status = 0; }; then
8662    # Now try to grab the symbols.
8663    nlist=conftest.nm
8664    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8665    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8666      # Try sorting and uniquifying the output.
8667      if sort "$nlist" | uniq > "$nlist"T; then
8668	mv -f "$nlist"T "$nlist"
8669      else
8670	rm -f "$nlist"T
8671      fi
8672
8673      # Make sure that we snagged all the symbols we need.
8674      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8675	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8676	  cat <<_LT_EOF > conftest.$ac_ext
8677/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8678#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8679/* DATA imports from DLLs on WIN32 can't be const, because runtime
8680   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8681# define LT_DLSYM_CONST
8682#elif defined __osf__
8683/* This system does not cope well with relocations in const data.  */
8684# define LT_DLSYM_CONST
8685#else
8686# define LT_DLSYM_CONST const
8687#endif
8688
8689#ifdef __cplusplus
8690extern "C" {
8691#endif
8692
8693_LT_EOF
8694	  # Now generate the symbol file.
8695	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8696
8697	  cat <<_LT_EOF >> conftest.$ac_ext
8698
8699/* The mapping between symbol names and symbols.  */
8700LT_DLSYM_CONST struct {
8701  const char *name;
8702  void       *address;
8703}
8704lt__PROGRAM__LTX_preloaded_symbols[] =
8705{
8706  { "@PROGRAM@", (void *) 0 },
8707_LT_EOF
8708	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8709	  cat <<\_LT_EOF >> conftest.$ac_ext
8710  {0, (void *) 0}
8711};
8712
8713/* This works around a problem in FreeBSD linker */
8714#ifdef FREEBSD_WORKAROUND
8715static const void *lt_preloaded_setup() {
8716  return lt__PROGRAM__LTX_preloaded_symbols;
8717}
8718#endif
8719
8720#ifdef __cplusplus
8721}
8722#endif
8723_LT_EOF
8724	  # Now try linking the two files.
8725	  mv conftest.$ac_objext conftstm.$ac_objext
8726	  lt_globsym_save_LIBS=$LIBS
8727	  lt_globsym_save_CFLAGS=$CFLAGS
8728	  LIBS=conftstm.$ac_objext
8729	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8730	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8731  (eval $ac_link) 2>&5
8732  ac_status=$?
8733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8734  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8735	    pipe_works=yes
8736	  fi
8737	  LIBS=$lt_globsym_save_LIBS
8738	  CFLAGS=$lt_globsym_save_CFLAGS
8739	else
8740	  echo "cannot find nm_test_func in $nlist" >&5
8741	fi
8742      else
8743	echo "cannot find nm_test_var in $nlist" >&5
8744      fi
8745    else
8746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8747    fi
8748  else
8749    echo "$progname: failed program was:" >&5
8750    cat conftest.$ac_ext >&5
8751  fi
8752  rm -rf conftest* conftst*
8753
8754  # Do not use the global_symbol_pipe unless it works.
8755  if test yes = "$pipe_works"; then
8756    break
8757  else
8758    lt_cv_sys_global_symbol_pipe=
8759  fi
8760done
8761
8762fi
8763
8764if test -z "$lt_cv_sys_global_symbol_pipe"; then
8765  lt_cv_sys_global_symbol_to_cdecl=
8766fi
8767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8769printf "%s\n" "failed" >&6; }
8770else
8771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8772printf "%s\n" "ok" >&6; }
8773fi
8774
8775# Response file support.
8776if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8777  nm_file_list_spec='@'
8778elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8779  nm_file_list_spec='@'
8780fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8819printf %s "checking for sysroot... " >&6; }
8820
8821# Check whether --with-sysroot was given.
8822if test ${with_sysroot+y}
8823then :
8824  withval=$with_sysroot;
8825else $as_nop
8826  with_sysroot=no
8827fi
8828
8829
8830lt_sysroot=
8831case $with_sysroot in #(
8832 yes)
8833   if test yes = "$GCC"; then
8834     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8835   fi
8836   ;; #(
8837 /*)
8838   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8839   ;; #(
8840 no|'')
8841   ;; #(
8842 *)
8843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8844printf "%s\n" "$with_sysroot" >&6; }
8845   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8846   ;;
8847esac
8848
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8850printf "%s\n" "${lt_sysroot:-no}" >&6; }
8851
8852
8853
8854
8855
8856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8857printf %s "checking for a working dd... " >&6; }
8858if test ${ac_cv_path_lt_DD+y}
8859then :
8860  printf %s "(cached) " >&6
8861else $as_nop
8862  printf 0123456789abcdef0123456789abcdef >conftest.i
8863cat conftest.i conftest.i >conftest2.i
8864: ${lt_DD:=$DD}
8865if test -z "$lt_DD"; then
8866  ac_path_lt_DD_found=false
8867  # Loop through the user's path and test for each of PROGNAME-LIST
8868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871  IFS=$as_save_IFS
8872  case $as_dir in #(((
8873    '') as_dir=./ ;;
8874    */) ;;
8875    *) as_dir=$as_dir/ ;;
8876  esac
8877    for ac_prog in dd
8878   do
8879    for ac_exec_ext in '' $ac_executable_extensions; do
8880      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8881      as_fn_executable_p "$ac_path_lt_DD" || continue
8882if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8883  cmp -s conftest.i conftest.out \
8884  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8885fi
8886      $ac_path_lt_DD_found && break 3
8887    done
8888  done
8889  done
8890IFS=$as_save_IFS
8891  if test -z "$ac_cv_path_lt_DD"; then
8892    :
8893  fi
8894else
8895  ac_cv_path_lt_DD=$lt_DD
8896fi
8897
8898rm -f conftest.i conftest2.i conftest.out
8899fi
8900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8901printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8902
8903
8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8905printf %s "checking how to truncate binary pipes... " >&6; }
8906if test ${lt_cv_truncate_bin+y}
8907then :
8908  printf %s "(cached) " >&6
8909else $as_nop
8910  printf 0123456789abcdef0123456789abcdef >conftest.i
8911cat conftest.i conftest.i >conftest2.i
8912lt_cv_truncate_bin=
8913if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8914  cmp -s conftest.i conftest.out \
8915  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8916fi
8917rm -f conftest.i conftest2.i conftest.out
8918test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8919fi
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8921printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8922
8923
8924
8925
8926
8927
8928
8929# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8930func_cc_basename ()
8931{
8932    for cc_temp in $*""; do
8933      case $cc_temp in
8934        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8935        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8936        \-*) ;;
8937        *) break;;
8938      esac
8939    done
8940    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8941}
8942
8943# Check whether --enable-libtool-lock was given.
8944if test ${enable_libtool_lock+y}
8945then :
8946  enableval=$enable_libtool_lock;
8947fi
8948
8949test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8950
8951# Some flags need to be propagated to the compiler or linker for good
8952# libtool support.
8953case $host in
8954ia64-*-hpux*)
8955  # Find out what ABI is being produced by ac_compile, and set mode
8956  # options accordingly.
8957  echo 'int i;' > conftest.$ac_ext
8958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8959  (eval $ac_compile) 2>&5
8960  ac_status=$?
8961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8962  test $ac_status = 0; }; then
8963    case `$FILECMD conftest.$ac_objext` in
8964      *ELF-32*)
8965	HPUX_IA64_MODE=32
8966	;;
8967      *ELF-64*)
8968	HPUX_IA64_MODE=64
8969	;;
8970    esac
8971  fi
8972  rm -rf conftest*
8973  ;;
8974*-*-irix6*)
8975  # Find out what ABI is being produced by ac_compile, and set linker
8976  # options accordingly.
8977  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8978  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8979  (eval $ac_compile) 2>&5
8980  ac_status=$?
8981  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982  test $ac_status = 0; }; then
8983    if test yes = "$lt_cv_prog_gnu_ld"; then
8984      case `$FILECMD conftest.$ac_objext` in
8985	*32-bit*)
8986	  LD="${LD-ld} -melf32bsmip"
8987	  ;;
8988	*N32*)
8989	  LD="${LD-ld} -melf32bmipn32"
8990	  ;;
8991	*64-bit*)
8992	  LD="${LD-ld} -melf64bmip"
8993	;;
8994      esac
8995    else
8996      case `$FILECMD conftest.$ac_objext` in
8997	*32-bit*)
8998	  LD="${LD-ld} -32"
8999	  ;;
9000	*N32*)
9001	  LD="${LD-ld} -n32"
9002	  ;;
9003	*64-bit*)
9004	  LD="${LD-ld} -64"
9005	  ;;
9006      esac
9007    fi
9008  fi
9009  rm -rf conftest*
9010  ;;
9011
9012mips64*-*linux*)
9013  # Find out what ABI is being produced by ac_compile, and set linker
9014  # options accordingly.
9015  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9017  (eval $ac_compile) 2>&5
9018  ac_status=$?
9019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9020  test $ac_status = 0; }; then
9021    emul=elf
9022    case `$FILECMD conftest.$ac_objext` in
9023      *32-bit*)
9024	emul="${emul}32"
9025	;;
9026      *64-bit*)
9027	emul="${emul}64"
9028	;;
9029    esac
9030    case `$FILECMD conftest.$ac_objext` in
9031      *MSB*)
9032	emul="${emul}btsmip"
9033	;;
9034      *LSB*)
9035	emul="${emul}ltsmip"
9036	;;
9037    esac
9038    case `$FILECMD conftest.$ac_objext` in
9039      *N32*)
9040	emul="${emul}n32"
9041	;;
9042    esac
9043    LD="${LD-ld} -m $emul"
9044  fi
9045  rm -rf conftest*
9046  ;;
9047
9048x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9049s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9050  # Find out what ABI is being produced by ac_compile, and set linker
9051  # options accordingly.  Note that the listed cases only cover the
9052  # situations where additional linker options are needed (such as when
9053  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9054  # vice versa); the common cases where no linker options are needed do
9055  # not appear in the list.
9056  echo 'int i;' > conftest.$ac_ext
9057  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9058  (eval $ac_compile) 2>&5
9059  ac_status=$?
9060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9061  test $ac_status = 0; }; then
9062    case `$FILECMD conftest.o` in
9063      *32-bit*)
9064	case $host in
9065	  x86_64-*kfreebsd*-gnu)
9066	    LD="${LD-ld} -m elf_i386_fbsd"
9067	    ;;
9068	  x86_64-*linux*)
9069	    case `$FILECMD conftest.o` in
9070	      *x86-64*)
9071		LD="${LD-ld} -m elf32_x86_64"
9072		;;
9073	      *)
9074		LD="${LD-ld} -m elf_i386"
9075		;;
9076	    esac
9077	    ;;
9078	  powerpc64le-*linux*)
9079	    LD="${LD-ld} -m elf32lppclinux"
9080	    ;;
9081	  powerpc64-*linux*)
9082	    LD="${LD-ld} -m elf32ppclinux"
9083	    ;;
9084	  s390x-*linux*)
9085	    LD="${LD-ld} -m elf_s390"
9086	    ;;
9087	  sparc64-*linux*)
9088	    LD="${LD-ld} -m elf32_sparc"
9089	    ;;
9090	esac
9091	;;
9092      *64-bit*)
9093	case $host in
9094	  x86_64-*kfreebsd*-gnu)
9095	    LD="${LD-ld} -m elf_x86_64_fbsd"
9096	    ;;
9097	  x86_64-*linux*)
9098	    LD="${LD-ld} -m elf_x86_64"
9099	    ;;
9100	  powerpcle-*linux*)
9101	    LD="${LD-ld} -m elf64lppc"
9102	    ;;
9103	  powerpc-*linux*)
9104	    LD="${LD-ld} -m elf64ppc"
9105	    ;;
9106	  s390*-*linux*|s390*-*tpf*)
9107	    LD="${LD-ld} -m elf64_s390"
9108	    ;;
9109	  sparc*-*linux*)
9110	    LD="${LD-ld} -m elf64_sparc"
9111	    ;;
9112	esac
9113	;;
9114    esac
9115  fi
9116  rm -rf conftest*
9117  ;;
9118
9119*-*-sco3.2v5*)
9120  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9121  SAVE_CFLAGS=$CFLAGS
9122  CFLAGS="$CFLAGS -belf"
9123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9124printf %s "checking whether the C compiler needs -belf... " >&6; }
9125if test ${lt_cv_cc_needs_belf+y}
9126then :
9127  printf %s "(cached) " >&6
9128else $as_nop
9129  ac_ext=c
9130ac_cpp='$CPP $CPPFLAGS'
9131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9133ac_compiler_gnu=$ac_cv_c_compiler_gnu
9134
9135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136/* end confdefs.h.  */
9137
9138int
9139main (void)
9140{
9141
9142  ;
9143  return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_link "$LINENO"
9147then :
9148  lt_cv_cc_needs_belf=yes
9149else $as_nop
9150  lt_cv_cc_needs_belf=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.beam \
9153    conftest$ac_exeext conftest.$ac_ext
9154     ac_ext=c
9155ac_cpp='$CPP $CPPFLAGS'
9156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9158ac_compiler_gnu=$ac_cv_c_compiler_gnu
9159
9160fi
9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9162printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9163  if test yes != "$lt_cv_cc_needs_belf"; then
9164    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9165    CFLAGS=$SAVE_CFLAGS
9166  fi
9167  ;;
9168*-*solaris*)
9169  # Find out what ABI is being produced by ac_compile, and set linker
9170  # options accordingly.
9171  echo 'int i;' > conftest.$ac_ext
9172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9173  (eval $ac_compile) 2>&5
9174  ac_status=$?
9175  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176  test $ac_status = 0; }; then
9177    case `$FILECMD conftest.o` in
9178    *64-bit*)
9179      case $lt_cv_prog_gnu_ld in
9180      yes*)
9181        case $host in
9182        i?86-*-solaris*|x86_64-*-solaris*)
9183          LD="${LD-ld} -m elf_x86_64"
9184          ;;
9185        sparc*-*-solaris*)
9186          LD="${LD-ld} -m elf64_sparc"
9187          ;;
9188        esac
9189        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9190        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9191          LD=${LD-ld}_sol2
9192        fi
9193        ;;
9194      *)
9195	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9196	  LD="${LD-ld} -64"
9197	fi
9198	;;
9199      esac
9200      ;;
9201    esac
9202  fi
9203  rm -rf conftest*
9204  ;;
9205esac
9206
9207need_locks=$enable_libtool_lock
9208
9209if test -n "$ac_tool_prefix"; then
9210  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9211set dummy ${ac_tool_prefix}mt; ac_word=$2
9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213printf %s "checking for $ac_word... " >&6; }
9214if test ${ac_cv_prog_MANIFEST_TOOL+y}
9215then :
9216  printf %s "(cached) " >&6
9217else $as_nop
9218  if test -n "$MANIFEST_TOOL"; then
9219  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224  IFS=$as_save_IFS
9225  case $as_dir in #(((
9226    '') as_dir=./ ;;
9227    */) ;;
9228    *) as_dir=$as_dir/ ;;
9229  esac
9230    for ac_exec_ext in '' $ac_executable_extensions; do
9231  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9232    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9233    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9234    break 2
9235  fi
9236done
9237  done
9238IFS=$as_save_IFS
9239
9240fi
9241fi
9242MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9243if test -n "$MANIFEST_TOOL"; then
9244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9245printf "%s\n" "$MANIFEST_TOOL" >&6; }
9246else
9247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248printf "%s\n" "no" >&6; }
9249fi
9250
9251
9252fi
9253if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9254  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9255  # Extract the first word of "mt", so it can be a program name with args.
9256set dummy mt; ac_word=$2
9257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258printf %s "checking for $ac_word... " >&6; }
9259if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9260then :
9261  printf %s "(cached) " >&6
9262else $as_nop
9263  if test -n "$ac_ct_MANIFEST_TOOL"; then
9264  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9265else
9266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269  IFS=$as_save_IFS
9270  case $as_dir in #(((
9271    '') as_dir=./ ;;
9272    */) ;;
9273    *) as_dir=$as_dir/ ;;
9274  esac
9275    for ac_exec_ext in '' $ac_executable_extensions; do
9276  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9277    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9278    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9279    break 2
9280  fi
9281done
9282  done
9283IFS=$as_save_IFS
9284
9285fi
9286fi
9287ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9288if test -n "$ac_ct_MANIFEST_TOOL"; then
9289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9290printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9291else
9292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293printf "%s\n" "no" >&6; }
9294fi
9295
9296  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9297    MANIFEST_TOOL=":"
9298  else
9299    case $cross_compiling:$ac_tool_warned in
9300yes:)
9301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9302printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9303ac_tool_warned=yes ;;
9304esac
9305    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9306  fi
9307else
9308  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9309fi
9310
9311test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9313printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9314if test ${lt_cv_path_mainfest_tool+y}
9315then :
9316  printf %s "(cached) " >&6
9317else $as_nop
9318  lt_cv_path_mainfest_tool=no
9319  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9320  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9321  cat conftest.err >&5
9322  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9323    lt_cv_path_mainfest_tool=yes
9324  fi
9325  rm -f conftest*
9326fi
9327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9328printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9329if test yes != "$lt_cv_path_mainfest_tool"; then
9330  MANIFEST_TOOL=:
9331fi
9332
9333
9334
9335
9336
9337
9338  case $host_os in
9339    rhapsody* | darwin*)
9340    if test -n "$ac_tool_prefix"; then
9341  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9342set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344printf %s "checking for $ac_word... " >&6; }
9345if test ${ac_cv_prog_DSYMUTIL+y}
9346then :
9347  printf %s "(cached) " >&6
9348else $as_nop
9349  if test -n "$DSYMUTIL"; then
9350  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9351else
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355  IFS=$as_save_IFS
9356  case $as_dir in #(((
9357    '') as_dir=./ ;;
9358    */) ;;
9359    *) as_dir=$as_dir/ ;;
9360  esac
9361    for ac_exec_ext in '' $ac_executable_extensions; do
9362  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9363    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9364    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9365    break 2
9366  fi
9367done
9368  done
9369IFS=$as_save_IFS
9370
9371fi
9372fi
9373DSYMUTIL=$ac_cv_prog_DSYMUTIL
9374if test -n "$DSYMUTIL"; then
9375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9376printf "%s\n" "$DSYMUTIL" >&6; }
9377else
9378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379printf "%s\n" "no" >&6; }
9380fi
9381
9382
9383fi
9384if test -z "$ac_cv_prog_DSYMUTIL"; then
9385  ac_ct_DSYMUTIL=$DSYMUTIL
9386  # Extract the first word of "dsymutil", so it can be a program name with args.
9387set dummy dsymutil; ac_word=$2
9388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389printf %s "checking for $ac_word... " >&6; }
9390if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9391then :
9392  printf %s "(cached) " >&6
9393else $as_nop
9394  if test -n "$ac_ct_DSYMUTIL"; then
9395  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9396else
9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398for as_dir in $PATH
9399do
9400  IFS=$as_save_IFS
9401  case $as_dir in #(((
9402    '') as_dir=./ ;;
9403    */) ;;
9404    *) as_dir=$as_dir/ ;;
9405  esac
9406    for ac_exec_ext in '' $ac_executable_extensions; do
9407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9408    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9410    break 2
9411  fi
9412done
9413  done
9414IFS=$as_save_IFS
9415
9416fi
9417fi
9418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9419if test -n "$ac_ct_DSYMUTIL"; then
9420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9421printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9422else
9423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424printf "%s\n" "no" >&6; }
9425fi
9426
9427  if test "x$ac_ct_DSYMUTIL" = x; then
9428    DSYMUTIL=":"
9429  else
9430    case $cross_compiling:$ac_tool_warned in
9431yes:)
9432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9434ac_tool_warned=yes ;;
9435esac
9436    DSYMUTIL=$ac_ct_DSYMUTIL
9437  fi
9438else
9439  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9440fi
9441
9442    if test -n "$ac_tool_prefix"; then
9443  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9444set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446printf %s "checking for $ac_word... " >&6; }
9447if test ${ac_cv_prog_NMEDIT+y}
9448then :
9449  printf %s "(cached) " >&6
9450else $as_nop
9451  if test -n "$NMEDIT"; then
9452  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9453else
9454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455for as_dir in $PATH
9456do
9457  IFS=$as_save_IFS
9458  case $as_dir in #(((
9459    '') as_dir=./ ;;
9460    */) ;;
9461    *) as_dir=$as_dir/ ;;
9462  esac
9463    for ac_exec_ext in '' $ac_executable_extensions; do
9464  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9465    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9467    break 2
9468  fi
9469done
9470  done
9471IFS=$as_save_IFS
9472
9473fi
9474fi
9475NMEDIT=$ac_cv_prog_NMEDIT
9476if test -n "$NMEDIT"; then
9477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9478printf "%s\n" "$NMEDIT" >&6; }
9479else
9480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481printf "%s\n" "no" >&6; }
9482fi
9483
9484
9485fi
9486if test -z "$ac_cv_prog_NMEDIT"; then
9487  ac_ct_NMEDIT=$NMEDIT
9488  # Extract the first word of "nmedit", so it can be a program name with args.
9489set dummy nmedit; ac_word=$2
9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491printf %s "checking for $ac_word... " >&6; }
9492if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  if test -n "$ac_ct_NMEDIT"; then
9497  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9498else
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502  IFS=$as_save_IFS
9503  case $as_dir in #(((
9504    '') as_dir=./ ;;
9505    */) ;;
9506    *) as_dir=$as_dir/ ;;
9507  esac
9508    for ac_exec_ext in '' $ac_executable_extensions; do
9509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9510    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9512    break 2
9513  fi
9514done
9515  done
9516IFS=$as_save_IFS
9517
9518fi
9519fi
9520ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9521if test -n "$ac_ct_NMEDIT"; then
9522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9523printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9524else
9525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526printf "%s\n" "no" >&6; }
9527fi
9528
9529  if test "x$ac_ct_NMEDIT" = x; then
9530    NMEDIT=":"
9531  else
9532    case $cross_compiling:$ac_tool_warned in
9533yes:)
9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9536ac_tool_warned=yes ;;
9537esac
9538    NMEDIT=$ac_ct_NMEDIT
9539  fi
9540else
9541  NMEDIT="$ac_cv_prog_NMEDIT"
9542fi
9543
9544    if test -n "$ac_tool_prefix"; then
9545  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9546set dummy ${ac_tool_prefix}lipo; ac_word=$2
9547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548printf %s "checking for $ac_word... " >&6; }
9549if test ${ac_cv_prog_LIPO+y}
9550then :
9551  printf %s "(cached) " >&6
9552else $as_nop
9553  if test -n "$LIPO"; then
9554  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559  IFS=$as_save_IFS
9560  case $as_dir in #(((
9561    '') as_dir=./ ;;
9562    */) ;;
9563    *) as_dir=$as_dir/ ;;
9564  esac
9565    for ac_exec_ext in '' $ac_executable_extensions; do
9566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9567    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9569    break 2
9570  fi
9571done
9572  done
9573IFS=$as_save_IFS
9574
9575fi
9576fi
9577LIPO=$ac_cv_prog_LIPO
9578if test -n "$LIPO"; then
9579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9580printf "%s\n" "$LIPO" >&6; }
9581else
9582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583printf "%s\n" "no" >&6; }
9584fi
9585
9586
9587fi
9588if test -z "$ac_cv_prog_LIPO"; then
9589  ac_ct_LIPO=$LIPO
9590  # Extract the first word of "lipo", so it can be a program name with args.
9591set dummy lipo; ac_word=$2
9592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593printf %s "checking for $ac_word... " >&6; }
9594if test ${ac_cv_prog_ac_ct_LIPO+y}
9595then :
9596  printf %s "(cached) " >&6
9597else $as_nop
9598  if test -n "$ac_ct_LIPO"; then
9599  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604  IFS=$as_save_IFS
9605  case $as_dir in #(((
9606    '') as_dir=./ ;;
9607    */) ;;
9608    *) as_dir=$as_dir/ ;;
9609  esac
9610    for ac_exec_ext in '' $ac_executable_extensions; do
9611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9612    ac_cv_prog_ac_ct_LIPO="lipo"
9613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9614    break 2
9615  fi
9616done
9617  done
9618IFS=$as_save_IFS
9619
9620fi
9621fi
9622ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9623if test -n "$ac_ct_LIPO"; then
9624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9625printf "%s\n" "$ac_ct_LIPO" >&6; }
9626else
9627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628printf "%s\n" "no" >&6; }
9629fi
9630
9631  if test "x$ac_ct_LIPO" = x; then
9632    LIPO=":"
9633  else
9634    case $cross_compiling:$ac_tool_warned in
9635yes:)
9636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9638ac_tool_warned=yes ;;
9639esac
9640    LIPO=$ac_ct_LIPO
9641  fi
9642else
9643  LIPO="$ac_cv_prog_LIPO"
9644fi
9645
9646    if test -n "$ac_tool_prefix"; then
9647  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9648set dummy ${ac_tool_prefix}otool; ac_word=$2
9649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650printf %s "checking for $ac_word... " >&6; }
9651if test ${ac_cv_prog_OTOOL+y}
9652then :
9653  printf %s "(cached) " >&6
9654else $as_nop
9655  if test -n "$OTOOL"; then
9656  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9657else
9658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659for as_dir in $PATH
9660do
9661  IFS=$as_save_IFS
9662  case $as_dir in #(((
9663    '') as_dir=./ ;;
9664    */) ;;
9665    *) as_dir=$as_dir/ ;;
9666  esac
9667    for ac_exec_ext in '' $ac_executable_extensions; do
9668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9669    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9671    break 2
9672  fi
9673done
9674  done
9675IFS=$as_save_IFS
9676
9677fi
9678fi
9679OTOOL=$ac_cv_prog_OTOOL
9680if test -n "$OTOOL"; then
9681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9682printf "%s\n" "$OTOOL" >&6; }
9683else
9684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685printf "%s\n" "no" >&6; }
9686fi
9687
9688
9689fi
9690if test -z "$ac_cv_prog_OTOOL"; then
9691  ac_ct_OTOOL=$OTOOL
9692  # Extract the first word of "otool", so it can be a program name with args.
9693set dummy otool; ac_word=$2
9694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695printf %s "checking for $ac_word... " >&6; }
9696if test ${ac_cv_prog_ac_ct_OTOOL+y}
9697then :
9698  printf %s "(cached) " >&6
9699else $as_nop
9700  if test -n "$ac_ct_OTOOL"; then
9701  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9702else
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706  IFS=$as_save_IFS
9707  case $as_dir in #(((
9708    '') as_dir=./ ;;
9709    */) ;;
9710    *) as_dir=$as_dir/ ;;
9711  esac
9712    for ac_exec_ext in '' $ac_executable_extensions; do
9713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9714    ac_cv_prog_ac_ct_OTOOL="otool"
9715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9716    break 2
9717  fi
9718done
9719  done
9720IFS=$as_save_IFS
9721
9722fi
9723fi
9724ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9725if test -n "$ac_ct_OTOOL"; then
9726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9727printf "%s\n" "$ac_ct_OTOOL" >&6; }
9728else
9729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730printf "%s\n" "no" >&6; }
9731fi
9732
9733  if test "x$ac_ct_OTOOL" = x; then
9734    OTOOL=":"
9735  else
9736    case $cross_compiling:$ac_tool_warned in
9737yes:)
9738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9739printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9740ac_tool_warned=yes ;;
9741esac
9742    OTOOL=$ac_ct_OTOOL
9743  fi
9744else
9745  OTOOL="$ac_cv_prog_OTOOL"
9746fi
9747
9748    if test -n "$ac_tool_prefix"; then
9749  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9750set dummy ${ac_tool_prefix}otool64; ac_word=$2
9751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752printf %s "checking for $ac_word... " >&6; }
9753if test ${ac_cv_prog_OTOOL64+y}
9754then :
9755  printf %s "(cached) " >&6
9756else $as_nop
9757  if test -n "$OTOOL64"; then
9758  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9759else
9760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761for as_dir in $PATH
9762do
9763  IFS=$as_save_IFS
9764  case $as_dir in #(((
9765    '') as_dir=./ ;;
9766    */) ;;
9767    *) as_dir=$as_dir/ ;;
9768  esac
9769    for ac_exec_ext in '' $ac_executable_extensions; do
9770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9771    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9773    break 2
9774  fi
9775done
9776  done
9777IFS=$as_save_IFS
9778
9779fi
9780fi
9781OTOOL64=$ac_cv_prog_OTOOL64
9782if test -n "$OTOOL64"; then
9783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9784printf "%s\n" "$OTOOL64" >&6; }
9785else
9786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787printf "%s\n" "no" >&6; }
9788fi
9789
9790
9791fi
9792if test -z "$ac_cv_prog_OTOOL64"; then
9793  ac_ct_OTOOL64=$OTOOL64
9794  # Extract the first word of "otool64", so it can be a program name with args.
9795set dummy otool64; ac_word=$2
9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797printf %s "checking for $ac_word... " >&6; }
9798if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9799then :
9800  printf %s "(cached) " >&6
9801else $as_nop
9802  if test -n "$ac_ct_OTOOL64"; then
9803  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9804else
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808  IFS=$as_save_IFS
9809  case $as_dir in #(((
9810    '') as_dir=./ ;;
9811    */) ;;
9812    *) as_dir=$as_dir/ ;;
9813  esac
9814    for ac_exec_ext in '' $ac_executable_extensions; do
9815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9816    ac_cv_prog_ac_ct_OTOOL64="otool64"
9817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9818    break 2
9819  fi
9820done
9821  done
9822IFS=$as_save_IFS
9823
9824fi
9825fi
9826ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9827if test -n "$ac_ct_OTOOL64"; then
9828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9829printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9830else
9831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832printf "%s\n" "no" >&6; }
9833fi
9834
9835  if test "x$ac_ct_OTOOL64" = x; then
9836    OTOOL64=":"
9837  else
9838    case $cross_compiling:$ac_tool_warned in
9839yes:)
9840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9842ac_tool_warned=yes ;;
9843esac
9844    OTOOL64=$ac_ct_OTOOL64
9845  fi
9846else
9847  OTOOL64="$ac_cv_prog_OTOOL64"
9848fi
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9877printf %s "checking for -single_module linker flag... " >&6; }
9878if test ${lt_cv_apple_cc_single_mod+y}
9879then :
9880  printf %s "(cached) " >&6
9881else $as_nop
9882  lt_cv_apple_cc_single_mod=no
9883      if test -z "$LT_MULTI_MODULE"; then
9884	# By default we will add the -single_module flag. You can override
9885	# by either setting the environment variable LT_MULTI_MODULE
9886	# non-empty at configure time, or by adding -multi_module to the
9887	# link flags.
9888	rm -rf libconftest.dylib*
9889	echo "int foo(void){return 1;}" > conftest.c
9890	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9891-dynamiclib -Wl,-single_module conftest.c" >&5
9892	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9893	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9894        _lt_result=$?
9895	# If there is a non-empty error log, and "single_module"
9896	# appears in it, assume the flag caused a linker warning
9897        if test -s conftest.err && $GREP single_module conftest.err; then
9898	  cat conftest.err >&5
9899	# Otherwise, if the output was created with a 0 exit code from
9900	# the compiler, it worked.
9901	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9902	  lt_cv_apple_cc_single_mod=yes
9903	else
9904	  cat conftest.err >&5
9905	fi
9906	rm -rf libconftest.dylib*
9907	rm -f conftest.*
9908      fi
9909fi
9910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9911printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9912
9913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9914printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9915if test ${lt_cv_ld_exported_symbols_list+y}
9916then :
9917  printf %s "(cached) " >&6
9918else $as_nop
9919  lt_cv_ld_exported_symbols_list=no
9920      save_LDFLAGS=$LDFLAGS
9921      echo "_main" > conftest.sym
9922      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924/* end confdefs.h.  */
9925
9926int
9927main (void)
9928{
9929
9930  ;
9931  return 0;
9932}
9933_ACEOF
9934if ac_fn_c_try_link "$LINENO"
9935then :
9936  lt_cv_ld_exported_symbols_list=yes
9937else $as_nop
9938  lt_cv_ld_exported_symbols_list=no
9939fi
9940rm -f core conftest.err conftest.$ac_objext conftest.beam \
9941    conftest$ac_exeext conftest.$ac_ext
9942	LDFLAGS=$save_LDFLAGS
9943
9944fi
9945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9946printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9947
9948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9949printf %s "checking for -force_load linker flag... " >&6; }
9950if test ${lt_cv_ld_force_load+y}
9951then :
9952  printf %s "(cached) " >&6
9953else $as_nop
9954  lt_cv_ld_force_load=no
9955      cat > conftest.c << _LT_EOF
9956int forced_loaded() { return 2;}
9957_LT_EOF
9958      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9959      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9960      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9961      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9962      echo "$RANLIB libconftest.a" >&5
9963      $RANLIB libconftest.a 2>&5
9964      cat > conftest.c << _LT_EOF
9965int main() { return 0;}
9966_LT_EOF
9967      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9968      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9969      _lt_result=$?
9970      if test -s conftest.err && $GREP force_load conftest.err; then
9971	cat conftest.err >&5
9972      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9973	lt_cv_ld_force_load=yes
9974      else
9975	cat conftest.err >&5
9976      fi
9977        rm -f conftest.err libconftest.a conftest conftest.c
9978        rm -rf conftest.dSYM
9979
9980fi
9981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9982printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9983    case $host_os in
9984    rhapsody* | darwin1.[012])
9985      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9986    darwin1.*)
9987      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9988    darwin*)
9989      case $MACOSX_DEPLOYMENT_TARGET,$host in
9990        10.[012],*|,*powerpc*-darwin[5-8]*)
9991          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9992        *)
9993          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9994      esac
9995    ;;
9996  esac
9997    if test yes = "$lt_cv_apple_cc_single_mod"; then
9998      _lt_dar_single_mod='$single_module'
9999    fi
10000    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10001      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10002    else
10003      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10004    fi
10005    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10006      _lt_dsymutil='~$DSYMUTIL $lib || :'
10007    else
10008      _lt_dsymutil=
10009    fi
10010    ;;
10011  esac
10012
10013# func_munge_path_list VARIABLE PATH
10014# -----------------------------------
10015# VARIABLE is name of variable containing _space_ separated list of
10016# directories to be munged by the contents of PATH, which is string
10017# having a format:
10018# "DIR[:DIR]:"
10019#       string "DIR[ DIR]" will be prepended to VARIABLE
10020# ":DIR[:DIR]"
10021#       string "DIR[ DIR]" will be appended to VARIABLE
10022# "DIRP[:DIRP]::[DIRA:]DIRA"
10023#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10024#       "DIRA[ DIRA]" will be appended to VARIABLE
10025# "DIR[:DIR]"
10026#       VARIABLE will be replaced by "DIR[ DIR]"
10027func_munge_path_list ()
10028{
10029    case x$2 in
10030    x)
10031        ;;
10032    *:)
10033        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10034        ;;
10035    x:*)
10036        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10037        ;;
10038    *::*)
10039        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10040        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10041        ;;
10042    *)
10043        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10044        ;;
10045    esac
10046}
10047
10048ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10049"
10050if test "x$ac_cv_header_dlfcn_h" = xyes
10051then :
10052  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10053
10054fi
10055
10056
10057
10058func_stripname_cnf ()
10059{
10060  case $2 in
10061  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10062  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10063  esac
10064} # func_stripname_cnf
10065
10066
10067
10068
10069
10070# Set options
10071enable_win32_dll=yes
10072
10073case $host in
10074*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10075  if test -n "$ac_tool_prefix"; then
10076  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10077set dummy ${ac_tool_prefix}as; ac_word=$2
10078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079printf %s "checking for $ac_word... " >&6; }
10080if test ${ac_cv_prog_AS+y}
10081then :
10082  printf %s "(cached) " >&6
10083else $as_nop
10084  if test -n "$AS"; then
10085  ac_cv_prog_AS="$AS" # Let the user override the test.
10086else
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090  IFS=$as_save_IFS
10091  case $as_dir in #(((
10092    '') as_dir=./ ;;
10093    */) ;;
10094    *) as_dir=$as_dir/ ;;
10095  esac
10096    for ac_exec_ext in '' $ac_executable_extensions; do
10097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10098    ac_cv_prog_AS="${ac_tool_prefix}as"
10099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10100    break 2
10101  fi
10102done
10103  done
10104IFS=$as_save_IFS
10105
10106fi
10107fi
10108AS=$ac_cv_prog_AS
10109if test -n "$AS"; then
10110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10111printf "%s\n" "$AS" >&6; }
10112else
10113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114printf "%s\n" "no" >&6; }
10115fi
10116
10117
10118fi
10119if test -z "$ac_cv_prog_AS"; then
10120  ac_ct_AS=$AS
10121  # Extract the first word of "as", so it can be a program name with args.
10122set dummy as; ac_word=$2
10123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124printf %s "checking for $ac_word... " >&6; }
10125if test ${ac_cv_prog_ac_ct_AS+y}
10126then :
10127  printf %s "(cached) " >&6
10128else $as_nop
10129  if test -n "$ac_ct_AS"; then
10130  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10131else
10132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133for as_dir in $PATH
10134do
10135  IFS=$as_save_IFS
10136  case $as_dir in #(((
10137    '') as_dir=./ ;;
10138    */) ;;
10139    *) as_dir=$as_dir/ ;;
10140  esac
10141    for ac_exec_ext in '' $ac_executable_extensions; do
10142  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10143    ac_cv_prog_ac_ct_AS="as"
10144    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10145    break 2
10146  fi
10147done
10148  done
10149IFS=$as_save_IFS
10150
10151fi
10152fi
10153ac_ct_AS=$ac_cv_prog_ac_ct_AS
10154if test -n "$ac_ct_AS"; then
10155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10156printf "%s\n" "$ac_ct_AS" >&6; }
10157else
10158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159printf "%s\n" "no" >&6; }
10160fi
10161
10162  if test "x$ac_ct_AS" = x; then
10163    AS="false"
10164  else
10165    case $cross_compiling:$ac_tool_warned in
10166yes:)
10167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10168printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10169ac_tool_warned=yes ;;
10170esac
10171    AS=$ac_ct_AS
10172  fi
10173else
10174  AS="$ac_cv_prog_AS"
10175fi
10176
10177  if test -n "$ac_tool_prefix"; then
10178  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10179set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181printf %s "checking for $ac_word... " >&6; }
10182if test ${ac_cv_prog_DLLTOOL+y}
10183then :
10184  printf %s "(cached) " >&6
10185else $as_nop
10186  if test -n "$DLLTOOL"; then
10187  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10188else
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192  IFS=$as_save_IFS
10193  case $as_dir in #(((
10194    '') as_dir=./ ;;
10195    */) ;;
10196    *) as_dir=$as_dir/ ;;
10197  esac
10198    for ac_exec_ext in '' $ac_executable_extensions; do
10199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10200    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10202    break 2
10203  fi
10204done
10205  done
10206IFS=$as_save_IFS
10207
10208fi
10209fi
10210DLLTOOL=$ac_cv_prog_DLLTOOL
10211if test -n "$DLLTOOL"; then
10212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10213printf "%s\n" "$DLLTOOL" >&6; }
10214else
10215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216printf "%s\n" "no" >&6; }
10217fi
10218
10219
10220fi
10221if test -z "$ac_cv_prog_DLLTOOL"; then
10222  ac_ct_DLLTOOL=$DLLTOOL
10223  # Extract the first word of "dlltool", so it can be a program name with args.
10224set dummy dlltool; ac_word=$2
10225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226printf %s "checking for $ac_word... " >&6; }
10227if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10228then :
10229  printf %s "(cached) " >&6
10230else $as_nop
10231  if test -n "$ac_ct_DLLTOOL"; then
10232  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237  IFS=$as_save_IFS
10238  case $as_dir in #(((
10239    '') as_dir=./ ;;
10240    */) ;;
10241    *) as_dir=$as_dir/ ;;
10242  esac
10243    for ac_exec_ext in '' $ac_executable_extensions; do
10244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10245    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10247    break 2
10248  fi
10249done
10250  done
10251IFS=$as_save_IFS
10252
10253fi
10254fi
10255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10256if test -n "$ac_ct_DLLTOOL"; then
10257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10258printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10259else
10260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261printf "%s\n" "no" >&6; }
10262fi
10263
10264  if test "x$ac_ct_DLLTOOL" = x; then
10265    DLLTOOL="false"
10266  else
10267    case $cross_compiling:$ac_tool_warned in
10268yes:)
10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10271ac_tool_warned=yes ;;
10272esac
10273    DLLTOOL=$ac_ct_DLLTOOL
10274  fi
10275else
10276  DLLTOOL="$ac_cv_prog_DLLTOOL"
10277fi
10278
10279  if test -n "$ac_tool_prefix"; then
10280  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10281set dummy ${ac_tool_prefix}objdump; ac_word=$2
10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283printf %s "checking for $ac_word... " >&6; }
10284if test ${ac_cv_prog_OBJDUMP+y}
10285then :
10286  printf %s "(cached) " >&6
10287else $as_nop
10288  if test -n "$OBJDUMP"; then
10289  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294  IFS=$as_save_IFS
10295  case $as_dir in #(((
10296    '') as_dir=./ ;;
10297    */) ;;
10298    *) as_dir=$as_dir/ ;;
10299  esac
10300    for ac_exec_ext in '' $ac_executable_extensions; do
10301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10302    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10304    break 2
10305  fi
10306done
10307  done
10308IFS=$as_save_IFS
10309
10310fi
10311fi
10312OBJDUMP=$ac_cv_prog_OBJDUMP
10313if test -n "$OBJDUMP"; then
10314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10315printf "%s\n" "$OBJDUMP" >&6; }
10316else
10317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318printf "%s\n" "no" >&6; }
10319fi
10320
10321
10322fi
10323if test -z "$ac_cv_prog_OBJDUMP"; then
10324  ac_ct_OBJDUMP=$OBJDUMP
10325  # Extract the first word of "objdump", so it can be a program name with args.
10326set dummy objdump; ac_word=$2
10327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328printf %s "checking for $ac_word... " >&6; }
10329if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10330then :
10331  printf %s "(cached) " >&6
10332else $as_nop
10333  if test -n "$ac_ct_OBJDUMP"; then
10334  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339  IFS=$as_save_IFS
10340  case $as_dir in #(((
10341    '') as_dir=./ ;;
10342    */) ;;
10343    *) as_dir=$as_dir/ ;;
10344  esac
10345    for ac_exec_ext in '' $ac_executable_extensions; do
10346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10347    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10349    break 2
10350  fi
10351done
10352  done
10353IFS=$as_save_IFS
10354
10355fi
10356fi
10357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10358if test -n "$ac_ct_OBJDUMP"; then
10359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10360printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10361else
10362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363printf "%s\n" "no" >&6; }
10364fi
10365
10366  if test "x$ac_ct_OBJDUMP" = x; then
10367    OBJDUMP="false"
10368  else
10369    case $cross_compiling:$ac_tool_warned in
10370yes:)
10371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10373ac_tool_warned=yes ;;
10374esac
10375    OBJDUMP=$ac_ct_OBJDUMP
10376  fi
10377else
10378  OBJDUMP="$ac_cv_prog_OBJDUMP"
10379fi
10380
10381  ;;
10382esac
10383
10384test -z "$AS" && AS=as
10385
10386
10387
10388
10389
10390test -z "$DLLTOOL" && DLLTOOL=dlltool
10391
10392
10393
10394
10395
10396test -z "$OBJDUMP" && OBJDUMP=objdump
10397
10398
10399
10400
10401
10402
10403
10404        enable_dlopen=no
10405
10406
10407
10408            # Check whether --enable-shared was given.
10409if test ${enable_shared+y}
10410then :
10411  enableval=$enable_shared; p=${PACKAGE-default}
10412    case $enableval in
10413    yes) enable_shared=yes ;;
10414    no) enable_shared=no ;;
10415    *)
10416      enable_shared=no
10417      # Look at the argument we got.  We use all the common list separators.
10418      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10419      for pkg in $enableval; do
10420	IFS=$lt_save_ifs
10421	if test "X$pkg" = "X$p"; then
10422	  enable_shared=yes
10423	fi
10424      done
10425      IFS=$lt_save_ifs
10426      ;;
10427    esac
10428else $as_nop
10429  enable_shared=yes
10430fi
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440  # Check whether --enable-static was given.
10441if test ${enable_static+y}
10442then :
10443  enableval=$enable_static; p=${PACKAGE-default}
10444    case $enableval in
10445    yes) enable_static=yes ;;
10446    no) enable_static=no ;;
10447    *)
10448     enable_static=no
10449      # Look at the argument we got.  We use all the common list separators.
10450      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10451      for pkg in $enableval; do
10452	IFS=$lt_save_ifs
10453	if test "X$pkg" = "X$p"; then
10454	  enable_static=yes
10455	fi
10456      done
10457      IFS=$lt_save_ifs
10458      ;;
10459    esac
10460else $as_nop
10461  enable_static=yes
10462fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473# Check whether --with-pic was given.
10474if test ${with_pic+y}
10475then :
10476  withval=$with_pic; lt_p=${PACKAGE-default}
10477    case $withval in
10478    yes|no) pic_mode=$withval ;;
10479    *)
10480      pic_mode=default
10481      # Look at the argument we got.  We use all the common list separators.
10482      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10483      for lt_pkg in $withval; do
10484	IFS=$lt_save_ifs
10485	if test "X$lt_pkg" = "X$lt_p"; then
10486	  pic_mode=yes
10487	fi
10488      done
10489      IFS=$lt_save_ifs
10490      ;;
10491    esac
10492else $as_nop
10493  pic_mode=default
10494fi
10495
10496
10497
10498
10499
10500
10501
10502
10503  # Check whether --enable-fast-install was given.
10504if test ${enable_fast_install+y}
10505then :
10506  enableval=$enable_fast_install; p=${PACKAGE-default}
10507    case $enableval in
10508    yes) enable_fast_install=yes ;;
10509    no) enable_fast_install=no ;;
10510    *)
10511      enable_fast_install=no
10512      # Look at the argument we got.  We use all the common list separators.
10513      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10514      for pkg in $enableval; do
10515	IFS=$lt_save_ifs
10516	if test "X$pkg" = "X$p"; then
10517	  enable_fast_install=yes
10518	fi
10519      done
10520      IFS=$lt_save_ifs
10521      ;;
10522    esac
10523else $as_nop
10524  enable_fast_install=yes
10525fi
10526
10527
10528
10529
10530
10531
10532
10533
10534  shared_archive_member_spec=
10535case $host,$enable_shared in
10536power*-*-aix[5-9]*,yes)
10537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10538printf %s "checking which variant of shared library versioning to provide... " >&6; }
10539
10540# Check whether --with-aix-soname was given.
10541if test ${with_aix_soname+y}
10542then :
10543  withval=$with_aix_soname; case $withval in
10544    aix|svr4|both)
10545      ;;
10546    *)
10547      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10548      ;;
10549    esac
10550    lt_cv_with_aix_soname=$with_aix_soname
10551else $as_nop
10552  if test ${lt_cv_with_aix_soname+y}
10553then :
10554  printf %s "(cached) " >&6
10555else $as_nop
10556  lt_cv_with_aix_soname=aix
10557fi
10558
10559    with_aix_soname=$lt_cv_with_aix_soname
10560fi
10561
10562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10563printf "%s\n" "$with_aix_soname" >&6; }
10564  if test aix != "$with_aix_soname"; then
10565    # For the AIX way of multilib, we name the shared archive member
10566    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10567    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10568    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10569    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10570    if test 64 = "${OBJECT_MODE-32}"; then
10571      shared_archive_member_spec=shr_64
10572    else
10573      shared_archive_member_spec=shr
10574    fi
10575  fi
10576  ;;
10577*)
10578  with_aix_soname=aix
10579  ;;
10580esac
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591# This can be used to rebuild libtool when needed
10592LIBTOOL_DEPS=$ltmain
10593
10594# Always use our own libtool.
10595LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626test -z "$LN_S" && LN_S="ln -s"
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641if test -n "${ZSH_VERSION+set}"; then
10642   setopt NO_GLOB_SUBST
10643fi
10644
10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10646printf %s "checking for objdir... " >&6; }
10647if test ${lt_cv_objdir+y}
10648then :
10649  printf %s "(cached) " >&6
10650else $as_nop
10651  rm -f .libs 2>/dev/null
10652mkdir .libs 2>/dev/null
10653if test -d .libs; then
10654  lt_cv_objdir=.libs
10655else
10656  # MS-DOS does not allow filenames that begin with a dot.
10657  lt_cv_objdir=_libs
10658fi
10659rmdir .libs 2>/dev/null
10660fi
10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10662printf "%s\n" "$lt_cv_objdir" >&6; }
10663objdir=$lt_cv_objdir
10664
10665
10666
10667
10668
10669printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10670
10671
10672
10673
10674case $host_os in
10675aix3*)
10676  # AIX sometimes has problems with the GCC collect2 program.  For some
10677  # reason, if we set the COLLECT_NAMES environment variable, the problems
10678  # vanish in a puff of smoke.
10679  if test set != "${COLLECT_NAMES+set}"; then
10680    COLLECT_NAMES=
10681    export COLLECT_NAMES
10682  fi
10683  ;;
10684esac
10685
10686# Global variables:
10687ofile=libtool
10688can_build_shared=yes
10689
10690# All known linkers require a '.a' archive for static linking (except MSVC and
10691# ICC, which need '.lib').
10692libext=a
10693
10694with_gnu_ld=$lt_cv_prog_gnu_ld
10695
10696old_CC=$CC
10697old_CFLAGS=$CFLAGS
10698
10699# Set sane defaults for various variables
10700test -z "$CC" && CC=cc
10701test -z "$LTCC" && LTCC=$CC
10702test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10703test -z "$LD" && LD=ld
10704test -z "$ac_objext" && ac_objext=o
10705
10706func_cc_basename $compiler
10707cc_basename=$func_cc_basename_result
10708
10709
10710# Only perform the check for file, if the check method requires it
10711test -z "$MAGIC_CMD" && MAGIC_CMD=file
10712case $deplibs_check_method in
10713file_magic*)
10714  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10715    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10716printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10717if test ${lt_cv_path_MAGIC_CMD+y}
10718then :
10719  printf %s "(cached) " >&6
10720else $as_nop
10721  case $MAGIC_CMD in
10722[\\/*] |  ?:[\\/]*)
10723  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10724  ;;
10725*)
10726  lt_save_MAGIC_CMD=$MAGIC_CMD
10727  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10728  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10729  for ac_dir in $ac_dummy; do
10730    IFS=$lt_save_ifs
10731    test -z "$ac_dir" && ac_dir=.
10732    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10733      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10734      if test -n "$file_magic_test_file"; then
10735	case $deplibs_check_method in
10736	"file_magic "*)
10737	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10738	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10739	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10740	    $EGREP "$file_magic_regex" > /dev/null; then
10741	    :
10742	  else
10743	    cat <<_LT_EOF 1>&2
10744
10745*** Warning: the command libtool uses to detect shared libraries,
10746*** $file_magic_cmd, produces output that libtool cannot recognize.
10747*** The result is that libtool may fail to recognize shared libraries
10748*** as such.  This will affect the creation of libtool libraries that
10749*** depend on shared libraries, but programs linked with such libtool
10750*** libraries will work regardless of this problem.  Nevertheless, you
10751*** may want to report the problem to your system manager and/or to
10752*** bug-libtool@gnu.org
10753
10754_LT_EOF
10755	  fi ;;
10756	esac
10757      fi
10758      break
10759    fi
10760  done
10761  IFS=$lt_save_ifs
10762  MAGIC_CMD=$lt_save_MAGIC_CMD
10763  ;;
10764esac
10765fi
10766
10767MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10768if test -n "$MAGIC_CMD"; then
10769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10770printf "%s\n" "$MAGIC_CMD" >&6; }
10771else
10772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773printf "%s\n" "no" >&6; }
10774fi
10775
10776
10777
10778
10779
10780if test -z "$lt_cv_path_MAGIC_CMD"; then
10781  if test -n "$ac_tool_prefix"; then
10782    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10783printf %s "checking for file... " >&6; }
10784if test ${lt_cv_path_MAGIC_CMD+y}
10785then :
10786  printf %s "(cached) " >&6
10787else $as_nop
10788  case $MAGIC_CMD in
10789[\\/*] |  ?:[\\/]*)
10790  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10791  ;;
10792*)
10793  lt_save_MAGIC_CMD=$MAGIC_CMD
10794  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10795  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10796  for ac_dir in $ac_dummy; do
10797    IFS=$lt_save_ifs
10798    test -z "$ac_dir" && ac_dir=.
10799    if test -f "$ac_dir/file"; then
10800      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10801      if test -n "$file_magic_test_file"; then
10802	case $deplibs_check_method in
10803	"file_magic "*)
10804	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10805	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10806	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10807	    $EGREP "$file_magic_regex" > /dev/null; then
10808	    :
10809	  else
10810	    cat <<_LT_EOF 1>&2
10811
10812*** Warning: the command libtool uses to detect shared libraries,
10813*** $file_magic_cmd, produces output that libtool cannot recognize.
10814*** The result is that libtool may fail to recognize shared libraries
10815*** as such.  This will affect the creation of libtool libraries that
10816*** depend on shared libraries, but programs linked with such libtool
10817*** libraries will work regardless of this problem.  Nevertheless, you
10818*** may want to report the problem to your system manager and/or to
10819*** bug-libtool@gnu.org
10820
10821_LT_EOF
10822	  fi ;;
10823	esac
10824      fi
10825      break
10826    fi
10827  done
10828  IFS=$lt_save_ifs
10829  MAGIC_CMD=$lt_save_MAGIC_CMD
10830  ;;
10831esac
10832fi
10833
10834MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10835if test -n "$MAGIC_CMD"; then
10836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10837printf "%s\n" "$MAGIC_CMD" >&6; }
10838else
10839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840printf "%s\n" "no" >&6; }
10841fi
10842
10843
10844  else
10845    MAGIC_CMD=:
10846  fi
10847fi
10848
10849  fi
10850  ;;
10851esac
10852
10853# Use C for the default configuration in the libtool script
10854
10855lt_save_CC=$CC
10856ac_ext=c
10857ac_cpp='$CPP $CPPFLAGS'
10858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862
10863# Source file extension for C test sources.
10864ac_ext=c
10865
10866# Object file extension for compiled C test sources.
10867objext=o
10868objext=$objext
10869
10870# Code to be used in simple compile tests
10871lt_simple_compile_test_code="int some_variable = 0;"
10872
10873# Code to be used in simple link tests
10874lt_simple_link_test_code='int main(){return(0);}'
10875
10876
10877
10878
10879
10880
10881
10882# If no C compiler was specified, use CC.
10883LTCC=${LTCC-"$CC"}
10884
10885# If no C compiler flags were specified, use CFLAGS.
10886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10887
10888# Allow CC to be a program name with arguments.
10889compiler=$CC
10890
10891# Save the default compiler, since it gets overwritten when the other
10892# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10893compiler_DEFAULT=$CC
10894
10895# save warnings/boilerplate of simple test code
10896ac_outfile=conftest.$ac_objext
10897echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10898eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10899_lt_compiler_boilerplate=`cat conftest.err`
10900$RM conftest*
10901
10902ac_outfile=conftest.$ac_objext
10903echo "$lt_simple_link_test_code" >conftest.$ac_ext
10904eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10905_lt_linker_boilerplate=`cat conftest.err`
10906$RM -r conftest*
10907
10908
10909## CAVEAT EMPTOR:
10910## There is no encapsulation within the following macros, do not change
10911## the running order or otherwise move them around unless you know exactly
10912## what you are doing...
10913if test -n "$compiler"; then
10914
10915lt_prog_compiler_no_builtin_flag=
10916
10917if test yes = "$GCC"; then
10918  case $cc_basename in
10919  nvcc*)
10920    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10921  *)
10922    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10923  esac
10924
10925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10926printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10927if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10928then :
10929  printf %s "(cached) " >&6
10930else $as_nop
10931  lt_cv_prog_compiler_rtti_exceptions=no
10932   ac_outfile=conftest.$ac_objext
10933   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10934   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10935   # Insert the option either (1) after the last *FLAGS variable, or
10936   # (2) before a word containing "conftest.", or (3) at the end.
10937   # Note that $ac_compile itself does not contain backslashes and begins
10938   # with a dollar sign (not a hyphen), so the echo should work correctly.
10939   # The option is referenced via a variable to avoid confusing sed.
10940   lt_compile=`echo "$ac_compile" | $SED \
10941   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10942   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10943   -e 's:$: $lt_compiler_flag:'`
10944   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10945   (eval "$lt_compile" 2>conftest.err)
10946   ac_status=$?
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   if (exit $ac_status) && test -s "$ac_outfile"; then
10950     # The compiler can only warn and ignore the option if not recognized
10951     # So say no if there are warnings other than the usual output.
10952     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10953     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10954     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10955       lt_cv_prog_compiler_rtti_exceptions=yes
10956     fi
10957   fi
10958   $RM conftest*
10959
10960fi
10961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10962printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10963
10964if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10965    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10966else
10967    :
10968fi
10969
10970fi
10971
10972
10973
10974
10975
10976
10977  lt_prog_compiler_wl=
10978lt_prog_compiler_pic=
10979lt_prog_compiler_static=
10980
10981
10982  if test yes = "$GCC"; then
10983    lt_prog_compiler_wl='-Wl,'
10984    lt_prog_compiler_static='-static'
10985
10986    case $host_os in
10987      aix*)
10988      # All AIX code is PIC.
10989      if test ia64 = "$host_cpu"; then
10990	# AIX 5 now supports IA64 processor
10991	lt_prog_compiler_static='-Bstatic'
10992      fi
10993      lt_prog_compiler_pic='-fPIC'
10994      ;;
10995
10996    amigaos*)
10997      case $host_cpu in
10998      powerpc)
10999            # see comment about AmigaOS4 .so support
11000            lt_prog_compiler_pic='-fPIC'
11001        ;;
11002      m68k)
11003            # FIXME: we need at least 68020 code to build shared libraries, but
11004            # adding the '-m68020' flag to GCC prevents building anything better,
11005            # like '-m68040'.
11006            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11007        ;;
11008      esac
11009      ;;
11010
11011    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11012      # PIC is the default for these OSes.
11013      ;;
11014
11015    mingw* | cygwin* | pw32* | os2* | cegcc*)
11016      # This hack is so that the source file can tell whether it is being
11017      # built for inclusion in a dll (and should export symbols for example).
11018      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11019      # (--disable-auto-import) libraries
11020      lt_prog_compiler_pic='-DDLL_EXPORT'
11021      case $host_os in
11022      os2*)
11023	lt_prog_compiler_static='$wl-static'
11024	;;
11025      esac
11026      ;;
11027
11028    darwin* | rhapsody*)
11029      # PIC is the default on this platform
11030      # Common symbols not allowed in MH_DYLIB files
11031      lt_prog_compiler_pic='-fno-common'
11032      ;;
11033
11034    haiku*)
11035      # PIC is the default for Haiku.
11036      # The "-static" flag exists, but is broken.
11037      lt_prog_compiler_static=
11038      ;;
11039
11040    hpux*)
11041      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11042      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11043      # sets the default TLS model and affects inlining.
11044      case $host_cpu in
11045      hppa*64*)
11046	# +Z the default
11047	;;
11048      *)
11049	lt_prog_compiler_pic='-fPIC'
11050	;;
11051      esac
11052      ;;
11053
11054    interix[3-9]*)
11055      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11056      # Instead, we relocate shared libraries at runtime.
11057      ;;
11058
11059    msdosdjgpp*)
11060      # Just because we use GCC doesn't mean we suddenly get shared libraries
11061      # on systems that don't support them.
11062      lt_prog_compiler_can_build_shared=no
11063      enable_shared=no
11064      ;;
11065
11066    *nto* | *qnx*)
11067      # QNX uses GNU C++, but need to define -shared option too, otherwise
11068      # it will coredump.
11069      lt_prog_compiler_pic='-fPIC -shared'
11070      ;;
11071
11072    sysv4*MP*)
11073      if test -d /usr/nec; then
11074	lt_prog_compiler_pic=-Kconform_pic
11075      fi
11076      ;;
11077
11078    *)
11079      lt_prog_compiler_pic='-fPIC'
11080      ;;
11081    esac
11082
11083    case $cc_basename in
11084    nvcc*) # Cuda Compiler Driver 2.2
11085      lt_prog_compiler_wl='-Xlinker '
11086      if test -n "$lt_prog_compiler_pic"; then
11087        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11088      fi
11089      ;;
11090    esac
11091  else
11092    # PORTME Check for flag to pass linker flags through the system compiler.
11093    case $host_os in
11094    aix*)
11095      lt_prog_compiler_wl='-Wl,'
11096      if test ia64 = "$host_cpu"; then
11097	# AIX 5 now supports IA64 processor
11098	lt_prog_compiler_static='-Bstatic'
11099      else
11100	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11101      fi
11102      ;;
11103
11104    darwin* | rhapsody*)
11105      # PIC is the default on this platform
11106      # Common symbols not allowed in MH_DYLIB files
11107      lt_prog_compiler_pic='-fno-common'
11108      case $cc_basename in
11109      nagfor*)
11110        # NAG Fortran compiler
11111        lt_prog_compiler_wl='-Wl,-Wl,,'
11112        lt_prog_compiler_pic='-PIC'
11113        lt_prog_compiler_static='-Bstatic'
11114        ;;
11115      esac
11116      ;;
11117
11118    mingw* | cygwin* | pw32* | os2* | cegcc*)
11119      # This hack is so that the source file can tell whether it is being
11120      # built for inclusion in a dll (and should export symbols for example).
11121      lt_prog_compiler_pic='-DDLL_EXPORT'
11122      case $host_os in
11123      os2*)
11124	lt_prog_compiler_static='$wl-static'
11125	;;
11126      esac
11127      ;;
11128
11129    hpux9* | hpux10* | hpux11*)
11130      lt_prog_compiler_wl='-Wl,'
11131      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11132      # not for PA HP-UX.
11133      case $host_cpu in
11134      hppa*64*|ia64*)
11135	# +Z the default
11136	;;
11137      *)
11138	lt_prog_compiler_pic='+Z'
11139	;;
11140      esac
11141      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11142      lt_prog_compiler_static='$wl-a ${wl}archive'
11143      ;;
11144
11145    irix5* | irix6* | nonstopux*)
11146      lt_prog_compiler_wl='-Wl,'
11147      # PIC (with -KPIC) is the default.
11148      lt_prog_compiler_static='-non_shared'
11149      ;;
11150
11151    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11152      case $cc_basename in
11153      # old Intel for x86_64, which still supported -KPIC.
11154      ecc*)
11155	lt_prog_compiler_wl='-Wl,'
11156	lt_prog_compiler_pic='-KPIC'
11157	lt_prog_compiler_static='-static'
11158        ;;
11159      # flang / f18. f95 an alias for gfortran or flang on Debian
11160      flang* | f18* | f95*)
11161	lt_prog_compiler_wl='-Wl,'
11162	lt_prog_compiler_pic='-fPIC'
11163	lt_prog_compiler_static='-static'
11164        ;;
11165      # icc used to be incompatible with GCC.
11166      # ICC 10 doesn't accept -KPIC any more.
11167      icc* | ifort*)
11168	lt_prog_compiler_wl='-Wl,'
11169	lt_prog_compiler_pic='-fPIC'
11170	lt_prog_compiler_static='-static'
11171        ;;
11172      # Lahey Fortran 8.1.
11173      lf95*)
11174	lt_prog_compiler_wl='-Wl,'
11175	lt_prog_compiler_pic='--shared'
11176	lt_prog_compiler_static='--static'
11177	;;
11178      nagfor*)
11179	# NAG Fortran compiler
11180	lt_prog_compiler_wl='-Wl,-Wl,,'
11181	lt_prog_compiler_pic='-PIC'
11182	lt_prog_compiler_static='-Bstatic'
11183	;;
11184      tcc*)
11185	# Fabrice Bellard et al's Tiny C Compiler
11186	lt_prog_compiler_wl='-Wl,'
11187	lt_prog_compiler_pic='-fPIC'
11188	lt_prog_compiler_static='-static'
11189	;;
11190      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11191        # Portland Group compilers (*not* the Pentium gcc compiler,
11192	# which looks to be a dead project)
11193	lt_prog_compiler_wl='-Wl,'
11194	lt_prog_compiler_pic='-fpic'
11195	lt_prog_compiler_static='-Bstatic'
11196        ;;
11197      ccc*)
11198        lt_prog_compiler_wl='-Wl,'
11199        # All Alpha code is PIC.
11200        lt_prog_compiler_static='-non_shared'
11201        ;;
11202      xl* | bgxl* | bgf* | mpixl*)
11203	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11204	lt_prog_compiler_wl='-Wl,'
11205	lt_prog_compiler_pic='-qpic'
11206	lt_prog_compiler_static='-qstaticlink'
11207	;;
11208      *)
11209	case `$CC -V 2>&1 | $SED 5q` in
11210	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11211	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11212	  lt_prog_compiler_pic='-KPIC'
11213	  lt_prog_compiler_static='-Bstatic'
11214	  lt_prog_compiler_wl=''
11215	  ;;
11216	*Sun\ F* | *Sun*Fortran*)
11217	  lt_prog_compiler_pic='-KPIC'
11218	  lt_prog_compiler_static='-Bstatic'
11219	  lt_prog_compiler_wl='-Qoption ld '
11220	  ;;
11221	*Sun\ C*)
11222	  # Sun C 5.9
11223	  lt_prog_compiler_pic='-KPIC'
11224	  lt_prog_compiler_static='-Bstatic'
11225	  lt_prog_compiler_wl='-Wl,'
11226	  ;;
11227        *Intel*\ [CF]*Compiler*)
11228	  lt_prog_compiler_wl='-Wl,'
11229	  lt_prog_compiler_pic='-fPIC'
11230	  lt_prog_compiler_static='-static'
11231	  ;;
11232	*Portland\ Group*)
11233	  lt_prog_compiler_wl='-Wl,'
11234	  lt_prog_compiler_pic='-fpic'
11235	  lt_prog_compiler_static='-Bstatic'
11236	  ;;
11237	esac
11238	;;
11239      esac
11240      ;;
11241
11242    newsos6)
11243      lt_prog_compiler_pic='-KPIC'
11244      lt_prog_compiler_static='-Bstatic'
11245      ;;
11246
11247    *nto* | *qnx*)
11248      # QNX uses GNU C++, but need to define -shared option too, otherwise
11249      # it will coredump.
11250      lt_prog_compiler_pic='-fPIC -shared'
11251      ;;
11252
11253    osf3* | osf4* | osf5*)
11254      lt_prog_compiler_wl='-Wl,'
11255      # All OSF/1 code is PIC.
11256      lt_prog_compiler_static='-non_shared'
11257      ;;
11258
11259    rdos*)
11260      lt_prog_compiler_static='-non_shared'
11261      ;;
11262
11263    solaris*)
11264      lt_prog_compiler_pic='-KPIC'
11265      lt_prog_compiler_static='-Bstatic'
11266      case $cc_basename in
11267      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11268	lt_prog_compiler_wl='-Qoption ld ';;
11269      *)
11270	lt_prog_compiler_wl='-Wl,';;
11271      esac
11272      ;;
11273
11274    sunos4*)
11275      lt_prog_compiler_wl='-Qoption ld '
11276      lt_prog_compiler_pic='-PIC'
11277      lt_prog_compiler_static='-Bstatic'
11278      ;;
11279
11280    sysv4 | sysv4.2uw2* | sysv4.3*)
11281      lt_prog_compiler_wl='-Wl,'
11282      lt_prog_compiler_pic='-KPIC'
11283      lt_prog_compiler_static='-Bstatic'
11284      ;;
11285
11286    sysv4*MP*)
11287      if test -d /usr/nec; then
11288	lt_prog_compiler_pic='-Kconform_pic'
11289	lt_prog_compiler_static='-Bstatic'
11290      fi
11291      ;;
11292
11293    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11294      lt_prog_compiler_wl='-Wl,'
11295      lt_prog_compiler_pic='-KPIC'
11296      lt_prog_compiler_static='-Bstatic'
11297      ;;
11298
11299    unicos*)
11300      lt_prog_compiler_wl='-Wl,'
11301      lt_prog_compiler_can_build_shared=no
11302      ;;
11303
11304    uts4*)
11305      lt_prog_compiler_pic='-pic'
11306      lt_prog_compiler_static='-Bstatic'
11307      ;;
11308
11309    *)
11310      lt_prog_compiler_can_build_shared=no
11311      ;;
11312    esac
11313  fi
11314
11315case $host_os in
11316  # For platforms that do not support PIC, -DPIC is meaningless:
11317  *djgpp*)
11318    lt_prog_compiler_pic=
11319    ;;
11320  *)
11321    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11322    ;;
11323esac
11324
11325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11326printf %s "checking for $compiler option to produce PIC... " >&6; }
11327if test ${lt_cv_prog_compiler_pic+y}
11328then :
11329  printf %s "(cached) " >&6
11330else $as_nop
11331  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11332fi
11333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11334printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11335lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11336
11337#
11338# Check to make sure the PIC flag actually works.
11339#
11340if test -n "$lt_prog_compiler_pic"; then
11341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11342printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11343if test ${lt_cv_prog_compiler_pic_works+y}
11344then :
11345  printf %s "(cached) " >&6
11346else $as_nop
11347  lt_cv_prog_compiler_pic_works=no
11348   ac_outfile=conftest.$ac_objext
11349   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11350   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11351   # Insert the option either (1) after the last *FLAGS variable, or
11352   # (2) before a word containing "conftest.", or (3) at the end.
11353   # Note that $ac_compile itself does not contain backslashes and begins
11354   # with a dollar sign (not a hyphen), so the echo should work correctly.
11355   # The option is referenced via a variable to avoid confusing sed.
11356   lt_compile=`echo "$ac_compile" | $SED \
11357   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11358   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11359   -e 's:$: $lt_compiler_flag:'`
11360   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11361   (eval "$lt_compile" 2>conftest.err)
11362   ac_status=$?
11363   cat conftest.err >&5
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   if (exit $ac_status) && test -s "$ac_outfile"; then
11366     # The compiler can only warn and ignore the option if not recognized
11367     # So say no if there are warnings other than the usual output.
11368     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11369     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11370     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11371       lt_cv_prog_compiler_pic_works=yes
11372     fi
11373   fi
11374   $RM conftest*
11375
11376fi
11377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11378printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11379
11380if test yes = "$lt_cv_prog_compiler_pic_works"; then
11381    case $lt_prog_compiler_pic in
11382     "" | " "*) ;;
11383     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11384     esac
11385else
11386    lt_prog_compiler_pic=
11387     lt_prog_compiler_can_build_shared=no
11388fi
11389
11390fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402#
11403# Check to make sure the static flag actually works.
11404#
11405wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11407printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11408if test ${lt_cv_prog_compiler_static_works+y}
11409then :
11410  printf %s "(cached) " >&6
11411else $as_nop
11412  lt_cv_prog_compiler_static_works=no
11413   save_LDFLAGS=$LDFLAGS
11414   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11415   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11416   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11417     # The linker can only warn and ignore the option if not recognized
11418     # So say no if there are warnings
11419     if test -s conftest.err; then
11420       # Append any errors to the config.log.
11421       cat conftest.err 1>&5
11422       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11423       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11424       if diff conftest.exp conftest.er2 >/dev/null; then
11425         lt_cv_prog_compiler_static_works=yes
11426       fi
11427     else
11428       lt_cv_prog_compiler_static_works=yes
11429     fi
11430   fi
11431   $RM -r conftest*
11432   LDFLAGS=$save_LDFLAGS
11433
11434fi
11435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11436printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11437
11438if test yes = "$lt_cv_prog_compiler_static_works"; then
11439    :
11440else
11441    lt_prog_compiler_static=
11442fi
11443
11444
11445
11446
11447
11448
11449
11450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11451printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11452if test ${lt_cv_prog_compiler_c_o+y}
11453then :
11454  printf %s "(cached) " >&6
11455else $as_nop
11456  lt_cv_prog_compiler_c_o=no
11457   $RM -r conftest 2>/dev/null
11458   mkdir conftest
11459   cd conftest
11460   mkdir out
11461   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11462
11463   lt_compiler_flag="-o out/conftest2.$ac_objext"
11464   # Insert the option either (1) after the last *FLAGS variable, or
11465   # (2) before a word containing "conftest.", or (3) at the end.
11466   # Note that $ac_compile itself does not contain backslashes and begins
11467   # with a dollar sign (not a hyphen), so the echo should work correctly.
11468   lt_compile=`echo "$ac_compile" | $SED \
11469   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11471   -e 's:$: $lt_compiler_flag:'`
11472   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11473   (eval "$lt_compile" 2>out/conftest.err)
11474   ac_status=$?
11475   cat out/conftest.err >&5
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11478   then
11479     # The compiler can only warn and ignore the option if not recognized
11480     # So say no if there are warnings
11481     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11482     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11483     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11484       lt_cv_prog_compiler_c_o=yes
11485     fi
11486   fi
11487   chmod u+w . 2>&5
11488   $RM conftest*
11489   # SGI C++ compiler will create directory out/ii_files/ for
11490   # template instantiation
11491   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11492   $RM out/* && rmdir out
11493   cd ..
11494   $RM -r conftest
11495   $RM conftest*
11496
11497fi
11498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11499printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11500
11501
11502
11503
11504
11505
11506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11507printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11508if test ${lt_cv_prog_compiler_c_o+y}
11509then :
11510  printf %s "(cached) " >&6
11511else $as_nop
11512  lt_cv_prog_compiler_c_o=no
11513   $RM -r conftest 2>/dev/null
11514   mkdir conftest
11515   cd conftest
11516   mkdir out
11517   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11518
11519   lt_compiler_flag="-o out/conftest2.$ac_objext"
11520   # Insert the option either (1) after the last *FLAGS variable, or
11521   # (2) before a word containing "conftest.", or (3) at the end.
11522   # Note that $ac_compile itself does not contain backslashes and begins
11523   # with a dollar sign (not a hyphen), so the echo should work correctly.
11524   lt_compile=`echo "$ac_compile" | $SED \
11525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11527   -e 's:$: $lt_compiler_flag:'`
11528   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11529   (eval "$lt_compile" 2>out/conftest.err)
11530   ac_status=$?
11531   cat out/conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11534   then
11535     # The compiler can only warn and ignore the option if not recognized
11536     # So say no if there are warnings
11537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11538     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11539     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11540       lt_cv_prog_compiler_c_o=yes
11541     fi
11542   fi
11543   chmod u+w . 2>&5
11544   $RM conftest*
11545   # SGI C++ compiler will create directory out/ii_files/ for
11546   # template instantiation
11547   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11548   $RM out/* && rmdir out
11549   cd ..
11550   $RM -r conftest
11551   $RM conftest*
11552
11553fi
11554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11555printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11556
11557
11558
11559
11560hard_links=nottested
11561if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11562  # do not overwrite the value of need_locks provided by the user
11563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11564printf %s "checking if we can lock with hard links... " >&6; }
11565  hard_links=yes
11566  $RM conftest*
11567  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11568  touch conftest.a
11569  ln conftest.a conftest.b 2>&5 || hard_links=no
11570  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11572printf "%s\n" "$hard_links" >&6; }
11573  if test no = "$hard_links"; then
11574    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11575printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11576    need_locks=warn
11577  fi
11578else
11579  need_locks=no
11580fi
11581
11582
11583
11584
11585
11586
11587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11588printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11589
11590  runpath_var=
11591  allow_undefined_flag=
11592  always_export_symbols=no
11593  archive_cmds=
11594  archive_expsym_cmds=
11595  compiler_needs_object=no
11596  enable_shared_with_static_runtimes=no
11597  export_dynamic_flag_spec=
11598  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11599  hardcode_automatic=no
11600  hardcode_direct=no
11601  hardcode_direct_absolute=no
11602  hardcode_libdir_flag_spec=
11603  hardcode_libdir_separator=
11604  hardcode_minus_L=no
11605  hardcode_shlibpath_var=unsupported
11606  inherit_rpath=no
11607  link_all_deplibs=unknown
11608  module_cmds=
11609  module_expsym_cmds=
11610  old_archive_from_new_cmds=
11611  old_archive_from_expsyms_cmds=
11612  thread_safe_flag_spec=
11613  whole_archive_flag_spec=
11614  # include_expsyms should be a list of space-separated symbols to be *always*
11615  # included in the symbol list
11616  include_expsyms=
11617  # exclude_expsyms can be an extended regexp of symbols to exclude
11618  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11619  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11620  # as well as any symbol that contains 'd'.
11621  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11622  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11623  # platforms (ab)use it in PIC code, but their linkers get confused if
11624  # the symbol is explicitly referenced.  Since portable code cannot
11625  # rely on this symbol name, it's probably fine to never include it in
11626  # preloaded symbol tables.
11627  # Exclude shared library initialization/finalization symbols.
11628  extract_expsyms_cmds=
11629
11630  case $host_os in
11631  cygwin* | mingw* | pw32* | cegcc*)
11632    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11633    # When not using gcc, we currently assume that we are using
11634    # Microsoft Visual C++ or Intel C++ Compiler.
11635    if test yes != "$GCC"; then
11636      with_gnu_ld=no
11637    fi
11638    ;;
11639  interix*)
11640    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11641    with_gnu_ld=yes
11642    ;;
11643  openbsd* | bitrig*)
11644    with_gnu_ld=no
11645    ;;
11646  linux* | k*bsd*-gnu | gnu*)
11647    link_all_deplibs=no
11648    ;;
11649  esac
11650
11651  ld_shlibs=yes
11652
11653  # On some targets, GNU ld is compatible enough with the native linker
11654  # that we're better off using the native interface for both.
11655  lt_use_gnu_ld_interface=no
11656  if test yes = "$with_gnu_ld"; then
11657    case $host_os in
11658      aix*)
11659	# The AIX port of GNU ld has always aspired to compatibility
11660	# with the native linker.  However, as the warning in the GNU ld
11661	# block says, versions before 2.19.5* couldn't really create working
11662	# shared libraries, regardless of the interface used.
11663	case `$LD -v 2>&1` in
11664	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11665	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11666	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11667	  *)
11668	    lt_use_gnu_ld_interface=yes
11669	    ;;
11670	esac
11671	;;
11672      *)
11673	lt_use_gnu_ld_interface=yes
11674	;;
11675    esac
11676  fi
11677
11678  if test yes = "$lt_use_gnu_ld_interface"; then
11679    # If archive_cmds runs LD, not CC, wlarc should be empty
11680    wlarc='$wl'
11681
11682    # Set some defaults for GNU ld with shared library support. These
11683    # are reset later if shared libraries are not supported. Putting them
11684    # here allows them to be overridden if necessary.
11685    runpath_var=LD_RUN_PATH
11686    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11687    export_dynamic_flag_spec='$wl--export-dynamic'
11688    # ancient GNU ld didn't support --whole-archive et. al.
11689    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11690      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11691    else
11692      whole_archive_flag_spec=
11693    fi
11694    supports_anon_versioning=no
11695    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11696      *GNU\ gold*) supports_anon_versioning=yes ;;
11697      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11698      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11699      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11700      *\ 2.11.*) ;; # other 2.11 versions
11701      *) supports_anon_versioning=yes ;;
11702    esac
11703
11704    # See if GNU ld supports shared libraries.
11705    case $host_os in
11706    aix[3-9]*)
11707      # On AIX/PPC, the GNU linker is very broken
11708      if test ia64 != "$host_cpu"; then
11709	ld_shlibs=no
11710	cat <<_LT_EOF 1>&2
11711
11712*** Warning: the GNU linker, at least up to release 2.19, is reported
11713*** to be unable to reliably create shared libraries on AIX.
11714*** Therefore, libtool is disabling shared libraries support.  If you
11715*** really care for shared libraries, you may want to install binutils
11716*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11717*** You will then need to restart the configuration process.
11718
11719_LT_EOF
11720      fi
11721      ;;
11722
11723    amigaos*)
11724      case $host_cpu in
11725      powerpc)
11726            # see comment about AmigaOS4 .so support
11727            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11728            archive_expsym_cmds=''
11729        ;;
11730      m68k)
11731            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)'
11732            hardcode_libdir_flag_spec='-L$libdir'
11733            hardcode_minus_L=yes
11734        ;;
11735      esac
11736      ;;
11737
11738    beos*)
11739      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11740	allow_undefined_flag=unsupported
11741	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11742	# support --undefined.  This deserves some investigation.  FIXME
11743	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11744      else
11745	ld_shlibs=no
11746      fi
11747      ;;
11748
11749    cygwin* | mingw* | pw32* | cegcc*)
11750      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11751      # as there is no search path for DLLs.
11752      hardcode_libdir_flag_spec='-L$libdir'
11753      export_dynamic_flag_spec='$wl--export-all-symbols'
11754      allow_undefined_flag=unsupported
11755      always_export_symbols=no
11756      enable_shared_with_static_runtimes=yes
11757      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'
11758      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11759
11760      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11761        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11762	# If the export-symbols file already is a .def file, use it as
11763	# is; otherwise, prepend EXPORTS...
11764	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11765          cp $export_symbols $output_objdir/$soname.def;
11766        else
11767          echo EXPORTS > $output_objdir/$soname.def;
11768          cat $export_symbols >> $output_objdir/$soname.def;
11769        fi~
11770        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11771      else
11772	ld_shlibs=no
11773      fi
11774      ;;
11775
11776    haiku*)
11777      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11778      link_all_deplibs=yes
11779      ;;
11780
11781    os2*)
11782      hardcode_libdir_flag_spec='-L$libdir'
11783      hardcode_minus_L=yes
11784      allow_undefined_flag=unsupported
11785      shrext_cmds=.dll
11786      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11787	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11788	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11789	$ECHO EXPORTS >> $output_objdir/$libname.def~
11790	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11791	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11792	emximp -o $lib $output_objdir/$libname.def'
11793      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11794	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11795	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11796	$ECHO EXPORTS >> $output_objdir/$libname.def~
11797	prefix_cmds="$SED"~
11798	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11799	  prefix_cmds="$prefix_cmds -e 1d";
11800	fi~
11801	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11802	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11803	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11804	emximp -o $lib $output_objdir/$libname.def'
11805      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11806      enable_shared_with_static_runtimes=yes
11807      file_list_spec='@'
11808      ;;
11809
11810    interix[3-9]*)
11811      hardcode_direct=no
11812      hardcode_shlibpath_var=no
11813      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11814      export_dynamic_flag_spec='$wl-E'
11815      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11816      # Instead, shared libraries are loaded at an image base (0x10000000 by
11817      # default) and relocated if they conflict, which is a slow very memory
11818      # consuming and fragmenting process.  To avoid this, we pick a random,
11819      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11820      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11821      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11822      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'
11823      ;;
11824
11825    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11826      tmp_diet=no
11827      if test linux-dietlibc = "$host_os"; then
11828	case $cc_basename in
11829	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11830	esac
11831      fi
11832      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11833	 && test no = "$tmp_diet"
11834      then
11835	tmp_addflag=' $pic_flag'
11836	tmp_sharedflag='-shared'
11837	case $cc_basename,$host_cpu in
11838        pgcc*)				# Portland Group C compiler
11839	  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'
11840	  tmp_addflag=' $pic_flag'
11841	  ;;
11842	pgf77* | pgf90* | pgf95* | pgfortran*)
11843					# Portland Group f77 and f90 compilers
11844	  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'
11845	  tmp_addflag=' $pic_flag -Mnomain' ;;
11846	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11847	  tmp_addflag=' -i_dynamic' ;;
11848	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11849	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11850	ifc* | ifort*)			# Intel Fortran compiler
11851	  tmp_addflag=' -nofor_main' ;;
11852	lf95*)				# Lahey Fortran 8.1
11853	  whole_archive_flag_spec=
11854	  tmp_sharedflag='--shared' ;;
11855        nagfor*)                        # NAGFOR 5.3
11856          tmp_sharedflag='-Wl,-shared' ;;
11857	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11858	  tmp_sharedflag='-qmkshrobj'
11859	  tmp_addflag= ;;
11860	nvcc*)	# Cuda Compiler Driver 2.2
11861	  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'
11862	  compiler_needs_object=yes
11863	  ;;
11864	esac
11865	case `$CC -V 2>&1 | $SED 5q` in
11866	*Sun\ C*)			# Sun C 5.9
11867	  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'
11868	  compiler_needs_object=yes
11869	  tmp_sharedflag='-G' ;;
11870	*Sun\ F*)			# Sun Fortran 8.3
11871	  tmp_sharedflag='-G' ;;
11872	esac
11873	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11874
11875        if test yes = "$supports_anon_versioning"; then
11876          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11877            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11878            echo "local: *; };" >> $output_objdir/$libname.ver~
11879            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11880        fi
11881
11882	case $cc_basename in
11883	tcc*)
11884	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11885	  export_dynamic_flag_spec='-rdynamic'
11886	  ;;
11887	xlf* | bgf* | bgxlf* | mpixlf*)
11888	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11889	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11890	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11891	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11892	  if test yes = "$supports_anon_versioning"; then
11893	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11894              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11895              echo "local: *; };" >> $output_objdir/$libname.ver~
11896              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11897	  fi
11898	  ;;
11899	esac
11900      else
11901        ld_shlibs=no
11902      fi
11903      ;;
11904
11905    netbsd* | netbsdelf*-gnu)
11906      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11907	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11908	wlarc=
11909      else
11910	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11911	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11912      fi
11913      ;;
11914
11915    solaris*)
11916      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11917	ld_shlibs=no
11918	cat <<_LT_EOF 1>&2
11919
11920*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11921*** create shared libraries on Solaris systems.  Therefore, libtool
11922*** is disabling shared libraries support.  We urge you to upgrade GNU
11923*** binutils to release 2.9.1 or newer.  Another option is to modify
11924*** your PATH or compiler configuration so that the native linker is
11925*** used, and then restart.
11926
11927_LT_EOF
11928      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11929	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11930	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11931      else
11932	ld_shlibs=no
11933      fi
11934      ;;
11935
11936    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11937      case `$LD -v 2>&1` in
11938        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11939	ld_shlibs=no
11940	cat <<_LT_EOF 1>&2
11941
11942*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11943*** reliably create shared libraries on SCO systems.  Therefore, libtool
11944*** is disabling shared libraries support.  We urge you to upgrade GNU
11945*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11946*** your PATH or compiler configuration so that the native linker is
11947*** used, and then restart.
11948
11949_LT_EOF
11950	;;
11951	*)
11952	  # For security reasons, it is highly recommended that you always
11953	  # use absolute paths for naming shared libraries, and exclude the
11954	  # DT_RUNPATH tag from executables and libraries.  But doing so
11955	  # requires that you compile everything twice, which is a pain.
11956	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11957	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11958	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11959	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11960	  else
11961	    ld_shlibs=no
11962	  fi
11963	;;
11964      esac
11965      ;;
11966
11967    sunos4*)
11968      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11969      wlarc=
11970      hardcode_direct=yes
11971      hardcode_shlibpath_var=no
11972      ;;
11973
11974    *)
11975      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11976	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11977	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11978      else
11979	ld_shlibs=no
11980      fi
11981      ;;
11982    esac
11983
11984    if test no = "$ld_shlibs"; then
11985      runpath_var=
11986      hardcode_libdir_flag_spec=
11987      export_dynamic_flag_spec=
11988      whole_archive_flag_spec=
11989    fi
11990  else
11991    # PORTME fill in a description of your system's linker (not GNU ld)
11992    case $host_os in
11993    aix3*)
11994      allow_undefined_flag=unsupported
11995      always_export_symbols=yes
11996      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'
11997      # Note: this linker hardcodes the directories in LIBPATH if there
11998      # are no directories specified by -L.
11999      hardcode_minus_L=yes
12000      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12001	# Neither direct hardcoding nor static linking is supported with a
12002	# broken collect2.
12003	hardcode_direct=unsupported
12004      fi
12005      ;;
12006
12007    aix[4-9]*)
12008      if test ia64 = "$host_cpu"; then
12009	# On IA64, the linker does run time linking by default, so we don't
12010	# have to do anything special.
12011	aix_use_runtimelinking=no
12012	exp_sym_flag='-Bexport'
12013	no_entry_flag=
12014      else
12015	# If we're using GNU nm, then we don't want the "-C" option.
12016	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12017	# Without the "-l" option, or with the "-B" option, AIX nm treats
12018	# weak defined symbols like other global defined symbols, whereas
12019	# GNU nm marks them as "W".
12020	# While the 'weak' keyword is ignored in the Export File, we need
12021	# it in the Import File for the 'aix-soname' feature, so we have
12022	# to replace the "-B" option with "-P" for AIX nm.
12023	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12024	  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'
12025	else
12026	  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 == "L") || (\$ 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'
12027	fi
12028	aix_use_runtimelinking=no
12029
12030	# Test if we are trying to use run time linking or normal
12031	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12032	# have runtime linking enabled, and use it for executables.
12033	# For shared libraries, we enable/disable runtime linking
12034	# depending on the kind of the shared library created -
12035	# when "with_aix_soname,aix_use_runtimelinking" is:
12036	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12037	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12038	#            lib.a           static archive
12039	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12040	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12041	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12042	#            lib.a(lib.so.V) shared, rtl:no
12043	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12044	#            lib.a           static archive
12045	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12046	  for ld_flag in $LDFLAGS; do
12047	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12048	    aix_use_runtimelinking=yes
12049	    break
12050	  fi
12051	  done
12052	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12053	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12054	    # so we don't have lib.a shared libs to link our executables.
12055	    # We have to force runtime linking in this case.
12056	    aix_use_runtimelinking=yes
12057	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12058	  fi
12059	  ;;
12060	esac
12061
12062	exp_sym_flag='-bexport'
12063	no_entry_flag='-bnoentry'
12064      fi
12065
12066      # When large executables or shared objects are built, AIX ld can
12067      # have problems creating the table of contents.  If linking a library
12068      # or program results in "error TOC overflow" add -mminimal-toc to
12069      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12070      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12071
12072      archive_cmds=''
12073      hardcode_direct=yes
12074      hardcode_direct_absolute=yes
12075      hardcode_libdir_separator=':'
12076      link_all_deplibs=yes
12077      file_list_spec='$wl-f,'
12078      case $with_aix_soname,$aix_use_runtimelinking in
12079      aix,*) ;; # traditional, no import file
12080      svr4,* | *,yes) # use import file
12081	# The Import File defines what to hardcode.
12082	hardcode_direct=no
12083	hardcode_direct_absolute=no
12084	;;
12085      esac
12086
12087      if test yes = "$GCC"; then
12088	case $host_os in aix4.[012]|aix4.[012].*)
12089	# We only want to do this on AIX 4.2 and lower, the check
12090	# below for broken collect2 doesn't work under 4.3+
12091	  collect2name=`$CC -print-prog-name=collect2`
12092	  if test -f "$collect2name" &&
12093	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12094	  then
12095	  # We have reworked collect2
12096	  :
12097	  else
12098	  # We have old collect2
12099	  hardcode_direct=unsupported
12100	  # It fails to find uninstalled libraries when the uninstalled
12101	  # path is not listed in the libpath.  Setting hardcode_minus_L
12102	  # to unsupported forces relinking
12103	  hardcode_minus_L=yes
12104	  hardcode_libdir_flag_spec='-L$libdir'
12105	  hardcode_libdir_separator=
12106	  fi
12107	  ;;
12108	esac
12109	shared_flag='-shared'
12110	if test yes = "$aix_use_runtimelinking"; then
12111	  shared_flag="$shared_flag "'$wl-G'
12112	fi
12113	# Need to ensure runtime linking is disabled for the traditional
12114	# shared library, or the linker may eventually find shared libraries
12115	# /with/ Import File - we do not want to mix them.
12116	shared_flag_aix='-shared'
12117	shared_flag_svr4='-shared $wl-G'
12118      else
12119	# not using gcc
12120	if test ia64 = "$host_cpu"; then
12121	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12122	# chokes on -Wl,-G. The following line is correct:
12123	  shared_flag='-G'
12124	else
12125	  if test yes = "$aix_use_runtimelinking"; then
12126	    shared_flag='$wl-G'
12127	  else
12128	    shared_flag='$wl-bM:SRE'
12129	  fi
12130	  shared_flag_aix='$wl-bM:SRE'
12131	  shared_flag_svr4='$wl-G'
12132	fi
12133      fi
12134
12135      export_dynamic_flag_spec='$wl-bexpall'
12136      # It seems that -bexpall does not export symbols beginning with
12137      # underscore (_), so it is better to generate a list of symbols to export.
12138      always_export_symbols=yes
12139      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12140	# Warning - without using the other runtime loading flags (-brtl),
12141	# -berok will link without error, but may produce a broken library.
12142	allow_undefined_flag='-berok'
12143        # Determine the default libpath from the value encoded in an
12144        # empty executable.
12145        if test set = "${lt_cv_aix_libpath+set}"; then
12146  aix_libpath=$lt_cv_aix_libpath
12147else
12148  if test ${lt_cv_aix_libpath_+y}
12149then :
12150  printf %s "(cached) " >&6
12151else $as_nop
12152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153/* end confdefs.h.  */
12154
12155int
12156main (void)
12157{
12158
12159  ;
12160  return 0;
12161}
12162_ACEOF
12163if ac_fn_c_try_link "$LINENO"
12164then :
12165
12166  lt_aix_libpath_sed='
12167      /Import File Strings/,/^$/ {
12168	  /^0/ {
12169	      s/^0  *\([^ ]*\) *$/\1/
12170	      p
12171	  }
12172      }'
12173  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12174  # Check for a 64-bit object if we didn't find anything.
12175  if test -z "$lt_cv_aix_libpath_"; then
12176    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12177  fi
12178fi
12179rm -f core conftest.err conftest.$ac_objext conftest.beam \
12180    conftest$ac_exeext conftest.$ac_ext
12181  if test -z "$lt_cv_aix_libpath_"; then
12182    lt_cv_aix_libpath_=/usr/lib:/lib
12183  fi
12184
12185fi
12186
12187  aix_libpath=$lt_cv_aix_libpath_
12188fi
12189
12190        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12191        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
12192      else
12193	if test ia64 = "$host_cpu"; then
12194	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12195	  allow_undefined_flag="-z nodefs"
12196	  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"
12197	else
12198	 # Determine the default libpath from the value encoded in an
12199	 # empty executable.
12200	 if test set = "${lt_cv_aix_libpath+set}"; then
12201  aix_libpath=$lt_cv_aix_libpath
12202else
12203  if test ${lt_cv_aix_libpath_+y}
12204then :
12205  printf %s "(cached) " >&6
12206else $as_nop
12207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h.  */
12209
12210int
12211main (void)
12212{
12213
12214  ;
12215  return 0;
12216}
12217_ACEOF
12218if ac_fn_c_try_link "$LINENO"
12219then :
12220
12221  lt_aix_libpath_sed='
12222      /Import File Strings/,/^$/ {
12223	  /^0/ {
12224	      s/^0  *\([^ ]*\) *$/\1/
12225	      p
12226	  }
12227      }'
12228  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12229  # Check for a 64-bit object if we didn't find anything.
12230  if test -z "$lt_cv_aix_libpath_"; then
12231    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12232  fi
12233fi
12234rm -f core conftest.err conftest.$ac_objext conftest.beam \
12235    conftest$ac_exeext conftest.$ac_ext
12236  if test -z "$lt_cv_aix_libpath_"; then
12237    lt_cv_aix_libpath_=/usr/lib:/lib
12238  fi
12239
12240fi
12241
12242  aix_libpath=$lt_cv_aix_libpath_
12243fi
12244
12245	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12246	  # Warning - without using the other run time loading flags,
12247	  # -berok will link without error, but may produce a broken library.
12248	  no_undefined_flag=' $wl-bernotok'
12249	  allow_undefined_flag=' $wl-berok'
12250	  if test yes = "$with_gnu_ld"; then
12251	    # We only use this code for GNU lds that support --whole-archive.
12252	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12253	  else
12254	    # Exported symbols can be pulled into shared objects from archives
12255	    whole_archive_flag_spec='$convenience'
12256	  fi
12257	  archive_cmds_need_lc=yes
12258	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12259	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12260	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12261	  if test svr4 != "$with_aix_soname"; then
12262	    # This is similar to how AIX traditionally builds its shared libraries.
12263	    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'
12264	  fi
12265	  if test aix != "$with_aix_soname"; then
12266	    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'
12267	  else
12268	    # used by -dlpreopen to get the symbols
12269	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12270	  fi
12271	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12272	fi
12273      fi
12274      ;;
12275
12276    amigaos*)
12277      case $host_cpu in
12278      powerpc)
12279            # see comment about AmigaOS4 .so support
12280            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12281            archive_expsym_cmds=''
12282        ;;
12283      m68k)
12284            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)'
12285            hardcode_libdir_flag_spec='-L$libdir'
12286            hardcode_minus_L=yes
12287        ;;
12288      esac
12289      ;;
12290
12291    bsdi[45]*)
12292      export_dynamic_flag_spec=-rdynamic
12293      ;;
12294
12295    cygwin* | mingw* | pw32* | cegcc*)
12296      # When not using gcc, we currently assume that we are using
12297      # Microsoft Visual C++ or Intel C++ Compiler.
12298      # hardcode_libdir_flag_spec is actually meaningless, as there is
12299      # no search path for DLLs.
12300      case $cc_basename in
12301      cl* | icl*)
12302	# Native MSVC or ICC
12303	hardcode_libdir_flag_spec=' '
12304	allow_undefined_flag=unsupported
12305	always_export_symbols=yes
12306	file_list_spec='@'
12307	# Tell ltmain to make .lib files, not .a files.
12308	libext=lib
12309	# Tell ltmain to make .dll files, not .so files.
12310	shrext_cmds=.dll
12311	# FIXME: Setting linknames here is a bad hack.
12312	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12313	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12314            cp "$export_symbols" "$output_objdir/$soname.def";
12315            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12316          else
12317            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12318          fi~
12319          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12320          linknames='
12321	# The linker will not automatically build a static lib if we build a DLL.
12322	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12323	enable_shared_with_static_runtimes=yes
12324	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12325	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12326	# Don't use ranlib
12327	old_postinstall_cmds='chmod 644 $oldlib'
12328	postlink_cmds='lt_outputfile="@OUTPUT@"~
12329          lt_tool_outputfile="@TOOL_OUTPUT@"~
12330          case $lt_outputfile in
12331            *.exe|*.EXE) ;;
12332            *)
12333              lt_outputfile=$lt_outputfile.exe
12334              lt_tool_outputfile=$lt_tool_outputfile.exe
12335              ;;
12336          esac~
12337          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12338            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12339            $RM "$lt_outputfile.manifest";
12340          fi'
12341	;;
12342      *)
12343	# Assume MSVC and ICC wrapper
12344	hardcode_libdir_flag_spec=' '
12345	allow_undefined_flag=unsupported
12346	# Tell ltmain to make .lib files, not .a files.
12347	libext=lib
12348	# Tell ltmain to make .dll files, not .so files.
12349	shrext_cmds=.dll
12350	# FIXME: Setting linknames here is a bad hack.
12351	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12352	# The linker will automatically build a .lib file if we build a DLL.
12353	old_archive_from_new_cmds='true'
12354	# FIXME: Should let the user specify the lib program.
12355	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12356	enable_shared_with_static_runtimes=yes
12357	;;
12358      esac
12359      ;;
12360
12361    darwin* | rhapsody*)
12362
12363
12364  archive_cmds_need_lc=no
12365  hardcode_direct=no
12366  hardcode_automatic=yes
12367  hardcode_shlibpath_var=unsupported
12368  if test yes = "$lt_cv_ld_force_load"; then
12369    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\"`'
12370
12371  else
12372    whole_archive_flag_spec=''
12373  fi
12374  link_all_deplibs=yes
12375  allow_undefined_flag=$_lt_dar_allow_undefined
12376  case $cc_basename in
12377     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12378     *) _lt_dar_can_shared=$GCC ;;
12379  esac
12380  if test yes = "$_lt_dar_can_shared"; then
12381    output_verbose_link_cmd=func_echo_all
12382    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12383    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12384    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"
12385    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"
12386
12387  else
12388  ld_shlibs=no
12389  fi
12390
12391      ;;
12392
12393    dgux*)
12394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12395      hardcode_libdir_flag_spec='-L$libdir'
12396      hardcode_shlibpath_var=no
12397      ;;
12398
12399    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12400    # support.  Future versions do this automatically, but an explicit c++rt0.o
12401    # does not break anything, and helps significantly (at the cost of a little
12402    # extra space).
12403    freebsd2.2*)
12404      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12405      hardcode_libdir_flag_spec='-R$libdir'
12406      hardcode_direct=yes
12407      hardcode_shlibpath_var=no
12408      ;;
12409
12410    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12411    freebsd2.*)
12412      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12413      hardcode_direct=yes
12414      hardcode_minus_L=yes
12415      hardcode_shlibpath_var=no
12416      ;;
12417
12418    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12419    freebsd* | dragonfly* | midnightbsd*)
12420      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12421      hardcode_libdir_flag_spec='-R$libdir'
12422      hardcode_direct=yes
12423      hardcode_shlibpath_var=no
12424      ;;
12425
12426    hpux9*)
12427      if test yes = "$GCC"; then
12428	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12429      else
12430	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12431      fi
12432      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12433      hardcode_libdir_separator=:
12434      hardcode_direct=yes
12435
12436      # hardcode_minus_L: Not really in the search PATH,
12437      # but as the default location of the library.
12438      hardcode_minus_L=yes
12439      export_dynamic_flag_spec='$wl-E'
12440      ;;
12441
12442    hpux10*)
12443      if test yes,no = "$GCC,$with_gnu_ld"; then
12444	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12445      else
12446	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12447      fi
12448      if test no = "$with_gnu_ld"; then
12449	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12450	hardcode_libdir_separator=:
12451	hardcode_direct=yes
12452	hardcode_direct_absolute=yes
12453	export_dynamic_flag_spec='$wl-E'
12454	# hardcode_minus_L: Not really in the search PATH,
12455	# but as the default location of the library.
12456	hardcode_minus_L=yes
12457      fi
12458      ;;
12459
12460    hpux11*)
12461      if test yes,no = "$GCC,$with_gnu_ld"; then
12462	case $host_cpu in
12463	hppa*64*)
12464	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12465	  ;;
12466	ia64*)
12467	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12468	  ;;
12469	*)
12470	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12471	  ;;
12472	esac
12473      else
12474	case $host_cpu in
12475	hppa*64*)
12476	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12477	  ;;
12478	ia64*)
12479	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12480	  ;;
12481	*)
12482
12483	  # Older versions of the 11.00 compiler do not understand -b yet
12484	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12485	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12486printf %s "checking if $CC understands -b... " >&6; }
12487if test ${lt_cv_prog_compiler__b+y}
12488then :
12489  printf %s "(cached) " >&6
12490else $as_nop
12491  lt_cv_prog_compiler__b=no
12492   save_LDFLAGS=$LDFLAGS
12493   LDFLAGS="$LDFLAGS -b"
12494   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12495   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12496     # The linker can only warn and ignore the option if not recognized
12497     # So say no if there are warnings
12498     if test -s conftest.err; then
12499       # Append any errors to the config.log.
12500       cat conftest.err 1>&5
12501       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12502       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12503       if diff conftest.exp conftest.er2 >/dev/null; then
12504         lt_cv_prog_compiler__b=yes
12505       fi
12506     else
12507       lt_cv_prog_compiler__b=yes
12508     fi
12509   fi
12510   $RM -r conftest*
12511   LDFLAGS=$save_LDFLAGS
12512
12513fi
12514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12515printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12516
12517if test yes = "$lt_cv_prog_compiler__b"; then
12518    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12519else
12520    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12521fi
12522
12523	  ;;
12524	esac
12525      fi
12526      if test no = "$with_gnu_ld"; then
12527	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12528	hardcode_libdir_separator=:
12529
12530	case $host_cpu in
12531	hppa*64*|ia64*)
12532	  hardcode_direct=no
12533	  hardcode_shlibpath_var=no
12534	  ;;
12535	*)
12536	  hardcode_direct=yes
12537	  hardcode_direct_absolute=yes
12538	  export_dynamic_flag_spec='$wl-E'
12539
12540	  # hardcode_minus_L: Not really in the search PATH,
12541	  # but as the default location of the library.
12542	  hardcode_minus_L=yes
12543	  ;;
12544	esac
12545      fi
12546      ;;
12547
12548    irix5* | irix6* | nonstopux*)
12549      if test yes = "$GCC"; then
12550	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'
12551	# Try to use the -exported_symbol ld option, if it does not
12552	# work, assume that -exports_file does not work either and
12553	# implicitly export all symbols.
12554	# This should be the same for all languages, so no per-tag cache variable.
12555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12556printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12557if test ${lt_cv_irix_exported_symbol+y}
12558then :
12559  printf %s "(cached) " >&6
12560else $as_nop
12561  save_LDFLAGS=$LDFLAGS
12562	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12563	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h.  */
12565int foo (void) { return 0; }
12566_ACEOF
12567if ac_fn_c_try_link "$LINENO"
12568then :
12569  lt_cv_irix_exported_symbol=yes
12570else $as_nop
12571  lt_cv_irix_exported_symbol=no
12572fi
12573rm -f core conftest.err conftest.$ac_objext conftest.beam \
12574    conftest$ac_exeext conftest.$ac_ext
12575           LDFLAGS=$save_LDFLAGS
12576fi
12577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12578printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12579	if test yes = "$lt_cv_irix_exported_symbol"; then
12580          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'
12581	fi
12582	link_all_deplibs=no
12583      else
12584	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'
12585	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'
12586      fi
12587      archive_cmds_need_lc='no'
12588      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12589      hardcode_libdir_separator=:
12590      inherit_rpath=yes
12591      link_all_deplibs=yes
12592      ;;
12593
12594    linux*)
12595      case $cc_basename in
12596      tcc*)
12597	# Fabrice Bellard et al's Tiny C Compiler
12598	ld_shlibs=yes
12599	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12600	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12601	;;
12602      esac
12603      ;;
12604
12605    netbsd* | netbsdelf*-gnu)
12606      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12607	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12608      else
12609	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12610      fi
12611      hardcode_libdir_flag_spec='-R$libdir'
12612      hardcode_direct=yes
12613      hardcode_shlibpath_var=no
12614      ;;
12615
12616    newsos6)
12617      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12618      hardcode_direct=yes
12619      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12620      hardcode_libdir_separator=:
12621      hardcode_shlibpath_var=no
12622      ;;
12623
12624    *nto* | *qnx*)
12625      ;;
12626
12627    openbsd* | bitrig*)
12628      if test -f /usr/libexec/ld.so; then
12629	hardcode_direct=yes
12630	hardcode_shlibpath_var=no
12631	hardcode_direct_absolute=yes
12632	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12633	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12634	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12635	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12636	  export_dynamic_flag_spec='$wl-E'
12637	else
12638	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12639	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12640	fi
12641      else
12642	ld_shlibs=no
12643      fi
12644      ;;
12645
12646    os2*)
12647      hardcode_libdir_flag_spec='-L$libdir'
12648      hardcode_minus_L=yes
12649      allow_undefined_flag=unsupported
12650      shrext_cmds=.dll
12651      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12652	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12653	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12654	$ECHO EXPORTS >> $output_objdir/$libname.def~
12655	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12656	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12657	emximp -o $lib $output_objdir/$libname.def'
12658      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12659	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12660	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12661	$ECHO EXPORTS >> $output_objdir/$libname.def~
12662	prefix_cmds="$SED"~
12663	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12664	  prefix_cmds="$prefix_cmds -e 1d";
12665	fi~
12666	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12667	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12668	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12669	emximp -o $lib $output_objdir/$libname.def'
12670      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12671      enable_shared_with_static_runtimes=yes
12672      file_list_spec='@'
12673      ;;
12674
12675    osf3*)
12676      if test yes = "$GCC"; then
12677	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12678	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'
12679      else
12680	allow_undefined_flag=' -expect_unresolved \*'
12681	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'
12682      fi
12683      archive_cmds_need_lc='no'
12684      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12685      hardcode_libdir_separator=:
12686      ;;
12687
12688    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12689      if test yes = "$GCC"; then
12690	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12691	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'
12692	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12693      else
12694	allow_undefined_flag=' -expect_unresolved \*'
12695	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'
12696	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~
12697          $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'
12698
12699	# Both c and cxx compiler support -rpath directly
12700	hardcode_libdir_flag_spec='-rpath $libdir'
12701      fi
12702      archive_cmds_need_lc='no'
12703      hardcode_libdir_separator=:
12704      ;;
12705
12706    solaris*)
12707      no_undefined_flag=' -z defs'
12708      if test yes = "$GCC"; then
12709	wlarc='$wl'
12710	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12711	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12712          $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'
12713      else
12714	case `$CC -V 2>&1` in
12715	*"Compilers 5.0"*)
12716	  wlarc=''
12717	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12718	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12719            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12720	  ;;
12721	*)
12722	  wlarc='$wl'
12723	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12724	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12725            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12726	  ;;
12727	esac
12728      fi
12729      hardcode_libdir_flag_spec='-R$libdir'
12730      hardcode_shlibpath_var=no
12731      case $host_os in
12732      solaris2.[0-5] | solaris2.[0-5].*) ;;
12733      *)
12734	# The compiler driver will combine and reorder linker options,
12735	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12736	# but is careful enough not to reorder.
12737	# Supported since Solaris 2.6 (maybe 2.5.1?)
12738	if test yes = "$GCC"; then
12739	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12740	else
12741	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12742	fi
12743	;;
12744      esac
12745      link_all_deplibs=yes
12746      ;;
12747
12748    sunos4*)
12749      if test sequent = "$host_vendor"; then
12750	# Use $CC to link under sequent, because it throws in some extra .o
12751	# files that make .init and .fini sections work.
12752	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12753      else
12754	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12755      fi
12756      hardcode_libdir_flag_spec='-L$libdir'
12757      hardcode_direct=yes
12758      hardcode_minus_L=yes
12759      hardcode_shlibpath_var=no
12760      ;;
12761
12762    sysv4)
12763      case $host_vendor in
12764	sni)
12765	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12766	  hardcode_direct=yes # is this really true???
12767	;;
12768	siemens)
12769	  ## LD is ld it makes a PLAMLIB
12770	  ## CC just makes a GrossModule.
12771	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12772	  reload_cmds='$CC -r -o $output$reload_objs'
12773	  hardcode_direct=no
12774        ;;
12775	motorola)
12776	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12777	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12778	;;
12779      esac
12780      runpath_var='LD_RUN_PATH'
12781      hardcode_shlibpath_var=no
12782      ;;
12783
12784    sysv4.3*)
12785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12786      hardcode_shlibpath_var=no
12787      export_dynamic_flag_spec='-Bexport'
12788      ;;
12789
12790    sysv4*MP*)
12791      if test -d /usr/nec; then
12792	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12793	hardcode_shlibpath_var=no
12794	runpath_var=LD_RUN_PATH
12795	hardcode_runpath_var=yes
12796	ld_shlibs=yes
12797      fi
12798      ;;
12799
12800    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12801      no_undefined_flag='$wl-z,text'
12802      archive_cmds_need_lc=no
12803      hardcode_shlibpath_var=no
12804      runpath_var='LD_RUN_PATH'
12805
12806      if test yes = "$GCC"; then
12807	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12808	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12809      else
12810	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12811	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12812      fi
12813      ;;
12814
12815    sysv5* | sco3.2v5* | sco5v6*)
12816      # Note: We CANNOT use -z defs as we might desire, because we do not
12817      # link with -lc, and that would cause any symbols used from libc to
12818      # always be unresolved, which means just about no library would
12819      # ever link correctly.  If we're not using GNU ld we use -z text
12820      # though, which does catch some bad symbols but isn't as heavy-handed
12821      # as -z defs.
12822      no_undefined_flag='$wl-z,text'
12823      allow_undefined_flag='$wl-z,nodefs'
12824      archive_cmds_need_lc=no
12825      hardcode_shlibpath_var=no
12826      hardcode_libdir_flag_spec='$wl-R,$libdir'
12827      hardcode_libdir_separator=':'
12828      link_all_deplibs=yes
12829      export_dynamic_flag_spec='$wl-Bexport'
12830      runpath_var='LD_RUN_PATH'
12831
12832      if test yes = "$GCC"; then
12833	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12834	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12835      else
12836	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12837	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12838      fi
12839      ;;
12840
12841    uts4*)
12842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12843      hardcode_libdir_flag_spec='-L$libdir'
12844      hardcode_shlibpath_var=no
12845      ;;
12846
12847    *)
12848      ld_shlibs=no
12849      ;;
12850    esac
12851
12852    if test sni = "$host_vendor"; then
12853      case $host in
12854      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12855	export_dynamic_flag_spec='$wl-Blargedynsym'
12856	;;
12857      esac
12858    fi
12859  fi
12860
12861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12862printf "%s\n" "$ld_shlibs" >&6; }
12863test no = "$ld_shlibs" && can_build_shared=no
12864
12865with_gnu_ld=$with_gnu_ld
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881#
12882# Do we need to explicitly link libc?
12883#
12884case "x$archive_cmds_need_lc" in
12885x|xyes)
12886  # Assume -lc should be added
12887  archive_cmds_need_lc=yes
12888
12889  if test yes,yes = "$GCC,$enable_shared"; then
12890    case $archive_cmds in
12891    *'~'*)
12892      # FIXME: we may have to deal with multi-command sequences.
12893      ;;
12894    '$CC '*)
12895      # Test whether the compiler implicitly links with -lc since on some
12896      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12897      # to ld, don't add -lc before -lgcc.
12898      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12899printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12900if test ${lt_cv_archive_cmds_need_lc+y}
12901then :
12902  printf %s "(cached) " >&6
12903else $as_nop
12904  $RM conftest*
12905	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12908  (eval $ac_compile) 2>&5
12909  ac_status=$?
12910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911  test $ac_status = 0; } 2>conftest.err; then
12912	  soname=conftest
12913	  lib=conftest
12914	  libobjs=conftest.$ac_objext
12915	  deplibs=
12916	  wl=$lt_prog_compiler_wl
12917	  pic_flag=$lt_prog_compiler_pic
12918	  compiler_flags=-v
12919	  linker_flags=-v
12920	  verstring=
12921	  output_objdir=.
12922	  libname=conftest
12923	  lt_save_allow_undefined_flag=$allow_undefined_flag
12924	  allow_undefined_flag=
12925	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12926  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12927  ac_status=$?
12928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929  test $ac_status = 0; }
12930	  then
12931	    lt_cv_archive_cmds_need_lc=no
12932	  else
12933	    lt_cv_archive_cmds_need_lc=yes
12934	  fi
12935	  allow_undefined_flag=$lt_save_allow_undefined_flag
12936	else
12937	  cat conftest.err 1>&5
12938	fi
12939	$RM conftest*
12940
12941fi
12942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12943printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12944      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12945      ;;
12946    esac
12947  fi
12948  ;;
12949esac
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13103printf %s "checking dynamic linker characteristics... " >&6; }
13104
13105if test yes = "$GCC"; then
13106  case $host_os in
13107    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13108    *) lt_awk_arg='/^libraries:/' ;;
13109  esac
13110  case $host_os in
13111    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13112    *) lt_sed_strip_eq='s|=/|/|g' ;;
13113  esac
13114  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13115  case $lt_search_path_spec in
13116  *\;*)
13117    # if the path contains ";" then we assume it to be the separator
13118    # otherwise default to the standard path separator (i.e. ":") - it is
13119    # assumed that no part of a normal pathname contains ";" but that should
13120    # okay in the real world where ";" in dirpaths is itself problematic.
13121    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13122    ;;
13123  *)
13124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13125    ;;
13126  esac
13127  # Ok, now we have the path, separated by spaces, we can step through it
13128  # and add multilib dir if necessary...
13129  lt_tmp_lt_search_path_spec=
13130  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13131  # ...but if some path component already ends with the multilib dir we assume
13132  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13133  case "$lt_multi_os_dir; $lt_search_path_spec " in
13134  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13135    lt_multi_os_dir=
13136    ;;
13137  esac
13138  for lt_sys_path in $lt_search_path_spec; do
13139    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13140      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13141    elif test -n "$lt_multi_os_dir"; then
13142      test -d "$lt_sys_path" && \
13143	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13144    fi
13145  done
13146  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13147BEGIN {RS = " "; FS = "/|\n";} {
13148  lt_foo = "";
13149  lt_count = 0;
13150  for (lt_i = NF; lt_i > 0; lt_i--) {
13151    if ($lt_i != "" && $lt_i != ".") {
13152      if ($lt_i == "..") {
13153        lt_count++;
13154      } else {
13155        if (lt_count == 0) {
13156          lt_foo = "/" $lt_i lt_foo;
13157        } else {
13158          lt_count--;
13159        }
13160      }
13161    }
13162  }
13163  if (lt_foo != "") { lt_freq[lt_foo]++; }
13164  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13165}'`
13166  # AWK program above erroneously prepends '/' to C:/dos/paths
13167  # for these hosts.
13168  case $host_os in
13169    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13170      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13171  esac
13172  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13173else
13174  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13175fi
13176library_names_spec=
13177libname_spec='lib$name'
13178soname_spec=
13179shrext_cmds=.so
13180postinstall_cmds=
13181postuninstall_cmds=
13182finish_cmds=
13183finish_eval=
13184shlibpath_var=
13185shlibpath_overrides_runpath=unknown
13186version_type=none
13187dynamic_linker="$host_os ld.so"
13188sys_lib_dlsearch_path_spec="/lib /usr/lib"
13189need_lib_prefix=unknown
13190hardcode_into_libs=no
13191
13192# when you set need_version to no, make sure it does not cause -set_version
13193# flags to be left without arguments
13194need_version=unknown
13195
13196
13197
13198case $host_os in
13199aix3*)
13200  version_type=linux # correct to gnu/linux during the next big refactor
13201  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13202  shlibpath_var=LIBPATH
13203
13204  # AIX 3 has no versioning support, so we append a major version to the name.
13205  soname_spec='$libname$release$shared_ext$major'
13206  ;;
13207
13208aix[4-9]*)
13209  version_type=linux # correct to gnu/linux during the next big refactor
13210  need_lib_prefix=no
13211  need_version=no
13212  hardcode_into_libs=yes
13213  if test ia64 = "$host_cpu"; then
13214    # AIX 5 supports IA64
13215    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13216    shlibpath_var=LD_LIBRARY_PATH
13217  else
13218    # With GCC up to 2.95.x, collect2 would create an import file
13219    # for dependence libraries.  The import file would start with
13220    # the line '#! .'.  This would cause the generated library to
13221    # depend on '.', always an invalid library.  This was fixed in
13222    # development snapshots of GCC prior to 3.0.
13223    case $host_os in
13224      aix4 | aix4.[01] | aix4.[01].*)
13225      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13226	   echo ' yes '
13227	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13228	:
13229      else
13230	can_build_shared=no
13231      fi
13232      ;;
13233    esac
13234    # Using Import Files as archive members, it is possible to support
13235    # filename-based versioning of shared library archives on AIX. While
13236    # this would work for both with and without runtime linking, it will
13237    # prevent static linking of such archives. So we do filename-based
13238    # shared library versioning with .so extension only, which is used
13239    # when both runtime linking and shared linking is enabled.
13240    # Unfortunately, runtime linking may impact performance, so we do
13241    # not want this to be the default eventually. Also, we use the
13242    # versioned .so libs for executables only if there is the -brtl
13243    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13244    # To allow for filename-based versioning support, we need to create
13245    # libNAME.so.V as an archive file, containing:
13246    # *) an Import File, referring to the versioned filename of the
13247    #    archive as well as the shared archive member, telling the
13248    #    bitwidth (32 or 64) of that shared object, and providing the
13249    #    list of exported symbols of that shared object, eventually
13250    #    decorated with the 'weak' keyword
13251    # *) the shared object with the F_LOADONLY flag set, to really avoid
13252    #    it being seen by the linker.
13253    # At run time we better use the real file rather than another symlink,
13254    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13255
13256    case $with_aix_soname,$aix_use_runtimelinking in
13257    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13258    # soname into executable. Probably we can add versioning support to
13259    # collect2, so additional links can be useful in future.
13260    aix,yes) # traditional libtool
13261      dynamic_linker='AIX unversionable lib.so'
13262      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263      # instead of lib<name>.a to let people know that these are not
13264      # typical AIX shared libraries.
13265      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13266      ;;
13267    aix,no) # traditional AIX only
13268      dynamic_linker='AIX lib.a(lib.so.V)'
13269      # We preserve .a as extension for shared libraries through AIX4.2
13270      # and later when we are not doing run time linking.
13271      library_names_spec='$libname$release.a $libname.a'
13272      soname_spec='$libname$release$shared_ext$major'
13273      ;;
13274    svr4,*) # full svr4 only
13275      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13276      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13277      # We do not specify a path in Import Files, so LIBPATH fires.
13278      shlibpath_overrides_runpath=yes
13279      ;;
13280    *,yes) # both, prefer svr4
13281      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13282      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13283      # unpreferred sharedlib libNAME.a needs extra handling
13284      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"'
13285      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"'
13286      # We do not specify a path in Import Files, so LIBPATH fires.
13287      shlibpath_overrides_runpath=yes
13288      ;;
13289    *,no) # both, prefer aix
13290      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13291      library_names_spec='$libname$release.a $libname.a'
13292      soname_spec='$libname$release$shared_ext$major'
13293      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13294      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)'
13295      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"'
13296      ;;
13297    esac
13298    shlibpath_var=LIBPATH
13299  fi
13300  ;;
13301
13302amigaos*)
13303  case $host_cpu in
13304  powerpc)
13305    # Since July 2007 AmigaOS4 officially supports .so libraries.
13306    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13307    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13308    ;;
13309  m68k)
13310    library_names_spec='$libname.ixlibrary $libname.a'
13311    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13312    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'
13313    ;;
13314  esac
13315  ;;
13316
13317beos*)
13318  library_names_spec='$libname$shared_ext'
13319  dynamic_linker="$host_os ld.so"
13320  shlibpath_var=LIBRARY_PATH
13321  ;;
13322
13323bsdi[45]*)
13324  version_type=linux # correct to gnu/linux during the next big refactor
13325  need_version=no
13326  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13327  soname_spec='$libname$release$shared_ext$major'
13328  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13329  shlibpath_var=LD_LIBRARY_PATH
13330  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13331  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13332  # the default ld.so.conf also contains /usr/contrib/lib and
13333  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13334  # libtool to hard-code these into programs
13335  ;;
13336
13337cygwin* | mingw* | pw32* | cegcc*)
13338  version_type=windows
13339  shrext_cmds=.dll
13340  need_version=no
13341  need_lib_prefix=no
13342
13343  case $GCC,$cc_basename in
13344  yes,*)
13345    # gcc
13346    library_names_spec='$libname.dll.a'
13347    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13348    postinstall_cmds='base_file=`basename \$file`~
13349      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13350      dldir=$destdir/`dirname \$dlpath`~
13351      test -d \$dldir || mkdir -p \$dldir~
13352      $install_prog $dir/$dlname \$dldir/$dlname~
13353      chmod a+x \$dldir/$dlname~
13354      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13355        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13356      fi'
13357    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13358      dlpath=$dir/\$dldll~
13359       $RM \$dlpath'
13360    shlibpath_overrides_runpath=yes
13361
13362    case $host_os in
13363    cygwin*)
13364      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13365      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13366
13367      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13368      ;;
13369    mingw* | cegcc*)
13370      # MinGW DLLs use traditional 'lib' prefix
13371      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13372      ;;
13373    pw32*)
13374      # pw32 DLLs use 'pw' prefix rather than 'lib'
13375      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13376      ;;
13377    esac
13378    dynamic_linker='Win32 ld.exe'
13379    ;;
13380
13381  *,cl* | *,icl*)
13382    # Native MSVC or ICC
13383    libname_spec='$name'
13384    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13385    library_names_spec='$libname.dll.lib'
13386
13387    case $build_os in
13388    mingw*)
13389      sys_lib_search_path_spec=
13390      lt_save_ifs=$IFS
13391      IFS=';'
13392      for lt_path in $LIB
13393      do
13394        IFS=$lt_save_ifs
13395        # Let DOS variable expansion print the short 8.3 style file name.
13396        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13397        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13398      done
13399      IFS=$lt_save_ifs
13400      # Convert to MSYS style.
13401      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13402      ;;
13403    cygwin*)
13404      # Convert to unix form, then to dos form, then back to unix form
13405      # but this time dos style (no spaces!) so that the unix form looks
13406      # like /cygdrive/c/PROGRA~1:/cygdr...
13407      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13408      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13409      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13410      ;;
13411    *)
13412      sys_lib_search_path_spec=$LIB
13413      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13414        # It is most probably a Windows format PATH.
13415        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13416      else
13417        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13418      fi
13419      # FIXME: find the short name or the path components, as spaces are
13420      # common. (e.g. "Program Files" -> "PROGRA~1")
13421      ;;
13422    esac
13423
13424    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13425    postinstall_cmds='base_file=`basename \$file`~
13426      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13427      dldir=$destdir/`dirname \$dlpath`~
13428      test -d \$dldir || mkdir -p \$dldir~
13429      $install_prog $dir/$dlname \$dldir/$dlname'
13430    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13431      dlpath=$dir/\$dldll~
13432       $RM \$dlpath'
13433    shlibpath_overrides_runpath=yes
13434    dynamic_linker='Win32 link.exe'
13435    ;;
13436
13437  *)
13438    # Assume MSVC and ICC wrapper
13439    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13440    dynamic_linker='Win32 ld.exe'
13441    ;;
13442  esac
13443  # FIXME: first we should search . and the directory the executable is in
13444  shlibpath_var=PATH
13445  ;;
13446
13447darwin* | rhapsody*)
13448  dynamic_linker="$host_os dyld"
13449  version_type=darwin
13450  need_lib_prefix=no
13451  need_version=no
13452  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13453  soname_spec='$libname$release$major$shared_ext'
13454  shlibpath_overrides_runpath=yes
13455  shlibpath_var=DYLD_LIBRARY_PATH
13456  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13457
13458  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13460  ;;
13461
13462dgux*)
13463  version_type=linux # correct to gnu/linux during the next big refactor
13464  need_lib_prefix=no
13465  need_version=no
13466  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13467  soname_spec='$libname$release$shared_ext$major'
13468  shlibpath_var=LD_LIBRARY_PATH
13469  ;;
13470
13471freebsd* | dragonfly* | midnightbsd*)
13472  # DragonFly does not have aout.  When/if they implement a new
13473  # versioning mechanism, adjust this.
13474  if test -x /usr/bin/objformat; then
13475    objformat=`/usr/bin/objformat`
13476  else
13477    case $host_os in
13478    freebsd[23].*) objformat=aout ;;
13479    *) objformat=elf ;;
13480    esac
13481  fi
13482  version_type=freebsd-$objformat
13483  case $version_type in
13484    freebsd-elf*)
13485      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13486      soname_spec='$libname$release$shared_ext$major'
13487      need_version=no
13488      need_lib_prefix=no
13489      ;;
13490    freebsd-*)
13491      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13492      need_version=yes
13493      ;;
13494  esac
13495  shlibpath_var=LD_LIBRARY_PATH
13496  case $host_os in
13497  freebsd2.*)
13498    shlibpath_overrides_runpath=yes
13499    ;;
13500  freebsd3.[01]* | freebsdelf3.[01]*)
13501    shlibpath_overrides_runpath=yes
13502    hardcode_into_libs=yes
13503    ;;
13504  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13505  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13506    shlibpath_overrides_runpath=no
13507    hardcode_into_libs=yes
13508    ;;
13509  *) # from 4.6 on, and DragonFly
13510    shlibpath_overrides_runpath=yes
13511    hardcode_into_libs=yes
13512    ;;
13513  esac
13514  ;;
13515
13516haiku*)
13517  version_type=linux # correct to gnu/linux during the next big refactor
13518  need_lib_prefix=no
13519  need_version=no
13520  dynamic_linker="$host_os runtime_loader"
13521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13522  soname_spec='$libname$release$shared_ext$major'
13523  shlibpath_var=LIBRARY_PATH
13524  shlibpath_overrides_runpath=no
13525  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13526  hardcode_into_libs=yes
13527  ;;
13528
13529hpux9* | hpux10* | hpux11*)
13530  # Give a soname corresponding to the major version so that dld.sl refuses to
13531  # link against other versions.
13532  version_type=sunos
13533  need_lib_prefix=no
13534  need_version=no
13535  case $host_cpu in
13536  ia64*)
13537    shrext_cmds='.so'
13538    hardcode_into_libs=yes
13539    dynamic_linker="$host_os dld.so"
13540    shlibpath_var=LD_LIBRARY_PATH
13541    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13542    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13543    soname_spec='$libname$release$shared_ext$major'
13544    if test 32 = "$HPUX_IA64_MODE"; then
13545      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13546      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13547    else
13548      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13549      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13550    fi
13551    ;;
13552  hppa*64*)
13553    shrext_cmds='.sl'
13554    hardcode_into_libs=yes
13555    dynamic_linker="$host_os dld.sl"
13556    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13557    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13558    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13559    soname_spec='$libname$release$shared_ext$major'
13560    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13561    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13562    ;;
13563  *)
13564    shrext_cmds='.sl'
13565    dynamic_linker="$host_os dld.sl"
13566    shlibpath_var=SHLIB_PATH
13567    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13568    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13569    soname_spec='$libname$release$shared_ext$major'
13570    ;;
13571  esac
13572  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13573  postinstall_cmds='chmod 555 $lib'
13574  # or fails outright, so override atomically:
13575  install_override_mode=555
13576  ;;
13577
13578interix[3-9]*)
13579  version_type=linux # correct to gnu/linux during the next big refactor
13580  need_lib_prefix=no
13581  need_version=no
13582  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13583  soname_spec='$libname$release$shared_ext$major'
13584  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13585  shlibpath_var=LD_LIBRARY_PATH
13586  shlibpath_overrides_runpath=no
13587  hardcode_into_libs=yes
13588  ;;
13589
13590irix5* | irix6* | nonstopux*)
13591  case $host_os in
13592    nonstopux*) version_type=nonstopux ;;
13593    *)
13594	if test yes = "$lt_cv_prog_gnu_ld"; then
13595		version_type=linux # correct to gnu/linux during the next big refactor
13596	else
13597		version_type=irix
13598	fi ;;
13599  esac
13600  need_lib_prefix=no
13601  need_version=no
13602  soname_spec='$libname$release$shared_ext$major'
13603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13604  case $host_os in
13605  irix5* | nonstopux*)
13606    libsuff= shlibsuff=
13607    ;;
13608  *)
13609    case $LD in # libtool.m4 will add one of these switches to LD
13610    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13611      libsuff= shlibsuff= libmagic=32-bit;;
13612    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13613      libsuff=32 shlibsuff=N32 libmagic=N32;;
13614    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13615      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13616    *) libsuff= shlibsuff= libmagic=never-match;;
13617    esac
13618    ;;
13619  esac
13620  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13621  shlibpath_overrides_runpath=no
13622  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13623  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13624  hardcode_into_libs=yes
13625  ;;
13626
13627# No shared lib support for Linux oldld, aout, or coff.
13628linux*oldld* | linux*aout* | linux*coff*)
13629  dynamic_linker=no
13630  ;;
13631
13632linux*android*)
13633  version_type=none # Android doesn't support versioned libraries.
13634  need_lib_prefix=no
13635  need_version=no
13636  library_names_spec='$libname$release$shared_ext'
13637  soname_spec='$libname$release$shared_ext'
13638  finish_cmds=
13639  shlibpath_var=LD_LIBRARY_PATH
13640  shlibpath_overrides_runpath=yes
13641
13642  # This implies no fast_install, which is unacceptable.
13643  # Some rework will be needed to allow for fast_install
13644  # before this can be enabled.
13645  hardcode_into_libs=yes
13646
13647  dynamic_linker='Android linker'
13648  # Don't embed -rpath directories since the linker doesn't support them.
13649  hardcode_libdir_flag_spec='-L$libdir'
13650  ;;
13651
13652# This must be glibc/ELF.
13653linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13654  version_type=linux # correct to gnu/linux during the next big refactor
13655  need_lib_prefix=no
13656  need_version=no
13657  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13658  soname_spec='$libname$release$shared_ext$major'
13659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13660  shlibpath_var=LD_LIBRARY_PATH
13661  shlibpath_overrides_runpath=no
13662
13663  # Some binutils ld are patched to set DT_RUNPATH
13664  if test ${lt_cv_shlibpath_overrides_runpath+y}
13665then :
13666  printf %s "(cached) " >&6
13667else $as_nop
13668  lt_cv_shlibpath_overrides_runpath=no
13669    save_LDFLAGS=$LDFLAGS
13670    save_libdir=$libdir
13671    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13672	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13673    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675
13676int
13677main (void)
13678{
13679
13680  ;
13681  return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_link "$LINENO"
13685then :
13686  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13687then :
13688  lt_cv_shlibpath_overrides_runpath=yes
13689fi
13690fi
13691rm -f core conftest.err conftest.$ac_objext conftest.beam \
13692    conftest$ac_exeext conftest.$ac_ext
13693    LDFLAGS=$save_LDFLAGS
13694    libdir=$save_libdir
13695
13696fi
13697
13698  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13699
13700  # This implies no fast_install, which is unacceptable.
13701  # Some rework will be needed to allow for fast_install
13702  # before this can be enabled.
13703  hardcode_into_libs=yes
13704
13705  # Ideally, we could use ldconfig to report *all* directores which are
13706  # searched for libraries, however this is still not possible.  Aside from not
13707  # being certain /sbin/ldconfig is available, command
13708  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13709  # even though it is searched at run-time.  Try to do the best guess by
13710  # appending ld.so.conf contents (and includes) to the search path.
13711  if test -f /etc/ld.so.conf; then
13712    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' ' '`
13713    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13714  fi
13715
13716  # We used to test for /lib/ld.so.1 and disable shared libraries on
13717  # powerpc, because MkLinux only supported shared libraries with the
13718  # GNU dynamic linker.  Since this was broken with cross compilers,
13719  # most powerpc-linux boxes support dynamic linking these days and
13720  # people can always --disable-shared, the test was removed, and we
13721  # assume the GNU/Linux dynamic linker is in use.
13722  dynamic_linker='GNU/Linux ld.so'
13723  ;;
13724
13725netbsdelf*-gnu)
13726  version_type=linux
13727  need_lib_prefix=no
13728  need_version=no
13729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13730  soname_spec='${libname}${release}${shared_ext}$major'
13731  shlibpath_var=LD_LIBRARY_PATH
13732  shlibpath_overrides_runpath=no
13733  hardcode_into_libs=yes
13734  dynamic_linker='NetBSD ld.elf_so'
13735  ;;
13736
13737netbsd*)
13738  version_type=sunos
13739  need_lib_prefix=no
13740  need_version=no
13741  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13742    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13743    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13744    dynamic_linker='NetBSD (a.out) ld.so'
13745  else
13746    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13747    soname_spec='$libname$release$shared_ext$major'
13748    dynamic_linker='NetBSD ld.elf_so'
13749  fi
13750  shlibpath_var=LD_LIBRARY_PATH
13751  shlibpath_overrides_runpath=yes
13752  hardcode_into_libs=yes
13753  ;;
13754
13755newsos6)
13756  version_type=linux # correct to gnu/linux during the next big refactor
13757  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13758  shlibpath_var=LD_LIBRARY_PATH
13759  shlibpath_overrides_runpath=yes
13760  ;;
13761
13762*nto* | *qnx*)
13763  version_type=qnx
13764  need_lib_prefix=no
13765  need_version=no
13766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13767  soname_spec='$libname$release$shared_ext$major'
13768  shlibpath_var=LD_LIBRARY_PATH
13769  shlibpath_overrides_runpath=no
13770  hardcode_into_libs=yes
13771  dynamic_linker='ldqnx.so'
13772  ;;
13773
13774openbsd* | bitrig*)
13775  version_type=sunos
13776  sys_lib_dlsearch_path_spec=/usr/lib
13777  need_lib_prefix=no
13778  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13779    need_version=no
13780  else
13781    need_version=yes
13782  fi
13783  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13785  shlibpath_var=LD_LIBRARY_PATH
13786  shlibpath_overrides_runpath=yes
13787  ;;
13788
13789os2*)
13790  libname_spec='$name'
13791  version_type=windows
13792  shrext_cmds=.dll
13793  need_version=no
13794  need_lib_prefix=no
13795  # OS/2 can only load a DLL with a base name of 8 characters or less.
13796  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13797    v=$($ECHO $release$versuffix | tr -d .-);
13798    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13799    $ECHO $n$v`$shared_ext'
13800  library_names_spec='${libname}_dll.$libext'
13801  dynamic_linker='OS/2 ld.exe'
13802  shlibpath_var=BEGINLIBPATH
13803  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13804  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13805  postinstall_cmds='base_file=`basename \$file`~
13806    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13807    dldir=$destdir/`dirname \$dlpath`~
13808    test -d \$dldir || mkdir -p \$dldir~
13809    $install_prog $dir/$dlname \$dldir/$dlname~
13810    chmod a+x \$dldir/$dlname~
13811    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13812      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13813    fi'
13814  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13815    dlpath=$dir/\$dldll~
13816    $RM \$dlpath'
13817  ;;
13818
13819osf3* | osf4* | osf5*)
13820  version_type=osf
13821  need_lib_prefix=no
13822  need_version=no
13823  soname_spec='$libname$release$shared_ext$major'
13824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13825  shlibpath_var=LD_LIBRARY_PATH
13826  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13827  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13828  ;;
13829
13830rdos*)
13831  dynamic_linker=no
13832  ;;
13833
13834solaris*)
13835  version_type=linux # correct to gnu/linux during the next big refactor
13836  need_lib_prefix=no
13837  need_version=no
13838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13839  soname_spec='$libname$release$shared_ext$major'
13840  shlibpath_var=LD_LIBRARY_PATH
13841  shlibpath_overrides_runpath=yes
13842  hardcode_into_libs=yes
13843  # ldd complains unless libraries are executable
13844  postinstall_cmds='chmod +x $lib'
13845  ;;
13846
13847sunos4*)
13848  version_type=sunos
13849  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13850  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13851  shlibpath_var=LD_LIBRARY_PATH
13852  shlibpath_overrides_runpath=yes
13853  if test yes = "$with_gnu_ld"; then
13854    need_lib_prefix=no
13855  fi
13856  need_version=yes
13857  ;;
13858
13859sysv4 | sysv4.3*)
13860  version_type=linux # correct to gnu/linux during the next big refactor
13861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13862  soname_spec='$libname$release$shared_ext$major'
13863  shlibpath_var=LD_LIBRARY_PATH
13864  case $host_vendor in
13865    sni)
13866      shlibpath_overrides_runpath=no
13867      need_lib_prefix=no
13868      runpath_var=LD_RUN_PATH
13869      ;;
13870    siemens)
13871      need_lib_prefix=no
13872      ;;
13873    motorola)
13874      need_lib_prefix=no
13875      need_version=no
13876      shlibpath_overrides_runpath=no
13877      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13878      ;;
13879  esac
13880  ;;
13881
13882sysv4*MP*)
13883  if test -d /usr/nec; then
13884    version_type=linux # correct to gnu/linux during the next big refactor
13885    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13886    soname_spec='$libname$shared_ext.$major'
13887    shlibpath_var=LD_LIBRARY_PATH
13888  fi
13889  ;;
13890
13891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13892  version_type=sco
13893  need_lib_prefix=no
13894  need_version=no
13895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13896  soname_spec='$libname$release$shared_ext$major'
13897  shlibpath_var=LD_LIBRARY_PATH
13898  shlibpath_overrides_runpath=yes
13899  hardcode_into_libs=yes
13900  if test yes = "$with_gnu_ld"; then
13901    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13902  else
13903    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13904    case $host_os in
13905      sco3.2v5*)
13906        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13907	;;
13908    esac
13909  fi
13910  sys_lib_dlsearch_path_spec='/usr/lib'
13911  ;;
13912
13913tpf*)
13914  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13915  version_type=linux # correct to gnu/linux during the next big refactor
13916  need_lib_prefix=no
13917  need_version=no
13918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919  shlibpath_var=LD_LIBRARY_PATH
13920  shlibpath_overrides_runpath=no
13921  hardcode_into_libs=yes
13922  ;;
13923
13924uts4*)
13925  version_type=linux # correct to gnu/linux during the next big refactor
13926  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13927  soname_spec='$libname$release$shared_ext$major'
13928  shlibpath_var=LD_LIBRARY_PATH
13929  ;;
13930
13931*)
13932  dynamic_linker=no
13933  ;;
13934esac
13935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13936printf "%s\n" "$dynamic_linker" >&6; }
13937test no = "$dynamic_linker" && can_build_shared=no
13938
13939variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13940if test yes = "$GCC"; then
13941  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13942fi
13943
13944if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13945  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13946fi
13947
13948if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13949  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13950fi
13951
13952# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13953configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13954
13955# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13956func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13957
13958# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13959configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14058printf %s "checking how to hardcode library paths into programs... " >&6; }
14059hardcode_action=
14060if test -n "$hardcode_libdir_flag_spec" ||
14061   test -n "$runpath_var" ||
14062   test yes = "$hardcode_automatic"; then
14063
14064  # We can hardcode non-existent directories.
14065  if test no != "$hardcode_direct" &&
14066     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14067     # have to relink, otherwise we might link with an installed library
14068     # when we should be linking with a yet-to-be-installed one
14069     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14070     test no != "$hardcode_minus_L"; then
14071    # Linking always hardcodes the temporary library directory.
14072    hardcode_action=relink
14073  else
14074    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14075    hardcode_action=immediate
14076  fi
14077else
14078  # We cannot hardcode anything, or else we can only hardcode existing
14079  # directories.
14080  hardcode_action=unsupported
14081fi
14082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14083printf "%s\n" "$hardcode_action" >&6; }
14084
14085if test relink = "$hardcode_action" ||
14086   test yes = "$inherit_rpath"; then
14087  # Fast installation is not supported
14088  enable_fast_install=no
14089elif test yes = "$shlibpath_overrides_runpath" ||
14090     test no = "$enable_shared"; then
14091  # Fast installation is not necessary
14092  enable_fast_install=needless
14093fi
14094
14095
14096
14097
14098
14099
14100  if test yes != "$enable_dlopen"; then
14101  enable_dlopen=unknown
14102  enable_dlopen_self=unknown
14103  enable_dlopen_self_static=unknown
14104else
14105  lt_cv_dlopen=no
14106  lt_cv_dlopen_libs=
14107
14108  case $host_os in
14109  beos*)
14110    lt_cv_dlopen=load_add_on
14111    lt_cv_dlopen_libs=
14112    lt_cv_dlopen_self=yes
14113    ;;
14114
14115  mingw* | pw32* | cegcc*)
14116    lt_cv_dlopen=LoadLibrary
14117    lt_cv_dlopen_libs=
14118    ;;
14119
14120  cygwin*)
14121    lt_cv_dlopen=dlopen
14122    lt_cv_dlopen_libs=
14123    ;;
14124
14125  darwin*)
14126    # if libdl is installed we need to link against it
14127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14128printf %s "checking for dlopen in -ldl... " >&6; }
14129if test ${ac_cv_lib_dl_dlopen+y}
14130then :
14131  printf %s "(cached) " >&6
14132else $as_nop
14133  ac_check_lib_save_LIBS=$LIBS
14134LIBS="-ldl  $LIBS"
14135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138/* Override any GCC internal prototype to avoid an error.
14139   Use char because int might match the return type of a GCC
14140   builtin and then its argument prototype would still apply.  */
14141char dlopen ();
14142int
14143main (void)
14144{
14145return dlopen ();
14146  ;
14147  return 0;
14148}
14149_ACEOF
14150if ac_fn_c_try_link "$LINENO"
14151then :
14152  ac_cv_lib_dl_dlopen=yes
14153else $as_nop
14154  ac_cv_lib_dl_dlopen=no
14155fi
14156rm -f core conftest.err conftest.$ac_objext conftest.beam \
14157    conftest$ac_exeext conftest.$ac_ext
14158LIBS=$ac_check_lib_save_LIBS
14159fi
14160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14161printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14162if test "x$ac_cv_lib_dl_dlopen" = xyes
14163then :
14164  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14165else $as_nop
14166
14167    lt_cv_dlopen=dyld
14168    lt_cv_dlopen_libs=
14169    lt_cv_dlopen_self=yes
14170
14171fi
14172
14173    ;;
14174
14175  tpf*)
14176    # Don't try to run any link tests for TPF.  We know it's impossible
14177    # because TPF is a cross-compiler, and we know how we open DSOs.
14178    lt_cv_dlopen=dlopen
14179    lt_cv_dlopen_libs=
14180    lt_cv_dlopen_self=no
14181    ;;
14182
14183  *)
14184    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14185if test "x$ac_cv_func_shl_load" = xyes
14186then :
14187  lt_cv_dlopen=shl_load
14188else $as_nop
14189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14190printf %s "checking for shl_load in -ldld... " >&6; }
14191if test ${ac_cv_lib_dld_shl_load+y}
14192then :
14193  printf %s "(cached) " >&6
14194else $as_nop
14195  ac_check_lib_save_LIBS=$LIBS
14196LIBS="-ldld  $LIBS"
14197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198/* end confdefs.h.  */
14199
14200/* Override any GCC internal prototype to avoid an error.
14201   Use char because int might match the return type of a GCC
14202   builtin and then its argument prototype would still apply.  */
14203char shl_load ();
14204int
14205main (void)
14206{
14207return shl_load ();
14208  ;
14209  return 0;
14210}
14211_ACEOF
14212if ac_fn_c_try_link "$LINENO"
14213then :
14214  ac_cv_lib_dld_shl_load=yes
14215else $as_nop
14216  ac_cv_lib_dld_shl_load=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.beam \
14219    conftest$ac_exeext conftest.$ac_ext
14220LIBS=$ac_check_lib_save_LIBS
14221fi
14222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14223printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14224if test "x$ac_cv_lib_dld_shl_load" = xyes
14225then :
14226  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14227else $as_nop
14228  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14229if test "x$ac_cv_func_dlopen" = xyes
14230then :
14231  lt_cv_dlopen=dlopen
14232else $as_nop
14233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14234printf %s "checking for dlopen in -ldl... " >&6; }
14235if test ${ac_cv_lib_dl_dlopen+y}
14236then :
14237  printf %s "(cached) " >&6
14238else $as_nop
14239  ac_check_lib_save_LIBS=$LIBS
14240LIBS="-ldl  $LIBS"
14241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243
14244/* Override any GCC internal prototype to avoid an error.
14245   Use char because int might match the return type of a GCC
14246   builtin and then its argument prototype would still apply.  */
14247char dlopen ();
14248int
14249main (void)
14250{
14251return dlopen ();
14252  ;
14253  return 0;
14254}
14255_ACEOF
14256if ac_fn_c_try_link "$LINENO"
14257then :
14258  ac_cv_lib_dl_dlopen=yes
14259else $as_nop
14260  ac_cv_lib_dl_dlopen=no
14261fi
14262rm -f core conftest.err conftest.$ac_objext conftest.beam \
14263    conftest$ac_exeext conftest.$ac_ext
14264LIBS=$ac_check_lib_save_LIBS
14265fi
14266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14267printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14268if test "x$ac_cv_lib_dl_dlopen" = xyes
14269then :
14270  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14271else $as_nop
14272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14273printf %s "checking for dlopen in -lsvld... " >&6; }
14274if test ${ac_cv_lib_svld_dlopen+y}
14275then :
14276  printf %s "(cached) " >&6
14277else $as_nop
14278  ac_check_lib_save_LIBS=$LIBS
14279LIBS="-lsvld  $LIBS"
14280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282
14283/* Override any GCC internal prototype to avoid an error.
14284   Use char because int might match the return type of a GCC
14285   builtin and then its argument prototype would still apply.  */
14286char dlopen ();
14287int
14288main (void)
14289{
14290return dlopen ();
14291  ;
14292  return 0;
14293}
14294_ACEOF
14295if ac_fn_c_try_link "$LINENO"
14296then :
14297  ac_cv_lib_svld_dlopen=yes
14298else $as_nop
14299  ac_cv_lib_svld_dlopen=no
14300fi
14301rm -f core conftest.err conftest.$ac_objext conftest.beam \
14302    conftest$ac_exeext conftest.$ac_ext
14303LIBS=$ac_check_lib_save_LIBS
14304fi
14305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14306printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14307if test "x$ac_cv_lib_svld_dlopen" = xyes
14308then :
14309  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14310else $as_nop
14311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14312printf %s "checking for dld_link in -ldld... " >&6; }
14313if test ${ac_cv_lib_dld_dld_link+y}
14314then :
14315  printf %s "(cached) " >&6
14316else $as_nop
14317  ac_check_lib_save_LIBS=$LIBS
14318LIBS="-ldld  $LIBS"
14319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320/* end confdefs.h.  */
14321
14322/* Override any GCC internal prototype to avoid an error.
14323   Use char because int might match the return type of a GCC
14324   builtin and then its argument prototype would still apply.  */
14325char dld_link ();
14326int
14327main (void)
14328{
14329return dld_link ();
14330  ;
14331  return 0;
14332}
14333_ACEOF
14334if ac_fn_c_try_link "$LINENO"
14335then :
14336  ac_cv_lib_dld_dld_link=yes
14337else $as_nop
14338  ac_cv_lib_dld_dld_link=no
14339fi
14340rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341    conftest$ac_exeext conftest.$ac_ext
14342LIBS=$ac_check_lib_save_LIBS
14343fi
14344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14345printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14346if test "x$ac_cv_lib_dld_dld_link" = xyes
14347then :
14348  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14349fi
14350
14351
14352fi
14353
14354
14355fi
14356
14357
14358fi
14359
14360
14361fi
14362
14363
14364fi
14365
14366    ;;
14367  esac
14368
14369  if test no = "$lt_cv_dlopen"; then
14370    enable_dlopen=no
14371  else
14372    enable_dlopen=yes
14373  fi
14374
14375  case $lt_cv_dlopen in
14376  dlopen)
14377    save_CPPFLAGS=$CPPFLAGS
14378    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14379
14380    save_LDFLAGS=$LDFLAGS
14381    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14382
14383    save_LIBS=$LIBS
14384    LIBS="$lt_cv_dlopen_libs $LIBS"
14385
14386    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14387printf %s "checking whether a program can dlopen itself... " >&6; }
14388if test ${lt_cv_dlopen_self+y}
14389then :
14390  printf %s "(cached) " >&6
14391else $as_nop
14392  	  if test yes = "$cross_compiling"; then :
14393  lt_cv_dlopen_self=cross
14394else
14395  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14396  lt_status=$lt_dlunknown
14397  cat > conftest.$ac_ext <<_LT_EOF
14398#line $LINENO "configure"
14399#include "confdefs.h"
14400
14401#if HAVE_DLFCN_H
14402#include <dlfcn.h>
14403#endif
14404
14405#include <stdio.h>
14406
14407#ifdef RTLD_GLOBAL
14408#  define LT_DLGLOBAL		RTLD_GLOBAL
14409#else
14410#  ifdef DL_GLOBAL
14411#    define LT_DLGLOBAL		DL_GLOBAL
14412#  else
14413#    define LT_DLGLOBAL		0
14414#  endif
14415#endif
14416
14417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14418   find out it does not work in some platform. */
14419#ifndef LT_DLLAZY_OR_NOW
14420#  ifdef RTLD_LAZY
14421#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14422#  else
14423#    ifdef DL_LAZY
14424#      define LT_DLLAZY_OR_NOW		DL_LAZY
14425#    else
14426#      ifdef RTLD_NOW
14427#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14428#      else
14429#        ifdef DL_NOW
14430#          define LT_DLLAZY_OR_NOW	DL_NOW
14431#        else
14432#          define LT_DLLAZY_OR_NOW	0
14433#        endif
14434#      endif
14435#    endif
14436#  endif
14437#endif
14438
14439/* When -fvisibility=hidden is used, assume the code has been annotated
14440   correspondingly for the symbols needed.  */
14441#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14442int fnord () __attribute__((visibility("default")));
14443#endif
14444
14445int fnord () { return 42; }
14446int main ()
14447{
14448  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14449  int status = $lt_dlunknown;
14450
14451  if (self)
14452    {
14453      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14454      else
14455        {
14456	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14457          else puts (dlerror ());
14458	}
14459      /* dlclose (self); */
14460    }
14461  else
14462    puts (dlerror ());
14463
14464  return status;
14465}
14466_LT_EOF
14467  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14468  (eval $ac_link) 2>&5
14469  ac_status=$?
14470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14472    (./conftest; exit; ) >&5 2>/dev/null
14473    lt_status=$?
14474    case x$lt_status in
14475      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14476      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14477      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14478    esac
14479  else :
14480    # compilation failed
14481    lt_cv_dlopen_self=no
14482  fi
14483fi
14484rm -fr conftest*
14485
14486
14487fi
14488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14489printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14490
14491    if test yes = "$lt_cv_dlopen_self"; then
14492      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14494printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14495if test ${lt_cv_dlopen_self_static+y}
14496then :
14497  printf %s "(cached) " >&6
14498else $as_nop
14499  	  if test yes = "$cross_compiling"; then :
14500  lt_cv_dlopen_self_static=cross
14501else
14502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14503  lt_status=$lt_dlunknown
14504  cat > conftest.$ac_ext <<_LT_EOF
14505#line $LINENO "configure"
14506#include "confdefs.h"
14507
14508#if HAVE_DLFCN_H
14509#include <dlfcn.h>
14510#endif
14511
14512#include <stdio.h>
14513
14514#ifdef RTLD_GLOBAL
14515#  define LT_DLGLOBAL		RTLD_GLOBAL
14516#else
14517#  ifdef DL_GLOBAL
14518#    define LT_DLGLOBAL		DL_GLOBAL
14519#  else
14520#    define LT_DLGLOBAL		0
14521#  endif
14522#endif
14523
14524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14525   find out it does not work in some platform. */
14526#ifndef LT_DLLAZY_OR_NOW
14527#  ifdef RTLD_LAZY
14528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14529#  else
14530#    ifdef DL_LAZY
14531#      define LT_DLLAZY_OR_NOW		DL_LAZY
14532#    else
14533#      ifdef RTLD_NOW
14534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14535#      else
14536#        ifdef DL_NOW
14537#          define LT_DLLAZY_OR_NOW	DL_NOW
14538#        else
14539#          define LT_DLLAZY_OR_NOW	0
14540#        endif
14541#      endif
14542#    endif
14543#  endif
14544#endif
14545
14546/* When -fvisibility=hidden is used, assume the code has been annotated
14547   correspondingly for the symbols needed.  */
14548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14549int fnord () __attribute__((visibility("default")));
14550#endif
14551
14552int fnord () { return 42; }
14553int main ()
14554{
14555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14556  int status = $lt_dlunknown;
14557
14558  if (self)
14559    {
14560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14561      else
14562        {
14563	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14564          else puts (dlerror ());
14565	}
14566      /* dlclose (self); */
14567    }
14568  else
14569    puts (dlerror ());
14570
14571  return status;
14572}
14573_LT_EOF
14574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14575  (eval $ac_link) 2>&5
14576  ac_status=$?
14577  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14579    (./conftest; exit; ) >&5 2>/dev/null
14580    lt_status=$?
14581    case x$lt_status in
14582      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14583      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14584      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14585    esac
14586  else :
14587    # compilation failed
14588    lt_cv_dlopen_self_static=no
14589  fi
14590fi
14591rm -fr conftest*
14592
14593
14594fi
14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14596printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14597    fi
14598
14599    CPPFLAGS=$save_CPPFLAGS
14600    LDFLAGS=$save_LDFLAGS
14601    LIBS=$save_LIBS
14602    ;;
14603  esac
14604
14605  case $lt_cv_dlopen_self in
14606  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14607  *) enable_dlopen_self=unknown ;;
14608  esac
14609
14610  case $lt_cv_dlopen_self_static in
14611  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14612  *) enable_dlopen_self_static=unknown ;;
14613  esac
14614fi
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632striplib=
14633old_striplib=
14634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14635printf %s "checking whether stripping libraries is possible... " >&6; }
14636if test -z "$STRIP"; then
14637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638printf "%s\n" "no" >&6; }
14639else
14640  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14641    old_striplib="$STRIP --strip-debug"
14642    striplib="$STRIP --strip-unneeded"
14643    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644printf "%s\n" "yes" >&6; }
14645  else
14646    case $host_os in
14647    darwin*)
14648      # FIXME - insert some real tests, host_os isn't really good enough
14649      striplib="$STRIP -x"
14650      old_striplib="$STRIP -S"
14651      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652printf "%s\n" "yes" >&6; }
14653      ;;
14654    freebsd*)
14655      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14656        old_striplib="$STRIP --strip-debug"
14657        striplib="$STRIP --strip-unneeded"
14658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14659printf "%s\n" "yes" >&6; }
14660      else
14661        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662printf "%s\n" "no" >&6; }
14663      fi
14664      ;;
14665    *)
14666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667printf "%s\n" "no" >&6; }
14668      ;;
14669    esac
14670  fi
14671fi
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684  # Report what library types will actually be built
14685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14686printf %s "checking if libtool supports shared libraries... " >&6; }
14687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14688printf "%s\n" "$can_build_shared" >&6; }
14689
14690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14691printf %s "checking whether to build shared libraries... " >&6; }
14692  test no = "$can_build_shared" && enable_shared=no
14693
14694  # On AIX, shared libraries and static libraries use the same namespace, and
14695  # are all built from PIC.
14696  case $host_os in
14697  aix3*)
14698    test yes = "$enable_shared" && enable_static=no
14699    if test -n "$RANLIB"; then
14700      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14701      postinstall_cmds='$RANLIB $lib'
14702    fi
14703    ;;
14704
14705  aix[4-9]*)
14706    if test ia64 != "$host_cpu"; then
14707      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14708      yes,aix,yes) ;;			# shared object as lib.so file only
14709      yes,svr4,*) ;;			# shared object as lib.so archive member only
14710      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14711      esac
14712    fi
14713    ;;
14714  esac
14715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14716printf "%s\n" "$enable_shared" >&6; }
14717
14718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14719printf %s "checking whether to build static libraries... " >&6; }
14720  # Make sure either enable_shared or enable_static is yes.
14721  test yes = "$enable_shared" || enable_static=yes
14722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14723printf "%s\n" "$enable_static" >&6; }
14724
14725
14726
14727
14728fi
14729ac_ext=c
14730ac_cpp='$CPP $CPPFLAGS'
14731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733ac_compiler_gnu=$ac_cv_c_compiler_gnu
14734
14735CC=$lt_save_CC
14736
14737      if test -n "$CXX" && ( test no != "$CXX" &&
14738    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14739    (test g++ != "$CXX"))); then
14740  ac_ext=cpp
14741ac_cpp='$CXXCPP $CPPFLAGS'
14742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14746printf %s "checking how to run the C++ preprocessor... " >&6; }
14747if test -z "$CXXCPP"; then
14748  if test ${ac_cv_prog_CXXCPP+y}
14749then :
14750  printf %s "(cached) " >&6
14751else $as_nop
14752      # Double quotes because $CXX needs to be expanded
14753    for CXXCPP in "$CXX -E" cpp /lib/cpp
14754    do
14755      ac_preproc_ok=false
14756for ac_cxx_preproc_warn_flag in '' yes
14757do
14758  # Use a header file that comes with gcc, so configuring glibc
14759  # with a fresh cross-compiler works.
14760  # On the NeXT, cc -E runs the code through the compiler's parser,
14761  # not just through cpp. "Syntax error" is here to catch this case.
14762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h.  */
14764#include <limits.h>
14765		     Syntax error
14766_ACEOF
14767if ac_fn_cxx_try_cpp "$LINENO"
14768then :
14769
14770else $as_nop
14771  # Broken: fails on valid input.
14772continue
14773fi
14774rm -f conftest.err conftest.i conftest.$ac_ext
14775
14776  # OK, works on sane cases.  Now check whether nonexistent headers
14777  # can be detected and how.
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780#include <ac_nonexistent.h>
14781_ACEOF
14782if ac_fn_cxx_try_cpp "$LINENO"
14783then :
14784  # Broken: success on invalid input.
14785continue
14786else $as_nop
14787  # Passes both tests.
14788ac_preproc_ok=:
14789break
14790fi
14791rm -f conftest.err conftest.i conftest.$ac_ext
14792
14793done
14794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14795rm -f conftest.i conftest.err conftest.$ac_ext
14796if $ac_preproc_ok
14797then :
14798  break
14799fi
14800
14801    done
14802    ac_cv_prog_CXXCPP=$CXXCPP
14803
14804fi
14805  CXXCPP=$ac_cv_prog_CXXCPP
14806else
14807  ac_cv_prog_CXXCPP=$CXXCPP
14808fi
14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14810printf "%s\n" "$CXXCPP" >&6; }
14811ac_preproc_ok=false
14812for ac_cxx_preproc_warn_flag in '' yes
14813do
14814  # Use a header file that comes with gcc, so configuring glibc
14815  # with a fresh cross-compiler works.
14816  # On the NeXT, cc -E runs the code through the compiler's parser,
14817  # not just through cpp. "Syntax error" is here to catch this case.
14818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819/* end confdefs.h.  */
14820#include <limits.h>
14821		     Syntax error
14822_ACEOF
14823if ac_fn_cxx_try_cpp "$LINENO"
14824then :
14825
14826else $as_nop
14827  # Broken: fails on valid input.
14828continue
14829fi
14830rm -f conftest.err conftest.i conftest.$ac_ext
14831
14832  # OK, works on sane cases.  Now check whether nonexistent headers
14833  # can be detected and how.
14834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835/* end confdefs.h.  */
14836#include <ac_nonexistent.h>
14837_ACEOF
14838if ac_fn_cxx_try_cpp "$LINENO"
14839then :
14840  # Broken: success on invalid input.
14841continue
14842else $as_nop
14843  # Passes both tests.
14844ac_preproc_ok=:
14845break
14846fi
14847rm -f conftest.err conftest.i conftest.$ac_ext
14848
14849done
14850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14851rm -f conftest.i conftest.err conftest.$ac_ext
14852if $ac_preproc_ok
14853then :
14854
14855else $as_nop
14856  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14858as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14859See \`config.log' for more details" "$LINENO" 5; }
14860fi
14861
14862ac_ext=c
14863ac_cpp='$CPP $CPPFLAGS'
14864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866ac_compiler_gnu=$ac_cv_c_compiler_gnu
14867
14868else
14869  _lt_caught_CXX_error=yes
14870fi
14871
14872ac_ext=cpp
14873ac_cpp='$CXXCPP $CPPFLAGS'
14874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14877
14878archive_cmds_need_lc_CXX=no
14879allow_undefined_flag_CXX=
14880always_export_symbols_CXX=no
14881archive_expsym_cmds_CXX=
14882compiler_needs_object_CXX=no
14883export_dynamic_flag_spec_CXX=
14884hardcode_direct_CXX=no
14885hardcode_direct_absolute_CXX=no
14886hardcode_libdir_flag_spec_CXX=
14887hardcode_libdir_separator_CXX=
14888hardcode_minus_L_CXX=no
14889hardcode_shlibpath_var_CXX=unsupported
14890hardcode_automatic_CXX=no
14891inherit_rpath_CXX=no
14892module_cmds_CXX=
14893module_expsym_cmds_CXX=
14894link_all_deplibs_CXX=unknown
14895old_archive_cmds_CXX=$old_archive_cmds
14896reload_flag_CXX=$reload_flag
14897reload_cmds_CXX=$reload_cmds
14898no_undefined_flag_CXX=
14899whole_archive_flag_spec_CXX=
14900enable_shared_with_static_runtimes_CXX=no
14901
14902# Source file extension for C++ test sources.
14903ac_ext=cpp
14904
14905# Object file extension for compiled C++ test sources.
14906objext=o
14907objext_CXX=$objext
14908
14909# No sense in running all these tests if we already determined that
14910# the CXX compiler isn't working.  Some variables (like enable_shared)
14911# are currently assumed to apply to all compilers on this platform,
14912# and will be corrupted by setting them based on a non-working compiler.
14913if test yes != "$_lt_caught_CXX_error"; then
14914  # Code to be used in simple compile tests
14915  lt_simple_compile_test_code="int some_variable = 0;"
14916
14917  # Code to be used in simple link tests
14918  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14919
14920  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14921
14922
14923
14924
14925
14926
14927# If no C compiler was specified, use CC.
14928LTCC=${LTCC-"$CC"}
14929
14930# If no C compiler flags were specified, use CFLAGS.
14931LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14932
14933# Allow CC to be a program name with arguments.
14934compiler=$CC
14935
14936
14937  # save warnings/boilerplate of simple test code
14938  ac_outfile=conftest.$ac_objext
14939echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14941_lt_compiler_boilerplate=`cat conftest.err`
14942$RM conftest*
14943
14944  ac_outfile=conftest.$ac_objext
14945echo "$lt_simple_link_test_code" >conftest.$ac_ext
14946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14947_lt_linker_boilerplate=`cat conftest.err`
14948$RM -r conftest*
14949
14950
14951  # Allow CC to be a program name with arguments.
14952  lt_save_CC=$CC
14953  lt_save_CFLAGS=$CFLAGS
14954  lt_save_LD=$LD
14955  lt_save_GCC=$GCC
14956  GCC=$GXX
14957  lt_save_with_gnu_ld=$with_gnu_ld
14958  lt_save_path_LD=$lt_cv_path_LD
14959  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14960    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14961  else
14962    $as_unset lt_cv_prog_gnu_ld
14963  fi
14964  if test -n "${lt_cv_path_LDCXX+set}"; then
14965    lt_cv_path_LD=$lt_cv_path_LDCXX
14966  else
14967    $as_unset lt_cv_path_LD
14968  fi
14969  test -z "${LDCXX+set}" || LD=$LDCXX
14970  CC=${CXX-"c++"}
14971  CFLAGS=$CXXFLAGS
14972  compiler=$CC
14973  compiler_CXX=$CC
14974  func_cc_basename $compiler
14975cc_basename=$func_cc_basename_result
14976
14977
14978  if test -n "$compiler"; then
14979    # We don't want -fno-exception when compiling C++ code, so set the
14980    # no_builtin_flag separately
14981    if test yes = "$GXX"; then
14982      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14983    else
14984      lt_prog_compiler_no_builtin_flag_CXX=
14985    fi
14986
14987    if test yes = "$GXX"; then
14988      # Set up default GNU C++ configuration
14989
14990
14991
14992# Check whether --with-gnu-ld was given.
14993if test ${with_gnu_ld+y}
14994then :
14995  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14996else $as_nop
14997  with_gnu_ld=no
14998fi
14999
15000ac_prog=ld
15001if test yes = "$GCC"; then
15002  # Check if gcc -print-prog-name=ld gives a path.
15003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15004printf %s "checking for ld used by $CC... " >&6; }
15005  case $host in
15006  *-*-mingw*)
15007    # gcc leaves a trailing carriage return, which upsets mingw
15008    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15009  *)
15010    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15011  esac
15012  case $ac_prog in
15013    # Accept absolute paths.
15014    [\\/]* | ?:[\\/]*)
15015      re_direlt='/[^/][^/]*/\.\./'
15016      # Canonicalize the pathname of ld
15017      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15018      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15019	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15020      done
15021      test -z "$LD" && LD=$ac_prog
15022      ;;
15023  "")
15024    # If it fails, then pretend we aren't using GCC.
15025    ac_prog=ld
15026    ;;
15027  *)
15028    # If it is relative, then search for the first ld in PATH.
15029    with_gnu_ld=unknown
15030    ;;
15031  esac
15032elif test yes = "$with_gnu_ld"; then
15033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15034printf %s "checking for GNU ld... " >&6; }
15035else
15036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15037printf %s "checking for non-GNU ld... " >&6; }
15038fi
15039if test ${lt_cv_path_LD+y}
15040then :
15041  printf %s "(cached) " >&6
15042else $as_nop
15043  if test -z "$LD"; then
15044  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15045  for ac_dir in $PATH; do
15046    IFS=$lt_save_ifs
15047    test -z "$ac_dir" && ac_dir=.
15048    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15049      lt_cv_path_LD=$ac_dir/$ac_prog
15050      # Check to see if the program is GNU ld.  I'd rather use --version,
15051      # but apparently some variants of GNU ld only accept -v.
15052      # Break only if it was the GNU/non-GNU ld that we prefer.
15053      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15054      *GNU* | *'with BFD'*)
15055	test no != "$with_gnu_ld" && break
15056	;;
15057      *)
15058	test yes != "$with_gnu_ld" && break
15059	;;
15060      esac
15061    fi
15062  done
15063  IFS=$lt_save_ifs
15064else
15065  lt_cv_path_LD=$LD # Let the user override the test with a path.
15066fi
15067fi
15068
15069LD=$lt_cv_path_LD
15070if test -n "$LD"; then
15071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15072printf "%s\n" "$LD" >&6; }
15073else
15074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075printf "%s\n" "no" >&6; }
15076fi
15077test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15079printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15080if test ${lt_cv_prog_gnu_ld+y}
15081then :
15082  printf %s "(cached) " >&6
15083else $as_nop
15084  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15085case `$LD -v 2>&1 </dev/null` in
15086*GNU* | *'with BFD'*)
15087  lt_cv_prog_gnu_ld=yes
15088  ;;
15089*)
15090  lt_cv_prog_gnu_ld=no
15091  ;;
15092esac
15093fi
15094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15095printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15096with_gnu_ld=$lt_cv_prog_gnu_ld
15097
15098
15099
15100
15101
15102
15103
15104      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15105      # archiving commands below assume that GNU ld is being used.
15106      if test yes = "$with_gnu_ld"; then
15107        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15108        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'
15109
15110        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15111        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15112
15113        # If archive_cmds runs LD, not CC, wlarc should be empty
15114        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15115        #     investigate it a little bit more. (MM)
15116        wlarc='$wl'
15117
15118        # ancient GNU ld didn't support --whole-archive et. al.
15119        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15120	  $GREP 'no-whole-archive' > /dev/null; then
15121          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15122        else
15123          whole_archive_flag_spec_CXX=
15124        fi
15125      else
15126        with_gnu_ld=no
15127        wlarc=
15128
15129        # A generic and very simple default shared library creation
15130        # command for GNU C++ for the case where it uses the native
15131        # linker, instead of GNU ld.  If possible, this setting should
15132        # overridden to take advantage of the native linker features on
15133        # the platform it is being used on.
15134        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15135      fi
15136
15137      # Commands to make compiler produce verbose output that lists
15138      # what "hidden" libraries, object files and flags are used when
15139      # linking a shared library.
15140      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15141
15142    else
15143      GXX=no
15144      with_gnu_ld=no
15145      wlarc=
15146    fi
15147
15148    # PORTME: fill in a description of your system's C++ link characteristics
15149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15150printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15151    ld_shlibs_CXX=yes
15152    case $host_os in
15153      aix3*)
15154        # FIXME: insert proper C++ library support
15155        ld_shlibs_CXX=no
15156        ;;
15157      aix[4-9]*)
15158        if test ia64 = "$host_cpu"; then
15159          # On IA64, the linker does run time linking by default, so we don't
15160          # have to do anything special.
15161          aix_use_runtimelinking=no
15162          exp_sym_flag='-Bexport'
15163          no_entry_flag=
15164        else
15165          aix_use_runtimelinking=no
15166
15167          # Test if we are trying to use run time linking or normal
15168          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15169          # have runtime linking enabled, and use it for executables.
15170          # For shared libraries, we enable/disable runtime linking
15171          # depending on the kind of the shared library created -
15172          # when "with_aix_soname,aix_use_runtimelinking" is:
15173          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15174          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15175          #            lib.a           static archive
15176          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15177          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15178          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15179          #            lib.a(lib.so.V) shared, rtl:no
15180          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15181          #            lib.a           static archive
15182          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15183	    for ld_flag in $LDFLAGS; do
15184	      case $ld_flag in
15185	      *-brtl*)
15186	        aix_use_runtimelinking=yes
15187	        break
15188	        ;;
15189	      esac
15190	    done
15191	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15192	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15193	      # so we don't have lib.a shared libs to link our executables.
15194	      # We have to force runtime linking in this case.
15195	      aix_use_runtimelinking=yes
15196	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15197	    fi
15198	    ;;
15199          esac
15200
15201          exp_sym_flag='-bexport'
15202          no_entry_flag='-bnoentry'
15203        fi
15204
15205        # When large executables or shared objects are built, AIX ld can
15206        # have problems creating the table of contents.  If linking a library
15207        # or program results in "error TOC overflow" add -mminimal-toc to
15208        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15209        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15210
15211        archive_cmds_CXX=''
15212        hardcode_direct_CXX=yes
15213        hardcode_direct_absolute_CXX=yes
15214        hardcode_libdir_separator_CXX=':'
15215        link_all_deplibs_CXX=yes
15216        file_list_spec_CXX='$wl-f,'
15217        case $with_aix_soname,$aix_use_runtimelinking in
15218        aix,*) ;;	# no import file
15219        svr4,* | *,yes) # use import file
15220          # The Import File defines what to hardcode.
15221          hardcode_direct_CXX=no
15222          hardcode_direct_absolute_CXX=no
15223          ;;
15224        esac
15225
15226        if test yes = "$GXX"; then
15227          case $host_os in aix4.[012]|aix4.[012].*)
15228          # We only want to do this on AIX 4.2 and lower, the check
15229          # below for broken collect2 doesn't work under 4.3+
15230	  collect2name=`$CC -print-prog-name=collect2`
15231	  if test -f "$collect2name" &&
15232	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15233	  then
15234	    # We have reworked collect2
15235	    :
15236	  else
15237	    # We have old collect2
15238	    hardcode_direct_CXX=unsupported
15239	    # It fails to find uninstalled libraries when the uninstalled
15240	    # path is not listed in the libpath.  Setting hardcode_minus_L
15241	    # to unsupported forces relinking
15242	    hardcode_minus_L_CXX=yes
15243	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15244	    hardcode_libdir_separator_CXX=
15245	  fi
15246          esac
15247          shared_flag='-shared'
15248	  if test yes = "$aix_use_runtimelinking"; then
15249	    shared_flag=$shared_flag' $wl-G'
15250	  fi
15251	  # Need to ensure runtime linking is disabled for the traditional
15252	  # shared library, or the linker may eventually find shared libraries
15253	  # /with/ Import File - we do not want to mix them.
15254	  shared_flag_aix='-shared'
15255	  shared_flag_svr4='-shared $wl-G'
15256        else
15257          # not using gcc
15258          if test ia64 = "$host_cpu"; then
15259	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15260	  # chokes on -Wl,-G. The following line is correct:
15261	  shared_flag='-G'
15262          else
15263	    if test yes = "$aix_use_runtimelinking"; then
15264	      shared_flag='$wl-G'
15265	    else
15266	      shared_flag='$wl-bM:SRE'
15267	    fi
15268	    shared_flag_aix='$wl-bM:SRE'
15269	    shared_flag_svr4='$wl-G'
15270          fi
15271        fi
15272
15273        export_dynamic_flag_spec_CXX='$wl-bexpall'
15274        # It seems that -bexpall does not export symbols beginning with
15275        # underscore (_), so it is better to generate a list of symbols to
15276	# export.
15277        always_export_symbols_CXX=yes
15278	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15279          # Warning - without using the other runtime loading flags (-brtl),
15280          # -berok will link without error, but may produce a broken library.
15281          # The "-G" linker flag allows undefined symbols.
15282          no_undefined_flag_CXX='-bernotok'
15283          # Determine the default libpath from the value encoded in an empty
15284          # executable.
15285          if test set = "${lt_cv_aix_libpath+set}"; then
15286  aix_libpath=$lt_cv_aix_libpath
15287else
15288  if test ${lt_cv_aix_libpath__CXX+y}
15289then :
15290  printf %s "(cached) " >&6
15291else $as_nop
15292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293/* end confdefs.h.  */
15294
15295int
15296main (void)
15297{
15298
15299  ;
15300  return 0;
15301}
15302_ACEOF
15303if ac_fn_cxx_try_link "$LINENO"
15304then :
15305
15306  lt_aix_libpath_sed='
15307      /Import File Strings/,/^$/ {
15308	  /^0/ {
15309	      s/^0  *\([^ ]*\) *$/\1/
15310	      p
15311	  }
15312      }'
15313  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314  # Check for a 64-bit object if we didn't find anything.
15315  if test -z "$lt_cv_aix_libpath__CXX"; then
15316    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15317  fi
15318fi
15319rm -f core conftest.err conftest.$ac_objext conftest.beam \
15320    conftest$ac_exeext conftest.$ac_ext
15321  if test -z "$lt_cv_aix_libpath__CXX"; then
15322    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15323  fi
15324
15325fi
15326
15327  aix_libpath=$lt_cv_aix_libpath__CXX
15328fi
15329
15330          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15331
15332          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
15333        else
15334          if test ia64 = "$host_cpu"; then
15335	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15336	    allow_undefined_flag_CXX="-z nodefs"
15337	    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"
15338          else
15339	    # Determine the default libpath from the value encoded in an
15340	    # empty executable.
15341	    if test set = "${lt_cv_aix_libpath+set}"; then
15342  aix_libpath=$lt_cv_aix_libpath
15343else
15344  if test ${lt_cv_aix_libpath__CXX+y}
15345then :
15346  printf %s "(cached) " >&6
15347else $as_nop
15348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349/* end confdefs.h.  */
15350
15351int
15352main (void)
15353{
15354
15355  ;
15356  return 0;
15357}
15358_ACEOF
15359if ac_fn_cxx_try_link "$LINENO"
15360then :
15361
15362  lt_aix_libpath_sed='
15363      /Import File Strings/,/^$/ {
15364	  /^0/ {
15365	      s/^0  *\([^ ]*\) *$/\1/
15366	      p
15367	  }
15368      }'
15369  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15370  # Check for a 64-bit object if we didn't find anything.
15371  if test -z "$lt_cv_aix_libpath__CXX"; then
15372    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15373  fi
15374fi
15375rm -f core conftest.err conftest.$ac_objext conftest.beam \
15376    conftest$ac_exeext conftest.$ac_ext
15377  if test -z "$lt_cv_aix_libpath__CXX"; then
15378    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15379  fi
15380
15381fi
15382
15383  aix_libpath=$lt_cv_aix_libpath__CXX
15384fi
15385
15386	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15387	    # Warning - without using the other run time loading flags,
15388	    # -berok will link without error, but may produce a broken library.
15389	    no_undefined_flag_CXX=' $wl-bernotok'
15390	    allow_undefined_flag_CXX=' $wl-berok'
15391	    if test yes = "$with_gnu_ld"; then
15392	      # We only use this code for GNU lds that support --whole-archive.
15393	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15394	    else
15395	      # Exported symbols can be pulled into shared objects from archives
15396	      whole_archive_flag_spec_CXX='$convenience'
15397	    fi
15398	    archive_cmds_need_lc_CXX=yes
15399	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15400	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15401	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15402	    if test svr4 != "$with_aix_soname"; then
15403	      # This is similar to how AIX traditionally builds its shared
15404	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15405	      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'
15406	    fi
15407	    if test aix != "$with_aix_soname"; then
15408	      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'
15409	    else
15410	      # used by -dlpreopen to get the symbols
15411	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15412	    fi
15413	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15414          fi
15415        fi
15416        ;;
15417
15418      beos*)
15419	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15420	  allow_undefined_flag_CXX=unsupported
15421	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15422	  # support --undefined.  This deserves some investigation.  FIXME
15423	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15424	else
15425	  ld_shlibs_CXX=no
15426	fi
15427	;;
15428
15429      chorus*)
15430        case $cc_basename in
15431          *)
15432	  # FIXME: insert proper C++ library support
15433	  ld_shlibs_CXX=no
15434	  ;;
15435        esac
15436        ;;
15437
15438      cygwin* | mingw* | pw32* | cegcc*)
15439	case $GXX,$cc_basename in
15440	,cl* | no,cl* | ,icl* | no,icl*)
15441	  # Native MSVC or ICC
15442	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15443	  # no search path for DLLs.
15444	  hardcode_libdir_flag_spec_CXX=' '
15445	  allow_undefined_flag_CXX=unsupported
15446	  always_export_symbols_CXX=yes
15447	  file_list_spec_CXX='@'
15448	  # Tell ltmain to make .lib files, not .a files.
15449	  libext=lib
15450	  # Tell ltmain to make .dll files, not .so files.
15451	  shrext_cmds=.dll
15452	  # FIXME: Setting linknames here is a bad hack.
15453	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15454	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15455              cp "$export_symbols" "$output_objdir/$soname.def";
15456              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15457            else
15458              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15459            fi~
15460            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15461            linknames='
15462	  # The linker will not automatically build a static lib if we build a DLL.
15463	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15464	  enable_shared_with_static_runtimes_CXX=yes
15465	  # Don't use ranlib
15466	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15467	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15468            lt_tool_outputfile="@TOOL_OUTPUT@"~
15469            case $lt_outputfile in
15470              *.exe|*.EXE) ;;
15471              *)
15472                lt_outputfile=$lt_outputfile.exe
15473                lt_tool_outputfile=$lt_tool_outputfile.exe
15474                ;;
15475            esac~
15476            func_to_tool_file "$lt_outputfile"~
15477            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15478              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15479              $RM "$lt_outputfile.manifest";
15480            fi'
15481	  ;;
15482	*)
15483	  # g++
15484	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15485	  # as there is no search path for DLLs.
15486	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15487	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15488	  allow_undefined_flag_CXX=unsupported
15489	  always_export_symbols_CXX=no
15490	  enable_shared_with_static_runtimes_CXX=yes
15491
15492	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15493	    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'
15494	    # If the export-symbols file already is a .def file, use it as
15495	    # is; otherwise, prepend EXPORTS...
15496	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15497              cp $export_symbols $output_objdir/$soname.def;
15498            else
15499              echo EXPORTS > $output_objdir/$soname.def;
15500              cat $export_symbols >> $output_objdir/$soname.def;
15501            fi~
15502            $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'
15503	  else
15504	    ld_shlibs_CXX=no
15505	  fi
15506	  ;;
15507	esac
15508	;;
15509      darwin* | rhapsody*)
15510
15511
15512  archive_cmds_need_lc_CXX=no
15513  hardcode_direct_CXX=no
15514  hardcode_automatic_CXX=yes
15515  hardcode_shlibpath_var_CXX=unsupported
15516  if test yes = "$lt_cv_ld_force_load"; then
15517    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\"`'
15518
15519  else
15520    whole_archive_flag_spec_CXX=''
15521  fi
15522  link_all_deplibs_CXX=yes
15523  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15524  case $cc_basename in
15525     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15526     *) _lt_dar_can_shared=$GCC ;;
15527  esac
15528  if test yes = "$_lt_dar_can_shared"; then
15529    output_verbose_link_cmd=func_echo_all
15530    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"
15531    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15532    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"
15533    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"
15534       if test yes != "$lt_cv_apple_cc_single_mod"; then
15535      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"
15536      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"
15537    fi
15538
15539  else
15540  ld_shlibs_CXX=no
15541  fi
15542
15543	;;
15544
15545      os2*)
15546	hardcode_libdir_flag_spec_CXX='-L$libdir'
15547	hardcode_minus_L_CXX=yes
15548	allow_undefined_flag_CXX=unsupported
15549	shrext_cmds=.dll
15550	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15551	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15552	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15553	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15554	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15555	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15556	  emximp -o $lib $output_objdir/$libname.def'
15557	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15558	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15559	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15560	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15561	  prefix_cmds="$SED"~
15562	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15563	    prefix_cmds="$prefix_cmds -e 1d";
15564	  fi~
15565	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15566	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15567	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15568	  emximp -o $lib $output_objdir/$libname.def'
15569	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15570	enable_shared_with_static_runtimes_CXX=yes
15571	file_list_spec_CXX='@'
15572	;;
15573
15574      dgux*)
15575        case $cc_basename in
15576          ec++*)
15577	    # FIXME: insert proper C++ library support
15578	    ld_shlibs_CXX=no
15579	    ;;
15580          ghcx*)
15581	    # Green Hills C++ Compiler
15582	    # FIXME: insert proper C++ library support
15583	    ld_shlibs_CXX=no
15584	    ;;
15585          *)
15586	    # FIXME: insert proper C++ library support
15587	    ld_shlibs_CXX=no
15588	    ;;
15589        esac
15590        ;;
15591
15592      freebsd2.*)
15593        # C++ shared libraries reported to be fairly broken before
15594	# switch to ELF
15595        ld_shlibs_CXX=no
15596        ;;
15597
15598      freebsd-elf*)
15599        archive_cmds_need_lc_CXX=no
15600        ;;
15601
15602      freebsd* | dragonfly* | midnightbsd*)
15603        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15604        # conventions
15605        ld_shlibs_CXX=yes
15606        ;;
15607
15608      haiku*)
15609        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15610        link_all_deplibs_CXX=yes
15611        ;;
15612
15613      hpux9*)
15614        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15615        hardcode_libdir_separator_CXX=:
15616        export_dynamic_flag_spec_CXX='$wl-E'
15617        hardcode_direct_CXX=yes
15618        hardcode_minus_L_CXX=yes # Not in the search PATH,
15619				             # but as the default
15620				             # location of the library.
15621
15622        case $cc_basename in
15623          CC*)
15624            # FIXME: insert proper C++ library support
15625            ld_shlibs_CXX=no
15626            ;;
15627          aCC*)
15628            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15629            # Commands to make compiler produce verbose output that lists
15630            # what "hidden" libraries, object files and flags are used when
15631            # linking a shared library.
15632            #
15633            # There doesn't appear to be a way to prevent this compiler from
15634            # explicitly linking system object files so we need to strip them
15635            # from the output so that they don't get included in the library
15636            # dependencies.
15637            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"'
15638            ;;
15639          *)
15640            if test yes = "$GXX"; then
15641              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15642            else
15643              # FIXME: insert proper C++ library support
15644              ld_shlibs_CXX=no
15645            fi
15646            ;;
15647        esac
15648        ;;
15649
15650      hpux10*|hpux11*)
15651        if test no = "$with_gnu_ld"; then
15652	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15653	  hardcode_libdir_separator_CXX=:
15654
15655          case $host_cpu in
15656            hppa*64*|ia64*)
15657              ;;
15658            *)
15659	      export_dynamic_flag_spec_CXX='$wl-E'
15660              ;;
15661          esac
15662        fi
15663        case $host_cpu in
15664          hppa*64*|ia64*)
15665            hardcode_direct_CXX=no
15666            hardcode_shlibpath_var_CXX=no
15667            ;;
15668          *)
15669            hardcode_direct_CXX=yes
15670            hardcode_direct_absolute_CXX=yes
15671            hardcode_minus_L_CXX=yes # Not in the search PATH,
15672					         # but as the default
15673					         # location of the library.
15674            ;;
15675        esac
15676
15677        case $cc_basename in
15678          CC*)
15679	    # FIXME: insert proper C++ library support
15680	    ld_shlibs_CXX=no
15681	    ;;
15682          aCC*)
15683	    case $host_cpu in
15684	      hppa*64*)
15685	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15686	        ;;
15687	      ia64*)
15688	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15689	        ;;
15690	      *)
15691	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15692	        ;;
15693	    esac
15694	    # Commands to make compiler produce verbose output that lists
15695	    # what "hidden" libraries, object files and flags are used when
15696	    # linking a shared library.
15697	    #
15698	    # There doesn't appear to be a way to prevent this compiler from
15699	    # explicitly linking system object files so we need to strip them
15700	    # from the output so that they don't get included in the library
15701	    # dependencies.
15702	    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"'
15703	    ;;
15704          *)
15705	    if test yes = "$GXX"; then
15706	      if test no = "$with_gnu_ld"; then
15707	        case $host_cpu in
15708	          hppa*64*)
15709	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15710	            ;;
15711	          ia64*)
15712	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15713	            ;;
15714	          *)
15715	            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'
15716	            ;;
15717	        esac
15718	      fi
15719	    else
15720	      # FIXME: insert proper C++ library support
15721	      ld_shlibs_CXX=no
15722	    fi
15723	    ;;
15724        esac
15725        ;;
15726
15727      interix[3-9]*)
15728	hardcode_direct_CXX=no
15729	hardcode_shlibpath_var_CXX=no
15730	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15731	export_dynamic_flag_spec_CXX='$wl-E'
15732	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15733	# Instead, shared libraries are loaded at an image base (0x10000000 by
15734	# default) and relocated if they conflict, which is a slow very memory
15735	# consuming and fragmenting process.  To avoid this, we pick a random,
15736	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15737	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15738	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'
15739	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'
15740	;;
15741      irix5* | irix6*)
15742        case $cc_basename in
15743          CC*)
15744	    # SGI C++
15745	    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'
15746
15747	    # Archives containing C++ object files must be created using
15748	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15749	    # necessary to make sure instantiated templates are included
15750	    # in the archive.
15751	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15752	    ;;
15753          *)
15754	    if test yes = "$GXX"; then
15755	      if test no = "$with_gnu_ld"; then
15756	        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'
15757	      else
15758	        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'
15759	      fi
15760	    fi
15761	    link_all_deplibs_CXX=yes
15762	    ;;
15763        esac
15764        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15765        hardcode_libdir_separator_CXX=:
15766        inherit_rpath_CXX=yes
15767        ;;
15768
15769      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15770        case $cc_basename in
15771          KCC*)
15772	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15773
15774	    # KCC will only create a shared library if the output file
15775	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15776	    # to its proper name (with version) after linking.
15777	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15778	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15779	    # Commands to make compiler produce verbose output that lists
15780	    # what "hidden" libraries, object files and flags are used when
15781	    # linking a shared library.
15782	    #
15783	    # There doesn't appear to be a way to prevent this compiler from
15784	    # explicitly linking system object files so we need to strip them
15785	    # from the output so that they don't get included in the library
15786	    # dependencies.
15787	    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"'
15788
15789	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15790	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15791
15792	    # Archives containing C++ object files must be created using
15793	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15794	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15795	    ;;
15796	  icpc* | ecpc* )
15797	    # Intel C++
15798	    with_gnu_ld=yes
15799	    # version 8.0 and above of icpc choke on multiply defined symbols
15800	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15801	    # earlier do not add the objects themselves.
15802	    case `$CC -V 2>&1` in
15803	      *"Version 7."*)
15804	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15805		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'
15806		;;
15807	      *)  # Version 8.0 or newer
15808	        tmp_idyn=
15809	        case $host_cpu in
15810		  ia64*) tmp_idyn=' -i_dynamic';;
15811		esac
15812	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15813		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'
15814		;;
15815	    esac
15816	    archive_cmds_need_lc_CXX=no
15817	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15818	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15819	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15820	    ;;
15821          pgCC* | pgcpp*)
15822            # Portland Group C++ compiler
15823	    case `$CC -V` in
15824	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15825	      prelink_cmds_CXX='tpldir=Template.dir~
15826               rm -rf $tpldir~
15827               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15828               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15829	      old_archive_cmds_CXX='tpldir=Template.dir~
15830                rm -rf $tpldir~
15831                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15832                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15833                $RANLIB $oldlib'
15834	      archive_cmds_CXX='tpldir=Template.dir~
15835                rm -rf $tpldir~
15836                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15837                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15838	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15839                rm -rf $tpldir~
15840                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15841                $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'
15842	      ;;
15843	    *) # Version 6 and above use weak symbols
15844	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15845	      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'
15846	      ;;
15847	    esac
15848
15849	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15850	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15851	    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'
15852            ;;
15853	  cxx*)
15854	    # Compaq C++
15855	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15856	    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'
15857
15858	    runpath_var=LD_RUN_PATH
15859	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15860	    hardcode_libdir_separator_CXX=:
15861
15862	    # Commands to make compiler produce verbose output that lists
15863	    # what "hidden" libraries, object files and flags are used when
15864	    # linking a shared library.
15865	    #
15866	    # There doesn't appear to be a way to prevent this compiler from
15867	    # explicitly linking system object files so we need to strip them
15868	    # from the output so that they don't get included in the library
15869	    # dependencies.
15870	    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'
15871	    ;;
15872	  xl* | mpixl* | bgxl*)
15873	    # IBM XL 8.0 on PPC, with GNU ld
15874	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15875	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15876	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15877	    if test yes = "$supports_anon_versioning"; then
15878	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15879                cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15880                echo "local: *; };" >> $output_objdir/$libname.ver~
15881                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15882	    fi
15883	    ;;
15884	  *)
15885	    case `$CC -V 2>&1 | $SED 5q` in
15886	    *Sun\ C*)
15887	      # Sun C++ 5.9
15888	      no_undefined_flag_CXX=' -zdefs'
15889	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15890	      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'
15891	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15892	      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'
15893	      compiler_needs_object_CXX=yes
15894
15895	      # Not sure whether something based on
15896	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15897	      # would be better.
15898	      output_verbose_link_cmd='func_echo_all'
15899
15900	      # Archives containing C++ object files must be created using
15901	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15902	      # necessary to make sure instantiated templates are included
15903	      # in the archive.
15904	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15905	      ;;
15906	    esac
15907	    ;;
15908	esac
15909	;;
15910
15911      lynxos*)
15912        # FIXME: insert proper C++ library support
15913	ld_shlibs_CXX=no
15914	;;
15915
15916      m88k*)
15917        # FIXME: insert proper C++ library support
15918        ld_shlibs_CXX=no
15919	;;
15920
15921      mvs*)
15922        case $cc_basename in
15923          cxx*)
15924	    # FIXME: insert proper C++ library support
15925	    ld_shlibs_CXX=no
15926	    ;;
15927	  *)
15928	    # FIXME: insert proper C++ library support
15929	    ld_shlibs_CXX=no
15930	    ;;
15931	esac
15932	;;
15933
15934      netbsd*)
15935        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15936	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15937	  wlarc=
15938	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15939	  hardcode_direct_CXX=yes
15940	  hardcode_shlibpath_var_CXX=no
15941	fi
15942	# Workaround some broken pre-1.5 toolchains
15943	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15944	;;
15945
15946      *nto* | *qnx*)
15947        ld_shlibs_CXX=yes
15948	;;
15949
15950      openbsd* | bitrig*)
15951	if test -f /usr/libexec/ld.so; then
15952	  hardcode_direct_CXX=yes
15953	  hardcode_shlibpath_var_CXX=no
15954	  hardcode_direct_absolute_CXX=yes
15955	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15956	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15957	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15958	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15959	    export_dynamic_flag_spec_CXX='$wl-E'
15960	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15961	  fi
15962	  output_verbose_link_cmd=func_echo_all
15963	else
15964	  ld_shlibs_CXX=no
15965	fi
15966	;;
15967
15968      osf3* | osf4* | osf5*)
15969        case $cc_basename in
15970          KCC*)
15971	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15972
15973	    # KCC will only create a shared library if the output file
15974	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15975	    # to its proper name (with version) after linking.
15976	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15977
15978	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15979	    hardcode_libdir_separator_CXX=:
15980
15981	    # Archives containing C++ object files must be created using
15982	    # the KAI C++ compiler.
15983	    case $host in
15984	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15985	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15986	    esac
15987	    ;;
15988          RCC*)
15989	    # Rational C++ 2.4.1
15990	    # FIXME: insert proper C++ library support
15991	    ld_shlibs_CXX=no
15992	    ;;
15993          cxx*)
15994	    case $host in
15995	      osf3*)
15996	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15997	        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'
15998	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15999		;;
16000	      *)
16001	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16002	        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'
16003	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16004                  echo "-hidden">> $lib.exp~
16005                  $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~
16006                  $RM $lib.exp'
16007	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16008		;;
16009	    esac
16010
16011	    hardcode_libdir_separator_CXX=:
16012
16013	    # Commands to make compiler produce verbose output that lists
16014	    # what "hidden" libraries, object files and flags are used when
16015	    # linking a shared library.
16016	    #
16017	    # There doesn't appear to be a way to prevent this compiler from
16018	    # explicitly linking system object files so we need to strip them
16019	    # from the output so that they don't get included in the library
16020	    # dependencies.
16021	    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"'
16022	    ;;
16023	  *)
16024	    if test yes,no = "$GXX,$with_gnu_ld"; then
16025	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16026	      case $host in
16027	        osf3*)
16028	          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'
16029		  ;;
16030	        *)
16031	          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'
16032		  ;;
16033	      esac
16034
16035	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16036	      hardcode_libdir_separator_CXX=:
16037
16038	      # Commands to make compiler produce verbose output that lists
16039	      # what "hidden" libraries, object files and flags are used when
16040	      # linking a shared library.
16041	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16042
16043	    else
16044	      # FIXME: insert proper C++ library support
16045	      ld_shlibs_CXX=no
16046	    fi
16047	    ;;
16048        esac
16049        ;;
16050
16051      psos*)
16052        # FIXME: insert proper C++ library support
16053        ld_shlibs_CXX=no
16054        ;;
16055
16056      sunos4*)
16057        case $cc_basename in
16058          CC*)
16059	    # Sun C++ 4.x
16060	    # FIXME: insert proper C++ library support
16061	    ld_shlibs_CXX=no
16062	    ;;
16063          lcc*)
16064	    # Lucid
16065	    # FIXME: insert proper C++ library support
16066	    ld_shlibs_CXX=no
16067	    ;;
16068          *)
16069	    # FIXME: insert proper C++ library support
16070	    ld_shlibs_CXX=no
16071	    ;;
16072        esac
16073        ;;
16074
16075      solaris*)
16076        case $cc_basename in
16077          CC* | sunCC*)
16078	    # Sun C++ 4.2, 5.x and Centerline C++
16079            archive_cmds_need_lc_CXX=yes
16080	    no_undefined_flag_CXX=' -zdefs'
16081	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16082	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16083              $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'
16084
16085	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16086	    hardcode_shlibpath_var_CXX=no
16087	    case $host_os in
16088	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16089	      *)
16090		# The compiler driver will combine and reorder linker options,
16091		# but understands '-z linker_flag'.
16092	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16093		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16094	        ;;
16095	    esac
16096	    link_all_deplibs_CXX=yes
16097
16098	    output_verbose_link_cmd='func_echo_all'
16099
16100	    # Archives containing C++ object files must be created using
16101	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16102	    # necessary to make sure instantiated templates are included
16103	    # in the archive.
16104	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16105	    ;;
16106          gcx*)
16107	    # Green Hills C++ Compiler
16108	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16109
16110	    # The C++ compiler must be used to create the archive.
16111	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16112	    ;;
16113          *)
16114	    # GNU C++ compiler with Solaris linker
16115	    if test yes,no = "$GXX,$with_gnu_ld"; then
16116	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16117	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16118	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16119	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16120                  $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'
16121
16122	        # Commands to make compiler produce verbose output that lists
16123	        # what "hidden" libraries, object files and flags are used when
16124	        # linking a shared library.
16125	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16126	      else
16127	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16128	        # platform.
16129	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16130	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16131                  $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'
16132
16133	        # Commands to make compiler produce verbose output that lists
16134	        # what "hidden" libraries, object files and flags are used when
16135	        # linking a shared library.
16136	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16137	      fi
16138
16139	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16140	      case $host_os in
16141		solaris2.[0-5] | solaris2.[0-5].*) ;;
16142		*)
16143		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16144		  ;;
16145	      esac
16146	    fi
16147	    ;;
16148        esac
16149        ;;
16150
16151    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16152      no_undefined_flag_CXX='$wl-z,text'
16153      archive_cmds_need_lc_CXX=no
16154      hardcode_shlibpath_var_CXX=no
16155      runpath_var='LD_RUN_PATH'
16156
16157      case $cc_basename in
16158        CC*)
16159	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16160	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16161	  ;;
16162	*)
16163	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165	  ;;
16166      esac
16167      ;;
16168
16169      sysv5* | sco3.2v5* | sco5v6*)
16170	# Note: We CANNOT use -z defs as we might desire, because we do not
16171	# link with -lc, and that would cause any symbols used from libc to
16172	# always be unresolved, which means just about no library would
16173	# ever link correctly.  If we're not using GNU ld we use -z text
16174	# though, which does catch some bad symbols but isn't as heavy-handed
16175	# as -z defs.
16176	no_undefined_flag_CXX='$wl-z,text'
16177	allow_undefined_flag_CXX='$wl-z,nodefs'
16178	archive_cmds_need_lc_CXX=no
16179	hardcode_shlibpath_var_CXX=no
16180	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16181	hardcode_libdir_separator_CXX=':'
16182	link_all_deplibs_CXX=yes
16183	export_dynamic_flag_spec_CXX='$wl-Bexport'
16184	runpath_var='LD_RUN_PATH'
16185
16186	case $cc_basename in
16187          CC*)
16188	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16189	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16191              '"$old_archive_cmds_CXX"
16192	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16193              '"$reload_cmds_CXX"
16194	    ;;
16195	  *)
16196	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16197	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16198	    ;;
16199	esac
16200      ;;
16201
16202      tandem*)
16203        case $cc_basename in
16204          NCC*)
16205	    # NonStop-UX NCC 3.20
16206	    # FIXME: insert proper C++ library support
16207	    ld_shlibs_CXX=no
16208	    ;;
16209          *)
16210	    # FIXME: insert proper C++ library support
16211	    ld_shlibs_CXX=no
16212	    ;;
16213        esac
16214        ;;
16215
16216      vxworks*)
16217        # FIXME: insert proper C++ library support
16218        ld_shlibs_CXX=no
16219        ;;
16220
16221      *)
16222        # FIXME: insert proper C++ library support
16223        ld_shlibs_CXX=no
16224        ;;
16225    esac
16226
16227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16228printf "%s\n" "$ld_shlibs_CXX" >&6; }
16229    test no = "$ld_shlibs_CXX" && can_build_shared=no
16230
16231    GCC_CXX=$GXX
16232    LD_CXX=$LD
16233
16234    ## CAVEAT EMPTOR:
16235    ## There is no encapsulation within the following macros, do not change
16236    ## the running order or otherwise move them around unless you know exactly
16237    ## what you are doing...
16238    # Dependencies to place before and after the object being linked:
16239predep_objects_CXX=
16240postdep_objects_CXX=
16241predeps_CXX=
16242postdeps_CXX=
16243compiler_lib_search_path_CXX=
16244
16245cat > conftest.$ac_ext <<_LT_EOF
16246class Foo
16247{
16248public:
16249  Foo (void) { a = 0; }
16250private:
16251  int a;
16252};
16253_LT_EOF
16254
16255
16256_lt_libdeps_save_CFLAGS=$CFLAGS
16257case "$CC $CFLAGS " in #(
16258*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16259*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16260*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16261esac
16262
16263if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16264  (eval $ac_compile) 2>&5
16265  ac_status=$?
16266  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16267  test $ac_status = 0; }; then
16268  # Parse the compiler output and extract the necessary
16269  # objects, libraries and library flags.
16270
16271  # Sentinel used to keep track of whether or not we are before
16272  # the conftest object file.
16273  pre_test_object_deps_done=no
16274
16275  for p in `eval "$output_verbose_link_cmd"`; do
16276    case $prev$p in
16277
16278    -L* | -R* | -l*)
16279       # Some compilers place space between "-{L,R}" and the path.
16280       # Remove the space.
16281       if test x-L = "$p" ||
16282          test x-R = "$p"; then
16283	 prev=$p
16284	 continue
16285       fi
16286
16287       # Expand the sysroot to ease extracting the directories later.
16288       if test -z "$prev"; then
16289         case $p in
16290         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16291         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16292         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16293         esac
16294       fi
16295       case $p in
16296       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16297       esac
16298       if test no = "$pre_test_object_deps_done"; then
16299	 case $prev in
16300	 -L | -R)
16301	   # Internal compiler library paths should come after those
16302	   # provided the user.  The postdeps already come after the
16303	   # user supplied libs so there is no need to process them.
16304	   if test -z "$compiler_lib_search_path_CXX"; then
16305	     compiler_lib_search_path_CXX=$prev$p
16306	   else
16307	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16308	   fi
16309	   ;;
16310	 # The "-l" case would never come before the object being
16311	 # linked, so don't bother handling this case.
16312	 esac
16313       else
16314	 if test -z "$postdeps_CXX"; then
16315	   postdeps_CXX=$prev$p
16316	 else
16317	   postdeps_CXX="${postdeps_CXX} $prev$p"
16318	 fi
16319       fi
16320       prev=
16321       ;;
16322
16323    *.lto.$objext) ;; # Ignore GCC LTO objects
16324    *.$objext)
16325       # This assumes that the test object file only shows up
16326       # once in the compiler output.
16327       if test "$p" = "conftest.$objext"; then
16328	 pre_test_object_deps_done=yes
16329	 continue
16330       fi
16331
16332       if test no = "$pre_test_object_deps_done"; then
16333	 if test -z "$predep_objects_CXX"; then
16334	   predep_objects_CXX=$p
16335	 else
16336	   predep_objects_CXX="$predep_objects_CXX $p"
16337	 fi
16338       else
16339	 if test -z "$postdep_objects_CXX"; then
16340	   postdep_objects_CXX=$p
16341	 else
16342	   postdep_objects_CXX="$postdep_objects_CXX $p"
16343	 fi
16344       fi
16345       ;;
16346
16347    *) ;; # Ignore the rest.
16348
16349    esac
16350  done
16351
16352  # Clean up.
16353  rm -f a.out a.exe
16354else
16355  echo "libtool.m4: error: problem compiling CXX test program"
16356fi
16357
16358$RM -f confest.$objext
16359CFLAGS=$_lt_libdeps_save_CFLAGS
16360
16361# PORTME: override above test on systems where it is broken
16362case $host_os in
16363interix[3-9]*)
16364  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16365  # hack all around it, let's just trust "g++" to DTRT.
16366  predep_objects_CXX=
16367  postdep_objects_CXX=
16368  postdeps_CXX=
16369  ;;
16370esac
16371
16372
16373case " $postdeps_CXX " in
16374*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16375esac
16376 compiler_lib_search_dirs_CXX=
16377if test -n "${compiler_lib_search_path_CXX}"; then
16378 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16379fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411    lt_prog_compiler_wl_CXX=
16412lt_prog_compiler_pic_CXX=
16413lt_prog_compiler_static_CXX=
16414
16415
16416  # C++ specific cases for pic, static, wl, etc.
16417  if test yes = "$GXX"; then
16418    lt_prog_compiler_wl_CXX='-Wl,'
16419    lt_prog_compiler_static_CXX='-static'
16420
16421    case $host_os in
16422    aix*)
16423      # All AIX code is PIC.
16424      if test ia64 = "$host_cpu"; then
16425	# AIX 5 now supports IA64 processor
16426	lt_prog_compiler_static_CXX='-Bstatic'
16427      fi
16428      lt_prog_compiler_pic_CXX='-fPIC'
16429      ;;
16430
16431    amigaos*)
16432      case $host_cpu in
16433      powerpc)
16434            # see comment about AmigaOS4 .so support
16435            lt_prog_compiler_pic_CXX='-fPIC'
16436        ;;
16437      m68k)
16438            # FIXME: we need at least 68020 code to build shared libraries, but
16439            # adding the '-m68020' flag to GCC prevents building anything better,
16440            # like '-m68040'.
16441            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16442        ;;
16443      esac
16444      ;;
16445
16446    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16447      # PIC is the default for these OSes.
16448      ;;
16449    mingw* | cygwin* | os2* | pw32* | cegcc*)
16450      # This hack is so that the source file can tell whether it is being
16451      # built for inclusion in a dll (and should export symbols for example).
16452      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16453      # (--disable-auto-import) libraries
16454      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16455      case $host_os in
16456      os2*)
16457	lt_prog_compiler_static_CXX='$wl-static'
16458	;;
16459      esac
16460      ;;
16461    darwin* | rhapsody*)
16462      # PIC is the default on this platform
16463      # Common symbols not allowed in MH_DYLIB files
16464      lt_prog_compiler_pic_CXX='-fno-common'
16465      ;;
16466    *djgpp*)
16467      # DJGPP does not support shared libraries at all
16468      lt_prog_compiler_pic_CXX=
16469      ;;
16470    haiku*)
16471      # PIC is the default for Haiku.
16472      # The "-static" flag exists, but is broken.
16473      lt_prog_compiler_static_CXX=
16474      ;;
16475    interix[3-9]*)
16476      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16477      # Instead, we relocate shared libraries at runtime.
16478      ;;
16479    sysv4*MP*)
16480      if test -d /usr/nec; then
16481	lt_prog_compiler_pic_CXX=-Kconform_pic
16482      fi
16483      ;;
16484    hpux*)
16485      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16486      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16487      # sets the default TLS model and affects inlining.
16488      case $host_cpu in
16489      hppa*64*)
16490	;;
16491      *)
16492	lt_prog_compiler_pic_CXX='-fPIC'
16493	;;
16494      esac
16495      ;;
16496    *qnx* | *nto*)
16497      # QNX uses GNU C++, but need to define -shared option too, otherwise
16498      # it will coredump.
16499      lt_prog_compiler_pic_CXX='-fPIC -shared'
16500      ;;
16501    *)
16502      lt_prog_compiler_pic_CXX='-fPIC'
16503      ;;
16504    esac
16505  else
16506    case $host_os in
16507      aix[4-9]*)
16508	# All AIX code is PIC.
16509	if test ia64 = "$host_cpu"; then
16510	  # AIX 5 now supports IA64 processor
16511	  lt_prog_compiler_static_CXX='-Bstatic'
16512	else
16513	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16514	fi
16515	;;
16516      chorus*)
16517	case $cc_basename in
16518	cxch68*)
16519	  # Green Hills C++ Compiler
16520	  # _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"
16521	  ;;
16522	esac
16523	;;
16524      mingw* | cygwin* | os2* | pw32* | cegcc*)
16525	# This hack is so that the source file can tell whether it is being
16526	# built for inclusion in a dll (and should export symbols for example).
16527	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16528	;;
16529      dgux*)
16530	case $cc_basename in
16531	  ec++*)
16532	    lt_prog_compiler_pic_CXX='-KPIC'
16533	    ;;
16534	  ghcx*)
16535	    # Green Hills C++ Compiler
16536	    lt_prog_compiler_pic_CXX='-pic'
16537	    ;;
16538	  *)
16539	    ;;
16540	esac
16541	;;
16542      freebsd* | dragonfly* | midnightbsd*)
16543	# FreeBSD uses GNU C++
16544	;;
16545      hpux9* | hpux10* | hpux11*)
16546	case $cc_basename in
16547	  CC*)
16548	    lt_prog_compiler_wl_CXX='-Wl,'
16549	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16550	    if test ia64 != "$host_cpu"; then
16551	      lt_prog_compiler_pic_CXX='+Z'
16552	    fi
16553	    ;;
16554	  aCC*)
16555	    lt_prog_compiler_wl_CXX='-Wl,'
16556	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16557	    case $host_cpu in
16558	    hppa*64*|ia64*)
16559	      # +Z the default
16560	      ;;
16561	    *)
16562	      lt_prog_compiler_pic_CXX='+Z'
16563	      ;;
16564	    esac
16565	    ;;
16566	  *)
16567	    ;;
16568	esac
16569	;;
16570      interix*)
16571	# This is c89, which is MS Visual C++ (no shared libs)
16572	# Anyone wants to do a port?
16573	;;
16574      irix5* | irix6* | nonstopux*)
16575	case $cc_basename in
16576	  CC*)
16577	    lt_prog_compiler_wl_CXX='-Wl,'
16578	    lt_prog_compiler_static_CXX='-non_shared'
16579	    # CC pic flag -KPIC is the default.
16580	    ;;
16581	  *)
16582	    ;;
16583	esac
16584	;;
16585      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16586	case $cc_basename in
16587	  KCC*)
16588	    # KAI C++ Compiler
16589	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16590	    lt_prog_compiler_pic_CXX='-fPIC'
16591	    ;;
16592	  ecpc* )
16593	    # old Intel C++ for x86_64, which still supported -KPIC.
16594	    lt_prog_compiler_wl_CXX='-Wl,'
16595	    lt_prog_compiler_pic_CXX='-KPIC'
16596	    lt_prog_compiler_static_CXX='-static'
16597	    ;;
16598	  icpc* )
16599	    # Intel C++, used to be incompatible with GCC.
16600	    # ICC 10 doesn't accept -KPIC any more.
16601	    lt_prog_compiler_wl_CXX='-Wl,'
16602	    lt_prog_compiler_pic_CXX='-fPIC'
16603	    lt_prog_compiler_static_CXX='-static'
16604	    ;;
16605	  pgCC* | pgcpp*)
16606	    # Portland Group C++ compiler
16607	    lt_prog_compiler_wl_CXX='-Wl,'
16608	    lt_prog_compiler_pic_CXX='-fpic'
16609	    lt_prog_compiler_static_CXX='-Bstatic'
16610	    ;;
16611	  cxx*)
16612	    # Compaq C++
16613	    # Make sure the PIC flag is empty.  It appears that all Alpha
16614	    # Linux and Compaq Tru64 Unix objects are PIC.
16615	    lt_prog_compiler_pic_CXX=
16616	    lt_prog_compiler_static_CXX='-non_shared'
16617	    ;;
16618	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16619	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16620	    lt_prog_compiler_wl_CXX='-Wl,'
16621	    lt_prog_compiler_pic_CXX='-qpic'
16622	    lt_prog_compiler_static_CXX='-qstaticlink'
16623	    ;;
16624	  *)
16625	    case `$CC -V 2>&1 | $SED 5q` in
16626	    *Sun\ C*)
16627	      # Sun C++ 5.9
16628	      lt_prog_compiler_pic_CXX='-KPIC'
16629	      lt_prog_compiler_static_CXX='-Bstatic'
16630	      lt_prog_compiler_wl_CXX='-Qoption ld '
16631	      ;;
16632	    esac
16633	    ;;
16634	esac
16635	;;
16636      lynxos*)
16637	;;
16638      m88k*)
16639	;;
16640      mvs*)
16641	case $cc_basename in
16642	  cxx*)
16643	    lt_prog_compiler_pic_CXX='-W c,exportall'
16644	    ;;
16645	  *)
16646	    ;;
16647	esac
16648	;;
16649      netbsd* | netbsdelf*-gnu)
16650	;;
16651      *qnx* | *nto*)
16652        # QNX uses GNU C++, but need to define -shared option too, otherwise
16653        # it will coredump.
16654        lt_prog_compiler_pic_CXX='-fPIC -shared'
16655        ;;
16656      osf3* | osf4* | osf5*)
16657	case $cc_basename in
16658	  KCC*)
16659	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16660	    ;;
16661	  RCC*)
16662	    # Rational C++ 2.4.1
16663	    lt_prog_compiler_pic_CXX='-pic'
16664	    ;;
16665	  cxx*)
16666	    # Digital/Compaq C++
16667	    lt_prog_compiler_wl_CXX='-Wl,'
16668	    # Make sure the PIC flag is empty.  It appears that all Alpha
16669	    # Linux and Compaq Tru64 Unix objects are PIC.
16670	    lt_prog_compiler_pic_CXX=
16671	    lt_prog_compiler_static_CXX='-non_shared'
16672	    ;;
16673	  *)
16674	    ;;
16675	esac
16676	;;
16677      psos*)
16678	;;
16679      solaris*)
16680	case $cc_basename in
16681	  CC* | sunCC*)
16682	    # Sun C++ 4.2, 5.x and Centerline C++
16683	    lt_prog_compiler_pic_CXX='-KPIC'
16684	    lt_prog_compiler_static_CXX='-Bstatic'
16685	    lt_prog_compiler_wl_CXX='-Qoption ld '
16686	    ;;
16687	  gcx*)
16688	    # Green Hills C++ Compiler
16689	    lt_prog_compiler_pic_CXX='-PIC'
16690	    ;;
16691	  *)
16692	    ;;
16693	esac
16694	;;
16695      sunos4*)
16696	case $cc_basename in
16697	  CC*)
16698	    # Sun C++ 4.x
16699	    lt_prog_compiler_pic_CXX='-pic'
16700	    lt_prog_compiler_static_CXX='-Bstatic'
16701	    ;;
16702	  lcc*)
16703	    # Lucid
16704	    lt_prog_compiler_pic_CXX='-pic'
16705	    ;;
16706	  *)
16707	    ;;
16708	esac
16709	;;
16710      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16711	case $cc_basename in
16712	  CC*)
16713	    lt_prog_compiler_wl_CXX='-Wl,'
16714	    lt_prog_compiler_pic_CXX='-KPIC'
16715	    lt_prog_compiler_static_CXX='-Bstatic'
16716	    ;;
16717	esac
16718	;;
16719      tandem*)
16720	case $cc_basename in
16721	  NCC*)
16722	    # NonStop-UX NCC 3.20
16723	    lt_prog_compiler_pic_CXX='-KPIC'
16724	    ;;
16725	  *)
16726	    ;;
16727	esac
16728	;;
16729      vxworks*)
16730	;;
16731      *)
16732	lt_prog_compiler_can_build_shared_CXX=no
16733	;;
16734    esac
16735  fi
16736
16737case $host_os in
16738  # For platforms that do not support PIC, -DPIC is meaningless:
16739  *djgpp*)
16740    lt_prog_compiler_pic_CXX=
16741    ;;
16742  *)
16743    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16744    ;;
16745esac
16746
16747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16748printf %s "checking for $compiler option to produce PIC... " >&6; }
16749if test ${lt_cv_prog_compiler_pic_CXX+y}
16750then :
16751  printf %s "(cached) " >&6
16752else $as_nop
16753  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16754fi
16755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16756printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16757lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16758
16759#
16760# Check to make sure the PIC flag actually works.
16761#
16762if test -n "$lt_prog_compiler_pic_CXX"; then
16763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16764printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16765if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16766then :
16767  printf %s "(cached) " >&6
16768else $as_nop
16769  lt_cv_prog_compiler_pic_works_CXX=no
16770   ac_outfile=conftest.$ac_objext
16771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16772   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16773   # Insert the option either (1) after the last *FLAGS variable, or
16774   # (2) before a word containing "conftest.", or (3) at the end.
16775   # Note that $ac_compile itself does not contain backslashes and begins
16776   # with a dollar sign (not a hyphen), so the echo should work correctly.
16777   # The option is referenced via a variable to avoid confusing sed.
16778   lt_compile=`echo "$ac_compile" | $SED \
16779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16781   -e 's:$: $lt_compiler_flag:'`
16782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16783   (eval "$lt_compile" 2>conftest.err)
16784   ac_status=$?
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   if (exit $ac_status) && test -s "$ac_outfile"; then
16788     # The compiler can only warn and ignore the option if not recognized
16789     # So say no if there are warnings other than the usual output.
16790     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16791     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16792     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16793       lt_cv_prog_compiler_pic_works_CXX=yes
16794     fi
16795   fi
16796   $RM conftest*
16797
16798fi
16799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16800printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16801
16802if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16803    case $lt_prog_compiler_pic_CXX in
16804     "" | " "*) ;;
16805     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16806     esac
16807else
16808    lt_prog_compiler_pic_CXX=
16809     lt_prog_compiler_can_build_shared_CXX=no
16810fi
16811
16812fi
16813
16814
16815
16816
16817
16818#
16819# Check to make sure the static flag actually works.
16820#
16821wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16823printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16824if test ${lt_cv_prog_compiler_static_works_CXX+y}
16825then :
16826  printf %s "(cached) " >&6
16827else $as_nop
16828  lt_cv_prog_compiler_static_works_CXX=no
16829   save_LDFLAGS=$LDFLAGS
16830   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16831   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16832   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16833     # The linker can only warn and ignore the option if not recognized
16834     # So say no if there are warnings
16835     if test -s conftest.err; then
16836       # Append any errors to the config.log.
16837       cat conftest.err 1>&5
16838       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16839       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16840       if diff conftest.exp conftest.er2 >/dev/null; then
16841         lt_cv_prog_compiler_static_works_CXX=yes
16842       fi
16843     else
16844       lt_cv_prog_compiler_static_works_CXX=yes
16845     fi
16846   fi
16847   $RM -r conftest*
16848   LDFLAGS=$save_LDFLAGS
16849
16850fi
16851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16852printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16853
16854if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16855    :
16856else
16857    lt_prog_compiler_static_CXX=
16858fi
16859
16860
16861
16862
16863    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16864printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16865if test ${lt_cv_prog_compiler_c_o_CXX+y}
16866then :
16867  printf %s "(cached) " >&6
16868else $as_nop
16869  lt_cv_prog_compiler_c_o_CXX=no
16870   $RM -r conftest 2>/dev/null
16871   mkdir conftest
16872   cd conftest
16873   mkdir out
16874   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16875
16876   lt_compiler_flag="-o out/conftest2.$ac_objext"
16877   # Insert the option either (1) after the last *FLAGS variable, or
16878   # (2) before a word containing "conftest.", or (3) at the end.
16879   # Note that $ac_compile itself does not contain backslashes and begins
16880   # with a dollar sign (not a hyphen), so the echo should work correctly.
16881   lt_compile=`echo "$ac_compile" | $SED \
16882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16884   -e 's:$: $lt_compiler_flag:'`
16885   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16886   (eval "$lt_compile" 2>out/conftest.err)
16887   ac_status=$?
16888   cat out/conftest.err >&5
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16891   then
16892     # The compiler can only warn and ignore the option if not recognized
16893     # So say no if there are warnings
16894     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16895     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16896     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16897       lt_cv_prog_compiler_c_o_CXX=yes
16898     fi
16899   fi
16900   chmod u+w . 2>&5
16901   $RM conftest*
16902   # SGI C++ compiler will create directory out/ii_files/ for
16903   # template instantiation
16904   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16905   $RM out/* && rmdir out
16906   cd ..
16907   $RM -r conftest
16908   $RM conftest*
16909
16910fi
16911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16912printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16913
16914
16915
16916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16917printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16918if test ${lt_cv_prog_compiler_c_o_CXX+y}
16919then :
16920  printf %s "(cached) " >&6
16921else $as_nop
16922  lt_cv_prog_compiler_c_o_CXX=no
16923   $RM -r conftest 2>/dev/null
16924   mkdir conftest
16925   cd conftest
16926   mkdir out
16927   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16928
16929   lt_compiler_flag="-o out/conftest2.$ac_objext"
16930   # Insert the option either (1) after the last *FLAGS variable, or
16931   # (2) before a word containing "conftest.", or (3) at the end.
16932   # Note that $ac_compile itself does not contain backslashes and begins
16933   # with a dollar sign (not a hyphen), so the echo should work correctly.
16934   lt_compile=`echo "$ac_compile" | $SED \
16935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16937   -e 's:$: $lt_compiler_flag:'`
16938   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16939   (eval "$lt_compile" 2>out/conftest.err)
16940   ac_status=$?
16941   cat out/conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16944   then
16945     # The compiler can only warn and ignore the option if not recognized
16946     # So say no if there are warnings
16947     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16948     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16949     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16950       lt_cv_prog_compiler_c_o_CXX=yes
16951     fi
16952   fi
16953   chmod u+w . 2>&5
16954   $RM conftest*
16955   # SGI C++ compiler will create directory out/ii_files/ for
16956   # template instantiation
16957   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16958   $RM out/* && rmdir out
16959   cd ..
16960   $RM -r conftest
16961   $RM conftest*
16962
16963fi
16964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16965printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16966
16967
16968
16969
16970hard_links=nottested
16971if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16972  # do not overwrite the value of need_locks provided by the user
16973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16974printf %s "checking if we can lock with hard links... " >&6; }
16975  hard_links=yes
16976  $RM conftest*
16977  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16978  touch conftest.a
16979  ln conftest.a conftest.b 2>&5 || hard_links=no
16980  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16982printf "%s\n" "$hard_links" >&6; }
16983  if test no = "$hard_links"; then
16984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16985printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16986    need_locks=warn
16987  fi
16988else
16989  need_locks=no
16990fi
16991
16992
16993
16994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16995printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16996
16997  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16998  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16999  case $host_os in
17000  aix[4-9]*)
17001    # If we're using GNU nm, then we don't want the "-C" option.
17002    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17003    # Without the "-l" option, or with the "-B" option, AIX nm treats
17004    # weak defined symbols like other global defined symbols, whereas
17005    # GNU nm marks them as "W".
17006    # While the 'weak' keyword is ignored in the Export File, we need
17007    # it in the Import File for the 'aix-soname' feature, so we have
17008    # to replace the "-B" option with "-P" for AIX nm.
17009    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17010      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'
17011    else
17012      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 == "L") || (\$ 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'
17013    fi
17014    ;;
17015  pw32*)
17016    export_symbols_cmds_CXX=$ltdll_cmds
17017    ;;
17018  cygwin* | mingw* | cegcc*)
17019    case $cc_basename in
17020    cl* | icl*)
17021      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17022      ;;
17023    *)
17024      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'
17025      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17026      ;;
17027    esac
17028    ;;
17029  linux* | k*bsd*-gnu | gnu*)
17030    link_all_deplibs_CXX=no
17031    ;;
17032  *)
17033    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17034    ;;
17035  esac
17036
17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17038printf "%s\n" "$ld_shlibs_CXX" >&6; }
17039test no = "$ld_shlibs_CXX" && can_build_shared=no
17040
17041with_gnu_ld_CXX=$with_gnu_ld
17042
17043
17044
17045
17046
17047
17048#
17049# Do we need to explicitly link libc?
17050#
17051case "x$archive_cmds_need_lc_CXX" in
17052x|xyes)
17053  # Assume -lc should be added
17054  archive_cmds_need_lc_CXX=yes
17055
17056  if test yes,yes = "$GCC,$enable_shared"; then
17057    case $archive_cmds_CXX in
17058    *'~'*)
17059      # FIXME: we may have to deal with multi-command sequences.
17060      ;;
17061    '$CC '*)
17062      # Test whether the compiler implicitly links with -lc since on some
17063      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17064      # to ld, don't add -lc before -lgcc.
17065      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17066printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17067if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17068then :
17069  printf %s "(cached) " >&6
17070else $as_nop
17071  $RM conftest*
17072	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17073
17074	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17075  (eval $ac_compile) 2>&5
17076  ac_status=$?
17077  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17078  test $ac_status = 0; } 2>conftest.err; then
17079	  soname=conftest
17080	  lib=conftest
17081	  libobjs=conftest.$ac_objext
17082	  deplibs=
17083	  wl=$lt_prog_compiler_wl_CXX
17084	  pic_flag=$lt_prog_compiler_pic_CXX
17085	  compiler_flags=-v
17086	  linker_flags=-v
17087	  verstring=
17088	  output_objdir=.
17089	  libname=conftest
17090	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17091	  allow_undefined_flag_CXX=
17092	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17093  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17094  ac_status=$?
17095  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17096  test $ac_status = 0; }
17097	  then
17098	    lt_cv_archive_cmds_need_lc_CXX=no
17099	  else
17100	    lt_cv_archive_cmds_need_lc_CXX=yes
17101	  fi
17102	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17103	else
17104	  cat conftest.err 1>&5
17105	fi
17106	$RM conftest*
17107
17108fi
17109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17110printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17111      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17112      ;;
17113    esac
17114  fi
17115  ;;
17116esac
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17180printf %s "checking dynamic linker characteristics... " >&6; }
17181
17182library_names_spec=
17183libname_spec='lib$name'
17184soname_spec=
17185shrext_cmds=.so
17186postinstall_cmds=
17187postuninstall_cmds=
17188finish_cmds=
17189finish_eval=
17190shlibpath_var=
17191shlibpath_overrides_runpath=unknown
17192version_type=none
17193dynamic_linker="$host_os ld.so"
17194sys_lib_dlsearch_path_spec="/lib /usr/lib"
17195need_lib_prefix=unknown
17196hardcode_into_libs=no
17197
17198# when you set need_version to no, make sure it does not cause -set_version
17199# flags to be left without arguments
17200need_version=unknown
17201
17202
17203
17204case $host_os in
17205aix3*)
17206  version_type=linux # correct to gnu/linux during the next big refactor
17207  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17208  shlibpath_var=LIBPATH
17209
17210  # AIX 3 has no versioning support, so we append a major version to the name.
17211  soname_spec='$libname$release$shared_ext$major'
17212  ;;
17213
17214aix[4-9]*)
17215  version_type=linux # correct to gnu/linux during the next big refactor
17216  need_lib_prefix=no
17217  need_version=no
17218  hardcode_into_libs=yes
17219  if test ia64 = "$host_cpu"; then
17220    # AIX 5 supports IA64
17221    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17222    shlibpath_var=LD_LIBRARY_PATH
17223  else
17224    # With GCC up to 2.95.x, collect2 would create an import file
17225    # for dependence libraries.  The import file would start with
17226    # the line '#! .'.  This would cause the generated library to
17227    # depend on '.', always an invalid library.  This was fixed in
17228    # development snapshots of GCC prior to 3.0.
17229    case $host_os in
17230      aix4 | aix4.[01] | aix4.[01].*)
17231      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17232	   echo ' yes '
17233	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17234	:
17235      else
17236	can_build_shared=no
17237      fi
17238      ;;
17239    esac
17240    # Using Import Files as archive members, it is possible to support
17241    # filename-based versioning of shared library archives on AIX. While
17242    # this would work for both with and without runtime linking, it will
17243    # prevent static linking of such archives. So we do filename-based
17244    # shared library versioning with .so extension only, which is used
17245    # when both runtime linking and shared linking is enabled.
17246    # Unfortunately, runtime linking may impact performance, so we do
17247    # not want this to be the default eventually. Also, we use the
17248    # versioned .so libs for executables only if there is the -brtl
17249    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17250    # To allow for filename-based versioning support, we need to create
17251    # libNAME.so.V as an archive file, containing:
17252    # *) an Import File, referring to the versioned filename of the
17253    #    archive as well as the shared archive member, telling the
17254    #    bitwidth (32 or 64) of that shared object, and providing the
17255    #    list of exported symbols of that shared object, eventually
17256    #    decorated with the 'weak' keyword
17257    # *) the shared object with the F_LOADONLY flag set, to really avoid
17258    #    it being seen by the linker.
17259    # At run time we better use the real file rather than another symlink,
17260    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17261
17262    case $with_aix_soname,$aix_use_runtimelinking in
17263    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17264    # soname into executable. Probably we can add versioning support to
17265    # collect2, so additional links can be useful in future.
17266    aix,yes) # traditional libtool
17267      dynamic_linker='AIX unversionable lib.so'
17268      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17269      # instead of lib<name>.a to let people know that these are not
17270      # typical AIX shared libraries.
17271      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17272      ;;
17273    aix,no) # traditional AIX only
17274      dynamic_linker='AIX lib.a(lib.so.V)'
17275      # We preserve .a as extension for shared libraries through AIX4.2
17276      # and later when we are not doing run time linking.
17277      library_names_spec='$libname$release.a $libname.a'
17278      soname_spec='$libname$release$shared_ext$major'
17279      ;;
17280    svr4,*) # full svr4 only
17281      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17282      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17283      # We do not specify a path in Import Files, so LIBPATH fires.
17284      shlibpath_overrides_runpath=yes
17285      ;;
17286    *,yes) # both, prefer svr4
17287      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17288      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17289      # unpreferred sharedlib libNAME.a needs extra handling
17290      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"'
17291      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"'
17292      # We do not specify a path in Import Files, so LIBPATH fires.
17293      shlibpath_overrides_runpath=yes
17294      ;;
17295    *,no) # both, prefer aix
17296      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17297      library_names_spec='$libname$release.a $libname.a'
17298      soname_spec='$libname$release$shared_ext$major'
17299      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17300      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)'
17301      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"'
17302      ;;
17303    esac
17304    shlibpath_var=LIBPATH
17305  fi
17306  ;;
17307
17308amigaos*)
17309  case $host_cpu in
17310  powerpc)
17311    # Since July 2007 AmigaOS4 officially supports .so libraries.
17312    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17313    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17314    ;;
17315  m68k)
17316    library_names_spec='$libname.ixlibrary $libname.a'
17317    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17318    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'
17319    ;;
17320  esac
17321  ;;
17322
17323beos*)
17324  library_names_spec='$libname$shared_ext'
17325  dynamic_linker="$host_os ld.so"
17326  shlibpath_var=LIBRARY_PATH
17327  ;;
17328
17329bsdi[45]*)
17330  version_type=linux # correct to gnu/linux during the next big refactor
17331  need_version=no
17332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17333  soname_spec='$libname$release$shared_ext$major'
17334  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17335  shlibpath_var=LD_LIBRARY_PATH
17336  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17337  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17338  # the default ld.so.conf also contains /usr/contrib/lib and
17339  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17340  # libtool to hard-code these into programs
17341  ;;
17342
17343cygwin* | mingw* | pw32* | cegcc*)
17344  version_type=windows
17345  shrext_cmds=.dll
17346  need_version=no
17347  need_lib_prefix=no
17348
17349  case $GCC,$cc_basename in
17350  yes,*)
17351    # gcc
17352    library_names_spec='$libname.dll.a'
17353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17354    postinstall_cmds='base_file=`basename \$file`~
17355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17356      dldir=$destdir/`dirname \$dlpath`~
17357      test -d \$dldir || mkdir -p \$dldir~
17358      $install_prog $dir/$dlname \$dldir/$dlname~
17359      chmod a+x \$dldir/$dlname~
17360      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17361        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17362      fi'
17363    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17364      dlpath=$dir/\$dldll~
17365       $RM \$dlpath'
17366    shlibpath_overrides_runpath=yes
17367
17368    case $host_os in
17369    cygwin*)
17370      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17371      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17372
17373      ;;
17374    mingw* | cegcc*)
17375      # MinGW DLLs use traditional 'lib' prefix
17376      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17377      ;;
17378    pw32*)
17379      # pw32 DLLs use 'pw' prefix rather than 'lib'
17380      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17381      ;;
17382    esac
17383    dynamic_linker='Win32 ld.exe'
17384    ;;
17385
17386  *,cl* | *,icl*)
17387    # Native MSVC or ICC
17388    libname_spec='$name'
17389    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17390    library_names_spec='$libname.dll.lib'
17391
17392    case $build_os in
17393    mingw*)
17394      sys_lib_search_path_spec=
17395      lt_save_ifs=$IFS
17396      IFS=';'
17397      for lt_path in $LIB
17398      do
17399        IFS=$lt_save_ifs
17400        # Let DOS variable expansion print the short 8.3 style file name.
17401        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17402        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17403      done
17404      IFS=$lt_save_ifs
17405      # Convert to MSYS style.
17406      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17407      ;;
17408    cygwin*)
17409      # Convert to unix form, then to dos form, then back to unix form
17410      # but this time dos style (no spaces!) so that the unix form looks
17411      # like /cygdrive/c/PROGRA~1:/cygdr...
17412      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17413      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17414      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17415      ;;
17416    *)
17417      sys_lib_search_path_spec=$LIB
17418      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17419        # It is most probably a Windows format PATH.
17420        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17421      else
17422        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17423      fi
17424      # FIXME: find the short name or the path components, as spaces are
17425      # common. (e.g. "Program Files" -> "PROGRA~1")
17426      ;;
17427    esac
17428
17429    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17430    postinstall_cmds='base_file=`basename \$file`~
17431      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17432      dldir=$destdir/`dirname \$dlpath`~
17433      test -d \$dldir || mkdir -p \$dldir~
17434      $install_prog $dir/$dlname \$dldir/$dlname'
17435    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17436      dlpath=$dir/\$dldll~
17437       $RM \$dlpath'
17438    shlibpath_overrides_runpath=yes
17439    dynamic_linker='Win32 link.exe'
17440    ;;
17441
17442  *)
17443    # Assume MSVC and ICC wrapper
17444    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17445    dynamic_linker='Win32 ld.exe'
17446    ;;
17447  esac
17448  # FIXME: first we should search . and the directory the executable is in
17449  shlibpath_var=PATH
17450  ;;
17451
17452darwin* | rhapsody*)
17453  dynamic_linker="$host_os dyld"
17454  version_type=darwin
17455  need_lib_prefix=no
17456  need_version=no
17457  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17458  soname_spec='$libname$release$major$shared_ext'
17459  shlibpath_overrides_runpath=yes
17460  shlibpath_var=DYLD_LIBRARY_PATH
17461  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17462
17463  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17464  ;;
17465
17466dgux*)
17467  version_type=linux # correct to gnu/linux during the next big refactor
17468  need_lib_prefix=no
17469  need_version=no
17470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17471  soname_spec='$libname$release$shared_ext$major'
17472  shlibpath_var=LD_LIBRARY_PATH
17473  ;;
17474
17475freebsd* | dragonfly* | midnightbsd*)
17476  # DragonFly does not have aout.  When/if they implement a new
17477  # versioning mechanism, adjust this.
17478  if test -x /usr/bin/objformat; then
17479    objformat=`/usr/bin/objformat`
17480  else
17481    case $host_os in
17482    freebsd[23].*) objformat=aout ;;
17483    *) objformat=elf ;;
17484    esac
17485  fi
17486  version_type=freebsd-$objformat
17487  case $version_type in
17488    freebsd-elf*)
17489      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17490      soname_spec='$libname$release$shared_ext$major'
17491      need_version=no
17492      need_lib_prefix=no
17493      ;;
17494    freebsd-*)
17495      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17496      need_version=yes
17497      ;;
17498  esac
17499  shlibpath_var=LD_LIBRARY_PATH
17500  case $host_os in
17501  freebsd2.*)
17502    shlibpath_overrides_runpath=yes
17503    ;;
17504  freebsd3.[01]* | freebsdelf3.[01]*)
17505    shlibpath_overrides_runpath=yes
17506    hardcode_into_libs=yes
17507    ;;
17508  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17509  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17510    shlibpath_overrides_runpath=no
17511    hardcode_into_libs=yes
17512    ;;
17513  *) # from 4.6 on, and DragonFly
17514    shlibpath_overrides_runpath=yes
17515    hardcode_into_libs=yes
17516    ;;
17517  esac
17518  ;;
17519
17520haiku*)
17521  version_type=linux # correct to gnu/linux during the next big refactor
17522  need_lib_prefix=no
17523  need_version=no
17524  dynamic_linker="$host_os runtime_loader"
17525  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17526  soname_spec='$libname$release$shared_ext$major'
17527  shlibpath_var=LIBRARY_PATH
17528  shlibpath_overrides_runpath=no
17529  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17530  hardcode_into_libs=yes
17531  ;;
17532
17533hpux9* | hpux10* | hpux11*)
17534  # Give a soname corresponding to the major version so that dld.sl refuses to
17535  # link against other versions.
17536  version_type=sunos
17537  need_lib_prefix=no
17538  need_version=no
17539  case $host_cpu in
17540  ia64*)
17541    shrext_cmds='.so'
17542    hardcode_into_libs=yes
17543    dynamic_linker="$host_os dld.so"
17544    shlibpath_var=LD_LIBRARY_PATH
17545    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17546    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17547    soname_spec='$libname$release$shared_ext$major'
17548    if test 32 = "$HPUX_IA64_MODE"; then
17549      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17550      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17551    else
17552      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17553      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17554    fi
17555    ;;
17556  hppa*64*)
17557    shrext_cmds='.sl'
17558    hardcode_into_libs=yes
17559    dynamic_linker="$host_os dld.sl"
17560    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17561    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17562    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17563    soname_spec='$libname$release$shared_ext$major'
17564    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17565    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17566    ;;
17567  *)
17568    shrext_cmds='.sl'
17569    dynamic_linker="$host_os dld.sl"
17570    shlibpath_var=SHLIB_PATH
17571    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17572    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17573    soname_spec='$libname$release$shared_ext$major'
17574    ;;
17575  esac
17576  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17577  postinstall_cmds='chmod 555 $lib'
17578  # or fails outright, so override atomically:
17579  install_override_mode=555
17580  ;;
17581
17582interix[3-9]*)
17583  version_type=linux # correct to gnu/linux during the next big refactor
17584  need_lib_prefix=no
17585  need_version=no
17586  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17587  soname_spec='$libname$release$shared_ext$major'
17588  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17589  shlibpath_var=LD_LIBRARY_PATH
17590  shlibpath_overrides_runpath=no
17591  hardcode_into_libs=yes
17592  ;;
17593
17594irix5* | irix6* | nonstopux*)
17595  case $host_os in
17596    nonstopux*) version_type=nonstopux ;;
17597    *)
17598	if test yes = "$lt_cv_prog_gnu_ld"; then
17599		version_type=linux # correct to gnu/linux during the next big refactor
17600	else
17601		version_type=irix
17602	fi ;;
17603  esac
17604  need_lib_prefix=no
17605  need_version=no
17606  soname_spec='$libname$release$shared_ext$major'
17607  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17608  case $host_os in
17609  irix5* | nonstopux*)
17610    libsuff= shlibsuff=
17611    ;;
17612  *)
17613    case $LD in # libtool.m4 will add one of these switches to LD
17614    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17615      libsuff= shlibsuff= libmagic=32-bit;;
17616    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17617      libsuff=32 shlibsuff=N32 libmagic=N32;;
17618    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17619      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17620    *) libsuff= shlibsuff= libmagic=never-match;;
17621    esac
17622    ;;
17623  esac
17624  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17625  shlibpath_overrides_runpath=no
17626  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17627  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17628  hardcode_into_libs=yes
17629  ;;
17630
17631# No shared lib support for Linux oldld, aout, or coff.
17632linux*oldld* | linux*aout* | linux*coff*)
17633  dynamic_linker=no
17634  ;;
17635
17636linux*android*)
17637  version_type=none # Android doesn't support versioned libraries.
17638  need_lib_prefix=no
17639  need_version=no
17640  library_names_spec='$libname$release$shared_ext'
17641  soname_spec='$libname$release$shared_ext'
17642  finish_cmds=
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=yes
17645
17646  # This implies no fast_install, which is unacceptable.
17647  # Some rework will be needed to allow for fast_install
17648  # before this can be enabled.
17649  hardcode_into_libs=yes
17650
17651  dynamic_linker='Android linker'
17652  # Don't embed -rpath directories since the linker doesn't support them.
17653  hardcode_libdir_flag_spec_CXX='-L$libdir'
17654  ;;
17655
17656# This must be glibc/ELF.
17657linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17658  version_type=linux # correct to gnu/linux during the next big refactor
17659  need_lib_prefix=no
17660  need_version=no
17661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17662  soname_spec='$libname$release$shared_ext$major'
17663  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17664  shlibpath_var=LD_LIBRARY_PATH
17665  shlibpath_overrides_runpath=no
17666
17667  # Some binutils ld are patched to set DT_RUNPATH
17668  if test ${lt_cv_shlibpath_overrides_runpath+y}
17669then :
17670  printf %s "(cached) " >&6
17671else $as_nop
17672  lt_cv_shlibpath_overrides_runpath=no
17673    save_LDFLAGS=$LDFLAGS
17674    save_libdir=$libdir
17675    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17676	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h.  */
17679
17680int
17681main (void)
17682{
17683
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688if ac_fn_cxx_try_link "$LINENO"
17689then :
17690  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17691then :
17692  lt_cv_shlibpath_overrides_runpath=yes
17693fi
17694fi
17695rm -f core conftest.err conftest.$ac_objext conftest.beam \
17696    conftest$ac_exeext conftest.$ac_ext
17697    LDFLAGS=$save_LDFLAGS
17698    libdir=$save_libdir
17699
17700fi
17701
17702  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17703
17704  # This implies no fast_install, which is unacceptable.
17705  # Some rework will be needed to allow for fast_install
17706  # before this can be enabled.
17707  hardcode_into_libs=yes
17708
17709  # Ideally, we could use ldconfig to report *all* directores which are
17710  # searched for libraries, however this is still not possible.  Aside from not
17711  # being certain /sbin/ldconfig is available, command
17712  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17713  # even though it is searched at run-time.  Try to do the best guess by
17714  # appending ld.so.conf contents (and includes) to the search path.
17715  if test -f /etc/ld.so.conf; then
17716    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' ' '`
17717    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17718  fi
17719
17720  # We used to test for /lib/ld.so.1 and disable shared libraries on
17721  # powerpc, because MkLinux only supported shared libraries with the
17722  # GNU dynamic linker.  Since this was broken with cross compilers,
17723  # most powerpc-linux boxes support dynamic linking these days and
17724  # people can always --disable-shared, the test was removed, and we
17725  # assume the GNU/Linux dynamic linker is in use.
17726  dynamic_linker='GNU/Linux ld.so'
17727  ;;
17728
17729netbsdelf*-gnu)
17730  version_type=linux
17731  need_lib_prefix=no
17732  need_version=no
17733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17734  soname_spec='${libname}${release}${shared_ext}$major'
17735  shlibpath_var=LD_LIBRARY_PATH
17736  shlibpath_overrides_runpath=no
17737  hardcode_into_libs=yes
17738  dynamic_linker='NetBSD ld.elf_so'
17739  ;;
17740
17741netbsd*)
17742  version_type=sunos
17743  need_lib_prefix=no
17744  need_version=no
17745  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17746    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17747    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17748    dynamic_linker='NetBSD (a.out) ld.so'
17749  else
17750    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17751    soname_spec='$libname$release$shared_ext$major'
17752    dynamic_linker='NetBSD ld.elf_so'
17753  fi
17754  shlibpath_var=LD_LIBRARY_PATH
17755  shlibpath_overrides_runpath=yes
17756  hardcode_into_libs=yes
17757  ;;
17758
17759newsos6)
17760  version_type=linux # correct to gnu/linux during the next big refactor
17761  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17762  shlibpath_var=LD_LIBRARY_PATH
17763  shlibpath_overrides_runpath=yes
17764  ;;
17765
17766*nto* | *qnx*)
17767  version_type=qnx
17768  need_lib_prefix=no
17769  need_version=no
17770  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17771  soname_spec='$libname$release$shared_ext$major'
17772  shlibpath_var=LD_LIBRARY_PATH
17773  shlibpath_overrides_runpath=no
17774  hardcode_into_libs=yes
17775  dynamic_linker='ldqnx.so'
17776  ;;
17777
17778openbsd* | bitrig*)
17779  version_type=sunos
17780  sys_lib_dlsearch_path_spec=/usr/lib
17781  need_lib_prefix=no
17782  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17783    need_version=no
17784  else
17785    need_version=yes
17786  fi
17787  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17788  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17789  shlibpath_var=LD_LIBRARY_PATH
17790  shlibpath_overrides_runpath=yes
17791  ;;
17792
17793os2*)
17794  libname_spec='$name'
17795  version_type=windows
17796  shrext_cmds=.dll
17797  need_version=no
17798  need_lib_prefix=no
17799  # OS/2 can only load a DLL with a base name of 8 characters or less.
17800  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17801    v=$($ECHO $release$versuffix | tr -d .-);
17802    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17803    $ECHO $n$v`$shared_ext'
17804  library_names_spec='${libname}_dll.$libext'
17805  dynamic_linker='OS/2 ld.exe'
17806  shlibpath_var=BEGINLIBPATH
17807  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17808  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17809  postinstall_cmds='base_file=`basename \$file`~
17810    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17811    dldir=$destdir/`dirname \$dlpath`~
17812    test -d \$dldir || mkdir -p \$dldir~
17813    $install_prog $dir/$dlname \$dldir/$dlname~
17814    chmod a+x \$dldir/$dlname~
17815    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17816      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17817    fi'
17818  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17819    dlpath=$dir/\$dldll~
17820    $RM \$dlpath'
17821  ;;
17822
17823osf3* | osf4* | osf5*)
17824  version_type=osf
17825  need_lib_prefix=no
17826  need_version=no
17827  soname_spec='$libname$release$shared_ext$major'
17828  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17829  shlibpath_var=LD_LIBRARY_PATH
17830  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17831  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17832  ;;
17833
17834rdos*)
17835  dynamic_linker=no
17836  ;;
17837
17838solaris*)
17839  version_type=linux # correct to gnu/linux during the next big refactor
17840  need_lib_prefix=no
17841  need_version=no
17842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17843  soname_spec='$libname$release$shared_ext$major'
17844  shlibpath_var=LD_LIBRARY_PATH
17845  shlibpath_overrides_runpath=yes
17846  hardcode_into_libs=yes
17847  # ldd complains unless libraries are executable
17848  postinstall_cmds='chmod +x $lib'
17849  ;;
17850
17851sunos4*)
17852  version_type=sunos
17853  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17854  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17855  shlibpath_var=LD_LIBRARY_PATH
17856  shlibpath_overrides_runpath=yes
17857  if test yes = "$with_gnu_ld"; then
17858    need_lib_prefix=no
17859  fi
17860  need_version=yes
17861  ;;
17862
17863sysv4 | sysv4.3*)
17864  version_type=linux # correct to gnu/linux during the next big refactor
17865  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17866  soname_spec='$libname$release$shared_ext$major'
17867  shlibpath_var=LD_LIBRARY_PATH
17868  case $host_vendor in
17869    sni)
17870      shlibpath_overrides_runpath=no
17871      need_lib_prefix=no
17872      runpath_var=LD_RUN_PATH
17873      ;;
17874    siemens)
17875      need_lib_prefix=no
17876      ;;
17877    motorola)
17878      need_lib_prefix=no
17879      need_version=no
17880      shlibpath_overrides_runpath=no
17881      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17882      ;;
17883  esac
17884  ;;
17885
17886sysv4*MP*)
17887  if test -d /usr/nec; then
17888    version_type=linux # correct to gnu/linux during the next big refactor
17889    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17890    soname_spec='$libname$shared_ext.$major'
17891    shlibpath_var=LD_LIBRARY_PATH
17892  fi
17893  ;;
17894
17895sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17896  version_type=sco
17897  need_lib_prefix=no
17898  need_version=no
17899  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17900  soname_spec='$libname$release$shared_ext$major'
17901  shlibpath_var=LD_LIBRARY_PATH
17902  shlibpath_overrides_runpath=yes
17903  hardcode_into_libs=yes
17904  if test yes = "$with_gnu_ld"; then
17905    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17906  else
17907    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17908    case $host_os in
17909      sco3.2v5*)
17910        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17911	;;
17912    esac
17913  fi
17914  sys_lib_dlsearch_path_spec='/usr/lib'
17915  ;;
17916
17917tpf*)
17918  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17919  version_type=linux # correct to gnu/linux during the next big refactor
17920  need_lib_prefix=no
17921  need_version=no
17922  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17923  shlibpath_var=LD_LIBRARY_PATH
17924  shlibpath_overrides_runpath=no
17925  hardcode_into_libs=yes
17926  ;;
17927
17928uts4*)
17929  version_type=linux # correct to gnu/linux during the next big refactor
17930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17931  soname_spec='$libname$release$shared_ext$major'
17932  shlibpath_var=LD_LIBRARY_PATH
17933  ;;
17934
17935*)
17936  dynamic_linker=no
17937  ;;
17938esac
17939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17940printf "%s\n" "$dynamic_linker" >&6; }
17941test no = "$dynamic_linker" && can_build_shared=no
17942
17943variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17944if test yes = "$GCC"; then
17945  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17946fi
17947
17948if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17949  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17950fi
17951
17952if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17953  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17954fi
17955
17956# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17957configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17958
17959# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17960func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17961
17962# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17963configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18005printf %s "checking how to hardcode library paths into programs... " >&6; }
18006hardcode_action_CXX=
18007if test -n "$hardcode_libdir_flag_spec_CXX" ||
18008   test -n "$runpath_var_CXX" ||
18009   test yes = "$hardcode_automatic_CXX"; then
18010
18011  # We can hardcode non-existent directories.
18012  if test no != "$hardcode_direct_CXX" &&
18013     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18014     # have to relink, otherwise we might link with an installed library
18015     # when we should be linking with a yet-to-be-installed one
18016     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18017     test no != "$hardcode_minus_L_CXX"; then
18018    # Linking always hardcodes the temporary library directory.
18019    hardcode_action_CXX=relink
18020  else
18021    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18022    hardcode_action_CXX=immediate
18023  fi
18024else
18025  # We cannot hardcode anything, or else we can only hardcode existing
18026  # directories.
18027  hardcode_action_CXX=unsupported
18028fi
18029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18030printf "%s\n" "$hardcode_action_CXX" >&6; }
18031
18032if test relink = "$hardcode_action_CXX" ||
18033   test yes = "$inherit_rpath_CXX"; then
18034  # Fast installation is not supported
18035  enable_fast_install=no
18036elif test yes = "$shlibpath_overrides_runpath" ||
18037     test no = "$enable_shared"; then
18038  # Fast installation is not necessary
18039  enable_fast_install=needless
18040fi
18041
18042
18043
18044
18045
18046
18047
18048  fi # test -n "$compiler"
18049
18050  CC=$lt_save_CC
18051  CFLAGS=$lt_save_CFLAGS
18052  LDCXX=$LD
18053  LD=$lt_save_LD
18054  GCC=$lt_save_GCC
18055  with_gnu_ld=$lt_save_with_gnu_ld
18056  lt_cv_path_LDCXX=$lt_cv_path_LD
18057  lt_cv_path_LD=$lt_save_path_LD
18058  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18059  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18060fi # test yes != "$_lt_caught_CXX_error"
18061
18062ac_ext=c
18063ac_cpp='$CPP $CPPFLAGS'
18064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082        ac_config_commands="$ac_config_commands libtool"
18083
18084
18085
18086
18087# Only expand once:
18088
18089
18090ac_ext=c
18091ac_cpp='$CPP $CPPFLAGS'
18092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18094ac_compiler_gnu=$ac_cv_c_compiler_gnu
18095
18096ac_ext=c
18097ac_cpp='$CPP $CPPFLAGS'
18098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18100ac_compiler_gnu=$ac_cv_c_compiler_gnu
18101if test -n "$ac_tool_prefix"; then
18102  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18103set dummy ${ac_tool_prefix}gcc; ac_word=$2
18104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18105printf %s "checking for $ac_word... " >&6; }
18106if test ${ac_cv_prog_CC+y}
18107then :
18108  printf %s "(cached) " >&6
18109else $as_nop
18110  if test -n "$CC"; then
18111  ac_cv_prog_CC="$CC" # Let the user override the test.
18112else
18113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114for as_dir in $PATH
18115do
18116  IFS=$as_save_IFS
18117  case $as_dir in #(((
18118    '') as_dir=./ ;;
18119    */) ;;
18120    *) as_dir=$as_dir/ ;;
18121  esac
18122    for ac_exec_ext in '' $ac_executable_extensions; do
18123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18124    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18126    break 2
18127  fi
18128done
18129  done
18130IFS=$as_save_IFS
18131
18132fi
18133fi
18134CC=$ac_cv_prog_CC
18135if test -n "$CC"; then
18136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18137printf "%s\n" "$CC" >&6; }
18138else
18139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140printf "%s\n" "no" >&6; }
18141fi
18142
18143
18144fi
18145if test -z "$ac_cv_prog_CC"; then
18146  ac_ct_CC=$CC
18147  # Extract the first word of "gcc", so it can be a program name with args.
18148set dummy gcc; ac_word=$2
18149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18150printf %s "checking for $ac_word... " >&6; }
18151if test ${ac_cv_prog_ac_ct_CC+y}
18152then :
18153  printf %s "(cached) " >&6
18154else $as_nop
18155  if test -n "$ac_ct_CC"; then
18156  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18157else
18158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18159for as_dir in $PATH
18160do
18161  IFS=$as_save_IFS
18162  case $as_dir in #(((
18163    '') as_dir=./ ;;
18164    */) ;;
18165    *) as_dir=$as_dir/ ;;
18166  esac
18167    for ac_exec_ext in '' $ac_executable_extensions; do
18168  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18169    ac_cv_prog_ac_ct_CC="gcc"
18170    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18171    break 2
18172  fi
18173done
18174  done
18175IFS=$as_save_IFS
18176
18177fi
18178fi
18179ac_ct_CC=$ac_cv_prog_ac_ct_CC
18180if test -n "$ac_ct_CC"; then
18181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18182printf "%s\n" "$ac_ct_CC" >&6; }
18183else
18184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185printf "%s\n" "no" >&6; }
18186fi
18187
18188  if test "x$ac_ct_CC" = x; then
18189    CC=""
18190  else
18191    case $cross_compiling:$ac_tool_warned in
18192yes:)
18193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18194printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18195ac_tool_warned=yes ;;
18196esac
18197    CC=$ac_ct_CC
18198  fi
18199else
18200  CC="$ac_cv_prog_CC"
18201fi
18202
18203if test -z "$CC"; then
18204          if test -n "$ac_tool_prefix"; then
18205    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18206set dummy ${ac_tool_prefix}cc; ac_word=$2
18207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18208printf %s "checking for $ac_word... " >&6; }
18209if test ${ac_cv_prog_CC+y}
18210then :
18211  printf %s "(cached) " >&6
18212else $as_nop
18213  if test -n "$CC"; then
18214  ac_cv_prog_CC="$CC" # Let the user override the test.
18215else
18216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18217for as_dir in $PATH
18218do
18219  IFS=$as_save_IFS
18220  case $as_dir in #(((
18221    '') as_dir=./ ;;
18222    */) ;;
18223    *) as_dir=$as_dir/ ;;
18224  esac
18225    for ac_exec_ext in '' $ac_executable_extensions; do
18226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18227    ac_cv_prog_CC="${ac_tool_prefix}cc"
18228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18229    break 2
18230  fi
18231done
18232  done
18233IFS=$as_save_IFS
18234
18235fi
18236fi
18237CC=$ac_cv_prog_CC
18238if test -n "$CC"; then
18239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18240printf "%s\n" "$CC" >&6; }
18241else
18242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18243printf "%s\n" "no" >&6; }
18244fi
18245
18246
18247  fi
18248fi
18249if test -z "$CC"; then
18250  # Extract the first word of "cc", so it can be a program name with args.
18251set dummy cc; ac_word=$2
18252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18253printf %s "checking for $ac_word... " >&6; }
18254if test ${ac_cv_prog_CC+y}
18255then :
18256  printf %s "(cached) " >&6
18257else $as_nop
18258  if test -n "$CC"; then
18259  ac_cv_prog_CC="$CC" # Let the user override the test.
18260else
18261  ac_prog_rejected=no
18262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263for as_dir in $PATH
18264do
18265  IFS=$as_save_IFS
18266  case $as_dir in #(((
18267    '') as_dir=./ ;;
18268    */) ;;
18269    *) as_dir=$as_dir/ ;;
18270  esac
18271    for ac_exec_ext in '' $ac_executable_extensions; do
18272  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18273    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18274       ac_prog_rejected=yes
18275       continue
18276     fi
18277    ac_cv_prog_CC="cc"
18278    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18279    break 2
18280  fi
18281done
18282  done
18283IFS=$as_save_IFS
18284
18285if test $ac_prog_rejected = yes; then
18286  # We found a bogon in the path, so make sure we never use it.
18287  set dummy $ac_cv_prog_CC
18288  shift
18289  if test $# != 0; then
18290    # We chose a different compiler from the bogus one.
18291    # However, it has the same basename, so the bogon will be chosen
18292    # first if we set CC to just the basename; use the full file name.
18293    shift
18294    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
18295  fi
18296fi
18297fi
18298fi
18299CC=$ac_cv_prog_CC
18300if test -n "$CC"; then
18301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18302printf "%s\n" "$CC" >&6; }
18303else
18304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305printf "%s\n" "no" >&6; }
18306fi
18307
18308
18309fi
18310if test -z "$CC"; then
18311  if test -n "$ac_tool_prefix"; then
18312  for ac_prog in cl.exe
18313  do
18314    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18317printf %s "checking for $ac_word... " >&6; }
18318if test ${ac_cv_prog_CC+y}
18319then :
18320  printf %s "(cached) " >&6
18321else $as_nop
18322  if test -n "$CC"; then
18323  ac_cv_prog_CC="$CC" # Let the user override the test.
18324else
18325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326for as_dir in $PATH
18327do
18328  IFS=$as_save_IFS
18329  case $as_dir in #(((
18330    '') as_dir=./ ;;
18331    */) ;;
18332    *) as_dir=$as_dir/ ;;
18333  esac
18334    for ac_exec_ext in '' $ac_executable_extensions; do
18335  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18336    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18337    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18338    break 2
18339  fi
18340done
18341  done
18342IFS=$as_save_IFS
18343
18344fi
18345fi
18346CC=$ac_cv_prog_CC
18347if test -n "$CC"; then
18348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18349printf "%s\n" "$CC" >&6; }
18350else
18351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352printf "%s\n" "no" >&6; }
18353fi
18354
18355
18356    test -n "$CC" && break
18357  done
18358fi
18359if test -z "$CC"; then
18360  ac_ct_CC=$CC
18361  for ac_prog in cl.exe
18362do
18363  # Extract the first word of "$ac_prog", so it can be a program name with args.
18364set dummy $ac_prog; ac_word=$2
18365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18366printf %s "checking for $ac_word... " >&6; }
18367if test ${ac_cv_prog_ac_ct_CC+y}
18368then :
18369  printf %s "(cached) " >&6
18370else $as_nop
18371  if test -n "$ac_ct_CC"; then
18372  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18373else
18374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18375for as_dir in $PATH
18376do
18377  IFS=$as_save_IFS
18378  case $as_dir in #(((
18379    '') as_dir=./ ;;
18380    */) ;;
18381    *) as_dir=$as_dir/ ;;
18382  esac
18383    for ac_exec_ext in '' $ac_executable_extensions; do
18384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18385    ac_cv_prog_ac_ct_CC="$ac_prog"
18386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18387    break 2
18388  fi
18389done
18390  done
18391IFS=$as_save_IFS
18392
18393fi
18394fi
18395ac_ct_CC=$ac_cv_prog_ac_ct_CC
18396if test -n "$ac_ct_CC"; then
18397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18398printf "%s\n" "$ac_ct_CC" >&6; }
18399else
18400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401printf "%s\n" "no" >&6; }
18402fi
18403
18404
18405  test -n "$ac_ct_CC" && break
18406done
18407
18408  if test "x$ac_ct_CC" = x; then
18409    CC=""
18410  else
18411    case $cross_compiling:$ac_tool_warned in
18412yes:)
18413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18414printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18415ac_tool_warned=yes ;;
18416esac
18417    CC=$ac_ct_CC
18418  fi
18419fi
18420
18421fi
18422if test -z "$CC"; then
18423  if test -n "$ac_tool_prefix"; then
18424  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
18425set dummy ${ac_tool_prefix}clang; ac_word=$2
18426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18427printf %s "checking for $ac_word... " >&6; }
18428if test ${ac_cv_prog_CC+y}
18429then :
18430  printf %s "(cached) " >&6
18431else $as_nop
18432  if test -n "$CC"; then
18433  ac_cv_prog_CC="$CC" # Let the user override the test.
18434else
18435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18436for as_dir in $PATH
18437do
18438  IFS=$as_save_IFS
18439  case $as_dir in #(((
18440    '') as_dir=./ ;;
18441    */) ;;
18442    *) as_dir=$as_dir/ ;;
18443  esac
18444    for ac_exec_ext in '' $ac_executable_extensions; do
18445  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18446    ac_cv_prog_CC="${ac_tool_prefix}clang"
18447    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18448    break 2
18449  fi
18450done
18451  done
18452IFS=$as_save_IFS
18453
18454fi
18455fi
18456CC=$ac_cv_prog_CC
18457if test -n "$CC"; then
18458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18459printf "%s\n" "$CC" >&6; }
18460else
18461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18462printf "%s\n" "no" >&6; }
18463fi
18464
18465
18466fi
18467if test -z "$ac_cv_prog_CC"; then
18468  ac_ct_CC=$CC
18469  # Extract the first word of "clang", so it can be a program name with args.
18470set dummy clang; ac_word=$2
18471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18472printf %s "checking for $ac_word... " >&6; }
18473if test ${ac_cv_prog_ac_ct_CC+y}
18474then :
18475  printf %s "(cached) " >&6
18476else $as_nop
18477  if test -n "$ac_ct_CC"; then
18478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18479else
18480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481for as_dir in $PATH
18482do
18483  IFS=$as_save_IFS
18484  case $as_dir in #(((
18485    '') as_dir=./ ;;
18486    */) ;;
18487    *) as_dir=$as_dir/ ;;
18488  esac
18489    for ac_exec_ext in '' $ac_executable_extensions; do
18490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18491    ac_cv_prog_ac_ct_CC="clang"
18492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18493    break 2
18494  fi
18495done
18496  done
18497IFS=$as_save_IFS
18498
18499fi
18500fi
18501ac_ct_CC=$ac_cv_prog_ac_ct_CC
18502if test -n "$ac_ct_CC"; then
18503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18504printf "%s\n" "$ac_ct_CC" >&6; }
18505else
18506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507printf "%s\n" "no" >&6; }
18508fi
18509
18510  if test "x$ac_ct_CC" = x; then
18511    CC=""
18512  else
18513    case $cross_compiling:$ac_tool_warned in
18514yes:)
18515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18517ac_tool_warned=yes ;;
18518esac
18519    CC=$ac_ct_CC
18520  fi
18521else
18522  CC="$ac_cv_prog_CC"
18523fi
18524
18525fi
18526
18527
18528test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18529printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18530as_fn_error $? "no acceptable C compiler found in \$PATH
18531See \`config.log' for more details" "$LINENO" 5; }
18532
18533# Provide some information about the compiler.
18534printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18535set X $ac_compile
18536ac_compiler=$2
18537for ac_option in --version -v -V -qversion -version; do
18538  { { ac_try="$ac_compiler $ac_option >&5"
18539case "(($ac_try" in
18540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541  *) ac_try_echo=$ac_try;;
18542esac
18543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18544printf "%s\n" "$ac_try_echo"; } >&5
18545  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18546  ac_status=$?
18547  if test -s conftest.err; then
18548    sed '10a\
18549... rest of stderr output deleted ...
18550         10q' conftest.err >conftest.er1
18551    cat conftest.er1 >&5
18552  fi
18553  rm -f conftest.er1 conftest.err
18554  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555  test $ac_status = 0; }
18556done
18557
18558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
18559printf %s "checking whether the compiler supports GNU C... " >&6; }
18560if test ${ac_cv_c_compiler_gnu+y}
18561then :
18562  printf %s "(cached) " >&6
18563else $as_nop
18564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565/* end confdefs.h.  */
18566
18567int
18568main (void)
18569{
18570#ifndef __GNUC__
18571       choke me
18572#endif
18573
18574  ;
18575  return 0;
18576}
18577_ACEOF
18578if ac_fn_c_try_compile "$LINENO"
18579then :
18580  ac_compiler_gnu=yes
18581else $as_nop
18582  ac_compiler_gnu=no
18583fi
18584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18585ac_cv_c_compiler_gnu=$ac_compiler_gnu
18586
18587fi
18588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18589printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
18590ac_compiler_gnu=$ac_cv_c_compiler_gnu
18591
18592if test $ac_compiler_gnu = yes; then
18593  GCC=yes
18594else
18595  GCC=
18596fi
18597ac_test_CFLAGS=${CFLAGS+y}
18598ac_save_CFLAGS=$CFLAGS
18599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18600printf %s "checking whether $CC accepts -g... " >&6; }
18601if test ${ac_cv_prog_cc_g+y}
18602then :
18603  printf %s "(cached) " >&6
18604else $as_nop
18605  ac_save_c_werror_flag=$ac_c_werror_flag
18606   ac_c_werror_flag=yes
18607   ac_cv_prog_cc_g=no
18608   CFLAGS="-g"
18609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611
18612int
18613main (void)
18614{
18615
18616  ;
18617  return 0;
18618}
18619_ACEOF
18620if ac_fn_c_try_compile "$LINENO"
18621then :
18622  ac_cv_prog_cc_g=yes
18623else $as_nop
18624  CFLAGS=""
18625      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h.  */
18627
18628int
18629main (void)
18630{
18631
18632  ;
18633  return 0;
18634}
18635_ACEOF
18636if ac_fn_c_try_compile "$LINENO"
18637then :
18638
18639else $as_nop
18640  ac_c_werror_flag=$ac_save_c_werror_flag
18641	 CFLAGS="-g"
18642	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643/* end confdefs.h.  */
18644
18645int
18646main (void)
18647{
18648
18649  ;
18650  return 0;
18651}
18652_ACEOF
18653if ac_fn_c_try_compile "$LINENO"
18654then :
18655  ac_cv_prog_cc_g=yes
18656fi
18657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18658fi
18659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18660fi
18661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18662   ac_c_werror_flag=$ac_save_c_werror_flag
18663fi
18664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18665printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
18666if test $ac_test_CFLAGS; then
18667  CFLAGS=$ac_save_CFLAGS
18668elif test $ac_cv_prog_cc_g = yes; then
18669  if test "$GCC" = yes; then
18670    CFLAGS="-g -O2"
18671  else
18672    CFLAGS="-g"
18673  fi
18674else
18675  if test "$GCC" = yes; then
18676    CFLAGS="-O2"
18677  else
18678    CFLAGS=
18679  fi
18680fi
18681ac_prog_cc_stdc=no
18682if test x$ac_prog_cc_stdc = xno
18683then :
18684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
18685printf %s "checking for $CC option to enable C11 features... " >&6; }
18686if test ${ac_cv_prog_cc_c11+y}
18687then :
18688  printf %s "(cached) " >&6
18689else $as_nop
18690  ac_cv_prog_cc_c11=no
18691ac_save_CC=$CC
18692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693/* end confdefs.h.  */
18694$ac_c_conftest_c11_program
18695_ACEOF
18696for ac_arg in '' -std=gnu11
18697do
18698  CC="$ac_save_CC $ac_arg"
18699  if ac_fn_c_try_compile "$LINENO"
18700then :
18701  ac_cv_prog_cc_c11=$ac_arg
18702fi
18703rm -f core conftest.err conftest.$ac_objext conftest.beam
18704  test "x$ac_cv_prog_cc_c11" != "xno" && break
18705done
18706rm -f conftest.$ac_ext
18707CC=$ac_save_CC
18708fi
18709
18710if test "x$ac_cv_prog_cc_c11" = xno
18711then :
18712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18713printf "%s\n" "unsupported" >&6; }
18714else $as_nop
18715  if test "x$ac_cv_prog_cc_c11" = x
18716then :
18717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18718printf "%s\n" "none needed" >&6; }
18719else $as_nop
18720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
18721printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
18722     CC="$CC $ac_cv_prog_cc_c11"
18723fi
18724  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
18725  ac_prog_cc_stdc=c11
18726fi
18727fi
18728if test x$ac_prog_cc_stdc = xno
18729then :
18730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
18731printf %s "checking for $CC option to enable C99 features... " >&6; }
18732if test ${ac_cv_prog_cc_c99+y}
18733then :
18734  printf %s "(cached) " >&6
18735else $as_nop
18736  ac_cv_prog_cc_c99=no
18737ac_save_CC=$CC
18738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739/* end confdefs.h.  */
18740$ac_c_conftest_c99_program
18741_ACEOF
18742for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
18743do
18744  CC="$ac_save_CC $ac_arg"
18745  if ac_fn_c_try_compile "$LINENO"
18746then :
18747  ac_cv_prog_cc_c99=$ac_arg
18748fi
18749rm -f core conftest.err conftest.$ac_objext conftest.beam
18750  test "x$ac_cv_prog_cc_c99" != "xno" && break
18751done
18752rm -f conftest.$ac_ext
18753CC=$ac_save_CC
18754fi
18755
18756if test "x$ac_cv_prog_cc_c99" = xno
18757then :
18758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18759printf "%s\n" "unsupported" >&6; }
18760else $as_nop
18761  if test "x$ac_cv_prog_cc_c99" = x
18762then :
18763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18764printf "%s\n" "none needed" >&6; }
18765else $as_nop
18766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18767printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
18768     CC="$CC $ac_cv_prog_cc_c99"
18769fi
18770  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18771  ac_prog_cc_stdc=c99
18772fi
18773fi
18774if test x$ac_prog_cc_stdc = xno
18775then :
18776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
18777printf %s "checking for $CC option to enable C89 features... " >&6; }
18778if test ${ac_cv_prog_cc_c89+y}
18779then :
18780  printf %s "(cached) " >&6
18781else $as_nop
18782  ac_cv_prog_cc_c89=no
18783ac_save_CC=$CC
18784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785/* end confdefs.h.  */
18786$ac_c_conftest_c89_program
18787_ACEOF
18788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18789do
18790  CC="$ac_save_CC $ac_arg"
18791  if ac_fn_c_try_compile "$LINENO"
18792then :
18793  ac_cv_prog_cc_c89=$ac_arg
18794fi
18795rm -f core conftest.err conftest.$ac_objext conftest.beam
18796  test "x$ac_cv_prog_cc_c89" != "xno" && break
18797done
18798rm -f conftest.$ac_ext
18799CC=$ac_save_CC
18800fi
18801
18802if test "x$ac_cv_prog_cc_c89" = xno
18803then :
18804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18805printf "%s\n" "unsupported" >&6; }
18806else $as_nop
18807  if test "x$ac_cv_prog_cc_c89" = x
18808then :
18809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18810printf "%s\n" "none needed" >&6; }
18811else $as_nop
18812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18813printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
18814     CC="$CC $ac_cv_prog_cc_c89"
18815fi
18816  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18817  ac_prog_cc_stdc=c89
18818fi
18819fi
18820
18821ac_ext=c
18822ac_cpp='$CPP $CPPFLAGS'
18823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825ac_compiler_gnu=$ac_cv_c_compiler_gnu
18826
18827
18828  ac_ext=c
18829ac_cpp='$CPP $CPPFLAGS'
18830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832ac_compiler_gnu=$ac_cv_c_compiler_gnu
18833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18834printf %s "checking whether $CC understands -c and -o together... " >&6; }
18835if test ${am_cv_prog_cc_c_o+y}
18836then :
18837  printf %s "(cached) " >&6
18838else $as_nop
18839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18840/* end confdefs.h.  */
18841
18842int
18843main (void)
18844{
18845
18846  ;
18847  return 0;
18848}
18849_ACEOF
18850  # Make sure it works both with $CC and with simple cc.
18851  # Following AC_PROG_CC_C_O, we do the test twice because some
18852  # compilers refuse to overwrite an existing .o file with -o,
18853  # though they will create one.
18854  am_cv_prog_cc_c_o=yes
18855  for am_i in 1 2; do
18856    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18857   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } \
18861         && test -f conftest2.$ac_objext; then
18862      : OK
18863    else
18864      am_cv_prog_cc_c_o=no
18865      break
18866    fi
18867  done
18868  rm -f core conftest*
18869  unset am_i
18870fi
18871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18872printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
18873if test "$am_cv_prog_cc_c_o" != yes; then
18874   # Losing compiler, so override with the script.
18875   # FIXME: It is wrong to rewrite CC.
18876   # But if we don't then we get into trouble of one sort or another.
18877   # A longer-term fix would be to have automake use am__CC in this case,
18878   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18879   CC="$am_aux_dir/compile $CC"
18880fi
18881ac_ext=c
18882ac_cpp='$CPP $CPPFLAGS'
18883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885ac_compiler_gnu=$ac_cv_c_compiler_gnu
18886
18887
18888
18889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
18890printf %s "checking for egrep... " >&6; }
18891if test ${ac_cv_path_EGREP+y}
18892then :
18893  printf %s "(cached) " >&6
18894else $as_nop
18895  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18896   then ac_cv_path_EGREP="$GREP -E"
18897   else
18898     if test -z "$EGREP"; then
18899  ac_path_EGREP_found=false
18900  # Loop through the user's path and test for each of PROGNAME-LIST
18901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18903do
18904  IFS=$as_save_IFS
18905  case $as_dir in #(((
18906    '') as_dir=./ ;;
18907    */) ;;
18908    *) as_dir=$as_dir/ ;;
18909  esac
18910    for ac_prog in egrep
18911   do
18912    for ac_exec_ext in '' $ac_executable_extensions; do
18913      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
18914      as_fn_executable_p "$ac_path_EGREP" || continue
18915# Check for GNU ac_path_EGREP and select it if it is found.
18916  # Check for GNU $ac_path_EGREP
18917case `"$ac_path_EGREP" --version 2>&1` in
18918*GNU*)
18919  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18920*)
18921  ac_count=0
18922  printf %s 0123456789 >"conftest.in"
18923  while :
18924  do
18925    cat "conftest.in" "conftest.in" >"conftest.tmp"
18926    mv "conftest.tmp" "conftest.in"
18927    cp "conftest.in" "conftest.nl"
18928    printf "%s\n" 'EGREP' >> "conftest.nl"
18929    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18930    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18931    as_fn_arith $ac_count + 1 && ac_count=$as_val
18932    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18933      # Best one so far, save it but keep looking for a better one
18934      ac_cv_path_EGREP="$ac_path_EGREP"
18935      ac_path_EGREP_max=$ac_count
18936    fi
18937    # 10*(2^10) chars as input seems more than enough
18938    test $ac_count -gt 10 && break
18939  done
18940  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18941esac
18942
18943      $ac_path_EGREP_found && break 3
18944    done
18945  done
18946  done
18947IFS=$as_save_IFS
18948  if test -z "$ac_cv_path_EGREP"; then
18949    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18950  fi
18951else
18952  ac_cv_path_EGREP=$EGREP
18953fi
18954
18955   fi
18956fi
18957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
18958printf "%s\n" "$ac_cv_path_EGREP" >&6; }
18959 EGREP="$ac_cv_path_EGREP"
18960
18961
18962
18963
18964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
18965printf %s "checking for C compiler vendor... " >&6; }
18966if test ${ax_cv_c_compiler_vendor+y}
18967then :
18968  printf %s "(cached) " >&6
18969else $as_nop
18970
18971	vendors="
18972		intel:		__ICC,__ECC,__INTEL_COMPILER
18973		ibm:		__xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
18974		pathscale:	__PATHCC__,__PATHSCALE__
18975		clang:		__clang__
18976		cray:		_CRAYC
18977		fujitsu:	__FUJITSU
18978		sdcc:		SDCC,__SDCC
18979		sx:		_SX
18980		nvhpc:		__NVCOMPILER
18981		portland:	__PGI
18982		gnu:		__GNUC__
18983		sun:		__SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
18984		hp:		__HP_cc,__HP_aCC
18985		dec:		__DECC,__DECCXX,__DECC_VER,__DECCXX_VER
18986		borland:	__BORLANDC__,__CODEGEARC__,__TURBOC__
18987		comeau:		__COMO__
18988		kai:		__KCC
18989		lcc:		__LCC__
18990		sgi:		__sgi,sgi
18991		microsoft:	_MSC_VER
18992		metrowerks:	__MWERKS__
18993		watcom:		__WATCOMC__
18994		tcc:		__TINYC__
18995		unknown:	UNKNOWN
18996	"
18997	for ventest in $vendors; do
18998	    case $ventest in
18999		*:)
19000		    vendor=$ventest
19001		    continue
19002		    ;;
19003		*)
19004		    vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
19005		    ;;
19006	    esac
19007
19008	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009/* end confdefs.h.  */
19010
19011int
19012main (void)
19013{
19014
19015#if !($vencpp)
19016      thisisanerror;
19017#endif
19018
19019  ;
19020  return 0;
19021}
19022_ACEOF
19023if ac_fn_c_try_compile "$LINENO"
19024then :
19025  break
19026fi
19027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19028	done
19029
19030	ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
19031
19032fi
19033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
19034printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
19035
19036
19037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether this is native windows" >&5
19038printf %s "checking whether this is native windows... " >&6; }
19039ac_cv_native_windows=no
19040ac_cv_windows=no
19041case $host_os in
19042  mingw*)
19043    ac_cv_native_windows=yes
19044    ac_cv_windows=yes
19045    ;;
19046  cygwin*)
19047    ac_cv_windows=yes
19048    ;;
19049esac
19050if test "$ax_cv_c_compiler_vendor" = "microsoft" ; then
19051  ac_cv_native_windows=yes
19052  ac_cv_windows=yes
19053fi
19054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
19055printf "%s\n" "$ac_cv_native_windows" >&6; }
19056
19057
19058# Check whether --enable-shared was given.
19059if test ${enable_shared+y}
19060then :
19061  enableval=$enable_shared; p=${PACKAGE-default}
19062    case $enableval in
19063    yes) enable_shared=yes ;;
19064    no) enable_shared=no ;;
19065    *)
19066      enable_shared=no
19067      # Look at the argument we got.  We use all the common list separators.
19068      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19069      for pkg in $enableval; do
19070	IFS=$lt_save_ifs
19071	if test "X$pkg" = "X$p"; then
19072	  enable_shared=yes
19073	fi
19074      done
19075      IFS=$lt_save_ifs
19076      ;;
19077    esac
19078else $as_nop
19079  enable_shared=yes
19080fi
19081
19082
19083
19084
19085
19086
19087
19088if test "x$ac_cv_windows" = "xyes"
19089then :
19090  # Check whether --enable-static was given.
19091if test ${enable_static+y}
19092then :
19093  enableval=$enable_static; p=${PACKAGE-default}
19094    case $enableval in
19095    yes) enable_static=yes ;;
19096    no) enable_static=no ;;
19097    *)
19098     enable_static=no
19099      # Look at the argument we got.  We use all the common list separators.
19100      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19101      for pkg in $enableval; do
19102	IFS=$lt_save_ifs
19103	if test "X$pkg" = "X$p"; then
19104	  enable_static=yes
19105	fi
19106      done
19107      IFS=$lt_save_ifs
19108      ;;
19109    esac
19110else $as_nop
19111  enable_static=no
19112fi
19113
19114
19115
19116
19117
19118
19119else $as_nop
19120  # Check whether --enable-static was given.
19121if test ${enable_static+y}
19122then :
19123  enableval=$enable_static; p=${PACKAGE-default}
19124    case $enableval in
19125    yes) enable_static=yes ;;
19126    no) enable_static=no ;;
19127    *)
19128     enable_static=no
19129      # Look at the argument we got.  We use all the common list separators.
19130      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19131      for pkg in $enableval; do
19132	IFS=$lt_save_ifs
19133	if test "X$pkg" = "X$p"; then
19134	  enable_static=yes
19135	fi
19136      done
19137      IFS=$lt_save_ifs
19138      ;;
19139    esac
19140else $as_nop
19141  enable_static=yes
19142fi
19143
19144
19145
19146
19147
19148
19149fi
19150
19151# Check whether --enable-warnings was given.
19152if test ${enable_warnings+y}
19153then :
19154  enableval=$enable_warnings;  enable_warnings=${enableval}
19155else $as_nop
19156   enable_warnings=yes
19157fi
19158
19159
19160# Check whether --enable-symbol-hiding was given.
19161if test ${enable_symbol_hiding+y}
19162then :
19163  enableval=$enable_symbol_hiding;
19164    symbol_hiding="$enableval"
19165    if test "$symbol_hiding" = "no" -a "x$enable_shared" = "xyes" ; then
19166      case $host_os in
19167        cygwin* | mingw* | pw32* | cegcc*)
19168          as_fn_error $? "Cannot disable symbol hiding on windows" "$LINENO" 5
19169        ;;
19170      esac
19171    fi
19172
19173else $as_nop
19174
19175    if test "x$enable_shared" = "xyes" ; then
19176      symbol_hiding="maybe"
19177    else
19178      symbol_hiding="no"
19179    fi
19180
19181
19182fi
19183
19184
19185# Check whether --enable-tests was given.
19186if test ${enable_tests+y}
19187then :
19188  enableval=$enable_tests;  build_tests="$enableval"
19189else $as_nop
19190   if test "x$HAVE_CXX14" = "x1" && test "x$cross_compiling" = "xno" ; then
19191      build_tests="maybe"
19192    else
19193      build_tests="no"
19194    fi
19195
19196
19197fi
19198
19199
19200# Check whether --enable-cares-threads was given.
19201if test ${enable_cares_threads+y}
19202then :
19203  enableval=$enable_cares_threads;  CARES_THREADS=${enableval}
19204else $as_nop
19205   CARES_THREADS=yes
19206fi
19207
19208
19209
19210# Check whether --with-random was given.
19211if test ${with_random+y}
19212then :
19213  withval=$with_random;  CARES_RANDOM_FILE="$withval"
19214else $as_nop
19215   CARES_RANDOM_FILE="/dev/urandom"
19216
19217fi
19218
19219if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then
19220
19221
19222printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h
19223
19224fi
19225
19226
19227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19228printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19229    # Check whether --enable-maintainer-mode was given.
19230if test ${enable_maintainer_mode+y}
19231then :
19232  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19233else $as_nop
19234  USE_MAINTAINER_MODE=no
19235fi
19236
19237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19238printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
19239   if test $USE_MAINTAINER_MODE = yes; then
19240  MAINTAINER_MODE_TRUE=
19241  MAINTAINER_MODE_FALSE='#'
19242else
19243  MAINTAINER_MODE_TRUE='#'
19244  MAINTAINER_MODE_FALSE=
19245fi
19246
19247  MAINT=$MAINTAINER_MODE_TRUE
19248
19249
19250# Check whether --enable-silent-rules was given.
19251if test ${enable_silent_rules+y}
19252then :
19253  enableval=$enable_silent_rules;
19254fi
19255
19256case $enable_silent_rules in # (((
19257  yes) AM_DEFAULT_VERBOSITY=0;;
19258   no) AM_DEFAULT_VERBOSITY=1;;
19259    *) AM_DEFAULT_VERBOSITY=0;;
19260esac
19261am_make=${MAKE-make}
19262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19263printf %s "checking whether $am_make supports nested variables... " >&6; }
19264if test ${am_cv_make_support_nested_variables+y}
19265then :
19266  printf %s "(cached) " >&6
19267else $as_nop
19268  if printf "%s\n" 'TRUE=$(BAR$(V))
19269BAR0=false
19270BAR1=true
19271V=1
19272am__doit:
19273	@$(TRUE)
19274.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19275  am_cv_make_support_nested_variables=yes
19276else
19277  am_cv_make_support_nested_variables=no
19278fi
19279fi
19280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19281printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19282if test $am_cv_make_support_nested_variables = yes; then
19283    AM_V='$(V)'
19284  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19285else
19286  AM_V=$AM_DEFAULT_VERBOSITY
19287  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19288fi
19289AM_BACKSLASH='\'
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310	# allow to override gcov location
19311
19312# Check whether --with-gcov was given.
19313if test ${with_gcov+y}
19314then :
19315  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
19316else $as_nop
19317  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
19318fi
19319
19320
19321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
19322printf %s "checking whether to build with code coverage support... " >&6; }
19323	# Check whether --enable-code-coverage was given.
19324if test ${enable_code_coverage+y}
19325then :
19326  enableval=$enable_code_coverage;
19327else $as_nop
19328  enable_code_coverage=no
19329fi
19330
19331
19332	 if test "x$enable_code_coverage" = xyes; then
19333  CODE_COVERAGE_ENABLED_TRUE=
19334  CODE_COVERAGE_ENABLED_FALSE='#'
19335else
19336  CODE_COVERAGE_ENABLED_TRUE='#'
19337  CODE_COVERAGE_ENABLED_FALSE=
19338fi
19339
19340	CODE_COVERAGE_ENABLED=$enable_code_coverage
19341
19342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
19343printf "%s\n" "$enable_code_coverage" >&6; }
19344
19345	if  test "x$enable_code_coverage" = xyes
19346then :
19347
19348
19349	  for ac_prog in gawk mawk nawk awk
19350do
19351  # Extract the first word of "$ac_prog", so it can be a program name with args.
19352set dummy $ac_prog; ac_word=$2
19353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19354printf %s "checking for $ac_word... " >&6; }
19355if test ${ac_cv_prog_AWK+y}
19356then :
19357  printf %s "(cached) " >&6
19358else $as_nop
19359  if test -n "$AWK"; then
19360  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19361else
19362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19363for as_dir in $PATH
19364do
19365  IFS=$as_save_IFS
19366  case $as_dir in #(((
19367    '') as_dir=./ ;;
19368    */) ;;
19369    *) as_dir=$as_dir/ ;;
19370  esac
19371    for ac_exec_ext in '' $ac_executable_extensions; do
19372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19373    ac_cv_prog_AWK="$ac_prog"
19374    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19375    break 2
19376  fi
19377done
19378  done
19379IFS=$as_save_IFS
19380
19381fi
19382fi
19383AWK=$ac_cv_prog_AWK
19384if test -n "$AWK"; then
19385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19386printf "%s\n" "$AWK" >&6; }
19387else
19388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389printf "%s\n" "no" >&6; }
19390fi
19391
19392
19393  test -n "$AWK" && break
19394done
19395
19396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
19397printf %s "checking for GNU make... " >&6; }
19398if test ${_cv_gnu_make_command+y}
19399then :
19400  printf %s "(cached) " >&6
19401else $as_nop
19402      _cv_gnu_make_command="" ;
19403    for a in "$MAKE" make gmake gnumake ; do
19404      if test -z "$a" ; then continue ; fi ;
19405      if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
19406        _cv_gnu_make_command=$a ;
19407        AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
19408        ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
19409        break ;
19410      fi
19411    done ;
19412fi
19413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
19414printf "%s\n" "$_cv_gnu_make_command" >&6; }
19415  if test "x$_cv_gnu_make_command" = x""
19416then :
19417  ifGNUmake="#"
19418else $as_nop
19419  ifGNUmake=""
19420fi
19421  if test "x$_cv_gnu_make_command" = x""
19422then :
19423  ifnGNUmake=""
19424else $as_nop
19425  ifnGNUmake="#"
19426fi
19427  if test "x$_cv_gnu_make_command" = x""
19428then :
19429  { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
19430else $as_nop
19431  ax_cv_gnu_make_command=${_cv_gnu_make_command}
19432fi
19433  if test "x$_cv_gnu_make_command" = x""
19434then :
19435  as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
19436fi
19437
19438
19439
19440
19441	# check for gcov
19442	if test -n "$ac_tool_prefix"; then
19443  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
19444set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
19445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19446printf %s "checking for $ac_word... " >&6; }
19447if test ${ac_cv_prog_GCOV+y}
19448then :
19449  printf %s "(cached) " >&6
19450else $as_nop
19451  if test -n "$GCOV"; then
19452  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
19453else
19454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19455for as_dir in $PATH
19456do
19457  IFS=$as_save_IFS
19458  case $as_dir in #(((
19459    '') as_dir=./ ;;
19460    */) ;;
19461    *) as_dir=$as_dir/ ;;
19462  esac
19463    for ac_exec_ext in '' $ac_executable_extensions; do
19464  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19465    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
19466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19467    break 2
19468  fi
19469done
19470  done
19471IFS=$as_save_IFS
19472
19473fi
19474fi
19475GCOV=$ac_cv_prog_GCOV
19476if test -n "$GCOV"; then
19477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
19478printf "%s\n" "$GCOV" >&6; }
19479else
19480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481printf "%s\n" "no" >&6; }
19482fi
19483
19484
19485fi
19486if test -z "$ac_cv_prog_GCOV"; then
19487  ac_ct_GCOV=$GCOV
19488  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
19489set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
19490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19491printf %s "checking for $ac_word... " >&6; }
19492if test ${ac_cv_prog_ac_ct_GCOV+y}
19493then :
19494  printf %s "(cached) " >&6
19495else $as_nop
19496  if test -n "$ac_ct_GCOV"; then
19497  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
19498else
19499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500for as_dir in $PATH
19501do
19502  IFS=$as_save_IFS
19503  case $as_dir in #(((
19504    '') as_dir=./ ;;
19505    */) ;;
19506    *) as_dir=$as_dir/ ;;
19507  esac
19508    for ac_exec_ext in '' $ac_executable_extensions; do
19509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19510    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
19511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19512    break 2
19513  fi
19514done
19515  done
19516IFS=$as_save_IFS
19517
19518fi
19519fi
19520ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
19521if test -n "$ac_ct_GCOV"; then
19522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
19523printf "%s\n" "$ac_ct_GCOV" >&6; }
19524else
19525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526printf "%s\n" "no" >&6; }
19527fi
19528
19529  if test "x$ac_ct_GCOV" = x; then
19530    GCOV=":"
19531  else
19532    case $cross_compiling:$ac_tool_warned in
19533yes:)
19534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19536ac_tool_warned=yes ;;
19537esac
19538    GCOV=$ac_ct_GCOV
19539  fi
19540else
19541  GCOV="$ac_cv_prog_GCOV"
19542fi
19543
19544	if test "X$GCOV" = "X:"
19545then :
19546  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
19547fi
19548
19549
19550		if  test "$GCC" = "no"
19551then :
19552
19553		as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
19554
19555fi
19556
19557	# Extract the first word of "lcov", so it can be a program name with args.
19558set dummy lcov; ac_word=$2
19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19560printf %s "checking for $ac_word... " >&6; }
19561if test ${ac_cv_prog_LCOV+y}
19562then :
19563  printf %s "(cached) " >&6
19564else $as_nop
19565  if test -n "$LCOV"; then
19566  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
19567else
19568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19569for as_dir in $PATH
19570do
19571  IFS=$as_save_IFS
19572  case $as_dir in #(((
19573    '') as_dir=./ ;;
19574    */) ;;
19575    *) as_dir=$as_dir/ ;;
19576  esac
19577    for ac_exec_ext in '' $ac_executable_extensions; do
19578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19579    ac_cv_prog_LCOV="lcov"
19580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19581    break 2
19582  fi
19583done
19584  done
19585IFS=$as_save_IFS
19586
19587fi
19588fi
19589LCOV=$ac_cv_prog_LCOV
19590if test -n "$LCOV"; then
19591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
19592printf "%s\n" "$LCOV" >&6; }
19593else
19594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595printf "%s\n" "no" >&6; }
19596fi
19597
19598
19599	# Extract the first word of "genhtml", so it can be a program name with args.
19600set dummy genhtml; ac_word=$2
19601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19602printf %s "checking for $ac_word... " >&6; }
19603if test ${ac_cv_prog_GENHTML+y}
19604then :
19605  printf %s "(cached) " >&6
19606else $as_nop
19607  if test -n "$GENHTML"; then
19608  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
19609else
19610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19611for as_dir in $PATH
19612do
19613  IFS=$as_save_IFS
19614  case $as_dir in #(((
19615    '') as_dir=./ ;;
19616    */) ;;
19617    *) as_dir=$as_dir/ ;;
19618  esac
19619    for ac_exec_ext in '' $ac_executable_extensions; do
19620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19621    ac_cv_prog_GENHTML="genhtml"
19622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19623    break 2
19624  fi
19625done
19626  done
19627IFS=$as_save_IFS
19628
19629fi
19630fi
19631GENHTML=$ac_cv_prog_GENHTML
19632if test -n "$GENHTML"; then
19633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
19634printf "%s\n" "$GENHTML" >&6; }
19635else
19636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19637printf "%s\n" "no" >&6; }
19638fi
19639
19640
19641
19642	if  test x"$LCOV" = x
19643then :
19644
19645		as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
19646
19647fi
19648
19649	if  test x"$GENHTML" = x
19650then :
19651
19652		as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
19653
19654fi
19655
19656			CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
19657	CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
19658	CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
19659	CODE_COVERAGE_LIBS="-lgcov"
19660
19661
19662
19663
19664
19665
19666
19667fi
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
19680printf %s "checking whether user namespaces are supported... " >&6; }
19681if test ${ax_cv_user_namespace+y}
19682then :
19683  printf %s "(cached) " >&6
19684else $as_nop
19685
19686  ac_ext=c
19687ac_cpp='$CPP $CPPFLAGS'
19688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690ac_compiler_gnu=$ac_cv_c_compiler_gnu
19691
19692  if test "$cross_compiling" = yes
19693then :
19694  ax_cv_user_namespace=no
19695else $as_nop
19696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697/* end confdefs.h.  */
19698
19699#define _GNU_SOURCE
19700#include <fcntl.h>
19701#include <sched.h>
19702#include <signal.h>
19703#include <stdio.h>
19704#include <string.h>
19705#include <sys/types.h>
19706#include <sys/wait.h>
19707
19708int userfn(void *d) {
19709  usleep(100000);  /* synchronize by sleep */
19710  return (getuid() != 0);
19711}
19712char userst[1024*1024];
19713int main() {
19714  char buffer[1024];
19715  int rc, status, fd;
19716  pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
19717  if (child < 0) return 1;
19718
19719  snprintf(buffer, sizeof(buffer), "/proc/%d/uid_map", child);
19720  fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
19721  snprintf(buffer, sizeof(buffer), "0 %d 1\n", getuid());
19722  write(fd, buffer, strlen(buffer));
19723  close(fd);
19724
19725  rc = waitpid(child, &status, 0);
19726  if (rc <= 0) return 1;
19727  if (!WIFEXITED(status)) return 1;
19728  return WEXITSTATUS(status);
19729}
19730
19731_ACEOF
19732if ac_fn_c_try_run "$LINENO"
19733then :
19734  ax_cv_user_namespace=yes
19735else $as_nop
19736  ax_cv_user_namespace=no
19737fi
19738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19739  conftest.$ac_objext conftest.beam conftest.$ac_ext
19740fi
19741
19742 ac_ext=c
19743ac_cpp='$CPP $CPPFLAGS'
19744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747
19748
19749fi
19750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
19751printf "%s\n" "$ax_cv_user_namespace" >&6; }
19752 if test "$ax_cv_user_namespace" = yes; then
19753
19754printf "%s\n" "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
19755
19756 fi
19757
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
19759printf %s "checking whether UTS namespaces are supported... " >&6; }
19760if test ${ax_cv_uts_namespace+y}
19761then :
19762  printf %s "(cached) " >&6
19763else $as_nop
19764
19765  ac_ext=c
19766ac_cpp='$CPP $CPPFLAGS'
19767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769ac_compiler_gnu=$ac_cv_c_compiler_gnu
19770
19771  if test "$cross_compiling" = yes
19772then :
19773  ax_cv_uts_namespace=no
19774else $as_nop
19775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776/* end confdefs.h.  */
19777
19778#define _GNU_SOURCE
19779#include <sched.h>
19780#include <signal.h>
19781#include <stdio.h>
19782#include <string.h>
19783#include <fcntl.h>
19784#include <unistd.h>
19785#include <sys/types.h>
19786#include <sys/wait.h>
19787
19788int utsfn(void *d) {
19789  char buffer[1024];
19790  const char *name = "autoconftest";
19791  int rc = sethostname(name, strlen(name));
19792  if (rc != 0) return 1;
19793  gethostname(buffer, 1024);
19794  return (strcmp(buffer, name) != 0);
19795}
19796
19797char st2[1024*1024];
19798int fn(void *d) {
19799  pid_t child;
19800  int rc, status;
19801  usleep(100000);  /* synchronize by sleep */
19802  if (getuid() != 0) return 1;
19803  child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
19804  if (child < 0) return 1;
19805  rc = waitpid(child, &status, 0);
19806  if (rc <= 0) return 1;
19807  if (!WIFEXITED(status)) return 1;
19808  return WEXITSTATUS(status);
19809}
19810char st[1024*1024];
19811int main() {
19812  char buffer[1024];
19813  int rc, status, fd;
19814  pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
19815  if (child < 0) return 1;
19816
19817  snprintf(buffer, sizeof(buffer), "/proc/%d/uid_map", child);
19818  fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
19819  snprintf(buffer, sizeof(buffer), "0 %d 1\n", getuid());
19820  write(fd, buffer, strlen(buffer));
19821  close(fd);
19822
19823  rc = waitpid(child, &status, 0);
19824  if (rc <= 0) return 1;
19825  if (!WIFEXITED(status)) return 1;
19826  return WEXITSTATUS(status);
19827}
19828
19829
19830_ACEOF
19831if ac_fn_c_try_run "$LINENO"
19832then :
19833  ax_cv_uts_namespace=yes
19834else $as_nop
19835  ax_cv_uts_namespace=no
19836fi
19837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19838  conftest.$ac_objext conftest.beam conftest.$ac_ext
19839fi
19840
19841 ac_ext=c
19842ac_cpp='$CPP $CPPFLAGS'
19843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845ac_compiler_gnu=$ac_cv_c_compiler_gnu
19846
19847
19848fi
19849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
19850printf "%s\n" "$ax_cv_uts_namespace" >&6; }
19851 if test "$ax_cv_uts_namespace" = yes; then
19852
19853printf "%s\n" "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
19854
19855 fi
19856
19857# Check whether --enable-largefile was given.
19858if test ${enable_largefile+y}
19859then :
19860  enableval=$enable_largefile;
19861fi
19862
19863if test "$enable_largefile" != no; then
19864
19865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19866printf %s "checking for special C compiler options needed for large files... " >&6; }
19867if test ${ac_cv_sys_largefile_CC+y}
19868then :
19869  printf %s "(cached) " >&6
19870else $as_nop
19871  ac_cv_sys_largefile_CC=no
19872     if test "$GCC" != yes; then
19873       ac_save_CC=$CC
19874       while :; do
19875	 # IRIX 6.2 and later do not support large files by default,
19876	 # so use the C compiler's -n32 option if that helps.
19877	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878/* end confdefs.h.  */
19879#include <sys/types.h>
19880 /* Check that off_t can represent 2**63 - 1 correctly.
19881    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19882    since some C++ compilers masquerading as C compilers
19883    incorrectly reject 9223372036854775807.  */
19884#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19885  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19886		       && LARGE_OFF_T % 2147483647 == 1)
19887		      ? 1 : -1];
19888int
19889main (void)
19890{
19891
19892  ;
19893  return 0;
19894}
19895_ACEOF
19896	 if ac_fn_c_try_compile "$LINENO"
19897then :
19898  break
19899fi
19900rm -f core conftest.err conftest.$ac_objext conftest.beam
19901	 CC="$CC -n32"
19902	 if ac_fn_c_try_compile "$LINENO"
19903then :
19904  ac_cv_sys_largefile_CC=' -n32'; break
19905fi
19906rm -f core conftest.err conftest.$ac_objext conftest.beam
19907	 break
19908       done
19909       CC=$ac_save_CC
19910       rm -f conftest.$ac_ext
19911    fi
19912fi
19913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19914printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
19915  if test "$ac_cv_sys_largefile_CC" != no; then
19916    CC=$CC$ac_cv_sys_largefile_CC
19917  fi
19918
19919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19920printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19921if test ${ac_cv_sys_file_offset_bits+y}
19922then :
19923  printf %s "(cached) " >&6
19924else $as_nop
19925  while :; do
19926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927/* end confdefs.h.  */
19928#include <sys/types.h>
19929 /* Check that off_t can represent 2**63 - 1 correctly.
19930    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19931    since some C++ compilers masquerading as C compilers
19932    incorrectly reject 9223372036854775807.  */
19933#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19934  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19935		       && LARGE_OFF_T % 2147483647 == 1)
19936		      ? 1 : -1];
19937int
19938main (void)
19939{
19940
19941  ;
19942  return 0;
19943}
19944_ACEOF
19945if ac_fn_c_try_compile "$LINENO"
19946then :
19947  ac_cv_sys_file_offset_bits=no; break
19948fi
19949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951/* end confdefs.h.  */
19952#define _FILE_OFFSET_BITS 64
19953#include <sys/types.h>
19954 /* Check that off_t can represent 2**63 - 1 correctly.
19955    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19956    since some C++ compilers masquerading as C compilers
19957    incorrectly reject 9223372036854775807.  */
19958#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19959  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19960		       && LARGE_OFF_T % 2147483647 == 1)
19961		      ? 1 : -1];
19962int
19963main (void)
19964{
19965
19966  ;
19967  return 0;
19968}
19969_ACEOF
19970if ac_fn_c_try_compile "$LINENO"
19971then :
19972  ac_cv_sys_file_offset_bits=64; break
19973fi
19974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19975  ac_cv_sys_file_offset_bits=unknown
19976  break
19977done
19978fi
19979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19980printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
19981case $ac_cv_sys_file_offset_bits in #(
19982  no | unknown) ;;
19983  *)
19984printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
19985;;
19986esac
19987rm -rf conftest*
19988  if test $ac_cv_sys_file_offset_bits = unknown; then
19989    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19990printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
19991if test ${ac_cv_sys_large_files+y}
19992then :
19993  printf %s "(cached) " >&6
19994else $as_nop
19995  while :; do
19996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997/* end confdefs.h.  */
19998#include <sys/types.h>
19999 /* Check that off_t can represent 2**63 - 1 correctly.
20000    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20001    since some C++ compilers masquerading as C compilers
20002    incorrectly reject 9223372036854775807.  */
20003#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20004  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20005		       && LARGE_OFF_T % 2147483647 == 1)
20006		      ? 1 : -1];
20007int
20008main (void)
20009{
20010
20011  ;
20012  return 0;
20013}
20014_ACEOF
20015if ac_fn_c_try_compile "$LINENO"
20016then :
20017  ac_cv_sys_large_files=no; break
20018fi
20019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021/* end confdefs.h.  */
20022#define _LARGE_FILES 1
20023#include <sys/types.h>
20024 /* Check that off_t can represent 2**63 - 1 correctly.
20025    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20026    since some C++ compilers masquerading as C compilers
20027    incorrectly reject 9223372036854775807.  */
20028#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20029  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20030		       && LARGE_OFF_T % 2147483647 == 1)
20031		      ? 1 : -1];
20032int
20033main (void)
20034{
20035
20036  ;
20037  return 0;
20038}
20039_ACEOF
20040if ac_fn_c_try_compile "$LINENO"
20041then :
20042  ac_cv_sys_large_files=1; break
20043fi
20044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20045  ac_cv_sys_large_files=unknown
20046  break
20047done
20048fi
20049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20050printf "%s\n" "$ac_cv_sys_large_files" >&6; }
20051case $ac_cv_sys_large_files in #(
20052  no | unknown) ;;
20053  *)
20054printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
20055;;
20056esac
20057rm -rf conftest*
20058  fi
20059fi
20060
20061
20062case $host_os in
20063  solaris*)
20064
20065printf "%s\n" "#define ETC_INET 1" >>confdefs.h
20066
20067    ;;
20068esac
20069
20070case $host_os in
20071  solaris2*)
20072    if test "x$GCC" = 'xyes'; then
20073
20074
20075
20076
20077for flag in -mimpure-text; do
20078  as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
20079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
20080printf %s "checking whether the linker accepts $flag... " >&6; }
20081if eval test \${$as_CACHEVAR+y}
20082then :
20083  printf %s "(cached) " >&6
20084else $as_nop
20085
20086  ax_check_save_flags=$LDFLAGS
20087  LDFLAGS="$LDFLAGS  $flag"
20088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089/* end confdefs.h.  */
20090
20091int
20092main (void)
20093{
20094
20095  ;
20096  return 0;
20097}
20098_ACEOF
20099if ac_fn_c_try_link "$LINENO"
20100then :
20101  eval "$as_CACHEVAR=yes"
20102else $as_nop
20103  eval "$as_CACHEVAR=no"
20104fi
20105rm -f core conftest.err conftest.$ac_objext conftest.beam \
20106    conftest$ac_exeext conftest.$ac_ext
20107  LDFLAGS=$ax_check_save_flags
20108fi
20109eval ac_res=\$$as_CACHEVAR
20110	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20111printf "%s\n" "$ac_res" >&6; }
20112if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
20113then :
20114  if test ${LDFLAGS+y}
20115then :
20116  case " $LDFLAGS " in
20117    *" $flag "*)
20118      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
20119  (: LDFLAGS already contains $flag) 2>&5
20120  ac_status=$?
20121  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20122  test $ac_status = 0; }
20123      ;;
20124    *)
20125      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
20126  (: LDFLAGS="$LDFLAGS $flag") 2>&5
20127  ac_status=$?
20128  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20129  test $ac_status = 0; }
20130      LDFLAGS="$LDFLAGS $flag"
20131      ;;
20132   esac
20133else $as_nop
20134  LDFLAGS="$flag"
20135fi
20136
20137else $as_nop
20138  :
20139fi
20140
20141done
20142
20143    fi
20144    ;;
20145  *)
20146    ;;
20147esac
20148
20149cares_use_no_undefined=no
20150case $host_os in
20151  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
20152    cares_use_no_undefined=yes
20153    ;;
20154  *)
20155    ;;
20156esac
20157 if test "$cares_use_no_undefined" = 'yes'; then
20158  CARES_USE_NO_UNDEFINED_TRUE=
20159  CARES_USE_NO_UNDEFINED_FALSE='#'
20160else
20161  CARES_USE_NO_UNDEFINED_TRUE='#'
20162  CARES_USE_NO_UNDEFINED_FALSE=
20163fi
20164
20165
20166
20167if test "$ac_cv_native_windows" = "yes" ; then
20168  AM_CPPFLAGS="$AM_CPPFLAGS -D_WIN32_WINNT=0x0602 -DWIN32_LEAN_AND_MEAN"
20169fi
20170
20171if test "$ac_cv_native_windows" = "yes" -a "x$enable_shared" = "xyes" -a "x$enable_static" = "xyes" ; then
20172  as_fn_error $? "Windows cannot build both static and shared simultaneously, specify --disable-shared or --disable-static" "$LINENO" 5
20173fi
20174
20175if test "x$enable_shared" = "xno" -a "x$enable_static" = "xyes" ; then
20176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need CARES_STATICLIB definition" >&5
20177printf %s "checking whether we need CARES_STATICLIB definition... " >&6; }
20178  if test "$ac_cv_native_windows" = "yes" ; then
20179    if test ${AM_CPPFLAGS+y}
20180then :
20181  case " $AM_CPPFLAGS " in
20182    *" -DCARES_STATICLIB "*)
20183      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DCARES_STATICLIB"; } >&5
20184  (: AM_CPPFLAGS already contains -DCARES_STATICLIB) 2>&5
20185  ac_status=$?
20186  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20187  test $ac_status = 0; }
20188      ;;
20189    *)
20190      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS -DCARES_STATICLIB\""; } >&5
20191  (: AM_CPPFLAGS="$AM_CPPFLAGS -DCARES_STATICLIB") 2>&5
20192  ac_status=$?
20193  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20194  test $ac_status = 0; }
20195      AM_CPPFLAGS="$AM_CPPFLAGS -DCARES_STATICLIB"
20196      ;;
20197   esac
20198else $as_nop
20199  AM_CPPFLAGS="-DCARES_STATICLIB"
20200fi
20201
20202    PKGCONFIG_CFLAGS="-DCARES_STATICLIB"
20203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20204printf "%s\n" "yes" >&6; }
20205  else
20206    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207printf "%s\n" "no" >&6; }
20208  fi
20209fi
20210
20211CARES_SYMBOL_HIDING_CFLAG=""
20212if test "$symbol_hiding" != "no" ; then
20213  compiler_supports_symbol_hiding="no"
20214  if test "$ac_cv_windows" = "yes" ; then
20215    compiler_supports_symbol_hiding="yes"
20216  else
20217    case "$ax_cv_c_compiler_vendor" in
20218      clang|gnu|intel)
20219        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
20220printf %s "checking whether C compiler accepts ... " >&6; }
20221if test ${ax_cv_check_cflags__+y}
20222then :
20223  printf %s "(cached) " >&6
20224else $as_nop
20225
20226  ax_check_save_flags=$CFLAGS
20227  CFLAGS="$CFLAGS  "
20228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229/* end confdefs.h.  */
20230
20231int
20232main (void)
20233{
20234
20235  ;
20236  return 0;
20237}
20238_ACEOF
20239if ac_fn_c_try_compile "$LINENO"
20240then :
20241  ax_cv_check_cflags__=yes
20242else $as_nop
20243  ax_cv_check_cflags__=no
20244fi
20245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20246  CFLAGS=$ax_check_save_flags
20247fi
20248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
20249printf "%s\n" "$ax_cv_check_cflags__" >&6; }
20250if test x"$ax_cv_check_cflags__" = xyes
20251then :
20252  :
20253else $as_nop
20254  :
20255fi
20256
20257
20258
20259for flag in -fvisibility=hidden; do
20260  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
20261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
20262printf %s "checking whether C compiler accepts $flag... " >&6; }
20263if eval test \${$as_CACHEVAR+y}
20264then :
20265  printf %s "(cached) " >&6
20266else $as_nop
20267
20268  ax_check_save_flags=$CFLAGS
20269  CFLAGS="$CFLAGS  $flag"
20270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271/* end confdefs.h.  */
20272
20273int
20274main (void)
20275{
20276
20277  ;
20278  return 0;
20279}
20280_ACEOF
20281if ac_fn_c_try_compile "$LINENO"
20282then :
20283  eval "$as_CACHEVAR=yes"
20284else $as_nop
20285  eval "$as_CACHEVAR=no"
20286fi
20287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20288  CFLAGS=$ax_check_save_flags
20289fi
20290eval ac_res=\$$as_CACHEVAR
20291	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20292printf "%s\n" "$ac_res" >&6; }
20293if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes
20294then :
20295  if test ${CARES_SYMBOL_HIDING_CFLAG+y}
20296then :
20297  case " $CARES_SYMBOL_HIDING_CFLAG " in
20298    *" $flag "*)
20299      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG already contains \$flag"; } >&5
20300  (: CARES_SYMBOL_HIDING_CFLAG already contains $flag) 2>&5
20301  ac_status=$?
20302  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20303  test $ac_status = 0; }
20304      ;;
20305    *)
20306      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG \$flag\""; } >&5
20307  (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG $flag") 2>&5
20308  ac_status=$?
20309  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20310  test $ac_status = 0; }
20311      CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG $flag"
20312      ;;
20313   esac
20314else $as_nop
20315  CARES_SYMBOL_HIDING_CFLAG="$flag"
20316fi
20317
20318else $as_nop
20319  :
20320fi
20321
20322done
20323
20324        if test "x$CARES_SYMBOL_HIDING_CFLAG" != "x" ; then
20325          compiler_supports_symbol_hiding="yes"
20326        fi
20327        ;;
20328      sun)
20329
20330
20331for flag in -xldscope=hidden; do
20332  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
20333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
20334printf %s "checking whether C compiler accepts $flag... " >&6; }
20335if eval test \${$as_CACHEVAR+y}
20336then :
20337  printf %s "(cached) " >&6
20338else $as_nop
20339
20340  ax_check_save_flags=$CFLAGS
20341  CFLAGS="$CFLAGS  $flag"
20342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343/* end confdefs.h.  */
20344
20345int
20346main (void)
20347{
20348
20349  ;
20350  return 0;
20351}
20352_ACEOF
20353if ac_fn_c_try_compile "$LINENO"
20354then :
20355  eval "$as_CACHEVAR=yes"
20356else $as_nop
20357  eval "$as_CACHEVAR=no"
20358fi
20359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20360  CFLAGS=$ax_check_save_flags
20361fi
20362eval ac_res=\$$as_CACHEVAR
20363	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20364printf "%s\n" "$ac_res" >&6; }
20365if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes
20366then :
20367  if test ${CARES_SYMBOL_HIDING_CFLAG+y}
20368then :
20369  case " $CARES_SYMBOL_HIDING_CFLAG " in
20370    *" $flag "*)
20371      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG already contains \$flag"; } >&5
20372  (: CARES_SYMBOL_HIDING_CFLAG already contains $flag) 2>&5
20373  ac_status=$?
20374  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20375  test $ac_status = 0; }
20376      ;;
20377    *)
20378      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG \$flag\""; } >&5
20379  (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG $flag") 2>&5
20380  ac_status=$?
20381  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20382  test $ac_status = 0; }
20383      CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG $flag"
20384      ;;
20385   esac
20386else $as_nop
20387  CARES_SYMBOL_HIDING_CFLAG="$flag"
20388fi
20389
20390else $as_nop
20391  :
20392fi
20393
20394done
20395
20396        if test "x$CARES_SYMBOL_HIDING_CFLAG" != "x" ; then
20397          compiler_supports_symbol_hiding="yes"
20398        fi
20399        ;;
20400    esac
20401  fi
20402  if test "$compiler_supports_symbol_hiding" = "no" ; then
20403    if test "$symbol_hiding" = "yes" ; then
20404      as_fn_error $? "Compiler does not support symbol hiding" "$LINENO" 5
20405    else
20406      symbol_hiding="no"
20407    fi
20408  else
20409
20410printf "%s\n" "#define CARES_SYMBOL_HIDING  1 " >>confdefs.h
20411
20412    symbol_hiding="yes"
20413  fi
20414fi
20415 if test "x$symbol_hiding" = "xyes"; then
20416  CARES_SYMBOL_HIDING_TRUE=
20417  CARES_SYMBOL_HIDING_FALSE='#'
20418else
20419  CARES_SYMBOL_HIDING_TRUE='#'
20420  CARES_SYMBOL_HIDING_FALSE=
20421fi
20422
20423
20424
20425
20426if test "$enable_warnings" = "yes"; then
20427
20428
20429for flag in -Wall \
20430    -Wextra \
20431    -Wcast-align \
20432    -Wconversion \
20433    -Wdeclaration-after-statement \
20434    -Wdouble-promotion \
20435    -Wfloat-equal \
20436    -Wformat-security \
20437    -Winit-self \
20438    -Wjump-misses-init \
20439    -Wlogical-op \
20440    -Wmissing-braces \
20441    -Wmissing-declarations \
20442    -Wmissing-format-attribute \
20443    -Wmissing-include-dirs \
20444    -Wmissing-prototypes \
20445    -Wnested-externs \
20446    -Wno-coverage-mismatch \
20447    -Wold-style-definition \
20448    -Wpacked \
20449    -Wpointer-arith \
20450    -Wredundant-decls \
20451    -Wshadow \
20452    -Wsign-conversion \
20453    -Wstrict-overflow \
20454    -Wstrict-prototypes \
20455    -Wtrampolines \
20456    -Wundef \
20457    -Wunused \
20458    -Wvariadic-macros \
20459    -Wvla \
20460    -Wwrite-strings \
20461    -Werror=implicit-int \
20462    -Werror=implicit-function-declaration \
20463    -Werror=partial-availability \
20464  ; do
20465  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh`
20466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
20467printf %s "checking whether C compiler accepts $flag... " >&6; }
20468if eval test \${$as_CACHEVAR+y}
20469then :
20470  printf %s "(cached) " >&6
20471else $as_nop
20472
20473  ax_check_save_flags=$CFLAGS
20474  CFLAGS="$CFLAGS -Werror $flag"
20475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20476/* end confdefs.h.  */
20477
20478int
20479main (void)
20480{
20481
20482  ;
20483  return 0;
20484}
20485_ACEOF
20486if ac_fn_c_try_compile "$LINENO"
20487then :
20488  eval "$as_CACHEVAR=yes"
20489else $as_nop
20490  eval "$as_CACHEVAR=no"
20491fi
20492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20493  CFLAGS=$ax_check_save_flags
20494fi
20495eval ac_res=\$$as_CACHEVAR
20496	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20497printf "%s\n" "$ac_res" >&6; }
20498if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes
20499then :
20500  if test ${AM_CFLAGS+y}
20501then :
20502  case " $AM_CFLAGS " in
20503    *" $flag "*)
20504      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
20505  (: AM_CFLAGS already contains $flag) 2>&5
20506  ac_status=$?
20507  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508  test $ac_status = 0; }
20509      ;;
20510    *)
20511      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS \$flag\""; } >&5
20512  (: AM_CFLAGS="$AM_CFLAGS $flag") 2>&5
20513  ac_status=$?
20514  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20515  test $ac_status = 0; }
20516      AM_CFLAGS="$AM_CFLAGS $flag"
20517      ;;
20518   esac
20519else $as_nop
20520  AM_CFLAGS="$flag"
20521fi
20522
20523else $as_nop
20524  :
20525fi
20526
20527done
20528
20529fi
20530
20531if test "$ax_cv_c_compiler_vendor" = "intel"; then
20532
20533
20534for flag in -shared-intel; do
20535  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
20536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
20537printf %s "checking whether C compiler accepts $flag... " >&6; }
20538if eval test \${$as_CACHEVAR+y}
20539then :
20540  printf %s "(cached) " >&6
20541else $as_nop
20542
20543  ax_check_save_flags=$CFLAGS
20544  CFLAGS="$CFLAGS  $flag"
20545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546/* end confdefs.h.  */
20547
20548int
20549main (void)
20550{
20551
20552  ;
20553  return 0;
20554}
20555_ACEOF
20556if ac_fn_c_try_compile "$LINENO"
20557then :
20558  eval "$as_CACHEVAR=yes"
20559else $as_nop
20560  eval "$as_CACHEVAR=no"
20561fi
20562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20563  CFLAGS=$ax_check_save_flags
20564fi
20565eval ac_res=\$$as_CACHEVAR
20566	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20567printf "%s\n" "$ac_res" >&6; }
20568if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes
20569then :
20570  if test ${AM_CFLAGS+y}
20571then :
20572  case " $AM_CFLAGS " in
20573    *" $flag "*)
20574      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
20575  (: AM_CFLAGS already contains $flag) 2>&5
20576  ac_status=$?
20577  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578  test $ac_status = 0; }
20579      ;;
20580    *)
20581      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS \$flag\""; } >&5
20582  (: AM_CFLAGS="$AM_CFLAGS $flag") 2>&5
20583  ac_status=$?
20584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20585  test $ac_status = 0; }
20586      AM_CFLAGS="$AM_CFLAGS $flag"
20587      ;;
20588   esac
20589else $as_nop
20590  AM_CFLAGS="$flag"
20591fi
20592
20593else $as_nop
20594  :
20595fi
20596
20597done
20598
20599fi
20600
20601if test "$ac_cv_native_windows" = "yes" ; then
20602
20603  ac_ext=c
20604ac_cpp='$CPP $CPPFLAGS'
20605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20607ac_compiler_gnu=$ac_cv_c_compiler_gnu
20608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20609printf %s "checking how to run the C preprocessor... " >&6; }
20610# On Suns, sometimes $CPP names a directory.
20611if test -n "$CPP" && test -d "$CPP"; then
20612  CPP=
20613fi
20614if test -z "$CPP"; then
20615  if test ${ac_cv_prog_CPP+y}
20616then :
20617  printf %s "(cached) " >&6
20618else $as_nop
20619      # Double quotes because $CC needs to be expanded
20620    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20621    do
20622      ac_preproc_ok=false
20623for ac_c_preproc_warn_flag in '' yes
20624do
20625  # Use a header file that comes with gcc, so configuring glibc
20626  # with a fresh cross-compiler works.
20627  # On the NeXT, cc -E runs the code through the compiler's parser,
20628  # not just through cpp. "Syntax error" is here to catch this case.
20629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630/* end confdefs.h.  */
20631#include <limits.h>
20632		     Syntax error
20633_ACEOF
20634if ac_fn_c_try_cpp "$LINENO"
20635then :
20636
20637else $as_nop
20638  # Broken: fails on valid input.
20639continue
20640fi
20641rm -f conftest.err conftest.i conftest.$ac_ext
20642
20643  # OK, works on sane cases.  Now check whether nonexistent headers
20644  # can be detected and how.
20645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646/* end confdefs.h.  */
20647#include <ac_nonexistent.h>
20648_ACEOF
20649if ac_fn_c_try_cpp "$LINENO"
20650then :
20651  # Broken: success on invalid input.
20652continue
20653else $as_nop
20654  # Passes both tests.
20655ac_preproc_ok=:
20656break
20657fi
20658rm -f conftest.err conftest.i conftest.$ac_ext
20659
20660done
20661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20662rm -f conftest.i conftest.err conftest.$ac_ext
20663if $ac_preproc_ok
20664then :
20665  break
20666fi
20667
20668    done
20669    ac_cv_prog_CPP=$CPP
20670
20671fi
20672  CPP=$ac_cv_prog_CPP
20673else
20674  ac_cv_prog_CPP=$CPP
20675fi
20676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20677printf "%s\n" "$CPP" >&6; }
20678ac_preproc_ok=false
20679for ac_c_preproc_warn_flag in '' yes
20680do
20681  # Use a header file that comes with gcc, so configuring glibc
20682  # with a fresh cross-compiler works.
20683  # On the NeXT, cc -E runs the code through the compiler's parser,
20684  # not just through cpp. "Syntax error" is here to catch this case.
20685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686/* end confdefs.h.  */
20687#include <limits.h>
20688		     Syntax error
20689_ACEOF
20690if ac_fn_c_try_cpp "$LINENO"
20691then :
20692
20693else $as_nop
20694  # Broken: fails on valid input.
20695continue
20696fi
20697rm -f conftest.err conftest.i conftest.$ac_ext
20698
20699  # OK, works on sane cases.  Now check whether nonexistent headers
20700  # can be detected and how.
20701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702/* end confdefs.h.  */
20703#include <ac_nonexistent.h>
20704_ACEOF
20705if ac_fn_c_try_cpp "$LINENO"
20706then :
20707  # Broken: success on invalid input.
20708continue
20709else $as_nop
20710  # Passes both tests.
20711ac_preproc_ok=:
20712break
20713fi
20714rm -f conftest.err conftest.i conftest.$ac_ext
20715
20716done
20717# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20718rm -f conftest.i conftest.err conftest.$ac_ext
20719if $ac_preproc_ok
20720then :
20721
20722else $as_nop
20723  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20724printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20725as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20726See \`config.log' for more details" "$LINENO" 5; }
20727fi
20728
20729ac_ext=c
20730ac_cpp='$CPP $CPPFLAGS'
20731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735
20736ac_fn_c_check_header_preproc "$LINENO" "windows.h" "ac_cv_header_windows_h"
20737if test "x$ac_cv_header_windows_h" = xyes
20738then :
20739  printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20740
20741fi
20742ac_fn_c_check_header_preproc "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h"
20743if test "x$ac_cv_header_winsock2_h" = xyes
20744then :
20745  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20746
20747fi
20748ac_fn_c_check_header_preproc "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h"
20749if test "x$ac_cv_header_ws2tcpip_h" = xyes
20750then :
20751  printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20752
20753fi
20754ac_fn_c_check_header_preproc "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h"
20755if test "x$ac_cv_header_iphlpapi_h" = xyes
20756then :
20757  printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h
20758
20759fi
20760ac_fn_c_check_header_preproc "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h"
20761if test "x$ac_cv_header_netioapi_h" = xyes
20762then :
20763  printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h
20764
20765fi
20766ac_fn_c_check_header_preproc "$LINENO" "ws2ipdef.h" "ac_cv_header_ws2ipdef_h"
20767if test "x$ac_cv_header_ws2ipdef_h" = xyes
20768then :
20769  printf "%s\n" "#define HAVE_WS2IPDEF_H 1" >>confdefs.h
20770
20771fi
20772ac_fn_c_check_header_preproc "$LINENO" "winternl.h" "ac_cv_header_winternl_h"
20773if test "x$ac_cv_header_winternl_h" = xyes
20774then :
20775  printf "%s\n" "#define HAVE_WINTERNL_H 1" >>confdefs.h
20776
20777fi
20778ac_fn_c_check_header_preproc "$LINENO" "ntdef.h" "ac_cv_header_ntdef_h"
20779if test "x$ac_cv_header_ntdef_h" = xyes
20780then :
20781  printf "%s\n" "#define HAVE_NTDEF_H 1" >>confdefs.h
20782
20783fi
20784ac_fn_c_check_header_preproc "$LINENO" "ntstatus.h" "ac_cv_header_ntstatus_h"
20785if test "x$ac_cv_header_ntstatus_h" = xyes
20786then :
20787  printf "%s\n" "#define HAVE_NTSTATUS_H 1" >>confdefs.h
20788
20789fi
20790ac_fn_c_check_header_preproc "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h"
20791if test "x$ac_cv_header_mswsock_h" = xyes
20792then :
20793  printf "%s\n" "#define HAVE_MSWSOCK_H 1" >>confdefs.h
20794
20795fi
20796
20797
20798    if test "$ac_cv_header_winsock2_h" = "yes"; then
20799    LIBS="$LIBS -lws2_32 -liphlpapi"
20800  fi
20801fi
20802
20803
20804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyport" >&5
20805printf %s "checking for library containing getservbyport... " >&6; }
20806if test ${ac_cv_search_getservbyport+y}
20807then :
20808  printf %s "(cached) " >&6
20809else $as_nop
20810  ac_func_search_save_LIBS=$LIBS
20811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812/* end confdefs.h.  */
20813
20814/* Override any GCC internal prototype to avoid an error.
20815   Use char because int might match the return type of a GCC
20816   builtin and then its argument prototype would still apply.  */
20817char getservbyport ();
20818int
20819main (void)
20820{
20821return getservbyport ();
20822  ;
20823  return 0;
20824}
20825_ACEOF
20826for ac_lib in '' nsl socket resolv
20827do
20828  if test -z "$ac_lib"; then
20829    ac_res="none required"
20830  else
20831    ac_res=-l$ac_lib
20832    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20833  fi
20834  if ac_fn_c_try_link "$LINENO"
20835then :
20836  ac_cv_search_getservbyport=$ac_res
20837fi
20838rm -f core conftest.err conftest.$ac_objext conftest.beam \
20839    conftest$ac_exeext
20840  if test ${ac_cv_search_getservbyport+y}
20841then :
20842  break
20843fi
20844done
20845if test ${ac_cv_search_getservbyport+y}
20846then :
20847
20848else $as_nop
20849  ac_cv_search_getservbyport=no
20850fi
20851rm conftest.$ac_ext
20852LIBS=$ac_func_search_save_LIBS
20853fi
20854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyport" >&5
20855printf "%s\n" "$ac_cv_search_getservbyport" >&6; }
20856ac_res=$ac_cv_search_getservbyport
20857if test "$ac_res" != no
20858then :
20859  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20860
20861fi
20862
20863
20864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libxnet is required" >&5
20865printf %s "checking if libxnet is required... " >&6; }
20866need_xnet=no
20867case $host_os in
20868  hpux*)
20869    XNET_LIBS=""
20870
20871
20872
20873
20874for flag in -lxnet; do
20875  as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
20876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
20877printf %s "checking whether the linker accepts $flag... " >&6; }
20878if eval test \${$as_CACHEVAR+y}
20879then :
20880  printf %s "(cached) " >&6
20881else $as_nop
20882
20883  ax_check_save_flags=$LDFLAGS
20884  LDFLAGS="$LDFLAGS  $flag"
20885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886/* end confdefs.h.  */
20887
20888int
20889main (void)
20890{
20891
20892  ;
20893  return 0;
20894}
20895_ACEOF
20896if ac_fn_c_try_link "$LINENO"
20897then :
20898  eval "$as_CACHEVAR=yes"
20899else $as_nop
20900  eval "$as_CACHEVAR=no"
20901fi
20902rm -f core conftest.err conftest.$ac_objext conftest.beam \
20903    conftest$ac_exeext conftest.$ac_ext
20904  LDFLAGS=$ax_check_save_flags
20905fi
20906eval ac_res=\$$as_CACHEVAR
20907	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20908printf "%s\n" "$ac_res" >&6; }
20909if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
20910then :
20911  if test ${XNET_LIBS+y}
20912then :
20913  case " $XNET_LIBS " in
20914    *" $flag "*)
20915      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : XNET_LIBS already contains \$flag"; } >&5
20916  (: XNET_LIBS already contains $flag) 2>&5
20917  ac_status=$?
20918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919  test $ac_status = 0; }
20920      ;;
20921    *)
20922      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : XNET_LIBS=\"\$XNET_LIBS \$flag\""; } >&5
20923  (: XNET_LIBS="$XNET_LIBS $flag") 2>&5
20924  ac_status=$?
20925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20926  test $ac_status = 0; }
20927      XNET_LIBS="$XNET_LIBS $flag"
20928      ;;
20929   esac
20930else $as_nop
20931  XNET_LIBS="$flag"
20932fi
20933
20934else $as_nop
20935  :
20936fi
20937
20938done
20939
20940    if test "x$XNET_LIBS" != "x" ; then
20941      LIBS="$LIBS $XNET_LIBS"
20942      need_xnet=yes
20943    fi
20944    ;;
20945esac
20946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_xnet" >&5
20947printf "%s\n" "$need_xnet" >&6; }
20948
20949if test "x$host_vendor" = "xapple"
20950then :
20951
20952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
20953printf %s "checking for library containing res_servicename... " >&6; }
20954if test ${ac_cv_search_res_servicename+y}
20955then :
20956  printf %s "(cached) " >&6
20957else $as_nop
20958  ac_func_search_save_LIBS=$LIBS
20959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960/* end confdefs.h.  */
20961
20962/* Override any GCC internal prototype to avoid an error.
20963   Use char because int might match the return type of a GCC
20964   builtin and then its argument prototype would still apply.  */
20965char res_servicename ();
20966int
20967main (void)
20968{
20969return res_servicename ();
20970  ;
20971  return 0;
20972}
20973_ACEOF
20974for ac_lib in '' resolv
20975do
20976  if test -z "$ac_lib"; then
20977    ac_res="none required"
20978  else
20979    ac_res=-l$ac_lib
20980    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20981  fi
20982  if ac_fn_c_try_link "$LINENO"
20983then :
20984  ac_cv_search_res_servicename=$ac_res
20985fi
20986rm -f core conftest.err conftest.$ac_objext conftest.beam \
20987    conftest$ac_exeext
20988  if test ${ac_cv_search_res_servicename+y}
20989then :
20990  break
20991fi
20992done
20993if test ${ac_cv_search_res_servicename+y}
20994then :
20995
20996else $as_nop
20997  ac_cv_search_res_servicename=no
20998fi
20999rm conftest.$ac_ext
21000LIBS=$ac_func_search_save_LIBS
21001fi
21002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
21003printf "%s\n" "$ac_cv_search_res_servicename" >&6; }
21004ac_res=$ac_cv_search_res_servicename
21005if test "$ac_res" != no
21006then :
21007  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21008
21009
21010printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
21011
21012
21013else $as_nop
21014
21015    as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
21016
21017fi
21018
21019
21020fi
21021
21022if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition"
21023then :
21024
21025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
21026printf %s "checking for library containing res_init... " >&6; }
21027if test ${ac_cv_search_res_init+y}
21028then :
21029  printf %s "(cached) " >&6
21030else $as_nop
21031  ac_func_search_save_LIBS=$LIBS
21032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033/* end confdefs.h.  */
21034
21035/* Override any GCC internal prototype to avoid an error.
21036   Use char because int might match the return type of a GCC
21037   builtin and then its argument prototype would still apply.  */
21038char res_init ();
21039int
21040main (void)
21041{
21042return res_init ();
21043  ;
21044  return 0;
21045}
21046_ACEOF
21047for ac_lib in '' resolv
21048do
21049  if test -z "$ac_lib"; then
21050    ac_res="none required"
21051  else
21052    ac_res=-l$ac_lib
21053    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21054  fi
21055  if ac_fn_c_try_link "$LINENO"
21056then :
21057  ac_cv_search_res_init=$ac_res
21058fi
21059rm -f core conftest.err conftest.$ac_objext conftest.beam \
21060    conftest$ac_exeext
21061  if test ${ac_cv_search_res_init+y}
21062then :
21063  break
21064fi
21065done
21066if test ${ac_cv_search_res_init+y}
21067then :
21068
21069else $as_nop
21070  ac_cv_search_res_init=no
21071fi
21072rm conftest.$ac_ext
21073LIBS=$ac_func_search_save_LIBS
21074fi
21075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
21076printf "%s\n" "$ac_cv_search_res_init" >&6; }
21077ac_res=$ac_cv_search_res_init
21078if test "$ac_res" != no
21079then :
21080  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21081
21082
21083printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
21084
21085
21086else $as_nop
21087
21088    as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5
21089
21090fi
21091
21092
21093fi
21094
21095
21096if test "x$host_vendor" = "xapple"
21097then :
21098
21099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
21100printf %s "checking for iOS minimum version 10 or later... " >&6; }
21101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21102/* end confdefs.h.  */
21103
21104
21105#include <stdio.h>
21106#include <AvailabilityMacros.h>
21107#include <TargetConditionals.h>
21108
21109int
21110main (void)
21111{
21112
21113#if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
21114#error Not iOS 10 or later
21115#endif
21116return 0;
21117
21118  ;
21119  return 0;
21120}
21121
21122_ACEOF
21123if ac_fn_c_try_compile "$LINENO"
21124then :
21125
21126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21127printf "%s\n" "yes" >&6; }
21128    ac_cv_ios_10="yes"
21129
21130else $as_nop
21131
21132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21133printf "%s\n" "no" >&6; }
21134
21135fi
21136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21137
21138fi
21139
21140if test "x$host_vendor" = "xapple"
21141then :
21142
21143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
21144printf %s "checking for macOS minimum version 10.12 or later... " >&6; }
21145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146/* end confdefs.h.  */
21147
21148
21149#include <stdio.h>
21150#include <AvailabilityMacros.h>
21151#include <TargetConditionals.h>
21152
21153int
21154main (void)
21155{
21156
21157#ifndef MAC_OS_X_VERSION_10_12
21158#  define MAC_OS_X_VERSION_10_12 101200
21159#endif
21160#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
21161#error Not macOS 10.12 or later
21162#endif
21163return 0;
21164
21165  ;
21166  return 0;
21167}
21168
21169_ACEOF
21170if ac_fn_c_try_compile "$LINENO"
21171then :
21172
21173    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21174printf "%s\n" "yes" >&6; }
21175    ac_cv_macos_10_12="yes"
21176
21177else $as_nop
21178
21179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180printf "%s\n" "no" >&6; }
21181
21182fi
21183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21184
21185fi
21186
21187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
21188printf %s "checking whether to use libgcc... " >&6; }
21189# Check whether --enable-libgcc was given.
21190if test ${enable_libgcc+y}
21191then :
21192  enableval=$enable_libgcc;  case "$enableval" in
21193  yes)
21194    LIBS="$LIBS -lgcc"
21195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21196printf "%s\n" "yes" >&6; }
21197    ;;
21198  *)
21199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21200printf "%s\n" "no" >&6; }
21201    ;;
21202  esac
21203else $as_nop
21204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205printf "%s\n" "no" >&6; }
21206
21207fi
21208
21209
21210ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "
21211#ifdef HAVE_SYS_TYPES_H
21212#include <sys/types.h>
21213#endif
21214#ifdef HAVE_SYS_TIME_H
21215#include <sys/time.h>
21216#endif
21217#ifdef HAVE_ARPA_NAMESER_H
21218#include <arpa/nameser.h>
21219#endif
21220
21221#ifdef HAVE_SYS_SOCKET_H
21222#include <sys/socket.h>
21223#endif
21224#ifdef HAVE_NETINET_IN_H
21225#include <netinet/in.h>
21226#endif
21227
21228
21229"
21230if test "x$ac_cv_header_malloc_h" = xyes
21231then :
21232  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
21233
21234fi
21235ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "
21236#ifdef HAVE_SYS_TYPES_H
21237#include <sys/types.h>
21238#endif
21239#ifdef HAVE_SYS_TIME_H
21240#include <sys/time.h>
21241#endif
21242#ifdef HAVE_ARPA_NAMESER_H
21243#include <arpa/nameser.h>
21244#endif
21245
21246#ifdef HAVE_SYS_SOCKET_H
21247#include <sys/socket.h>
21248#endif
21249#ifdef HAVE_NETINET_IN_H
21250#include <netinet/in.h>
21251#endif
21252
21253
21254"
21255if test "x$ac_cv_header_memory_h" = xyes
21256then :
21257  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
21258
21259fi
21260ac_fn_c_check_header_compile "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "
21261#ifdef HAVE_SYS_TYPES_H
21262#include <sys/types.h>
21263#endif
21264#ifdef HAVE_SYS_TIME_H
21265#include <sys/time.h>
21266#endif
21267#ifdef HAVE_ARPA_NAMESER_H
21268#include <arpa/nameser.h>
21269#endif
21270
21271#ifdef HAVE_SYS_SOCKET_H
21272#include <sys/socket.h>
21273#endif
21274#ifdef HAVE_NETINET_IN_H
21275#include <netinet/in.h>
21276#endif
21277
21278
21279"
21280if test "x$ac_cv_header_AvailabilityMacros_h" = xyes
21281then :
21282  printf "%s\n" "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
21283
21284fi
21285ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
21286#ifdef HAVE_SYS_TYPES_H
21287#include <sys/types.h>
21288#endif
21289#ifdef HAVE_SYS_TIME_H
21290#include <sys/time.h>
21291#endif
21292#ifdef HAVE_ARPA_NAMESER_H
21293#include <arpa/nameser.h>
21294#endif
21295
21296#ifdef HAVE_SYS_SOCKET_H
21297#include <sys/socket.h>
21298#endif
21299#ifdef HAVE_NETINET_IN_H
21300#include <netinet/in.h>
21301#endif
21302
21303
21304"
21305if test "x$ac_cv_header_sys_types_h" = xyes
21306then :
21307  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
21308
21309fi
21310ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
21311#ifdef HAVE_SYS_TYPES_H
21312#include <sys/types.h>
21313#endif
21314#ifdef HAVE_SYS_TIME_H
21315#include <sys/time.h>
21316#endif
21317#ifdef HAVE_ARPA_NAMESER_H
21318#include <arpa/nameser.h>
21319#endif
21320
21321#ifdef HAVE_SYS_SOCKET_H
21322#include <sys/socket.h>
21323#endif
21324#ifdef HAVE_NETINET_IN_H
21325#include <netinet/in.h>
21326#endif
21327
21328
21329"
21330if test "x$ac_cv_header_sys_time_h" = xyes
21331then :
21332  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
21333
21334fi
21335ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
21336#ifdef HAVE_SYS_TYPES_H
21337#include <sys/types.h>
21338#endif
21339#ifdef HAVE_SYS_TIME_H
21340#include <sys/time.h>
21341#endif
21342#ifdef HAVE_ARPA_NAMESER_H
21343#include <arpa/nameser.h>
21344#endif
21345
21346#ifdef HAVE_SYS_SOCKET_H
21347#include <sys/socket.h>
21348#endif
21349#ifdef HAVE_NETINET_IN_H
21350#include <netinet/in.h>
21351#endif
21352
21353
21354"
21355if test "x$ac_cv_header_sys_select_h" = xyes
21356then :
21357  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21358
21359fi
21360ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
21361#ifdef HAVE_SYS_TYPES_H
21362#include <sys/types.h>
21363#endif
21364#ifdef HAVE_SYS_TIME_H
21365#include <sys/time.h>
21366#endif
21367#ifdef HAVE_ARPA_NAMESER_H
21368#include <arpa/nameser.h>
21369#endif
21370
21371#ifdef HAVE_SYS_SOCKET_H
21372#include <sys/socket.h>
21373#endif
21374#ifdef HAVE_NETINET_IN_H
21375#include <netinet/in.h>
21376#endif
21377
21378
21379"
21380if test "x$ac_cv_header_sys_socket_h" = xyes
21381then :
21382  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21383
21384fi
21385ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
21386#ifdef HAVE_SYS_TYPES_H
21387#include <sys/types.h>
21388#endif
21389#ifdef HAVE_SYS_TIME_H
21390#include <sys/time.h>
21391#endif
21392#ifdef HAVE_ARPA_NAMESER_H
21393#include <arpa/nameser.h>
21394#endif
21395
21396#ifdef HAVE_SYS_SOCKET_H
21397#include <sys/socket.h>
21398#endif
21399#ifdef HAVE_NETINET_IN_H
21400#include <netinet/in.h>
21401#endif
21402
21403
21404"
21405if test "x$ac_cv_header_sys_filio_h" = xyes
21406then :
21407  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21408
21409fi
21410ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
21411#ifdef HAVE_SYS_TYPES_H
21412#include <sys/types.h>
21413#endif
21414#ifdef HAVE_SYS_TIME_H
21415#include <sys/time.h>
21416#endif
21417#ifdef HAVE_ARPA_NAMESER_H
21418#include <arpa/nameser.h>
21419#endif
21420
21421#ifdef HAVE_SYS_SOCKET_H
21422#include <sys/socket.h>
21423#endif
21424#ifdef HAVE_NETINET_IN_H
21425#include <netinet/in.h>
21426#endif
21427
21428
21429"
21430if test "x$ac_cv_header_sys_ioctl_h" = xyes
21431then :
21432  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21433
21434fi
21435ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
21436#ifdef HAVE_SYS_TYPES_H
21437#include <sys/types.h>
21438#endif
21439#ifdef HAVE_SYS_TIME_H
21440#include <sys/time.h>
21441#endif
21442#ifdef HAVE_ARPA_NAMESER_H
21443#include <arpa/nameser.h>
21444#endif
21445
21446#ifdef HAVE_SYS_SOCKET_H
21447#include <sys/socket.h>
21448#endif
21449#ifdef HAVE_NETINET_IN_H
21450#include <netinet/in.h>
21451#endif
21452
21453
21454"
21455if test "x$ac_cv_header_sys_param_h" = xyes
21456then :
21457  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
21458
21459fi
21460ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
21461#ifdef HAVE_SYS_TYPES_H
21462#include <sys/types.h>
21463#endif
21464#ifdef HAVE_SYS_TIME_H
21465#include <sys/time.h>
21466#endif
21467#ifdef HAVE_ARPA_NAMESER_H
21468#include <arpa/nameser.h>
21469#endif
21470
21471#ifdef HAVE_SYS_SOCKET_H
21472#include <sys/socket.h>
21473#endif
21474#ifdef HAVE_NETINET_IN_H
21475#include <netinet/in.h>
21476#endif
21477
21478
21479"
21480if test "x$ac_cv_header_sys_uio_h" = xyes
21481then :
21482  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
21483
21484fi
21485ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "
21486#ifdef HAVE_SYS_TYPES_H
21487#include <sys/types.h>
21488#endif
21489#ifdef HAVE_SYS_TIME_H
21490#include <sys/time.h>
21491#endif
21492#ifdef HAVE_ARPA_NAMESER_H
21493#include <arpa/nameser.h>
21494#endif
21495
21496#ifdef HAVE_SYS_SOCKET_H
21497#include <sys/socket.h>
21498#endif
21499#ifdef HAVE_NETINET_IN_H
21500#include <netinet/in.h>
21501#endif
21502
21503
21504"
21505if test "x$ac_cv_header_sys_random_h" = xyes
21506then :
21507  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
21508
21509fi
21510ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "
21511#ifdef HAVE_SYS_TYPES_H
21512#include <sys/types.h>
21513#endif
21514#ifdef HAVE_SYS_TIME_H
21515#include <sys/time.h>
21516#endif
21517#ifdef HAVE_ARPA_NAMESER_H
21518#include <arpa/nameser.h>
21519#endif
21520
21521#ifdef HAVE_SYS_SOCKET_H
21522#include <sys/socket.h>
21523#endif
21524#ifdef HAVE_NETINET_IN_H
21525#include <netinet/in.h>
21526#endif
21527
21528
21529"
21530if test "x$ac_cv_header_sys_event_h" = xyes
21531then :
21532  printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
21533
21534fi
21535ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "
21536#ifdef HAVE_SYS_TYPES_H
21537#include <sys/types.h>
21538#endif
21539#ifdef HAVE_SYS_TIME_H
21540#include <sys/time.h>
21541#endif
21542#ifdef HAVE_ARPA_NAMESER_H
21543#include <arpa/nameser.h>
21544#endif
21545
21546#ifdef HAVE_SYS_SOCKET_H
21547#include <sys/socket.h>
21548#endif
21549#ifdef HAVE_NETINET_IN_H
21550#include <netinet/in.h>
21551#endif
21552
21553
21554"
21555if test "x$ac_cv_header_sys_epoll_h" = xyes
21556then :
21557  printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
21558
21559fi
21560ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
21561#ifdef HAVE_SYS_TYPES_H
21562#include <sys/types.h>
21563#endif
21564#ifdef HAVE_SYS_TIME_H
21565#include <sys/time.h>
21566#endif
21567#ifdef HAVE_ARPA_NAMESER_H
21568#include <arpa/nameser.h>
21569#endif
21570
21571#ifdef HAVE_SYS_SOCKET_H
21572#include <sys/socket.h>
21573#endif
21574#ifdef HAVE_NETINET_IN_H
21575#include <netinet/in.h>
21576#endif
21577
21578
21579"
21580if test "x$ac_cv_header_assert_h" = xyes
21581then :
21582  printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
21583
21584fi
21585ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "
21586#ifdef HAVE_SYS_TYPES_H
21587#include <sys/types.h>
21588#endif
21589#ifdef HAVE_SYS_TIME_H
21590#include <sys/time.h>
21591#endif
21592#ifdef HAVE_ARPA_NAMESER_H
21593#include <arpa/nameser.h>
21594#endif
21595
21596#ifdef HAVE_SYS_SOCKET_H
21597#include <sys/socket.h>
21598#endif
21599#ifdef HAVE_NETINET_IN_H
21600#include <netinet/in.h>
21601#endif
21602
21603
21604"
21605if test "x$ac_cv_header_iphlpapi_h" = xyes
21606then :
21607  printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h
21608
21609fi
21610ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "
21611#ifdef HAVE_SYS_TYPES_H
21612#include <sys/types.h>
21613#endif
21614#ifdef HAVE_SYS_TIME_H
21615#include <sys/time.h>
21616#endif
21617#ifdef HAVE_ARPA_NAMESER_H
21618#include <arpa/nameser.h>
21619#endif
21620
21621#ifdef HAVE_SYS_SOCKET_H
21622#include <sys/socket.h>
21623#endif
21624#ifdef HAVE_NETINET_IN_H
21625#include <netinet/in.h>
21626#endif
21627
21628
21629"
21630if test "x$ac_cv_header_netioapi_h" = xyes
21631then :
21632  printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h
21633
21634fi
21635ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
21636#ifdef HAVE_SYS_TYPES_H
21637#include <sys/types.h>
21638#endif
21639#ifdef HAVE_SYS_TIME_H
21640#include <sys/time.h>
21641#endif
21642#ifdef HAVE_ARPA_NAMESER_H
21643#include <arpa/nameser.h>
21644#endif
21645
21646#ifdef HAVE_SYS_SOCKET_H
21647#include <sys/socket.h>
21648#endif
21649#ifdef HAVE_NETINET_IN_H
21650#include <netinet/in.h>
21651#endif
21652
21653
21654"
21655if test "x$ac_cv_header_netdb_h" = xyes
21656then :
21657  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
21658
21659fi
21660ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
21661#ifdef HAVE_SYS_TYPES_H
21662#include <sys/types.h>
21663#endif
21664#ifdef HAVE_SYS_TIME_H
21665#include <sys/time.h>
21666#endif
21667#ifdef HAVE_ARPA_NAMESER_H
21668#include <arpa/nameser.h>
21669#endif
21670
21671#ifdef HAVE_SYS_SOCKET_H
21672#include <sys/socket.h>
21673#endif
21674#ifdef HAVE_NETINET_IN_H
21675#include <netinet/in.h>
21676#endif
21677
21678
21679"
21680if test "x$ac_cv_header_netinet_in_h" = xyes
21681then :
21682  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
21683
21684fi
21685ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
21686#ifdef HAVE_SYS_TYPES_H
21687#include <sys/types.h>
21688#endif
21689#ifdef HAVE_SYS_TIME_H
21690#include <sys/time.h>
21691#endif
21692#ifdef HAVE_ARPA_NAMESER_H
21693#include <arpa/nameser.h>
21694#endif
21695
21696#ifdef HAVE_SYS_SOCKET_H
21697#include <sys/socket.h>
21698#endif
21699#ifdef HAVE_NETINET_IN_H
21700#include <netinet/in.h>
21701#endif
21702
21703
21704"
21705if test "x$ac_cv_header_netinet_tcp_h" = xyes
21706then :
21707  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
21708
21709fi
21710ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21711#ifdef HAVE_SYS_TYPES_H
21712#include <sys/types.h>
21713#endif
21714#ifdef HAVE_SYS_TIME_H
21715#include <sys/time.h>
21716#endif
21717#ifdef HAVE_ARPA_NAMESER_H
21718#include <arpa/nameser.h>
21719#endif
21720
21721#ifdef HAVE_SYS_SOCKET_H
21722#include <sys/socket.h>
21723#endif
21724#ifdef HAVE_NETINET_IN_H
21725#include <netinet/in.h>
21726#endif
21727
21728
21729"
21730if test "x$ac_cv_header_net_if_h" = xyes
21731then :
21732  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
21733
21734fi
21735ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "
21736#ifdef HAVE_SYS_TYPES_H
21737#include <sys/types.h>
21738#endif
21739#ifdef HAVE_SYS_TIME_H
21740#include <sys/time.h>
21741#endif
21742#ifdef HAVE_ARPA_NAMESER_H
21743#include <arpa/nameser.h>
21744#endif
21745
21746#ifdef HAVE_SYS_SOCKET_H
21747#include <sys/socket.h>
21748#endif
21749#ifdef HAVE_NETINET_IN_H
21750#include <netinet/in.h>
21751#endif
21752
21753
21754"
21755if test "x$ac_cv_header_ifaddrs_h" = xyes
21756then :
21757  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
21758
21759fi
21760ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
21761#ifdef HAVE_SYS_TYPES_H
21762#include <sys/types.h>
21763#endif
21764#ifdef HAVE_SYS_TIME_H
21765#include <sys/time.h>
21766#endif
21767#ifdef HAVE_ARPA_NAMESER_H
21768#include <arpa/nameser.h>
21769#endif
21770
21771#ifdef HAVE_SYS_SOCKET_H
21772#include <sys/socket.h>
21773#endif
21774#ifdef HAVE_NETINET_IN_H
21775#include <netinet/in.h>
21776#endif
21777
21778
21779"
21780if test "x$ac_cv_header_fcntl_h" = xyes
21781then :
21782  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
21783
21784fi
21785ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
21786#ifdef HAVE_SYS_TYPES_H
21787#include <sys/types.h>
21788#endif
21789#ifdef HAVE_SYS_TIME_H
21790#include <sys/time.h>
21791#endif
21792#ifdef HAVE_ARPA_NAMESER_H
21793#include <arpa/nameser.h>
21794#endif
21795
21796#ifdef HAVE_SYS_SOCKET_H
21797#include <sys/socket.h>
21798#endif
21799#ifdef HAVE_NETINET_IN_H
21800#include <netinet/in.h>
21801#endif
21802
21803
21804"
21805if test "x$ac_cv_header_errno_h" = xyes
21806then :
21807  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
21808
21809fi
21810ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
21811#ifdef HAVE_SYS_TYPES_H
21812#include <sys/types.h>
21813#endif
21814#ifdef HAVE_SYS_TIME_H
21815#include <sys/time.h>
21816#endif
21817#ifdef HAVE_ARPA_NAMESER_H
21818#include <arpa/nameser.h>
21819#endif
21820
21821#ifdef HAVE_SYS_SOCKET_H
21822#include <sys/socket.h>
21823#endif
21824#ifdef HAVE_NETINET_IN_H
21825#include <netinet/in.h>
21826#endif
21827
21828
21829"
21830if test "x$ac_cv_header_socket_h" = xyes
21831then :
21832  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
21833
21834fi
21835ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "
21836#ifdef HAVE_SYS_TYPES_H
21837#include <sys/types.h>
21838#endif
21839#ifdef HAVE_SYS_TIME_H
21840#include <sys/time.h>
21841#endif
21842#ifdef HAVE_ARPA_NAMESER_H
21843#include <arpa/nameser.h>
21844#endif
21845
21846#ifdef HAVE_SYS_SOCKET_H
21847#include <sys/socket.h>
21848#endif
21849#ifdef HAVE_NETINET_IN_H
21850#include <netinet/in.h>
21851#endif
21852
21853
21854"
21855if test "x$ac_cv_header_strings_h" = xyes
21856then :
21857  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
21858
21859fi
21860ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
21861#ifdef HAVE_SYS_TYPES_H
21862#include <sys/types.h>
21863#endif
21864#ifdef HAVE_SYS_TIME_H
21865#include <sys/time.h>
21866#endif
21867#ifdef HAVE_ARPA_NAMESER_H
21868#include <arpa/nameser.h>
21869#endif
21870
21871#ifdef HAVE_SYS_SOCKET_H
21872#include <sys/socket.h>
21873#endif
21874#ifdef HAVE_NETINET_IN_H
21875#include <netinet/in.h>
21876#endif
21877
21878
21879"
21880if test "x$ac_cv_header_stdbool_h" = xyes
21881then :
21882  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
21883
21884fi
21885ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "
21886#ifdef HAVE_SYS_TYPES_H
21887#include <sys/types.h>
21888#endif
21889#ifdef HAVE_SYS_TIME_H
21890#include <sys/time.h>
21891#endif
21892#ifdef HAVE_ARPA_NAMESER_H
21893#include <arpa/nameser.h>
21894#endif
21895
21896#ifdef HAVE_SYS_SOCKET_H
21897#include <sys/socket.h>
21898#endif
21899#ifdef HAVE_NETINET_IN_H
21900#include <netinet/in.h>
21901#endif
21902
21903
21904"
21905if test "x$ac_cv_header_time_h" = xyes
21906then :
21907  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
21908
21909fi
21910ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
21911#ifdef HAVE_SYS_TYPES_H
21912#include <sys/types.h>
21913#endif
21914#ifdef HAVE_SYS_TIME_H
21915#include <sys/time.h>
21916#endif
21917#ifdef HAVE_ARPA_NAMESER_H
21918#include <arpa/nameser.h>
21919#endif
21920
21921#ifdef HAVE_SYS_SOCKET_H
21922#include <sys/socket.h>
21923#endif
21924#ifdef HAVE_NETINET_IN_H
21925#include <netinet/in.h>
21926#endif
21927
21928
21929"
21930if test "x$ac_cv_header_poll_h" = xyes
21931then :
21932  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
21933
21934fi
21935ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "
21936#ifdef HAVE_SYS_TYPES_H
21937#include <sys/types.h>
21938#endif
21939#ifdef HAVE_SYS_TIME_H
21940#include <sys/time.h>
21941#endif
21942#ifdef HAVE_ARPA_NAMESER_H
21943#include <arpa/nameser.h>
21944#endif
21945
21946#ifdef HAVE_SYS_SOCKET_H
21947#include <sys/socket.h>
21948#endif
21949#ifdef HAVE_NETINET_IN_H
21950#include <netinet/in.h>
21951#endif
21952
21953
21954"
21955if test "x$ac_cv_header_limits_h" = xyes
21956then :
21957  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
21958
21959fi
21960ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
21961#ifdef HAVE_SYS_TYPES_H
21962#include <sys/types.h>
21963#endif
21964#ifdef HAVE_SYS_TIME_H
21965#include <sys/time.h>
21966#endif
21967#ifdef HAVE_ARPA_NAMESER_H
21968#include <arpa/nameser.h>
21969#endif
21970
21971#ifdef HAVE_SYS_SOCKET_H
21972#include <sys/socket.h>
21973#endif
21974#ifdef HAVE_NETINET_IN_H
21975#include <netinet/in.h>
21976#endif
21977
21978
21979"
21980if test "x$ac_cv_header_arpa_nameser_h" = xyes
21981then :
21982  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
21983
21984fi
21985ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "
21986#ifdef HAVE_SYS_TYPES_H
21987#include <sys/types.h>
21988#endif
21989#ifdef HAVE_SYS_TIME_H
21990#include <sys/time.h>
21991#endif
21992#ifdef HAVE_ARPA_NAMESER_H
21993#include <arpa/nameser.h>
21994#endif
21995
21996#ifdef HAVE_SYS_SOCKET_H
21997#include <sys/socket.h>
21998#endif
21999#ifdef HAVE_NETINET_IN_H
22000#include <netinet/in.h>
22001#endif
22002
22003
22004"
22005if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
22006then :
22007  printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
22008
22009fi
22010ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
22011#ifdef HAVE_SYS_TYPES_H
22012#include <sys/types.h>
22013#endif
22014#ifdef HAVE_SYS_TIME_H
22015#include <sys/time.h>
22016#endif
22017#ifdef HAVE_ARPA_NAMESER_H
22018#include <arpa/nameser.h>
22019#endif
22020
22021#ifdef HAVE_SYS_SOCKET_H
22022#include <sys/socket.h>
22023#endif
22024#ifdef HAVE_NETINET_IN_H
22025#include <netinet/in.h>
22026#endif
22027
22028
22029"
22030if test "x$ac_cv_header_arpa_inet_h" = xyes
22031then :
22032  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
22033
22034fi
22035
22036
22037
22038cares_all_includes="
22039#include <stdio.h>
22040#include <stdlib.h>
22041#ifdef HAVE_AVAILABILITYMACROS_H
22042#  include <AvailabilityMacros.h>
22043#endif
22044#ifdef HAVE_SYS_UIO_H
22045#  include <sys/uio.h>
22046#endif
22047#ifdef HAVE_NETINET_IN_H
22048#  include <netinet/in.h>
22049#endif
22050#ifdef HAVE_TCP_H
22051#  include <tcp.h>
22052#endif
22053#ifdef HAVE_SYS_FILIO_H
22054#  include <sys/filio.h>
22055#endif
22056#ifdef HAVE_SYS_IOCTL_H
22057#  include <sys/ioctl.h>
22058#endif
22059#ifdef HAVE_UNISTD_H
22060#  include <unistd.h>
22061#endif
22062#ifdef HAVE_STRING_H
22063#  include <string.h>
22064#endif
22065#ifdef HAVE_STRINGS_H
22066#  include <strings.h>
22067#endif
22068#ifdef HAVE_TIME_H
22069#  include <time.h>
22070#endif
22071#ifdef HAVE_SYS_TIME_H
22072#  include <sys/time.h>
22073#endif
22074#ifdef HAVE_SYS_TYPES_H
22075#  include <sys/types.h>
22076#endif
22077#ifdef HAVE_SYS_STAT_H
22078#  include <sys/stat.h>
22079#endif
22080#ifdef HAVE_SYS_RANDOM_H
22081#  include <sys/random.h>
22082#endif
22083#ifdef HAVE_SYS_EVENT_H
22084#  include <sys/event.h>
22085#endif
22086#ifdef HAVE_SYS_EPOLL_H
22087#  include <sys/epoll.h>
22088#endif
22089#ifdef HAVE_SYS_SOCKET_H
22090#  include <sys/socket.h>
22091#endif
22092#ifdef HAVE_SYS_PARAM_H
22093#  include <sys/param.h>
22094#endif
22095#ifdef HAVE_FCNTL_H
22096#  include <fcntl.h>
22097#endif
22098#ifdef HAVE_POLL_H
22099#  include <poll.h>
22100#endif
22101#ifdef HAVE_NET_IF_H
22102#  include <net/if.h>
22103#endif
22104#ifdef HAVE_IFADDRS_H
22105#  include <ifaddrs.h>
22106#endif
22107#ifdef HAVE_NETINET_IN_H
22108#  include <netinet/in.h>
22109#endif
22110#ifdef HAVE_NETINET_TCP_H
22111#  include <netinet/tcp.h>
22112#endif
22113#ifdef HAVE_NETDB_H
22114#  include <netdb.h>
22115#endif
22116#ifdef HAVE_ARPA_INET_H
22117#  include <arpa/inet.h>
22118#endif
22119#ifdef HAVE_RESOLV_H
22120#  include <resolv.h>
22121#endif
22122#ifdef HAVE_IPHLPAPI_H
22123#  include <iphlpapi.h>
22124#endif
22125#ifdef HAVE_NETIOAPI_H
22126#  include <netioapi.h>
22127#endif
22128#ifdef HAVE_WINSOCK2_H
22129#  include <winsock2.h>
22130#endif
22131#ifdef HAVE_WS2IPDEF_H
22132#  include <ws2ipdef.h>
22133#endif
22134#ifdef HAVE_WS2TCPIP_H
22135#  include <ws2tcpip.h>
22136#endif
22137#ifdef HAVE_WINDOWS_H
22138#  include <windows.h>
22139#endif
22140"
22141
22142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
22143printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
22144if test ${ac_cv_c_undeclared_builtin_options+y}
22145then :
22146  printf %s "(cached) " >&6
22147else $as_nop
22148  ac_save_CFLAGS=$CFLAGS
22149   ac_cv_c_undeclared_builtin_options='cannot detect'
22150   for ac_arg in '' -fno-builtin; do
22151     CFLAGS="$ac_save_CFLAGS $ac_arg"
22152     # This test program should *not* compile successfully.
22153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154/* end confdefs.h.  */
22155
22156int
22157main (void)
22158{
22159(void) strchr;
22160  ;
22161  return 0;
22162}
22163_ACEOF
22164if ac_fn_c_try_compile "$LINENO"
22165then :
22166
22167else $as_nop
22168  # This test program should compile successfully.
22169        # No library function is consistently available on
22170        # freestanding implementations, so test against a dummy
22171        # declaration.  Include always-available headers on the
22172        # off chance that they somehow elicit warnings.
22173        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174/* end confdefs.h.  */
22175#include <float.h>
22176#include <limits.h>
22177#include <stdarg.h>
22178#include <stddef.h>
22179extern void ac_decl (int, char *);
22180
22181int
22182main (void)
22183{
22184(void) ac_decl (0, (char *) 0);
22185  (void) ac_decl;
22186
22187  ;
22188  return 0;
22189}
22190_ACEOF
22191if ac_fn_c_try_compile "$LINENO"
22192then :
22193  if test x"$ac_arg" = x
22194then :
22195  ac_cv_c_undeclared_builtin_options='none needed'
22196else $as_nop
22197  ac_cv_c_undeclared_builtin_options=$ac_arg
22198fi
22199          break
22200fi
22201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22202fi
22203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22204    done
22205    CFLAGS=$ac_save_CFLAGS
22206
22207fi
22208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
22209printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
22210  case $ac_cv_c_undeclared_builtin_options in #(
22211  'cannot detect') :
22212    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22213printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22214as_fn_error $? "cannot make $CC report undeclared builtins
22215See \`config.log' for more details" "$LINENO" 5; } ;; #(
22216  'none needed') :
22217    ac_c_undeclared_builtin_options='' ;; #(
22218  *) :
22219    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
22220esac
22221
22222ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22223if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes
22224then :
22225
22226cat >>confdefs.h <<_EOF
22227#define CARES_HAVE_ARPA_NAMESER_H 1
22228_EOF
22229
22230fi
22231ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22232if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes
22233then :
22234
22235cat >>confdefs.h <<_EOF
22236#define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1
22237_EOF
22238
22239fi
22240ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22241if test "x$ac_cv_type_long_long" = xyes
22242then :
22243
22244printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
22245
22246fi
22247
22248ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22249if test "x$ac_cv_type_ssize_t" = xyes
22250then :
22251   CARES_TYPEOF_ARES_SSIZE_T=ssize_t
22252else $as_nop
22253   CARES_TYPEOF_ARES_SSIZE_T=int
22254fi
22255
22256
22257printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h
22258
22259
22260ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$cares_all_includes
22261
22262"
22263if test "x$ac_cv_type_socklen_t" = xyes
22264then :
22265
22266
22267printf "%s\n" "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
22268
22269
22270cat >>confdefs.h <<_EOF
22271#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
22272_EOF
22273
22274
22275else $as_nop
22276
22277cat >>confdefs.h <<_EOF
22278#define CARES_TYPEOF_ARES_SOCKLEN_T int
22279_EOF
22280
22281fi
22282
22283
22284ac_fn_c_check_type "$LINENO" "SOCKET" "ac_cv_type_SOCKET" "$cares_all_includes
22285"
22286if test "x$ac_cv_type_SOCKET" = xyes
22287then :
22288
22289fi
22290
22291
22292
22293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22294printf %s "checking for library containing clock_gettime... " >&6; }
22295if test ${ac_cv_search_clock_gettime+y}
22296then :
22297  printf %s "(cached) " >&6
22298else $as_nop
22299  ac_func_search_save_LIBS=$LIBS
22300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22301/* end confdefs.h.  */
22302
22303/* Override any GCC internal prototype to avoid an error.
22304   Use char because int might match the return type of a GCC
22305   builtin and then its argument prototype would still apply.  */
22306char clock_gettime ();
22307int
22308main (void)
22309{
22310return clock_gettime ();
22311  ;
22312  return 0;
22313}
22314_ACEOF
22315for ac_lib in '' rt posix4
22316do
22317  if test -z "$ac_lib"; then
22318    ac_res="none required"
22319  else
22320    ac_res=-l$ac_lib
22321    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22322  fi
22323  if ac_fn_c_try_link "$LINENO"
22324then :
22325  ac_cv_search_clock_gettime=$ac_res
22326fi
22327rm -f core conftest.err conftest.$ac_objext conftest.beam \
22328    conftest$ac_exeext
22329  if test ${ac_cv_search_clock_gettime+y}
22330then :
22331  break
22332fi
22333done
22334if test ${ac_cv_search_clock_gettime+y}
22335then :
22336
22337else $as_nop
22338  ac_cv_search_clock_gettime=no
22339fi
22340rm conftest.$ac_ext
22341LIBS=$ac_func_search_save_LIBS
22342fi
22343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22344printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
22345ac_res=$ac_cv_search_clock_gettime
22346if test "$ac_res" != no
22347then :
22348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22349
22350fi
22351
22352
22353
22354ac_fn_check_decl "$LINENO" "recv" "ac_cv_have_decl_recv" "$cares_all_includes
22355" "$ac_c_undeclared_builtin_options" "CFLAGS"
22356if test "x$ac_cv_have_decl_recv" = xyes
22357then :
22358
22359printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
22360
22361fi
22362ac_fn_check_decl "$LINENO" "recvfrom" "ac_cv_have_decl_recvfrom" "$cares_all_includes
22363" "$ac_c_undeclared_builtin_options" "CFLAGS"
22364if test "x$ac_cv_have_decl_recvfrom" = xyes
22365then :
22366
22367printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
22368
22369fi
22370ac_fn_check_decl "$LINENO" "send" "ac_cv_have_decl_send" "$cares_all_includes
22371" "$ac_c_undeclared_builtin_options" "CFLAGS"
22372if test "x$ac_cv_have_decl_send" = xyes
22373then :
22374
22375printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
22376
22377fi
22378ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "$cares_all_includes
22379" "$ac_c_undeclared_builtin_options" "CFLAGS"
22380if test "x$ac_cv_have_decl_getnameinfo" = xyes
22381then :
22382
22383printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
22384
22385fi
22386ac_fn_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "$cares_all_includes
22387" "$ac_c_undeclared_builtin_options" "CFLAGS"
22388if test "x$ac_cv_have_decl_gethostname" = xyes
22389then :
22390
22391printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22392
22393fi
22394ac_fn_check_decl "$LINENO" "connect" "ac_cv_have_decl_connect" "$cares_all_includes
22395" "$ac_c_undeclared_builtin_options" "CFLAGS"
22396if test "x$ac_cv_have_decl_connect" = xyes
22397then :
22398
22399printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
22400
22401fi
22402ac_fn_check_decl "$LINENO" "closesocket" "ac_cv_have_decl_closesocket" "$cares_all_includes
22403" "$ac_c_undeclared_builtin_options" "CFLAGS"
22404if test "x$ac_cv_have_decl_closesocket" = xyes
22405then :
22406
22407printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
22408
22409fi
22410ac_fn_check_decl "$LINENO" "CloseSocket" "ac_cv_have_decl_CloseSocket" "$cares_all_includes
22411" "$ac_c_undeclared_builtin_options" "CFLAGS"
22412if test "x$ac_cv_have_decl_CloseSocket" = xyes
22413then :
22414
22415printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
22416
22417fi
22418ac_fn_check_decl "$LINENO" "fcntl" "ac_cv_have_decl_fcntl" "$cares_all_includes
22419" "$ac_c_undeclared_builtin_options" "CFLAGS"
22420if test "x$ac_cv_have_decl_fcntl" = xyes
22421then :
22422
22423printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
22424
22425fi
22426ac_fn_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$cares_all_includes
22427" "$ac_c_undeclared_builtin_options" "CFLAGS"
22428if test "x$ac_cv_have_decl_getenv" = xyes
22429then :
22430
22431printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
22432
22433fi
22434ac_fn_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "$cares_all_includes
22435" "$ac_c_undeclared_builtin_options" "CFLAGS"
22436if test "x$ac_cv_have_decl_gethostname" = xyes
22437then :
22438
22439printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22440
22441fi
22442ac_fn_check_decl "$LINENO" "getrandom" "ac_cv_have_decl_getrandom" "$cares_all_includes
22443" "$ac_c_undeclared_builtin_options" "CFLAGS"
22444if test "x$ac_cv_have_decl_getrandom" = xyes
22445then :
22446
22447printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
22448
22449fi
22450ac_fn_check_decl "$LINENO" "getservbyport_r" "ac_cv_have_decl_getservbyport_r" "$cares_all_includes
22451" "$ac_c_undeclared_builtin_options" "CFLAGS"
22452if test "x$ac_cv_have_decl_getservbyport_r" = xyes
22453then :
22454
22455printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h
22456
22457fi
22458ac_fn_check_decl "$LINENO" "inet_net_pton" "ac_cv_have_decl_inet_net_pton" "$cares_all_includes
22459" "$ac_c_undeclared_builtin_options" "CFLAGS"
22460if test "x$ac_cv_have_decl_inet_net_pton" = xyes
22461then :
22462
22463printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h
22464
22465fi
22466ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "$cares_all_includes
22467" "$ac_c_undeclared_builtin_options" "CFLAGS"
22468if test "x$ac_cv_have_decl_inet_ntop" = xyes
22469then :
22470
22471printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
22472
22473fi
22474ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "$cares_all_includes
22475" "$ac_c_undeclared_builtin_options" "CFLAGS"
22476if test "x$ac_cv_have_decl_inet_pton" = xyes
22477then :
22478
22479printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
22480
22481fi
22482ac_fn_check_decl "$LINENO" "ioctl" "ac_cv_have_decl_ioctl" "$cares_all_includes
22483" "$ac_c_undeclared_builtin_options" "CFLAGS"
22484if test "x$ac_cv_have_decl_ioctl" = xyes
22485then :
22486
22487printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
22488
22489fi
22490ac_fn_check_decl "$LINENO" "ioctlsocket" "ac_cv_have_decl_ioctlsocket" "$cares_all_includes
22491" "$ac_c_undeclared_builtin_options" "CFLAGS"
22492if test "x$ac_cv_have_decl_ioctlsocket" = xyes
22493then :
22494
22495printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
22496
22497fi
22498ac_fn_check_decl "$LINENO" "IoctlSocket" "ac_cv_have_decl_IoctlSocket" "$cares_all_includes
22499" "$ac_c_undeclared_builtin_options" "CFLAGS"
22500if test "x$ac_cv_have_decl_IoctlSocket" = xyes
22501then :
22502
22503printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
22504
22505fi
22506ac_fn_check_decl "$LINENO" "setsockopt" "ac_cv_have_decl_setsockopt" "$cares_all_includes
22507" "$ac_c_undeclared_builtin_options" "CFLAGS"
22508if test "x$ac_cv_have_decl_setsockopt" = xyes
22509then :
22510
22511printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
22512
22513fi
22514ac_fn_check_decl "$LINENO" "socket" "ac_cv_have_decl_socket" "$cares_all_includes
22515" "$ac_c_undeclared_builtin_options" "CFLAGS"
22516if test "x$ac_cv_have_decl_socket" = xyes
22517then :
22518
22519printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
22520
22521fi
22522ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$cares_all_includes
22523" "$ac_c_undeclared_builtin_options" "CFLAGS"
22524if test "x$ac_cv_have_decl_strcasecmp" = xyes
22525then :
22526
22527printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
22528
22529fi
22530ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$cares_all_includes
22531" "$ac_c_undeclared_builtin_options" "CFLAGS"
22532if test "x$ac_cv_have_decl_strdup" = xyes
22533then :
22534
22535printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
22536
22537fi
22538ac_fn_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$cares_all_includes
22539" "$ac_c_undeclared_builtin_options" "CFLAGS"
22540if test "x$ac_cv_have_decl_stricmp" = xyes
22541then :
22542
22543printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
22544
22545fi
22546ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$cares_all_includes
22547" "$ac_c_undeclared_builtin_options" "CFLAGS"
22548if test "x$ac_cv_have_decl_strncasecmp" = xyes
22549then :
22550
22551printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
22552
22553fi
22554ac_fn_check_decl "$LINENO" "strncmpi" "ac_cv_have_decl_strncmpi" "$cares_all_includes
22555" "$ac_c_undeclared_builtin_options" "CFLAGS"
22556if test "x$ac_cv_have_decl_strncmpi" = xyes
22557then :
22558
22559printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
22560
22561fi
22562ac_fn_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$cares_all_includes
22563" "$ac_c_undeclared_builtin_options" "CFLAGS"
22564if test "x$ac_cv_have_decl_strnicmp" = xyes
22565then :
22566
22567printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
22568
22569fi
22570ac_fn_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "$cares_all_includes
22571" "$ac_c_undeclared_builtin_options" "CFLAGS"
22572if test "x$ac_cv_have_decl_writev" = xyes
22573then :
22574
22575printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
22576
22577fi
22578ac_fn_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$cares_all_includes
22579" "$ac_c_undeclared_builtin_options" "CFLAGS"
22580if test "x$ac_cv_have_decl_arc4random_buf" = xyes
22581then :
22582
22583printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
22584
22585fi
22586ac_fn_check_decl "$LINENO" "stat" "ac_cv_have_decl_stat" "$cares_all_includes
22587" "$ac_c_undeclared_builtin_options" "CFLAGS"
22588if test "x$ac_cv_have_decl_stat" = xyes
22589then :
22590
22591printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
22592
22593fi
22594ac_fn_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$cares_all_includes
22595" "$ac_c_undeclared_builtin_options" "CFLAGS"
22596if test "x$ac_cv_have_decl_gettimeofday" = xyes
22597then :
22598
22599printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22600
22601fi
22602ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$cares_all_includes
22603" "$ac_c_undeclared_builtin_options" "CFLAGS"
22604if test "x$ac_cv_have_decl_clock_gettime" = xyes
22605then :
22606
22607printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22608
22609fi
22610ac_fn_check_decl "$LINENO" "if_indextoname" "ac_cv_have_decl_if_indextoname" "$cares_all_includes
22611" "$ac_c_undeclared_builtin_options" "CFLAGS"
22612if test "x$ac_cv_have_decl_if_indextoname" = xyes
22613then :
22614
22615printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h
22616
22617fi
22618ac_fn_check_decl "$LINENO" "if_nametoindex" "ac_cv_have_decl_if_nametoindex" "$cares_all_includes
22619" "$ac_c_undeclared_builtin_options" "CFLAGS"
22620if test "x$ac_cv_have_decl_if_nametoindex" = xyes
22621then :
22622
22623printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
22624
22625fi
22626ac_fn_check_decl "$LINENO" "getifaddrs" "ac_cv_have_decl_getifaddrs" "$cares_all_includes
22627" "$ac_c_undeclared_builtin_options" "CFLAGS"
22628if test "x$ac_cv_have_decl_getifaddrs" = xyes
22629then :
22630
22631printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
22632
22633fi
22634ac_fn_check_decl "$LINENO" "poll" "ac_cv_have_decl_poll" "$cares_all_includes
22635" "$ac_c_undeclared_builtin_options" "CFLAGS"
22636if test "x$ac_cv_have_decl_poll" = xyes
22637then :
22638
22639printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
22640
22641fi
22642ac_fn_check_decl "$LINENO" "pipe" "ac_cv_have_decl_pipe" "$cares_all_includes
22643" "$ac_c_undeclared_builtin_options" "CFLAGS"
22644if test "x$ac_cv_have_decl_pipe" = xyes
22645then :
22646
22647printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
22648
22649fi
22650ac_fn_check_decl "$LINENO" "pipe2" "ac_cv_have_decl_pipe2" "$cares_all_includes
22651" "$ac_c_undeclared_builtin_options" "CFLAGS"
22652if test "x$ac_cv_have_decl_pipe2" = xyes
22653then :
22654
22655printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
22656
22657fi
22658ac_fn_check_decl "$LINENO" "kqueue" "ac_cv_have_decl_kqueue" "$cares_all_includes
22659" "$ac_c_undeclared_builtin_options" "CFLAGS"
22660if test "x$ac_cv_have_decl_kqueue" = xyes
22661then :
22662
22663printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
22664
22665fi
22666ac_fn_check_decl "$LINENO" "epoll_create1" "ac_cv_have_decl_epoll_create1" "$cares_all_includes
22667" "$ac_c_undeclared_builtin_options" "CFLAGS"
22668if test "x$ac_cv_have_decl_epoll_create1" = xyes
22669then :
22670
22671printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
22672
22673fi
22674ac_fn_check_decl "$LINENO" "ConvertInterfaceIndexToLuid" "ac_cv_have_decl_ConvertInterfaceIndexToLuid" "$cares_all_includes
22675" "$ac_c_undeclared_builtin_options" "CFLAGS"
22676if test "x$ac_cv_have_decl_ConvertInterfaceIndexToLuid" = xyes
22677then :
22678
22679printf "%s\n" "#define HAVE_CONVERTINTERFACEINDEXTOLUID 1" >>confdefs.h
22680
22681fi
22682ac_fn_check_decl "$LINENO" "ConvertInterfaceLuidToNameA" "ac_cv_have_decl_ConvertInterfaceLuidToNameA" "$cares_all_includes
22683" "$ac_c_undeclared_builtin_options" "CFLAGS"
22684if test "x$ac_cv_have_decl_ConvertInterfaceLuidToNameA" = xyes
22685then :
22686
22687printf "%s\n" "#define HAVE_CONVERTINTERFACELUIDTONAMEA 1" >>confdefs.h
22688
22689fi
22690ac_fn_check_decl "$LINENO" "__system_property_get" "ac_cv_have_decl___system_property_get" "$cares_all_includes
22691" "$ac_c_undeclared_builtin_options" "CFLAGS"
22692if test "x$ac_cv_have_decl___system_property_get" = xyes
22693then :
22694
22695printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
22696
22697fi
22698
22699
22700
22701if test "x$ac_cv_type_ssize_t" = "xyes" -a "x$ac_cv_type_socklen_t" = "xyes" -a "x$ac_cv_native_windows" != "xyes" ; then
22702  recvfrom_type_retv="ssize_t"
22703  recvfrom_type_arg3="size_t"
22704else
22705  recvfrom_type_retv="int"
22706  recvfrom_type_arg3="int"
22707fi
22708
22709if test "x$ac_cv_type_SOCKET" = "xyes" ; then
22710    recvfrom_type_arg1="SOCKET"
22711else
22712  recvfrom_type_arg1="int"
22713fi
22714
22715if test "x$ac_cv_type_socklen_t" = "xyes" ; then
22716  recvfrom_type_arg6="socklen_t *"
22717  getnameinfo_type_arg2="socklen_t"
22718  getnameinfo_type_arg46="socklen_t"
22719else
22720  recvfrom_type_arg6="int *"
22721  getnameinfo_type_arg2="int"
22722  getnameinfo_type_arg46="int"
22723fi
22724
22725if test "x$ac_cv_native_windows" = "xyes" ; then
22726  recv_type_arg2="char *"
22727else
22728  recv_type_arg2="void *"
22729fi
22730
22731recv_type_retv=${recvfrom_type_retv}
22732send_type_retv=${recvfrom_type_retv}
22733recv_type_arg1=${recvfrom_type_arg1}
22734recvfrom_type_arg2=${recv_type_arg2}
22735send_type_arg1=${recvfrom_type_arg1}
22736recv_type_arg3=${recvfrom_type_arg3}
22737send_type_arg3=${recvfrom_type_arg3}
22738gethostname_type_arg2=${recvfrom_type_arg3}
22739
22740recvfrom_qual_arg5=
22741recvfrom_type_arg4=int
22742recvfrom_type_arg5="struct sockaddr *"
22743recv_type_arg4=int
22744getnameinfo_type_arg1="struct sockaddr *"
22745getnameinfo_type_arg7=int
22746send_type_arg2="void *"
22747send_type_arg4=int
22748
22749
22750printf "%s\n" "#define RECVFROM_TYPE_RETV  ${recvfrom_type_retv} " >>confdefs.h
22751
22752
22753printf "%s\n" "#define RECVFROM_TYPE_ARG1  ${recvfrom_type_arg1} " >>confdefs.h
22754
22755
22756printf "%s\n" "#define RECVFROM_TYPE_ARG2  ${recvfrom_type_arg2} " >>confdefs.h
22757
22758
22759printf "%s\n" "#define RECVFROM_TYPE_ARG3  ${recvfrom_type_arg3} " >>confdefs.h
22760
22761
22762printf "%s\n" "#define RECVFROM_TYPE_ARG4  ${recvfrom_type_arg4} " >>confdefs.h
22763
22764
22765printf "%s\n" "#define RECVFROM_TYPE_ARG5  ${recvfrom_type_arg5} " >>confdefs.h
22766
22767
22768printf "%s\n" "#define RECVFROM_QUAL_ARG5  ${recvfrom_qual_arg5}" >>confdefs.h
22769
22770
22771
22772printf "%s\n" "#define RECV_TYPE_RETV  ${recv_type_retv} " >>confdefs.h
22773
22774
22775printf "%s\n" "#define RECV_TYPE_ARG1  ${recv_type_arg1} " >>confdefs.h
22776
22777
22778printf "%s\n" "#define RECV_TYPE_ARG2  ${recv_type_arg2} " >>confdefs.h
22779
22780
22781printf "%s\n" "#define RECV_TYPE_ARG3  ${recv_type_arg3} " >>confdefs.h
22782
22783
22784printf "%s\n" "#define RECV_TYPE_ARG4  ${recv_type_arg4} " >>confdefs.h
22785
22786
22787
22788printf "%s\n" "#define SEND_TYPE_RETV  ${send_type_retv} " >>confdefs.h
22789
22790
22791printf "%s\n" "#define SEND_TYPE_ARG1  ${send_type_arg1} " >>confdefs.h
22792
22793
22794printf "%s\n" "#define SEND_TYPE_ARG2  ${send_type_arg2} " >>confdefs.h
22795
22796
22797printf "%s\n" "#define SEND_QUAL_ARG2  " >>confdefs.h
22798
22799
22800printf "%s\n" "#define SEND_TYPE_ARG3  ${send_type_arg3} " >>confdefs.h
22801
22802
22803printf "%s\n" "#define SEND_TYPE_ARG4  ${send_type_arg4} " >>confdefs.h
22804
22805
22806
22807printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1  ${getnameinfo_type_arg1} " >>confdefs.h
22808
22809
22810printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2  ${getnameinfo_type_arg2} " >>confdefs.h
22811
22812
22813printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7  ${getnameinfo_type_arg7} " >>confdefs.h
22814
22815
22816printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46  ${getnameinfo_type_arg46} " >>confdefs.h
22817
22818
22819
22820printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2  ${gethostname_type_arg2} " >>confdefs.h
22821
22822
22823
22824if test "$ac_cv_have_decl_getservbyport_r" = "yes" ; then
22825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyport_r()" >&5
22826printf %s "checking number of arguments for getservbyport_r()... " >&6; }
22827  getservbyport_r_args=6
22828  case $host_os in
22829    solaris*)
22830      getservbyport_r_args=5
22831    ;;
22832    aix*|openbsd*)
22833      getservbyport_r_args=4
22834    ;;
22835  esac
22836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $getservbyport_r_args" >&5
22837printf "%s\n" "$getservbyport_r_args" >&6; }
22838
22839printf "%s\n" "#define GETSERVBYPORT_R_ARGS  $getservbyport_r_args " >>confdefs.h
22840
22841fi
22842
22843if test "$ac_cv_have_decl_getservbyname_r" = "yes" ; then
22844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyname_r()" >&5
22845printf %s "checking number of arguments for getservbyname_r()... " >&6; }
22846  getservbyname_r_args=6
22847  case $host_os in
22848    solaris*)
22849      getservbyname_r_args=5
22850    ;;
22851    aix*|openbsd*)
22852      getservbyname_r_args=4
22853    ;;
22854  esac
22855
22856printf "%s\n" "#define GETSERVBYNAME_R_ARGS  $getservbyname_r_args " >>confdefs.h
22857
22858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $getservbyname_r_args" >&5
22859printf "%s\n" "$getservbyname_r_args" >&6; }
22860fi
22861
22862ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22863if test "x$ac_cv_type_size_t" = xyes
22864then :
22865
22866else $as_nop
22867
22868printf "%s\n" "#define size_t unsigned int" >>confdefs.h
22869
22870fi
22871
22872ac_fn_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$cares_all_includes
22873" "$ac_c_undeclared_builtin_options" "CFLAGS"
22874if test "x$ac_cv_have_decl_AF_INET6" = xyes
22875then :
22876
22877printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h
22878
22879fi
22880ac_fn_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$cares_all_includes
22881" "$ac_c_undeclared_builtin_options" "CFLAGS"
22882if test "x$ac_cv_have_decl_PF_INET6" = xyes
22883then :
22884
22885printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h
22886
22887fi
22888ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "$cares_all_includes
22889"
22890if test "x$ac_cv_type_struct_in6_addr" = xyes
22891then :
22892
22893printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
22894
22895
22896fi
22897
22898ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$cares_all_includes
22899"
22900if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
22901then :
22902
22903printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
22904
22905
22906fi
22907
22908ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$cares_all_includes
22909"
22910if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
22911then :
22912
22913printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
22914
22915
22916fi
22917
22918ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$cares_all_includes
22919"
22920if test "x$ac_cv_type_struct_addrinfo" = xyes
22921then :
22922
22923printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
22924
22925
22926fi
22927
22928ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$cares_all_includes
22929"
22930if test "x$ac_cv_type_struct_timeval" = xyes
22931then :
22932
22933printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
22934
22935
22936fi
22937
22938ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "$cares_all_includes
22939"
22940if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
22941then :
22942
22943printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
22944
22945
22946fi
22947
22948ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "$cares_all_includes
22949"
22950if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes
22951then :
22952
22953printf "%s\n" "#define HAVE_STRUCT_ADDRINFO_AI_FLAGS 1" >>confdefs.h
22954
22955
22956fi
22957
22958ac_fn_check_decl "$LINENO" "FIONBIO" "ac_cv_have_decl_FIONBIO" "$cares_all_includes
22959" "$ac_c_undeclared_builtin_options" "CFLAGS"
22960if test "x$ac_cv_have_decl_FIONBIO" = xyes
22961then :
22962
22963fi
22964ac_fn_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "$cares_all_includes
22965" "$ac_c_undeclared_builtin_options" "CFLAGS"
22966if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
22967then :
22968
22969fi
22970ac_fn_check_decl "$LINENO" "SO_NONBLOCK" "ac_cv_have_decl_SO_NONBLOCK" "$cares_all_includes
22971" "$ac_c_undeclared_builtin_options" "CFLAGS"
22972if test "x$ac_cv_have_decl_SO_NONBLOCK" = xyes
22973then :
22974
22975fi
22976ac_fn_check_decl "$LINENO" "MSG_NOSIGNAL" "ac_cv_have_decl_MSG_NOSIGNAL" "$cares_all_includes
22977" "$ac_c_undeclared_builtin_options" "CFLAGS"
22978if test "x$ac_cv_have_decl_MSG_NOSIGNAL" = xyes
22979then :
22980
22981fi
22982ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "$cares_all_includes
22983" "$ac_c_undeclared_builtin_options" "CFLAGS"
22984if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
22985then :
22986
22987fi
22988
22989if test "$ac_cv_have_decl_CLOCK_MONOTONIC" = "yes" -a "$ac_cv_have_decl_clock_gettime" = "yes" ; then
22990
22991printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC  1 " >>confdefs.h
22992
22993fi
22994
22995if test "$ac_cv_have_decl_FIONBIO" = "yes" -a "$ac_cv_have_decl_ioctl" = "yes" ; then
22996
22997printf "%s\n" "#define HAVE_IOCTL_FIONBIO  1 " >>confdefs.h
22998
22999fi
23000if test "$ac_cv_have_decl_FIONBIO" = "yes" -a "$ac_cv_have_decl_ioctlsocket" = "yes" ; then
23001
23002printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO  1 " >>confdefs.h
23003
23004fi
23005if test "$ac_cv_have_decl_SO_NONBLOCK" = "yes" -a "$ac_cv_have_decl_setsockopt" = "yes" ; then
23006
23007printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK  1 " >>confdefs.h
23008
23009fi
23010if test "$ac_cv_have_decl_O_NONBLOCK" = "yes" -a "$ac_cv_have_decl_fcntl" = "yes" ; then
23011
23012printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK  1 " >>confdefs.h
23013
23014fi
23015
23016if test "x$ac_cv_header_sys_types_h" = "xyes" ; then
23017
23018cat >>confdefs.h <<_EOF
23019#define CARES_HAVE_SYS_TYPES_H 1
23020_EOF
23021
23022fi
23023if test "x$ac_cv_header_sys_socket_h" = "xyes" ; then
23024
23025cat >>confdefs.h <<_EOF
23026#define CARES_HAVE_SYS_SOCKET_H 1
23027_EOF
23028
23029fi
23030if test "x$ac_cv_header_ws2tcpip_h" = "xyes" ; then
23031
23032cat >>confdefs.h <<_EOF
23033#define CARES_HAVE_WS2TCPIP_H 1
23034_EOF
23035
23036fi
23037if test "x$ac_cv_header_winsock2_h" = "xyes" ; then
23038
23039cat >>confdefs.h <<_EOF
23040#define CARES_HAVE_WINSOCK2_H 1
23041_EOF
23042
23043fi
23044if test "x$ac_cv_header_windows_h" = "xyes" ; then
23045
23046cat >>confdefs.h <<_EOF
23047#define CARES_HAVE_WINDOWS_H 1
23048_EOF
23049
23050fi
23051if test "x$ac_cv_header_arpa_nameser_h" = "xyes" ; then
23052
23053cat >>confdefs.h <<_EOF
23054#define CARES_HAVE_ARPA_NAMESER_H 1
23055_EOF
23056
23057fi
23058if test "x$ac_cv_header_arpa_nameser_compa_h" = "xyes" ; then
23059
23060cat >>confdefs.h <<_EOF
23061#define CARES_HAVE_ARPA_NAMESER_COMPA_H 1
23062_EOF
23063
23064fi
23065
23066
23067
23068if test "${CARES_THREADS}" = "yes" -a "x${ac_cv_native_windows}" != "xyes" ; then
23069
23070
23071
23072
23073ac_ext=c
23074ac_cpp='$CPP $CPPFLAGS'
23075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23077ac_compiler_gnu=$ac_cv_c_compiler_gnu
23078
23079ax_pthread_ok=no
23080
23081# We used to check for pthread.h first, but this fails if pthread.h
23082# requires special compiler flags (e.g. on Tru64 or Sequent).
23083# It gets checked for in the link test anyway.
23084
23085# First of all, check if the user has set any of the PTHREAD_LIBS,
23086# etcetera environment variables, and if threads linking works using
23087# them:
23088if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
23089        ax_pthread_save_CC="$CC"
23090        ax_pthread_save_CFLAGS="$CFLAGS"
23091        ax_pthread_save_LIBS="$LIBS"
23092        if test "x$PTHREAD_CC" != "x"
23093then :
23094  CC="$PTHREAD_CC"
23095fi
23096        if test "x$PTHREAD_CXX" != "x"
23097then :
23098  CXX="$PTHREAD_CXX"
23099fi
23100        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23101        LIBS="$PTHREAD_LIBS $LIBS"
23102        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
23103printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
23104        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105/* end confdefs.h.  */
23106
23107/* Override any GCC internal prototype to avoid an error.
23108   Use char because int might match the return type of a GCC
23109   builtin and then its argument prototype would still apply.  */
23110char pthread_join ();
23111int
23112main (void)
23113{
23114return pthread_join ();
23115  ;
23116  return 0;
23117}
23118_ACEOF
23119if ac_fn_c_try_link "$LINENO"
23120then :
23121  ax_pthread_ok=yes
23122fi
23123rm -f core conftest.err conftest.$ac_objext conftest.beam \
23124    conftest$ac_exeext conftest.$ac_ext
23125        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23126printf "%s\n" "$ax_pthread_ok" >&6; }
23127        if test "x$ax_pthread_ok" = "xno"; then
23128                PTHREAD_LIBS=""
23129                PTHREAD_CFLAGS=""
23130        fi
23131        CC="$ax_pthread_save_CC"
23132        CFLAGS="$ax_pthread_save_CFLAGS"
23133        LIBS="$ax_pthread_save_LIBS"
23134fi
23135
23136# We must check for the threads library under a number of different
23137# names; the ordering is very important because some systems
23138# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23139# libraries is broken (non-POSIX).
23140
23141# Create a list of thread flags to try. Items with a "," contain both
23142# C compiler flags (before ",") and linker flags (after ","). Other items
23143# starting with a "-" are C compiler flags, and remaining items are
23144# library names, except for "none" which indicates that we try without
23145# any flags at all, and "pthread-config" which is a program returning
23146# the flags for the Pth emulation library.
23147
23148ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23149
23150# The ordering *is* (sometimes) important.  Some notes on the
23151# individual items follow:
23152
23153# pthreads: AIX (must check this before -lpthread)
23154# none: in case threads are in libc; should be tried before -Kthread and
23155#       other compiler flags to prevent continual compiler warnings
23156# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23157# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
23158#           (Note: HP C rejects this with "bad form for `-t' option")
23159# -pthreads: Solaris/gcc (Note: HP C also rejects)
23160# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23161#      doesn't hurt to check since this sometimes defines pthreads and
23162#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
23163#      is present but should not be used directly; and before -mthreads,
23164#      because the compiler interprets this as "-mt" + "-hreads")
23165# -mthreads: Mingw32/gcc, Lynx/gcc
23166# pthread: Linux, etcetera
23167# --thread-safe: KAI C++
23168# pthread-config: use pthread-config program (for GNU Pth library)
23169
23170case $host_os in
23171
23172        freebsd*)
23173
23174        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23175        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23176
23177        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
23178        ;;
23179
23180        hpux*)
23181
23182        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
23183        # multi-threading and also sets -lpthread."
23184
23185        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
23186        ;;
23187
23188        openedition*)
23189
23190        # IBM z/OS requires a feature-test macro to be defined in order to
23191        # enable POSIX threads at all, so give the user a hint if this is
23192        # not set. (We don't define these ourselves, as they can affect
23193        # other portions of the system API in unpredictable ways.)
23194
23195        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196/* end confdefs.h.  */
23197
23198#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
23199             AX_PTHREAD_ZOS_MISSING
23200#            endif
23201
23202_ACEOF
23203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23204  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
23205then :
23206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
23207printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
23208fi
23209rm -rf conftest*
23210
23211        ;;
23212
23213        solaris*)
23214
23215        # On Solaris (at least, for some versions), libc contains stubbed
23216        # (non-functional) versions of the pthreads routines, so link-based
23217        # tests will erroneously succeed. (N.B.: The stubs are missing
23218        # pthread_cleanup_push, or rather a function called by this macro,
23219        # so we could check for that, but who knows whether they'll stub
23220        # that too in a future libc.)  So we'll check first for the
23221        # standard Solaris way of linking pthreads (-mt -lpthread).
23222
23223        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
23224        ;;
23225esac
23226
23227# Are we compiling with Clang?
23228
23229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
23230printf %s "checking whether $CC is Clang... " >&6; }
23231if test ${ax_cv_PTHREAD_CLANG+y}
23232then :
23233  printf %s "(cached) " >&6
23234else $as_nop
23235  ax_cv_PTHREAD_CLANG=no
23236     # Note that Autoconf sets GCC=yes for Clang as well as GCC
23237     if test "x$GCC" = "xyes"; then
23238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239/* end confdefs.h.  */
23240/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
23241#            if defined(__clang__) && defined(__llvm__)
23242             AX_PTHREAD_CC_IS_CLANG
23243#            endif
23244
23245_ACEOF
23246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
23248then :
23249  ax_cv_PTHREAD_CLANG=yes
23250fi
23251rm -rf conftest*
23252
23253     fi
23254
23255fi
23256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
23257printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
23258ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
23259
23260
23261# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
23262
23263# Note that for GCC and Clang -pthread generally implies -lpthread,
23264# except when -nostdlib is passed.
23265# This is problematic using libtool to build C++ shared libraries with pthread:
23266# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
23267# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
23268# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
23269# To solve this, first try -pthread together with -lpthread for GCC
23270
23271if test "x$GCC" = "xyes"
23272then :
23273  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
23274fi
23275
23276# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
23277
23278if test "x$ax_pthread_clang" = "xyes"
23279then :
23280  ax_pthread_flags="-pthread,-lpthread -pthread"
23281fi
23282
23283
23284# The presence of a feature test macro requesting re-entrant function
23285# definitions is, on some systems, a strong hint that pthreads support is
23286# correctly enabled
23287
23288case $host_os in
23289        darwin* | hpux* | linux* | osf* | solaris*)
23290        ax_pthread_check_macro="_REENTRANT"
23291        ;;
23292
23293        aix*)
23294        ax_pthread_check_macro="_THREAD_SAFE"
23295        ;;
23296
23297        *)
23298        ax_pthread_check_macro="--"
23299        ;;
23300esac
23301if test "x$ax_pthread_check_macro" = "x--"
23302then :
23303  ax_pthread_check_cond=0
23304else $as_nop
23305  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
23306fi
23307
23308
23309if test "x$ax_pthread_ok" = "xno"; then
23310for ax_pthread_try_flag in $ax_pthread_flags; do
23311
23312        case $ax_pthread_try_flag in
23313                none)
23314                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
23315printf %s "checking whether pthreads work without any flags... " >&6; }
23316                ;;
23317
23318                *,*)
23319                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
23320                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
23321                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
23322printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
23323                ;;
23324
23325                -*)
23326                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
23327printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
23328                PTHREAD_CFLAGS="$ax_pthread_try_flag"
23329                ;;
23330
23331                pthread-config)
23332                # Extract the first word of "pthread-config", so it can be a program name with args.
23333set dummy pthread-config; ac_word=$2
23334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23335printf %s "checking for $ac_word... " >&6; }
23336if test ${ac_cv_prog_ax_pthread_config+y}
23337then :
23338  printf %s "(cached) " >&6
23339else $as_nop
23340  if test -n "$ax_pthread_config"; then
23341  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
23342else
23343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23344for as_dir in $PATH
23345do
23346  IFS=$as_save_IFS
23347  case $as_dir in #(((
23348    '') as_dir=./ ;;
23349    */) ;;
23350    *) as_dir=$as_dir/ ;;
23351  esac
23352    for ac_exec_ext in '' $ac_executable_extensions; do
23353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23354    ac_cv_prog_ax_pthread_config="yes"
23355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23356    break 2
23357  fi
23358done
23359  done
23360IFS=$as_save_IFS
23361
23362  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
23363fi
23364fi
23365ax_pthread_config=$ac_cv_prog_ax_pthread_config
23366if test -n "$ax_pthread_config"; then
23367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
23368printf "%s\n" "$ax_pthread_config" >&6; }
23369else
23370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371printf "%s\n" "no" >&6; }
23372fi
23373
23374
23375                if test "x$ax_pthread_config" = "xno"
23376then :
23377  continue
23378fi
23379                PTHREAD_CFLAGS="`pthread-config --cflags`"
23380                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23381                ;;
23382
23383                *)
23384                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
23385printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
23386                PTHREAD_LIBS="-l$ax_pthread_try_flag"
23387                ;;
23388        esac
23389
23390        ax_pthread_save_CFLAGS="$CFLAGS"
23391        ax_pthread_save_LIBS="$LIBS"
23392        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23393        LIBS="$PTHREAD_LIBS $LIBS"
23394
23395        # Check for various functions.  We must include pthread.h,
23396        # since some functions may be macros.  (On the Sequent, we
23397        # need a special flag -Kthread to make this header compile.)
23398        # We check for pthread_join because it is in -lpthread on IRIX
23399        # while pthread_create is in libc.  We check for pthread_attr_init
23400        # due to DEC craziness with -lpthreads.  We check for
23401        # pthread_cleanup_push because it is one of the few pthread
23402        # functions on Solaris that doesn't have a non-functional libc stub.
23403        # We try pthread_create on general principles.
23404
23405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23406/* end confdefs.h.  */
23407#include <pthread.h>
23408#                       if $ax_pthread_check_cond
23409#                        error "$ax_pthread_check_macro must be defined"
23410#                       endif
23411                        static void *some_global = NULL;
23412                        static void routine(void *a)
23413                          {
23414                             /* To avoid any unused-parameter or
23415                                unused-but-set-parameter warning.  */
23416                             some_global = a;
23417                          }
23418                        static void *start_routine(void *a) { return a; }
23419int
23420main (void)
23421{
23422pthread_t th; pthread_attr_t attr;
23423                        pthread_create(&th, 0, start_routine, 0);
23424                        pthread_join(th, 0);
23425                        pthread_attr_init(&attr);
23426                        pthread_cleanup_push(routine, 0);
23427                        pthread_cleanup_pop(0) /* ; */
23428  ;
23429  return 0;
23430}
23431_ACEOF
23432if ac_fn_c_try_link "$LINENO"
23433then :
23434  ax_pthread_ok=yes
23435fi
23436rm -f core conftest.err conftest.$ac_objext conftest.beam \
23437    conftest$ac_exeext conftest.$ac_ext
23438
23439        CFLAGS="$ax_pthread_save_CFLAGS"
23440        LIBS="$ax_pthread_save_LIBS"
23441
23442        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23443printf "%s\n" "$ax_pthread_ok" >&6; }
23444        if test "x$ax_pthread_ok" = "xyes"
23445then :
23446  break
23447fi
23448
23449        PTHREAD_LIBS=""
23450        PTHREAD_CFLAGS=""
23451done
23452fi
23453
23454
23455# Clang needs special handling, because older versions handle the -pthread
23456# option in a rather... idiosyncratic way
23457
23458if test "x$ax_pthread_clang" = "xyes"; then
23459
23460        # Clang takes -pthread; it has never supported any other flag
23461
23462        # (Note 1: This will need to be revisited if a system that Clang
23463        # supports has POSIX threads in a separate library.  This tends not
23464        # to be the way of modern systems, but it's conceivable.)
23465
23466        # (Note 2: On some systems, notably Darwin, -pthread is not needed
23467        # to get POSIX threads support; the API is always present and
23468        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
23469        # -pthread does define _REENTRANT, and while the Darwin headers
23470        # ignore this macro, third-party headers might not.)
23471
23472        # However, older versions of Clang make a point of warning the user
23473        # that, in an invocation where only linking and no compilation is
23474        # taking place, the -pthread option has no effect ("argument unused
23475        # during compilation").  They expect -pthread to be passed in only
23476        # when source code is being compiled.
23477        #
23478        # Problem is, this is at odds with the way Automake and most other
23479        # C build frameworks function, which is that the same flags used in
23480        # compilation (CFLAGS) are also used in linking.  Many systems
23481        # supported by AX_PTHREAD require exactly this for POSIX threads
23482        # support, and in fact it is often not straightforward to specify a
23483        # flag that is used only in the compilation phase and not in
23484        # linking.  Such a scenario is extremely rare in practice.
23485        #
23486        # Even though use of the -pthread flag in linking would only print
23487        # a warning, this can be a nuisance for well-run software projects
23488        # that build with -Werror.  So if the active version of Clang has
23489        # this misfeature, we search for an option to squash it.
23490
23491        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
23492printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
23493if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
23494then :
23495  printf %s "(cached) " >&6
23496else $as_nop
23497  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
23498             # Create an alternate version of $ac_link that compiles and
23499             # links in two steps (.c -> .o, .o -> exe) instead of one
23500             # (.c -> exe), because the warning occurs only in the second
23501             # step
23502             ax_pthread_save_ac_link="$ac_link"
23503             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
23504             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
23505             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
23506             ax_pthread_save_CFLAGS="$CFLAGS"
23507             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
23508                if test "x$ax_pthread_try" = "xunknown"
23509then :
23510  break
23511fi
23512                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
23513                ac_link="$ax_pthread_save_ac_link"
23514                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515/* end confdefs.h.  */
23516int main(void){return 0;}
23517_ACEOF
23518if ac_fn_c_try_link "$LINENO"
23519then :
23520  ac_link="$ax_pthread_2step_ac_link"
23521                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522/* end confdefs.h.  */
23523int main(void){return 0;}
23524_ACEOF
23525if ac_fn_c_try_link "$LINENO"
23526then :
23527  break
23528fi
23529rm -f core conftest.err conftest.$ac_objext conftest.beam \
23530    conftest$ac_exeext conftest.$ac_ext
23531
23532fi
23533rm -f core conftest.err conftest.$ac_objext conftest.beam \
23534    conftest$ac_exeext conftest.$ac_ext
23535             done
23536             ac_link="$ax_pthread_save_ac_link"
23537             CFLAGS="$ax_pthread_save_CFLAGS"
23538             if test "x$ax_pthread_try" = "x"
23539then :
23540  ax_pthread_try=no
23541fi
23542             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
23543
23544fi
23545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
23546printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
23547
23548        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
23549                no | unknown) ;;
23550                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
23551        esac
23552
23553fi # $ax_pthread_clang = yes
23554
23555
23556
23557# Various other checks:
23558if test "x$ax_pthread_ok" = "xyes"; then
23559        ax_pthread_save_CFLAGS="$CFLAGS"
23560        ax_pthread_save_LIBS="$LIBS"
23561        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23562        LIBS="$PTHREAD_LIBS $LIBS"
23563
23564        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23565        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
23566printf %s "checking for joinable pthread attribute... " >&6; }
23567if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
23568then :
23569  printf %s "(cached) " >&6
23570else $as_nop
23571  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
23572             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23573                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23574/* end confdefs.h.  */
23575#include <pthread.h>
23576int
23577main (void)
23578{
23579int attr = $ax_pthread_attr; return attr /* ; */
23580  ;
23581  return 0;
23582}
23583_ACEOF
23584if ac_fn_c_try_link "$LINENO"
23585then :
23586  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
23587fi
23588rm -f core conftest.err conftest.$ac_objext conftest.beam \
23589    conftest$ac_exeext conftest.$ac_ext
23590             done
23591
23592fi
23593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
23594printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
23595        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
23596               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
23597               test "x$ax_pthread_joinable_attr_defined" != "xyes"
23598then :
23599
23600printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
23601
23602               ax_pthread_joinable_attr_defined=yes
23603
23604fi
23605
23606        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
23607printf %s "checking whether more special flags are required for pthreads... " >&6; }
23608if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
23609then :
23610  printf %s "(cached) " >&6
23611else $as_nop
23612  ax_cv_PTHREAD_SPECIAL_FLAGS=no
23613             case $host_os in
23614             solaris*)
23615             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
23616             ;;
23617             esac
23618
23619fi
23620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
23621printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
23622        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
23623               test "x$ax_pthread_special_flags_added" != "xyes"
23624then :
23625  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
23626               ax_pthread_special_flags_added=yes
23627fi
23628
23629        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
23630printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
23631if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
23632then :
23633  printf %s "(cached) " >&6
23634else $as_nop
23635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636/* end confdefs.h.  */
23637#include <pthread.h>
23638int
23639main (void)
23640{
23641int i = PTHREAD_PRIO_INHERIT;
23642                                               return i;
23643  ;
23644  return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_link "$LINENO"
23648then :
23649  ax_cv_PTHREAD_PRIO_INHERIT=yes
23650else $as_nop
23651  ax_cv_PTHREAD_PRIO_INHERIT=no
23652fi
23653rm -f core conftest.err conftest.$ac_objext conftest.beam \
23654    conftest$ac_exeext conftest.$ac_ext
23655
23656fi
23657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
23658printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
23659        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
23660               test "x$ax_pthread_prio_inherit_defined" != "xyes"
23661then :
23662
23663printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
23664
23665               ax_pthread_prio_inherit_defined=yes
23666
23667fi
23668
23669        CFLAGS="$ax_pthread_save_CFLAGS"
23670        LIBS="$ax_pthread_save_LIBS"
23671
23672        # More AIX lossage: compile with *_r variant
23673        if test "x$GCC" != "xyes"; then
23674            case $host_os in
23675                aix*)
23676                case "x/$CC" in #(
23677  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
23678    #handle absolute path differently from PATH based program lookup
23679                     case "x$CC" in #(
23680  x/*) :
23681
23682			   if as_fn_executable_p ${CC}_r
23683then :
23684  PTHREAD_CC="${CC}_r"
23685fi
23686			   if test "x${CXX}" != "x"
23687then :
23688  if as_fn_executable_p ${CXX}_r
23689then :
23690  PTHREAD_CXX="${CXX}_r"
23691fi
23692fi
23693			  ;; #(
23694  *) :
23695
23696			   for ac_prog in ${CC}_r
23697do
23698  # Extract the first word of "$ac_prog", so it can be a program name with args.
23699set dummy $ac_prog; ac_word=$2
23700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23701printf %s "checking for $ac_word... " >&6; }
23702if test ${ac_cv_prog_PTHREAD_CC+y}
23703then :
23704  printf %s "(cached) " >&6
23705else $as_nop
23706  if test -n "$PTHREAD_CC"; then
23707  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23708else
23709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23710for as_dir in $PATH
23711do
23712  IFS=$as_save_IFS
23713  case $as_dir in #(((
23714    '') as_dir=./ ;;
23715    */) ;;
23716    *) as_dir=$as_dir/ ;;
23717  esac
23718    for ac_exec_ext in '' $ac_executable_extensions; do
23719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23720    ac_cv_prog_PTHREAD_CC="$ac_prog"
23721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23722    break 2
23723  fi
23724done
23725  done
23726IFS=$as_save_IFS
23727
23728fi
23729fi
23730PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23731if test -n "$PTHREAD_CC"; then
23732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
23733printf "%s\n" "$PTHREAD_CC" >&6; }
23734else
23735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23736printf "%s\n" "no" >&6; }
23737fi
23738
23739
23740  test -n "$PTHREAD_CC" && break
23741done
23742test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
23743
23744			   if test "x${CXX}" != "x"
23745then :
23746  for ac_prog in ${CXX}_r
23747do
23748  # Extract the first word of "$ac_prog", so it can be a program name with args.
23749set dummy $ac_prog; ac_word=$2
23750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23751printf %s "checking for $ac_word... " >&6; }
23752if test ${ac_cv_prog_PTHREAD_CXX+y}
23753then :
23754  printf %s "(cached) " >&6
23755else $as_nop
23756  if test -n "$PTHREAD_CXX"; then
23757  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
23758else
23759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23760for as_dir in $PATH
23761do
23762  IFS=$as_save_IFS
23763  case $as_dir in #(((
23764    '') as_dir=./ ;;
23765    */) ;;
23766    *) as_dir=$as_dir/ ;;
23767  esac
23768    for ac_exec_ext in '' $ac_executable_extensions; do
23769  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23770    ac_cv_prog_PTHREAD_CXX="$ac_prog"
23771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23772    break 2
23773  fi
23774done
23775  done
23776IFS=$as_save_IFS
23777
23778fi
23779fi
23780PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
23781if test -n "$PTHREAD_CXX"; then
23782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
23783printf "%s\n" "$PTHREAD_CXX" >&6; }
23784else
23785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23786printf "%s\n" "no" >&6; }
23787fi
23788
23789
23790  test -n "$PTHREAD_CXX" && break
23791done
23792test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
23793
23794fi
23795
23796                      ;;
23797esac
23798                     ;; #(
23799  *) :
23800     ;;
23801esac
23802                ;;
23803            esac
23804        fi
23805fi
23806
23807test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
23808test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
23809
23810
23811
23812
23813
23814
23815# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23816if test "x$ax_pthread_ok" = "xyes"; then
23817
23818        :
23819else
23820        ax_pthread_ok=no
23821
23822    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: threads requested but not supported" >&5
23823printf "%s\n" "$as_me: WARNING: threads requested but not supported" >&2;}
23824    CARES_THREADS=no
23825
23826fi
23827ac_ext=c
23828ac_cpp='$CPP $CPPFLAGS'
23829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23831ac_compiler_gnu=$ac_cv_c_compiler_gnu
23832
23833
23834
23835  if test "${CARES_THREADS}" = "yes" ; then
23836    ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23837if test "x$ac_cv_header_pthread_h" = xyes
23838then :
23839  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
23840
23841fi
23842ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
23843if test "x$ac_cv_header_pthread_np_h" = xyes
23844then :
23845  printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
23846
23847fi
23848
23849    LIBS="$PTHREAD_LIBS $LIBS"
23850    AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
23851    CC="$PTHREAD_CC"
23852    CXX="$PTHREAD_CXX"
23853  fi
23854fi
23855
23856if test "${CARES_THREADS}" = "yes" ; then
23857
23858printf "%s\n" "#define CARES_THREADS  1 " >>confdefs.h
23859
23860fi
23861
23862CARES_PRIVATE_LIBS="$LIBS"
23863
23864
23865BUILD_SUBDIRS="include src docs"
23866
23867
23868
23869if test "x$build_tests" != "xno" -a "x$HAVE_CXX14" = "0" ; then
23870  if test "x$build_tests" = "xmaybe" ; then
23871    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot build tests without a CXX14 compiler" >&5
23872printf "%s\n" "$as_me: WARNING: cannot build tests without a CXX14 compiler" >&2;}
23873    build_tests=no
23874  else
23875    as_fn_error $? "*** Building tests requires a CXX14 compiler" "$LINENO" 5
23876  fi
23877fi
23878if test "x$build_tests" != "xno" -a "x$cross_compiling" = "xyes" ; then
23879  if test "x$build_tests" = "xmaybe" ; then
23880    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot build tests when cross compiling" >&5
23881printf "%s\n" "$as_me: WARNING: cannot build tests when cross compiling" >&2;}
23882    build_tests=no
23883  else
23884    as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
23885  fi
23886fi
23887if test "x$build_tests" != "xno" ; then
23888
23889
23890
23891
23892
23893
23894
23895if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23896	if test -n "$ac_tool_prefix"; then
23897  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23898set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23900printf %s "checking for $ac_word... " >&6; }
23901if test ${ac_cv_path_PKG_CONFIG+y}
23902then :
23903  printf %s "(cached) " >&6
23904else $as_nop
23905  case $PKG_CONFIG in
23906  [\\/]* | ?:[\\/]*)
23907  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23908  ;;
23909  *)
23910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23911for as_dir in $PATH
23912do
23913  IFS=$as_save_IFS
23914  case $as_dir in #(((
23915    '') as_dir=./ ;;
23916    */) ;;
23917    *) as_dir=$as_dir/ ;;
23918  esac
23919    for ac_exec_ext in '' $ac_executable_extensions; do
23920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23921    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23923    break 2
23924  fi
23925done
23926  done
23927IFS=$as_save_IFS
23928
23929  ;;
23930esac
23931fi
23932PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23933if test -n "$PKG_CONFIG"; then
23934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23935printf "%s\n" "$PKG_CONFIG" >&6; }
23936else
23937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23938printf "%s\n" "no" >&6; }
23939fi
23940
23941
23942fi
23943if test -z "$ac_cv_path_PKG_CONFIG"; then
23944  ac_pt_PKG_CONFIG=$PKG_CONFIG
23945  # Extract the first word of "pkg-config", so it can be a program name with args.
23946set dummy pkg-config; ac_word=$2
23947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23948printf %s "checking for $ac_word... " >&6; }
23949if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23950then :
23951  printf %s "(cached) " >&6
23952else $as_nop
23953  case $ac_pt_PKG_CONFIG in
23954  [\\/]* | ?:[\\/]*)
23955  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23956  ;;
23957  *)
23958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23959for as_dir in $PATH
23960do
23961  IFS=$as_save_IFS
23962  case $as_dir in #(((
23963    '') as_dir=./ ;;
23964    */) ;;
23965    *) as_dir=$as_dir/ ;;
23966  esac
23967    for ac_exec_ext in '' $ac_executable_extensions; do
23968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23969    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23971    break 2
23972  fi
23973done
23974  done
23975IFS=$as_save_IFS
23976
23977  ;;
23978esac
23979fi
23980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23981if test -n "$ac_pt_PKG_CONFIG"; then
23982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23983printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23984else
23985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23986printf "%s\n" "no" >&6; }
23987fi
23988
23989  if test "x$ac_pt_PKG_CONFIG" = x; then
23990    PKG_CONFIG=""
23991  else
23992    case $cross_compiling:$ac_tool_warned in
23993yes:)
23994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23996ac_tool_warned=yes ;;
23997esac
23998    PKG_CONFIG=$ac_pt_PKG_CONFIG
23999  fi
24000else
24001  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24002fi
24003
24004fi
24005if test -n "$PKG_CONFIG"; then
24006	_pkg_min_version=0.9.0
24007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24008printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24009	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24011printf "%s\n" "yes" >&6; }
24012	else
24013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24014printf "%s\n" "no" >&6; }
24015		PKG_CONFIG=""
24016	fi
24017fi
24018
24019pkg_failed=no
24020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmock" >&5
24021printf %s "checking for gmock... " >&6; }
24022
24023if test -n "$GMOCK_CFLAGS"; then
24024    pkg_cv_GMOCK_CFLAGS="$GMOCK_CFLAGS"
24025 elif test -n "$PKG_CONFIG"; then
24026    if test -n "$PKG_CONFIG" && \
24027    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock\""; } >&5
24028  ($PKG_CONFIG --exists --print-errors "gmock") 2>&5
24029  ac_status=$?
24030  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24031  test $ac_status = 0; }; then
24032  pkg_cv_GMOCK_CFLAGS=`$PKG_CONFIG --cflags "gmock" 2>/dev/null`
24033		      test "x$?" != "x0" && pkg_failed=yes
24034else
24035  pkg_failed=yes
24036fi
24037 else
24038    pkg_failed=untried
24039fi
24040if test -n "$GMOCK_LIBS"; then
24041    pkg_cv_GMOCK_LIBS="$GMOCK_LIBS"
24042 elif test -n "$PKG_CONFIG"; then
24043    if test -n "$PKG_CONFIG" && \
24044    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock\""; } >&5
24045  ($PKG_CONFIG --exists --print-errors "gmock") 2>&5
24046  ac_status=$?
24047  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048  test $ac_status = 0; }; then
24049  pkg_cv_GMOCK_LIBS=`$PKG_CONFIG --libs "gmock" 2>/dev/null`
24050		      test "x$?" != "x0" && pkg_failed=yes
24051else
24052  pkg_failed=yes
24053fi
24054 else
24055    pkg_failed=untried
24056fi
24057
24058
24059
24060if test $pkg_failed = yes; then
24061        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24062printf "%s\n" "no" >&6; }
24063
24064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24065        _pkg_short_errors_supported=yes
24066else
24067        _pkg_short_errors_supported=no
24068fi
24069        if test $_pkg_short_errors_supported = yes; then
24070	        GMOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmock" 2>&1`
24071        else
24072	        GMOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmock" 2>&1`
24073        fi
24074	# Put the nasty error message in config.log where it belongs
24075	echo "$GMOCK_PKG_ERRORS" >&5
24076
24077	 have_gmock=no
24078elif test $pkg_failed = untried; then
24079        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24080printf "%s\n" "no" >&6; }
24081	 have_gmock=no
24082else
24083	GMOCK_CFLAGS=$pkg_cv_GMOCK_CFLAGS
24084	GMOCK_LIBS=$pkg_cv_GMOCK_LIBS
24085        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24086printf "%s\n" "yes" >&6; }
24087	 have_gmock=yes
24088fi
24089  if test "x$have_gmock" = "xno" ; then
24090    if test "x$build_tests" = "xmaybe" ; then
24091      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gmock could not be found, not building tests" >&5
24092printf "%s\n" "$as_me: WARNING: gmock could not be found, not building tests" >&2;}
24093      build_tests=no
24094    else
24095      as_fn_error $? "tests require gmock" "$LINENO" 5
24096    fi
24097  fi
24098fi
24099if test "x$build_tests" != "xno" ; then
24100  build_tests=yes
24101
24102    ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
24103  ac_ext=cpp
24104ac_cpp='$CXXCPP $CPPFLAGS'
24105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24108  ac_success=no
24109
24110
24111
24112
24113
24114    if test x$ac_success = xno; then
24115                    for alternative in ${ax_cxx_compile_alternatives}; do
24116      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
24117        if test x"$switch" = xMSVC; then
24118                                        switch=-std:c++${alternative}
24119          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_${switch}_MSVC" | $as_tr_sh`
24120        else
24121          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
24122        fi
24123        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
24124printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
24125if eval test \${$cachevar+y}
24126then :
24127  printf %s "(cached) " >&6
24128else $as_nop
24129  ac_save_CXX="$CXX"
24130           CXX="$CXX $switch"
24131           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24132/* end confdefs.h.  */
24133
24134
24135// If the compiler admits that it is not ready for C++11, why torture it?
24136// Hopefully, this will speed up the test.
24137
24138#ifndef __cplusplus
24139
24140#error "This is not a C++ compiler"
24141
24142// MSVC always sets __cplusplus to 199711L in older versions; newer versions
24143// only set it correctly if /Zc:__cplusplus is specified as well as a
24144// /std:c++NN switch:
24145// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
24146#elif __cplusplus < 201103L && !defined _MSC_VER
24147
24148#error "This is not a C++11 compiler"
24149
24150#else
24151
24152namespace cxx11
24153{
24154
24155  namespace test_static_assert
24156  {
24157
24158    template <typename T>
24159    struct check
24160    {
24161      static_assert(sizeof(int) <= sizeof(T), "not big enough");
24162    };
24163
24164  }
24165
24166  namespace test_final_override
24167  {
24168
24169    struct Base
24170    {
24171      virtual ~Base() {}
24172      virtual void f() {}
24173    };
24174
24175    struct Derived : public Base
24176    {
24177      virtual ~Derived() override {}
24178      virtual void f() override {}
24179    };
24180
24181  }
24182
24183  namespace test_double_right_angle_brackets
24184  {
24185
24186    template < typename T >
24187    struct check {};
24188
24189    typedef check<void> single_type;
24190    typedef check<check<void>> double_type;
24191    typedef check<check<check<void>>> triple_type;
24192    typedef check<check<check<check<void>>>> quadruple_type;
24193
24194  }
24195
24196  namespace test_decltype
24197  {
24198
24199    int
24200    f()
24201    {
24202      int a = 1;
24203      decltype(a) b = 2;
24204      return a + b;
24205    }
24206
24207  }
24208
24209  namespace test_type_deduction
24210  {
24211
24212    template < typename T1, typename T2 >
24213    struct is_same
24214    {
24215      static const bool value = false;
24216    };
24217
24218    template < typename T >
24219    struct is_same<T, T>
24220    {
24221      static const bool value = true;
24222    };
24223
24224    template < typename T1, typename T2 >
24225    auto
24226    add(T1 a1, T2 a2) -> decltype(a1 + a2)
24227    {
24228      return a1 + a2;
24229    }
24230
24231    int
24232    test(const int c, volatile int v)
24233    {
24234      static_assert(is_same<int, decltype(0)>::value == true, "");
24235      static_assert(is_same<int, decltype(c)>::value == false, "");
24236      static_assert(is_same<int, decltype(v)>::value == false, "");
24237      auto ac = c;
24238      auto av = v;
24239      auto sumi = ac + av + 'x';
24240      auto sumf = ac + av + 1.0;
24241      static_assert(is_same<int, decltype(ac)>::value == true, "");
24242      static_assert(is_same<int, decltype(av)>::value == true, "");
24243      static_assert(is_same<int, decltype(sumi)>::value == true, "");
24244      static_assert(is_same<int, decltype(sumf)>::value == false, "");
24245      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
24246      return (sumf > 0.0) ? sumi : add(c, v);
24247    }
24248
24249  }
24250
24251  namespace test_noexcept
24252  {
24253
24254    int f() { return 0; }
24255    int g() noexcept { return 0; }
24256
24257    static_assert(noexcept(f()) == false, "");
24258    static_assert(noexcept(g()) == true, "");
24259
24260  }
24261
24262  namespace test_constexpr
24263  {
24264
24265    template < typename CharT >
24266    unsigned long constexpr
24267    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
24268    {
24269      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
24270    }
24271
24272    template < typename CharT >
24273    unsigned long constexpr
24274    strlen_c(const CharT *const s) noexcept
24275    {
24276      return strlen_c_r(s, 0UL);
24277    }
24278
24279    static_assert(strlen_c("") == 0UL, "");
24280    static_assert(strlen_c("1") == 1UL, "");
24281    static_assert(strlen_c("example") == 7UL, "");
24282    static_assert(strlen_c("another\0example") == 7UL, "");
24283
24284  }
24285
24286  namespace test_rvalue_references
24287  {
24288
24289    template < int N >
24290    struct answer
24291    {
24292      static constexpr int value = N;
24293    };
24294
24295    answer<1> f(int&)       { return answer<1>(); }
24296    answer<2> f(const int&) { return answer<2>(); }
24297    answer<3> f(int&&)      { return answer<3>(); }
24298
24299    void
24300    test()
24301    {
24302      int i = 0;
24303      const int c = 0;
24304      static_assert(decltype(f(i))::value == 1, "");
24305      static_assert(decltype(f(c))::value == 2, "");
24306      static_assert(decltype(f(0))::value == 3, "");
24307    }
24308
24309  }
24310
24311  namespace test_uniform_initialization
24312  {
24313
24314    struct test
24315    {
24316      static const int zero {};
24317      static const int one {1};
24318    };
24319
24320    static_assert(test::zero == 0, "");
24321    static_assert(test::one == 1, "");
24322
24323  }
24324
24325  namespace test_lambdas
24326  {
24327
24328    void
24329    test1()
24330    {
24331      auto lambda1 = [](){};
24332      auto lambda2 = lambda1;
24333      lambda1();
24334      lambda2();
24335    }
24336
24337    int
24338    test2()
24339    {
24340      auto a = [](int i, int j){ return i + j; }(1, 2);
24341      auto b = []() -> int { return '0'; }();
24342      auto c = [=](){ return a + b; }();
24343      auto d = [&](){ return c; }();
24344      auto e = [a, &b](int x) mutable {
24345        const auto identity = [](int y){ return y; };
24346        for (auto i = 0; i < a; ++i)
24347          a += b--;
24348        return x + identity(a + b);
24349      }(0);
24350      return a + b + c + d + e;
24351    }
24352
24353    int
24354    test3()
24355    {
24356      const auto nullary = [](){ return 0; };
24357      const auto unary = [](int x){ return x; };
24358      using nullary_t = decltype(nullary);
24359      using unary_t = decltype(unary);
24360      const auto higher1st = [](nullary_t f){ return f(); };
24361      const auto higher2nd = [unary](nullary_t f1){
24362        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
24363      };
24364      return higher1st(nullary) + higher2nd(nullary)(unary);
24365    }
24366
24367  }
24368
24369  namespace test_variadic_templates
24370  {
24371
24372    template <int...>
24373    struct sum;
24374
24375    template <int N0, int... N1toN>
24376    struct sum<N0, N1toN...>
24377    {
24378      static constexpr auto value = N0 + sum<N1toN...>::value;
24379    };
24380
24381    template <>
24382    struct sum<>
24383    {
24384      static constexpr auto value = 0;
24385    };
24386
24387    static_assert(sum<>::value == 0, "");
24388    static_assert(sum<1>::value == 1, "");
24389    static_assert(sum<23>::value == 23, "");
24390    static_assert(sum<1, 2>::value == 3, "");
24391    static_assert(sum<5, 5, 11>::value == 21, "");
24392    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
24393
24394  }
24395
24396  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
24397  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
24398  // because of this.
24399  namespace test_template_alias_sfinae
24400  {
24401
24402    struct foo {};
24403
24404    template<typename T>
24405    using member = typename T::member_type;
24406
24407    template<typename T>
24408    void func(...) {}
24409
24410    template<typename T>
24411    void func(member<T>*) {}
24412
24413    void test();
24414
24415    void test() { func<foo>(0); }
24416
24417  }
24418
24419}  // namespace cxx11
24420
24421#endif  // __cplusplus >= 201103L
24422
24423
24424
24425
24426// If the compiler admits that it is not ready for C++14, why torture it?
24427// Hopefully, this will speed up the test.
24428
24429#ifndef __cplusplus
24430
24431#error "This is not a C++ compiler"
24432
24433#elif __cplusplus < 201402L && !defined _MSC_VER
24434
24435#error "This is not a C++14 compiler"
24436
24437#else
24438
24439namespace cxx14
24440{
24441
24442  namespace test_polymorphic_lambdas
24443  {
24444
24445    int
24446    test()
24447    {
24448      const auto lambda = [](auto&&... args){
24449        const auto istiny = [](auto x){
24450          return (sizeof(x) == 1UL) ? 1 : 0;
24451        };
24452        const int aretiny[] = { istiny(args)... };
24453        return aretiny[0];
24454      };
24455      return lambda(1, 1L, 1.0f, '1');
24456    }
24457
24458  }
24459
24460  namespace test_binary_literals
24461  {
24462
24463    constexpr auto ivii = 0b0000000000101010;
24464    static_assert(ivii == 42, "wrong value");
24465
24466  }
24467
24468  namespace test_generalized_constexpr
24469  {
24470
24471    template < typename CharT >
24472    constexpr unsigned long
24473    strlen_c(const CharT *const s) noexcept
24474    {
24475      auto length = 0UL;
24476      for (auto p = s; *p; ++p)
24477        ++length;
24478      return length;
24479    }
24480
24481    static_assert(strlen_c("") == 0UL, "");
24482    static_assert(strlen_c("x") == 1UL, "");
24483    static_assert(strlen_c("test") == 4UL, "");
24484    static_assert(strlen_c("another\0test") == 7UL, "");
24485
24486  }
24487
24488  namespace test_lambda_init_capture
24489  {
24490
24491    int
24492    test()
24493    {
24494      auto x = 0;
24495      const auto lambda1 = [a = x](int b){ return a + b; };
24496      const auto lambda2 = [a = lambda1(x)](){ return a; };
24497      return lambda2();
24498    }
24499
24500  }
24501
24502  namespace test_digit_separators
24503  {
24504
24505    constexpr auto ten_million = 100'000'000;
24506    static_assert(ten_million == 100000000, "");
24507
24508  }
24509
24510  namespace test_return_type_deduction
24511  {
24512
24513    auto f(int& x) { return x; }
24514    decltype(auto) g(int& x) { return x; }
24515
24516    template < typename T1, typename T2 >
24517    struct is_same
24518    {
24519      static constexpr auto value = false;
24520    };
24521
24522    template < typename T >
24523    struct is_same<T, T>
24524    {
24525      static constexpr auto value = true;
24526    };
24527
24528    int
24529    test()
24530    {
24531      auto x = 0;
24532      static_assert(is_same<int, decltype(f(x))>::value, "");
24533      static_assert(is_same<int&, decltype(g(x))>::value, "");
24534      return x;
24535    }
24536
24537  }
24538
24539}  // namespace cxx14
24540
24541#endif  // __cplusplus >= 201402L
24542
24543
24544
24545_ACEOF
24546if ac_fn_cxx_try_compile "$LINENO"
24547then :
24548  eval $cachevar=yes
24549else $as_nop
24550  eval $cachevar=no
24551fi
24552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24553           CXX="$ac_save_CXX"
24554fi
24555eval ac_res=\$$cachevar
24556	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24557printf "%s\n" "$ac_res" >&6; }
24558        if eval test x\$$cachevar = xyes; then
24559          CXX="$CXX $switch"
24560          if test -n "$CXXCPP" ; then
24561            CXXCPP="$CXXCPP $switch"
24562          fi
24563          ac_success=yes
24564          break
24565        fi
24566      done
24567      if test x$ac_success = xyes; then
24568        break
24569      fi
24570    done
24571  fi
24572  ac_ext=c
24573ac_cpp='$CPP $CPPFLAGS'
24574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24576ac_compiler_gnu=$ac_cv_c_compiler_gnu
24577
24578  if test x$ax_cxx_compile_cxx14_required = xtrue; then
24579    if test x$ac_success = xno; then
24580      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
24581    fi
24582  fi
24583  if test x$ac_success = xno; then
24584    HAVE_CXX14=0
24585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
24586printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
24587  else
24588    HAVE_CXX14=1
24589
24590printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
24591
24592  fi
24593
24594
24595  if test "$ac_cv_native_windows" != "yes" ; then
24596
24597
24598
24599
24600ac_ext=c
24601ac_cpp='$CPP $CPPFLAGS'
24602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24604ac_compiler_gnu=$ac_cv_c_compiler_gnu
24605
24606ax_pthread_ok=no
24607
24608# We used to check for pthread.h first, but this fails if pthread.h
24609# requires special compiler flags (e.g. on Tru64 or Sequent).
24610# It gets checked for in the link test anyway.
24611
24612# First of all, check if the user has set any of the PTHREAD_LIBS,
24613# etcetera environment variables, and if threads linking works using
24614# them:
24615if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
24616        ax_pthread_save_CC="$CC"
24617        ax_pthread_save_CFLAGS="$CFLAGS"
24618        ax_pthread_save_LIBS="$LIBS"
24619        if test "x$PTHREAD_CC" != "x"
24620then :
24621  CC="$PTHREAD_CC"
24622fi
24623        if test "x$PTHREAD_CXX" != "x"
24624then :
24625  CXX="$PTHREAD_CXX"
24626fi
24627        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24628        LIBS="$PTHREAD_LIBS $LIBS"
24629        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
24630printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
24631        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632/* end confdefs.h.  */
24633
24634/* Override any GCC internal prototype to avoid an error.
24635   Use char because int might match the return type of a GCC
24636   builtin and then its argument prototype would still apply.  */
24637char pthread_join ();
24638int
24639main (void)
24640{
24641return pthread_join ();
24642  ;
24643  return 0;
24644}
24645_ACEOF
24646if ac_fn_c_try_link "$LINENO"
24647then :
24648  ax_pthread_ok=yes
24649fi
24650rm -f core conftest.err conftest.$ac_objext conftest.beam \
24651    conftest$ac_exeext conftest.$ac_ext
24652        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24653printf "%s\n" "$ax_pthread_ok" >&6; }
24654        if test "x$ax_pthread_ok" = "xno"; then
24655                PTHREAD_LIBS=""
24656                PTHREAD_CFLAGS=""
24657        fi
24658        CC="$ax_pthread_save_CC"
24659        CFLAGS="$ax_pthread_save_CFLAGS"
24660        LIBS="$ax_pthread_save_LIBS"
24661fi
24662
24663# We must check for the threads library under a number of different
24664# names; the ordering is very important because some systems
24665# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24666# libraries is broken (non-POSIX).
24667
24668# Create a list of thread flags to try. Items with a "," contain both
24669# C compiler flags (before ",") and linker flags (after ","). Other items
24670# starting with a "-" are C compiler flags, and remaining items are
24671# library names, except for "none" which indicates that we try without
24672# any flags at all, and "pthread-config" which is a program returning
24673# the flags for the Pth emulation library.
24674
24675ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24676
24677# The ordering *is* (sometimes) important.  Some notes on the
24678# individual items follow:
24679
24680# pthreads: AIX (must check this before -lpthread)
24681# none: in case threads are in libc; should be tried before -Kthread and
24682#       other compiler flags to prevent continual compiler warnings
24683# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24684# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
24685#           (Note: HP C rejects this with "bad form for `-t' option")
24686# -pthreads: Solaris/gcc (Note: HP C also rejects)
24687# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24688#      doesn't hurt to check since this sometimes defines pthreads and
24689#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
24690#      is present but should not be used directly; and before -mthreads,
24691#      because the compiler interprets this as "-mt" + "-hreads")
24692# -mthreads: Mingw32/gcc, Lynx/gcc
24693# pthread: Linux, etcetera
24694# --thread-safe: KAI C++
24695# pthread-config: use pthread-config program (for GNU Pth library)
24696
24697case $host_os in
24698
24699        freebsd*)
24700
24701        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24702        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24703
24704        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
24705        ;;
24706
24707        hpux*)
24708
24709        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
24710        # multi-threading and also sets -lpthread."
24711
24712        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
24713        ;;
24714
24715        openedition*)
24716
24717        # IBM z/OS requires a feature-test macro to be defined in order to
24718        # enable POSIX threads at all, so give the user a hint if this is
24719        # not set. (We don't define these ourselves, as they can affect
24720        # other portions of the system API in unpredictable ways.)
24721
24722        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h.  */
24724
24725#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
24726             AX_PTHREAD_ZOS_MISSING
24727#            endif
24728
24729_ACEOF
24730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24731  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
24732then :
24733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
24734printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
24735fi
24736rm -rf conftest*
24737
24738        ;;
24739
24740        solaris*)
24741
24742        # On Solaris (at least, for some versions), libc contains stubbed
24743        # (non-functional) versions of the pthreads routines, so link-based
24744        # tests will erroneously succeed. (N.B.: The stubs are missing
24745        # pthread_cleanup_push, or rather a function called by this macro,
24746        # so we could check for that, but who knows whether they'll stub
24747        # that too in a future libc.)  So we'll check first for the
24748        # standard Solaris way of linking pthreads (-mt -lpthread).
24749
24750        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
24751        ;;
24752esac
24753
24754# Are we compiling with Clang?
24755
24756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
24757printf %s "checking whether $CC is Clang... " >&6; }
24758if test ${ax_cv_PTHREAD_CLANG+y}
24759then :
24760  printf %s "(cached) " >&6
24761else $as_nop
24762  ax_cv_PTHREAD_CLANG=no
24763     # Note that Autoconf sets GCC=yes for Clang as well as GCC
24764     if test "x$GCC" = "xyes"; then
24765        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766/* end confdefs.h.  */
24767/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
24768#            if defined(__clang__) && defined(__llvm__)
24769             AX_PTHREAD_CC_IS_CLANG
24770#            endif
24771
24772_ACEOF
24773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24774  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
24775then :
24776  ax_cv_PTHREAD_CLANG=yes
24777fi
24778rm -rf conftest*
24779
24780     fi
24781
24782fi
24783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
24784printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
24785ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
24786
24787
24788# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
24789
24790# Note that for GCC and Clang -pthread generally implies -lpthread,
24791# except when -nostdlib is passed.
24792# This is problematic using libtool to build C++ shared libraries with pthread:
24793# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
24794# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
24795# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
24796# To solve this, first try -pthread together with -lpthread for GCC
24797
24798if test "x$GCC" = "xyes"
24799then :
24800  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
24801fi
24802
24803# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
24804
24805if test "x$ax_pthread_clang" = "xyes"
24806then :
24807  ax_pthread_flags="-pthread,-lpthread -pthread"
24808fi
24809
24810
24811# The presence of a feature test macro requesting re-entrant function
24812# definitions is, on some systems, a strong hint that pthreads support is
24813# correctly enabled
24814
24815case $host_os in
24816        darwin* | hpux* | linux* | osf* | solaris*)
24817        ax_pthread_check_macro="_REENTRANT"
24818        ;;
24819
24820        aix*)
24821        ax_pthread_check_macro="_THREAD_SAFE"
24822        ;;
24823
24824        *)
24825        ax_pthread_check_macro="--"
24826        ;;
24827esac
24828if test "x$ax_pthread_check_macro" = "x--"
24829then :
24830  ax_pthread_check_cond=0
24831else $as_nop
24832  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
24833fi
24834
24835
24836if test "x$ax_pthread_ok" = "xno"; then
24837for ax_pthread_try_flag in $ax_pthread_flags; do
24838
24839        case $ax_pthread_try_flag in
24840                none)
24841                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24842printf %s "checking whether pthreads work without any flags... " >&6; }
24843                ;;
24844
24845                *,*)
24846                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
24847                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
24848                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
24849printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
24850                ;;
24851
24852                -*)
24853                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
24854printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
24855                PTHREAD_CFLAGS="$ax_pthread_try_flag"
24856                ;;
24857
24858                pthread-config)
24859                # Extract the first word of "pthread-config", so it can be a program name with args.
24860set dummy pthread-config; ac_word=$2
24861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24862printf %s "checking for $ac_word... " >&6; }
24863if test ${ac_cv_prog_ax_pthread_config+y}
24864then :
24865  printf %s "(cached) " >&6
24866else $as_nop
24867  if test -n "$ax_pthread_config"; then
24868  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
24869else
24870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24871for as_dir in $PATH
24872do
24873  IFS=$as_save_IFS
24874  case $as_dir in #(((
24875    '') as_dir=./ ;;
24876    */) ;;
24877    *) as_dir=$as_dir/ ;;
24878  esac
24879    for ac_exec_ext in '' $ac_executable_extensions; do
24880  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24881    ac_cv_prog_ax_pthread_config="yes"
24882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24883    break 2
24884  fi
24885done
24886  done
24887IFS=$as_save_IFS
24888
24889  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
24890fi
24891fi
24892ax_pthread_config=$ac_cv_prog_ax_pthread_config
24893if test -n "$ax_pthread_config"; then
24894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
24895printf "%s\n" "$ax_pthread_config" >&6; }
24896else
24897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24898printf "%s\n" "no" >&6; }
24899fi
24900
24901
24902                if test "x$ax_pthread_config" = "xno"
24903then :
24904  continue
24905fi
24906                PTHREAD_CFLAGS="`pthread-config --cflags`"
24907                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
24908                ;;
24909
24910                *)
24911                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
24912printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
24913                PTHREAD_LIBS="-l$ax_pthread_try_flag"
24914                ;;
24915        esac
24916
24917        ax_pthread_save_CFLAGS="$CFLAGS"
24918        ax_pthread_save_LIBS="$LIBS"
24919        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24920        LIBS="$PTHREAD_LIBS $LIBS"
24921
24922        # Check for various functions.  We must include pthread.h,
24923        # since some functions may be macros.  (On the Sequent, we
24924        # need a special flag -Kthread to make this header compile.)
24925        # We check for pthread_join because it is in -lpthread on IRIX
24926        # while pthread_create is in libc.  We check for pthread_attr_init
24927        # due to DEC craziness with -lpthreads.  We check for
24928        # pthread_cleanup_push because it is one of the few pthread
24929        # functions on Solaris that doesn't have a non-functional libc stub.
24930        # We try pthread_create on general principles.
24931
24932        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933/* end confdefs.h.  */
24934#include <pthread.h>
24935#                       if $ax_pthread_check_cond
24936#                        error "$ax_pthread_check_macro must be defined"
24937#                       endif
24938                        static void *some_global = NULL;
24939                        static void routine(void *a)
24940                          {
24941                             /* To avoid any unused-parameter or
24942                                unused-but-set-parameter warning.  */
24943                             some_global = a;
24944                          }
24945                        static void *start_routine(void *a) { return a; }
24946int
24947main (void)
24948{
24949pthread_t th; pthread_attr_t attr;
24950                        pthread_create(&th, 0, start_routine, 0);
24951                        pthread_join(th, 0);
24952                        pthread_attr_init(&attr);
24953                        pthread_cleanup_push(routine, 0);
24954                        pthread_cleanup_pop(0) /* ; */
24955  ;
24956  return 0;
24957}
24958_ACEOF
24959if ac_fn_c_try_link "$LINENO"
24960then :
24961  ax_pthread_ok=yes
24962fi
24963rm -f core conftest.err conftest.$ac_objext conftest.beam \
24964    conftest$ac_exeext conftest.$ac_ext
24965
24966        CFLAGS="$ax_pthread_save_CFLAGS"
24967        LIBS="$ax_pthread_save_LIBS"
24968
24969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24970printf "%s\n" "$ax_pthread_ok" >&6; }
24971        if test "x$ax_pthread_ok" = "xyes"
24972then :
24973  break
24974fi
24975
24976        PTHREAD_LIBS=""
24977        PTHREAD_CFLAGS=""
24978done
24979fi
24980
24981
24982# Clang needs special handling, because older versions handle the -pthread
24983# option in a rather... idiosyncratic way
24984
24985if test "x$ax_pthread_clang" = "xyes"; then
24986
24987        # Clang takes -pthread; it has never supported any other flag
24988
24989        # (Note 1: This will need to be revisited if a system that Clang
24990        # supports has POSIX threads in a separate library.  This tends not
24991        # to be the way of modern systems, but it's conceivable.)
24992
24993        # (Note 2: On some systems, notably Darwin, -pthread is not needed
24994        # to get POSIX threads support; the API is always present and
24995        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
24996        # -pthread does define _REENTRANT, and while the Darwin headers
24997        # ignore this macro, third-party headers might not.)
24998
24999        # However, older versions of Clang make a point of warning the user
25000        # that, in an invocation where only linking and no compilation is
25001        # taking place, the -pthread option has no effect ("argument unused
25002        # during compilation").  They expect -pthread to be passed in only
25003        # when source code is being compiled.
25004        #
25005        # Problem is, this is at odds with the way Automake and most other
25006        # C build frameworks function, which is that the same flags used in
25007        # compilation (CFLAGS) are also used in linking.  Many systems
25008        # supported by AX_PTHREAD require exactly this for POSIX threads
25009        # support, and in fact it is often not straightforward to specify a
25010        # flag that is used only in the compilation phase and not in
25011        # linking.  Such a scenario is extremely rare in practice.
25012        #
25013        # Even though use of the -pthread flag in linking would only print
25014        # a warning, this can be a nuisance for well-run software projects
25015        # that build with -Werror.  So if the active version of Clang has
25016        # this misfeature, we search for an option to squash it.
25017
25018        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
25019printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
25020if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
25021then :
25022  printf %s "(cached) " >&6
25023else $as_nop
25024  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
25025             # Create an alternate version of $ac_link that compiles and
25026             # links in two steps (.c -> .o, .o -> exe) instead of one
25027             # (.c -> exe), because the warning occurs only in the second
25028             # step
25029             ax_pthread_save_ac_link="$ac_link"
25030             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
25031             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
25032             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
25033             ax_pthread_save_CFLAGS="$CFLAGS"
25034             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
25035                if test "x$ax_pthread_try" = "xunknown"
25036then :
25037  break
25038fi
25039                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
25040                ac_link="$ax_pthread_save_ac_link"
25041                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25042/* end confdefs.h.  */
25043int main(void){return 0;}
25044_ACEOF
25045if ac_fn_c_try_link "$LINENO"
25046then :
25047  ac_link="$ax_pthread_2step_ac_link"
25048                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049/* end confdefs.h.  */
25050int main(void){return 0;}
25051_ACEOF
25052if ac_fn_c_try_link "$LINENO"
25053then :
25054  break
25055fi
25056rm -f core conftest.err conftest.$ac_objext conftest.beam \
25057    conftest$ac_exeext conftest.$ac_ext
25058
25059fi
25060rm -f core conftest.err conftest.$ac_objext conftest.beam \
25061    conftest$ac_exeext conftest.$ac_ext
25062             done
25063             ac_link="$ax_pthread_save_ac_link"
25064             CFLAGS="$ax_pthread_save_CFLAGS"
25065             if test "x$ax_pthread_try" = "x"
25066then :
25067  ax_pthread_try=no
25068fi
25069             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
25070
25071fi
25072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
25073printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
25074
25075        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
25076                no | unknown) ;;
25077                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
25078        esac
25079
25080fi # $ax_pthread_clang = yes
25081
25082
25083
25084# Various other checks:
25085if test "x$ax_pthread_ok" = "xyes"; then
25086        ax_pthread_save_CFLAGS="$CFLAGS"
25087        ax_pthread_save_LIBS="$LIBS"
25088        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25089        LIBS="$PTHREAD_LIBS $LIBS"
25090
25091        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25092        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25093printf %s "checking for joinable pthread attribute... " >&6; }
25094if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
25095then :
25096  printf %s "(cached) " >&6
25097else $as_nop
25098  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25099             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25100                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h.  */
25102#include <pthread.h>
25103int
25104main (void)
25105{
25106int attr = $ax_pthread_attr; return attr /* ; */
25107  ;
25108  return 0;
25109}
25110_ACEOF
25111if ac_fn_c_try_link "$LINENO"
25112then :
25113  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25114fi
25115rm -f core conftest.err conftest.$ac_objext conftest.beam \
25116    conftest$ac_exeext conftest.$ac_ext
25117             done
25118
25119fi
25120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25121printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25122        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25123               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25124               test "x$ax_pthread_joinable_attr_defined" != "xyes"
25125then :
25126
25127printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
25128
25129               ax_pthread_joinable_attr_defined=yes
25130
25131fi
25132
25133        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25134printf %s "checking whether more special flags are required for pthreads... " >&6; }
25135if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
25136then :
25137  printf %s "(cached) " >&6
25138else $as_nop
25139  ax_cv_PTHREAD_SPECIAL_FLAGS=no
25140             case $host_os in
25141             solaris*)
25142             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25143             ;;
25144             esac
25145
25146fi
25147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25148printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25149        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25150               test "x$ax_pthread_special_flags_added" != "xyes"
25151then :
25152  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25153               ax_pthread_special_flags_added=yes
25154fi
25155
25156        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25157printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25158if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
25159then :
25160  printf %s "(cached) " >&6
25161else $as_nop
25162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163/* end confdefs.h.  */
25164#include <pthread.h>
25165int
25166main (void)
25167{
25168int i = PTHREAD_PRIO_INHERIT;
25169                                               return i;
25170  ;
25171  return 0;
25172}
25173_ACEOF
25174if ac_fn_c_try_link "$LINENO"
25175then :
25176  ax_cv_PTHREAD_PRIO_INHERIT=yes
25177else $as_nop
25178  ax_cv_PTHREAD_PRIO_INHERIT=no
25179fi
25180rm -f core conftest.err conftest.$ac_objext conftest.beam \
25181    conftest$ac_exeext conftest.$ac_ext
25182
25183fi
25184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25185printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25186        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25187               test "x$ax_pthread_prio_inherit_defined" != "xyes"
25188then :
25189
25190printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25191
25192               ax_pthread_prio_inherit_defined=yes
25193
25194fi
25195
25196        CFLAGS="$ax_pthread_save_CFLAGS"
25197        LIBS="$ax_pthread_save_LIBS"
25198
25199        # More AIX lossage: compile with *_r variant
25200        if test "x$GCC" != "xyes"; then
25201            case $host_os in
25202                aix*)
25203                case "x/$CC" in #(
25204  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25205    #handle absolute path differently from PATH based program lookup
25206                     case "x$CC" in #(
25207  x/*) :
25208
25209			   if as_fn_executable_p ${CC}_r
25210then :
25211  PTHREAD_CC="${CC}_r"
25212fi
25213			   if test "x${CXX}" != "x"
25214then :
25215  if as_fn_executable_p ${CXX}_r
25216then :
25217  PTHREAD_CXX="${CXX}_r"
25218fi
25219fi
25220			  ;; #(
25221  *) :
25222
25223			   for ac_prog in ${CC}_r
25224do
25225  # Extract the first word of "$ac_prog", so it can be a program name with args.
25226set dummy $ac_prog; ac_word=$2
25227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25228printf %s "checking for $ac_word... " >&6; }
25229if test ${ac_cv_prog_PTHREAD_CC+y}
25230then :
25231  printf %s "(cached) " >&6
25232else $as_nop
25233  if test -n "$PTHREAD_CC"; then
25234  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25235else
25236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237for as_dir in $PATH
25238do
25239  IFS=$as_save_IFS
25240  case $as_dir in #(((
25241    '') as_dir=./ ;;
25242    */) ;;
25243    *) as_dir=$as_dir/ ;;
25244  esac
25245    for ac_exec_ext in '' $ac_executable_extensions; do
25246  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25247    ac_cv_prog_PTHREAD_CC="$ac_prog"
25248    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25249    break 2
25250  fi
25251done
25252  done
25253IFS=$as_save_IFS
25254
25255fi
25256fi
25257PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25258if test -n "$PTHREAD_CC"; then
25259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25260printf "%s\n" "$PTHREAD_CC" >&6; }
25261else
25262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25263printf "%s\n" "no" >&6; }
25264fi
25265
25266
25267  test -n "$PTHREAD_CC" && break
25268done
25269test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25270
25271			   if test "x${CXX}" != "x"
25272then :
25273  for ac_prog in ${CXX}_r
25274do
25275  # Extract the first word of "$ac_prog", so it can be a program name with args.
25276set dummy $ac_prog; ac_word=$2
25277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25278printf %s "checking for $ac_word... " >&6; }
25279if test ${ac_cv_prog_PTHREAD_CXX+y}
25280then :
25281  printf %s "(cached) " >&6
25282else $as_nop
25283  if test -n "$PTHREAD_CXX"; then
25284  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
25285else
25286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25287for as_dir in $PATH
25288do
25289  IFS=$as_save_IFS
25290  case $as_dir in #(((
25291    '') as_dir=./ ;;
25292    */) ;;
25293    *) as_dir=$as_dir/ ;;
25294  esac
25295    for ac_exec_ext in '' $ac_executable_extensions; do
25296  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25297    ac_cv_prog_PTHREAD_CXX="$ac_prog"
25298    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25299    break 2
25300  fi
25301done
25302  done
25303IFS=$as_save_IFS
25304
25305fi
25306fi
25307PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
25308if test -n "$PTHREAD_CXX"; then
25309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
25310printf "%s\n" "$PTHREAD_CXX" >&6; }
25311else
25312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25313printf "%s\n" "no" >&6; }
25314fi
25315
25316
25317  test -n "$PTHREAD_CXX" && break
25318done
25319test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
25320
25321fi
25322
25323                      ;;
25324esac
25325                     ;; #(
25326  *) :
25327     ;;
25328esac
25329                ;;
25330            esac
25331        fi
25332fi
25333
25334test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25335test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
25336
25337
25338
25339
25340
25341
25342# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25343if test "x$ax_pthread_ok" = "xyes"; then
25344         CARES_TEST_PTHREADS="yes"
25345        :
25346else
25347        ax_pthread_ok=no
25348         as_fn_error $? "threading required for tests" "$LINENO" 5
25349fi
25350ac_ext=c
25351ac_cpp='$CPP $CPPFLAGS'
25352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25354ac_compiler_gnu=$ac_cv_c_compiler_gnu
25355
25356
25357  fi
25358
25359  BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
25360fi
25361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
25362printf %s "checking whether to build tests... " >&6; }
25363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
25364printf "%s\n" "$build_tests" >&6; }
25365
25366 if test "x$build_tests" = "xyes"; then
25367  BUILD_TESTS_TRUE=
25368  BUILD_TESTS_FALSE='#'
25369else
25370  BUILD_TESTS_TRUE='#'
25371  BUILD_TESTS_FALSE=
25372fi
25373
25374
25375
25376
25377
25378
25379
25380ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
25381
25382if test -z "$BUILD_TESTS_TRUE"; then :
25383  ac_config_files="$ac_config_files test/Makefile"
25384
25385fi
25386
25387cat >confcache <<\_ACEOF
25388# This file is a shell script that caches the results of configure
25389# tests run on this system so they can be shared between configure
25390# scripts and configure runs, see configure's option --config-cache.
25391# It is not useful on other systems.  If it contains results you don't
25392# want to keep, you may remove or edit it.
25393#
25394# config.status only pays attention to the cache file if you give it
25395# the --recheck option to rerun configure.
25396#
25397# `ac_cv_env_foo' variables (set or unset) will be overridden when
25398# loading this file, other *unset* `ac_cv_foo' will be assigned the
25399# following values.
25400
25401_ACEOF
25402
25403# The following way of writing the cache mishandles newlines in values,
25404# but we know of no workaround that is simple, portable, and efficient.
25405# So, we kill variables containing newlines.
25406# Ultrix sh set writes to stderr and can't be redirected directly,
25407# and sets the high bit in the cache file unless we assign to the vars.
25408(
25409  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25410    eval ac_val=\$$ac_var
25411    case $ac_val in #(
25412    *${as_nl}*)
25413      case $ac_var in #(
25414      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25415printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25416      esac
25417      case $ac_var in #(
25418      _ | IFS | as_nl) ;; #(
25419      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25420      *) { eval $ac_var=; unset $ac_var;} ;;
25421      esac ;;
25422    esac
25423  done
25424
25425  (set) 2>&1 |
25426    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25427    *${as_nl}ac_space=\ *)
25428      # `set' does not quote correctly, so add quotes: double-quote
25429      # substitution turns \\\\ into \\, and sed turns \\ into \.
25430      sed -n \
25431	"s/'/'\\\\''/g;
25432	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25433      ;; #(
25434    *)
25435      # `set' quotes correctly as required by POSIX, so do not add quotes.
25436      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25437      ;;
25438    esac |
25439    sort
25440) |
25441  sed '
25442     /^ac_cv_env_/b end
25443     t clear
25444     :clear
25445     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25446     t end
25447     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25448     :end' >>confcache
25449if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25450  if test -w "$cache_file"; then
25451    if test "x$cache_file" != "x/dev/null"; then
25452      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25453printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25454      if test ! -f "$cache_file" || test -h "$cache_file"; then
25455	cat confcache >"$cache_file"
25456      else
25457        case $cache_file in #(
25458        */* | ?:*)
25459	  mv -f confcache "$cache_file"$$ &&
25460	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25461        *)
25462	  mv -f confcache "$cache_file" ;;
25463	esac
25464      fi
25465    fi
25466  else
25467    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25468printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25469  fi
25470fi
25471rm -f confcache
25472
25473test "x$prefix" = xNONE && prefix=$ac_default_prefix
25474# Let make expand exec_prefix.
25475test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25476
25477DEFS=-DHAVE_CONFIG_H
25478
25479ac_libobjs=
25480ac_ltlibobjs=
25481U=
25482for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25483  # 1. Remove the extension, and $U if already installed.
25484  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25485  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
25486  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25487  #    will be set to the directory where LIBOBJS objects are built.
25488  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25489  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25490done
25491LIBOBJS=$ac_libobjs
25492
25493LTLIBOBJS=$ac_ltlibobjs
25494
25495
25496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25497printf %s "checking that generated files are newer than configure... " >&6; }
25498   if test -n "$am_sleep_pid"; then
25499     # Hide warnings about reused PIDs.
25500     wait $am_sleep_pid 2>/dev/null
25501   fi
25502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
25503printf "%s\n" "done" >&6; }
25504if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25505  as_fn_error $? "conditional \"AMDEP\" was never defined.
25506Usually this means the macro was only invoked conditionally." "$LINENO" 5
25507fi
25508if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25509  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25510Usually this means the macro was only invoked conditionally." "$LINENO" 5
25511fi
25512if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25513  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25514Usually this means the macro was only invoked conditionally." "$LINENO" 5
25515fi
25516 if test -n "$EXEEXT"; then
25517  am__EXEEXT_TRUE=
25518  am__EXEEXT_FALSE='#'
25519else
25520  am__EXEEXT_TRUE='#'
25521  am__EXEEXT_FALSE=
25522fi
25523
25524if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25525  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25526Usually this means the macro was only invoked conditionally." "$LINENO" 5
25527fi
25528if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
25529  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
25530Usually this means the macro was only invoked conditionally." "$LINENO" 5
25531fi
25532if test -z "${CARES_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_USE_NO_UNDEFINED_FALSE}"; then
25533  as_fn_error $? "conditional \"CARES_USE_NO_UNDEFINED\" was never defined.
25534Usually this means the macro was only invoked conditionally." "$LINENO" 5
25535fi
25536if test -z "${CARES_SYMBOL_HIDING_TRUE}" && test -z "${CARES_SYMBOL_HIDING_FALSE}"; then
25537  as_fn_error $? "conditional \"CARES_SYMBOL_HIDING\" was never defined.
25538Usually this means the macro was only invoked conditionally." "$LINENO" 5
25539fi
25540if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
25541  as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
25542Usually this means the macro was only invoked conditionally." "$LINENO" 5
25543fi
25544
25545: "${CONFIG_STATUS=./config.status}"
25546ac_write_fail=0
25547ac_clean_files_save=$ac_clean_files
25548ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25550printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25551as_write_fail=0
25552cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25553#! $SHELL
25554# Generated by $as_me.
25555# Run this file to recreate the current configuration.
25556# Compiler output produced by configure, useful for debugging
25557# configure, is in config.log if it exists.
25558
25559debug=false
25560ac_cs_recheck=false
25561ac_cs_silent=false
25562
25563SHELL=\${CONFIG_SHELL-$SHELL}
25564export SHELL
25565_ASEOF
25566cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25567## -------------------- ##
25568## M4sh Initialization. ##
25569## -------------------- ##
25570
25571# Be more Bourne compatible
25572DUALCASE=1; export DUALCASE # for MKS sh
25573as_nop=:
25574if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25575then :
25576  emulate sh
25577  NULLCMD=:
25578  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25579  # is contrary to our usage.  Disable this feature.
25580  alias -g '${1+"$@"}'='"$@"'
25581  setopt NO_GLOB_SUBST
25582else $as_nop
25583  case `(set -o) 2>/dev/null` in #(
25584  *posix*) :
25585    set -o posix ;; #(
25586  *) :
25587     ;;
25588esac
25589fi
25590
25591
25592
25593# Reset variables that may have inherited troublesome values from
25594# the environment.
25595
25596# IFS needs to be set, to space, tab, and newline, in precisely that order.
25597# (If _AS_PATH_WALK were called with IFS unset, it would have the
25598# side effect of setting IFS to empty, thus disabling word splitting.)
25599# Quoting is to prevent editors from complaining about space-tab.
25600as_nl='
25601'
25602export as_nl
25603IFS=" ""	$as_nl"
25604
25605PS1='$ '
25606PS2='> '
25607PS4='+ '
25608
25609# Ensure predictable behavior from utilities with locale-dependent output.
25610LC_ALL=C
25611export LC_ALL
25612LANGUAGE=C
25613export LANGUAGE
25614
25615# We cannot yet rely on "unset" to work, but we need these variables
25616# to be unset--not just set to an empty or harmless value--now, to
25617# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
25618# also avoids known problems related to "unset" and subshell syntax
25619# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
25620for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
25621do eval test \${$as_var+y} \
25622  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25623done
25624
25625# Ensure that fds 0, 1, and 2 are open.
25626if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
25627if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
25628if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
25629
25630# The user is always right.
25631if ${PATH_SEPARATOR+false} :; then
25632  PATH_SEPARATOR=:
25633  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25634    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25635      PATH_SEPARATOR=';'
25636  }
25637fi
25638
25639
25640# Find who we are.  Look in the path if we contain no directory separator.
25641as_myself=
25642case $0 in #((
25643  *[\\/]* ) as_myself=$0 ;;
25644  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645for as_dir in $PATH
25646do
25647  IFS=$as_save_IFS
25648  case $as_dir in #(((
25649    '') as_dir=./ ;;
25650    */) ;;
25651    *) as_dir=$as_dir/ ;;
25652  esac
25653    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
25654  done
25655IFS=$as_save_IFS
25656
25657     ;;
25658esac
25659# We did not find ourselves, most probably we were run as `sh COMMAND'
25660# in which case we are not to be found in the path.
25661if test "x$as_myself" = x; then
25662  as_myself=$0
25663fi
25664if test ! -f "$as_myself"; then
25665  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25666  exit 1
25667fi
25668
25669
25670
25671# as_fn_error STATUS ERROR [LINENO LOG_FD]
25672# ----------------------------------------
25673# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25674# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25675# script with STATUS, using 1 if that was 0.
25676as_fn_error ()
25677{
25678  as_status=$1; test $as_status -eq 0 && as_status=1
25679  if test "$4"; then
25680    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25682  fi
25683  printf "%s\n" "$as_me: error: $2" >&2
25684  as_fn_exit $as_status
25685} # as_fn_error
25686
25687
25688
25689# as_fn_set_status STATUS
25690# -----------------------
25691# Set $? to STATUS, without forking.
25692as_fn_set_status ()
25693{
25694  return $1
25695} # as_fn_set_status
25696
25697# as_fn_exit STATUS
25698# -----------------
25699# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25700as_fn_exit ()
25701{
25702  set +e
25703  as_fn_set_status $1
25704  exit $1
25705} # as_fn_exit
25706
25707# as_fn_unset VAR
25708# ---------------
25709# Portably unset VAR.
25710as_fn_unset ()
25711{
25712  { eval $1=; unset $1;}
25713}
25714as_unset=as_fn_unset
25715
25716# as_fn_append VAR VALUE
25717# ----------------------
25718# Append the text in VALUE to the end of the definition contained in VAR. Take
25719# advantage of any shell optimizations that allow amortized linear growth over
25720# repeated appends, instead of the typical quadratic growth present in naive
25721# implementations.
25722if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
25723then :
25724  eval 'as_fn_append ()
25725  {
25726    eval $1+=\$2
25727  }'
25728else $as_nop
25729  as_fn_append ()
25730  {
25731    eval $1=\$$1\$2
25732  }
25733fi # as_fn_append
25734
25735# as_fn_arith ARG...
25736# ------------------
25737# Perform arithmetic evaluation on the ARGs, and store the result in the
25738# global $as_val. Take advantage of shells that can avoid forks. The arguments
25739# must be portable across $(()) and expr.
25740if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25741then :
25742  eval 'as_fn_arith ()
25743  {
25744    as_val=$(( $* ))
25745  }'
25746else $as_nop
25747  as_fn_arith ()
25748  {
25749    as_val=`expr "$@" || test $? -eq 1`
25750  }
25751fi # as_fn_arith
25752
25753
25754if expr a : '\(a\)' >/dev/null 2>&1 &&
25755   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25756  as_expr=expr
25757else
25758  as_expr=false
25759fi
25760
25761if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25762  as_basename=basename
25763else
25764  as_basename=false
25765fi
25766
25767if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25768  as_dirname=dirname
25769else
25770  as_dirname=false
25771fi
25772
25773as_me=`$as_basename -- "$0" ||
25774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25775	 X"$0" : 'X\(//\)$' \| \
25776	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25777printf "%s\n" X/"$0" |
25778    sed '/^.*\/\([^/][^/]*\)\/*$/{
25779	    s//\1/
25780	    q
25781	  }
25782	  /^X\/\(\/\/\)$/{
25783	    s//\1/
25784	    q
25785	  }
25786	  /^X\/\(\/\).*/{
25787	    s//\1/
25788	    q
25789	  }
25790	  s/.*/./; q'`
25791
25792# Avoid depending upon Character Ranges.
25793as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25794as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25795as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25796as_cr_digits='0123456789'
25797as_cr_alnum=$as_cr_Letters$as_cr_digits
25798
25799
25800# Determine whether it's possible to make 'echo' print without a newline.
25801# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
25802# for compatibility with existing Makefiles.
25803ECHO_C= ECHO_N= ECHO_T=
25804case `echo -n x` in #(((((
25805-n*)
25806  case `echo 'xy\c'` in
25807  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25808  xy)  ECHO_C='\c';;
25809  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25810       ECHO_T='	';;
25811  esac;;
25812*)
25813  ECHO_N='-n';;
25814esac
25815
25816# For backward compatibility with old third-party macros, we provide
25817# the shell variables $as_echo and $as_echo_n.  New code should use
25818# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
25819as_echo='printf %s\n'
25820as_echo_n='printf %s'
25821
25822rm -f conf$$ conf$$.exe conf$$.file
25823if test -d conf$$.dir; then
25824  rm -f conf$$.dir/conf$$.file
25825else
25826  rm -f conf$$.dir
25827  mkdir conf$$.dir 2>/dev/null
25828fi
25829if (echo >conf$$.file) 2>/dev/null; then
25830  if ln -s conf$$.file conf$$ 2>/dev/null; then
25831    as_ln_s='ln -s'
25832    # ... but there are two gotchas:
25833    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25834    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25835    # In both cases, we have to default to `cp -pR'.
25836    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25837      as_ln_s='cp -pR'
25838  elif ln conf$$.file conf$$ 2>/dev/null; then
25839    as_ln_s=ln
25840  else
25841    as_ln_s='cp -pR'
25842  fi
25843else
25844  as_ln_s='cp -pR'
25845fi
25846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25847rmdir conf$$.dir 2>/dev/null
25848
25849
25850# as_fn_mkdir_p
25851# -------------
25852# Create "$as_dir" as a directory, including parents if necessary.
25853as_fn_mkdir_p ()
25854{
25855
25856  case $as_dir in #(
25857  -*) as_dir=./$as_dir;;
25858  esac
25859  test -d "$as_dir" || eval $as_mkdir_p || {
25860    as_dirs=
25861    while :; do
25862      case $as_dir in #(
25863      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25864      *) as_qdir=$as_dir;;
25865      esac
25866      as_dirs="'$as_qdir' $as_dirs"
25867      as_dir=`$as_dirname -- "$as_dir" ||
25868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25869	 X"$as_dir" : 'X\(//\)[^/]' \| \
25870	 X"$as_dir" : 'X\(//\)$' \| \
25871	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25872printf "%s\n" X"$as_dir" |
25873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25874	    s//\1/
25875	    q
25876	  }
25877	  /^X\(\/\/\)[^/].*/{
25878	    s//\1/
25879	    q
25880	  }
25881	  /^X\(\/\/\)$/{
25882	    s//\1/
25883	    q
25884	  }
25885	  /^X\(\/\).*/{
25886	    s//\1/
25887	    q
25888	  }
25889	  s/.*/./; q'`
25890      test -d "$as_dir" && break
25891    done
25892    test -z "$as_dirs" || eval "mkdir $as_dirs"
25893  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25894
25895
25896} # as_fn_mkdir_p
25897if mkdir -p . 2>/dev/null; then
25898  as_mkdir_p='mkdir -p "$as_dir"'
25899else
25900  test -d ./-p && rmdir ./-p
25901  as_mkdir_p=false
25902fi
25903
25904
25905# as_fn_executable_p FILE
25906# -----------------------
25907# Test if FILE is an executable regular file.
25908as_fn_executable_p ()
25909{
25910  test -f "$1" && test -x "$1"
25911} # as_fn_executable_p
25912as_test_x='test -x'
25913as_executable_p=as_fn_executable_p
25914
25915# Sed expression to map a string onto a valid CPP name.
25916as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25917
25918# Sed expression to map a string onto a valid variable name.
25919as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25920
25921
25922exec 6>&1
25923## ----------------------------------- ##
25924## Main body of $CONFIG_STATUS script. ##
25925## ----------------------------------- ##
25926_ASEOF
25927test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25928
25929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25930# Save the log message, to keep $0 and so on meaningful, and to
25931# report actual input values of CONFIG_FILES etc. instead of their
25932# values after options handling.
25933ac_log="
25934This file was extended by c-ares $as_me 1.27.0, which was
25935generated by GNU Autoconf 2.71.  Invocation command line was
25936
25937  CONFIG_FILES    = $CONFIG_FILES
25938  CONFIG_HEADERS  = $CONFIG_HEADERS
25939  CONFIG_LINKS    = $CONFIG_LINKS
25940  CONFIG_COMMANDS = $CONFIG_COMMANDS
25941  $ $0 $@
25942
25943on `(hostname || uname -n) 2>/dev/null | sed 1q`
25944"
25945
25946_ACEOF
25947
25948case $ac_config_files in *"
25949"*) set x $ac_config_files; shift; ac_config_files=$*;;
25950esac
25951
25952case $ac_config_headers in *"
25953"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25954esac
25955
25956
25957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25958# Files that config.status was made for.
25959config_files="$ac_config_files"
25960config_headers="$ac_config_headers"
25961config_commands="$ac_config_commands"
25962
25963_ACEOF
25964
25965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25966ac_cs_usage="\
25967\`$as_me' instantiates files and other configuration actions
25968from templates according to the current configuration.  Unless the files
25969and actions are specified as TAGs, all are instantiated by default.
25970
25971Usage: $0 [OPTION]... [TAG]...
25972
25973  -h, --help       print this help, then exit
25974  -V, --version    print version number and configuration settings, then exit
25975      --config     print configuration, then exit
25976  -q, --quiet, --silent
25977                   do not print progress messages
25978  -d, --debug      don't remove temporary files
25979      --recheck    update $as_me by reconfiguring in the same conditions
25980      --file=FILE[:TEMPLATE]
25981                   instantiate the configuration file FILE
25982      --header=FILE[:TEMPLATE]
25983                   instantiate the configuration header FILE
25984
25985Configuration files:
25986$config_files
25987
25988Configuration headers:
25989$config_headers
25990
25991Configuration commands:
25992$config_commands
25993
25994Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>."
25995
25996_ACEOF
25997ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
25998ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
25999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26000ac_cs_config='$ac_cs_config_escaped'
26001ac_cs_version="\\
26002c-ares config.status 1.27.0
26003configured by $0, generated by GNU Autoconf 2.71,
26004  with options \\"\$ac_cs_config\\"
26005
26006Copyright (C) 2021 Free Software Foundation, Inc.
26007This config.status script is free software; the Free Software Foundation
26008gives unlimited permission to copy, distribute and modify it."
26009
26010ac_pwd='$ac_pwd'
26011srcdir='$srcdir'
26012INSTALL='$INSTALL'
26013MKDIR_P='$MKDIR_P'
26014AWK='$AWK'
26015test -n "\$AWK" || AWK=awk
26016_ACEOF
26017
26018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26019# The default lists apply if the user does not specify any file.
26020ac_need_defaults=:
26021while test $# != 0
26022do
26023  case $1 in
26024  --*=?*)
26025    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26026    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26027    ac_shift=:
26028    ;;
26029  --*=)
26030    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26031    ac_optarg=
26032    ac_shift=:
26033    ;;
26034  *)
26035    ac_option=$1
26036    ac_optarg=$2
26037    ac_shift=shift
26038    ;;
26039  esac
26040
26041  case $ac_option in
26042  # Handling of the options.
26043  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26044    ac_cs_recheck=: ;;
26045  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26046    printf "%s\n" "$ac_cs_version"; exit ;;
26047  --config | --confi | --conf | --con | --co | --c )
26048    printf "%s\n" "$ac_cs_config"; exit ;;
26049  --debug | --debu | --deb | --de | --d | -d )
26050    debug=: ;;
26051  --file | --fil | --fi | --f )
26052    $ac_shift
26053    case $ac_optarg in
26054    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26055    '') as_fn_error $? "missing file argument" ;;
26056    esac
26057    as_fn_append CONFIG_FILES " '$ac_optarg'"
26058    ac_need_defaults=false;;
26059  --header | --heade | --head | --hea )
26060    $ac_shift
26061    case $ac_optarg in
26062    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26063    esac
26064    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26065    ac_need_defaults=false;;
26066  --he | --h)
26067    # Conflict between --help and --header
26068    as_fn_error $? "ambiguous option: \`$1'
26069Try \`$0 --help' for more information.";;
26070  --help | --hel | -h )
26071    printf "%s\n" "$ac_cs_usage"; exit ;;
26072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26073  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26074    ac_cs_silent=: ;;
26075
26076  # This is an error.
26077  -*) as_fn_error $? "unrecognized option: \`$1'
26078Try \`$0 --help' for more information." ;;
26079
26080  *) as_fn_append ac_config_targets " $1"
26081     ac_need_defaults=false ;;
26082
26083  esac
26084  shift
26085done
26086
26087ac_configure_extra_args=
26088
26089if $ac_cs_silent; then
26090  exec 6>/dev/null
26091  ac_configure_extra_args="$ac_configure_extra_args --silent"
26092fi
26093
26094_ACEOF
26095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26096if \$ac_cs_recheck; then
26097  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26098  shift
26099  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
26100  CONFIG_SHELL='$SHELL'
26101  export CONFIG_SHELL
26102  exec "\$@"
26103fi
26104
26105_ACEOF
26106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26107exec 5>>config.log
26108{
26109  echo
26110  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26111## Running $as_me. ##
26112_ASBOX
26113  printf "%s\n" "$ac_log"
26114} >&5
26115
26116_ACEOF
26117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26118#
26119# INIT-COMMANDS
26120#
26121AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
26122
26123
26124# The HP-UX ksh and POSIX shell print the target directory to stdout
26125# if CDPATH is set.
26126(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26127
26128sed_quote_subst='$sed_quote_subst'
26129double_quote_subst='$double_quote_subst'
26130delay_variable_subst='$delay_variable_subst'
26131macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26132macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26133AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26134DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26135OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26136enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26137enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26138pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26139enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26140shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26141SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26142ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26143PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26144host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26145host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26146host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26147build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26148build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26149build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26150SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26151Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26152GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26153EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26154FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26155LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26156NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26157LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26158max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26159ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26160exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26161lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26162lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26163lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26164lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26165lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26166reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26167reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26168FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
26169deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26170file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26171file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26172want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26173sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26174AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26175lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
26176AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26177archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26178STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26179RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26180old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26181old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26182old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26183lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26184CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26185CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26186compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26187GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26188lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26189lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26190lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26191lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26192lt_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"`'
26193lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26194nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26195lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26196lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26197objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26198MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26199lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26200lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26201lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26202lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26203lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26204need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26205MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26206DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26207NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26208LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26209OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26210OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26211libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26212shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26213extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26214archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26215enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26216export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26217whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26218compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26219old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26220old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26221archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26222archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26223module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26224module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26225with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26226allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26227no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26228hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26229hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26230hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26231hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26232hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26233hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26234hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26235inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26236link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26237always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26238export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26239exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26240include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26241prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26242postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26243file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26244variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26245need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26246need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26247version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26248runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26249shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26250shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26251libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26252library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26253soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26254install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26255postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26256postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26257finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26258finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26259hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26260sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26261configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26262configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26263hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26264enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26265enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26266enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26267old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26268striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26269compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26270predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26271postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26272predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26273postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26274compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26275LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26276reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26277reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26278old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26279compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26280GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26281lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26282lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26283lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26284lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26285lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26286archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26287enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26288export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26289whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26290compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26291old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26292old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26293archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26294archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26295module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26296module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26297with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26298allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26299no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26300hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26301hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26302hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26303hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26304hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26305hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26306hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26307inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26308link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26309always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26310export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26311exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26312include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26313prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26314postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26315file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26316hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26317compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26318predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26319postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26320predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26321postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26322compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26323
26324LTCC='$LTCC'
26325LTCFLAGS='$LTCFLAGS'
26326compiler='$compiler_DEFAULT'
26327
26328# A function that is used when there is no print builtin or printf.
26329func_fallback_echo ()
26330{
26331  eval 'cat <<_LTECHO_EOF
26332\$1
26333_LTECHO_EOF'
26334}
26335
26336# Quote evaled strings.
26337for var in AS \
26338DLLTOOL \
26339OBJDUMP \
26340SHELL \
26341ECHO \
26342PATH_SEPARATOR \
26343SED \
26344GREP \
26345EGREP \
26346FGREP \
26347LD \
26348NM \
26349LN_S \
26350lt_SP2NL \
26351lt_NL2SP \
26352reload_flag \
26353FILECMD \
26354deplibs_check_method \
26355file_magic_cmd \
26356file_magic_glob \
26357want_nocaseglob \
26358sharedlib_from_linklib_cmd \
26359AR \
26360archiver_list_spec \
26361STRIP \
26362RANLIB \
26363CC \
26364CFLAGS \
26365compiler \
26366lt_cv_sys_global_symbol_pipe \
26367lt_cv_sys_global_symbol_to_cdecl \
26368lt_cv_sys_global_symbol_to_import \
26369lt_cv_sys_global_symbol_to_c_name_address \
26370lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26371lt_cv_nm_interface \
26372nm_file_list_spec \
26373lt_cv_truncate_bin \
26374lt_prog_compiler_no_builtin_flag \
26375lt_prog_compiler_pic \
26376lt_prog_compiler_wl \
26377lt_prog_compiler_static \
26378lt_cv_prog_compiler_c_o \
26379need_locks \
26380MANIFEST_TOOL \
26381DSYMUTIL \
26382NMEDIT \
26383LIPO \
26384OTOOL \
26385OTOOL64 \
26386shrext_cmds \
26387export_dynamic_flag_spec \
26388whole_archive_flag_spec \
26389compiler_needs_object \
26390with_gnu_ld \
26391allow_undefined_flag \
26392no_undefined_flag \
26393hardcode_libdir_flag_spec \
26394hardcode_libdir_separator \
26395exclude_expsyms \
26396include_expsyms \
26397file_list_spec \
26398variables_saved_for_relink \
26399libname_spec \
26400library_names_spec \
26401soname_spec \
26402install_override_mode \
26403finish_eval \
26404old_striplib \
26405striplib \
26406compiler_lib_search_dirs \
26407predep_objects \
26408postdep_objects \
26409predeps \
26410postdeps \
26411compiler_lib_search_path \
26412LD_CXX \
26413reload_flag_CXX \
26414compiler_CXX \
26415lt_prog_compiler_no_builtin_flag_CXX \
26416lt_prog_compiler_pic_CXX \
26417lt_prog_compiler_wl_CXX \
26418lt_prog_compiler_static_CXX \
26419lt_cv_prog_compiler_c_o_CXX \
26420export_dynamic_flag_spec_CXX \
26421whole_archive_flag_spec_CXX \
26422compiler_needs_object_CXX \
26423with_gnu_ld_CXX \
26424allow_undefined_flag_CXX \
26425no_undefined_flag_CXX \
26426hardcode_libdir_flag_spec_CXX \
26427hardcode_libdir_separator_CXX \
26428exclude_expsyms_CXX \
26429include_expsyms_CXX \
26430file_list_spec_CXX \
26431compiler_lib_search_dirs_CXX \
26432predep_objects_CXX \
26433postdep_objects_CXX \
26434predeps_CXX \
26435postdeps_CXX \
26436compiler_lib_search_path_CXX; do
26437    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26438    *[\\\\\\\`\\"\\\$]*)
26439      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26440      ;;
26441    *)
26442      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26443      ;;
26444    esac
26445done
26446
26447# Double-quote double-evaled strings.
26448for var in reload_cmds \
26449old_postinstall_cmds \
26450old_postuninstall_cmds \
26451old_archive_cmds \
26452extract_expsyms_cmds \
26453old_archive_from_new_cmds \
26454old_archive_from_expsyms_cmds \
26455archive_cmds \
26456archive_expsym_cmds \
26457module_cmds \
26458module_expsym_cmds \
26459export_symbols_cmds \
26460prelink_cmds \
26461postlink_cmds \
26462postinstall_cmds \
26463postuninstall_cmds \
26464finish_cmds \
26465sys_lib_search_path_spec \
26466configure_time_dlsearch_path \
26467configure_time_lt_sys_library_path \
26468reload_cmds_CXX \
26469old_archive_cmds_CXX \
26470old_archive_from_new_cmds_CXX \
26471old_archive_from_expsyms_cmds_CXX \
26472archive_cmds_CXX \
26473archive_expsym_cmds_CXX \
26474module_cmds_CXX \
26475module_expsym_cmds_CXX \
26476export_symbols_cmds_CXX \
26477prelink_cmds_CXX \
26478postlink_cmds_CXX; do
26479    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26480    *[\\\\\\\`\\"\\\$]*)
26481      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26482      ;;
26483    *)
26484      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26485      ;;
26486    esac
26487done
26488
26489ac_aux_dir='$ac_aux_dir'
26490
26491# See if we are running on zsh, and set the options that allow our
26492# commands through without removal of \ escapes INIT.
26493if test -n "\${ZSH_VERSION+set}"; then
26494   setopt NO_GLOB_SUBST
26495fi
26496
26497
26498    PACKAGE='$PACKAGE'
26499    VERSION='$VERSION'
26500    RM='$RM'
26501    ofile='$ofile'
26502
26503
26504
26505
26506
26507
26508_ACEOF
26509
26510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26511
26512# Handling of arguments.
26513for ac_config_target in $ac_config_targets
26514do
26515  case $ac_config_target in
26516    "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
26517    "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
26518    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26519    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26520    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26521    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26522    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26523    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
26524    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
26525    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
26526    "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
26527    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26528
26529  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26530  esac
26531done
26532
26533
26534# If the user did not use the arguments to specify the items to instantiate,
26535# then the envvar interface is used.  Set only those that are not.
26536# We use the long form for the default assignment because of an extremely
26537# bizarre bug on SunOS 4.1.3.
26538if $ac_need_defaults; then
26539  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
26540  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
26541  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
26542fi
26543
26544# Have a temporary directory for convenience.  Make it in the build tree
26545# simply because there is no reason against having it here, and in addition,
26546# creating and moving files from /tmp can sometimes cause problems.
26547# Hook for its removal unless debugging.
26548# Note that there is a small window in which the directory will not be cleaned:
26549# after its creation but before its name has been assigned to `$tmp'.
26550$debug ||
26551{
26552  tmp= ac_tmp=
26553  trap 'exit_status=$?
26554  : "${ac_tmp:=$tmp}"
26555  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26556' 0
26557  trap 'as_fn_exit 1' 1 2 13 15
26558}
26559# Create a (secure) tmp directory for tmp files.
26560
26561{
26562  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26563  test -d "$tmp"
26564}  ||
26565{
26566  tmp=./conf$$-$RANDOM
26567  (umask 077 && mkdir "$tmp")
26568} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26569ac_tmp=$tmp
26570
26571# Set up the scripts for CONFIG_FILES section.
26572# No need to generate them if there are no CONFIG_FILES.
26573# This happens for instance with `./config.status config.h'.
26574if test -n "$CONFIG_FILES"; then
26575
26576
26577ac_cr=`echo X | tr X '\015'`
26578# On cygwin, bash can eat \r inside `` if the user requested igncr.
26579# But we know of no other shell where ac_cr would be empty at this
26580# point, so we can use a bashism as a fallback.
26581if test "x$ac_cr" = x; then
26582  eval ac_cr=\$\'\\r\'
26583fi
26584ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26585if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26586  ac_cs_awk_cr='\\r'
26587else
26588  ac_cs_awk_cr=$ac_cr
26589fi
26590
26591echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26592_ACEOF
26593
26594
26595{
26596  echo "cat >conf$$subs.awk <<_ACEOF" &&
26597  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26598  echo "_ACEOF"
26599} >conf$$subs.sh ||
26600  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26601ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26602ac_delim='%!_!# '
26603for ac_last_try in false false false false false :; do
26604  . ./conf$$subs.sh ||
26605    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26606
26607  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26608  if test $ac_delim_n = $ac_delim_num; then
26609    break
26610  elif $ac_last_try; then
26611    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26612  else
26613    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26614  fi
26615done
26616rm -f conf$$subs.sh
26617
26618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26619cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26620_ACEOF
26621sed -n '
26622h
26623s/^/S["/; s/!.*/"]=/
26624p
26625g
26626s/^[^!]*!//
26627:repl
26628t repl
26629s/'"$ac_delim"'$//
26630t delim
26631:nl
26632h
26633s/\(.\{148\}\)..*/\1/
26634t more1
26635s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26636p
26637n
26638b repl
26639:more1
26640s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26641p
26642g
26643s/.\{148\}//
26644t nl
26645:delim
26646h
26647s/\(.\{148\}\)..*/\1/
26648t more2
26649s/["\\]/\\&/g; s/^/"/; s/$/"/
26650p
26651b
26652:more2
26653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26654p
26655g
26656s/.\{148\}//
26657t delim
26658' <conf$$subs.awk | sed '
26659/^[^""]/{
26660  N
26661  s/\n//
26662}
26663' >>$CONFIG_STATUS || ac_write_fail=1
26664rm -f conf$$subs.awk
26665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26666_ACAWK
26667cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26668  for (key in S) S_is_set[key] = 1
26669  FS = ""
26670
26671}
26672{
26673  line = $ 0
26674  nfields = split(line, field, "@")
26675  substed = 0
26676  len = length(field[1])
26677  for (i = 2; i < nfields; i++) {
26678    key = field[i]
26679    keylen = length(key)
26680    if (S_is_set[key]) {
26681      value = S[key]
26682      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26683      len += length(value) + length(field[++i])
26684      substed = 1
26685    } else
26686      len += 1 + keylen
26687  }
26688
26689  print line
26690}
26691
26692_ACAWK
26693_ACEOF
26694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26695if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26696  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26697else
26698  cat
26699fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26700  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26701_ACEOF
26702
26703# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26704# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26705# trailing colons and then remove the whole line if VPATH becomes empty
26706# (actually we leave an empty line to preserve line numbers).
26707if test "x$srcdir" = x.; then
26708  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26709h
26710s///
26711s/^/:/
26712s/[	 ]*$/:/
26713s/:\$(srcdir):/:/g
26714s/:\${srcdir}:/:/g
26715s/:@srcdir@:/:/g
26716s/^:*//
26717s/:*$//
26718x
26719s/\(=[	 ]*\).*/\1/
26720G
26721s/\n//
26722s/^[^=]*=[	 ]*$//
26723}'
26724fi
26725
26726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26727fi # test -n "$CONFIG_FILES"
26728
26729# Set up the scripts for CONFIG_HEADERS section.
26730# No need to generate them if there are no CONFIG_HEADERS.
26731# This happens for instance with `./config.status Makefile'.
26732if test -n "$CONFIG_HEADERS"; then
26733cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26734BEGIN {
26735_ACEOF
26736
26737# Transform confdefs.h into an awk script `defines.awk', embedded as
26738# here-document in config.status, that substitutes the proper values into
26739# config.h.in to produce config.h.
26740
26741# Create a delimiter string that does not exist in confdefs.h, to ease
26742# handling of long lines.
26743ac_delim='%!_!# '
26744for ac_last_try in false false :; do
26745  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26746  if test -z "$ac_tt"; then
26747    break
26748  elif $ac_last_try; then
26749    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26750  else
26751    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26752  fi
26753done
26754
26755# For the awk script, D is an array of macro values keyed by name,
26756# likewise P contains macro parameters if any.  Preserve backslash
26757# newline sequences.
26758
26759ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26760sed -n '
26761s/.\{148\}/&'"$ac_delim"'/g
26762t rset
26763:rset
26764s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26765t def
26766d
26767:def
26768s/\\$//
26769t bsnl
26770s/["\\]/\\&/g
26771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26772D["\1"]=" \3"/p
26773s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26774d
26775:bsnl
26776s/["\\]/\\&/g
26777s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26778D["\1"]=" \3\\\\\\n"\\/p
26779t cont
26780s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26781t cont
26782d
26783:cont
26784n
26785s/.\{148\}/&'"$ac_delim"'/g
26786t clear
26787:clear
26788s/\\$//
26789t bsnlc
26790s/["\\]/\\&/g; s/^/"/; s/$/"/p
26791d
26792:bsnlc
26793s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26794b cont
26795' <confdefs.h | sed '
26796s/'"$ac_delim"'/"\\\
26797"/g' >>$CONFIG_STATUS || ac_write_fail=1
26798
26799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26800  for (key in D) D_is_set[key] = 1
26801  FS = ""
26802}
26803/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26804  line = \$ 0
26805  split(line, arg, " ")
26806  if (arg[1] == "#") {
26807    defundef = arg[2]
26808    mac1 = arg[3]
26809  } else {
26810    defundef = substr(arg[1], 2)
26811    mac1 = arg[2]
26812  }
26813  split(mac1, mac2, "(") #)
26814  macro = mac2[1]
26815  prefix = substr(line, 1, index(line, defundef) - 1)
26816  if (D_is_set[macro]) {
26817    # Preserve the white space surrounding the "#".
26818    print prefix "define", macro P[macro] D[macro]
26819    next
26820  } else {
26821    # Replace #undef with comments.  This is necessary, for example,
26822    # in the case of _POSIX_SOURCE, which is predefined and required
26823    # on some systems where configure will not decide to define it.
26824    if (defundef == "undef") {
26825      print "/*", prefix defundef, macro, "*/"
26826      next
26827    }
26828  }
26829}
26830{ print }
26831_ACAWK
26832_ACEOF
26833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26834  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26835fi # test -n "$CONFIG_HEADERS"
26836
26837
26838eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26839shift
26840for ac_tag
26841do
26842  case $ac_tag in
26843  :[FHLC]) ac_mode=$ac_tag; continue;;
26844  esac
26845  case $ac_mode$ac_tag in
26846  :[FHL]*:*);;
26847  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26848  :[FH]-) ac_tag=-:-;;
26849  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26850  esac
26851  ac_save_IFS=$IFS
26852  IFS=:
26853  set x $ac_tag
26854  IFS=$ac_save_IFS
26855  shift
26856  ac_file=$1
26857  shift
26858
26859  case $ac_mode in
26860  :L) ac_source=$1;;
26861  :[FH])
26862    ac_file_inputs=
26863    for ac_f
26864    do
26865      case $ac_f in
26866      -) ac_f="$ac_tmp/stdin";;
26867      *) # Look for the file first in the build tree, then in the source tree
26868	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26869	 # because $ac_f cannot contain `:'.
26870	 test -f "$ac_f" ||
26871	   case $ac_f in
26872	   [\\/$]*) false;;
26873	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26874	   esac ||
26875	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26876      esac
26877      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26878      as_fn_append ac_file_inputs " '$ac_f'"
26879    done
26880
26881    # Let's still pretend it is `configure' which instantiates (i.e., don't
26882    # use $as_me), people would be surprised to read:
26883    #    /* config.h.  Generated by config.status.  */
26884    configure_input='Generated from '`
26885	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26886	`' by configure.'
26887    if test x"$ac_file" != x-; then
26888      configure_input="$ac_file.  $configure_input"
26889      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26890printf "%s\n" "$as_me: creating $ac_file" >&6;}
26891    fi
26892    # Neutralize special characters interpreted by sed in replacement strings.
26893    case $configure_input in #(
26894    *\&* | *\|* | *\\* )
26895       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
26896       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26897    *) ac_sed_conf_input=$configure_input;;
26898    esac
26899
26900    case $ac_tag in
26901    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26902      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26903    esac
26904    ;;
26905  esac
26906
26907  ac_dir=`$as_dirname -- "$ac_file" ||
26908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26909	 X"$ac_file" : 'X\(//\)[^/]' \| \
26910	 X"$ac_file" : 'X\(//\)$' \| \
26911	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26912printf "%s\n" X"$ac_file" |
26913    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26914	    s//\1/
26915	    q
26916	  }
26917	  /^X\(\/\/\)[^/].*/{
26918	    s//\1/
26919	    q
26920	  }
26921	  /^X\(\/\/\)$/{
26922	    s//\1/
26923	    q
26924	  }
26925	  /^X\(\/\).*/{
26926	    s//\1/
26927	    q
26928	  }
26929	  s/.*/./; q'`
26930  as_dir="$ac_dir"; as_fn_mkdir_p
26931  ac_builddir=.
26932
26933case "$ac_dir" in
26934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26935*)
26936  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26937  # A ".." for each directory in $ac_dir_suffix.
26938  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26939  case $ac_top_builddir_sub in
26940  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26941  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26942  esac ;;
26943esac
26944ac_abs_top_builddir=$ac_pwd
26945ac_abs_builddir=$ac_pwd$ac_dir_suffix
26946# for backward compatibility:
26947ac_top_builddir=$ac_top_build_prefix
26948
26949case $srcdir in
26950  .)  # We are building in place.
26951    ac_srcdir=.
26952    ac_top_srcdir=$ac_top_builddir_sub
26953    ac_abs_top_srcdir=$ac_pwd ;;
26954  [\\/]* | ?:[\\/]* )  # Absolute name.
26955    ac_srcdir=$srcdir$ac_dir_suffix;
26956    ac_top_srcdir=$srcdir
26957    ac_abs_top_srcdir=$srcdir ;;
26958  *) # Relative name.
26959    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26960    ac_top_srcdir=$ac_top_build_prefix$srcdir
26961    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26962esac
26963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26964
26965
26966  case $ac_mode in
26967  :F)
26968  #
26969  # CONFIG_FILE
26970  #
26971
26972  case $INSTALL in
26973  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26974  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26975  esac
26976  ac_MKDIR_P=$MKDIR_P
26977  case $MKDIR_P in
26978  [\\/$]* | ?:[\\/]* ) ;;
26979  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26980  esac
26981_ACEOF
26982
26983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26984# If the template does not know about datarootdir, expand it.
26985# FIXME: This hack should be removed a few years after 2.60.
26986ac_datarootdir_hack=; ac_datarootdir_seen=
26987ac_sed_dataroot='
26988/datarootdir/ {
26989  p
26990  q
26991}
26992/@datadir@/p
26993/@docdir@/p
26994/@infodir@/p
26995/@localedir@/p
26996/@mandir@/p'
26997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26998*datarootdir*) ac_datarootdir_seen=yes;;
26999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27001printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27002_ACEOF
27003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27004  ac_datarootdir_hack='
27005  s&@datadir@&$datadir&g
27006  s&@docdir@&$docdir&g
27007  s&@infodir@&$infodir&g
27008  s&@localedir@&$localedir&g
27009  s&@mandir@&$mandir&g
27010  s&\\\${datarootdir}&$datarootdir&g' ;;
27011esac
27012_ACEOF
27013
27014# Neutralize VPATH when `$srcdir' = `.'.
27015# Shell code in configure.ac might set extrasub.
27016# FIXME: do we really want to maintain this feature?
27017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27018ac_sed_extra="$ac_vpsub
27019$extrasub
27020_ACEOF
27021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27022:t
27023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27024s|@configure_input@|$ac_sed_conf_input|;t t
27025s&@top_builddir@&$ac_top_builddir_sub&;t t
27026s&@top_build_prefix@&$ac_top_build_prefix&;t t
27027s&@srcdir@&$ac_srcdir&;t t
27028s&@abs_srcdir@&$ac_abs_srcdir&;t t
27029s&@top_srcdir@&$ac_top_srcdir&;t t
27030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27031s&@builddir@&$ac_builddir&;t t
27032s&@abs_builddir@&$ac_abs_builddir&;t t
27033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27034s&@INSTALL@&$ac_INSTALL&;t t
27035s&@MKDIR_P@&$ac_MKDIR_P&;t t
27036$ac_datarootdir_hack
27037"
27038eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27039  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27040
27041test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27042  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27043  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27044      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27046which seems to be undefined.  Please make sure it is defined" >&5
27047printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27048which seems to be undefined.  Please make sure it is defined" >&2;}
27049
27050  rm -f "$ac_tmp/stdin"
27051  case $ac_file in
27052  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27053  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27054  esac \
27055  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27056 ;;
27057  :H)
27058  #
27059  # CONFIG_HEADER
27060  #
27061  if test x"$ac_file" != x-; then
27062    {
27063      printf "%s\n" "/* $configure_input  */" >&1 \
27064      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27065    } >"$ac_tmp/config.h" \
27066      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27067    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27068      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27069printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27070    else
27071      rm -f "$ac_file"
27072      mv "$ac_tmp/config.h" "$ac_file" \
27073	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27074    fi
27075  else
27076    printf "%s\n" "/* $configure_input  */" >&1 \
27077      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27078      || as_fn_error $? "could not create -" "$LINENO" 5
27079  fi
27080# Compute "$ac_file"'s index in $config_headers.
27081_am_arg="$ac_file"
27082_am_stamp_count=1
27083for _am_header in $config_headers :; do
27084  case $_am_header in
27085    $_am_arg | $_am_arg:* )
27086      break ;;
27087    * )
27088      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27089  esac
27090done
27091echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27092$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27093	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27094	 X"$_am_arg" : 'X\(//\)$' \| \
27095	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27096printf "%s\n" X"$_am_arg" |
27097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27098	    s//\1/
27099	    q
27100	  }
27101	  /^X\(\/\/\)[^/].*/{
27102	    s//\1/
27103	    q
27104	  }
27105	  /^X\(\/\/\)$/{
27106	    s//\1/
27107	    q
27108	  }
27109	  /^X\(\/\).*/{
27110	    s//\1/
27111	    q
27112	  }
27113	  s/.*/./; q'`/stamp-h$_am_stamp_count
27114 ;;
27115
27116  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27117printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27118 ;;
27119  esac
27120
27121
27122  case $ac_file$ac_mode in
27123    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27124  # Older Autoconf quotes --file arguments for eval, but not when files
27125  # are listed without --file.  Let's play safe and only enable the eval
27126  # if we detect the quoting.
27127  # TODO: see whether this extra hack can be removed once we start
27128  # requiring Autoconf 2.70 or later.
27129  case $CONFIG_FILES in #(
27130  *\'*) :
27131    eval set x "$CONFIG_FILES" ;; #(
27132  *) :
27133    set x $CONFIG_FILES ;; #(
27134  *) :
27135     ;;
27136esac
27137  shift
27138  # Used to flag and report bootstrapping failures.
27139  am_rc=0
27140  for am_mf
27141  do
27142    # Strip MF so we end up with the name of the file.
27143    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
27144    # Check whether this is an Automake generated Makefile which includes
27145    # dependency-tracking related rules and includes.
27146    # Grep'ing the whole file directly is not great: AIX grep has a line
27147    # limit of 2048, but all sed's we know have understand at least 4000.
27148    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
27149      || continue
27150    am_dirpart=`$as_dirname -- "$am_mf" ||
27151$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27152	 X"$am_mf" : 'X\(//\)[^/]' \| \
27153	 X"$am_mf" : 'X\(//\)$' \| \
27154	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27155printf "%s\n" X"$am_mf" |
27156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27157	    s//\1/
27158	    q
27159	  }
27160	  /^X\(\/\/\)[^/].*/{
27161	    s//\1/
27162	    q
27163	  }
27164	  /^X\(\/\/\)$/{
27165	    s//\1/
27166	    q
27167	  }
27168	  /^X\(\/\).*/{
27169	    s//\1/
27170	    q
27171	  }
27172	  s/.*/./; q'`
27173    am_filepart=`$as_basename -- "$am_mf" ||
27174$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
27175	 X"$am_mf" : 'X\(//\)$' \| \
27176	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27177printf "%s\n" X/"$am_mf" |
27178    sed '/^.*\/\([^/][^/]*\)\/*$/{
27179	    s//\1/
27180	    q
27181	  }
27182	  /^X\/\(\/\/\)$/{
27183	    s//\1/
27184	    q
27185	  }
27186	  /^X\/\(\/\).*/{
27187	    s//\1/
27188	    q
27189	  }
27190	  s/.*/./; q'`
27191    { echo "$as_me:$LINENO: cd "$am_dirpart" \
27192      && sed -e '/# am--include-marker/d' "$am_filepart" \
27193        | $MAKE -f - am--depfiles" >&5
27194   (cd "$am_dirpart" \
27195      && sed -e '/# am--include-marker/d' "$am_filepart" \
27196        | $MAKE -f - am--depfiles) >&5 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } || am_rc=$?
27200  done
27201  if test $am_rc -ne 0; then
27202    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27203printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27204as_fn_error $? "Something went wrong bootstrapping makefile fragments
27205    for automatic dependency tracking.  If GNU make was not used, consider
27206    re-running the configure script with MAKE=\"gmake\" (or whatever is
27207    necessary).  You can also try re-running configure with the
27208    '--disable-dependency-tracking' option to at least be able to build
27209    the package (albeit without support for automatic dependency tracking).
27210See \`config.log' for more details" "$LINENO" 5; }
27211  fi
27212  { am_dirpart=; unset am_dirpart;}
27213  { am_filepart=; unset am_filepart;}
27214  { am_mf=; unset am_mf;}
27215  { am_rc=; unset am_rc;}
27216  rm -f conftest-deps.mk
27217}
27218 ;;
27219    "libtool":C)
27220
27221    # See if we are running on zsh, and set the options that allow our
27222    # commands through without removal of \ escapes.
27223    if test -n "${ZSH_VERSION+set}"; then
27224      setopt NO_GLOB_SUBST
27225    fi
27226
27227    cfgfile=${ofile}T
27228    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27229    $RM "$cfgfile"
27230
27231    cat <<_LT_EOF >> "$cfgfile"
27232#! $SHELL
27233# Generated automatically by $as_me ($PACKAGE) $VERSION
27234# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27235
27236# Provide generalized library-building support services.
27237# Written by Gordon Matzigkeit, 1996
27238
27239# Copyright (C) 2014 Free Software Foundation, Inc.
27240# This is free software; see the source for copying conditions.  There is NO
27241# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27242
27243# GNU Libtool is free software; you can redistribute it and/or modify
27244# it under the terms of the GNU General Public License as published by
27245# the Free Software Foundation; either version 2 of of the License, or
27246# (at your option) any later version.
27247#
27248# As a special exception to the GNU General Public License, if you
27249# distribute this file as part of a program or library that is built
27250# using GNU Libtool, you may include this file under the  same
27251# distribution terms that you use for the rest of that program.
27252#
27253# GNU Libtool is distributed in the hope that it will be useful, but
27254# WITHOUT ANY WARRANTY; without even the implied warranty of
27255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27256# GNU General Public License for more details.
27257#
27258# You should have received a copy of the GNU General Public License
27259# along with this program.  If not, see <http://www.gnu.org/licenses/>.
27260
27261
27262# The names of the tagged configurations supported by this script.
27263available_tags='CXX '
27264
27265# Configured defaults for sys_lib_dlsearch_path munging.
27266: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27267
27268# ### BEGIN LIBTOOL CONFIG
27269
27270# Which release of libtool.m4 was used?
27271macro_version=$macro_version
27272macro_revision=$macro_revision
27273
27274# Assembler program.
27275AS=$lt_AS
27276
27277# DLL creation program.
27278DLLTOOL=$lt_DLLTOOL
27279
27280# Object dumper program.
27281OBJDUMP=$lt_OBJDUMP
27282
27283# Whether or not to build shared libraries.
27284build_libtool_libs=$enable_shared
27285
27286# Whether or not to build static libraries.
27287build_old_libs=$enable_static
27288
27289# What type of objects to build.
27290pic_mode=$pic_mode
27291
27292# Whether or not to optimize for fast installation.
27293fast_install=$enable_fast_install
27294
27295# Shared archive member basename,for filename based shared library versioning on AIX.
27296shared_archive_member_spec=$shared_archive_member_spec
27297
27298# Shell to use when invoking shell scripts.
27299SHELL=$lt_SHELL
27300
27301# An echo program that protects backslashes.
27302ECHO=$lt_ECHO
27303
27304# The PATH separator for the build system.
27305PATH_SEPARATOR=$lt_PATH_SEPARATOR
27306
27307# The host system.
27308host_alias=$host_alias
27309host=$host
27310host_os=$host_os
27311
27312# The build system.
27313build_alias=$build_alias
27314build=$build
27315build_os=$build_os
27316
27317# A sed program that does not truncate output.
27318SED=$lt_SED
27319
27320# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27321Xsed="\$SED -e 1s/^X//"
27322
27323# A grep program that handles long lines.
27324GREP=$lt_GREP
27325
27326# An ERE matcher.
27327EGREP=$lt_EGREP
27328
27329# A literal string matcher.
27330FGREP=$lt_FGREP
27331
27332# A BSD- or MS-compatible name lister.
27333NM=$lt_NM
27334
27335# Whether we need soft or hard links.
27336LN_S=$lt_LN_S
27337
27338# What is the maximum length of a command?
27339max_cmd_len=$max_cmd_len
27340
27341# Object file suffix (normally "o").
27342objext=$ac_objext
27343
27344# Executable file suffix (normally "").
27345exeext=$exeext
27346
27347# whether the shell understands "unset".
27348lt_unset=$lt_unset
27349
27350# turn spaces into newlines.
27351SP2NL=$lt_lt_SP2NL
27352
27353# turn newlines into spaces.
27354NL2SP=$lt_lt_NL2SP
27355
27356# convert \$build file names to \$host format.
27357to_host_file_cmd=$lt_cv_to_host_file_cmd
27358
27359# convert \$build files to toolchain format.
27360to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27361
27362# A file(cmd) program that detects file types.
27363FILECMD=$lt_FILECMD
27364
27365# Method to check whether dependent libraries are shared objects.
27366deplibs_check_method=$lt_deplibs_check_method
27367
27368# Command to use when deplibs_check_method = "file_magic".
27369file_magic_cmd=$lt_file_magic_cmd
27370
27371# How to find potential files when deplibs_check_method = "file_magic".
27372file_magic_glob=$lt_file_magic_glob
27373
27374# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27375want_nocaseglob=$lt_want_nocaseglob
27376
27377# Command to associate shared and link libraries.
27378sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27379
27380# The archiver.
27381AR=$lt_AR
27382
27383# Flags to create an archive (by configure).
27384lt_ar_flags=$lt_ar_flags
27385
27386# Flags to create an archive.
27387AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
27388
27389# How to feed a file listing to the archiver.
27390archiver_list_spec=$lt_archiver_list_spec
27391
27392# A symbol stripping program.
27393STRIP=$lt_STRIP
27394
27395# Commands used to install an old-style archive.
27396RANLIB=$lt_RANLIB
27397old_postinstall_cmds=$lt_old_postinstall_cmds
27398old_postuninstall_cmds=$lt_old_postuninstall_cmds
27399
27400# Whether to use a lock for old archive extraction.
27401lock_old_archive_extraction=$lock_old_archive_extraction
27402
27403# A C compiler.
27404LTCC=$lt_CC
27405
27406# LTCC compiler flags.
27407LTCFLAGS=$lt_CFLAGS
27408
27409# Take the output of nm and produce a listing of raw symbols and C names.
27410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27411
27412# Transform the output of nm in a proper C declaration.
27413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27414
27415# Transform the output of nm into a list of symbols to manually relocate.
27416global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27417
27418# Transform the output of nm in a C name address pair.
27419global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27420
27421# Transform the output of nm in a C name address pair when lib prefix is needed.
27422global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27423
27424# The name lister interface.
27425nm_interface=$lt_lt_cv_nm_interface
27426
27427# Specify filename containing input files for \$NM.
27428nm_file_list_spec=$lt_nm_file_list_spec
27429
27430# The root where to search for dependent libraries,and where our libraries should be installed.
27431lt_sysroot=$lt_sysroot
27432
27433# Command to truncate a binary pipe.
27434lt_truncate_bin=$lt_lt_cv_truncate_bin
27435
27436# The name of the directory that contains temporary libtool files.
27437objdir=$objdir
27438
27439# Used to examine libraries when file_magic_cmd begins with "file".
27440MAGIC_CMD=$MAGIC_CMD
27441
27442# Must we lock files when doing compilation?
27443need_locks=$lt_need_locks
27444
27445# Manifest tool.
27446MANIFEST_TOOL=$lt_MANIFEST_TOOL
27447
27448# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27449DSYMUTIL=$lt_DSYMUTIL
27450
27451# Tool to change global to local symbols on Mac OS X.
27452NMEDIT=$lt_NMEDIT
27453
27454# Tool to manipulate fat objects and archives on Mac OS X.
27455LIPO=$lt_LIPO
27456
27457# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27458OTOOL=$lt_OTOOL
27459
27460# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27461OTOOL64=$lt_OTOOL64
27462
27463# Old archive suffix (normally "a").
27464libext=$libext
27465
27466# Shared library suffix (normally ".so").
27467shrext_cmds=$lt_shrext_cmds
27468
27469# The commands to extract the exported symbol list from a shared archive.
27470extract_expsyms_cmds=$lt_extract_expsyms_cmds
27471
27472# Variables whose values should be saved in libtool wrapper scripts and
27473# restored at link time.
27474variables_saved_for_relink=$lt_variables_saved_for_relink
27475
27476# Do we need the "lib" prefix for modules?
27477need_lib_prefix=$need_lib_prefix
27478
27479# Do we need a version for libraries?
27480need_version=$need_version
27481
27482# Library versioning type.
27483version_type=$version_type
27484
27485# Shared library runtime path variable.
27486runpath_var=$runpath_var
27487
27488# Shared library path variable.
27489shlibpath_var=$shlibpath_var
27490
27491# Is shlibpath searched before the hard-coded library search path?
27492shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27493
27494# Format of library name prefix.
27495libname_spec=$lt_libname_spec
27496
27497# List of archive names.  First name is the real one, the rest are links.
27498# The last name is the one that the linker finds with -lNAME
27499library_names_spec=$lt_library_names_spec
27500
27501# The coded name of the library, if different from the real name.
27502soname_spec=$lt_soname_spec
27503
27504# Permission mode override for installation of shared libraries.
27505install_override_mode=$lt_install_override_mode
27506
27507# Command to use after installation of a shared archive.
27508postinstall_cmds=$lt_postinstall_cmds
27509
27510# Command to use after uninstallation of a shared archive.
27511postuninstall_cmds=$lt_postuninstall_cmds
27512
27513# Commands used to finish a libtool library installation in a directory.
27514finish_cmds=$lt_finish_cmds
27515
27516# As "finish_cmds", except a single script fragment to be evaled but
27517# not shown.
27518finish_eval=$lt_finish_eval
27519
27520# Whether we should hardcode library paths into libraries.
27521hardcode_into_libs=$hardcode_into_libs
27522
27523# Compile-time system search path for libraries.
27524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27525
27526# Detected run-time system search path for libraries.
27527sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27528
27529# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27530configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27531
27532# Whether dlopen is supported.
27533dlopen_support=$enable_dlopen
27534
27535# Whether dlopen of programs is supported.
27536dlopen_self=$enable_dlopen_self
27537
27538# Whether dlopen of statically linked programs is supported.
27539dlopen_self_static=$enable_dlopen_self_static
27540
27541# Commands to strip libraries.
27542old_striplib=$lt_old_striplib
27543striplib=$lt_striplib
27544
27545
27546# The linker used to build libraries.
27547LD=$lt_LD
27548
27549# How to create reloadable object files.
27550reload_flag=$lt_reload_flag
27551reload_cmds=$lt_reload_cmds
27552
27553# Commands used to build an old-style archive.
27554old_archive_cmds=$lt_old_archive_cmds
27555
27556# A language specific compiler.
27557CC=$lt_compiler
27558
27559# Is the compiler the GNU compiler?
27560with_gcc=$GCC
27561
27562# Compiler flag to turn off builtin functions.
27563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27564
27565# Additional compiler flags for building library objects.
27566pic_flag=$lt_lt_prog_compiler_pic
27567
27568# How to pass a linker flag through the compiler.
27569wl=$lt_lt_prog_compiler_wl
27570
27571# Compiler flag to prevent dynamic linking.
27572link_static_flag=$lt_lt_prog_compiler_static
27573
27574# Does compiler simultaneously support -c and -o options?
27575compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27576
27577# Whether or not to add -lc for building shared libraries.
27578build_libtool_need_lc=$archive_cmds_need_lc
27579
27580# Whether or not to disallow shared libs when runtime libs are static.
27581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27582
27583# Compiler flag to allow reflexive dlopens.
27584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27585
27586# Compiler flag to generate shared objects directly from archives.
27587whole_archive_flag_spec=$lt_whole_archive_flag_spec
27588
27589# Whether the compiler copes with passing no objects directly.
27590compiler_needs_object=$lt_compiler_needs_object
27591
27592# Create an old-style archive from a shared archive.
27593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27594
27595# Create a temporary old-style archive to link instead of a shared archive.
27596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27597
27598# Commands used to build a shared archive.
27599archive_cmds=$lt_archive_cmds
27600archive_expsym_cmds=$lt_archive_expsym_cmds
27601
27602# Commands used to build a loadable module if different from building
27603# a shared archive.
27604module_cmds=$lt_module_cmds
27605module_expsym_cmds=$lt_module_expsym_cmds
27606
27607# Whether we are building with GNU ld or not.
27608with_gnu_ld=$lt_with_gnu_ld
27609
27610# Flag that allows shared libraries with undefined symbols to be built.
27611allow_undefined_flag=$lt_allow_undefined_flag
27612
27613# Flag that enforces no undefined symbols.
27614no_undefined_flag=$lt_no_undefined_flag
27615
27616# Flag to hardcode \$libdir into a binary during linking.
27617# This must work even if \$libdir does not exist
27618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27619
27620# Whether we need a single "-rpath" flag with a separated argument.
27621hardcode_libdir_separator=$lt_hardcode_libdir_separator
27622
27623# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27624# DIR into the resulting binary.
27625hardcode_direct=$hardcode_direct
27626
27627# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27628# DIR into the resulting binary and the resulting library dependency is
27629# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27630# library is relocated.
27631hardcode_direct_absolute=$hardcode_direct_absolute
27632
27633# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27634# into the resulting binary.
27635hardcode_minus_L=$hardcode_minus_L
27636
27637# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27638# into the resulting binary.
27639hardcode_shlibpath_var=$hardcode_shlibpath_var
27640
27641# Set to "yes" if building a shared library automatically hardcodes DIR
27642# into the library and all subsequent libraries and executables linked
27643# against it.
27644hardcode_automatic=$hardcode_automatic
27645
27646# Set to yes if linker adds runtime paths of dependent libraries
27647# to runtime path list.
27648inherit_rpath=$inherit_rpath
27649
27650# Whether libtool must link a program against all its dependency libraries.
27651link_all_deplibs=$link_all_deplibs
27652
27653# Set to "yes" if exported symbols are required.
27654always_export_symbols=$always_export_symbols
27655
27656# The commands to list exported symbols.
27657export_symbols_cmds=$lt_export_symbols_cmds
27658
27659# Symbols that should not be listed in the preloaded symbols.
27660exclude_expsyms=$lt_exclude_expsyms
27661
27662# Symbols that must always be exported.
27663include_expsyms=$lt_include_expsyms
27664
27665# Commands necessary for linking programs (against libraries) with templates.
27666prelink_cmds=$lt_prelink_cmds
27667
27668# Commands necessary for finishing linking programs.
27669postlink_cmds=$lt_postlink_cmds
27670
27671# Specify filename containing input files.
27672file_list_spec=$lt_file_list_spec
27673
27674# How to hardcode a shared library path into an executable.
27675hardcode_action=$hardcode_action
27676
27677# The directories searched by this compiler when creating a shared library.
27678compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27679
27680# Dependencies to place before and after the objects being linked to
27681# create a shared library.
27682predep_objects=$lt_predep_objects
27683postdep_objects=$lt_postdep_objects
27684predeps=$lt_predeps
27685postdeps=$lt_postdeps
27686
27687# The library search path used internally by the compiler when linking
27688# a shared library.
27689compiler_lib_search_path=$lt_compiler_lib_search_path
27690
27691# ### END LIBTOOL CONFIG
27692
27693_LT_EOF
27694
27695    cat <<'_LT_EOF' >> "$cfgfile"
27696
27697# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27698
27699# func_munge_path_list VARIABLE PATH
27700# -----------------------------------
27701# VARIABLE is name of variable containing _space_ separated list of
27702# directories to be munged by the contents of PATH, which is string
27703# having a format:
27704# "DIR[:DIR]:"
27705#       string "DIR[ DIR]" will be prepended to VARIABLE
27706# ":DIR[:DIR]"
27707#       string "DIR[ DIR]" will be appended to VARIABLE
27708# "DIRP[:DIRP]::[DIRA:]DIRA"
27709#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27710#       "DIRA[ DIRA]" will be appended to VARIABLE
27711# "DIR[:DIR]"
27712#       VARIABLE will be replaced by "DIR[ DIR]"
27713func_munge_path_list ()
27714{
27715    case x$2 in
27716    x)
27717        ;;
27718    *:)
27719        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27720        ;;
27721    x:*)
27722        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27723        ;;
27724    *::*)
27725        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27726        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27727        ;;
27728    *)
27729        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27730        ;;
27731    esac
27732}
27733
27734
27735# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
27736func_cc_basename ()
27737{
27738    for cc_temp in $*""; do
27739      case $cc_temp in
27740        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27741        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27742        \-*) ;;
27743        *) break;;
27744      esac
27745    done
27746    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27747}
27748
27749
27750# ### END FUNCTIONS SHARED WITH CONFIGURE
27751
27752_LT_EOF
27753
27754  case $host_os in
27755  aix3*)
27756    cat <<\_LT_EOF >> "$cfgfile"
27757# AIX sometimes has problems with the GCC collect2 program.  For some
27758# reason, if we set the COLLECT_NAMES environment variable, the problems
27759# vanish in a puff of smoke.
27760if test set != "${COLLECT_NAMES+set}"; then
27761  COLLECT_NAMES=
27762  export COLLECT_NAMES
27763fi
27764_LT_EOF
27765    ;;
27766  esac
27767
27768
27769
27770ltmain=$ac_aux_dir/ltmain.sh
27771
27772
27773  # We use sed instead of cat because bash on DJGPP gets confused if
27774  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27775  # text mode, it properly converts lines to CR/LF.  This bash problem
27776  # is reportedly fixed, but why not run on old versions too?
27777  $SED '$q' "$ltmain" >> "$cfgfile" \
27778     || (rm -f "$cfgfile"; exit 1)
27779
27780   mv -f "$cfgfile" "$ofile" ||
27781    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27782  chmod +x "$ofile"
27783
27784
27785    cat <<_LT_EOF >> "$ofile"
27786
27787# ### BEGIN LIBTOOL TAG CONFIG: CXX
27788
27789# The linker used to build libraries.
27790LD=$lt_LD_CXX
27791
27792# How to create reloadable object files.
27793reload_flag=$lt_reload_flag_CXX
27794reload_cmds=$lt_reload_cmds_CXX
27795
27796# Commands used to build an old-style archive.
27797old_archive_cmds=$lt_old_archive_cmds_CXX
27798
27799# A language specific compiler.
27800CC=$lt_compiler_CXX
27801
27802# Is the compiler the GNU compiler?
27803with_gcc=$GCC_CXX
27804
27805# Compiler flag to turn off builtin functions.
27806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27807
27808# Additional compiler flags for building library objects.
27809pic_flag=$lt_lt_prog_compiler_pic_CXX
27810
27811# How to pass a linker flag through the compiler.
27812wl=$lt_lt_prog_compiler_wl_CXX
27813
27814# Compiler flag to prevent dynamic linking.
27815link_static_flag=$lt_lt_prog_compiler_static_CXX
27816
27817# Does compiler simultaneously support -c and -o options?
27818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27819
27820# Whether or not to add -lc for building shared libraries.
27821build_libtool_need_lc=$archive_cmds_need_lc_CXX
27822
27823# Whether or not to disallow shared libs when runtime libs are static.
27824allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27825
27826# Compiler flag to allow reflexive dlopens.
27827export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27828
27829# Compiler flag to generate shared objects directly from archives.
27830whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27831
27832# Whether the compiler copes with passing no objects directly.
27833compiler_needs_object=$lt_compiler_needs_object_CXX
27834
27835# Create an old-style archive from a shared archive.
27836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27837
27838# Create a temporary old-style archive to link instead of a shared archive.
27839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27840
27841# Commands used to build a shared archive.
27842archive_cmds=$lt_archive_cmds_CXX
27843archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27844
27845# Commands used to build a loadable module if different from building
27846# a shared archive.
27847module_cmds=$lt_module_cmds_CXX
27848module_expsym_cmds=$lt_module_expsym_cmds_CXX
27849
27850# Whether we are building with GNU ld or not.
27851with_gnu_ld=$lt_with_gnu_ld_CXX
27852
27853# Flag that allows shared libraries with undefined symbols to be built.
27854allow_undefined_flag=$lt_allow_undefined_flag_CXX
27855
27856# Flag that enforces no undefined symbols.
27857no_undefined_flag=$lt_no_undefined_flag_CXX
27858
27859# Flag to hardcode \$libdir into a binary during linking.
27860# This must work even if \$libdir does not exist
27861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27862
27863# Whether we need a single "-rpath" flag with a separated argument.
27864hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27865
27866# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27867# DIR into the resulting binary.
27868hardcode_direct=$hardcode_direct_CXX
27869
27870# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27871# DIR into the resulting binary and the resulting library dependency is
27872# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27873# library is relocated.
27874hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27875
27876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27877# into the resulting binary.
27878hardcode_minus_L=$hardcode_minus_L_CXX
27879
27880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27881# into the resulting binary.
27882hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27883
27884# Set to "yes" if building a shared library automatically hardcodes DIR
27885# into the library and all subsequent libraries and executables linked
27886# against it.
27887hardcode_automatic=$hardcode_automatic_CXX
27888
27889# Set to yes if linker adds runtime paths of dependent libraries
27890# to runtime path list.
27891inherit_rpath=$inherit_rpath_CXX
27892
27893# Whether libtool must link a program against all its dependency libraries.
27894link_all_deplibs=$link_all_deplibs_CXX
27895
27896# Set to "yes" if exported symbols are required.
27897always_export_symbols=$always_export_symbols_CXX
27898
27899# The commands to list exported symbols.
27900export_symbols_cmds=$lt_export_symbols_cmds_CXX
27901
27902# Symbols that should not be listed in the preloaded symbols.
27903exclude_expsyms=$lt_exclude_expsyms_CXX
27904
27905# Symbols that must always be exported.
27906include_expsyms=$lt_include_expsyms_CXX
27907
27908# Commands necessary for linking programs (against libraries) with templates.
27909prelink_cmds=$lt_prelink_cmds_CXX
27910
27911# Commands necessary for finishing linking programs.
27912postlink_cmds=$lt_postlink_cmds_CXX
27913
27914# Specify filename containing input files.
27915file_list_spec=$lt_file_list_spec_CXX
27916
27917# How to hardcode a shared library path into an executable.
27918hardcode_action=$hardcode_action_CXX
27919
27920# The directories searched by this compiler when creating a shared library.
27921compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27922
27923# Dependencies to place before and after the objects being linked to
27924# create a shared library.
27925predep_objects=$lt_predep_objects_CXX
27926postdep_objects=$lt_postdep_objects_CXX
27927predeps=$lt_predeps_CXX
27928postdeps=$lt_postdeps_CXX
27929
27930# The library search path used internally by the compiler when linking
27931# a shared library.
27932compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27933
27934# ### END LIBTOOL TAG CONFIG: CXX
27935_LT_EOF
27936
27937 ;;
27938
27939  esac
27940done # for ac_tag
27941
27942
27943as_fn_exit 0
27944_ACEOF
27945ac_clean_files=$ac_clean_files_save
27946
27947test $ac_write_fail = 0 ||
27948  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27949
27950
27951# configure is writing to config.log, and then calls config.status.
27952# config.status does its own redirection, appending to config.log.
27953# Unfortunately, on DOS this fails, as config.log is still kept open
27954# by configure, so config.status won't be able to write to it; its
27955# output is simply discarded.  So we exec the FD to /dev/null,
27956# effectively closing config.log, so it can be properly (re)opened and
27957# appended to by config.status.  When coming back to configure, we
27958# need to make the FD available again.
27959if test "$no_create" != yes; then
27960  ac_cs_success=:
27961  ac_config_status_args=
27962  test "$silent" = yes &&
27963    ac_config_status_args="$ac_config_status_args --quiet"
27964  exec 5>/dev/null
27965  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27966  exec 5>>config.log
27967  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27968  # would make configure fail if this is the last instruction.
27969  $ac_cs_success || as_fn_exit 1
27970fi
27971if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27973printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27974fi
27975
27976
27977